]> granicus.if.org Git - postgresql/blob - src/configure
From: "Billy G. Allie" <Bill.Allie@mug.org>
[postgresql] / src / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
15
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
19 build=NONE
20 cache_file=./config.cache
21 exec_prefix=NONE
22 host=NONE
23 no_create=
24 nonopt=NONE
25 no_recursion=
26 prefix=NONE
27 program_prefix=NONE
28 program_suffix=NONE
29 program_transform_name=s,x,x,
30 silent=
31 site=
32 srcdir=
33 target=NONE
34 verbose=
35 x_includes=NONE
36 x_libraries=NONE
37 bindir='${exec_prefix}/bin'
38 sbindir='${exec_prefix}/sbin'
39 libexecdir='${exec_prefix}/libexec'
40 datadir='${prefix}/share'
41 sysconfdir='${prefix}/etc'
42 sharedstatedir='${prefix}/com'
43 localstatedir='${prefix}/var'
44 libdir='${exec_prefix}/lib'
45 includedir='${prefix}/include'
46 oldincludedir='/usr/include'
47 infodir='${prefix}/info'
48 mandir='${prefix}/man'
49
50 # Initialize some other variables.
51 subdirs=
52 MFLAGS= MAKEFLAGS=
53 # Maximum number of lines to put in a shell here document.
54 ac_max_here_lines=12
55
56 ac_prev=
57 for ac_option
58 do
59
60   # If the previous option needs an argument, assign it.
61   if test -n "$ac_prev"; then
62     eval "$ac_prev=\$ac_option"
63     ac_prev=
64     continue
65   fi
66
67   case "$ac_option" in
68   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69   *) ac_optarg= ;;
70   esac
71
72   # Accept the important Cygnus configure options, so we can diagnose typos.
73
74   case "$ac_option" in
75
76   -bindir | --bindir | --bindi | --bind | --bin | --bi)
77     ac_prev=bindir ;;
78   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79     bindir="$ac_optarg" ;;
80
81   -build | --build | --buil | --bui | --bu)
82     ac_prev=build ;;
83   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84     build="$ac_optarg" ;;
85
86   -cache-file | --cache-file | --cache-fil | --cache-fi \
87   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88     ac_prev=cache_file ;;
89   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91     cache_file="$ac_optarg" ;;
92
93   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94     ac_prev=datadir ;;
95   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96   | --da=*)
97     datadir="$ac_optarg" ;;
98
99   -disable-* | --disable-*)
100     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101     # Reject names that are not valid shell variable names.
102     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104     fi
105     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106     eval "enable_${ac_feature}=no" ;;
107
108   -enable-* | --enable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     case "$ac_option" in
116       *=*) ;;
117       *) ac_optarg=yes ;;
118     esac
119     eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123   | --exec | --exe | --ex)
124     ac_prev=exec_prefix ;;
125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127   | --exec=* | --exe=* | --ex=*)
128     exec_prefix="$ac_optarg" ;;
129
130   -gas | --gas | --ga | --g)
131     # Obsolete; use --with-gas.
132     with_gas=yes ;;
133
134   -help | --help | --hel | --he)
135     # Omit some internal or obsolete options to make the list less imposing.
136     # This message is too long to be a string in the A/UX 3.1 sh.
137     cat << EOF
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
140 Configuration:
141   --cache-file=FILE       cache test results in FILE
142   --help                  print this message
143   --no-create             do not create output files
144   --quiet, --silent       do not print \`checking...' messages
145   --version               print the version of autoconf that created configure
146 Directory and file names:
147   --prefix=PREFIX         install architecture-independent files in PREFIX
148                           [$ac_default_prefix]
149   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150                           [same as prefix]
151   --bindir=DIR            user executables in DIR [EPREFIX/bin]
152   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154   --datadir=DIR           read-only architecture-independent data in DIR
155                           [PREFIX/share]
156   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158                           [PREFIX/com]
159   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161   --includedir=DIR        C header files in DIR [PREFIX/include]
162   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163   --infodir=DIR           info documentation in DIR [PREFIX/info]
164   --mandir=DIR            man documentation in DIR [PREFIX/man]
165   --srcdir=DIR            find the sources in DIR [configure dir or ..]
166   --program-prefix=PREFIX prepend PREFIX to installed program names
167   --program-suffix=SUFFIX append SUFFIX to installed program names
168   --program-transform-name=PROGRAM
169                           run sed PROGRAM on installed program names
170 EOF
171     cat << EOF
172 Host type:
173   --build=BUILD           configure for building on BUILD [BUILD=HOST]
174   --host=HOST             configure for HOST [guessed]
175   --target=TARGET         configure for TARGET [TARGET=HOST]
176 Features and packages:
177   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181   --x-includes=DIR        X include files are in DIR
182   --x-libraries=DIR       X library files are in DIR
183 EOF
184     if test -n "$ac_help"; then
185       echo "--enable and --with options recognized:$ac_help"
186     fi
187     exit 0 ;;
188
189   -host | --host | --hos | --ho)
190     ac_prev=host ;;
191   -host=* | --host=* | --hos=* | --ho=*)
192     host="$ac_optarg" ;;
193
194   -includedir | --includedir | --includedi | --included | --include \
195   | --includ | --inclu | --incl | --inc)
196     ac_prev=includedir ;;
197   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198   | --includ=* | --inclu=* | --incl=* | --inc=*)
199     includedir="$ac_optarg" ;;
200
201   -infodir | --infodir | --infodi | --infod | --info | --inf)
202     ac_prev=infodir ;;
203   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204     infodir="$ac_optarg" ;;
205
206   -libdir | --libdir | --libdi | --libd)
207     ac_prev=libdir ;;
208   -libdir=* | --libdir=* | --libdi=* | --libd=*)
209     libdir="$ac_optarg" ;;
210
211   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212   | --libexe | --libex | --libe)
213     ac_prev=libexecdir ;;
214   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215   | --libexe=* | --libex=* | --libe=*)
216     libexecdir="$ac_optarg" ;;
217
218   -localstatedir | --localstatedir | --localstatedi | --localstated \
219   | --localstate | --localstat | --localsta | --localst \
220   | --locals | --local | --loca | --loc | --lo)
221     ac_prev=localstatedir ;;
222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225     localstatedir="$ac_optarg" ;;
226
227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228     ac_prev=mandir ;;
229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230     mandir="$ac_optarg" ;;
231
232   -nfp | --nfp | --nf)
233     # Obsolete; use --without-fp.
234     with_fp=no ;;
235
236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237   | --no-cr | --no-c)
238     no_create=yes ;;
239
240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242     no_recursion=yes ;;
243
244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246   | --oldin | --oldi | --old | --ol | --o)
247     ac_prev=oldincludedir ;;
248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251     oldincludedir="$ac_optarg" ;;
252
253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254     ac_prev=prefix ;;
255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256     prefix="$ac_optarg" ;;
257
258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
259   | --program-pre | --program-pr | --program-p)
260     ac_prev=program_prefix ;;
261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263     program_prefix="$ac_optarg" ;;
264
265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
266   | --program-suf | --program-su | --program-s)
267     ac_prev=program_suffix ;;
268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270     program_suffix="$ac_optarg" ;;
271
272   -program-transform-name | --program-transform-name \
273   | --program-transform-nam | --program-transform-na \
274   | --program-transform-n | --program-transform- \
275   | --program-transform | --program-transfor \
276   | --program-transfo | --program-transf \
277   | --program-trans | --program-tran \
278   | --progr-tra | --program-tr | --program-t)
279     ac_prev=program_transform_name ;;
280   -program-transform-name=* | --program-transform-name=* \
281   | --program-transform-nam=* | --program-transform-na=* \
282   | --program-transform-n=* | --program-transform-=* \
283   | --program-transform=* | --program-transfor=* \
284   | --program-transfo=* | --program-transf=* \
285   | --program-trans=* | --program-tran=* \
286   | --progr-tra=* | --program-tr=* | --program-t=*)
287     program_transform_name="$ac_optarg" ;;
288
289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290   | -silent | --silent | --silen | --sile | --sil)
291     silent=yes ;;
292
293   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294     ac_prev=sbindir ;;
295   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296   | --sbi=* | --sb=*)
297     sbindir="$ac_optarg" ;;
298
299   -sharedstatedir | --sharedstatedir | --sharedstatedi \
300   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301   | --sharedst | --shareds | --shared | --share | --shar \
302   | --sha | --sh)
303     ac_prev=sharedstatedir ;;
304   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307   | --sha=* | --sh=*)
308     sharedstatedir="$ac_optarg" ;;
309
310   -site | --site | --sit)
311     ac_prev=site ;;
312   -site=* | --site=* | --sit=*)
313     site="$ac_optarg" ;;
314
315   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316     ac_prev=srcdir ;;
317   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318     srcdir="$ac_optarg" ;;
319
320   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321   | --syscon | --sysco | --sysc | --sys | --sy)
322     ac_prev=sysconfdir ;;
323   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325     sysconfdir="$ac_optarg" ;;
326
327   -target | --target | --targe | --targ | --tar | --ta | --t)
328     ac_prev=target ;;
329   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330     target="$ac_optarg" ;;
331
332   -v | -verbose | --verbose | --verbos | --verbo | --verb)
333     verbose=yes ;;
334
335   -version | --version | --versio | --versi | --vers)
336     echo "configure generated by autoconf version 2.12"
337     exit 0 ;;
338
339   -with-* | --with-*)
340     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341     # Reject names that are not valid shell variable names.
342     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344     fi
345     ac_package=`echo $ac_package| sed 's/-/_/g'`
346     case "$ac_option" in
347       *=*) ;;
348       *) ac_optarg=yes ;;
349     esac
350     eval "with_${ac_package}='$ac_optarg'" ;;
351
352   -without-* | --without-*)
353     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354     # Reject names that are not valid shell variable names.
355     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357     fi
358     ac_package=`echo $ac_package| sed 's/-/_/g'`
359     eval "with_${ac_package}=no" ;;
360
361   --x)
362     # Obsolete; use --with-x.
363     with_x=yes ;;
364
365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366   | --x-incl | --x-inc | --x-in | --x-i)
367     ac_prev=x_includes ;;
368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370     x_includes="$ac_optarg" ;;
371
372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374     ac_prev=x_libraries ;;
375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377     x_libraries="$ac_optarg" ;;
378
379   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380     ;;
381
382   *)
383     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384       echo "configure: warning: $ac_option: invalid host type" 1>&2
385     fi
386     if test "x$nonopt" != xNONE; then
387       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388     fi
389     nonopt="$ac_option"
390     ;;
391
392   esac
393 done
394
395 if test -n "$ac_prev"; then
396   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 fi
398
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401 # File descriptor usage:
402 # 0 standard input
403 # 1 file creation
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
410   exec 6>/dev/null
411 else
412   exec 6>&1
413 fi
414 exec 5>./config.log
415
416 echo "\
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
419 " 1>&5
420
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
423 ac_configure_args=
424 for ac_arg
425 do
426   case "$ac_arg" in
427   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428   | --no-cr | --no-c) ;;
429   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434   esac
435 done
436
437 # NLS nuisances.
438 # Only set these to C if already set.  These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
451
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=backend/access/common/heaptuple.c
455
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458   ac_srcdir_defaulted=yes
459   # Try the directory containing this script, then its parent.
460   ac_prog=$0
461   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463   srcdir=$ac_confdir
464   if test ! -r $srcdir/$ac_unique_file; then
465     srcdir=..
466   fi
467 else
468   ac_srcdir_defaulted=no
469 fi
470 if test ! -r $srcdir/$ac_unique_file; then
471   if test "$ac_srcdir_defaulted" = yes; then
472     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473   else
474     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475   fi
476 fi
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481   if test "x$prefix" != xNONE; then
482     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483   else
484     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485   fi
486 fi
487 for ac_site_file in $CONFIG_SITE; do
488   if test -r "$ac_site_file"; then
489     echo "loading site script $ac_site_file"
490     . "$ac_site_file"
491   fi
492 done
493
494 if test -r "$cache_file"; then
495   echo "loading cache $cache_file"
496   . $cache_file
497 else
498   echo "creating cache $cache_file"
499   > $cache_file
500 fi
501
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
508
509 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
510   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
511   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
512     ac_n= ac_c='
513 ' ac_t='        '
514   else
515     ac_n=-n ac_c= ac_t=
516   fi
517 else
518   ac_n= ac_c='\c' ac_t=
519 fi
520
521
522
523
524 ac_aux_dir=
525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526   if test -f $ac_dir/install-sh; then
527     ac_aux_dir=$ac_dir
528     ac_install_sh="$ac_aux_dir/install-sh -c"
529     break
530   elif test -f $ac_dir/install.sh; then
531     ac_aux_dir=$ac_dir
532     ac_install_sh="$ac_aux_dir/install.sh -c"
533     break
534   fi
535 done
536 if test -z "$ac_aux_dir"; then
537   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538 fi
539 ac_config_guess=$ac_aux_dir/config.guess
540 ac_config_sub=$ac_aux_dir/config.sub
541 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
542
543
544 # Make sure we can run config.sub.
545 if $ac_config_sub sun4 >/dev/null 2>&1; then :
546 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
547 fi
548
549 echo $ac_n "checking host system type""... $ac_c" 1>&6
550 echo "configure:551: checking host system type" >&5
551
552 host_alias=$host
553 case "$host_alias" in
554 NONE)
555   case $nonopt in
556   NONE)
557     if host_alias=`$ac_config_guess`; then :
558     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
559     fi ;;
560   *) host_alias=$nonopt ;;
561   esac ;;
562 esac
563
564 host=`$ac_config_sub $host_alias`
565 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
566 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
567 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
568 echo "$ac_t""$host" 1>&6
569
570 case "$host_os" in
571  solaris*)
572         case "$host_cpu" in
573           sparc) os=sparc_solaris ;;
574            i386) 
575               os=i386_solaris
576               
577               TAS=tas.o
578                ;;
579         esac ;;
580    sunos*) os=sunos4 ;;
581    linux*) os=linux ;;
582     bsdi*) os=bsdi ;;
583  freebsd*|netbsd*) os=bsd ;;
584     dgux*) os=dgux;;
585      aix*) os=aix ;;
586 nextstep*) os=nextstep;;
587   ultrix*) os=ultrix4;;
588     irix*) os=irix5;;
589     hpux*) os=hpux;;
590      osf*) os=alpha;;
591      sco*) os=sco;;
592  machten*) os=machten;;
593  sysv4.2*) 
594        case "$host_vendor" in
595                univel) os=univel;;
596                     *) os=unknown;;
597        esac ;;
598    sysv4*) os=svr4;;
599 *) echo ""
600    echo "*************************************************************"
601    echo "configure does not currently recognize your operating system,"
602    echo "therefore you must do a manual configuration of:"
603    echo "$host_os"
604    echo "Please contact scrappy@hub.org to see about rectifying this, "
605    echo "including the above 'checking host system type...' line "
606    echo "*************************************************************"
607    echo ""
608    exit;;
609 esac
610
611 PORTNAME=${os}
612
613
614
615  
616
617
618
619 echo "checking echo setting..."
620 if echo '\c' | grep -s c >/dev/null 2>&1
621 then
622         ECHO_N="echo -n"
623         ECHO_C=""
624 else
625         ECHO_N="echo"
626         ECHO_C='\c'
627 fi
628
629 cat <<EOT
630 **************************************************************
631         PostreSQL v6.2 Installation Program
632
633 Welcome to the new improved PostgreSQL installation program.
634 This configuration program is for version 6.2 of the
635 PostgreSQL software.
636
637 EOT
638
639
640 if test "X$with_template" != "X"
641 then
642         TEMPLATE=template/$with_template
643 else
644         TEMPLATE=DO_NOT_CHANGE_THIS_INVALID_FILENAME
645 fi
646
647 if test ! -f $TEMPLATE
648 then
649         cat <<EOT
650 Please select a template from the ones listed below.  If no
651 template is available, then select the 'generic' one and
652 consider emailling scrappy@hub.org with the above line which
653 starts 'checking host system type...'
654 **************************************************************
655 EOT
656         TEMPLATE=generic
657         GUESS=`grep "$host" template/.similar 2>/dev/null`
658         if test ! "$GUESS"
659         then    host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`
660                 GUESS=`grep "$host_no_ver" template/.similar 2>/dev/null`
661         fi
662         if test "$GUESS"
663         then
664                 TEMPLATE=`echo $GUESS | sed 's/.*=//'`
665         fi
666         export TEMPLATE
667         ls template
668         echo "**************************************************************"
669         $ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"
670         read a
671         if test "$a." != "."
672         then
673                 TEMPLATE=$a
674         fi
675         if test ! -f template/$TEMPLATE
676         then
677                 echo "You must choose an appropriate template file."
678                 exit
679         fi
680         TEMPLATE=template/$TEMPLATE 
681 fi
682 export TEMPLATE
683 echo ""
684
685 AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
686 SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
687 CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
688 SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`
689 SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`
690 USE_LOCALE=`grep '^USE_LOCALE:' $TEMPLATE | awk -F: '{print $2}'`
691 DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`
692 DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`
693 YACC=`grep '^YACC:' $TEMPLATE | awk -F: '{print $2}'`
694 YFLAGS=`grep '^YFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
695 CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`
696
697
698 echo "**************************************************************"
699 echo "We now need to know if your compiler needs to search any
700 echo "additional directories for include or library files.  If
701 echo "you don't know the answers to these questions, then just
702 echo "hit enter and we will try and figure it out.  If things
703 echo "don't compile because of missing libraries or include
704 echo "files, then you probably need to enter something here.
705 echo "enter 'none' or new directories to override default"
706 echo ""
707 $ECHO_N "Additional directories to search for include files { $SRCH_INC }: $ECHO_C"
708 if test "X$with_defaults" = "Xyes"
709 then
710         a=$SRCH_INC
711         echo ""
712 else
713         read a
714 fi
715 if test "$a." = "none." 
716 then
717         SRCH_INC=
718         CPPFLAGS=
719 else
720         if test "$a." = "."
721         then
722                 a=$SRCH_INC
723         fi
724         CPPFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
725
726 fi
727 export CPPFLAGS
728 echo "- setting CPPFLAGS=$CPPFLAGS"
729
730 $ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
731 if test "X$with_defaults" = "Xyes"
732 then
733         a=$SRCH_LIB
734         echo ""
735 else
736         read a
737 fi
738 if test "$a." = "none."
739 then
740         SRCH_LIB=
741         LDFLAGS=
742 else
743         if test "$a." = "."
744         then
745                 a=$SRCH_LIB
746         fi
747         LDFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
748
749 fi
750 export LDFLAGS
751 echo "- setting LDFLAGS=$LDFLAGS"
752
753 if test "$enable_locale" = "yes" -o "$enable_locale" = "no"
754 then
755         USE_LOCALE=$enable_locale
756 else
757         USE_LOCALE=no
758 fi
759 export USE_LOCALE
760
761 if test "X$with_pgport" != "X"
762 then
763         DEF_PGPORT=$with_pgport
764 else
765         DEF_PGPORT=5432
766 fi
767 export DEF_PGPORT
768
769 if test "X$with_tcl" = "Xyes"
770 then
771         USE_TCL=true
772 else
773         USE_TCL=
774 fi
775 export USE_TCL
776
777 if test "X$with_perl" = "Xyes"
778 then
779         USE_PERL=true
780 else
781         USE_PERL=
782 fi
783 export USE_PERL
784
785 if test "$enable_hba" = "yes" 
786 then
787         NOHBA=no
788 elif test "$enable_hba" = "no"
789 then
790         NOHBA=yes
791 else
792         NOHBA=no
793 fi
794 export NOHBA
795
796 echo ""
797
798 if test "$enable_cassert" = "no"
799 then
800         echo "-ASSERT CHECKING disabled"
801         cat >> confdefs.h <<\EOF
802 #define NO_ASSERT_CHECKING 1
803 EOF
804
805 elif test "$enable_cassert" = "yes"
806 then
807         echo "-ASSERT CHECKING enabled"
808 else
809         echo "-ASSERT CHECKING disabled"
810         cat >> confdefs.h <<\EOF
811 #define NO_ASSERT_CHECKING 1
812 EOF
813
814 fi
815
816 if test "X$with_compiler" != "X"
817 then
818         CC=$with_compiler
819 else
820         # Extract the first word of "gcc", so it can be a program name with args.
821 set dummy gcc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:823: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825   echo $ac_n "(cached) $ac_c" 1>&6
826 else
827   if test -n "$CC"; then
828   ac_cv_prog_CC="$CC" # Let the user override the test.
829 else
830   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
831   for ac_dir in $PATH; do
832     test -z "$ac_dir" && ac_dir=.
833     if test -f $ac_dir/$ac_word; then
834       ac_cv_prog_CC="gcc"
835       break
836     fi
837   done
838   IFS="$ac_save_ifs"
839 fi
840 fi
841 CC="$ac_cv_prog_CC"
842 if test -n "$CC"; then
843   echo "$ac_t""$CC" 1>&6
844 else
845   echo "$ac_t""no" 1>&6
846 fi
847
848 if test -z "$CC"; then
849   # Extract the first word of "cc", so it can be a program name with args.
850 set dummy cc; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:852: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854   echo $ac_n "(cached) $ac_c" 1>&6
855 else
856   if test -n "$CC"; then
857   ac_cv_prog_CC="$CC" # Let the user override the test.
858 else
859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
860   ac_prog_rejected=no
861   for ac_dir in $PATH; do
862     test -z "$ac_dir" && ac_dir=.
863     if test -f $ac_dir/$ac_word; then
864       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865         ac_prog_rejected=yes
866         continue
867       fi
868       ac_cv_prog_CC="cc"
869       break
870     fi
871   done
872   IFS="$ac_save_ifs"
873 if test $ac_prog_rejected = yes; then
874   # We found a bogon in the path, so make sure we never use it.
875   set dummy $ac_cv_prog_CC
876   shift
877   if test $# -gt 0; then
878     # We chose a different compiler from the bogus one.
879     # However, it has the same basename, so the bogon will be chosen
880     # first if we set CC to just the basename; use the full file name.
881     shift
882     set dummy "$ac_dir/$ac_word" "$@"
883     shift
884     ac_cv_prog_CC="$@"
885   fi
886 fi
887 fi
888 fi
889 CC="$ac_cv_prog_CC"
890 if test -n "$CC"; then
891   echo "$ac_t""$CC" 1>&6
892 else
893   echo "$ac_t""no" 1>&6
894 fi
895
896   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
897 fi
898
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
900 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
901
902 ac_ext=c
903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
904 ac_cpp='$CPP $CPPFLAGS'
905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
906 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
907 cross_compiling=$ac_cv_prog_cc_cross
908
909 cat > conftest.$ac_ext <<EOF
910 #line 910 "configure"
911 #include "confdefs.h"
912 main(){return(0);}
913 EOF
914 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
915   ac_cv_prog_cc_works=yes
916   # If we can't run a trivial program, we are probably using a cross compiler.
917   if (./conftest; exit) 2>/dev/null; then
918     ac_cv_prog_cc_cross=no
919   else
920     ac_cv_prog_cc_cross=yes
921   fi
922 else
923   echo "configure: failed program was:" >&5
924   cat conftest.$ac_ext >&5
925   ac_cv_prog_cc_works=no
926 fi
927 rm -fr conftest*
928
929 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
930 if test $ac_cv_prog_cc_works = no; then
931   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932 fi
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
934 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
935 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
936 cross_compiling=$ac_cv_prog_cc_cross
937
938 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
939 echo "configure:939: checking whether we are using GNU C" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   cat > conftest.c <<EOF
944 #ifdef __GNUC__
945   yes;
946 #endif
947 EOF
948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
949   ac_cv_prog_gcc=yes
950 else
951   ac_cv_prog_gcc=no
952 fi
953 fi
954
955 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956
957 if test $ac_cv_prog_gcc = yes; then
958   GCC=yes
959   ac_test_CFLAGS="${CFLAGS+set}"
960   ac_save_CFLAGS="$CFLAGS"
961   CFLAGS=
962   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
963 echo "configure:963: checking whether ${CC-cc} accepts -g" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   echo 'void f(){}' > conftest.c
968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
969   ac_cv_prog_cc_g=yes
970 else
971   ac_cv_prog_cc_g=no
972 fi
973 rm -f conftest*
974
975 fi
976
977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
978   if test "$ac_test_CFLAGS" = set; then
979     CFLAGS="$ac_save_CFLAGS"
980   elif test $ac_cv_prog_cc_g = yes; then
981     CFLAGS="-g -O2"
982   else
983     CFLAGS="-O2"
984   fi
985 else
986   GCC=
987   test "${CFLAGS+set}" = set || CFLAGS="-g"
988 fi
989
990 fi
991
992
993
994
995 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
996 echo "configure:996: checking how to run the C preprocessor" >&5
997 # On Suns, sometimes $CPP names a directory.
998 if test -n "$CPP" && test -d "$CPP"; then
999   CPP=
1000 fi
1001 if test -z "$CPP"; then
1002 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1003   echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005     # This must be in double quotes, not single quotes, because CPP may get
1006   # substituted into the Makefile and "${CC-cc}" will confuse make.
1007   CPP="${CC-cc} -E"
1008   # On the NeXT, cc -E runs the code through the compiler's parser,
1009   # not just through cpp.
1010   cat > conftest.$ac_ext <<EOF
1011 #line 1011 "configure"
1012 #include "confdefs.h"
1013 #include <assert.h>
1014 Syntax Error
1015 EOF
1016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1017 { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1018 ac_err=`grep -v '^ *+' conftest.out`
1019 if test -z "$ac_err"; then
1020   :
1021 else
1022   echo "$ac_err" >&5
1023   echo "configure: failed program was:" >&5
1024   cat conftest.$ac_ext >&5
1025   rm -rf conftest*
1026   CPP="${CC-cc} -E -traditional-cpp"
1027   cat > conftest.$ac_ext <<EOF
1028 #line 1028 "configure"
1029 #include "confdefs.h"
1030 #include <assert.h>
1031 Syntax Error
1032 EOF
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out`
1036 if test -z "$ac_err"; then
1037   :
1038 else
1039   echo "$ac_err" >&5
1040   echo "configure: failed program was:" >&5
1041   cat conftest.$ac_ext >&5
1042   rm -rf conftest*
1043   CPP=/lib/cpp
1044 fi
1045 rm -f conftest*
1046 fi
1047 rm -f conftest*
1048   ac_cv_prog_CPP="$CPP"
1049 fi
1050   CPP="$ac_cv_prog_CPP"
1051 else
1052   ac_cv_prog_CPP="$CPP"
1053 fi
1054 echo "$ac_t""$CPP" 1>&6
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068 HAVECXX='HAVE_Cplusplus=false'
1069
1070 INSTALLPATH="/usr/ucb:$PATH"
1071 for ac_prog in ginstall installbsd bsdinst scoinst install
1072 do
1073 # Extract the first word of "$ac_prog", so it can be a program name with args.
1074 set dummy $ac_prog; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1076: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
1078   echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080   case "$INSTALL" in
1081   /*)
1082   ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
1083   ;;
1084   *)
1085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086   for ac_dir in $INSTALLPATH$ac_dummy; do
1087     test -z "$ac_dir" && ac_dir=.
1088     if test -f $ac_dir/$ac_word; then
1089       ac_cv_path_INSTALL="$ac_dir/$ac_word"
1090       break
1091     fi
1092   done
1093   IFS="$ac_save_ifs"
1094   ;;
1095 esac
1096 fi
1097 INSTALL="$ac_cv_path_INSTALL"
1098 if test -n "$INSTALL"; then
1099   echo "$ac_t""$INSTALL" 1>&6
1100 else
1101   echo "$ac_t""no" 1>&6
1102 fi
1103
1104 test -n "$INSTALL" && break
1105 done
1106 test -n "$INSTALL" || INSTALL="NONE"
1107
1108 if test $INSTALL = "NONE"
1109 then
1110    echo "- No Install Script found - aborting."
1111    exit 0;
1112 fi
1113
1114 INSTLOPTS="-m 444"
1115 INSTL_EXE_OPTS="-m 555"
1116 INSTL_LIB_OPTS="-m 664"
1117
1118 case "`basename $INSTALL`" in
1119  install|installbsd|scoinst)
1120         INSTLOPTS="-c $INSTLOPTS"
1121         INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1122         INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS";;
1123 esac
1124
1125 echo "- Using $INSTALL"
1126
1127
1128
1129
1130
1131 ECHO_N_OUT=`echo -n "" | wc -c`
1132 ECHO_C_OUT=`echo "\c" | wc -c`
1133 if test "$ECHO_N_OUT" -eq 0; then
1134   DASH_N='-n'
1135   BACKSLASH_C=
1136 else
1137   if test "ECHO_C_OUT" -eq 0; then
1138     DASH_N=
1139     BACKSLASH_C='\\\\c'
1140   else
1141     { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
1142   fi
1143 fi
1144
1145
1146
1147 # Extract the first word of "flex", so it can be a program name with args.
1148 set dummy flex; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1150: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1152   echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154   if test -n "$LEX"; then
1155   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1156 else
1157   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1158   for ac_dir in $PATH; do
1159     test -z "$ac_dir" && ac_dir=.
1160     if test -f $ac_dir/$ac_word; then
1161       ac_cv_prog_LEX="flex"
1162       break
1163     fi
1164   done
1165   IFS="$ac_save_ifs"
1166   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1167 fi
1168 fi
1169 LEX="$ac_cv_prog_LEX"
1170 if test -n "$LEX"; then
1171   echo "$ac_t""$LEX" 1>&6
1172 else
1173   echo "$ac_t""no" 1>&6
1174 fi
1175
1176 if test -z "$LEXLIB"
1177 then
1178   case "$LEX" in
1179   flex*) ac_lib=fl ;;
1180   *) ac_lib=l ;;
1181   esac
1182   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1183 echo "configure:1183: checking for yywrap in -l$ac_lib" >&5
1184 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1186   echo $ac_n "(cached) $ac_c" 1>&6
1187 else
1188   ac_save_LIBS="$LIBS"
1189 LIBS="-l$ac_lib  $LIBS"
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1191 "configure"
1192 #include "confdefs.h"
1193 /* Override any gcc2 internal prototype to avoid an error.  */
1194 /* We use char because int might match the return type of a gcc2
1195     builtin and then its argument prototype would still apply.  */
1196 char yywrap();
1197
1198 int main() {
1199 yywrap()
1200 ; return 0; }
1201 EOF
1202 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1203   rm -rf conftest*
1204   eval "ac_cv_lib_$ac_lib_var=yes"
1205 else
1206   echo "configure: failed program was:" >&5
1207   cat conftest.$ac_ext >&5
1208   rm -rf conftest*
1209   eval "ac_cv_lib_$ac_lib_var=no"
1210 fi
1211 rm -f conftest*
1212 LIBS="$ac_save_LIBS"
1213
1214 fi
1215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1216   echo "$ac_t""yes" 1>&6
1217   LEXLIB="-l$ac_lib"
1218 else
1219   echo "$ac_t""no" 1>&6
1220 fi
1221
1222 fi
1223
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1225: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   rm -f conftestdata
1230 if ln -s X conftestdata 2>/dev/null
1231 then
1232   rm -f conftestdata
1233   ac_cv_prog_LN_S="ln -s"
1234 else
1235   ac_cv_prog_LN_S=ln
1236 fi
1237 fi
1238 LN_S="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240   echo "$ac_t""yes" 1>&6
1241 else
1242   echo "$ac_t""no" 1>&6
1243 fi
1244
1245 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1246 echo "configure:1246: checking whether ${MAKE-make} sets \${MAKE}" >&5
1247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1248 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1249   echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251   cat > conftestmake <<\EOF
1252 all:
1253         @echo 'ac_maketemp="${MAKE}"'
1254 EOF
1255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1256 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1257 if test -n "$ac_maketemp"; then
1258   eval ac_cv_prog_make_${ac_make}_set=yes
1259 else
1260   eval ac_cv_prog_make_${ac_make}_set=no
1261 fi
1262 rm -f conftestmake
1263 fi
1264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1265   echo "$ac_t""yes" 1>&6
1266   SET_MAKE=
1267 else
1268   echo "$ac_t""no" 1>&6
1269   SET_MAKE="MAKE=${MAKE-make}"
1270 fi
1271
1272 # Extract the first word of "ranlib", so it can be a program name with args.
1273 set dummy ranlib; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1275: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1277   echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279   if test -n "$RANLIB"; then
1280   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1281 else
1282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1283   for ac_dir in $PATH; do
1284     test -z "$ac_dir" && ac_dir=.
1285     if test -f $ac_dir/$ac_word; then
1286       ac_cv_prog_RANLIB="ranlib"
1287       break
1288     fi
1289   done
1290   IFS="$ac_save_ifs"
1291   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1292 fi
1293 fi
1294 RANLIB="$ac_cv_prog_RANLIB"
1295 if test -n "$RANLIB"; then
1296   echo "$ac_t""$RANLIB" 1>&6
1297 else
1298   echo "$ac_t""no" 1>&6
1299 fi
1300
1301 # Extract the first word of "find", so it can be a program name with args.
1302 set dummy find; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1304: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   case "$find" in
1309   /*)
1310   ac_cv_path_find="$find" # Let the user override the test with a path.
1311   ;;
1312   *)
1313   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1314   for ac_dir in $PATH; do
1315     test -z "$ac_dir" && ac_dir=.
1316     if test -f $ac_dir/$ac_word; then
1317       ac_cv_path_find="$ac_dir/$ac_word"
1318       break
1319     fi
1320   done
1321   IFS="$ac_save_ifs"
1322   ;;
1323 esac
1324 fi
1325 find="$ac_cv_path_find"
1326 if test -n "$find"; then
1327   echo "$ac_t""$find" 1>&6
1328 else
1329   echo "$ac_t""no" 1>&6
1330 fi
1331
1332 # Extract the first word of "tar", so it can be a program name with args.
1333 set dummy tar; ac_word=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1335: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
1337   echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339   case "$tar" in
1340   /*)
1341   ac_cv_path_tar="$tar" # Let the user override the test with a path.
1342   ;;
1343   *)
1344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1345   for ac_dir in $PATH; do
1346     test -z "$ac_dir" && ac_dir=.
1347     if test -f $ac_dir/$ac_word; then
1348       ac_cv_path_tar="$ac_dir/$ac_word"
1349       break
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353   ;;
1354 esac
1355 fi
1356 tar="$ac_cv_path_tar"
1357 if test -n "$tar"; then
1358   echo "$ac_t""$tar" 1>&6
1359 else
1360   echo "$ac_t""no" 1>&6
1361 fi
1362
1363 # Extract the first word of "split", so it can be a program name with args.
1364 set dummy split; ac_word=$2
1365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1366 echo "configure:1366: checking for $ac_word" >&5
1367 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
1368   echo $ac_n "(cached) $ac_c" 1>&6
1369 else
1370   case "$split" in
1371   /*)
1372   ac_cv_path_split="$split" # Let the user override the test with a path.
1373   ;;
1374   *)
1375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1376   for ac_dir in $PATH; do
1377     test -z "$ac_dir" && ac_dir=.
1378     if test -f $ac_dir/$ac_word; then
1379       ac_cv_path_split="$ac_dir/$ac_word"
1380       break
1381     fi
1382   done
1383   IFS="$ac_save_ifs"
1384   ;;
1385 esac
1386 fi
1387 split="$ac_cv_path_split"
1388 if test -n "$split"; then
1389   echo "$ac_t""$split" 1>&6
1390 else
1391   echo "$ac_t""no" 1>&6
1392 fi
1393
1394 # Extract the first word of "etags", so it can be a program name with args.
1395 set dummy etags; ac_word=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1397: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
1399   echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401   case "$etags" in
1402   /*)
1403   ac_cv_path_etags="$etags" # Let the user override the test with a path.
1404   ;;
1405   *)
1406   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1407   for ac_dir in $PATH; do
1408     test -z "$ac_dir" && ac_dir=.
1409     if test -f $ac_dir/$ac_word; then
1410       ac_cv_path_etags="$ac_dir/$ac_word"
1411       break
1412     fi
1413   done
1414   IFS="$ac_save_ifs"
1415   ;;
1416 esac
1417 fi
1418 etags="$ac_cv_path_etags"
1419 if test -n "$etags"; then
1420   echo "$ac_t""$etags" 1>&6
1421 else
1422   echo "$ac_t""no" 1>&6
1423 fi
1424
1425 # Extract the first word of "xargs", so it can be a program name with args.
1426 set dummy xargs; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1428: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
1430   echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432   case "$xargs" in
1433   /*)
1434   ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
1435   ;;
1436   *)
1437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1438   for ac_dir in $PATH; do
1439     test -z "$ac_dir" && ac_dir=.
1440     if test -f $ac_dir/$ac_word; then
1441       ac_cv_path_xargs="$ac_dir/$ac_word"
1442       break
1443     fi
1444   done
1445   IFS="$ac_save_ifs"
1446   ;;
1447 esac
1448 fi
1449 xargs="$ac_cv_path_xargs"
1450 if test -n "$xargs"; then
1451   echo "$ac_t""$xargs" 1>&6
1452 else
1453   echo "$ac_t""no" 1>&6
1454 fi
1455
1456 # Extract the first word of "ipcs", so it can be a program name with args.
1457 set dummy ipcs; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1459: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1461   echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463   case "$ipcs" in
1464   /*)
1465   ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1466   ;;
1467   *)
1468   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469   for ac_dir in $PATH; do
1470     test -z "$ac_dir" && ac_dir=.
1471     if test -f $ac_dir/$ac_word; then
1472       ac_cv_path_ipcs="$ac_dir/$ac_word"
1473       break
1474     fi
1475   done
1476   IFS="$ac_save_ifs"
1477   ;;
1478 esac
1479 fi
1480 ipcs="$ac_cv_path_ipcs"
1481 if test -n "$ipcs"; then
1482   echo "$ac_t""$ipcs" 1>&6
1483 else
1484   echo "$ac_t""no" 1>&6
1485 fi
1486
1487 # Extract the first word of "ipcrm", so it can be a program name with args.
1488 set dummy ipcrm; ac_word=$2
1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1490 echo "configure:1490: checking for $ac_word" >&5
1491 if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1492   echo $ac_n "(cached) $ac_c" 1>&6
1493 else
1494   case "$ipcrm" in
1495   /*)
1496   ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1497   ;;
1498   *)
1499   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1500   for ac_dir in $PATH; do
1501     test -z "$ac_dir" && ac_dir=.
1502     if test -f $ac_dir/$ac_word; then
1503       ac_cv_path_ipcrm="$ac_dir/$ac_word"
1504       break
1505     fi
1506   done
1507   IFS="$ac_save_ifs"
1508   ;;
1509 esac
1510 fi
1511 ipcrm="$ac_cv_path_ipcrm"
1512 if test -n "$ipcrm"; then
1513   echo "$ac_t""$ipcrm" 1>&6
1514 else
1515   echo "$ac_t""no" 1>&6
1516 fi
1517
1518 for ac_prog in trbsd tr
1519 do
1520 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1523: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1525   echo $ac_n "(cached) $ac_c" 1>&6
1526 else
1527   case "$TR" in
1528   /*)
1529   ac_cv_path_TR="$TR" # Let the user override the test with a path.
1530   ;;
1531   *)
1532   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1533   for ac_dir in $PATH; do
1534     test -z "$ac_dir" && ac_dir=.
1535     if test -f $ac_dir/$ac_word; then
1536       ac_cv_path_TR="$ac_dir/$ac_word"
1537       break
1538     fi
1539   done
1540   IFS="$ac_save_ifs"
1541   ;;
1542 esac
1543 fi
1544 TR="$ac_cv_path_TR"
1545 if test -n "$TR"; then
1546   echo "$ac_t""$TR" 1>&6
1547 else
1548   echo "$ac_t""no" 1>&6
1549 fi
1550
1551 test -n "$TR" && break
1552 done
1553 test -n "$TR" || TR="NOT_FOUND"
1554
1555
1556 TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
1557 TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1558
1559 if test "$TRSTRINGS" = "ABCDEF"; then
1560   TRARGS="'[a-z]' '[A-Z]'"
1561 elif test "$TRCLASS" = "ABCDEF"; then
1562   TRARGS="'[:lower:]' '[:upper:]'"
1563 else
1564   { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; }
1565 fi
1566
1567
1568
1569
1570
1571 # Extract the first word of "yacc", so it can be a program name with args.
1572 set dummy yacc; ac_word=$2
1573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1574 echo "configure:1574: checking for $ac_word" >&5
1575 if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
1576   echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578   case "$yacc" in
1579   /*)
1580   ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
1581   ;;
1582   *)
1583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1584   for ac_dir in $PATH; do
1585     test -z "$ac_dir" && ac_dir=.
1586     if test -f $ac_dir/$ac_word; then
1587       ac_cv_path_yacc="$ac_dir/$ac_word"
1588       break
1589     fi
1590   done
1591   IFS="$ac_save_ifs"
1592   ;;
1593 esac
1594 fi
1595 yacc="$ac_cv_path_yacc"
1596 if test -n "$yacc"; then
1597   echo "$ac_t""$yacc" 1>&6
1598 else
1599   echo "$ac_t""no" 1>&6
1600 fi
1601
1602 # Extract the first word of "bison", so it can be a program name with args.
1603 set dummy bison; ac_word=$2
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605 echo "configure:1605: checking for $ac_word" >&5
1606 if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
1607   echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609   case "$bison" in
1610   /*)
1611   ac_cv_path_bison="$bison" # Let the user override the test with a path.
1612   ;;
1613   *)
1614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1615   for ac_dir in $PATH; do
1616     test -z "$ac_dir" && ac_dir=.
1617     if test -f $ac_dir/$ac_word; then
1618       ac_cv_path_bison="$ac_dir/$ac_word"
1619       break
1620     fi
1621   done
1622   IFS="$ac_save_ifs"
1623   ;;
1624 esac
1625 fi
1626 bison="$ac_cv_path_bison"
1627 if test -n "$bison"; then
1628   echo "$ac_t""$bison" 1>&6
1629 else
1630   echo "$ac_t""no" 1>&6
1631 fi
1632
1633 if test -f "$YACC" 
1634 then
1635         echo "- Using $YACC $YFLAGS"
1636 elif test -f "$bison"
1637 then
1638         echo "- Using $bison -y $YFLAGS"
1639         YACC="$bison"
1640         YFLAGS="-y $YFLAGS"
1641         export YACC YFLAGS
1642 else
1643         echo "- Using $yacc $YFLAGS"
1644         YACC="$yacc"
1645         export YACC
1646 fi
1647
1648 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1649 echo "configure:1649: checking for main in -lcurses" >&5
1650 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1652   echo $ac_n "(cached) $ac_c" 1>&6
1653 else
1654   ac_save_LIBS="$LIBS"
1655 LIBS="-lcurses  $LIBS"
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1657 "configure"
1658 #include "confdefs.h"
1659
1660 int main() {
1661 main()
1662 ; return 0; }
1663 EOF
1664 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1665   rm -rf conftest*
1666   eval "ac_cv_lib_$ac_lib_var=yes"
1667 else
1668   echo "configure: failed program was:" >&5
1669   cat conftest.$ac_ext >&5
1670   rm -rf conftest*
1671   eval "ac_cv_lib_$ac_lib_var=no"
1672 fi
1673 rm -f conftest*
1674 LIBS="$ac_save_LIBS"
1675
1676 fi
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678   echo "$ac_t""yes" 1>&6
1679     ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1680     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1681   cat >> confdefs.h <<EOF
1682 #define $ac_tr_lib 1
1683 EOF
1684
1685   LIBS="-lcurses $LIBS"
1686
1687 else
1688   echo "$ac_t""no" 1>&6
1689 fi
1690
1691 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
1692 echo "configure:1692: checking for main in -ltermcap" >&5
1693 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
1694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1695   echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697   ac_save_LIBS="$LIBS"
1698 LIBS="-ltermcap  $LIBS"
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1702
1703 int main() {
1704 main()
1705 ; return 0; }
1706 EOF
1707 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1708   rm -rf conftest*
1709   eval "ac_cv_lib_$ac_lib_var=yes"
1710 else
1711   echo "configure: failed program was:" >&5
1712   cat conftest.$ac_ext >&5
1713   rm -rf conftest*
1714   eval "ac_cv_lib_$ac_lib_var=no"
1715 fi
1716 rm -f conftest*
1717 LIBS="$ac_save_LIBS"
1718
1719 fi
1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721   echo "$ac_t""yes" 1>&6
1722     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1723     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1724   cat >> confdefs.h <<EOF
1725 #define $ac_tr_lib 1
1726 EOF
1727
1728   LIBS="-ltermcap $LIBS"
1729
1730 else
1731   echo "$ac_t""no" 1>&6
1732 fi
1733
1734 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
1735 echo "configure:1735: checking for main in -lhistory" >&5
1736 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
1737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738   echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740   ac_save_LIBS="$LIBS"
1741 LIBS="-lhistory  $LIBS"
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1743 "configure"
1744 #include "confdefs.h"
1745
1746 int main() {
1747 main()
1748 ; return 0; }
1749 EOF
1750 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1751   rm -rf conftest*
1752   eval "ac_cv_lib_$ac_lib_var=yes"
1753 else
1754   echo "configure: failed program was:" >&5
1755   cat conftest.$ac_ext >&5
1756   rm -rf conftest*
1757   eval "ac_cv_lib_$ac_lib_var=no"
1758 fi
1759 rm -f conftest*
1760 LIBS="$ac_save_LIBS"
1761
1762 fi
1763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1764   echo "$ac_t""yes" 1>&6
1765     ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1766     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1767   cat >> confdefs.h <<EOF
1768 #define $ac_tr_lib 1
1769 EOF
1770
1771   LIBS="-lhistory $LIBS"
1772
1773 else
1774   echo "$ac_t""no" 1>&6
1775 fi
1776
1777 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1778 echo "configure:1778: checking for main in -lreadline" >&5
1779 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1781   echo $ac_n "(cached) $ac_c" 1>&6
1782 else
1783   ac_save_LIBS="$LIBS"
1784 LIBS="-lreadline  $LIBS"
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1786 "configure"
1787 #include "confdefs.h"
1788
1789 int main() {
1790 main()
1791 ; return 0; }
1792 EOF
1793 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1794   rm -rf conftest*
1795   eval "ac_cv_lib_$ac_lib_var=yes"
1796 else
1797   echo "configure: failed program was:" >&5
1798   cat conftest.$ac_ext >&5
1799   rm -rf conftest*
1800   eval "ac_cv_lib_$ac_lib_var=no"
1801 fi
1802 rm -f conftest*
1803 LIBS="$ac_save_LIBS"
1804
1805 fi
1806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1807   echo "$ac_t""yes" 1>&6
1808     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1809     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1810   cat >> confdefs.h <<EOF
1811 #define $ac_tr_lib 1
1812 EOF
1813
1814   LIBS="-lreadline $LIBS"
1815
1816 else
1817   echo "$ac_t""no" 1>&6
1818 fi
1819
1820 echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
1821 echo "configure:1821: checking for write_history in -lreadline" >&5
1822 ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
1823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1824   echo $ac_n "(cached) $ac_c" 1>&6
1825 else
1826   ac_save_LIBS="$LIBS"
1827 LIBS="-lreadline  $LIBS"
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1829 "configure"
1830 #include "confdefs.h"
1831 /* Override any gcc2 internal prototype to avoid an error.  */
1832 /* We use char because int might match the return type of a gcc2
1833     builtin and then its argument prototype would still apply.  */
1834 char write_history();
1835
1836 int main() {
1837 write_history()
1838 ; return 0; }
1839 EOF
1840 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1841   rm -rf conftest*
1842   eval "ac_cv_lib_$ac_lib_var=yes"
1843 else
1844   echo "configure: failed program was:" >&5
1845   cat conftest.$ac_ext >&5
1846   rm -rf conftest*
1847   eval "ac_cv_lib_$ac_lib_var=no"
1848 fi
1849 rm -f conftest*
1850 LIBS="$ac_save_LIBS"
1851
1852 fi
1853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1854   echo "$ac_t""yes" 1>&6
1855   cat >> confdefs.h <<\EOF
1856 #define HAVE_HISTORY 1
1857 EOF
1858
1859 else
1860   echo "$ac_t""no" 1>&6
1861 fi
1862
1863 if test "$PORTNAME" != "aix"
1864 then
1865         echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1866 echo "configure:1866: checking for main in -lbsd" >&5
1867 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
1868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1869   echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871   ac_save_LIBS="$LIBS"
1872 LIBS="-lbsd  $LIBS"
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1874 "configure"
1875 #include "confdefs.h"
1876
1877 int main() {
1878 main()
1879 ; return 0; }
1880 EOF
1881 if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1882   rm -rf conftest*
1883   eval "ac_cv_lib_$ac_lib_var=yes"
1884 else
1885   echo "configure: failed program was:" >&5
1886   cat conftest.$ac_ext >&5
1887   rm -rf conftest*
1888   eval "ac_cv_lib_$ac_lib_var=no"
1889 fi
1890 rm -f conftest*
1891 LIBS="$ac_save_LIBS"
1892
1893 fi
1894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1895   echo "$ac_t""yes" 1>&6
1896     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1897     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1898   cat >> confdefs.h <<EOF
1899 #define $ac_tr_lib 1
1900 EOF
1901
1902   LIBS="-lbsd $LIBS"
1903
1904 else
1905   echo "$ac_t""no" 1>&6
1906 fi
1907
1908 fi
1909 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1910 echo "configure:1910: checking for main in -lm" >&5
1911 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1913   echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915   ac_save_LIBS="$LIBS"
1916 LIBS="-lm  $LIBS"
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1920
1921 int main() {
1922 main()
1923 ; return 0; }
1924 EOF
1925 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1926   rm -rf conftest*
1927   eval "ac_cv_lib_$ac_lib_var=yes"
1928 else
1929   echo "configure: failed program was:" >&5
1930   cat conftest.$ac_ext >&5
1931   rm -rf conftest*
1932   eval "ac_cv_lib_$ac_lib_var=no"
1933 fi
1934 rm -f conftest*
1935 LIBS="$ac_save_LIBS"
1936
1937 fi
1938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939   echo "$ac_t""yes" 1>&6
1940     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1941     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1942   cat >> confdefs.h <<EOF
1943 #define $ac_tr_lib 1
1944 EOF
1945
1946   LIBS="-lm $LIBS"
1947
1948 else
1949   echo "$ac_t""no" 1>&6
1950 fi
1951
1952 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1953 echo "configure:1953: checking for main in -ldl" >&5
1954 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956   echo $ac_n "(cached) $ac_c" 1>&6
1957 else
1958   ac_save_LIBS="$LIBS"
1959 LIBS="-ldl  $LIBS"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1961 "configure"
1962 #include "confdefs.h"
1963
1964 int main() {
1965 main()
1966 ; return 0; }
1967 EOF
1968 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969   rm -rf conftest*
1970   eval "ac_cv_lib_$ac_lib_var=yes"
1971 else
1972   echo "configure: failed program was:" >&5
1973   cat conftest.$ac_ext >&5
1974   rm -rf conftest*
1975   eval "ac_cv_lib_$ac_lib_var=no"
1976 fi
1977 rm -f conftest*
1978 LIBS="$ac_save_LIBS"
1979
1980 fi
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982   echo "$ac_t""yes" 1>&6
1983     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985   cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1987 EOF
1988
1989   LIBS="-ldl $LIBS"
1990
1991 else
1992   echo "$ac_t""no" 1>&6
1993 fi
1994
1995 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1996 echo "configure:1996: checking for main in -lsocket" >&5
1997 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999   echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001   ac_save_LIBS="$LIBS"
2002 LIBS="-lsocket  $LIBS"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2006
2007 int main() {
2008 main()
2009 ; return 0; }
2010 EOF
2011 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2012   rm -rf conftest*
2013   eval "ac_cv_lib_$ac_lib_var=yes"
2014 else
2015   echo "configure: failed program was:" >&5
2016   cat conftest.$ac_ext >&5
2017   rm -rf conftest*
2018   eval "ac_cv_lib_$ac_lib_var=no"
2019 fi
2020 rm -f conftest*
2021 LIBS="$ac_save_LIBS"
2022
2023 fi
2024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2025   echo "$ac_t""yes" 1>&6
2026     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2027     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2028   cat >> confdefs.h <<EOF
2029 #define $ac_tr_lib 1
2030 EOF
2031
2032   LIBS="-lsocket $LIBS"
2033
2034 else
2035   echo "$ac_t""no" 1>&6
2036 fi
2037
2038 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2039 echo "configure:2039: checking for main in -lnsl" >&5
2040 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2042   echo $ac_n "(cached) $ac_c" 1>&6
2043 else
2044   ac_save_LIBS="$LIBS"
2045 LIBS="-lnsl  $LIBS"
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2047 "configure"
2048 #include "confdefs.h"
2049
2050 int main() {
2051 main()
2052 ; return 0; }
2053 EOF
2054 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2055   rm -rf conftest*
2056   eval "ac_cv_lib_$ac_lib_var=yes"
2057 else
2058   echo "configure: failed program was:" >&5
2059   cat conftest.$ac_ext >&5
2060   rm -rf conftest*
2061   eval "ac_cv_lib_$ac_lib_var=no"
2062 fi
2063 rm -f conftest*
2064 LIBS="$ac_save_LIBS"
2065
2066 fi
2067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2068   echo "$ac_t""yes" 1>&6
2069     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2070     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2071   cat >> confdefs.h <<EOF
2072 #define $ac_tr_lib 1
2073 EOF
2074
2075   LIBS="-lnsl $LIBS"
2076
2077 else
2078   echo "$ac_t""no" 1>&6
2079 fi
2080
2081 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
2082 echo "configure:2082: checking for main in -lipc" >&5
2083 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085   echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087   ac_save_LIBS="$LIBS"
2088 LIBS="-lipc  $LIBS"
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2092
2093 int main() {
2094 main()
2095 ; return 0; }
2096 EOF
2097 if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2098   rm -rf conftest*
2099   eval "ac_cv_lib_$ac_lib_var=yes"
2100 else
2101   echo "configure: failed program was:" >&5
2102   cat conftest.$ac_ext >&5
2103   rm -rf conftest*
2104   eval "ac_cv_lib_$ac_lib_var=no"
2105 fi
2106 rm -f conftest*
2107 LIBS="$ac_save_LIBS"
2108
2109 fi
2110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2111   echo "$ac_t""yes" 1>&6
2112     ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2113     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2114   cat >> confdefs.h <<EOF
2115 #define $ac_tr_lib 1
2116 EOF
2117
2118   LIBS="-lipc $LIBS"
2119
2120 else
2121   echo "$ac_t""no" 1>&6
2122 fi
2123
2124 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
2125 echo "configure:2125: checking for main in -lIPC" >&5
2126 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2128   echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130   ac_save_LIBS="$LIBS"
2131 LIBS="-lIPC  $LIBS"
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2133 "configure"
2134 #include "confdefs.h"
2135
2136 int main() {
2137 main()
2138 ; return 0; }
2139 EOF
2140 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2141   rm -rf conftest*
2142   eval "ac_cv_lib_$ac_lib_var=yes"
2143 else
2144   echo "configure: failed program was:" >&5
2145   cat conftest.$ac_ext >&5
2146   rm -rf conftest*
2147   eval "ac_cv_lib_$ac_lib_var=no"
2148 fi
2149 rm -f conftest*
2150 LIBS="$ac_save_LIBS"
2151
2152 fi
2153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2154   echo "$ac_t""yes" 1>&6
2155     ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2156     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2157   cat >> confdefs.h <<EOF
2158 #define $ac_tr_lib 1
2159 EOF
2160
2161   LIBS="-lIPC $LIBS"
2162
2163 else
2164   echo "$ac_t""no" 1>&6
2165 fi
2166
2167 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
2168 echo "configure:2168: checking for main in -llc" >&5
2169 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171   echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173   ac_save_LIBS="$LIBS"
2174 LIBS="-llc  $LIBS"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2176 "configure"
2177 #include "confdefs.h"
2178
2179 int main() {
2180 main()
2181 ; return 0; }
2182 EOF
2183 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2184   rm -rf conftest*
2185   eval "ac_cv_lib_$ac_lib_var=yes"
2186 else
2187   echo "configure: failed program was:" >&5
2188   cat conftest.$ac_ext >&5
2189   rm -rf conftest*
2190   eval "ac_cv_lib_$ac_lib_var=no"
2191 fi
2192 rm -f conftest*
2193 LIBS="$ac_save_LIBS"
2194
2195 fi
2196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2197   echo "$ac_t""yes" 1>&6
2198     ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2199     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2200   cat >> confdefs.h <<EOF
2201 #define $ac_tr_lib 1
2202 EOF
2203
2204   LIBS="-llc $LIBS"
2205
2206 else
2207   echo "$ac_t""no" 1>&6
2208 fi
2209
2210 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
2211 echo "configure:2211: checking for main in -ldld" >&5
2212 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2214   echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216   ac_save_LIBS="$LIBS"
2217 LIBS="-ldld  $LIBS"
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2219 "configure"
2220 #include "confdefs.h"
2221
2222 int main() {
2223 main()
2224 ; return 0; }
2225 EOF
2226 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2227   rm -rf conftest*
2228   eval "ac_cv_lib_$ac_lib_var=yes"
2229 else
2230   echo "configure: failed program was:" >&5
2231   cat conftest.$ac_ext >&5
2232   rm -rf conftest*
2233   eval "ac_cv_lib_$ac_lib_var=no"
2234 fi
2235 rm -f conftest*
2236 LIBS="$ac_save_LIBS"
2237
2238 fi
2239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2240   echo "$ac_t""yes" 1>&6
2241     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2242     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2243   cat >> confdefs.h <<EOF
2244 #define $ac_tr_lib 1
2245 EOF
2246
2247   LIBS="-ldld $LIBS"
2248
2249 else
2250   echo "$ac_t""no" 1>&6
2251 fi
2252
2253 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
2254 echo "configure:2254: checking for main in -lln" >&5
2255 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2257   echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259   ac_save_LIBS="$LIBS"
2260 LIBS="-lln  $LIBS"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2262 "configure"
2263 #include "confdefs.h"
2264
2265 int main() {
2266 main()
2267 ; return 0; }
2268 EOF
2269 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2270   rm -rf conftest*
2271   eval "ac_cv_lib_$ac_lib_var=yes"
2272 else
2273   echo "configure: failed program was:" >&5
2274   cat conftest.$ac_ext >&5
2275   rm -rf conftest*
2276   eval "ac_cv_lib_$ac_lib_var=no"
2277 fi
2278 rm -f conftest*
2279 LIBS="$ac_save_LIBS"
2280
2281 fi
2282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283   echo "$ac_t""yes" 1>&6
2284     ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2285     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2286   cat >> confdefs.h <<EOF
2287 #define $ac_tr_lib 1
2288 EOF
2289
2290   LIBS="-lln $LIBS"
2291
2292 else
2293   echo "$ac_t""no" 1>&6
2294 fi
2295
2296 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
2297 echo "configure:2297: checking for main in -lld" >&5
2298 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2300   echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302   ac_save_LIBS="$LIBS"
2303 LIBS="-lld  $LIBS"
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2307
2308 int main() {
2309 main()
2310 ; return 0; }
2311 EOF
2312 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2313   rm -rf conftest*
2314   eval "ac_cv_lib_$ac_lib_var=yes"
2315 else
2316   echo "configure: failed program was:" >&5
2317   cat conftest.$ac_ext >&5
2318   rm -rf conftest*
2319   eval "ac_cv_lib_$ac_lib_var=no"
2320 fi
2321 rm -f conftest*
2322 LIBS="$ac_save_LIBS"
2323
2324 fi
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326   echo "$ac_t""yes" 1>&6
2327     ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2328     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2329   cat >> confdefs.h <<EOF
2330 #define $ac_tr_lib 1
2331 EOF
2332
2333   LIBS="-lld $LIBS"
2334
2335 else
2336   echo "$ac_t""no" 1>&6
2337 fi
2338
2339 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
2340 echo "configure:2340: checking for main in -lcompat" >&5
2341 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2343   echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345   ac_save_LIBS="$LIBS"
2346 LIBS="-lcompat  $LIBS"
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2348 "configure"
2349 #include "confdefs.h"
2350
2351 int main() {
2352 main()
2353 ; return 0; }
2354 EOF
2355 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2356   rm -rf conftest*
2357   eval "ac_cv_lib_$ac_lib_var=yes"
2358 else
2359   echo "configure: failed program was:" >&5
2360   cat conftest.$ac_ext >&5
2361   rm -rf conftest*
2362   eval "ac_cv_lib_$ac_lib_var=no"
2363 fi
2364 rm -f conftest*
2365 LIBS="$ac_save_LIBS"
2366
2367 fi
2368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2369   echo "$ac_t""yes" 1>&6
2370     ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2371     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2372   cat >> confdefs.h <<EOF
2373 #define $ac_tr_lib 1
2374 EOF
2375
2376   LIBS="-lcompat $LIBS"
2377
2378 else
2379   echo "$ac_t""no" 1>&6
2380 fi
2381
2382 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
2383 echo "configure:2383: checking for main in -lBSD" >&5
2384 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2386   echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388   ac_save_LIBS="$LIBS"
2389 LIBS="-lBSD  $LIBS"
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2391 "configure"
2392 #include "confdefs.h"
2393
2394 int main() {
2395 main()
2396 ; return 0; }
2397 EOF
2398 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2399   rm -rf conftest*
2400   eval "ac_cv_lib_$ac_lib_var=yes"
2401 else
2402   echo "configure: failed program was:" >&5
2403   cat conftest.$ac_ext >&5
2404   rm -rf conftest*
2405   eval "ac_cv_lib_$ac_lib_var=no"
2406 fi
2407 rm -f conftest*
2408 LIBS="$ac_save_LIBS"
2409
2410 fi
2411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2412   echo "$ac_t""yes" 1>&6
2413     ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2414     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2415   cat >> confdefs.h <<EOF
2416 #define $ac_tr_lib 1
2417 EOF
2418
2419   LIBS="-lBSD $LIBS"
2420
2421 else
2422   echo "$ac_t""no" 1>&6
2423 fi
2424
2425 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2426 echo "configure:2426: checking for main in -lcrypt" >&5
2427 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429   echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431   ac_save_LIBS="$LIBS"
2432 LIBS="-lcrypt  $LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2436
2437 int main() {
2438 main()
2439 ; return 0; }
2440 EOF
2441 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2442   rm -rf conftest*
2443   eval "ac_cv_lib_$ac_lib_var=yes"
2444 else
2445   echo "configure: failed program was:" >&5
2446   cat conftest.$ac_ext >&5
2447   rm -rf conftest*
2448   eval "ac_cv_lib_$ac_lib_var=no"
2449 fi
2450 rm -f conftest*
2451 LIBS="$ac_save_LIBS"
2452
2453 fi
2454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2455   echo "$ac_t""yes" 1>&6
2456     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2457     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2458   cat >> confdefs.h <<EOF
2459 #define $ac_tr_lib 1
2460 EOF
2461
2462   LIBS="-lcrypt $LIBS"
2463
2464 else
2465   echo "$ac_t""no" 1>&6
2466 fi
2467
2468 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2469 echo "configure:2469: checking for main in -lgen" >&5
2470 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   ac_save_LIBS="$LIBS"
2475 LIBS="-lgen  $LIBS"
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2477 "configure"
2478 #include "confdefs.h"
2479
2480 int main() {
2481 main()
2482 ; return 0; }
2483 EOF
2484 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2485   rm -rf conftest*
2486   eval "ac_cv_lib_$ac_lib_var=yes"
2487 else
2488   echo "configure: failed program was:" >&5
2489   cat conftest.$ac_ext >&5
2490   rm -rf conftest*
2491   eval "ac_cv_lib_$ac_lib_var=no"
2492 fi
2493 rm -f conftest*
2494 LIBS="$ac_save_LIBS"
2495
2496 fi
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498   echo "$ac_t""yes" 1>&6
2499     ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2500     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2501   cat >> confdefs.h <<EOF
2502 #define $ac_tr_lib 1
2503 EOF
2504
2505   LIBS="-lgen $LIBS"
2506
2507 else
2508   echo "$ac_t""no" 1>&6
2509 fi
2510
2511 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
2512 echo "configure:2512: checking for main in -lPW" >&5
2513 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
2514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2515   echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2517   ac_save_LIBS="$LIBS"
2518 LIBS="-lPW  $LIBS"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2520 "configure"
2521 #include "confdefs.h"
2522
2523 int main() {
2524 main()
2525 ; return 0; }
2526 EOF
2527 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2528   rm -rf conftest*
2529   eval "ac_cv_lib_$ac_lib_var=yes"
2530 else
2531   echo "configure: failed program was:" >&5
2532   cat conftest.$ac_ext >&5
2533   rm -rf conftest*
2534   eval "ac_cv_lib_$ac_lib_var=no"
2535 fi
2536 rm -f conftest*
2537 LIBS="$ac_save_LIBS"
2538
2539 fi
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541   echo "$ac_t""yes" 1>&6
2542     ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2543     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544   cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2546 EOF
2547
2548   LIBS="-lPW $LIBS"
2549
2550 else
2551   echo "$ac_t""no" 1>&6
2552 fi
2553
2554
2555 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2556 echo "configure:2556: checking for ANSI C header files" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2558   echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560   cat > conftest.$ac_ext <<EOF
2561 #line 2561 "configure"
2562 #include "confdefs.h"
2563 #include <stdlib.h>
2564 #include <stdarg.h>
2565 #include <string.h>
2566 #include <float.h>
2567 EOF
2568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2569 { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2570 ac_err=`grep -v '^ *+' conftest.out`
2571 if test -z "$ac_err"; then
2572   rm -rf conftest*
2573   ac_cv_header_stdc=yes
2574 else
2575   echo "$ac_err" >&5
2576   echo "configure: failed program was:" >&5
2577   cat conftest.$ac_ext >&5
2578   rm -rf conftest*
2579   ac_cv_header_stdc=no
2580 fi
2581 rm -f conftest*
2582
2583 if test $ac_cv_header_stdc = yes; then
2584   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2586 "configure"
2587 #include "confdefs.h"
2588 #include <string.h>
2589 EOF
2590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2591   egrep "memchr" >/dev/null 2>&1; then
2592   :
2593 else
2594   rm -rf conftest*
2595   ac_cv_header_stdc=no
2596 fi
2597 rm -f conftest*
2598
2599 fi
2600
2601 if test $ac_cv_header_stdc = yes; then
2602   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2604 "configure"
2605 #include "confdefs.h"
2606 #include <stdlib.h>
2607 EOF
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609   egrep "free" >/dev/null 2>&1; then
2610   :
2611 else
2612   rm -rf conftest*
2613   ac_cv_header_stdc=no
2614 fi
2615 rm -f conftest*
2616
2617 fi
2618
2619 if test $ac_cv_header_stdc = yes; then
2620   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2621 if test "$cross_compiling" = yes; then
2622   :
2623 else
2624   cat > conftest.$ac_ext <<EOF
2625 #line 2625 "configure"
2626 #include "confdefs.h"
2627 #include <ctype.h>
2628 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2629 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2631 int main () { int i; for (i = 0; i < 256; i++)
2632 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2633 exit (0); }
2634
2635 EOF
2636 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2637 then
2638   :
2639 else
2640   echo "configure: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   rm -fr conftest*
2643   ac_cv_header_stdc=no
2644 fi
2645 rm -fr conftest*
2646 fi
2647
2648 fi
2649 fi
2650
2651 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2652 if test $ac_cv_header_stdc = yes; then
2653   cat >> confdefs.h <<\EOF
2654 #define STDC_HEADERS 1
2655 EOF
2656
2657 fi
2658
2659 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2660 echo "configure:2660: checking for sys/wait.h that is POSIX.1 compatible" >&5
2661 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2662   echo $ac_n "(cached) $ac_c" 1>&6
2663 else
2664   cat > conftest.$ac_ext <<EOF
2665 #line 2665 "configure"
2666 #include "confdefs.h"
2667 #include <sys/types.h>
2668 #include <sys/wait.h>
2669 #ifndef WEXITSTATUS
2670 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2671 #endif
2672 #ifndef WIFEXITED
2673 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2674 #endif
2675 int main() {
2676 int s;
2677 wait (&s);
2678 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2679 ; return 0; }
2680 EOF
2681 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2682   rm -rf conftest*
2683   ac_cv_header_sys_wait_h=yes
2684 else
2685   echo "configure: failed program was:" >&5
2686   cat conftest.$ac_ext >&5
2687   rm -rf conftest*
2688   ac_cv_header_sys_wait_h=no
2689 fi
2690 rm -f conftest*
2691 fi
2692
2693 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2694 if test $ac_cv_header_sys_wait_h = yes; then
2695   cat >> confdefs.h <<\EOF
2696 #define HAVE_SYS_WAIT_H 1
2697 EOF
2698
2699 fi
2700
2701 for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
2702 do
2703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2705: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707   echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709   cat > conftest.$ac_ext <<EOF
2710 #line 2710 "configure"
2711 #include "confdefs.h"
2712 #include <$ac_hdr>
2713 EOF
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out`
2717 if test -z "$ac_err"; then
2718   rm -rf conftest*
2719   eval "ac_cv_header_$ac_safe=yes"
2720 else
2721   echo "$ac_err" >&5
2722   echo "configure: failed program was:" >&5
2723   cat conftest.$ac_ext >&5
2724   rm -rf conftest*
2725   eval "ac_cv_header_$ac_safe=no"
2726 fi
2727 rm -f conftest*
2728 fi
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730   echo "$ac_t""yes" 1>&6
2731     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732   cat >> confdefs.h <<EOF
2733 #define $ac_tr_hdr 1
2734 EOF
2735  
2736 else
2737   echo "$ac_t""no" 1>&6
2738 fi
2739 done
2740
2741 for ac_hdr in sys/resource.h netdb.h
2742 do
2743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2745 echo "configure:2745: checking for $ac_hdr" >&5
2746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2747   echo $ac_n "(cached) $ac_c" 1>&6
2748 else
2749   cat > conftest.$ac_ext <<EOF
2750 #line 2750 "configure"
2751 #include "confdefs.h"
2752 #include <$ac_hdr>
2753 EOF
2754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2755 { (eval echo configure:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2756 ac_err=`grep -v '^ *+' conftest.out`
2757 if test -z "$ac_err"; then
2758   rm -rf conftest*
2759   eval "ac_cv_header_$ac_safe=yes"
2760 else
2761   echo "$ac_err" >&5
2762   echo "configure: failed program was:" >&5
2763   cat conftest.$ac_ext >&5
2764   rm -rf conftest*
2765   eval "ac_cv_header_$ac_safe=no"
2766 fi
2767 rm -f conftest*
2768 fi
2769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2770   echo "$ac_t""yes" 1>&6
2771     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2772   cat >> confdefs.h <<EOF
2773 #define $ac_tr_hdr 1
2774 EOF
2775  
2776 else
2777   echo "$ac_t""no" 1>&6
2778 fi
2779 done
2780
2781 for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
2782 do
2783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2785: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787   echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789   cat > conftest.$ac_ext <<EOF
2790 #line 2790 "configure"
2791 #include "confdefs.h"
2792 #include <$ac_hdr>
2793 EOF
2794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err=`grep -v '^ *+' conftest.out`
2797 if test -z "$ac_err"; then
2798   rm -rf conftest*
2799   eval "ac_cv_header_$ac_safe=yes"
2800 else
2801   echo "$ac_err" >&5
2802   echo "configure: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   rm -rf conftest*
2805   eval "ac_cv_header_$ac_safe=no"
2806 fi
2807 rm -f conftest*
2808 fi
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810   echo "$ac_t""yes" 1>&6
2811     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812   cat >> confdefs.h <<EOF
2813 #define $ac_tr_hdr 1
2814 EOF
2815  
2816 else
2817   echo "$ac_t""no" 1>&6
2818 fi
2819 done
2820
2821 for ac_hdr in readline/history.h
2822 do
2823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2825 echo "configure:2825: checking for $ac_hdr" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827   echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829   cat > conftest.$ac_ext <<EOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2832 #include <$ac_hdr>
2833 EOF
2834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err=`grep -v '^ *+' conftest.out`
2837 if test -z "$ac_err"; then
2838   rm -rf conftest*
2839   eval "ac_cv_header_$ac_safe=yes"
2840 else
2841   echo "$ac_err" >&5
2842   echo "configure: failed program was:" >&5
2843   cat conftest.$ac_ext >&5
2844   rm -rf conftest*
2845   eval "ac_cv_header_$ac_safe=no"
2846 fi
2847 rm -f conftest*
2848 fi
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850   echo "$ac_t""yes" 1>&6
2851     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2852   cat >> confdefs.h <<EOF
2853 #define $ac_tr_hdr 1
2854 EOF
2855  
2856 else
2857   echo "$ac_t""no" 1>&6
2858 fi
2859 done
2860
2861
2862 echo $ac_n "checking for working const""... $ac_c" 1>&6
2863 echo "configure:2863: checking for working const" >&5
2864 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2865   echo $ac_n "(cached) $ac_c" 1>&6
2866 else
2867   cat > conftest.$ac_ext <<EOF
2868 #line 2868 "configure"
2869 #include "confdefs.h"
2870
2871 int main() {
2872
2873 /* Ultrix mips cc rejects this.  */
2874 typedef int charset[2]; const charset x;
2875 /* SunOS 4.1.1 cc rejects this.  */
2876 char const *const *ccp;
2877 char **p;
2878 /* NEC SVR4.0.2 mips cc rejects this.  */
2879 struct point {int x, y;};
2880 static struct point const zero = {0,0};
2881 /* AIX XL C 1.02.0.0 rejects this.
2882    It does not let you subtract one const X* pointer from another in an arm
2883    of an if-expression whose if-part is not a constant expression */
2884 const char *g = "string";
2885 ccp = &g + (g ? g-g : 0);
2886 /* HPUX 7.0 cc rejects these. */
2887 ++ccp;
2888 p = (char**) ccp;
2889 ccp = (char const *const *) p;
2890 { /* SCO 3.2v4 cc rejects this.  */
2891   char *t;
2892   char const *s = 0 ? (char *) 0 : (char const *) 0;
2893
2894   *t++ = 0;
2895 }
2896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2897   int x[] = {25, 17};
2898   const int *foo = &x[0];
2899   ++foo;
2900 }
2901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2902   typedef const int *iptr;
2903   iptr p = 0;
2904   ++p;
2905 }
2906 { /* AIX XL C 1.02.0.0 rejects this saying
2907      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2908   struct s { int j; const int *ap[3]; };
2909   struct s *b; b->j = 5;
2910 }
2911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2912   const int foo = 10;
2913 }
2914
2915 ; return 0; }
2916 EOF
2917 if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918   rm -rf conftest*
2919   ac_cv_c_const=yes
2920 else
2921   echo "configure: failed program was:" >&5
2922   cat conftest.$ac_ext >&5
2923   rm -rf conftest*
2924   ac_cv_c_const=no
2925 fi
2926 rm -f conftest*
2927 fi
2928
2929 echo "$ac_t""$ac_cv_c_const" 1>&6
2930 if test $ac_cv_c_const = no; then
2931   cat >> confdefs.h <<\EOF
2932 #define const 
2933 EOF
2934
2935 fi
2936
2937 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2938 echo "configure:2938: checking for uid_t in sys/types.h" >&5
2939 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2940   echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942   cat > conftest.$ac_ext <<EOF
2943 #line 2943 "configure"
2944 #include "confdefs.h"
2945 #include <sys/types.h>
2946 EOF
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948   egrep "uid_t" >/dev/null 2>&1; then
2949   rm -rf conftest*
2950   ac_cv_type_uid_t=yes
2951 else
2952   rm -rf conftest*
2953   ac_cv_type_uid_t=no
2954 fi
2955 rm -f conftest*
2956
2957 fi
2958
2959 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2960 if test $ac_cv_type_uid_t = no; then
2961   cat >> confdefs.h <<\EOF
2962 #define uid_t int
2963 EOF
2964
2965   cat >> confdefs.h <<\EOF
2966 #define gid_t int
2967 EOF
2968
2969 fi
2970
2971 echo $ac_n "checking for inline""... $ac_c" 1>&6
2972 echo "configure:2972: checking for inline" >&5
2973 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2974   echo $ac_n "(cached) $ac_c" 1>&6
2975 else
2976   ac_cv_c_inline=no
2977 for ac_kw in inline __inline__ __inline; do
2978   cat > conftest.$ac_ext <<EOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2981
2982 int main() {
2983 } $ac_kw foo() {
2984 ; return 0; }
2985 EOF
2986 if { (eval echo configure:2986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2987   rm -rf conftest*
2988   ac_cv_c_inline=$ac_kw; break
2989 else
2990   echo "configure: failed program was:" >&5
2991   cat conftest.$ac_ext >&5
2992 fi
2993 rm -f conftest*
2994 done
2995
2996 fi
2997
2998 echo "$ac_t""$ac_cv_c_inline" 1>&6
2999 case "$ac_cv_c_inline" in
3000   inline | yes) ;;
3001   no) cat >> confdefs.h <<\EOF
3002 #define inline 
3003 EOF
3004  ;;
3005   *)  cat >> confdefs.h <<EOF
3006 #define inline $ac_cv_c_inline
3007 EOF
3008  ;;
3009 esac
3010
3011 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3012 echo "configure:3012: checking for mode_t" >&5
3013 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3014   echo $ac_n "(cached) $ac_c" 1>&6
3015 else
3016   cat > conftest.$ac_ext <<EOF
3017 #line 3017 "configure"
3018 #include "confdefs.h"
3019 #include <sys/types.h>
3020 #if STDC_HEADERS
3021 #include <stdlib.h>
3022 #include <stddef.h>
3023 #endif
3024 EOF
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3027   rm -rf conftest*
3028   ac_cv_type_mode_t=yes
3029 else
3030   rm -rf conftest*
3031   ac_cv_type_mode_t=no
3032 fi
3033 rm -f conftest*
3034
3035 fi
3036 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3037 if test $ac_cv_type_mode_t = no; then
3038   cat >> confdefs.h <<\EOF
3039 #define mode_t int
3040 EOF
3041
3042 fi
3043
3044 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3045 echo "configure:3045: checking for off_t" >&5
3046 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3047   echo $ac_n "(cached) $ac_c" 1>&6
3048 else
3049   cat > conftest.$ac_ext <<EOF
3050 #line 3050 "configure"
3051 #include "confdefs.h"
3052 #include <sys/types.h>
3053 #if STDC_HEADERS
3054 #include <stdlib.h>
3055 #include <stddef.h>
3056 #endif
3057 EOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3060   rm -rf conftest*
3061   ac_cv_type_off_t=yes
3062 else
3063   rm -rf conftest*
3064   ac_cv_type_off_t=no
3065 fi
3066 rm -f conftest*
3067
3068 fi
3069 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3070 if test $ac_cv_type_off_t = no; then
3071   cat >> confdefs.h <<\EOF
3072 #define off_t long
3073 EOF
3074
3075 fi
3076
3077 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3078 echo "configure:3078: checking for size_t" >&5
3079 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3080   echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082   cat > conftest.$ac_ext <<EOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3085 #include <sys/types.h>
3086 #if STDC_HEADERS
3087 #include <stdlib.h>
3088 #include <stddef.h>
3089 #endif
3090 EOF
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3093   rm -rf conftest*
3094   ac_cv_type_size_t=yes
3095 else
3096   rm -rf conftest*
3097   ac_cv_type_size_t=no
3098 fi
3099 rm -f conftest*
3100
3101 fi
3102 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3103 if test $ac_cv_type_size_t = no; then
3104   cat >> confdefs.h <<\EOF
3105 #define size_t unsigned
3106 EOF
3107
3108 fi
3109
3110 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3111 echo "configure:3111: checking whether time.h and sys/time.h may both be included" >&5
3112 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3113   echo $ac_n "(cached) $ac_c" 1>&6
3114 else
3115   cat > conftest.$ac_ext <<EOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3118 #include <sys/types.h>
3119 #include <sys/time.h>
3120 #include <time.h>
3121 int main() {
3122 struct tm *tp;
3123 ; return 0; }
3124 EOF
3125 if { (eval echo configure:3125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126   rm -rf conftest*
3127   ac_cv_header_time=yes
3128 else
3129   echo "configure: failed program was:" >&5
3130   cat conftest.$ac_ext >&5
3131   rm -rf conftest*
3132   ac_cv_header_time=no
3133 fi
3134 rm -f conftest*
3135 fi
3136
3137 echo "$ac_t""$ac_cv_header_time" 1>&6
3138 if test $ac_cv_header_time = yes; then
3139   cat >> confdefs.h <<\EOF
3140 #define TIME_WITH_SYS_TIME 1
3141 EOF
3142
3143 fi
3144
3145 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3146 echo "configure:3146: checking whether struct tm is in sys/time.h or time.h" >&5
3147 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3148   echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150   cat > conftest.$ac_ext <<EOF
3151 #line 3151 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3154 #include <time.h>
3155 int main() {
3156 struct tm *tp; tp->tm_sec;
3157 ; return 0; }
3158 EOF
3159 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160   rm -rf conftest*
3161   ac_cv_struct_tm=time.h
3162 else
3163   echo "configure: failed program was:" >&5
3164   cat conftest.$ac_ext >&5
3165   rm -rf conftest*
3166   ac_cv_struct_tm=sys/time.h
3167 fi
3168 rm -f conftest*
3169 fi
3170
3171 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3172 if test $ac_cv_struct_tm = sys/time.h; then
3173   cat >> confdefs.h <<\EOF
3174 #define TM_IN_SYS_TIME 1
3175 EOF
3176
3177 fi
3178
3179
3180 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
3181 echo "configure:3181: checking for int timezone" >&5
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3183 "configure"
3184 #include "confdefs.h"
3185 #include <time.h>
3186 int main() {
3187 int res = timezone / 60; 
3188 ; return 0; }
3189 EOF
3190 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3191   rm -rf conftest*
3192   cat >> confdefs.h <<\EOF
3193 #define HAVE_INT_TIMEZONE 1
3194 EOF
3195  echo "$ac_t""yes" 1>&6
3196 else
3197   echo "configure: failed program was:" >&5
3198   cat conftest.$ac_ext >&5
3199   rm -rf conftest*
3200   echo "$ac_t""no" 1>&6
3201 fi
3202 rm -f conftest*
3203
3204 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3205 echo "configure:3205: checking for union semun" >&5
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3207 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 #include <sys/ipc.h>
3211 #include <sys/sem.h>
3212 int main() {
3213 union semun semun;
3214 ; return 0; }
3215 EOF
3216 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3217   rm -rf conftest*
3218   cat >> confdefs.h <<\EOF
3219 #define HAVE_UNION_SEMUN 1
3220 EOF
3221  echo "$ac_t""yes" 1>&6
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   echo "$ac_t""no" 1>&6
3227 fi
3228 rm -f conftest*
3229
3230 if test $ac_cv_prog_gcc = yes; then
3231     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3232 echo "configure:3232: checking whether ${CC-cc} needs -traditional" >&5
3233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3234   echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236     ac_pattern="Autoconf.*'x'"
3237   cat > conftest.$ac_ext <<EOF
3238 #line 3238 "configure"
3239 #include "confdefs.h"
3240 #include <sgtty.h>
3241 Autoconf TIOCGETP
3242 EOF
3243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244   egrep "$ac_pattern" >/dev/null 2>&1; then
3245   rm -rf conftest*
3246   ac_cv_prog_gcc_traditional=yes
3247 else
3248   rm -rf conftest*
3249   ac_cv_prog_gcc_traditional=no
3250 fi
3251 rm -f conftest*
3252
3253
3254   if test $ac_cv_prog_gcc_traditional = no; then
3255     cat > conftest.$ac_ext <<EOF
3256 #line 3256 "configure"
3257 #include "confdefs.h"
3258 #include <termio.h>
3259 Autoconf TCGETA
3260 EOF
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262   egrep "$ac_pattern" >/dev/null 2>&1; then
3263   rm -rf conftest*
3264   ac_cv_prog_gcc_traditional=yes
3265 fi
3266 rm -f conftest*
3267
3268   fi
3269 fi
3270
3271 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3272   if test $ac_cv_prog_gcc_traditional = yes; then
3273     CC="$CC -traditional"
3274   fi
3275 fi
3276
3277 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3278 echo "configure:3278: checking for 8-bit clean memcmp" >&5
3279 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3280   echo $ac_n "(cached) $ac_c" 1>&6
3281 else
3282   if test "$cross_compiling" = yes; then
3283   ac_cv_func_memcmp_clean=no
3284 else
3285   cat > conftest.$ac_ext <<EOF
3286 #line 3286 "configure"
3287 #include "confdefs.h"
3288
3289 main()
3290 {
3291   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3292   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3293 }
3294
3295 EOF
3296 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3297 then
3298   ac_cv_func_memcmp_clean=yes
3299 else
3300   echo "configure: failed program was:" >&5
3301   cat conftest.$ac_ext >&5
3302   rm -fr conftest*
3303   ac_cv_func_memcmp_clean=no
3304 fi
3305 rm -fr conftest*
3306 fi
3307
3308 fi
3309
3310 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3311 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3312
3313 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3314 echo "configure:3314: checking return type of signal handlers" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3316   echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318   cat > conftest.$ac_ext <<EOF
3319 #line 3319 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <signal.h>
3323 #ifdef signal
3324 #undef signal
3325 #endif
3326 #ifdef __cplusplus
3327 extern "C" void (*signal (int, void (*)(int)))(int);
3328 #else
3329 void (*signal ()) ();
3330 #endif
3331
3332 int main() {
3333 int i;
3334 ; return 0; }
3335 EOF
3336 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337   rm -rf conftest*
3338   ac_cv_type_signal=void
3339 else
3340   echo "configure: failed program was:" >&5
3341   cat conftest.$ac_ext >&5
3342   rm -rf conftest*
3343   ac_cv_type_signal=int
3344 fi
3345 rm -f conftest*
3346 fi
3347
3348 echo "$ac_t""$ac_cv_type_signal" 1>&6
3349 cat >> confdefs.h <<EOF
3350 #define RETSIGTYPE $ac_cv_type_signal
3351 EOF
3352
3353
3354 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3355 echo "configure:3355: checking for vprintf" >&5
3356 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3357   echo $ac_n "(cached) $ac_c" 1>&6
3358 else
3359   cat > conftest.$ac_ext <<EOF
3360 #line 3360 "configure"
3361 #include "confdefs.h"
3362 /* System header to define __stub macros and hopefully few prototypes,
3363     which can conflict with char vprintf(); below.  */
3364 #include <assert.h>
3365 /* Override any gcc2 internal prototype to avoid an error.  */
3366 /* We use char because int might match the return type of a gcc2
3367     builtin and then its argument prototype would still apply.  */
3368 char vprintf();
3369
3370 int main() {
3371
3372 /* The GNU C library defines this for functions which it implements
3373     to always fail with ENOSYS.  Some functions are actually named
3374     something starting with __ and the normal name is an alias.  */
3375 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3376 choke me
3377 #else
3378 vprintf();
3379 #endif
3380
3381 ; return 0; }
3382 EOF
3383 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3384   rm -rf conftest*
3385   eval "ac_cv_func_vprintf=yes"
3386 else
3387   echo "configure: failed program was:" >&5
3388   cat conftest.$ac_ext >&5
3389   rm -rf conftest*
3390   eval "ac_cv_func_vprintf=no"
3391 fi
3392 rm -f conftest*
3393 fi
3394
3395 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3396   echo "$ac_t""yes" 1>&6
3397   cat >> confdefs.h <<\EOF
3398 #define HAVE_VPRINTF 1
3399 EOF
3400
3401 else
3402   echo "$ac_t""no" 1>&6
3403 fi
3404
3405 if test "$ac_cv_func_vprintf" != yes; then
3406 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3407 echo "configure:3407: checking for _doprnt" >&5
3408 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3409   echo $ac_n "(cached) $ac_c" 1>&6
3410 else
3411   cat > conftest.$ac_ext <<EOF
3412 #line 3412 "configure"
3413 #include "confdefs.h"
3414 /* System header to define __stub macros and hopefully few prototypes,
3415     which can conflict with char _doprnt(); below.  */
3416 #include <assert.h>
3417 /* Override any gcc2 internal prototype to avoid an error.  */
3418 /* We use char because int might match the return type of a gcc2
3419     builtin and then its argument prototype would still apply.  */
3420 char _doprnt();
3421
3422 int main() {
3423
3424 /* The GNU C library defines this for functions which it implements
3425     to always fail with ENOSYS.  Some functions are actually named
3426     something starting with __ and the normal name is an alias.  */
3427 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3428 choke me
3429 #else
3430 _doprnt();
3431 #endif
3432
3433 ; return 0; }
3434 EOF
3435 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3436   rm -rf conftest*
3437   eval "ac_cv_func__doprnt=yes"
3438 else
3439   echo "configure: failed program was:" >&5
3440   cat conftest.$ac_ext >&5
3441   rm -rf conftest*
3442   eval "ac_cv_func__doprnt=no"
3443 fi
3444 rm -f conftest*
3445 fi
3446
3447 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3448   echo "$ac_t""yes" 1>&6
3449   cat >> confdefs.h <<\EOF
3450 #define HAVE_DOPRNT 1
3451 EOF
3452
3453 else
3454   echo "$ac_t""no" 1>&6
3455 fi
3456
3457 fi
3458
3459 for ac_func in tzset vfork memmove sigsetjmp kill sysconf
3460 do
3461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3462 echo "configure:3462: checking for $ac_func" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3464   echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466   cat > conftest.$ac_ext <<EOF
3467 #line 3467 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470     which can conflict with char $ac_func(); below.  */
3471 #include <assert.h>
3472 /* Override any gcc2 internal prototype to avoid an error.  */
3473 /* We use char because int might match the return type of a gcc2
3474     builtin and then its argument prototype would still apply.  */
3475 char $ac_func();
3476
3477 int main() {
3478
3479 /* The GNU C library defines this for functions which it implements
3480     to always fail with ENOSYS.  Some functions are actually named
3481     something starting with __ and the normal name is an alias.  */
3482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 choke me
3484 #else
3485 $ac_func();
3486 #endif
3487
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3491   rm -rf conftest*
3492   eval "ac_cv_func_$ac_func=yes"
3493 else
3494   echo "configure: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   rm -rf conftest*
3497   eval "ac_cv_func_$ac_func=no"
3498 fi
3499 rm -f conftest*
3500 fi
3501
3502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3503   echo "$ac_t""yes" 1>&6
3504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3505   cat >> confdefs.h <<EOF
3506 #define $ac_tr_func 1
3507 EOF
3508  
3509 else
3510   echo "$ac_t""no" 1>&6
3511 fi
3512 done
3513
3514 for ac_func in sigprocmask waitpid setsid fcvt
3515 do
3516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3517 echo "configure:3517: checking for $ac_func" >&5
3518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3519   echo $ac_n "(cached) $ac_c" 1>&6
3520 else
3521   cat > conftest.$ac_ext <<EOF
3522 #line 3522 "configure"
3523 #include "confdefs.h"
3524 /* System header to define __stub macros and hopefully few prototypes,
3525     which can conflict with char $ac_func(); below.  */
3526 #include <assert.h>
3527 /* Override any gcc2 internal prototype to avoid an error.  */
3528 /* We use char because int might match the return type of a gcc2
3529     builtin and then its argument prototype would still apply.  */
3530 char $ac_func();
3531
3532 int main() {
3533
3534 /* The GNU C library defines this for functions which it implements
3535     to always fail with ENOSYS.  Some functions are actually named
3536     something starting with __ and the normal name is an alias.  */
3537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3538 choke me
3539 #else
3540 $ac_func();
3541 #endif
3542
3543 ; return 0; }
3544 EOF
3545 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3546   rm -rf conftest*
3547   eval "ac_cv_func_$ac_func=yes"
3548 else
3549   echo "configure: failed program was:" >&5
3550   cat conftest.$ac_ext >&5
3551   rm -rf conftest*
3552   eval "ac_cv_func_$ac_func=no"
3553 fi
3554 rm -f conftest*
3555 fi
3556
3557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3558   echo "$ac_t""yes" 1>&6
3559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3560   cat >> confdefs.h <<EOF
3561 #define $ac_tr_func 1
3562 EOF
3563  
3564 else
3565   echo "$ac_t""no" 1>&6
3566 fi
3567 done
3568
3569 echo $ac_n "checking for isinf""... $ac_c" 1>&6
3570 echo "configure:3570: checking for isinf" >&5
3571 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
3572   echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574   cat > conftest.$ac_ext <<EOF
3575 #line 3575 "configure"
3576 #include "confdefs.h"
3577 /* System header to define __stub macros and hopefully few prototypes,
3578     which can conflict with char isinf(); below.  */
3579 #include <assert.h>
3580 /* Override any gcc2 internal prototype to avoid an error.  */
3581 /* We use char because int might match the return type of a gcc2
3582     builtin and then its argument prototype would still apply.  */
3583 char isinf();
3584
3585 int main() {
3586
3587 /* The GNU C library defines this for functions which it implements
3588     to always fail with ENOSYS.  Some functions are actually named
3589     something starting with __ and the normal name is an alias.  */
3590 #if defined (__stub_isinf) || defined (__stub___isinf)
3591 choke me
3592 #else
3593 isinf();
3594 #endif
3595
3596 ; return 0; }
3597 EOF
3598 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3599   rm -rf conftest*
3600   eval "ac_cv_func_isinf=yes"
3601 else
3602   echo "configure: failed program was:" >&5
3603   cat conftest.$ac_ext >&5
3604   rm -rf conftest*
3605   eval "ac_cv_func_isinf=no"
3606 fi
3607 rm -f conftest*
3608 fi
3609
3610 if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
3611   echo "$ac_t""yes" 1>&6
3612   cat >> confdefs.h <<\EOF
3613 #define HAVE_ISINF 1
3614 EOF
3615
3616 else
3617   echo "$ac_t""no" 1>&6
3618 ISINF='isinf.o'
3619 fi
3620
3621
3622 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
3623 echo "configure:3623: checking for getrusage" >&5
3624 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
3625   echo $ac_n "(cached) $ac_c" 1>&6
3626 else
3627   cat > conftest.$ac_ext <<EOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3630 /* System header to define __stub macros and hopefully few prototypes,
3631     which can conflict with char getrusage(); below.  */
3632 #include <assert.h>
3633 /* Override any gcc2 internal prototype to avoid an error.  */
3634 /* We use char because int might match the return type of a gcc2
3635     builtin and then its argument prototype would still apply.  */
3636 char getrusage();
3637
3638 int main() {
3639
3640 /* The GNU C library defines this for functions which it implements
3641     to always fail with ENOSYS.  Some functions are actually named
3642     something starting with __ and the normal name is an alias.  */
3643 #if defined (__stub_getrusage) || defined (__stub___getrusage)
3644 choke me
3645 #else
3646 getrusage();
3647 #endif
3648
3649 ; return 0; }
3650 EOF
3651 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3652   rm -rf conftest*
3653   eval "ac_cv_func_getrusage=yes"
3654 else
3655   echo "configure: failed program was:" >&5
3656   cat conftest.$ac_ext >&5
3657   rm -rf conftest*
3658   eval "ac_cv_func_getrusage=no"
3659 fi
3660 rm -f conftest*
3661 fi
3662
3663 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
3664   echo "$ac_t""yes" 1>&6
3665   cat >> confdefs.h <<\EOF
3666 #define HAVE_GETRUSAGE 1
3667 EOF
3668
3669 else
3670   echo "$ac_t""no" 1>&6
3671 GETRUSAGE='getrusage.o'
3672 fi
3673
3674
3675 echo $ac_n "checking for srandom""... $ac_c" 1>&6
3676 echo "configure:3676: checking for srandom" >&5
3677 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
3678   echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680   cat > conftest.$ac_ext <<EOF
3681 #line 3681 "configure"
3682 #include "confdefs.h"
3683 /* System header to define __stub macros and hopefully few prototypes,
3684     which can conflict with char srandom(); below.  */
3685 #include <assert.h>
3686 /* Override any gcc2 internal prototype to avoid an error.  */
3687 /* We use char because int might match the return type of a gcc2
3688     builtin and then its argument prototype would still apply.  */
3689 char srandom();
3690
3691 int main() {
3692
3693 /* The GNU C library defines this for functions which it implements
3694     to always fail with ENOSYS.  Some functions are actually named
3695     something starting with __ and the normal name is an alias.  */
3696 #if defined (__stub_srandom) || defined (__stub___srandom)
3697 choke me
3698 #else
3699 srandom();
3700 #endif
3701
3702 ; return 0; }
3703 EOF
3704 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3705   rm -rf conftest*
3706   eval "ac_cv_func_srandom=yes"
3707 else
3708   echo "configure: failed program was:" >&5
3709   cat conftest.$ac_ext >&5
3710   rm -rf conftest*
3711   eval "ac_cv_func_srandom=no"
3712 fi
3713 rm -f conftest*
3714 fi
3715
3716 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
3717   echo "$ac_t""yes" 1>&6
3718   cat >> confdefs.h <<\EOF
3719 #define HAVE_SRANDOM 1
3720 EOF
3721
3722 else
3723   echo "$ac_t""no" 1>&6
3724 SRANDOM='srandom.o'
3725 fi
3726
3727
3728 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
3729 echo "configure:3729: checking for gethostname" >&5
3730 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
3731   echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733   cat > conftest.$ac_ext <<EOF
3734 #line 3734 "configure"
3735 #include "confdefs.h"
3736 /* System header to define __stub macros and hopefully few prototypes,
3737     which can conflict with char gethostname(); below.  */
3738 #include <assert.h>
3739 /* Override any gcc2 internal prototype to avoid an error.  */
3740 /* We use char because int might match the return type of a gcc2
3741     builtin and then its argument prototype would still apply.  */
3742 char gethostname();
3743
3744 int main() {
3745
3746 /* The GNU C library defines this for functions which it implements
3747     to always fail with ENOSYS.  Some functions are actually named
3748     something starting with __ and the normal name is an alias.  */
3749 #if defined (__stub_gethostname) || defined (__stub___gethostname)
3750 choke me
3751 #else
3752 gethostname();
3753 #endif
3754
3755 ; return 0; }
3756 EOF
3757 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3758   rm -rf conftest*
3759   eval "ac_cv_func_gethostname=yes"
3760 else
3761   echo "configure: failed program was:" >&5
3762   cat conftest.$ac_ext >&5
3763   rm -rf conftest*
3764   eval "ac_cv_func_gethostname=no"
3765 fi
3766 rm -f conftest*
3767 fi
3768
3769 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
3770   echo "$ac_t""yes" 1>&6
3771   cat >> confdefs.h <<\EOF
3772 #define HAVE_GETHOSTNAME 1
3773 EOF
3774
3775 else
3776   echo "$ac_t""no" 1>&6
3777 GETHOSTNAME='gethostname.o'
3778 fi
3779
3780
3781 echo $ac_n "checking for random""... $ac_c" 1>&6
3782 echo "configure:3782: checking for random" >&5
3783 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
3784   echo $ac_n "(cached) $ac_c" 1>&6
3785 else
3786   cat > conftest.$ac_ext <<EOF
3787 #line 3787 "configure"
3788 #include "confdefs.h"
3789 /* System header to define __stub macros and hopefully few prototypes,
3790     which can conflict with char random(); below.  */
3791 #include <assert.h>
3792 /* Override any gcc2 internal prototype to avoid an error.  */
3793 /* We use char because int might match the return type of a gcc2
3794     builtin and then its argument prototype would still apply.  */
3795 char random();
3796
3797 int main() {
3798
3799 /* The GNU C library defines this for functions which it implements
3800     to always fail with ENOSYS.  Some functions are actually named
3801     something starting with __ and the normal name is an alias.  */
3802 #if defined (__stub_random) || defined (__stub___random)
3803 choke me
3804 #else
3805 random();
3806 #endif
3807
3808 ; return 0; }
3809 EOF
3810 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3811   rm -rf conftest*
3812   eval "ac_cv_func_random=yes"
3813 else
3814   echo "configure: failed program was:" >&5
3815   cat conftest.$ac_ext >&5
3816   rm -rf conftest*
3817   eval "ac_cv_func_random=no"
3818 fi
3819 rm -f conftest*
3820 fi
3821
3822 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
3823   echo "$ac_t""yes" 1>&6
3824   cat >> confdefs.h <<\EOF
3825 #define HAVE_RANDOM 1
3826 EOF
3827
3828 else
3829   echo "$ac_t""no" 1>&6
3830 MISSING_RANDOM='random.o'
3831 fi
3832
3833
3834 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3835 echo "configure:3835: checking for inet_aton" >&5
3836 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3837   echo $ac_n "(cached) $ac_c" 1>&6
3838 else
3839   cat > conftest.$ac_ext <<EOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843     which can conflict with char inet_aton(); below.  */
3844 #include <assert.h>
3845 /* Override any gcc2 internal prototype to avoid an error.  */
3846 /* We use char because int might match the return type of a gcc2
3847     builtin and then its argument prototype would still apply.  */
3848 char inet_aton();
3849
3850 int main() {
3851
3852 /* The GNU C library defines this for functions which it implements
3853     to always fail with ENOSYS.  Some functions are actually named
3854     something starting with __ and the normal name is an alias.  */
3855 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3856 choke me
3857 #else
3858 inet_aton();
3859 #endif
3860
3861 ; return 0; }
3862 EOF
3863 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3864   rm -rf conftest*
3865   eval "ac_cv_func_inet_aton=yes"
3866 else
3867   echo "configure: failed program was:" >&5
3868   cat conftest.$ac_ext >&5
3869   rm -rf conftest*
3870   eval "ac_cv_func_inet_aton=no"
3871 fi
3872 rm -f conftest*
3873 fi
3874
3875 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3876   echo "$ac_t""yes" 1>&6
3877   cat >> confdefs.h <<\EOF
3878 #define HAVE_INET_ATON 1
3879 EOF
3880
3881 else
3882   echo "$ac_t""no" 1>&6
3883 INET_ATON='inet_aton.o'
3884 fi
3885
3886
3887 echo $ac_n "checking for strerror""... $ac_c" 1>&6
3888 echo "configure:3888: checking for strerror" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
3890   echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3892   cat > conftest.$ac_ext <<EOF
3893 #line 3893 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896     which can conflict with char strerror(); below.  */
3897 #include <assert.h>
3898 /* Override any gcc2 internal prototype to avoid an error.  */
3899 /* We use char because int might match the return type of a gcc2
3900     builtin and then its argument prototype would still apply.  */
3901 char strerror();
3902
3903 int main() {
3904
3905 /* The GNU C library defines this for functions which it implements
3906     to always fail with ENOSYS.  Some functions are actually named
3907     something starting with __ and the normal name is an alias.  */
3908 #if defined (__stub_strerror) || defined (__stub___strerror)
3909 choke me
3910 #else
3911 strerror();
3912 #endif
3913
3914 ; return 0; }
3915 EOF
3916 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3917   rm -rf conftest*
3918   eval "ac_cv_func_strerror=yes"
3919 else
3920   echo "configure: failed program was:" >&5
3921   cat conftest.$ac_ext >&5
3922   rm -rf conftest*
3923   eval "ac_cv_func_strerror=no"
3924 fi
3925 rm -f conftest*
3926 fi
3927
3928 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
3929   echo "$ac_t""yes" 1>&6
3930   cat >> confdefs.h <<\EOF
3931 #define HAVE_STRERROR 1
3932 EOF
3933
3934 else
3935   echo "$ac_t""no" 1>&6
3936 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
3937 fi
3938
3939
3940
3941 echo $ac_n "checking for strdup""... $ac_c" 1>&6
3942 echo "configure:3942: checking for strdup" >&5
3943 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
3944   echo $ac_n "(cached) $ac_c" 1>&6
3945 else
3946   cat > conftest.$ac_ext <<EOF
3947 #line 3947 "configure"
3948 #include "confdefs.h"
3949 /* System header to define __stub macros and hopefully few prototypes,
3950     which can conflict with char strdup(); below.  */
3951 #include <assert.h>
3952 /* Override any gcc2 internal prototype to avoid an error.  */
3953 /* We use char because int might match the return type of a gcc2
3954     builtin and then its argument prototype would still apply.  */
3955 char strdup();
3956
3957 int main() {
3958
3959 /* The GNU C library defines this for functions which it implements
3960     to always fail with ENOSYS.  Some functions are actually named
3961     something starting with __ and the normal name is an alias.  */
3962 #if defined (__stub_strdup) || defined (__stub___strdup)
3963 choke me
3964 #else
3965 strdup();
3966 #endif
3967
3968 ; return 0; }
3969 EOF
3970 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3971   rm -rf conftest*
3972   eval "ac_cv_func_strdup=yes"
3973 else
3974   echo "configure: failed program was:" >&5
3975   cat conftest.$ac_ext >&5
3976   rm -rf conftest*
3977   eval "ac_cv_func_strdup=no"
3978 fi
3979 rm -f conftest*
3980 fi
3981
3982 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
3983   echo "$ac_t""yes" 1>&6
3984   cat >> confdefs.h <<\EOF
3985 #define HAVE_STRDUP 1
3986 EOF
3987
3988 else
3989   echo "$ac_t""no" 1>&6
3990 STRDUP='../../utils/strdup.o'
3991 fi
3992
3993
3994 echo $ac_n "checking for strtol""... $ac_c" 1>&6
3995 echo "configure:3995: checking for strtol" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
3997   echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999   cat > conftest.$ac_ext <<EOF
4000 #line 4000 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003     which can conflict with char strtol(); below.  */
4004 #include <assert.h>
4005 /* Override any gcc2 internal prototype to avoid an error.  */
4006 /* We use char because int might match the return type of a gcc2
4007     builtin and then its argument prototype would still apply.  */
4008 char strtol();
4009
4010 int main() {
4011
4012 /* The GNU C library defines this for functions which it implements
4013     to always fail with ENOSYS.  Some functions are actually named
4014     something starting with __ and the normal name is an alias.  */
4015 #if defined (__stub_strtol) || defined (__stub___strtol)
4016 choke me
4017 #else
4018 strtol();
4019 #endif
4020
4021 ; return 0; }
4022 EOF
4023 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4024   rm -rf conftest*
4025   eval "ac_cv_func_strtol=yes"
4026 else
4027   echo "configure: failed program was:" >&5
4028   cat conftest.$ac_ext >&5
4029   rm -rf conftest*
4030   eval "ac_cv_func_strtol=no"
4031 fi
4032 rm -f conftest*
4033 fi
4034
4035 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
4036   echo "$ac_t""yes" 1>&6
4037   cat >> confdefs.h <<\EOF
4038 #define HAVE_STRTOL 1
4039 EOF
4040
4041 else
4042   echo "$ac_t""no" 1>&6
4043 STRDUP='strtol.o'
4044 fi
4045
4046 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
4047 echo "configure:4047: checking for strcasecmp" >&5
4048 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
4049   echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051   cat > conftest.$ac_ext <<EOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 /* System header to define __stub macros and hopefully few prototypes,
4055     which can conflict with char strcasecmp(); below.  */
4056 #include <assert.h>
4057 /* Override any gcc2 internal prototype to avoid an error.  */
4058 /* We use char because int might match the return type of a gcc2
4059     builtin and then its argument prototype would still apply.  */
4060 char strcasecmp();
4061
4062 int main() {
4063
4064 /* The GNU C library defines this for functions which it implements
4065     to always fail with ENOSYS.  Some functions are actually named
4066     something starting with __ and the normal name is an alias.  */
4067 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4068 choke me
4069 #else
4070 strcasecmp();
4071 #endif
4072
4073 ; return 0; }
4074 EOF
4075 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4076   rm -rf conftest*
4077   eval "ac_cv_func_strcasecmp=yes"
4078 else
4079   echo "configure: failed program was:" >&5
4080   cat conftest.$ac_ext >&5
4081   rm -rf conftest*
4082   eval "ac_cv_func_strcasecmp=no"
4083 fi
4084 rm -f conftest*
4085 fi
4086
4087 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
4088   echo "$ac_t""yes" 1>&6
4089   cat >> confdefs.h <<\EOF
4090 #define HAVE_STRCASECMP 1
4091 EOF
4092
4093 else
4094   echo "$ac_t""no" 1>&6
4095 STRCASECMP='strcasecmp.o'
4096 fi
4097
4098
4099 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
4100 echo "configure:4100: checking for cbrt" >&5
4101 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
4102   echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104   cat > conftest.$ac_ext <<EOF
4105 #line 4105 "configure"
4106 #include "confdefs.h"
4107 /* System header to define __stub macros and hopefully few prototypes,
4108     which can conflict with char cbrt(); below.  */
4109 #include <assert.h>
4110 /* Override any gcc2 internal prototype to avoid an error.  */
4111 /* We use char because int might match the return type of a gcc2
4112     builtin and then its argument prototype would still apply.  */
4113 char cbrt();
4114
4115 int main() {
4116
4117 /* The GNU C library defines this for functions which it implements
4118     to always fail with ENOSYS.  Some functions are actually named
4119     something starting with __ and the normal name is an alias.  */
4120 #if defined (__stub_cbrt) || defined (__stub___cbrt)
4121 choke me
4122 #else
4123 cbrt();
4124 #endif
4125
4126 ; return 0; }
4127 EOF
4128 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4129   rm -rf conftest*
4130   eval "ac_cv_func_cbrt=yes"
4131 else
4132   echo "configure: failed program was:" >&5
4133   cat conftest.$ac_ext >&5
4134   rm -rf conftest*
4135   eval "ac_cv_func_cbrt=no"
4136 fi
4137 rm -f conftest*
4138 fi
4139
4140 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
4141   echo "$ac_t""yes" 1>&6
4142   cat >> confdefs.h <<\EOF
4143 #define HAVE_CBRT 1
4144 EOF
4145
4146 else
4147   echo "$ac_t""no" 1>&6
4148 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
4149 echo "configure:4149: checking for cbrt in -lm" >&5
4150 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4152   echo $ac_n "(cached) $ac_c" 1>&6
4153 else
4154   ac_save_LIBS="$LIBS"
4155 LIBS="-lm  $LIBS"
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4157 "configure"
4158 #include "confdefs.h"
4159 /* Override any gcc2 internal prototype to avoid an error.  */
4160 /* We use char because int might match the return type of a gcc2
4161     builtin and then its argument prototype would still apply.  */
4162 char cbrt();
4163
4164 int main() {
4165 cbrt()
4166 ; return 0; }
4167 EOF
4168 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4169   rm -rf conftest*
4170   eval "ac_cv_lib_$ac_lib_var=yes"
4171 else
4172   echo "configure: failed program was:" >&5
4173   cat conftest.$ac_ext >&5
4174   rm -rf conftest*
4175   eval "ac_cv_lib_$ac_lib_var=no"
4176 fi
4177 rm -f conftest*
4178 LIBS="$ac_save_LIBS"
4179
4180 fi
4181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4182   echo "$ac_t""yes" 1>&6
4183   cat >> confdefs.h <<\EOF
4184 #define HAVE_CBRT 1
4185 EOF
4186
4187 else
4188   echo "$ac_t""no" 1>&6
4189 fi
4190
4191 fi
4192
4193 echo $ac_n "checking for rint""... $ac_c" 1>&6
4194 echo "configure:4194: checking for rint" >&5
4195 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
4196   echo $ac_n "(cached) $ac_c" 1>&6
4197 else
4198   cat > conftest.$ac_ext <<EOF
4199 #line 4199 "configure"
4200 #include "confdefs.h"
4201 /* System header to define __stub macros and hopefully few prototypes,
4202     which can conflict with char rint(); below.  */
4203 #include <assert.h>
4204 /* Override any gcc2 internal prototype to avoid an error.  */
4205 /* We use char because int might match the return type of a gcc2
4206     builtin and then its argument prototype would still apply.  */
4207 char rint();
4208
4209 int main() {
4210
4211 /* The GNU C library defines this for functions which it implements
4212     to always fail with ENOSYS.  Some functions are actually named
4213     something starting with __ and the normal name is an alias.  */
4214 #if defined (__stub_rint) || defined (__stub___rint)
4215 choke me
4216 #else
4217 rint();
4218 #endif
4219
4220 ; return 0; }
4221 EOF
4222 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4223   rm -rf conftest*
4224   eval "ac_cv_func_rint=yes"
4225 else
4226   echo "configure: failed program was:" >&5
4227   cat conftest.$ac_ext >&5
4228   rm -rf conftest*
4229   eval "ac_cv_func_rint=no"
4230 fi
4231 rm -f conftest*
4232 fi
4233
4234 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
4235   echo "$ac_t""yes" 1>&6
4236   cat >> confdefs.h <<\EOF
4237 #define HAVE_RINT 1
4238 EOF
4239
4240 else
4241   echo "$ac_t""no" 1>&6
4242 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
4243 echo "configure:4243: checking for rint in -lm" >&5
4244 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246   echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4248   ac_save_LIBS="$LIBS"
4249 LIBS="-lm  $LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4251 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error.  */
4254 /* We use char because int might match the return type of a gcc2
4255     builtin and then its argument prototype would still apply.  */
4256 char rint();
4257
4258 int main() {
4259 rint()
4260 ; return 0; }
4261 EOF
4262 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4263   rm -rf conftest*
4264   eval "ac_cv_lib_$ac_lib_var=yes"
4265 else
4266   echo "configure: failed program was:" >&5
4267   cat conftest.$ac_ext >&5
4268   rm -rf conftest*
4269   eval "ac_cv_lib_$ac_lib_var=no"
4270 fi
4271 rm -f conftest*
4272 LIBS="$ac_save_LIBS"
4273
4274 fi
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276   echo "$ac_t""yes" 1>&6
4277   cat >> confdefs.h <<\EOF
4278 #define HAVE_RINT 1
4279 EOF
4280
4281 else
4282   echo "$ac_t""no" 1>&6
4283 fi
4284
4285 fi
4286
4287
4288 echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
4289 echo "configure:4289: checking setting USE_LOCALE" >&5
4290 if test "$USE_LOCALE" = "yes"
4291 then
4292         echo "$ac_t""enabled" 1>&6
4293         cat >> confdefs.h <<\EOF
4294 #define USE_LOCALE 1
4295 EOF
4296
4297 else
4298         echo "$ac_t""disabled" 1>&6
4299 fi
4300 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
4301 echo "configure:4301: checking setting DEF_PGPORT" >&5
4302 cat >> confdefs.h <<EOF
4303 #define DEF_PGPORT "${DEF_PGPORT}"
4304 EOF
4305
4306 echo "$ac_t""$DEF_PGPORT" 1>&6
4307 echo $ac_n "checking setting HBA""... $ac_c" 1>&6
4308 echo "configure:4308: checking setting HBA" >&5
4309 if test "$NOHBA" = "no"
4310 then
4311         echo "$ac_t""enabled" 1>&6
4312         cat >> confdefs.h <<\EOF
4313 #define HBA 1
4314 EOF
4315
4316 else
4317         echo "$ac_t""disabled" 1>&6
4318 fi 
4319
4320
4321 trap '' 1 2 15
4322 cat > confcache <<\EOF
4323 # This file is a shell script that caches the results of configure
4324 # tests run on this system so they can be shared between configure
4325 # scripts and configure runs.  It is not useful on other systems.
4326 # If it contains results you don't want to keep, you may remove or edit it.
4327 #
4328 # By default, configure uses ./config.cache as the cache file,
4329 # creating it if it does not exist already.  You can give configure
4330 # the --cache-file=FILE option to use a different cache file; that is
4331 # what configure does when it calls configure scripts in
4332 # subdirectories, so they share the cache.
4333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4334 # config.status only pays attention to the cache file if you give it the
4335 # --recheck option to rerun configure.
4336 #
4337 EOF
4338 # The following way of writing the cache mishandles newlines in values,
4339 # but we know of no workaround that is simple, portable, and efficient.
4340 # So, don't put newlines in cache variables' values.
4341 # Ultrix sh set writes to stderr and can't be redirected directly,
4342 # and sets the high bit in the cache file unless we assign to the vars.
4343 (set) 2>&1 |
4344   case `(ac_space=' '; set) 2>&1` in
4345   *ac_space=\ *)
4346     # `set' does not quote correctly, so add quotes (double-quote substitution
4347     # turns \\\\ into \\, and sed turns \\ into \).
4348     sed -n \
4349       -e "s/'/'\\\\''/g" \
4350       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4351     ;;
4352   *)
4353     # `set' quotes correctly as required by POSIX, so do not add quotes.
4354     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4355     ;;
4356   esac >> confcache
4357 if cmp -s $cache_file confcache; then
4358   :
4359 else
4360   if test -w $cache_file; then
4361     echo "updating cache $cache_file"
4362     cat confcache > $cache_file
4363   else
4364     echo "not updating unwritable cache $cache_file"
4365   fi
4366 fi
4367 rm -f confcache
4368
4369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4370
4371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4372 # Let make expand exec_prefix.
4373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4374
4375 # Any assignment to VPATH causes Sun make to only execute
4376 # the first set of double-colon rules, so remove it if not needed.
4377 # If there is a colon in the path, we need to keep it.
4378 if test "x$srcdir" = x.; then
4379   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4380 fi
4381
4382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4383
4384 DEFS=-DHAVE_CONFIG_H
4385
4386 # Without the "./", some shells look in PATH for config.status.
4387 : ${CONFIG_STATUS=./config.status}
4388
4389 echo creating $CONFIG_STATUS
4390 rm -f $CONFIG_STATUS
4391 cat > $CONFIG_STATUS <<EOF
4392 #! /bin/sh
4393 # Generated automatically by configure.
4394 # Run this file to recreate the current configuration.
4395 # This directory was configured as follows,
4396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4397 #
4398 # $0 $ac_configure_args
4399 #
4400 # Compiler output produced by configure, useful for debugging
4401 # configure, is in ./config.log if it exists.
4402
4403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4404 for ac_option
4405 do
4406   case "\$ac_option" in
4407   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4408     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4409     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4410   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4411     echo "$CONFIG_STATUS generated by autoconf version 2.12"
4412     exit 0 ;;
4413   -help | --help | --hel | --he | --h)
4414     echo "\$ac_cs_usage"; exit 0 ;;
4415   *) echo "\$ac_cs_usage"; exit 1 ;;
4416   esac
4417 done
4418
4419 ac_given_srcdir=$srcdir
4420
4421 trap 'rm -fr `echo "GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4422 EOF
4423 cat >> $CONFIG_STATUS <<EOF
4424
4425 # Protect against being on the right side of a sed subst in config.status.
4426 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4427  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4428 $ac_vpsub
4429 $extrasub
4430 s%@CFLAGS@%$CFLAGS%g
4431 s%@CPPFLAGS@%$CPPFLAGS%g
4432 s%@CXXFLAGS@%$CXXFLAGS%g
4433 s%@DEFS@%$DEFS%g
4434 s%@LDFLAGS@%$LDFLAGS%g
4435 s%@LIBS@%$LIBS%g
4436 s%@exec_prefix@%$exec_prefix%g
4437 s%@prefix@%$prefix%g
4438 s%@program_transform_name@%$program_transform_name%g
4439 s%@bindir@%$bindir%g
4440 s%@sbindir@%$sbindir%g
4441 s%@libexecdir@%$libexecdir%g
4442 s%@datadir@%$datadir%g
4443 s%@sysconfdir@%$sysconfdir%g
4444 s%@sharedstatedir@%$sharedstatedir%g
4445 s%@localstatedir@%$localstatedir%g
4446 s%@libdir@%$libdir%g
4447 s%@includedir@%$includedir%g
4448 s%@oldincludedir@%$oldincludedir%g
4449 s%@infodir@%$infodir%g
4450 s%@mandir@%$mandir%g
4451 s%@host@%$host%g
4452 s%@host_alias@%$host_alias%g
4453 s%@host_cpu@%$host_cpu%g
4454 s%@host_vendor@%$host_vendor%g
4455 s%@host_os@%$host_os%g
4456 s%@TAS@%$TAS%g
4457 s%@PORTNAME@%$PORTNAME%g
4458 s%@CC@%$CC%g
4459 s%@CPP@%$CPP%g
4460 s%@AROPT@%$AROPT%g
4461 s%@SHARED_LIB@%$SHARED_LIB%g
4462 s%@DLSUFFIX@%$DLSUFFIX%g
4463 s%@DL_LIB@%$DL_LIB%g
4464 s%@USE_TCL@%$USE_TCL%g
4465 s%@USE_PERL@%$USE_PERL%g
4466 s%@HAVECXX@%$HAVECXX%g
4467 s%@INSTALL@%$INSTALL%g
4468 s%@INSTLOPTS@%$INSTLOPTS%g
4469 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
4470 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
4471 s%@DASH_N@%$DASH_N%g
4472 s%@BACKSLASH_C@%$BACKSLASH_C%g
4473 s%@LEX@%$LEX%g
4474 s%@LEXLIB@%$LEXLIB%g
4475 s%@LN_S@%$LN_S%g
4476 s%@SET_MAKE@%$SET_MAKE%g
4477 s%@RANLIB@%$RANLIB%g
4478 s%@find@%$find%g
4479 s%@tar@%$tar%g
4480 s%@split@%$split%g
4481 s%@etags@%$etags%g
4482 s%@xargs@%$xargs%g
4483 s%@ipcs@%$ipcs%g
4484 s%@ipcrm@%$ipcrm%g
4485 s%@TR@%$TR%g
4486 s%@TRARGS@%$TRARGS%g
4487 s%@YACC@%$YACC%g
4488 s%@YFLAGS@%$YFLAGS%g
4489 s%@yacc@%$yacc%g
4490 s%@bison@%$bison%g
4491 s%@LIBOBJS@%$LIBOBJS%g
4492 s%@ISINF@%$ISINF%g
4493 s%@GETRUSAGE@%$GETRUSAGE%g
4494 s%@SRANDOM@%$SRANDOM%g
4495 s%@GETHOSTNAME@%$GETHOSTNAME%g
4496 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
4497 s%@INET_ATON@%$INET_ATON%g
4498 s%@STRERROR@%$STRERROR%g
4499 s%@STRERROR2@%$STRERROR2%g
4500 s%@STRDUP@%$STRDUP%g
4501 s%@STRCASECMP@%$STRCASECMP%g
4502
4503 CEOF
4504 EOF
4505
4506 cat >> $CONFIG_STATUS <<\EOF
4507
4508 # Split the substitutions into bite-sized pieces for seds with
4509 # small command number limits, like on Digital OSF/1 and HP-UX.
4510 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4511 ac_file=1 # Number of current file.
4512 ac_beg=1 # First line for current file.
4513 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4514 ac_more_lines=:
4515 ac_sed_cmds=""
4516 while $ac_more_lines; do
4517   if test $ac_beg -gt 1; then
4518     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4519   else
4520     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4521   fi
4522   if test ! -s conftest.s$ac_file; then
4523     ac_more_lines=false
4524     rm -f conftest.s$ac_file
4525   else
4526     if test -z "$ac_sed_cmds"; then
4527       ac_sed_cmds="sed -f conftest.s$ac_file"
4528     else
4529       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4530     fi
4531     ac_file=`expr $ac_file + 1`
4532     ac_beg=$ac_end
4533     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4534   fi
4535 done
4536 if test -z "$ac_sed_cmds"; then
4537   ac_sed_cmds=cat
4538 fi
4539 EOF
4540
4541 cat >> $CONFIG_STATUS <<EOF
4542
4543 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile"}
4544 EOF
4545 cat >> $CONFIG_STATUS <<\EOF
4546 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4547   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4548   case "$ac_file" in
4549   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4550        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4551   *) ac_file_in="${ac_file}.in" ;;
4552   esac
4553
4554   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4555
4556   # Remove last slash and all that follows it.  Not all systems have dirname.
4557   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4558   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4559     # The file is in a subdirectory.
4560     test ! -d "$ac_dir" && mkdir "$ac_dir"
4561     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4562     # A "../" for each directory in $ac_dir_suffix.
4563     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4564   else
4565     ac_dir_suffix= ac_dots=
4566   fi
4567
4568   case "$ac_given_srcdir" in
4569   .)  srcdir=.
4570       if test -z "$ac_dots"; then top_srcdir=.
4571       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4572   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4573   *) # Relative path.
4574     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4575     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4576   esac
4577
4578
4579   echo creating "$ac_file"
4580   rm -f "$ac_file"
4581   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4582   case "$ac_file" in
4583   *Makefile*) ac_comsub="1i\\
4584 # $configure_input" ;;
4585   *) ac_comsub= ;;
4586   esac
4587
4588   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4589   sed -e "$ac_comsub
4590 s%@configure_input@%$configure_input%g
4591 s%@srcdir@%$srcdir%g
4592 s%@top_srcdir@%$top_srcdir%g
4593 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4594 fi; done
4595 rm -f conftest.s*
4596
4597 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4598 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4599 #
4600 # ac_d sets the value in "#define NAME VALUE" lines.
4601 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4602 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4603 ac_dC='\3'
4604 ac_dD='%g'
4605 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4606 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4607 ac_uB='\([      ]\)%\1#\2define\3'
4608 ac_uC=' '
4609 ac_uD='\4%g'
4610 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4611 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4612 ac_eB='$%\1#\2define\3'
4613 ac_eC=' '
4614 ac_eD='%g'
4615
4616 if test "${CONFIG_HEADERS+set}" != set; then
4617 EOF
4618 cat >> $CONFIG_STATUS <<EOF
4619   CONFIG_HEADERS="include/config.h"
4620 EOF
4621 cat >> $CONFIG_STATUS <<\EOF
4622 fi
4623 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4624   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4625   case "$ac_file" in
4626   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4627        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4628   *) ac_file_in="${ac_file}.in" ;;
4629   esac
4630
4631   echo creating $ac_file
4632
4633   rm -f conftest.frag conftest.in conftest.out
4634   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4635   cat $ac_file_inputs > conftest.in
4636
4637 EOF
4638
4639 # Transform confdefs.h into a sed script conftest.vals that substitutes
4640 # the proper values into config.h.in to produce config.h.  And first:
4641 # Protect against being on the right side of a sed subst in config.status.
4642 # Protect against being in an unquoted here document in config.status.
4643 rm -f conftest.vals
4644 cat > conftest.hdr <<\EOF
4645 s/[\\&%]/\\&/g
4646 s%[\\$`]%\\&%g
4647 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4648 s%ac_d%ac_u%gp
4649 s%ac_u%ac_e%gp
4650 EOF
4651 sed -n -f conftest.hdr confdefs.h > conftest.vals
4652 rm -f conftest.hdr
4653
4654 # This sed command replaces #undef with comments.  This is necessary, for
4655 # example, in the case of _POSIX_SOURCE, which is predefined and required
4656 # on some systems where configure will not decide to define it.
4657 cat >> conftest.vals <<\EOF
4658 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4659 EOF
4660
4661 # Break up conftest.vals because some shells have a limit on
4662 # the size of here documents, and old seds have small limits too.
4663
4664 rm -f conftest.tail
4665 while :
4666 do
4667   ac_lines=`grep -c . conftest.vals`
4668   # grep -c gives empty output for an empty file on some AIX systems.
4669   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4670   # Write a limited-size here document to conftest.frag.
4671   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4672   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4673   echo 'CEOF
4674   sed -f conftest.frag conftest.in > conftest.out
4675   rm -f conftest.in
4676   mv conftest.out conftest.in
4677 ' >> $CONFIG_STATUS
4678   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4679   rm -f conftest.vals
4680   mv conftest.tail conftest.vals
4681 done
4682 rm -f conftest.vals
4683
4684 cat >> $CONFIG_STATUS <<\EOF
4685   rm -f conftest.frag conftest.h
4686   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4687   cat conftest.in >> conftest.h
4688   rm -f conftest.in
4689   if cmp -s $ac_file conftest.h 2>/dev/null; then
4690     echo "$ac_file is unchanged"
4691     rm -f conftest.h
4692   else
4693     # Remove last slash and all that follows it.  Not all systems have dirname.
4694       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4695       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4696       # The file is in a subdirectory.
4697       test ! -d "$ac_dir" && mkdir "$ac_dir"
4698     fi
4699     rm -f $ac_file
4700     mv conftest.h $ac_file
4701   fi
4702 fi; done
4703
4704 EOF
4705
4706 cat >> $CONFIG_STATUS <<EOF
4707 ac_sources="backend/port/tas/i386_solaris.s backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
4708 ac_dests="backend/port/tas.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
4709 EOF
4710
4711 cat >> $CONFIG_STATUS <<\EOF
4712 srcdir=$ac_given_srcdir
4713 while test -n "$ac_sources"; do
4714   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4715   set $ac_sources; ac_source=$1; shift; ac_sources=$*
4716
4717   echo "linking $srcdir/$ac_source to $ac_dest"
4718
4719   if test ! -r $srcdir/$ac_source; then
4720     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4721   fi
4722   rm -f $ac_dest
4723
4724   # Make relative symlinks.
4725   # Remove last slash and all that follows it.  Not all systems have dirname.
4726   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4727   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4728     # The dest file is in a subdirectory.
4729     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4730     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4731     # A "../" for each directory in $ac_dest_dir_suffix.
4732     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4733   else
4734     ac_dest_dir_suffix= ac_dots=
4735   fi
4736
4737   case "$srcdir" in
4738   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4739   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4740   esac
4741
4742   # Make a symlink if possible; otherwise try a hard link.
4743   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4744     ln $srcdir/$ac_source $ac_dest; then :
4745   else
4746     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4747   fi
4748 done
4749 EOF
4750 cat >> $CONFIG_STATUS <<EOF
4751
4752 EOF
4753 cat >> $CONFIG_STATUS <<\EOF
4754
4755 exit 0
4756 EOF
4757 chmod +x $CONFIG_STATUS
4758 rm -fr confdefs* $ac_clean_files
4759 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4760