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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
20 cache_file=./config.cache
29 program_transform_name=s,x,x,
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'
50 # Initialize some other variables.
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
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; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
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; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
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.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
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
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
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" ;;
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" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
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" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.12"
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; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
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" ;;
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" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
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
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
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; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
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
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
518 ac_n= ac_c='\c' ac_t=
525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526 if test -f $ac_dir/install-sh; then
528 ac_install_sh="$ac_aux_dir/install-sh -c"
530 elif test -f $ac_dir/install.sh; then
532 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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; }
549 echo $ac_n "checking host system type""... $ac_c" 1>&6
550 echo "configure:551: checking host system type" >&5
553 case "$host_alias" in
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; }
560 *) host_alias=$nonopt ;;
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
573 sparc) os=sparc_solaris need_tas=yes ;;
574 i386) os=i386_solaris need_tas=yes ;;
580 freebsd*|netbsd*|openbsd*) os=bsd ;;
583 nextstep*) os=nextstep;;
584 ultrix*) os=ultrix4;;
586 hpux*) os=hpux need_tas=yes ;;
589 machten*) os=machten;;
592 case "$host_vendor" in
598 echo "*************************************************************"
599 echo "configure does not currently recognize your operating system,"
600 echo "therefore you must do a manual configuration of:"
602 echo "Please contact scrappy@hub.org to see about rectifying this, "
603 echo "including the above 'checking host system type...' line "
604 echo "*************************************************************"
609 if test $need_tas = "yes"
623 echo "checking echo setting..."
624 if echo '\c' | grep -s c >/dev/null 2>&1
634 **************************************************************
635 PostreSQL v6.2 Installation Program
637 Welcome to the new improved PostgreSQL installation program.
638 This configuration program is for version 6.2 of the
644 if test "X$with_template" != "X"
646 TEMPLATE=template/$with_template
648 TEMPLATE=DO_NOT_CHANGE_THIS_INVALID_FILENAME
651 if test ! -f $TEMPLATE
654 Please select a template from the ones listed below. If no
655 template is available, then select the 'generic' one and
656 consider emailling scrappy@hub.org with the above line which
657 starts 'checking host system type...'
658 **************************************************************
661 GUESS=`grep "$host" template/.similar 2>/dev/null`
663 then host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`
664 GUESS=`grep "$host_no_ver" template/.similar 2>/dev/null`
668 TEMPLATE=`echo $GUESS | sed 's/.*=//'`
672 echo "**************************************************************"
673 $ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"
679 if test ! -f template/$TEMPLATE
681 echo "You must choose an appropriate template file."
684 TEMPLATE=template/$TEMPLATE
689 AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
690 SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
691 CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
692 SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`
693 SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`
694 USE_LOCALE=`grep '^USE_LOCALE:' $TEMPLATE | awk -F: '{print $2}'`
695 DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`
696 DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`
697 YACC=`grep '^YACC:' $TEMPLATE | awk -F: '{print $2}'`
698 YFLAGS=`grep '^YFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
699 CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`
700 LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`
703 echo "**************************************************************"
704 echo "We now need to know if your compiler needs to search any
705 echo "additional directories for include or library files. If
706 echo "you don't know the answers to these questions, then just
707 echo "hit enter and we will try and figure it out. If things
708 echo "don't compile because of missing libraries or include
709 echo "files, then you probably need to enter something here.
710 echo "enter 'none' or new directories to override default"
712 $ECHO_N "Additional directories to search for include files { $SRCH_INC }: $ECHO_C"
713 if test "X$with_defaults" = "Xyes"
720 if test "$a." = "none."
729 CPPFLAGS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
733 echo "- setting CPPFLAGS=$CPPFLAGS"
735 $ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
736 if test "X$with_defaults" = "Xyes"
743 if test "$a." = "none."
752 LDFLAGS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
756 echo "- setting LDFLAGS=$LDFLAGS"
758 if test "$enable_locale" = "yes" -o "$enable_locale" = "no"
760 USE_LOCALE=$enable_locale
766 if test "X$with_pgport" != "X"
768 DEF_PGPORT=$with_pgport
774 if test "X$with_tcl" = "Xyes"
782 if test "X$with_perl" = "Xyes"
790 if test "$enable_hba" = "yes"
793 elif test "$enable_hba" = "no"
803 if test "$enable_cassert" = "no"
805 echo "-ASSERT CHECKING disabled"
806 cat >> confdefs.h <<\EOF
807 #define NO_ASSERT_CHECKING 1
810 elif test "$enable_cassert" = "yes"
812 echo "-ASSERT CHECKING enabled"
814 echo "-ASSERT CHECKING disabled"
815 cat >> confdefs.h <<\EOF
816 #define NO_ASSERT_CHECKING 1
821 if test "X$with_compiler" != "X"
825 # Extract the first word of "gcc", so it can be a program name with args.
826 set dummy gcc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
836 for ac_dir in $PATH; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc", so it can be a program name with args.
855 set dummy cc; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
866 for ac_dir in $PATH; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
878 if test $ac_prog_rejected = yes; then
879 # We found a bogon in the path, so make sure we never use it.
880 set dummy $ac_cv_prog_CC
882 if test $# -gt 0; then
883 # We chose a different compiler from the bogus one.
884 # However, it has the same basename, so the bogon will be chosen
885 # first if we set CC to just the basename; use the full file name.
887 set dummy "$ac_dir/$ac_word" "$@"
895 if test -n "$CC"; then
896 echo "$ac_t""$CC" 1>&6
898 echo "$ac_t""no" 1>&6
901 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp='$CPP $CPPFLAGS'
910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling=$ac_cv_prog_cc_cross
914 cat > conftest.$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
920 ac_cv_prog_cc_works=yes
921 # If we can't run a trivial program, we are probably using a cross compiler.
922 if (./conftest; exit) 2>/dev/null; then
923 ac_cv_prog_cc_cross=no
925 ac_cv_prog_cc_cross=yes
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 ac_cv_prog_cc_works=no
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling=$ac_cv_prog_cc_cross
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 cat > conftest.c <<EOF
953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
962 if test $ac_cv_prog_gcc = yes; then
964 ac_test_CFLAGS="${CFLAGS+set}"
965 ac_save_CFLAGS="$CFLAGS"
967 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
968 echo "configure:969: checking whether ${CC-cc} accepts -g" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 echo 'void f(){}' > conftest.c
973 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
983 if test "$ac_test_CFLAGS" = set; then
984 CFLAGS="$ac_save_CFLAGS"
985 elif test $ac_cv_prog_cc_g = yes; then
992 test "${CFLAGS+set}" = set || CFLAGS="-g"
1000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1001 echo "configure:1002: checking how to run the C preprocessor" >&5
1002 # On Suns, sometimes $CPP names a directory.
1003 if test -n "$CPP" && test -d "$CPP"; then
1006 if test -z "$CPP"; then
1007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 # This must be in double quotes, not single quotes, because CPP may get
1011 # substituted into the Makefile and "${CC-cc}" will confuse make.
1013 # On the NeXT, cc -E runs the code through the compiler's parser,
1014 # not just through cpp.
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1023 ac_err=`grep -v '^ *+' conftest.out`
1024 if test -z "$ac_err"; then
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 CPP="${CC-cc} -E -traditional-cpp"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out`
1041 if test -z "$ac_err"; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1053 ac_cv_prog_CPP="$CPP"
1055 CPP="$ac_cv_prog_CPP"
1057 ac_cv_prog_CPP="$CPP"
1059 echo "$ac_t""$CPP" 1>&6
1073 HAVECXX='HAVE_Cplusplus=false'
1075 INSTALLPATH="/usr/ucb:$PATH"
1076 for ac_prog in ginstall installbsd bsdinst scoinst install
1078 # Extract the first word of "$ac_prog", so it can be a program name with args.
1079 set dummy $ac_prog; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1087 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1091 for ac_dir in $INSTALLPATH$ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_path_INSTALL="$ac_dir/$ac_word"
1102 INSTALL="$ac_cv_path_INSTALL"
1103 if test -n "$INSTALL"; then
1104 echo "$ac_t""$INSTALL" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 test -n "$INSTALL" && break
1111 test -n "$INSTALL" || INSTALL="NONE"
1113 if test $INSTALL = "NONE"
1115 echo "- No Install Script found - aborting."
1120 INSTL_EXE_OPTS="-m 555"
1121 INSTL_LIB_OPTS="-m 664"
1123 case "`basename $INSTALL`" in
1124 install|installbsd|scoinst)
1125 INSTLOPTS="-c $INSTLOPTS"
1126 INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1127 INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS";;
1130 echo "- Using $INSTALL"
1136 ECHO_N_OUT=`echo -n "" | wc -c`
1137 ECHO_C_OUT=`echo "\c" | wc -c`
1138 if test "$ECHO_N_OUT" -eq 0; then
1142 if test "ECHO_C_OUT" -eq 0; then
1146 { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
1152 # Extract the first word of "flex", so it can be a program name with args.
1153 set dummy flex; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$LEX"; then
1160 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1163 for ac_dir in $PATH; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_LEX="flex"
1171 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1174 LEX="$ac_cv_prog_LEX"
1175 if test -n "$LEX"; then
1176 echo "$ac_t""$LEX" 1>&6
1178 echo "$ac_t""no" 1>&6
1181 if test -z "$LEXLIB"
1187 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1188 echo "configure:1189: checking for yywrap in -l$ac_lib" >&5
1189 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 ac_save_LIBS="$LIBS"
1194 LIBS="-l$ac_lib $LIBS"
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* Override any gcc2 internal prototype to avoid an error. */
1199 /* We use char because int might match the return type of a gcc2
1200 builtin and then its argument prototype would still apply. */
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1209 eval "ac_cv_lib_$ac_lib_var=yes"
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1214 eval "ac_cv_lib_$ac_lib_var=no"
1217 LIBS="$ac_save_LIBS"
1220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1229 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ln -s works" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1235 if ln -s X conftestdata 2>/dev/null
1238 ac_cv_prog_LN_S="ln -s"
1243 LN_S="$ac_cv_prog_LN_S"
1244 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1245 echo "$ac_t""yes" 1>&6
1247 echo "$ac_t""no" 1>&6
1250 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${MAKE-make} sets \${MAKE}" >&5
1252 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1253 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftestmake <<\EOF
1258 @echo 'ac_maketemp="${MAKE}"'
1260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1261 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1262 if test -n "$ac_maketemp"; then
1263 eval ac_cv_prog_make_${ac_make}_set=yes
1265 eval ac_cv_prog_make_${ac_make}_set=no
1269 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
1273 echo "$ac_t""no" 1>&6
1274 SET_MAKE="MAKE=${MAKE-make}"
1277 # Extract the first word of "ranlib", so it can be a program name with args.
1278 set dummy ranlib; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test -n "$RANLIB"; then
1285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1288 for ac_dir in $PATH; do
1289 test -z "$ac_dir" && ac_dir=.
1290 if test -f $ac_dir/$ac_word; then
1291 ac_cv_prog_RANLIB="ranlib"
1296 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1299 RANLIB="$ac_cv_prog_RANLIB"
1300 if test -n "$RANLIB"; then
1301 echo "$ac_t""$RANLIB" 1>&6
1303 echo "$ac_t""no" 1>&6
1306 # Extract the first word of "find", so it can be a program name with args.
1307 set dummy find; ac_word=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1315 ac_cv_path_find="$find" # Let the user override the test with a path.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1319 for ac_dir in $PATH; do
1320 test -z "$ac_dir" && ac_dir=.
1321 if test -f $ac_dir/$ac_word; then
1322 ac_cv_path_find="$ac_dir/$ac_word"
1330 find="$ac_cv_path_find"
1331 if test -n "$find"; then
1332 echo "$ac_t""$find" 1>&6
1334 echo "$ac_t""no" 1>&6
1337 # Extract the first word of "tar", so it can be a program name with args.
1338 set dummy tar; ac_word=$2
1339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_word" >&5
1341 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1346 ac_cv_path_tar="$tar" # Let the user override the test with a path.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1350 for ac_dir in $PATH; do
1351 test -z "$ac_dir" && ac_dir=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_path_tar="$ac_dir/$ac_word"
1361 tar="$ac_cv_path_tar"
1362 if test -n "$tar"; then
1363 echo "$ac_t""$tar" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 # Extract the first word of "split", so it can be a program name with args.
1369 set dummy split; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1377 ac_cv_path_split="$split" # Let the user override the test with a path.
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1381 for ac_dir in $PATH; do
1382 test -z "$ac_dir" && ac_dir=.
1383 if test -f $ac_dir/$ac_word; then
1384 ac_cv_path_split="$ac_dir/$ac_word"
1392 split="$ac_cv_path_split"
1393 if test -n "$split"; then
1394 echo "$ac_t""$split" 1>&6
1396 echo "$ac_t""no" 1>&6
1399 # Extract the first word of "etags", so it can be a program name with args.
1400 set dummy etags; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1408 ac_cv_path_etags="$etags" # Let the user override the test with a path.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1412 for ac_dir in $PATH; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_path_etags="$ac_dir/$ac_word"
1423 etags="$ac_cv_path_etags"
1424 if test -n "$etags"; then
1425 echo "$ac_t""$etags" 1>&6
1427 echo "$ac_t""no" 1>&6
1430 # Extract the first word of "xargs", so it can be a program name with args.
1431 set dummy xargs; ac_word=$2
1432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_word" >&5
1434 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1439 ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1443 for ac_dir in $PATH; do
1444 test -z "$ac_dir" && ac_dir=.
1445 if test -f $ac_dir/$ac_word; then
1446 ac_cv_path_xargs="$ac_dir/$ac_word"
1454 xargs="$ac_cv_path_xargs"
1455 if test -n "$xargs"; then
1456 echo "$ac_t""$xargs" 1>&6
1458 echo "$ac_t""no" 1>&6
1461 # Extract the first word of "ipcs", so it can be a program name with args.
1462 set dummy ipcs; ac_word=$2
1463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1464 echo "configure:1465: checking for $ac_word" >&5
1465 if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1470 ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1474 for ac_dir in $PATH; do
1475 test -z "$ac_dir" && ac_dir=.
1476 if test -f $ac_dir/$ac_word; then
1477 ac_cv_path_ipcs="$ac_dir/$ac_word"
1485 ipcs="$ac_cv_path_ipcs"
1486 if test -n "$ipcs"; then
1487 echo "$ac_t""$ipcs" 1>&6
1489 echo "$ac_t""no" 1>&6
1492 # Extract the first word of "ipcrm", so it can be a program name with args.
1493 set dummy ipcrm; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1505 for ac_dir in $PATH; do
1506 test -z "$ac_dir" && ac_dir=.
1507 if test -f $ac_dir/$ac_word; then
1508 ac_cv_path_ipcrm="$ac_dir/$ac_word"
1516 ipcrm="$ac_cv_path_ipcrm"
1517 if test -n "$ipcrm"; then
1518 echo "$ac_t""$ipcrm" 1>&6
1520 echo "$ac_t""no" 1>&6
1523 for ac_prog in trbsd tr
1525 # Extract the first word of "$ac_prog", so it can be a program name with args.
1526 set dummy $ac_prog; ac_word=$2
1527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_word" >&5
1529 if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1534 ac_cv_path_TR="$TR" # Let the user override the test with a path.
1537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1538 for ac_dir in $PATH; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_path_TR="$ac_dir/$ac_word"
1550 if test -n "$TR"; then
1551 echo "$ac_t""$TR" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 test -n "$TR" && break
1558 test -n "$TR" || TR="NOT_FOUND"
1561 TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
1562 TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1564 if test "$TRSTRINGS" = "ABCDEF"; then
1565 TRARGS="'[a-z]' '[A-Z]'"
1566 elif test "$TRCLASS" = "ABCDEF"; then
1567 TRARGS="'[:lower:]' '[:upper:]'"
1569 { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; }
1576 # Extract the first word of "yacc", so it can be a program name with args.
1577 set dummy yacc; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1580 if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1585 ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1589 for ac_dir in $PATH; do
1590 test -z "$ac_dir" && ac_dir=.
1591 if test -f $ac_dir/$ac_word; then
1592 ac_cv_path_yacc="$ac_dir/$ac_word"
1600 yacc="$ac_cv_path_yacc"
1601 if test -n "$yacc"; then
1602 echo "$ac_t""$yacc" 1>&6
1604 echo "$ac_t""no" 1>&6
1607 # Extract the first word of "bison", so it can be a program name with args.
1608 set dummy bison; ac_word=$2
1609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_word" >&5
1611 if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1616 ac_cv_path_bison="$bison" # Let the user override the test with a path.
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1620 for ac_dir in $PATH; do
1621 test -z "$ac_dir" && ac_dir=.
1622 if test -f $ac_dir/$ac_word; then
1623 ac_cv_path_bison="$ac_dir/$ac_word"
1631 bison="$ac_cv_path_bison"
1632 if test -n "$bison"; then
1633 echo "$ac_t""$bison" 1>&6
1635 echo "$ac_t""no" 1>&6
1640 echo "- Using $YACC $YFLAGS"
1641 elif test -f "$bison"
1643 echo "- Using $bison -y $YFLAGS"
1648 echo "- Using $yacc $YFLAGS"
1653 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1654 echo "configure:1655: checking for main in -lcurses" >&5
1655 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 ac_save_LIBS="$LIBS"
1660 LIBS="-lcurses $LIBS"
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1671 eval "ac_cv_lib_$ac_lib_var=yes"
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1676 eval "ac_cv_lib_$ac_lib_var=no"
1679 LIBS="$ac_save_LIBS"
1682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1684 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1686 cat >> confdefs.h <<EOF
1687 #define $ac_tr_lib 1
1690 LIBS="-lcurses $LIBS"
1693 echo "$ac_t""no" 1>&6
1696 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
1697 echo "configure:1698: checking for main in -ltermcap" >&5
1698 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
1699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 ac_save_LIBS="$LIBS"
1703 LIBS="-ltermcap $LIBS"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1712 if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1714 eval "ac_cv_lib_$ac_lib_var=yes"
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1719 eval "ac_cv_lib_$ac_lib_var=no"
1722 LIBS="$ac_save_LIBS"
1725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1727 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1729 cat >> confdefs.h <<EOF
1730 #define $ac_tr_lib 1
1733 LIBS="-ltermcap $LIBS"
1736 echo "$ac_t""no" 1>&6
1739 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
1740 echo "configure:1741: checking for main in -lhistory" >&5
1741 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
1742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 ac_save_LIBS="$LIBS"
1746 LIBS="-lhistory $LIBS"
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1757 eval "ac_cv_lib_$ac_lib_var=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 eval "ac_cv_lib_$ac_lib_var=no"
1765 LIBS="$ac_save_LIBS"
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1770 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1771 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1772 cat >> confdefs.h <<EOF
1773 #define $ac_tr_lib 1
1776 LIBS="-lhistory $LIBS"
1779 echo "$ac_t""no" 1>&6
1782 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1783 echo "configure:1784: checking for main in -lreadline" >&5
1784 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 ac_save_LIBS="$LIBS"
1789 LIBS="-lreadline $LIBS"
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1800 eval "ac_cv_lib_$ac_lib_var=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_lib_$ac_lib_var=no"
1808 LIBS="$ac_save_LIBS"
1811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1815 cat >> confdefs.h <<EOF
1816 #define $ac_tr_lib 1
1819 LIBS="-lreadline $LIBS"
1822 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
1826 echo "configure:1827: checking for write_history in -lreadline" >&5
1827 ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 ac_save_LIBS="$LIBS"
1832 LIBS="-lreadline $LIBS"
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1839 char write_history();
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 cat >> confdefs.h <<\EOF
1861 #define HAVE_HISTORY 1
1865 echo "$ac_t""no" 1>&6
1868 if test "$PORTNAME" != "aix"
1870 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1871 echo "configure:1872: checking for main in -lbsd" >&5
1872 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 ac_save_LIBS="$LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1903 cat >> confdefs.h <<EOF
1904 #define $ac_tr_lib 1
1910 echo "$ac_t""no" 1>&6
1914 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1915 echo "configure:1916: checking for main in -lm" >&5
1916 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 ac_save_LIBS="$LIBS"
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1932 eval "ac_cv_lib_$ac_lib_var=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_lib_$ac_lib_var=no"
1940 LIBS="$ac_save_LIBS"
1943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1945 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1946 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1947 cat >> confdefs.h <<EOF
1948 #define $ac_tr_lib 1
1954 echo "$ac_t""no" 1>&6
1957 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1958 echo "configure:1959: checking for main in -ldl" >&5
1959 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 ac_save_LIBS="$LIBS"
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1973 if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1975 eval "ac_cv_lib_$ac_lib_var=yes"
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1980 eval "ac_cv_lib_$ac_lib_var=no"
1983 LIBS="$ac_save_LIBS"
1986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1990 cat >> confdefs.h <<EOF
1991 #define $ac_tr_lib 1
1997 echo "$ac_t""no" 1>&6
2000 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2001 echo "configure:2002: checking for main in -lsocket" >&5
2002 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 ac_save_LIBS="$LIBS"
2007 LIBS="-lsocket $LIBS"
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2018 eval "ac_cv_lib_$ac_lib_var=yes"
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2023 eval "ac_cv_lib_$ac_lib_var=no"
2026 LIBS="$ac_save_LIBS"
2029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2031 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_lib 1
2037 LIBS="-lsocket $LIBS"
2040 echo "$ac_t""no" 1>&6
2043 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2044 echo "configure:2045: checking for main in -lnsl" >&5
2045 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 ac_save_LIBS="$LIBS"
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2061 eval "ac_cv_lib_$ac_lib_var=yes"
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 eval "ac_cv_lib_$ac_lib_var=no"
2069 LIBS="$ac_save_LIBS"
2072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2074 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2076 cat >> confdefs.h <<EOF
2077 #define $ac_tr_lib 1
2083 echo "$ac_t""no" 1>&6
2086 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
2087 echo "configure:2088: checking for main in -lipc" >&5
2088 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 ac_save_LIBS="$LIBS"
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2104 eval "ac_cv_lib_$ac_lib_var=yes"
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 eval "ac_cv_lib_$ac_lib_var=no"
2112 LIBS="$ac_save_LIBS"
2115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2117 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_lib 1
2126 echo "$ac_t""no" 1>&6
2129 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
2130 echo "configure:2131: checking for main in -lIPC" >&5
2131 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 ac_save_LIBS="$LIBS"
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_lib_$ac_lib_var=no"
2155 LIBS="$ac_save_LIBS"
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_lib 1
2169 echo "$ac_t""no" 1>&6
2172 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
2173 echo "configure:2174: checking for main in -llc" >&5
2174 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 ac_save_LIBS="$LIBS"
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2188 if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2190 eval "ac_cv_lib_$ac_lib_var=yes"
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2195 eval "ac_cv_lib_$ac_lib_var=no"
2198 LIBS="$ac_save_LIBS"
2201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2205 cat >> confdefs.h <<EOF
2206 #define $ac_tr_lib 1
2212 echo "$ac_t""no" 1>&6
2215 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
2216 echo "configure:2217: checking for main in -ldld" >&5
2217 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 ac_save_LIBS="$LIBS"
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2233 eval "ac_cv_lib_$ac_lib_var=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 eval "ac_cv_lib_$ac_lib_var=no"
2241 LIBS="$ac_save_LIBS"
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2248 cat >> confdefs.h <<EOF
2249 #define $ac_tr_lib 1
2255 echo "$ac_t""no" 1>&6
2258 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
2259 echo "configure:2260: checking for main in -lln" >&5
2260 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 ac_save_LIBS="$LIBS"
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2276 eval "ac_cv_lib_$ac_lib_var=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2281 eval "ac_cv_lib_$ac_lib_var=no"
2284 LIBS="$ac_save_LIBS"
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_lib 1
2298 echo "$ac_t""no" 1>&6
2301 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
2302 echo "configure:2303: checking for main in -lld" >&5
2303 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_save_LIBS="$LIBS"
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_lib_$ac_lib_var=no"
2327 LIBS="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h <<EOF
2335 #define $ac_tr_lib 1
2341 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
2345 echo "configure:2346: checking for main in -lcompat" >&5
2346 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS="$LIBS"
2351 LIBS="-lcompat $LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2362 eval "ac_cv_lib_$ac_lib_var=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_lib_$ac_lib_var=no"
2370 LIBS="$ac_save_LIBS"
2373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2375 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2377 cat >> confdefs.h <<EOF
2378 #define $ac_tr_lib 1
2381 LIBS="-lcompat $LIBS"
2384 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
2388 echo "configure:2389: checking for main in -lBSD" >&5
2389 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_save_LIBS="$LIBS"
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2405 eval "ac_cv_lib_$ac_lib_var=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 eval "ac_cv_lib_$ac_lib_var=no"
2413 LIBS="$ac_save_LIBS"
2416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2417 echo "$ac_t""yes" 1>&6
2418 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2420 cat >> confdefs.h <<EOF
2421 #define $ac_tr_lib 1
2427 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2431 echo "configure:2432: checking for main in -lcrypt" >&5
2432 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 ac_save_LIBS="$LIBS"
2437 LIBS="-lcrypt $LIBS"
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2448 eval "ac_cv_lib_$ac_lib_var=yes"
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 eval "ac_cv_lib_$ac_lib_var=no"
2456 LIBS="$ac_save_LIBS"
2459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_lib 1
2467 LIBS="-lcrypt $LIBS"
2470 echo "$ac_t""no" 1>&6
2473 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2474 echo "configure:2475: checking for main in -lgen" >&5
2475 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 ac_save_LIBS="$LIBS"
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2491 eval "ac_cv_lib_$ac_lib_var=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_lib_$ac_lib_var=no"
2499 LIBS="$ac_save_LIBS"
2502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_lib 1
2513 echo "$ac_t""no" 1>&6
2516 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
2517 echo "configure:2518: checking for main in -lPW" >&5
2518 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
2519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 ac_save_LIBS="$LIBS"
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2534 eval "ac_cv_lib_$ac_lib_var=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 eval "ac_cv_lib_$ac_lib_var=no"
2542 LIBS="$ac_save_LIBS"
2545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2549 cat >> confdefs.h <<EOF
2550 #define $ac_tr_lib 1
2556 echo "$ac_t""no" 1>&6
2560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2561 echo "configure:2562: checking for ANSI C header files" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out`
2576 if test -z "$ac_err"; then
2578 ac_cv_header_stdc=yes
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 ac_cv_header_stdc=no
2588 if test $ac_cv_header_stdc = yes; then
2589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "memchr" >/dev/null 2>&1; then
2600 ac_cv_header_stdc=no
2606 if test $ac_cv_header_stdc = yes; then
2607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2614 egrep "free" >/dev/null 2>&1; then
2618 ac_cv_header_stdc=no
2624 if test $ac_cv_header_stdc = yes; then
2625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2626 if test "$cross_compiling" = yes; then
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2636 int main () { int i; for (i = 0; i < 256; i++)
2637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 ac_cv_header_stdc=no
2656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2657 if test $ac_cv_header_stdc = yes; then
2658 cat >> confdefs.h <<\EOF
2659 #define STDC_HEADERS 1
2664 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2665 echo "configure:2666: checking for sys/wait.h that is POSIX.1 compatible" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <sys/types.h>
2673 #include <sys/wait.h>
2675 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2678 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2686 if { (eval echo configure:2687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2688 ac_cv_header_sys_wait_h=yes
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 ac_cv_header_sys_wait_h=no
2698 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2699 if test $ac_cv_header_sys_wait_h = yes; then
2700 cat >> confdefs.h <<\EOF
2701 #define HAVE_SYS_WAIT_H 1
2706 for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
2708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_hdr" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out`
2722 if test -z "$ac_err"; then
2724 eval "ac_cv_header_$ac_safe=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2730 eval "ac_cv_header_$ac_safe=no"
2734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2737 cat >> confdefs.h <<EOF
2738 #define $ac_tr_hdr 1
2742 echo "$ac_t""no" 1>&6
2746 for ac_hdr in sys/resource.h netdb.h arpa/inet.h
2748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_hdr 1
2782 echo "$ac_t""no" 1>&6
2786 for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
2788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_hdr" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out`
2802 if test -z "$ac_err"; then
2804 eval "ac_cv_header_$ac_safe=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2810 eval "ac_cv_header_$ac_safe=no"
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2817 cat >> confdefs.h <<EOF
2818 #define $ac_tr_hdr 1
2822 echo "$ac_t""no" 1>&6
2826 for ac_hdr in readline/history.h ieeefp.h fp_class.h
2828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_hdr" >&5
2831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out`
2842 if test -z "$ac_err"; then
2844 eval "ac_cv_header_$ac_safe=yes"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2850 eval "ac_cv_header_$ac_safe=no"
2854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_hdr 1
2862 echo "$ac_t""no" 1>&6
2867 echo $ac_n "checking for working const""... $ac_c" 1>&6
2868 echo "configure:2869: checking for working const" >&5
2869 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2878 /* Ultrix mips cc rejects this. */
2879 typedef int charset[2]; const charset x;
2880 /* SunOS 4.1.1 cc rejects this. */
2881 char const *const *ccp;
2883 /* NEC SVR4.0.2 mips cc rejects this. */
2884 struct point {int x, y;};
2885 static struct point const zero = {0,0};
2886 /* AIX XL C 1.02.0.0 rejects this.
2887 It does not let you subtract one const X* pointer from another in an arm
2888 of an if-expression whose if-part is not a constant expression */
2889 const char *g = "string";
2890 ccp = &g + (g ? g-g : 0);
2891 /* HPUX 7.0 cc rejects these. */
2894 ccp = (char const *const *) p;
2895 { /* SCO 3.2v4 cc rejects this. */
2897 char const *s = 0 ? (char *) 0 : (char const *) 0;
2901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2903 const int *foo = &x[0];
2906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2907 typedef const int *iptr;
2911 { /* AIX XL C 1.02.0.0 rejects this saying
2912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2913 struct s { int j; const int *ap[3]; };
2914 struct s *b; b->j = 5;
2916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2922 if { (eval echo configure:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2934 echo "$ac_t""$ac_cv_c_const" 1>&6
2935 if test $ac_cv_c_const = no; then
2936 cat >> confdefs.h <<\EOF
2942 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2943 echo "configure:2944: checking for uid_t in sys/types.h" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "uid_t" >/dev/null 2>&1; then
2955 ac_cv_type_uid_t=yes
2964 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2965 if test $ac_cv_type_uid_t = no; then
2966 cat >> confdefs.h <<\EOF
2970 cat >> confdefs.h <<\EOF
2976 echo $ac_n "checking for inline""... $ac_c" 1>&6
2977 echo "configure:2978: checking for inline" >&5
2978 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2982 for ac_kw in inline __inline__ __inline; do
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2991 if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 ac_cv_c_inline=$ac_kw; break
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
3003 echo "$ac_t""$ac_cv_c_inline" 1>&6
3004 case "$ac_cv_c_inline" in
3006 no) cat >> confdefs.h <<\EOF
3010 *) cat >> confdefs.h <<EOF
3011 #define inline $ac_cv_c_inline
3016 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3017 echo "configure:3018: checking for mode_t" >&5
3018 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 #include <sys/types.h>
3030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3033 ac_cv_type_mode_t=yes
3036 ac_cv_type_mode_t=no
3041 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3042 if test $ac_cv_type_mode_t = no; then
3043 cat >> confdefs.h <<\EOF
3049 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3050 echo "configure:3051: checking for off_t" >&5
3051 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <sys/types.h>
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3066 ac_cv_type_off_t=yes
3074 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3075 if test $ac_cv_type_off_t = no; then
3076 cat >> confdefs.h <<\EOF
3082 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3083 echo "configure:3084: checking for size_t" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <sys/types.h>
3096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3097 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3099 ac_cv_type_size_t=yes
3102 ac_cv_type_size_t=no
3107 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3108 if test $ac_cv_type_size_t = no; then
3109 cat >> confdefs.h <<\EOF
3110 #define size_t unsigned
3115 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3116 echo "configure:3117: checking whether time.h and sys/time.h may both be included" >&5
3117 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 #include <sys/types.h>
3124 #include <sys/time.h>
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132 ac_cv_header_time=yes
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 ac_cv_header_time=no
3142 echo "$ac_t""$ac_cv_header_time" 1>&6
3143 if test $ac_cv_header_time = yes; then
3144 cat >> confdefs.h <<\EOF
3145 #define TIME_WITH_SYS_TIME 1
3150 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3151 echo "configure:3152: checking whether struct tm is in sys/time.h or time.h" >&5
3152 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 #include <sys/types.h>
3161 struct tm *tp; tp->tm_sec;
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166 ac_cv_struct_tm=time.h
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 ac_cv_struct_tm=sys/time.h
3176 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3177 if test $ac_cv_struct_tm = sys/time.h; then
3178 cat >> confdefs.h <<\EOF
3179 #define TM_IN_SYS_TIME 1
3185 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
3186 echo "configure:3187: checking for int timezone" >&5
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3192 int res = timezone / 60;
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3197 cat >> confdefs.h <<\EOF
3198 #define HAVE_INT_TIMEZONE 1
3200 echo "$ac_t""yes" 1>&6
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3205 echo "$ac_t""no" 1>&6
3209 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3210 echo "configure:3211: checking for union semun" >&5
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3215 #include <sys/ipc.h>
3216 #include <sys/sem.h>
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_UNION_SEMUN 1
3226 echo "$ac_t""yes" 1>&6
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 echo "$ac_t""no" 1>&6
3235 if test $ac_cv_prog_gcc = yes; then
3236 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3237 echo "configure:3238: checking whether ${CC-cc} needs -traditional" >&5
3238 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 ac_pattern="Autoconf.*'x'"
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3249 egrep "$ac_pattern" >/dev/null 2>&1; then
3251 ac_cv_prog_gcc_traditional=yes
3254 ac_cv_prog_gcc_traditional=no
3259 if test $ac_cv_prog_gcc_traditional = no; then
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 egrep "$ac_pattern" >/dev/null 2>&1; then
3269 ac_cv_prog_gcc_traditional=yes
3276 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3277 if test $ac_cv_prog_gcc_traditional = yes; then
3278 CC="$CC -traditional"
3282 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3283 echo "configure:3284: checking for 8-bit clean memcmp" >&5
3284 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 if test "$cross_compiling" = yes; then
3288 ac_cv_func_memcmp_clean=no
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3296 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3297 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3303 ac_cv_func_memcmp_clean=yes
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3308 ac_cv_func_memcmp_clean=no
3315 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3316 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3318 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3319 echo "configure:3320: checking return type of signal handlers" >&5
3320 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326 #include <sys/types.h>
3332 extern "C" void (*signal (int, void (*)(int)))(int);
3334 void (*signal ()) ();
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 ac_cv_type_signal=void
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3348 ac_cv_type_signal=int
3353 echo "$ac_t""$ac_cv_type_signal" 1>&6
3354 cat >> confdefs.h <<EOF
3355 #define RETSIGTYPE $ac_cv_type_signal
3359 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3360 echo "configure:3361: checking for vprintf" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char vprintf(); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3390 eval "ac_cv_func_vprintf=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 eval "ac_cv_func_vprintf=no"
3400 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 cat >> confdefs.h <<\EOF
3403 #define HAVE_VPRINTF 1
3407 echo "$ac_t""no" 1>&6
3410 if test "$ac_cv_func_vprintf" != yes; then
3411 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3412 echo "configure:3413: checking for _doprnt" >&5
3413 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* System header to define __stub macros and hopefully few prototypes,
3420 which can conflict with char _doprnt(); below. */
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3429 /* The GNU C library defines this for functions which it implements
3430 to always fail with ENOSYS. Some functions are actually named
3431 something starting with __ and the normal name is an alias. */
3432 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3442 eval "ac_cv_func__doprnt=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_func__doprnt=no"
3452 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 cat >> confdefs.h <<\EOF
3455 #define HAVE_DOPRNT 1
3459 echo "$ac_t""no" 1>&6
3464 for ac_func in tzset vfork memmove sigsetjmp kill sysconf fpclass
3466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3467 echo "configure:3468: checking for $ac_func" >&5
3468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 /* System header to define __stub macros and hopefully few prototypes,
3475 which can conflict with char $ac_func(); below. */
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3484 /* The GNU C library defines this for functions which it implements
3485 to always fail with ENOSYS. Some functions are actually named
3486 something starting with __ and the normal name is an alias. */
3487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3497 eval "ac_cv_func_$ac_func=yes"
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 eval "ac_cv_func_$ac_func=no"
3507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3510 cat >> confdefs.h <<EOF
3511 #define $ac_tr_func 1
3515 echo "$ac_t""no" 1>&6
3519 for ac_func in fp_class fp_class_d class
3521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3522 echo "configure:3523: checking for $ac_func" >&5
3523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* System header to define __stub macros and hopefully few prototypes,
3530 which can conflict with char $ac_func(); below. */
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3539 /* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3552 eval "ac_cv_func_$ac_func=yes"
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3557 eval "ac_cv_func_$ac_func=no"
3562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3565 cat >> confdefs.h <<EOF
3566 #define $ac_tr_func 1
3570 echo "$ac_t""no" 1>&6
3574 for ac_func in sigprocmask waitpid setsid fcvt
3576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3577 echo "configure:3578: checking for $ac_func" >&5
3578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* System header to define __stub macros and hopefully few prototypes,
3585 which can conflict with char $ac_func(); below. */
3587 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3594 /* The GNU C library defines this for functions which it implements
3595 to always fail with ENOSYS. Some functions are actually named
3596 something starting with __ and the normal name is an alias. */
3597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3607 eval "ac_cv_func_$ac_func=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 eval "ac_cv_func_$ac_func=no"
3617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3620 cat >> confdefs.h <<EOF
3621 #define $ac_tr_func 1
3625 echo "$ac_t""no" 1>&6
3629 echo $ac_n "checking for isinf""... $ac_c" 1>&6
3630 echo "configure:3631: checking for isinf" >&5
3631 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 /* System header to define __stub macros and hopefully few prototypes,
3638 which can conflict with char isinf(); below. */
3640 /* Override any gcc2 internal prototype to avoid an error. */
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3647 /* The GNU C library defines this for functions which it implements
3648 to always fail with ENOSYS. Some functions are actually named
3649 something starting with __ and the normal name is an alias. */
3650 #if defined (__stub_isinf) || defined (__stub___isinf)
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3660 eval "ac_cv_func_isinf=yes"
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 eval "ac_cv_func_isinf=no"
3670 if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 cat >> confdefs.h <<\EOF
3673 #define HAVE_ISINF 1
3677 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
3683 echo "configure:3684: checking for getrusage" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* System header to define __stub macros and hopefully few prototypes,
3691 which can conflict with char getrusage(); below. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_getrusage) || defined (__stub___getrusage)
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3713 eval "ac_cv_func_getrusage=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 eval "ac_cv_func_getrusage=no"
3723 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_GETRUSAGE 1
3730 echo "$ac_t""no" 1>&6
3731 GETRUSAGE='getrusage.o'
3735 echo $ac_n "checking for srandom""... $ac_c" 1>&6
3736 echo "configure:3737: checking for srandom" >&5
3737 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char srandom(); below. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3753 /* The GNU C library defines this for functions which it implements
3754 to always fail with ENOSYS. Some functions are actually named
3755 something starting with __ and the normal name is an alias. */
3756 #if defined (__stub_srandom) || defined (__stub___srandom)
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3766 eval "ac_cv_func_srandom=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_func_srandom=no"
3776 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 cat >> confdefs.h <<\EOF
3779 #define HAVE_SRANDOM 1
3783 echo "$ac_t""no" 1>&6
3788 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
3789 echo "configure:3790: checking for gethostname" >&5
3790 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* System header to define __stub macros and hopefully few prototypes,
3797 which can conflict with char gethostname(); below. */
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3806 /* The GNU C library defines this for functions which it implements
3807 to always fail with ENOSYS. Some functions are actually named
3808 something starting with __ and the normal name is an alias. */
3809 #if defined (__stub_gethostname) || defined (__stub___gethostname)
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3819 eval "ac_cv_func_gethostname=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_func_gethostname=no"
3829 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 cat >> confdefs.h <<\EOF
3832 #define HAVE_GETHOSTNAME 1
3836 echo "$ac_t""no" 1>&6
3837 GETHOSTNAME='gethostname.o'
3841 echo $ac_n "checking for random""... $ac_c" 1>&6
3842 echo "configure:3843: checking for random" >&5
3843 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 /* System header to define __stub macros and hopefully few prototypes,
3850 which can conflict with char random(); below. */
3852 /* Override any gcc2 internal prototype to avoid an error. */
3853 /* We use char because int might match the return type of a gcc2
3854 builtin and then its argument prototype would still apply. */
3859 /* The GNU C library defines this for functions which it implements
3860 to always fail with ENOSYS. Some functions are actually named
3861 something starting with __ and the normal name is an alias. */
3862 #if defined (__stub_random) || defined (__stub___random)
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3872 eval "ac_cv_func_random=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_func_random=no"
3882 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_RANDOM 1
3889 echo "$ac_t""no" 1>&6
3890 MISSING_RANDOM='random.o'
3894 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3895 echo "configure:3896: checking for inet_aton" >&5
3896 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* System header to define __stub macros and hopefully few prototypes,
3903 which can conflict with char inet_aton(); below. */
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3912 /* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3925 eval "ac_cv_func_inet_aton=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 eval "ac_cv_func_inet_aton=no"
3935 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 cat >> confdefs.h <<\EOF
3938 #define HAVE_INET_ATON 1
3942 echo "$ac_t""no" 1>&6
3943 INET_ATON='inet_aton.o'
3947 echo $ac_n "checking for strerror""... $ac_c" 1>&6
3948 echo "configure:3949: checking for strerror" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char strerror(); below. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_strerror) || defined (__stub___strerror)
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3978 eval "ac_cv_func_strerror=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_func_strerror=no"
3988 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_STRERROR 1
3995 echo "$ac_t""no" 1>&6
3996 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
4001 echo $ac_n "checking for strdup""... $ac_c" 1>&6
4002 echo "configure:4003: checking for strdup" >&5
4003 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* System header to define __stub macros and hopefully few prototypes,
4010 which can conflict with char strdup(); below. */
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4019 /* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022 #if defined (__stub_strdup) || defined (__stub___strdup)
4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4032 eval "ac_cv_func_strdup=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_func_strdup=no"
4042 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4044 cat >> confdefs.h <<\EOF
4045 #define HAVE_STRDUP 1
4049 echo "$ac_t""no" 1>&6
4050 STRDUP='../../utils/strdup.o'
4054 echo $ac_n "checking for strtol""... $ac_c" 1>&6
4055 echo "configure:4056: checking for strtol" >&5
4056 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 /* System header to define __stub macros and hopefully few prototypes,
4063 which can conflict with char strtol(); below. */
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4072 /* The GNU C library defines this for functions which it implements
4073 to always fail with ENOSYS. Some functions are actually named
4074 something starting with __ and the normal name is an alias. */
4075 #if defined (__stub_strtol) || defined (__stub___strtol)
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4085 eval "ac_cv_func_strtol=yes"
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 eval "ac_cv_func_strtol=no"
4095 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_STRTOL 1
4102 echo "$ac_t""no" 1>&6
4106 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
4107 echo "configure:4108: checking for strcasecmp" >&5
4108 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 /* System header to define __stub macros and hopefully few prototypes,
4115 which can conflict with char strcasecmp(); below. */
4117 /* Override any gcc2 internal prototype to avoid an error. */
4118 /* We use char because int might match the return type of a gcc2
4119 builtin and then its argument prototype would still apply. */
4124 /* The GNU C library defines this for functions which it implements
4125 to always fail with ENOSYS. Some functions are actually named
4126 something starting with __ and the normal name is an alias. */
4127 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4137 eval "ac_cv_func_strcasecmp=yes"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 eval "ac_cv_func_strcasecmp=no"
4147 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_STRCASECMP 1
4154 echo "$ac_t""no" 1>&6
4155 STRCASECMP='strcasecmp.o'
4159 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
4160 echo "configure:4161: checking for cbrt" >&5
4161 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* System header to define __stub macros and hopefully few prototypes,
4168 which can conflict with char cbrt(); below. */
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4177 /* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
4180 #if defined (__stub_cbrt) || defined (__stub___cbrt)
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4190 eval "ac_cv_func_cbrt=yes"
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 eval "ac_cv_func_cbrt=no"
4200 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 cat >> confdefs.h <<\EOF
4207 echo "$ac_t""no" 1>&6
4208 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
4209 echo "configure:4210: checking for cbrt in -lm" >&5
4210 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS="$LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 cat >> confdefs.h <<\EOF
4248 echo "$ac_t""no" 1>&6
4253 echo $ac_n "checking for rint""... $ac_c" 1>&6
4254 echo "configure:4255: checking for rint" >&5
4255 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* System header to define __stub macros and hopefully few prototypes,
4262 which can conflict with char rint(); below. */
4264 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4271 /* The GNU C library defines this for functions which it implements
4272 to always fail with ENOSYS. Some functions are actually named
4273 something starting with __ and the normal name is an alias. */
4274 #if defined (__stub_rint) || defined (__stub___rint)
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4284 eval "ac_cv_func_rint=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 eval "ac_cv_func_rint=no"
4294 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4296 cat >> confdefs.h <<\EOF
4301 echo "$ac_t""no" 1>&6
4302 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
4303 echo "configure:4304: checking for rint in -lm" >&5
4304 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_save_LIBS="$LIBS"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4324 eval "ac_cv_lib_$ac_lib_var=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_lib_$ac_lib_var=no"
4332 LIBS="$ac_save_LIBS"
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 cat >> confdefs.h <<\EOF
4342 echo "$ac_t""no" 1>&6
4348 echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
4349 echo "configure:4350: checking setting USE_LOCALE" >&5
4350 if test "$USE_LOCALE" = "yes"
4352 echo "$ac_t""enabled" 1>&6
4353 cat >> confdefs.h <<\EOF
4354 #define USE_LOCALE 1
4358 echo "$ac_t""disabled" 1>&6
4360 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
4361 echo "configure:4362: checking setting DEF_PGPORT" >&5
4362 cat >> confdefs.h <<EOF
4363 #define DEF_PGPORT "${DEF_PGPORT}"
4366 echo "$ac_t""$DEF_PGPORT" 1>&6
4367 echo $ac_n "checking setting HBA""... $ac_c" 1>&6
4368 echo "configure:4369: checking setting HBA" >&5
4369 if test "$NOHBA" = "no"
4371 echo "$ac_t""enabled" 1>&6
4372 cat >> confdefs.h <<\EOF
4377 echo "$ac_t""disabled" 1>&6
4382 cat > confcache <<\EOF
4383 # This file is a shell script that caches the results of configure
4384 # tests run on this system so they can be shared between configure
4385 # scripts and configure runs. It is not useful on other systems.
4386 # If it contains results you don't want to keep, you may remove or edit it.
4388 # By default, configure uses ./config.cache as the cache file,
4389 # creating it if it does not exist already. You can give configure
4390 # the --cache-file=FILE option to use a different cache file; that is
4391 # what configure does when it calls configure scripts in
4392 # subdirectories, so they share the cache.
4393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4394 # config.status only pays attention to the cache file if you give it the
4395 # --recheck option to rerun configure.
4398 # The following way of writing the cache mishandles newlines in values,
4399 # but we know of no workaround that is simple, portable, and efficient.
4400 # So, don't put newlines in cache variables' values.
4401 # Ultrix sh set writes to stderr and can't be redirected directly,
4402 # and sets the high bit in the cache file unless we assign to the vars.
4404 case `(ac_space=' '; set) 2>&1` in
4406 # `set' does not quote correctly, so add quotes (double-quote substitution
4407 # turns \\\\ into \\, and sed turns \\ into \).
4409 -e "s/'/'\\\\''/g" \
4410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4413 # `set' quotes correctly as required by POSIX, so do not add quotes.
4414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4417 if cmp -s $cache_file confcache; then
4420 if test -w $cache_file; then
4421 echo "updating cache $cache_file"
4422 cat confcache > $cache_file
4424 echo "not updating unwritable cache $cache_file"
4429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4432 # Let make expand exec_prefix.
4433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4435 # Any assignment to VPATH causes Sun make to only execute
4436 # the first set of double-colon rules, so remove it if not needed.
4437 # If there is a colon in the path, we need to keep it.
4438 if test "x$srcdir" = x.; then
4439 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4444 DEFS=-DHAVE_CONFIG_H
4446 # Without the "./", some shells look in PATH for config.status.
4447 : ${CONFIG_STATUS=./config.status}
4449 echo creating $CONFIG_STATUS
4450 rm -f $CONFIG_STATUS
4451 cat > $CONFIG_STATUS <<EOF
4453 # Generated automatically by configure.
4454 # Run this file to recreate the current configuration.
4455 # This directory was configured as follows,
4456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4458 # $0 $ac_configure_args
4460 # Compiler output produced by configure, useful for debugging
4461 # configure, is in ./config.log if it exists.
4463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4466 case "\$ac_option" in
4467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4471 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4473 -help | --help | --hel | --he | --h)
4474 echo "\$ac_cs_usage"; exit 0 ;;
4475 *) echo "\$ac_cs_usage"; exit 1 ;;
4479 ac_given_srcdir=$srcdir
4481 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
4483 cat >> $CONFIG_STATUS <<EOF
4485 # Protect against being on the right side of a sed subst in config.status.
4486 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4487 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4490 s%@CFLAGS@%$CFLAGS%g
4491 s%@CPPFLAGS@%$CPPFLAGS%g
4492 s%@CXXFLAGS@%$CXXFLAGS%g
4494 s%@LDFLAGS@%$LDFLAGS%g
4496 s%@exec_prefix@%$exec_prefix%g
4497 s%@prefix@%$prefix%g
4498 s%@program_transform_name@%$program_transform_name%g
4499 s%@bindir@%$bindir%g
4500 s%@sbindir@%$sbindir%g
4501 s%@libexecdir@%$libexecdir%g
4502 s%@datadir@%$datadir%g
4503 s%@sysconfdir@%$sysconfdir%g
4504 s%@sharedstatedir@%$sharedstatedir%g
4505 s%@localstatedir@%$localstatedir%g
4506 s%@libdir@%$libdir%g
4507 s%@includedir@%$includedir%g
4508 s%@oldincludedir@%$oldincludedir%g
4509 s%@infodir@%$infodir%g
4510 s%@mandir@%$mandir%g
4512 s%@host_alias@%$host_alias%g
4513 s%@host_cpu@%$host_cpu%g
4514 s%@host_vendor@%$host_vendor%g
4515 s%@host_os@%$host_os%g
4517 s%@PORTNAME@%$PORTNAME%g
4521 s%@SHARED_LIB@%$SHARED_LIB%g
4522 s%@DLSUFFIX@%$DLSUFFIX%g
4523 s%@DL_LIB@%$DL_LIB%g
4524 s%@USE_TCL@%$USE_TCL%g
4525 s%@USE_PERL@%$USE_PERL%g
4526 s%@HAVECXX@%$HAVECXX%g
4527 s%@INSTALL@%$INSTALL%g
4528 s%@INSTLOPTS@%$INSTLOPTS%g
4529 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
4530 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
4531 s%@DASH_N@%$DASH_N%g
4532 s%@BACKSLASH_C@%$BACKSLASH_C%g
4534 s%@LEXLIB@%$LEXLIB%g
4536 s%@SET_MAKE@%$SET_MAKE%g
4537 s%@RANLIB@%$RANLIB%g
4546 s%@TRARGS@%$TRARGS%g
4548 s%@YFLAGS@%$YFLAGS%g
4551 s%@LIBOBJS@%$LIBOBJS%g
4553 s%@GETRUSAGE@%$GETRUSAGE%g
4554 s%@SRANDOM@%$SRANDOM%g
4555 s%@GETHOSTNAME@%$GETHOSTNAME%g
4556 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
4557 s%@INET_ATON@%$INET_ATON%g
4558 s%@STRERROR@%$STRERROR%g
4559 s%@STRERROR2@%$STRERROR2%g
4560 s%@STRDUP@%$STRDUP%g
4561 s%@STRCASECMP@%$STRCASECMP%g
4566 cat >> $CONFIG_STATUS <<\EOF
4568 # Split the substitutions into bite-sized pieces for seds with
4569 # small command number limits, like on Digital OSF/1 and HP-UX.
4570 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4571 ac_file=1 # Number of current file.
4572 ac_beg=1 # First line for current file.
4573 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4576 while $ac_more_lines; do
4577 if test $ac_beg -gt 1; then
4578 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4580 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4582 if test ! -s conftest.s$ac_file; then
4584 rm -f conftest.s$ac_file
4586 if test -z "$ac_sed_cmds"; then
4587 ac_sed_cmds="sed -f conftest.s$ac_file"
4589 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4591 ac_file=`expr $ac_file + 1`
4593 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4596 if test -z "$ac_sed_cmds"; then
4601 cat >> $CONFIG_STATUS <<EOF
4603 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"}
4605 cat >> $CONFIG_STATUS <<\EOF
4606 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4609 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4610 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4611 *) ac_file_in="${ac_file}.in" ;;
4614 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4616 # Remove last slash and all that follows it. Not all systems have dirname.
4617 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4618 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4619 # The file is in a subdirectory.
4620 test ! -d "$ac_dir" && mkdir "$ac_dir"
4621 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4622 # A "../" for each directory in $ac_dir_suffix.
4623 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4625 ac_dir_suffix= ac_dots=
4628 case "$ac_given_srcdir" in
4630 if test -z "$ac_dots"; then top_srcdir=.
4631 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4632 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4634 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4635 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4639 echo creating "$ac_file"
4641 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4643 *Makefile*) ac_comsub="1i\\
4644 # $configure_input" ;;
4648 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4650 s%@configure_input@%$configure_input%g
4651 s%@srcdir@%$srcdir%g
4652 s%@top_srcdir@%$top_srcdir%g
4653 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4660 # ac_d sets the value in "#define NAME VALUE" lines.
4661 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4662 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4665 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4666 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4667 ac_uB='\([ ]\)%\1#\2define\3'
4670 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4671 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4672 ac_eB='$%\1#\2define\3'
4676 if test "${CONFIG_HEADERS+set}" != set; then
4678 cat >> $CONFIG_STATUS <<EOF
4679 CONFIG_HEADERS="include/config.h"
4681 cat >> $CONFIG_STATUS <<\EOF
4683 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4686 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4687 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4688 *) ac_file_in="${ac_file}.in" ;;
4691 echo creating $ac_file
4693 rm -f conftest.frag conftest.in conftest.out
4694 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4695 cat $ac_file_inputs > conftest.in
4699 # Transform confdefs.h into a sed script conftest.vals that substitutes
4700 # the proper values into config.h.in to produce config.h. And first:
4701 # Protect against being on the right side of a sed subst in config.status.
4702 # Protect against being in an unquoted here document in config.status.
4704 cat > conftest.hdr <<\EOF
4707 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4711 sed -n -f conftest.hdr confdefs.h > conftest.vals
4714 # This sed command replaces #undef with comments. This is necessary, for
4715 # example, in the case of _POSIX_SOURCE, which is predefined and required
4716 # on some systems where configure will not decide to define it.
4717 cat >> conftest.vals <<\EOF
4718 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4721 # Break up conftest.vals because some shells have a limit on
4722 # the size of here documents, and old seds have small limits too.
4727 ac_lines=`grep -c . conftest.vals`
4728 # grep -c gives empty output for an empty file on some AIX systems.
4729 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4730 # Write a limited-size here document to conftest.frag.
4731 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4732 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4734 sed -f conftest.frag conftest.in > conftest.out
4736 mv conftest.out conftest.in
4738 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4740 mv conftest.tail conftest.vals
4744 cat >> $CONFIG_STATUS <<\EOF
4745 rm -f conftest.frag conftest.h
4746 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4747 cat conftest.in >> conftest.h
4749 if cmp -s $ac_file conftest.h 2>/dev/null; then
4750 echo "$ac_file is unchanged"
4753 # Remove last slash and all that follows it. Not all systems have dirname.
4754 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4755 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4756 # The file is in a subdirectory.
4757 test ! -d "$ac_dir" && mkdir "$ac_dir"
4760 mv conftest.h $ac_file
4766 cat >> $CONFIG_STATUS <<EOF
4767 ac_sources="backend/port/tas/${os}.s backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
4768 ac_dests="backend/port/${os}.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
4771 cat >> $CONFIG_STATUS <<\EOF
4772 srcdir=$ac_given_srcdir
4773 while test -n "$ac_sources"; do
4774 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4775 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4777 echo "linking $srcdir/$ac_source to $ac_dest"
4779 if test ! -r $srcdir/$ac_source; then
4780 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4784 # Make relative symlinks.
4785 # Remove last slash and all that follows it. Not all systems have dirname.
4786 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4787 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4788 # The dest file is in a subdirectory.
4789 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4790 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4791 # A "../" for each directory in $ac_dest_dir_suffix.
4792 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4794 ac_dest_dir_suffix= ac_dots=
4798 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4799 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4802 # Make a symlink if possible; otherwise try a hard link.
4803 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4804 ln $srcdir/$ac_source $ac_dest; then :
4806 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4810 cat >> $CONFIG_STATUS <<EOF
4813 cat >> $CONFIG_STATUS <<\EOF
4817 chmod +x $CONFIG_STATUS
4818 rm -fr confdefs* $ac_clean_files
4819 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1