1 *** Configure.orig Thu Dec 07 14:38:08 1995
2 --- Configure Mon Dec 18 19:16:22 1995
6 echo "I don't know where '$file' is, and my life depends on it." >&4
7 echo "Go find a public domain implementation or fix your PATH setting!" >&4
14 echo "I don't know where '$file' is, and my life depends on it." >&4
15 echo "Go find a public domain implementation or fix your PATH setting!" >&4
23 for file in $trylist; do
24 xxx=`./loc $file $file $pth`
31 for file in $trylist; do
32 xxx=`./loc $file $file $pth`
33 ! if test "X$file" != "X$xxx" ; then
44 ! if $cc -o gccvers gccvers.c >/dev/null 2>&1; then
45 gccversion=`./gccvers`
47 '') echo "You are not using GNU cc." ;;
52 ! if $cc -o gccvers gccvers.c $ldflags >/dev/null 2>&1; then
53 gccversion=`./gccvers`
55 '') echo "You are not using GNU cc." ;;
60 *) dflt="$dflt -l$thislib";;
62 + elif xxx=`./loc $thislib.lib X $libpth`; $test -f "$xxx"; then
63 + echo "Found -l$thislib."
66 + *) dflt="$dflt -l$thislib";;
79 *) for thislib in $libs; do
87 *) for thislib in $libs; do
91 elif try=`./loc lib$thislib.$so X $libpth`; $test -f "$try"; then
93 ! elif try=`./loc lib$thislib.a X $libpth`; $test -f "$try"; then
95 elif try=`./loc lib$thislib X $libpth`; $test -f "$try"; then
97 elif try=`./loc $thislib X $libpth`; $test -f "$try"; then
99 elif try=`./loc Slib$thislib.a X $xlibpth`; $test -f "$try"; then
104 elif try=`./loc lib$thislib.$so X $libpth`; $test -f "$try"; then
106 ! elif try=`./loc lib$thislib$lib_ext X $libpth`; $test -f "$try"; then
108 elif try=`./loc lib$thislib X $libpth`; $test -f "$try"; then
110 elif try=`./loc $thislib X $libpth`; $test -f "$try"; then
112 + elif try=`./loc $thislib$lib_ext X $libpth`; $test -f "$try"; then
114 elif try=`./loc Slib$thislib.a X $xlibpth`; $test -f "$try"; then
120 elif $test -r "$libc" || (test -h "$libc") >/dev/null 2>&1; then
121 echo "Your C library seems to be in $libc, as you said before."
122 ! elif $test -r $incpath/usr/lib/libc.a; then
123 ! libc=$incpath/usr/lib/libc.a;
124 echo "Your C library seems to be in $libc. That's fine."
125 ! elif $test -r /lib/libc.a; then
127 echo "Your C library seems to be in $libc. You're normal."
129 if tans=`./loc libc.a blurfl/dyick $libpth`; $test -r "$tans"; then
132 elif $test -r "$libc" || (test -h "$libc") >/dev/null 2>&1; then
133 echo "Your C library seems to be in $libc, as you said before."
134 ! elif $test -r $incpath/usr/lib/libc$lib_ext; then
135 ! libc=$incpath/usr/lib/libc$lib_ext;
136 echo "Your C library seems to be in $libc. That's fine."
137 ! elif $test -r /lib/libc$lib_ext; then
138 ! libc=/lib/libc$lib_ext;
139 echo "Your C library seems to be in $libc. You're normal."
141 if tans=`./loc libc.a blurfl/dyick $libpth`; $test -r "$tans"; then
146 $contains '^fprintf$' libc.list >/dev/null 2>&1; then
148 + elif com="$sed -n -e 's/^[-0-9a-f ]*_\(.*\)=.*/\1/p'";\
150 + $contains '^fprintf$' libc.list >/dev/null 2>&1; then
153 nm -p $* 2>/dev/null >libc.tmp
154 $grep fprintf libc.tmp > libc.ptf
160 ! echo "nm didn't seem to work right. Trying ar instead..." >&4
162 ! if ar t $libc > libc.tmp; then
163 for thisname in $libnames; do
164 ! ar t $thisname >>libc.tmp
166 ! $sed -e 's/\.o$//' < libc.tmp > libc.list
169 ! echo "ar didn't seem to work right." >&4
170 echo "Maybe this is a Cray...trying bld instead..." >&4
171 if bld t $libc | $sed -e 's/.*\///' -e 's/\.o:.*$//' > libc.list
173 for thisname in $libnames; do
175 $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
176 ! ar t $thisname >>libc.tmp
184 ! echo "nm didn't seem to work right. Trying $ar instead..." >&4
186 ! if test "X$osname" = "Xos2"; then ar_opt=tv ; else ar_opt=t ;fi
187 ! if $ar $ar_opt $libc > libc.tmp; then
188 for thisname in $libnames; do
189 ! $ar $ar_opt $thisname >>libc.tmp
191 ! $sed -e 's/\.o$//' -e 's/^ \+//' < libc.tmp | grep -v "^IMPORT#" > libc.list
194 ! echo "$ar didn't seem to work right." >&4
195 echo "Maybe this is a Cray...trying bld instead..." >&4
196 if bld t $libc | $sed -e 's/.*\///' -e 's/\.o:.*$//' > libc.list
198 for thisname in $libnames; do
200 $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
201 ! $ar t $thisname >>libc.tmp
210 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
212 echo "Your integers are $intsize bytes long."
218 ! if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
220 echo "Your integers are $intsize bytes long."
227 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
235 ! if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then
244 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
252 ! if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then
258 exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
261 ! if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then
262 echo "Your vsprintf() returns (int)." >&4
266 exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
269 ! if $cc $ccflags vprintf.c $ldflags -o vprintf >/dev/null 2>&1 && ./vprintf; then
270 echo "Your vsprintf() returns (int)." >&4
277 if $test -z "$cryptlib"; then
278 ! cryptlib=`./loc libcrypt.a "" $libpth`
285 if $test -z "$cryptlib"; then
286 ! cryptlib=`./loc libcrypt$lib_ext "" $libpth`
293 : Call the object file tmp-dyna.o in case dlext=o.
294 if $cc $ccflags $cccdlflags -c dyna.c > /dev/null 2>&1 &&
295 ! mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
296 ! $ld $lddlflags -o dyna.$dlext tmp-dyna.o > /dev/null 2>&1 &&
297 $cc $ccflags $ldflags $cccdlflags $ccdlflags fred.c -o fred $libs > /dev/null 2>&1; then
302 : Call the object file tmp-dyna.o in case dlext=o.
303 if $cc $ccflags $cccdlflags -c dyna.c > /dev/null 2>&1 &&
304 ! mv dyna$obj_ext tmp-dyna$obj_ext > /dev/null 2>&1 &&
305 ! $ld $lddlflags -o dyna.$dlext tmp-dyna$obj_ext > /dev/null 2>&1 &&
306 $cc $ccflags $ldflags $cccdlflags $ccdlflags fred.c -o fred $libs > /dev/null 2>&1; then
312 : check sys/file.h first to get FREAD on Sun
313 if $test `./findhdr sys/file.h` && \
314 ! $cc $cppflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then
316 echo "<sys/file.h> defines the O_* constants..." >&4
320 : check sys/file.h first to get FREAD on Sun
321 if $test `./findhdr sys/file.h` && \
322 ! $cc $cppflags $ldflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then
324 echo "<sys/file.h> defines the O_* constants..." >&4
330 elif $test `./findhdr fcntl.h` && \
331 ! $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
333 echo "<fcntl.h> defines the O_* constants..." >&4
338 elif $test `./findhdr fcntl.h` && \
339 ! $cc "-DI_FCNTL" $ldflags open3.c -o open3 >/dev/null 2>&1 ; then
341 echo "<fcntl.h> defines the O_* constants..." >&4
348 ! mallocobj='malloc.o'
356 ! mallocobj="malloc$obj_ext"
362 : we will have to assume that it supports the 4.2 BSD interface
365 ! echo "You don't have Berkeley networking in libc.a..." >&4
366 ! if test -f /usr/lib/libnet.a; then
367 ! ( (nm $nm_opt /usr/lib/libnet.a | eval $nm_extract) || \
368 ! ar t /usr/lib/libnet.a) 2>/dev/null >> libc.list
369 if $contains socket libc.list >/dev/null 2>&1; then
370 echo "...but the Wollongong group seems to have hacked it in." >&4
373 : we will have to assume that it supports the 4.2 BSD interface
376 ! echo "You don't have Berkeley networking in libc$lib_ext..." >&4
377 ! if test -f /usr/lib/libnet$lib_ext; then
378 ! ( (nm $nm_opt /usr/lib/libnet$lib_ext | eval $nm_extract) || \
379 ! $ar t /usr/lib/libnet$lib_ext) 2>/dev/null >> libc.list
380 if $contains socket libc.list >/dev/null 2>&1; then
381 echo "...but the Wollongong group seems to have hacked it in." >&4
388 ! echo "or even in libnet.a, which is peculiar." >&4
396 ! echo "or even in libnet$lib_ext, which is peculiar." >&4
402 printf("%d\n", (char *)&try.bar - (char *)&try.foo);
405 ! if $cc $ccflags try.c -o try >/dev/null 2>&1; then
410 printf("%d\n", (char *)&try.bar - (char *)&try.foo);
413 ! if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then
424 : Which makefile gets called first. This is used by make depend.
425 case "$firstmakefile" in
430 ! '') path_sep="$p_";;
432 : Which makefile gets called first. This is used by make depend.
433 case "$firstmakefile" in
439 ! if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
442 [1-4][1-4][1-4][1-4]|12345678|87654321)
447 ! if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
450 [1-4][1-4][1-4][1-4]|12345678|87654321)
456 ! if $cc try.c -o try >/dev/null 2>&1 ; then
464 ! if $cc $ldflags try.c -o try >/dev/null 2>&1 ; then
470 $cc $ccflags -c bar1.c >/dev/null 2>&1
471 $cc $ccflags -c bar2.c >/dev/null 2>&1
472 $cc $ccflags -c foo.c >/dev/null 2>&1
473 ! ar rc bar.a bar2.o bar1.o >/dev/null 2>&1
474 ! if $cc $ccflags $ldflags -o foobar foo.o bar.a $libs > /dev/null 2>&1 &&
475 ./foobar >/dev/null 2>&1; then
476 ! echo "ar appears to generate random libraries itself."
479 ! elif ar ts bar.a >/dev/null 2>&1 &&
480 ! $cc $ccflags $ldflags -o foobar foo.o bar.a $libs > /dev/null 2>&1 &&
481 ./foobar >/dev/null 2>&1; then
482 echo "a table of contents needs to be added with 'ar ts'."
489 $cc $ccflags -c bar1.c >/dev/null 2>&1
490 $cc $ccflags -c bar2.c >/dev/null 2>&1
491 $cc $ccflags -c foo.c >/dev/null 2>&1
492 ! $ar rc bar$lib_ext bar2$obj_ext bar1$obj_ext >/dev/null 2>&1
493 ! if $cc $ccflags $ldflags -o foobar foo$obj_ext bar$lib_ext $libs > /dev/null 2>&1 &&
494 ./foobar >/dev/null 2>&1; then
495 ! echo "$ar appears to generate random libraries itself."
498 ! elif $ar ts bar$lib_ext >/dev/null 2>&1 &&
499 ! $cc $ccflags $ldflags -o foobar foo$obj_ext bar$lib_ext $libs > /dev/null 2>&1 &&
500 ./foobar >/dev/null 2>&1; then
501 echo "a table of contents needs to be added with 'ar ts'."
511 $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone \
512 ! try.c -o try >/dev/null 2>&1 ; then
513 set X $i_time $i_systime $i_systimek $sysselect $s_timeval
519 $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone \
520 ! try.c -o try $ldflags >/dev/null 2>&1 ; then
521 set X $i_time $i_systime $i_systimek $sysselect $s_timeval
529 ! if $cc $ccflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
532 echo "Well, your system knows about the normal fd_set typedef..." >&4
537 ! if $cc $ccflags $ldflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
540 echo "Well, your system knows about the normal fd_set typedef..." >&4
544 Hmm, your compiler has some difficulty with fd_set. Checking further...
546 ! if $cc $ccflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
549 echo "Well, your system has some sort of fd_set available..." >&4
552 Hmm, your compiler has some difficulty with fd_set. Checking further...
554 ! if $cc $ccflags $ldflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
557 echo "Well, your system has some sort of fd_set available..." >&4
571 ! $rm -f varargs$obj_ext
578 echo "Stripping down executable paths..." >&4
579 for file in $loclist $trylist; do
580 ! eval $file="\$file"
586 echo "Stripping down executable paths..." >&4
587 for file in $loclist $trylist; do
588 ! if test X$file != Xln -o X$osname != Xos2; then eval $file="\$file"; fi