perl 5.003_02: [no incremental changelog available]
[p5sagit/p5-mst-13.2.git] / os2 / diff.configure
1 *** Configure.orig      Thu Dec 07 14:38:08 1995
2 --- Configure   Mon Dec 18 19:16:22 1995
3 ***************
4 *** 1377,1383 ****
5         *)
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
8 !               exit 1
9                 ;;
10         esac
11   done
12 --- 1377,1383 ----
13         *)
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
16 !               #exit 1
17                 ;;
18         esac
19   done
20 ***************
21 *** 1386,1392 ****
22   say=offhand
23   for file in $trylist; do
24         xxx=`./loc $file $file $pth`
25 !       eval $file=$xxx
26         eval _$file=$xxx
27         case "$xxx" in
28         /*)
29 --- 1386,1394 ----
30   say=offhand
31   for file in $trylist; do
32         xxx=`./loc $file $file $pth`
33 !       if test "X$file" != "X$xxx" ; then
34 !               eval $file=$xxx
35 !       fi
36         eval _$file=$xxx
37         case "$xxx" in
38         /*)
39 ***************
40 *** 3173,3179 ****
41         exit(0);
42   }
43   EOM
44 ! if $cc -o gccvers gccvers.c >/dev/null 2>&1; then
45         gccversion=`./gccvers`
46         case "$gccversion" in
47         '') echo "You are not using GNU cc." ;;
48 --- 3175,3181 ----
49         exit(0);
50   }
51   EOM
52 ! if $cc -o gccvers gccvers.c $ldflags  >/dev/null 2>&1; then
53         gccversion=`./gccvers`
54         case "$gccversion" in
55         '') echo "You are not using GNU cc." ;;
56 ***************
57 *** 3765,3770 ****
58 --- 3767,3778 ----
59                 *"-l$thislib "*);;
60                 *) dflt="$dflt -l$thislib";;
61                 esac
62 +       elif xxx=`./loc $thislib.lib X $libpth`; $test -f "$xxx"; then
63 +               echo "Found -l$thislib."
64 +               case " $dflt " in
65 +               *"-l$thislib "*);;
66 +               *) dflt="$dflt -l$thislib";;
67 +               esac
68         else
69                 echo "No -l$thislib."
70         fi
71 ***************
72 *** 3864,3870 ****
73         esac
74         ;;
75   esac
76 ! libnames='';
77   case "$libs" in
78   '') ;;
79   *)  for thislib in $libs; do
80 --- 3872,3878 ----
81         esac
82         ;;
83   esac
84 ! #libnames='';
85   case "$libs" in
86   '') ;;
87   *)  for thislib in $libs; do
88 ***************
89 *** 3878,3889 ****
90                         :
91                 elif try=`./loc lib$thislib.$so X $libpth`; $test -f "$try"; then
92                         :
93 !               elif try=`./loc lib$thislib.a X $libpth`; $test -f "$try"; then
94                         :
95                 elif try=`./loc lib$thislib X $libpth`; $test -f "$try"; then
96                         :
97                 elif try=`./loc $thislib X $libpth`; $test -f "$try"; then
98                         :
99                 elif try=`./loc Slib$thislib.a X $xlibpth`; $test -f "$try"; then
100                         :
101                 else
102 --- 3886,3899 ----
103                         :
104                 elif try=`./loc lib$thislib.$so X $libpth`; $test -f "$try"; then
105                         :
106 !               elif try=`./loc lib$thislib$lib_ext X $libpth`; $test -f "$try"; then
107                         :
108                 elif try=`./loc lib$thislib X $libpth`; $test -f "$try"; then
109                         :
110                 elif try=`./loc $thislib X $libpth`; $test -f "$try"; then
111                         :
112 +               elif try=`./loc $thislib$lib_ext X $libpth`; $test -f "$try"; then
113 +                       :
114                 elif try=`./loc Slib$thislib.a X $xlibpth`; $test -f "$try"; then
115                         :
116                 else
117 ***************
118 *** 3932,3942 ****
119         fi
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
126 !       libc=/lib/libc.a;
127         echo "Your C library seems to be in $libc.  You're normal."
128   else
129         if tans=`./loc libc.a blurfl/dyick $libpth`; $test -r "$tans"; then
130 --- 3942,3952 ----
131         fi
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."
140   else
141         if tans=`./loc libc.a blurfl/dyick $libpth`; $test -r "$tans"; then
142 ***************
143 *** 4049,4054 ****
144 --- 4059,4068 ----
145         eval $xscan;\
146         $contains '^fprintf$' libc.list >/dev/null 2>&1; then
147                 eval $xrun
148 + elif com="$sed -n -e 's/^[-0-9a-f ]*_\(.*\)=.*/\1/p'";\
149 +       eval $xscan;\
150 +       $contains '^fprintf$' libc.list >/dev/null 2>&1; then
151 +               eval $xrun
152   else
153         nm -p $* 2>/dev/null >libc.tmp
154         $grep fprintf libc.tmp > libc.ptf
155 ***************
156 *** 4059,4081 ****
157                 eval $xrun
158         else
159                 echo " "
160 !               echo "nm didn't seem to work right. Trying ar instead..." >&4
161                 com=''
162 !               if ar t $libc > libc.tmp; then
163                         for thisname in $libnames; do
164 !                               ar t $thisname >>libc.tmp
165                         done
166 !                       $sed -e 's/\.o$//' < libc.tmp > libc.list
167                         echo "Ok." >&4
168                 else
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
172                         then
173                                 for thisname in $libnames; do
174                                         bld t $libnames | \
175                                         $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
176 !                                       ar t $thisname >>libc.tmp
177                                 done
178                                 echo "Ok." >&4
179                         else
180 --- 4073,4096 ----
181                 eval $xrun
182         else
183                 echo " "
184 !               echo "nm didn't seem to work right. Trying $ar instead..." >&4
185                 com=''
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
190                         done
191 !                       $sed -e 's/\.o$//' -e 's/^ \+//' < libc.tmp | grep -v "^IMPORT#" > libc.list
192                         echo "Ok." >&4
193                 else
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
197                         then
198                                 for thisname in $libnames; do
199                                         bld t $libnames | \
200                                         $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
201 !                                       $ar t $thisname >>libc.tmp
202                                 done
203                                 echo "Ok." >&4
204                         else
205 ***************
206 *** 4421,4427 ****
207         exit(0);
208   }
209   EOCP
210 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
211                 intsize=`./try`
212                 echo "Your integers are $intsize bytes long."
213         else
214 --- 4436,4442 ----
215         exit(0);
216   }
217   EOCP
218 !       if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
219                 intsize=`./try`
220                 echo "Your integers are $intsize bytes long."
221         else
222 ***************
223 *** 4501,4507 ****
224         exit(result);
225   }
226   EOCP
227 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
228         ./try
229         yyy=$?
230   else
231 --- 4516,4522 ----
232         exit(result);
233   }
234   EOCP
235 ! if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then
236         ./try
237         yyy=$?
238   else
239 ***************
240 *** 4582,4588 ****
241   
242   }
243   EOCP
244 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
245         ./try
246         castflags=$?
247   else
248 --- 4597,4603 ----
249   
250   }
251   EOCP
252 ! if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then
253         ./try
254         castflags=$?
255   else
256 ***************
257 *** 4621,4627 ****
258         exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
259   }
260   EOF
261 !       if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then
262                 echo "Your vsprintf() returns (int)." >&4
263                 val2="$undef"
264         else
265 --- 4636,4642 ----
266         exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
267   }
268   EOF
269 !       if $cc $ccflags vprintf.c $ldflags -o vprintf >/dev/null 2>&1 && ./vprintf; then
270                 echo "Your vsprintf() returns (int)." >&4
271                 val2="$undef"
272         else
273 ***************
274 *** 4691,4697 ****
275                 cryptlib=-lcrypt
276         fi
277         if $test -z "$cryptlib"; then
278 !               cryptlib=`./loc libcrypt.a "" $libpth`
279         else
280                 cryptlib=-lcrypt
281         fi
282 --- 4706,4712 ----
283                 cryptlib=-lcrypt
284         fi
285         if $test -z "$cryptlib"; then
286 !               cryptlib=`./loc libcrypt$lib_ext "" $libpth`
287         else
288                 cryptlib=-lcrypt
289         fi
290 ***************
291 *** 5198,5205 ****
292   EOM
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
298                 xxx=`./fred`
299                 case $xxx in
300 --- 5213,5220 ----
301   EOM
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
307                 xxx=`./fred`
308                 case $xxx in
309 ***************
310 *** 5355,5361 ****
311   EOCP
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
315         h_sysfile=true;
316         echo "<sys/file.h> defines the O_* constants..." >&4
317         if ./open3; then
318 --- 5370,5376 ----
319   EOCP
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
323         h_sysfile=true;
324         echo "<sys/file.h> defines the O_* constants..." >&4
325         if ./open3; then
326 ***************
327 *** 5366,5372 ****
328                 val="$undef"
329         fi
330   elif $test `./findhdr fcntl.h` && \
331 !               $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
332         h_fcntl=true;
333         echo "<fcntl.h> defines the O_* constants..." >&4
334         if ./open3; then
335 --- 5381,5387 ----
336                 val="$undef"
337         fi
338   elif $test `./findhdr fcntl.h` && \
339 !               $cc "-DI_FCNTL" $ldflags open3.c -o open3 >/dev/null 2>&1 ; then
340         h_fcntl=true;
341         echo "<fcntl.h> defines the O_* constants..." >&4
342         if ./open3; then
343 ***************
344 *** 5848,5854 ****
345   y*|true)
346         usemymalloc='y'
347         mallocsrc='malloc.c'
348 !       mallocobj='malloc.o'
349         d_mymalloc="$define"
350         case "$libs" in
351         *-lmalloc*)
352 --- 5863,5869 ----
353   y*|true)
354         usemymalloc='y'
355         mallocsrc='malloc.c'
356 !       mallocobj="malloc$obj_ext"
357         d_mymalloc="$define"
358         case "$libs" in
359         *-lmalloc*)
360 ***************
361 *** 6283,6292 ****
362                 : we will have to assume that it supports the 4.2 BSD interface
363                 d_oldsock="$undef"
364         else
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
371                                 socketlib="-lnet"
372 --- 6298,6307 ----
373                 : we will have to assume that it supports the 4.2 BSD interface
374                 d_oldsock="$undef"
375         else
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
382                                 socketlib="-lnet"
383 ***************
384 *** 6299,6305 ****
385                                         d_oldsock="$define"
386                                 fi
387                         else
388 !                               echo "or even in libnet.a, which is peculiar." >&4
389                                 d_socket="$undef"
390                                 d_oldsock="$undef"
391                         fi
392 --- 6314,6320 ----
393                                         d_oldsock="$define"
394                                 fi
395                         else
396 !                               echo "or even in libnet$lib_ext, which is peculiar." >&4
397                                 d_socket="$undef"
398                                 d_oldsock="$undef"
399                         fi
400 ***************
401 *** 7055,7061 ****
402         printf("%d\n", (char *)&try.bar - (char *)&try.foo);
403   }
404   EOCP
405 !       if $cc $ccflags try.c -o try >/dev/null 2>&1; then
406                 dflt=`./try`
407         else
408                 dflt='8'
409 --- 7070,7076 ----
410         printf("%d\n", (char *)&try.bar - (char *)&try.foo);
411   }
412   EOCP
413 !       if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then
414                 dflt=`./try`
415         else
416                 dflt='8'
417 ***************
418 *** 7080,7086 ****
419   '') obj_ext='.o';;
420   esac
421   case "$path_sep" in
422 ! '') path_sep=':';;
423   esac
424   : Which makefile gets called first.  This is used by make depend.
425   case "$firstmakefile" in
426 --- 7095,7101 ----
427   '') obj_ext='.o';;
428   esac
429   case "$path_sep" in
430 ! '') path_sep="$p_";;
431   esac
432   : Which makefile gets called first.  This is used by make depend.
433   case "$firstmakefile" in
434 ***************
435 *** 7120,7126 ****
436   }
437   EOCP
438         xxx_prompt=y
439 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
440                 dflt=`./try`
441                 case "$dflt" in
442                 [1-4][1-4][1-4][1-4]|12345678|87654321)
443 --- 7135,7141 ----
444   }
445   EOCP
446         xxx_prompt=y
447 !       if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
448                 dflt=`./try`
449                 case "$dflt" in
450                 [1-4][1-4][1-4][1-4]|12345678|87654321)
451 ***************
452 *** 7470,7476 ****
453         printf("%d\n",i);
454   }
455   EOCP
456 !       if $cc try.c -o try >/dev/null 2>&1 ; then
457                 dflt=`try`
458         else
459                 dflt='?'
460 --- 7485,7491 ----
461         printf("%d\n",i);
462   }
463   EOCP
464 !       if $cc $ldflags try.c -o try >/dev/null 2>&1 ; then
465                 dflt=`try`
466         else
467                 dflt='?'
468 ***************
469 *** 7497,7514 ****
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."
477         orderlib=false
478         ranlib=":"
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'."
483                 orderlib=false
484 !               ranlib="ar ts"
485   else
486         case "$ranlib" in
487         :) ranlib='';;
488 --- 7512,7529 ----
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."
496         orderlib=false
497         ranlib=":"
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'."
502                 orderlib=false
503 !               ranlib="$ar ts"
504   else
505         case "$ranlib" in
506         :) ranlib='';;
507 ***************
508 *** 7580,7586 ****
509         '') $echo $n ".$c"
510                 if $cc $ccflags \
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
514                         shift
515                         flags="$*"
516 --- 7595,7601 ----
517         '') $echo $n ".$c"
518                 if $cc $ccflags \
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
522                         shift
523                         flags="$*"
524 ***************
525 *** 7649,7655 ****
526   #endif
527   }
528   EOCP
529 ! if $cc $ccflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
530         d_fds_bits="$define"
531         d_fd_set="$define"
532         echo "Well, your system knows about the normal fd_set typedef..." >&4
533 --- 7664,7670 ----
534   #endif
535   }
536   EOCP
537 ! if $cc $ccflags $ldflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
538         d_fds_bits="$define"
539         d_fd_set="$define"
540         echo "Well, your system knows about the normal fd_set typedef..." >&4
541 ***************
542 *** 7666,7672 ****
543         $cat <<'EOM'
544   Hmm, your compiler has some difficulty with fd_set.  Checking further...
545   EOM
546 !       if $cc $ccflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
547                 d_fds_bits="$undef"
548                 d_fd_set="$define"
549                 echo "Well, your system has some sort of fd_set available..." >&4
550 --- 7681,7687 ----
551         $cat <<'EOM'
552   Hmm, your compiler has some difficulty with fd_set.  Checking further...
553   EOM
554 !       if $cc $ccflags $ldflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
555                 d_fds_bits="$undef"
556                 d_fd_set="$define"
557                 echo "Well, your system has some sort of fd_set available..." >&4
558 ***************
559 *** 8380,8386 ****
560   else
561         echo "false"
562   fi
563 ! $rm -f varargs.o
564   EOP
565   chmod +x varargs
566   
567 --- 8395,8401 ----
568   else
569         echo "false"
570   fi
571 ! $rm -f varargs$obj_ext
572   EOP
573   chmod +x varargs
574   
575 ***************
576 *** 8744,8750 ****
577         echo " "
578         echo "Stripping down executable paths..." >&4
579         for file in $loclist $trylist; do
580 !               eval $file="\$file"
581         done
582         ;;
583   esac
584 --- 8759,8765 ----
585         echo " "
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
589         done
590         ;;
591   esac