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 ;;
583 freebsd*|netbsd*) os=bsd ;;
586 nextstep*) os=nextstep;;
587 ultrix*) os=ultrix4;;
592 machten*) os=machten;;
594 case "$host_vendor" in
600 echo "*************************************************************"
601 echo "configure does not currently recognize your operating system,"
602 echo "therefore you must do a manual configuration of:"
604 echo "Please contact scrappy@hub.org to see about rectifying this, "
605 echo "including the above 'checking host system type...' line "
606 echo "*************************************************************"
619 echo "checking echo setting..."
620 if echo '\c' | grep -s c >/dev/null 2>&1
630 **************************************************************
631 PostreSQL v6.2 Installation Program
633 Welcome to the new improved PostgreSQL installation program.
634 This configuration program is for version 6.2 of the
640 if test "X$with_template" != "X"
642 TEMPLATE=template/$with_template
644 TEMPLATE=DO_NOT_CHANGE_THIS_INVALID_FILENAME
647 if test ! -f $TEMPLATE
650 Please select a template from the ones listed below. If no
651 template is available, then select the 'generic' one and
652 consider emailling scrappy@hub.org with the above line which
653 starts 'checking host system type...'
654 **************************************************************
657 GUESS=`grep "$host" template/.similar 2>/dev/null`
659 then host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`
660 GUESS=`grep "$host_no_ver" template/.similar 2>/dev/null`
664 TEMPLATE=`echo $GUESS | sed 's/.*=//'`
668 echo "**************************************************************"
669 $ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"
675 if test ! -f template/$TEMPLATE
677 echo "You must choose an appropriate template file."
680 TEMPLATE=template/$TEMPLATE
685 AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
686 SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
687 CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
688 SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`
689 SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`
690 USE_LOCALE=`grep '^USE_LOCALE:' $TEMPLATE | awk -F: '{print $2}'`
691 DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`
692 DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`
693 YACC=`grep '^YACC:' $TEMPLATE | awk -F: '{print $2}'`
694 YFLAGS=`grep '^YFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
695 CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`
698 echo "**************************************************************"
699 echo "We now need to know if your compiler needs to search any
700 echo "additional directories for include or library files. If
701 echo "you don't know the answers to these questions, then just
702 echo "hit enter and we will try and figure it out. If things
703 echo "don't compile because of missing libraries or include
704 echo "files, then you probably need to enter something here.
705 echo "enter 'none' or new directories to override default"
707 $ECHO_N "Additional directories to search for include files { $SRCH_INC }: $ECHO_C"
708 if test "X$with_defaults" = "Xyes"
715 if test "$a." = "none."
724 CPPFLAGS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
728 echo "- setting CPPFLAGS=$CPPFLAGS"
730 $ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
731 if test "X$with_defaults" = "Xyes"
738 if test "$a." = "none."
747 LDFLAGS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
751 echo "- setting LDFLAGS=$LDFLAGS"
753 if test "$enable_locale" = "yes" -o "$enable_locale" = "no"
755 USE_LOCALE=$enable_locale
761 if test "X$with_pgport" != "X"
763 DEF_PGPORT=$with_pgport
769 if test "X$with_tcl" = "Xyes"
777 if test "X$with_perl" = "Xyes"
785 if test "$enable_hba" = "yes"
788 elif test "$enable_hba" = "no"
798 if test "$enable_cassert" = "no"
800 echo "-ASSERT CHECKING disabled"
801 cat >> confdefs.h <<\EOF
802 #define NO_ASSERT_CHECKING 1
805 elif test "$enable_cassert" = "yes"
807 echo "-ASSERT CHECKING enabled"
809 echo "-ASSERT CHECKING disabled"
810 cat >> confdefs.h <<\EOF
811 #define NO_ASSERT_CHECKING 1
816 if test "X$with_compiler" != "X"
820 # Extract the first word of "gcc", so it can be a program name with args.
821 set dummy gcc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:823: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
831 for ac_dir in $PATH; do
832 test -z "$ac_dir" && ac_dir=.
833 if test -f $ac_dir/$ac_word; then
842 if test -n "$CC"; then
843 echo "$ac_t""$CC" 1>&6
845 echo "$ac_t""no" 1>&6
848 if test -z "$CC"; then
849 # Extract the first word of "cc", so it can be a program name with args.
850 set dummy cc; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:852: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 if test -n "$CC"; then
857 ac_cv_prog_CC="$CC" # Let the user override the test.
859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
861 for ac_dir in $PATH; do
862 test -z "$ac_dir" && ac_dir=.
863 if test -f $ac_dir/$ac_word; then
864 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
873 if test $ac_prog_rejected = yes; then
874 # We found a bogon in the path, so make sure we never use it.
875 set dummy $ac_cv_prog_CC
877 if test $# -gt 0; then
878 # We chose a different compiler from the bogus one.
879 # However, it has the same basename, so the bogon will be chosen
880 # first if we set CC to just the basename; use the full file name.
882 set dummy "$ac_dir/$ac_word" "$@"
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
899 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
900 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
904 ac_cpp='$CPP $CPPFLAGS'
905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
906 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
907 cross_compiling=$ac_cv_prog_cc_cross
909 cat > conftest.$ac_ext <<EOF
910 #line 910 "configure"
911 #include "confdefs.h"
914 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
915 ac_cv_prog_cc_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cc_cross=no
920 ac_cv_prog_cc_cross=yes
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cc_works=no
929 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
930 if test $ac_cv_prog_cc_works = no; then
931 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
934 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
935 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
936 cross_compiling=$ac_cv_prog_cc_cross
938 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
939 echo "configure:939: checking whether we are using GNU C" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 cat > conftest.c <<EOF
948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
955 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
957 if test $ac_cv_prog_gcc = yes; then
959 ac_test_CFLAGS="${CFLAGS+set}"
960 ac_save_CFLAGS="$CFLAGS"
962 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
963 echo "configure:963: checking whether ${CC-cc} accepts -g" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 echo 'void f(){}' > conftest.c
968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
978 if test "$ac_test_CFLAGS" = set; then
979 CFLAGS="$ac_save_CFLAGS"
980 elif test $ac_cv_prog_cc_g = yes; then
987 test "${CFLAGS+set}" = set || CFLAGS="-g"
995 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
996 echo "configure:996: checking how to run the C preprocessor" >&5
997 # On Suns, sometimes $CPP names a directory.
998 if test -n "$CPP" && test -d "$CPP"; then
1001 if test -z "$CPP"; then
1002 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 # This must be in double quotes, not single quotes, because CPP may get
1006 # substituted into the Makefile and "${CC-cc}" will confuse make.
1008 # On the NeXT, cc -E runs the code through the compiler's parser,
1009 # not just through cpp.
1010 cat > conftest.$ac_ext <<EOF
1011 #line 1011 "configure"
1012 #include "confdefs.h"
1016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1017 { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1018 ac_err=`grep -v '^ *+' conftest.out`
1019 if test -z "$ac_err"; then
1023 echo "configure: failed program was:" >&5
1024 cat conftest.$ac_ext >&5
1026 CPP="${CC-cc} -E -traditional-cpp"
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1028 "configure"
1029 #include "confdefs.h"
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out`
1036 if test -z "$ac_err"; then
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1048 ac_cv_prog_CPP="$CPP"
1050 CPP="$ac_cv_prog_CPP"
1052 ac_cv_prog_CPP="$CPP"
1054 echo "$ac_t""$CPP" 1>&6
1068 HAVECXX='HAVE_Cplusplus=false'
1070 INSTALLPATH="/usr/ucb:$PATH"
1071 for ac_prog in ginstall installbsd bsdinst scoinst install
1073 # Extract the first word of "$ac_prog", so it can be a program name with args.
1074 set dummy $ac_prog; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1076: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086 for ac_dir in $INSTALLPATH$ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_path_INSTALL="$ac_dir/$ac_word"
1097 INSTALL="$ac_cv_path_INSTALL"
1098 if test -n "$INSTALL"; then
1099 echo "$ac_t""$INSTALL" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 test -n "$INSTALL" && break
1106 test -n "$INSTALL" || INSTALL="NONE"
1108 if test $INSTALL = "NONE"
1110 echo "- No Install Script found - aborting."
1115 INSTL_EXE_OPTS="-m 555"
1116 INSTL_LIB_OPTS="-m 664"
1118 case "`basename $INSTALL`" in
1119 install|installbsd|scoinst)
1120 INSTLOPTS="-c $INSTLOPTS"
1121 INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1122 INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS";;
1125 echo "- Using $INSTALL"
1131 ECHO_N_OUT=`echo -n "" | wc -c`
1132 ECHO_C_OUT=`echo "\c" | wc -c`
1133 if test "$ECHO_N_OUT" -eq 0; then
1137 if test "ECHO_C_OUT" -eq 0; then
1141 { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
1147 # Extract the first word of "flex", so it can be a program name with args.
1148 set dummy flex; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1150: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$LEX"; then
1155 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1158 for ac_dir in $PATH; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_LEX="flex"
1166 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1169 LEX="$ac_cv_prog_LEX"
1170 if test -n "$LEX"; then
1171 echo "$ac_t""$LEX" 1>&6
1173 echo "$ac_t""no" 1>&6
1176 if test -z "$LEXLIB"
1182 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1183 echo "configure:1183: checking for yywrap in -l$ac_lib" >&5
1184 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_save_LIBS="$LIBS"
1189 LIBS="-l$ac_lib $LIBS"
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1191 "configure"
1192 #include "confdefs.h"
1193 /* Override any gcc2 internal prototype to avoid an error. */
1194 /* We use char because int might match the return type of a gcc2
1195 builtin and then its argument prototype would still apply. */
1202 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1204 eval "ac_cv_lib_$ac_lib_var=yes"
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1209 eval "ac_cv_lib_$ac_lib_var=no"
1212 LIBS="$ac_save_LIBS"
1215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1219 echo "$ac_t""no" 1>&6
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1225: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1230 if ln -s X conftestdata 2>/dev/null
1233 ac_cv_prog_LN_S="ln -s"
1238 LN_S="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240 echo "$ac_t""yes" 1>&6
1242 echo "$ac_t""no" 1>&6
1245 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1246 echo "configure:1246: checking whether ${MAKE-make} sets \${MAKE}" >&5
1247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1248 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftestmake <<\EOF
1253 @echo 'ac_maketemp="${MAKE}"'
1255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1256 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1257 if test -n "$ac_maketemp"; then
1258 eval ac_cv_prog_make_${ac_make}_set=yes
1260 eval ac_cv_prog_make_${ac_make}_set=no
1264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1268 echo "$ac_t""no" 1>&6
1269 SET_MAKE="MAKE=${MAKE-make}"
1272 # Extract the first word of "ranlib", so it can be a program name with args.
1273 set dummy ranlib; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1275: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test -n "$RANLIB"; then
1280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1283 for ac_dir in $PATH; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f $ac_dir/$ac_word; then
1286 ac_cv_prog_RANLIB="ranlib"
1291 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1294 RANLIB="$ac_cv_prog_RANLIB"
1295 if test -n "$RANLIB"; then
1296 echo "$ac_t""$RANLIB" 1>&6
1298 echo "$ac_t""no" 1>&6
1301 # Extract the first word of "find", so it can be a program name with args.
1302 set dummy find; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1304: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1310 ac_cv_path_find="$find" # Let the user override the test with a path.
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1314 for ac_dir in $PATH; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_path_find="$ac_dir/$ac_word"
1325 find="$ac_cv_path_find"
1326 if test -n "$find"; then
1327 echo "$ac_t""$find" 1>&6
1329 echo "$ac_t""no" 1>&6
1332 # Extract the first word of "tar", so it can be a program name with args.
1333 set dummy tar; ac_word=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1335: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1341 ac_cv_path_tar="$tar" # Let the user override the test with a path.
1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1345 for ac_dir in $PATH; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_path_tar="$ac_dir/$ac_word"
1356 tar="$ac_cv_path_tar"
1357 if test -n "$tar"; then
1358 echo "$ac_t""$tar" 1>&6
1360 echo "$ac_t""no" 1>&6
1363 # Extract the first word of "split", so it can be a program name with args.
1364 set dummy split; ac_word=$2
1365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1366 echo "configure:1366: checking for $ac_word" >&5
1367 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1372 ac_cv_path_split="$split" # Let the user override the test with a path.
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1376 for ac_dir in $PATH; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_path_split="$ac_dir/$ac_word"
1387 split="$ac_cv_path_split"
1388 if test -n "$split"; then
1389 echo "$ac_t""$split" 1>&6
1391 echo "$ac_t""no" 1>&6
1394 # Extract the first word of "etags", so it can be a program name with args.
1395 set dummy etags; ac_word=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1397: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_cv_path_etags="$etags" # Let the user override the test with a path.
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1407 for ac_dir in $PATH; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/$ac_word; then
1410 ac_cv_path_etags="$ac_dir/$ac_word"
1418 etags="$ac_cv_path_etags"
1419 if test -n "$etags"; then
1420 echo "$ac_t""$etags" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "xargs", so it can be a program name with args.
1426 set dummy xargs; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1428: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1434 ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
1437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1438 for ac_dir in $PATH; do
1439 test -z "$ac_dir" && ac_dir=.
1440 if test -f $ac_dir/$ac_word; then
1441 ac_cv_path_xargs="$ac_dir/$ac_word"
1449 xargs="$ac_cv_path_xargs"
1450 if test -n "$xargs"; then
1451 echo "$ac_t""$xargs" 1>&6
1453 echo "$ac_t""no" 1>&6
1456 # Extract the first word of "ipcs", so it can be a program name with args.
1457 set dummy ipcs; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1459: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469 for ac_dir in $PATH; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_path_ipcs="$ac_dir/$ac_word"
1480 ipcs="$ac_cv_path_ipcs"
1481 if test -n "$ipcs"; then
1482 echo "$ac_t""$ipcs" 1>&6
1484 echo "$ac_t""no" 1>&6
1487 # Extract the first word of "ipcrm", so it can be a program name with args.
1488 set dummy ipcrm; ac_word=$2
1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1490 echo "configure:1490: checking for $ac_word" >&5
1491 if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1496 ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1500 for ac_dir in $PATH; do
1501 test -z "$ac_dir" && ac_dir=.
1502 if test -f $ac_dir/$ac_word; then
1503 ac_cv_path_ipcrm="$ac_dir/$ac_word"
1511 ipcrm="$ac_cv_path_ipcrm"
1512 if test -n "$ipcrm"; then
1513 echo "$ac_t""$ipcrm" 1>&6
1515 echo "$ac_t""no" 1>&6
1518 for ac_prog in trbsd tr
1520 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1523: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1529 ac_cv_path_TR="$TR" # Let the user override the test with a path.
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1533 for ac_dir in $PATH; do
1534 test -z "$ac_dir" && ac_dir=.
1535 if test -f $ac_dir/$ac_word; then
1536 ac_cv_path_TR="$ac_dir/$ac_word"
1545 if test -n "$TR"; then
1546 echo "$ac_t""$TR" 1>&6
1548 echo "$ac_t""no" 1>&6
1551 test -n "$TR" && break
1553 test -n "$TR" || TR="NOT_FOUND"
1556 TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
1557 TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1559 if test "$TRSTRINGS" = "ABCDEF"; then
1560 TRARGS="'[a-z]' '[A-Z]'"
1561 elif test "$TRCLASS" = "ABCDEF"; then
1562 TRARGS="'[:lower:]' '[:upper:]'"
1564 { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; }
1571 # Extract the first word of "yacc", so it can be a program name with args.
1572 set dummy yacc; ac_word=$2
1573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1574 echo "configure:1574: checking for $ac_word" >&5
1575 if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1580 ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1584 for ac_dir in $PATH; do
1585 test -z "$ac_dir" && ac_dir=.
1586 if test -f $ac_dir/$ac_word; then
1587 ac_cv_path_yacc="$ac_dir/$ac_word"
1595 yacc="$ac_cv_path_yacc"
1596 if test -n "$yacc"; then
1597 echo "$ac_t""$yacc" 1>&6
1599 echo "$ac_t""no" 1>&6
1602 # Extract the first word of "bison", so it can be a program name with args.
1603 set dummy bison; ac_word=$2
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605 echo "configure:1605: checking for $ac_word" >&5
1606 if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1611 ac_cv_path_bison="$bison" # Let the user override the test with a path.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1615 for ac_dir in $PATH; do
1616 test -z "$ac_dir" && ac_dir=.
1617 if test -f $ac_dir/$ac_word; then
1618 ac_cv_path_bison="$ac_dir/$ac_word"
1626 bison="$ac_cv_path_bison"
1627 if test -n "$bison"; then
1628 echo "$ac_t""$bison" 1>&6
1630 echo "$ac_t""no" 1>&6
1635 echo "- Using $YACC $YFLAGS"
1636 elif test -f "$bison"
1638 echo "- Using $bison -y $YFLAGS"
1643 echo "- Using $yacc $YFLAGS"
1648 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1649 echo "configure:1649: checking for main in -lcurses" >&5
1650 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 ac_save_LIBS="$LIBS"
1655 LIBS="-lcurses $LIBS"
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1657 "configure"
1658 #include "confdefs.h"
1664 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1666 eval "ac_cv_lib_$ac_lib_var=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_lib_$ac_lib_var=no"
1674 LIBS="$ac_save_LIBS"
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1679 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1681 cat >> confdefs.h <<EOF
1682 #define $ac_tr_lib 1
1685 LIBS="-lcurses $LIBS"
1688 echo "$ac_t""no" 1>&6
1691 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
1692 echo "configure:1692: checking for main in -ltermcap" >&5
1693 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
1694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 ac_save_LIBS="$LIBS"
1698 LIBS="-ltermcap $LIBS"
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1707 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1709 eval "ac_cv_lib_$ac_lib_var=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_lib_$ac_lib_var=no"
1717 LIBS="$ac_save_LIBS"
1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1724 cat >> confdefs.h <<EOF
1725 #define $ac_tr_lib 1
1728 LIBS="-ltermcap $LIBS"
1731 echo "$ac_t""no" 1>&6
1734 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
1735 echo "configure:1735: checking for main in -lhistory" >&5
1736 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
1737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 ac_save_LIBS="$LIBS"
1741 LIBS="-lhistory $LIBS"
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1743 "configure"
1744 #include "confdefs.h"
1750 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1752 eval "ac_cv_lib_$ac_lib_var=yes"
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1757 eval "ac_cv_lib_$ac_lib_var=no"
1760 LIBS="$ac_save_LIBS"
1763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1764 echo "$ac_t""yes" 1>&6
1765 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1767 cat >> confdefs.h <<EOF
1768 #define $ac_tr_lib 1
1771 LIBS="-lhistory $LIBS"
1774 echo "$ac_t""no" 1>&6
1777 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1778 echo "configure:1778: checking for main in -lreadline" >&5
1779 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 ac_save_LIBS="$LIBS"
1784 LIBS="-lreadline $LIBS"
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1786 "configure"
1787 #include "confdefs.h"
1793 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1795 eval "ac_cv_lib_$ac_lib_var=yes"
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1800 eval "ac_cv_lib_$ac_lib_var=no"
1803 LIBS="$ac_save_LIBS"
1806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1808 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1810 cat >> confdefs.h <<EOF
1811 #define $ac_tr_lib 1
1814 LIBS="-lreadline $LIBS"
1817 echo "$ac_t""no" 1>&6
1820 echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
1821 echo "configure:1821: checking for write_history in -lreadline" >&5
1822 ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
1823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 ac_save_LIBS="$LIBS"
1827 LIBS="-lreadline $LIBS"
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1829 "configure"
1830 #include "confdefs.h"
1831 /* Override any gcc2 internal prototype to avoid an error. */
1832 /* We use char because int might match the return type of a gcc2
1833 builtin and then its argument prototype would still apply. */
1834 char write_history();
1840 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1842 eval "ac_cv_lib_$ac_lib_var=yes"
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 eval "ac_cv_lib_$ac_lib_var=no"
1850 LIBS="$ac_save_LIBS"
1853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1854 echo "$ac_t""yes" 1>&6
1855 cat >> confdefs.h <<\EOF
1856 #define HAVE_HISTORY 1
1860 echo "$ac_t""no" 1>&6
1863 if test "$PORTNAME" != "aix"
1865 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1866 echo "configure:1866: checking for main in -lbsd" >&5
1867 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
1868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 ac_save_LIBS="$LIBS"
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1874 "configure"
1875 #include "confdefs.h"
1881 if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1883 eval "ac_cv_lib_$ac_lib_var=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 eval "ac_cv_lib_$ac_lib_var=no"
1891 LIBS="$ac_save_LIBS"
1894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1897 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1898 cat >> confdefs.h <<EOF
1899 #define $ac_tr_lib 1
1905 echo "$ac_t""no" 1>&6
1909 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1910 echo "configure:1910: checking for main in -lm" >&5
1911 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 ac_save_LIBS="$LIBS"
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1925 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1927 eval "ac_cv_lib_$ac_lib_var=yes"
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1932 eval "ac_cv_lib_$ac_lib_var=no"
1935 LIBS="$ac_save_LIBS"
1938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1942 cat >> confdefs.h <<EOF
1943 #define $ac_tr_lib 1
1949 echo "$ac_t""no" 1>&6
1952 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1953 echo "configure:1953: checking for main in -ldl" >&5
1954 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 ac_save_LIBS="$LIBS"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1961 "configure"
1962 #include "confdefs.h"
1968 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_lib_$ac_lib_var=no"
1978 LIBS="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1992 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1996 echo "configure:1996: checking for main in -lsocket" >&5
1997 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 ac_save_LIBS="$LIBS"
2002 LIBS="-lsocket $LIBS"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2011 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2013 eval "ac_cv_lib_$ac_lib_var=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 eval "ac_cv_lib_$ac_lib_var=no"
2021 LIBS="$ac_save_LIBS"
2024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2026 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_lib 1
2032 LIBS="-lsocket $LIBS"
2035 echo "$ac_t""no" 1>&6
2038 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2039 echo "configure:2039: checking for main in -lnsl" >&5
2040 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 ac_save_LIBS="$LIBS"
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2047 "configure"
2048 #include "confdefs.h"
2054 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2056 eval "ac_cv_lib_$ac_lib_var=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_lib_$ac_lib_var=no"
2064 LIBS="$ac_save_LIBS"
2067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2071 cat >> confdefs.h <<EOF
2072 #define $ac_tr_lib 1
2078 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
2082 echo "configure:2082: checking for main in -lipc" >&5
2083 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS="$LIBS"
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2097 if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2099 eval "ac_cv_lib_$ac_lib_var=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 eval "ac_cv_lib_$ac_lib_var=no"
2107 LIBS="$ac_save_LIBS"
2110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2111 echo "$ac_t""yes" 1>&6
2112 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2114 cat >> confdefs.h <<EOF
2115 #define $ac_tr_lib 1
2121 echo "$ac_t""no" 1>&6
2124 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
2125 echo "configure:2125: checking for main in -lIPC" >&5
2126 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 ac_save_LIBS="$LIBS"
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2133 "configure"
2134 #include "confdefs.h"
2140 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2142 eval "ac_cv_lib_$ac_lib_var=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_lib_$ac_lib_var=no"
2150 LIBS="$ac_save_LIBS"
2153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2157 cat >> confdefs.h <<EOF
2158 #define $ac_tr_lib 1
2164 echo "$ac_t""no" 1>&6
2167 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
2168 echo "configure:2168: checking for main in -llc" >&5
2169 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 ac_save_LIBS="$LIBS"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2176 "configure"
2177 #include "confdefs.h"
2183 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2185 eval "ac_cv_lib_$ac_lib_var=yes"
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 eval "ac_cv_lib_$ac_lib_var=no"
2193 LIBS="$ac_save_LIBS"
2196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2200 cat >> confdefs.h <<EOF
2201 #define $ac_tr_lib 1
2207 echo "$ac_t""no" 1>&6
2210 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
2211 echo "configure:2211: checking for main in -ldld" >&5
2212 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 ac_save_LIBS="$LIBS"
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2219 "configure"
2220 #include "confdefs.h"
2226 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2228 eval "ac_cv_lib_$ac_lib_var=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_lib_$ac_lib_var=no"
2236 LIBS="$ac_save_LIBS"
2239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2243 cat >> confdefs.h <<EOF
2244 #define $ac_tr_lib 1
2250 echo "$ac_t""no" 1>&6
2253 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
2254 echo "configure:2254: checking for main in -lln" >&5
2255 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 ac_save_LIBS="$LIBS"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2262 "configure"
2263 #include "confdefs.h"
2269 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2271 eval "ac_cv_lib_$ac_lib_var=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_lib_$ac_lib_var=no"
2279 LIBS="$ac_save_LIBS"
2282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2286 cat >> confdefs.h <<EOF
2287 #define $ac_tr_lib 1
2293 echo "$ac_t""no" 1>&6
2296 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
2297 echo "configure:2297: checking for main in -lld" >&5
2298 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 ac_save_LIBS="$LIBS"
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2312 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 eval "ac_cv_lib_$ac_lib_var=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_lib_$ac_lib_var=no"
2322 LIBS="$ac_save_LIBS"
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_lib 1
2336 echo "$ac_t""no" 1>&6
2339 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
2340 echo "configure:2340: checking for main in -lcompat" >&5
2341 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 ac_save_LIBS="$LIBS"
2346 LIBS="-lcompat $LIBS"
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2348 "configure"
2349 #include "confdefs.h"
2355 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2357 eval "ac_cv_lib_$ac_lib_var=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_lib_$ac_lib_var=no"
2365 LIBS="$ac_save_LIBS"
2368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2371 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2372 cat >> confdefs.h <<EOF
2373 #define $ac_tr_lib 1
2376 LIBS="-lcompat $LIBS"
2379 echo "$ac_t""no" 1>&6
2382 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
2383 echo "configure:2383: checking for main in -lBSD" >&5
2384 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 ac_save_LIBS="$LIBS"
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2391 "configure"
2392 #include "confdefs.h"
2398 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2400 eval "ac_cv_lib_$ac_lib_var=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 eval "ac_cv_lib_$ac_lib_var=no"
2408 LIBS="$ac_save_LIBS"
2411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2415 cat >> confdefs.h <<EOF
2416 #define $ac_tr_lib 1
2422 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2426 echo "configure:2426: checking for main in -lcrypt" >&5
2427 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_save_LIBS="$LIBS"
2432 LIBS="-lcrypt $LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2441 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2443 eval "ac_cv_lib_$ac_lib_var=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_lib_$ac_lib_var=no"
2451 LIBS="$ac_save_LIBS"
2454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2458 cat >> confdefs.h <<EOF
2459 #define $ac_tr_lib 1
2462 LIBS="-lcrypt $LIBS"
2465 echo "$ac_t""no" 1>&6
2468 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2469 echo "configure:2469: checking for main in -lgen" >&5
2470 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 ac_save_LIBS="$LIBS"
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2477 "configure"
2478 #include "confdefs.h"
2484 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2486 eval "ac_cv_lib_$ac_lib_var=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_lib_$ac_lib_var=no"
2494 LIBS="$ac_save_LIBS"
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_lib 1
2508 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
2512 echo "configure:2512: checking for main in -lPW" >&5
2513 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
2514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 ac_save_LIBS="$LIBS"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2520 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_lib_$ac_lib_var=no"
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544 cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2551 echo "$ac_t""no" 1>&6
2555 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2556 echo "configure:2556: checking for ANSI C header files" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2561 "configure"
2562 #include "confdefs.h"
2568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2569 { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2570 ac_err=`grep -v '^ *+' conftest.out`
2571 if test -z "$ac_err"; then
2573 ac_cv_header_stdc=yes
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2579 ac_cv_header_stdc=no
2583 if test $ac_cv_header_stdc = yes; then
2584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2586 "configure"
2587 #include "confdefs.h"
2590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2591 egrep "memchr" >/dev/null 2>&1; then
2595 ac_cv_header_stdc=no
2601 if test $ac_cv_header_stdc = yes; then
2602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2604 "configure"
2605 #include "confdefs.h"
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 egrep "free" >/dev/null 2>&1; then
2613 ac_cv_header_stdc=no
2619 if test $ac_cv_header_stdc = yes; then
2620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2621 if test "$cross_compiling" = yes; then
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2625 "configure"
2626 #include "confdefs.h"
2628 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2629 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2631 int main () { int i; for (i = 0; i < 256; i++)
2632 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2636 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2643 ac_cv_header_stdc=no
2651 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2652 if test $ac_cv_header_stdc = yes; then
2653 cat >> confdefs.h <<\EOF
2654 #define STDC_HEADERS 1
2659 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2660 echo "configure:2660: checking for sys/wait.h that is POSIX.1 compatible" >&5
2661 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2665 "configure"
2666 #include "confdefs.h"
2667 #include <sys/types.h>
2668 #include <sys/wait.h>
2670 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2673 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2678 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2681 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2683 ac_cv_header_sys_wait_h=yes
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 ac_cv_header_sys_wait_h=no
2693 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2694 if test $ac_cv_header_sys_wait_h = yes; then
2695 cat >> confdefs.h <<\EOF
2696 #define HAVE_SYS_WAIT_H 1
2701 for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
2703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2705: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2710 "configure"
2711 #include "confdefs.h"
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732 cat >> confdefs.h <<EOF
2733 #define $ac_tr_hdr 1
2737 echo "$ac_t""no" 1>&6
2741 for ac_hdr in sys/resource.h netdb.h
2743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2745 echo "configure:2745: checking for $ac_hdr" >&5
2746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2750 "configure"
2751 #include "confdefs.h"
2754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2755 { (eval echo configure:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2756 ac_err=`grep -v '^ *+' conftest.out`
2757 if test -z "$ac_err"; then
2759 eval "ac_cv_header_$ac_safe=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2765 eval "ac_cv_header_$ac_safe=no"
2769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2772 cat >> confdefs.h <<EOF
2773 #define $ac_tr_hdr 1
2777 echo "$ac_t""no" 1>&6
2781 for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
2783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2785: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2790 "configure"
2791 #include "confdefs.h"
2794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err=`grep -v '^ *+' conftest.out`
2797 if test -z "$ac_err"; then
2799 eval "ac_cv_header_$ac_safe=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 eval "ac_cv_header_$ac_safe=no"
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_hdr 1
2817 echo "$ac_t""no" 1>&6
2821 for ac_hdr in readline/history.h
2823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2825 echo "configure:2825: checking for $ac_hdr" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err=`grep -v '^ *+' conftest.out`
2837 if test -z "$ac_err"; then
2839 eval "ac_cv_header_$ac_safe=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_header_$ac_safe=no"
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2852 cat >> confdefs.h <<EOF
2853 #define $ac_tr_hdr 1
2857 echo "$ac_t""no" 1>&6
2862 echo $ac_n "checking for working const""... $ac_c" 1>&6
2863 echo "configure:2863: checking for working const" >&5
2864 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2868 "configure"
2869 #include "confdefs.h"
2873 /* Ultrix mips cc rejects this. */
2874 typedef int charset[2]; const charset x;
2875 /* SunOS 4.1.1 cc rejects this. */
2876 char const *const *ccp;
2878 /* NEC SVR4.0.2 mips cc rejects this. */
2879 struct point {int x, y;};
2880 static struct point const zero = {0,0};
2881 /* AIX XL C 1.02.0.0 rejects this.
2882 It does not let you subtract one const X* pointer from another in an arm
2883 of an if-expression whose if-part is not a constant expression */
2884 const char *g = "string";
2885 ccp = &g + (g ? g-g : 0);
2886 /* HPUX 7.0 cc rejects these. */
2889 ccp = (char const *const *) p;
2890 { /* SCO 3.2v4 cc rejects this. */
2892 char const *s = 0 ? (char *) 0 : (char const *) 0;
2896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2898 const int *foo = &x[0];
2901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2902 typedef const int *iptr;
2906 { /* AIX XL C 1.02.0.0 rejects this saying
2907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2908 struct s { int j; const int *ap[3]; };
2909 struct s *b; b->j = 5;
2911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2917 if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2929 echo "$ac_t""$ac_cv_c_const" 1>&6
2930 if test $ac_cv_c_const = no; then
2931 cat >> confdefs.h <<\EOF
2937 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2938 echo "configure:2938: checking for uid_t in sys/types.h" >&5
2939 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2943 "configure"
2944 #include "confdefs.h"
2945 #include <sys/types.h>
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "uid_t" >/dev/null 2>&1; then
2950 ac_cv_type_uid_t=yes
2959 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2960 if test $ac_cv_type_uid_t = no; then
2961 cat >> confdefs.h <<\EOF
2965 cat >> confdefs.h <<\EOF
2971 echo $ac_n "checking for inline""... $ac_c" 1>&6
2972 echo "configure:2972: checking for inline" >&5
2973 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2977 for ac_kw in inline __inline__ __inline; do
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2986 if { (eval echo configure:2986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 ac_cv_c_inline=$ac_kw; break
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2998 echo "$ac_t""$ac_cv_c_inline" 1>&6
2999 case "$ac_cv_c_inline" in
3001 no) cat >> confdefs.h <<\EOF
3005 *) cat >> confdefs.h <<EOF
3006 #define inline $ac_cv_c_inline
3011 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3012 echo "configure:3012: checking for mode_t" >&5
3013 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3017 "configure"
3018 #include "confdefs.h"
3019 #include <sys/types.h>
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3028 ac_cv_type_mode_t=yes
3031 ac_cv_type_mode_t=no
3036 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3037 if test $ac_cv_type_mode_t = no; then
3038 cat >> confdefs.h <<\EOF
3044 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3045 echo "configure:3045: checking for off_t" >&5
3046 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3050 "configure"
3051 #include "confdefs.h"
3052 #include <sys/types.h>
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3061 ac_cv_type_off_t=yes
3069 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3070 if test $ac_cv_type_off_t = no; then
3071 cat >> confdefs.h <<\EOF
3077 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3078 echo "configure:3078: checking for size_t" >&5
3079 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3085 #include <sys/types.h>
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3094 ac_cv_type_size_t=yes
3097 ac_cv_type_size_t=no
3102 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3103 if test $ac_cv_type_size_t = no; then
3104 cat >> confdefs.h <<\EOF
3105 #define size_t unsigned
3110 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3111 echo "configure:3111: checking whether time.h and sys/time.h may both be included" >&5
3112 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3118 #include <sys/types.h>
3119 #include <sys/time.h>
3125 if { (eval echo configure:3125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3127 ac_cv_header_time=yes
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3132 ac_cv_header_time=no
3137 echo "$ac_t""$ac_cv_header_time" 1>&6
3138 if test $ac_cv_header_time = yes; then
3139 cat >> confdefs.h <<\EOF
3140 #define TIME_WITH_SYS_TIME 1
3145 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3146 echo "configure:3146: checking whether struct tm is in sys/time.h or time.h" >&5
3147 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3151 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3156 struct tm *tp; tp->tm_sec;
3159 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 ac_cv_struct_tm=time.h
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 ac_cv_struct_tm=sys/time.h
3171 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3172 if test $ac_cv_struct_tm = sys/time.h; then
3173 cat >> confdefs.h <<\EOF
3174 #define TM_IN_SYS_TIME 1
3180 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
3181 echo "configure:3181: checking for int timezone" >&5
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3183 "configure"
3184 #include "confdefs.h"
3187 int res = timezone / 60;
3190 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3192 cat >> confdefs.h <<\EOF
3193 #define HAVE_INT_TIMEZONE 1
3195 echo "$ac_t""yes" 1>&6
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 echo "$ac_t""no" 1>&6
3204 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3205 echo "configure:3205: checking for union semun" >&5
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3207 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 #include <sys/ipc.h>
3211 #include <sys/sem.h>
3216 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3218 cat >> confdefs.h <<\EOF
3219 #define HAVE_UNION_SEMUN 1
3221 echo "$ac_t""yes" 1>&6
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 echo "$ac_t""no" 1>&6
3230 if test $ac_cv_prog_gcc = yes; then
3231 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3232 echo "configure:3232: checking whether ${CC-cc} needs -traditional" >&5
3233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 ac_pattern="Autoconf.*'x'"
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3238 "configure"
3239 #include "confdefs.h"
3243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244 egrep "$ac_pattern" >/dev/null 2>&1; then
3246 ac_cv_prog_gcc_traditional=yes
3249 ac_cv_prog_gcc_traditional=no
3254 if test $ac_cv_prog_gcc_traditional = no; then
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3256 "configure"
3257 #include "confdefs.h"
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "$ac_pattern" >/dev/null 2>&1; then
3264 ac_cv_prog_gcc_traditional=yes
3271 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3272 if test $ac_cv_prog_gcc_traditional = yes; then
3273 CC="$CC -traditional"
3277 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3278 echo "configure:3278: checking for 8-bit clean memcmp" >&5
3279 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 if test "$cross_compiling" = yes; then
3283 ac_cv_func_memcmp_clean=no
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3286 "configure"
3287 #include "confdefs.h"
3291 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3292 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3296 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3298 ac_cv_func_memcmp_clean=yes
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 ac_cv_func_memcmp_clean=no
3310 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3311 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3313 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3314 echo "configure:3314: checking return type of signal handlers" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3319 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3327 extern "C" void (*signal (int, void (*)(int)))(int);
3329 void (*signal ()) ();
3336 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338 ac_cv_type_signal=void
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 ac_cv_type_signal=int
3348 echo "$ac_t""$ac_cv_type_signal" 1>&6
3349 cat >> confdefs.h <<EOF
3350 #define RETSIGTYPE $ac_cv_type_signal
3354 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3355 echo "configure:3355: checking for vprintf" >&5
3356 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3360 "configure"
3361 #include "confdefs.h"
3362 /* System header to define __stub macros and hopefully few prototypes,
3363 which can conflict with char vprintf(); below. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 /* We use char because int might match the return type of a gcc2
3367 builtin and then its argument prototype would still apply. */
3372 /* The GNU C library defines this for functions which it implements
3373 to always fail with ENOSYS. Some functions are actually named
3374 something starting with __ and the normal name is an alias. */
3375 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3383 if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3385 eval "ac_cv_func_vprintf=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_func_vprintf=no"
3395 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3397 cat >> confdefs.h <<\EOF
3398 #define HAVE_VPRINTF 1
3402 echo "$ac_t""no" 1>&6
3405 if test "$ac_cv_func_vprintf" != yes; then
3406 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3407 echo "configure:3407: checking for _doprnt" >&5
3408 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3412 "configure"
3413 #include "confdefs.h"
3414 /* System header to define __stub macros and hopefully few prototypes,
3415 which can conflict with char _doprnt(); below. */
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3424 /* The GNU C library defines this for functions which it implements
3425 to always fail with ENOSYS. Some functions are actually named
3426 something starting with __ and the normal name is an alias. */
3427 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3435 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3437 eval "ac_cv_func__doprnt=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_func__doprnt=no"
3447 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 cat >> confdefs.h <<\EOF
3450 #define HAVE_DOPRNT 1
3454 echo "$ac_t""no" 1>&6
3459 for ac_func in tzset vfork memmove sigsetjmp kill sysconf
3461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3462 echo "configure:3462: checking for $ac_func" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3467 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470 which can conflict with char $ac_func(); below. */
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3479 /* The GNU C library defines this for functions which it implements
3480 to always fail with ENOSYS. Some functions are actually named
3481 something starting with __ and the normal name is an alias. */
3482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3490 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3492 eval "ac_cv_func_$ac_func=yes"
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 eval "ac_cv_func_$ac_func=no"
3502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3505 cat >> confdefs.h <<EOF
3506 #define $ac_tr_func 1
3510 echo "$ac_t""no" 1>&6
3514 for ac_func in sigprocmask waitpid setsid fcvt
3516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3517 echo "configure:3517: checking for $ac_func" >&5
3518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3522 "configure"
3523 #include "confdefs.h"
3524 /* System header to define __stub macros and hopefully few prototypes,
3525 which can conflict with char $ac_func(); below. */
3527 /* Override any gcc2 internal prototype to avoid an error. */
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3534 /* The GNU C library defines this for functions which it implements
3535 to always fail with ENOSYS. Some functions are actually named
3536 something starting with __ and the normal name is an alias. */
3537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3545 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3547 eval "ac_cv_func_$ac_func=yes"
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 eval "ac_cv_func_$ac_func=no"
3557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
3559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3560 cat >> confdefs.h <<EOF
3561 #define $ac_tr_func 1
3565 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for isinf""... $ac_c" 1>&6
3570 echo "configure:3570: checking for isinf" >&5
3571 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3575 "configure"
3576 #include "confdefs.h"
3577 /* System header to define __stub macros and hopefully few prototypes,
3578 which can conflict with char isinf(); below. */
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3587 /* The GNU C library defines this for functions which it implements
3588 to always fail with ENOSYS. Some functions are actually named
3589 something starting with __ and the normal name is an alias. */
3590 #if defined (__stub_isinf) || defined (__stub___isinf)
3598 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3600 eval "ac_cv_func_isinf=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3605 eval "ac_cv_func_isinf=no"
3610 if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 cat >> confdefs.h <<\EOF
3613 #define HAVE_ISINF 1
3617 echo "$ac_t""no" 1>&6
3622 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
3623 echo "configure:3623: checking for getrusage" >&5
3624 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3630 /* System header to define __stub macros and hopefully few prototypes,
3631 which can conflict with char getrusage(); below. */
3633 /* Override any gcc2 internal prototype to avoid an error. */
3634 /* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3640 /* The GNU C library defines this for functions which it implements
3641 to always fail with ENOSYS. Some functions are actually named
3642 something starting with __ and the normal name is an alias. */
3643 #if defined (__stub_getrusage) || defined (__stub___getrusage)
3651 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3653 eval "ac_cv_func_getrusage=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3658 eval "ac_cv_func_getrusage=no"
3663 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 cat >> confdefs.h <<\EOF
3666 #define HAVE_GETRUSAGE 1
3670 echo "$ac_t""no" 1>&6
3671 GETRUSAGE='getrusage.o'
3675 echo $ac_n "checking for srandom""... $ac_c" 1>&6
3676 echo "configure:3676: checking for srandom" >&5
3677 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3681 "configure"
3682 #include "confdefs.h"
3683 /* System header to define __stub macros and hopefully few prototypes,
3684 which can conflict with char srandom(); below. */
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3693 /* The GNU C library defines this for functions which it implements
3694 to always fail with ENOSYS. Some functions are actually named
3695 something starting with __ and the normal name is an alias. */
3696 #if defined (__stub_srandom) || defined (__stub___srandom)
3704 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3706 eval "ac_cv_func_srandom=yes"
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 eval "ac_cv_func_srandom=no"
3716 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
3717 echo "$ac_t""yes" 1>&6
3718 cat >> confdefs.h <<\EOF
3719 #define HAVE_SRANDOM 1
3723 echo "$ac_t""no" 1>&6
3728 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
3729 echo "configure:3729: checking for gethostname" >&5
3730 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3734 "configure"
3735 #include "confdefs.h"
3736 /* System header to define __stub macros and hopefully few prototypes,
3737 which can conflict with char gethostname(); below. */
3739 /* Override any gcc2 internal prototype to avoid an error. */
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3746 /* The GNU C library defines this for functions which it implements
3747 to always fail with ENOSYS. Some functions are actually named
3748 something starting with __ and the normal name is an alias. */
3749 #if defined (__stub_gethostname) || defined (__stub___gethostname)
3757 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3759 eval "ac_cv_func_gethostname=yes"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_func_gethostname=no"
3769 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 cat >> confdefs.h <<\EOF
3772 #define HAVE_GETHOSTNAME 1
3776 echo "$ac_t""no" 1>&6
3777 GETHOSTNAME='gethostname.o'
3781 echo $ac_n "checking for random""... $ac_c" 1>&6
3782 echo "configure:3782: checking for random" >&5
3783 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3787 "configure"
3788 #include "confdefs.h"
3789 /* System header to define __stub macros and hopefully few prototypes,
3790 which can conflict with char random(); below. */
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3799 /* The GNU C library defines this for functions which it implements
3800 to always fail with ENOSYS. Some functions are actually named
3801 something starting with __ and the normal name is an alias. */
3802 #if defined (__stub_random) || defined (__stub___random)
3810 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3812 eval "ac_cv_func_random=yes"
3814 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3817 eval "ac_cv_func_random=no"
3822 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 cat >> confdefs.h <<\EOF
3825 #define HAVE_RANDOM 1
3829 echo "$ac_t""no" 1>&6
3830 MISSING_RANDOM='random.o'
3834 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3835 echo "configure:3835: checking for inet_aton" >&5
3836 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843 which can conflict with char inet_aton(); below. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3852 /* The GNU C library defines this for functions which it implements
3853 to always fail with ENOSYS. Some functions are actually named
3854 something starting with __ and the normal name is an alias. */
3855 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3863 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3865 eval "ac_cv_func_inet_aton=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 eval "ac_cv_func_inet_aton=no"
3875 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_INET_ATON 1
3882 echo "$ac_t""no" 1>&6
3883 INET_ATON='inet_aton.o'
3887 echo $ac_n "checking for strerror""... $ac_c" 1>&6
3888 echo "configure:3888: checking for strerror" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3893 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char strerror(); below. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3905 /* The GNU C library defines this for functions which it implements
3906 to always fail with ENOSYS. Some functions are actually named
3907 something starting with __ and the normal name is an alias. */
3908 #if defined (__stub_strerror) || defined (__stub___strerror)
3916 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3918 eval "ac_cv_func_strerror=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_func_strerror=no"
3928 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3930 cat >> confdefs.h <<\EOF
3931 #define HAVE_STRERROR 1
3935 echo "$ac_t""no" 1>&6
3936 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
3941 echo $ac_n "checking for strdup""... $ac_c" 1>&6
3942 echo "configure:3942: checking for strdup" >&5
3943 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3947 "configure"
3948 #include "confdefs.h"
3949 /* System header to define __stub macros and hopefully few prototypes,
3950 which can conflict with char strdup(); below. */
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3959 /* The GNU C library defines this for functions which it implements
3960 to always fail with ENOSYS. Some functions are actually named
3961 something starting with __ and the normal name is an alias. */
3962 #if defined (__stub_strdup) || defined (__stub___strdup)
3970 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3972 eval "ac_cv_func_strdup=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 eval "ac_cv_func_strdup=no"
3982 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_STRDUP 1
3989 echo "$ac_t""no" 1>&6
3990 STRDUP='../../utils/strdup.o'
3994 echo $ac_n "checking for strtol""... $ac_c" 1>&6
3995 echo "configure:3995: checking for strtol" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4000 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char strtol(); below. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4012 /* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015 #if defined (__stub_strtol) || defined (__stub___strtol)
4023 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4025 eval "ac_cv_func_strtol=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_func_strtol=no"
4035 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_STRTOL 1
4042 echo "$ac_t""no" 1>&6
4046 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
4047 echo "configure:4047: checking for strcasecmp" >&5
4048 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char strcasecmp(); below. */
4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 /* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4064 /* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4075 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4077 eval "ac_cv_func_strcasecmp=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 eval "ac_cv_func_strcasecmp=no"
4087 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_STRCASECMP 1
4094 echo "$ac_t""no" 1>&6
4095 STRCASECMP='strcasecmp.o'
4099 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
4100 echo "configure:4100: checking for cbrt" >&5
4101 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4105 "configure"
4106 #include "confdefs.h"
4107 /* System header to define __stub macros and hopefully few prototypes,
4108 which can conflict with char cbrt(); below. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4117 /* The GNU C library defines this for functions which it implements
4118 to always fail with ENOSYS. Some functions are actually named
4119 something starting with __ and the normal name is an alias. */
4120 #if defined (__stub_cbrt) || defined (__stub___cbrt)
4128 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4130 eval "ac_cv_func_cbrt=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_func_cbrt=no"
4140 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 cat >> confdefs.h <<\EOF
4147 echo "$ac_t""no" 1>&6
4148 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
4149 echo "configure:4149: checking for cbrt in -lm" >&5
4150 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 ac_save_LIBS="$LIBS"
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4157 "configure"
4158 #include "confdefs.h"
4159 /* Override any gcc2 internal prototype to avoid an error. */
4160 /* We use char because int might match the return type of a gcc2
4161 builtin and then its argument prototype would still apply. */
4168 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4170 eval "ac_cv_lib_$ac_lib_var=yes"
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 eval "ac_cv_lib_$ac_lib_var=no"
4178 LIBS="$ac_save_LIBS"
4181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4183 cat >> confdefs.h <<\EOF
4188 echo "$ac_t""no" 1>&6
4193 echo $ac_n "checking for rint""... $ac_c" 1>&6
4194 echo "configure:4194: checking for rint" >&5
4195 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4199 "configure"
4200 #include "confdefs.h"
4201 /* System header to define __stub macros and hopefully few prototypes,
4202 which can conflict with char rint(); below. */
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4211 /* The GNU C library defines this for functions which it implements
4212 to always fail with ENOSYS. Some functions are actually named
4213 something starting with __ and the normal name is an alias. */
4214 #if defined (__stub_rint) || defined (__stub___rint)
4222 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4224 eval "ac_cv_func_rint=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 eval "ac_cv_func_rint=no"
4234 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 cat >> confdefs.h <<\EOF
4241 echo "$ac_t""no" 1>&6
4242 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
4243 echo "configure:4243: checking for rint in -lm" >&5
4244 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS="$LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4251 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 cat >> confdefs.h <<\EOF
4282 echo "$ac_t""no" 1>&6
4288 echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
4289 echo "configure:4289: checking setting USE_LOCALE" >&5
4290 if test "$USE_LOCALE" = "yes"
4292 echo "$ac_t""enabled" 1>&6
4293 cat >> confdefs.h <<\EOF
4294 #define USE_LOCALE 1
4298 echo "$ac_t""disabled" 1>&6
4300 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
4301 echo "configure:4301: checking setting DEF_PGPORT" >&5
4302 cat >> confdefs.h <<EOF
4303 #define DEF_PGPORT "${DEF_PGPORT}"
4306 echo "$ac_t""$DEF_PGPORT" 1>&6
4307 echo $ac_n "checking setting HBA""... $ac_c" 1>&6
4308 echo "configure:4308: checking setting HBA" >&5
4309 if test "$NOHBA" = "no"
4311 echo "$ac_t""enabled" 1>&6
4312 cat >> confdefs.h <<\EOF
4317 echo "$ac_t""disabled" 1>&6
4322 cat > confcache <<\EOF
4323 # This file is a shell script that caches the results of configure
4324 # tests run on this system so they can be shared between configure
4325 # scripts and configure runs. It is not useful on other systems.
4326 # If it contains results you don't want to keep, you may remove or edit it.
4328 # By default, configure uses ./config.cache as the cache file,
4329 # creating it if it does not exist already. You can give configure
4330 # the --cache-file=FILE option to use a different cache file; that is
4331 # what configure does when it calls configure scripts in
4332 # subdirectories, so they share the cache.
4333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4334 # config.status only pays attention to the cache file if you give it the
4335 # --recheck option to rerun configure.
4338 # The following way of writing the cache mishandles newlines in values,
4339 # but we know of no workaround that is simple, portable, and efficient.
4340 # So, don't put newlines in cache variables' values.
4341 # Ultrix sh set writes to stderr and can't be redirected directly,
4342 # and sets the high bit in the cache file unless we assign to the vars.
4344 case `(ac_space=' '; set) 2>&1` in
4346 # `set' does not quote correctly, so add quotes (double-quote substitution
4347 # turns \\\\ into \\, and sed turns \\ into \).
4349 -e "s/'/'\\\\''/g" \
4350 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4353 # `set' quotes correctly as required by POSIX, so do not add quotes.
4354 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4357 if cmp -s $cache_file confcache; then
4360 if test -w $cache_file; then
4361 echo "updating cache $cache_file"
4362 cat confcache > $cache_file
4364 echo "not updating unwritable cache $cache_file"
4369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4372 # Let make expand exec_prefix.
4373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4375 # Any assignment to VPATH causes Sun make to only execute
4376 # the first set of double-colon rules, so remove it if not needed.
4377 # If there is a colon in the path, we need to keep it.
4378 if test "x$srcdir" = x.; then
4379 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4384 DEFS=-DHAVE_CONFIG_H
4386 # Without the "./", some shells look in PATH for config.status.
4387 : ${CONFIG_STATUS=./config.status}
4389 echo creating $CONFIG_STATUS
4390 rm -f $CONFIG_STATUS
4391 cat > $CONFIG_STATUS <<EOF
4393 # Generated automatically by configure.
4394 # Run this file to recreate the current configuration.
4395 # This directory was configured as follows,
4396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4398 # $0 $ac_configure_args
4400 # Compiler output produced by configure, useful for debugging
4401 # configure, is in ./config.log if it exists.
4403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4406 case "\$ac_option" in
4407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4408 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4409 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4410 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4411 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4413 -help | --help | --hel | --he | --h)
4414 echo "\$ac_cs_usage"; exit 0 ;;
4415 *) echo "\$ac_cs_usage"; exit 1 ;;
4419 ac_given_srcdir=$srcdir
4421 trap 'rm -fr `echo "GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4423 cat >> $CONFIG_STATUS <<EOF
4425 # Protect against being on the right side of a sed subst in config.status.
4426 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4427 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4430 s%@CFLAGS@%$CFLAGS%g
4431 s%@CPPFLAGS@%$CPPFLAGS%g
4432 s%@CXXFLAGS@%$CXXFLAGS%g
4434 s%@LDFLAGS@%$LDFLAGS%g
4436 s%@exec_prefix@%$exec_prefix%g
4437 s%@prefix@%$prefix%g
4438 s%@program_transform_name@%$program_transform_name%g
4439 s%@bindir@%$bindir%g
4440 s%@sbindir@%$sbindir%g
4441 s%@libexecdir@%$libexecdir%g
4442 s%@datadir@%$datadir%g
4443 s%@sysconfdir@%$sysconfdir%g
4444 s%@sharedstatedir@%$sharedstatedir%g
4445 s%@localstatedir@%$localstatedir%g
4446 s%@libdir@%$libdir%g
4447 s%@includedir@%$includedir%g
4448 s%@oldincludedir@%$oldincludedir%g
4449 s%@infodir@%$infodir%g
4450 s%@mandir@%$mandir%g
4452 s%@host_alias@%$host_alias%g
4453 s%@host_cpu@%$host_cpu%g
4454 s%@host_vendor@%$host_vendor%g
4455 s%@host_os@%$host_os%g
4457 s%@PORTNAME@%$PORTNAME%g
4461 s%@SHARED_LIB@%$SHARED_LIB%g
4462 s%@DLSUFFIX@%$DLSUFFIX%g
4463 s%@DL_LIB@%$DL_LIB%g
4464 s%@USE_TCL@%$USE_TCL%g
4465 s%@USE_PERL@%$USE_PERL%g
4466 s%@HAVECXX@%$HAVECXX%g
4467 s%@INSTALL@%$INSTALL%g
4468 s%@INSTLOPTS@%$INSTLOPTS%g
4469 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
4470 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
4471 s%@DASH_N@%$DASH_N%g
4472 s%@BACKSLASH_C@%$BACKSLASH_C%g
4474 s%@LEXLIB@%$LEXLIB%g
4476 s%@SET_MAKE@%$SET_MAKE%g
4477 s%@RANLIB@%$RANLIB%g
4486 s%@TRARGS@%$TRARGS%g
4488 s%@YFLAGS@%$YFLAGS%g
4491 s%@LIBOBJS@%$LIBOBJS%g
4493 s%@GETRUSAGE@%$GETRUSAGE%g
4494 s%@SRANDOM@%$SRANDOM%g
4495 s%@GETHOSTNAME@%$GETHOSTNAME%g
4496 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
4497 s%@INET_ATON@%$INET_ATON%g
4498 s%@STRERROR@%$STRERROR%g
4499 s%@STRERROR2@%$STRERROR2%g
4500 s%@STRDUP@%$STRDUP%g
4501 s%@STRCASECMP@%$STRCASECMP%g
4506 cat >> $CONFIG_STATUS <<\EOF
4508 # Split the substitutions into bite-sized pieces for seds with
4509 # small command number limits, like on Digital OSF/1 and HP-UX.
4510 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4511 ac_file=1 # Number of current file.
4512 ac_beg=1 # First line for current file.
4513 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4516 while $ac_more_lines; do
4517 if test $ac_beg -gt 1; then
4518 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4520 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4522 if test ! -s conftest.s$ac_file; then
4524 rm -f conftest.s$ac_file
4526 if test -z "$ac_sed_cmds"; then
4527 ac_sed_cmds="sed -f conftest.s$ac_file"
4529 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4531 ac_file=`expr $ac_file + 1`
4533 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4536 if test -z "$ac_sed_cmds"; then
4541 cat >> $CONFIG_STATUS <<EOF
4543 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile"}
4545 cat >> $CONFIG_STATUS <<\EOF
4546 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4549 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4550 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4551 *) ac_file_in="${ac_file}.in" ;;
4554 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4556 # Remove last slash and all that follows it. Not all systems have dirname.
4557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4559 # The file is in a subdirectory.
4560 test ! -d "$ac_dir" && mkdir "$ac_dir"
4561 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4562 # A "../" for each directory in $ac_dir_suffix.
4563 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4565 ac_dir_suffix= ac_dots=
4568 case "$ac_given_srcdir" in
4570 if test -z "$ac_dots"; then top_srcdir=.
4571 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4572 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4574 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4575 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4579 echo creating "$ac_file"
4581 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4583 *Makefile*) ac_comsub="1i\\
4584 # $configure_input" ;;
4588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4590 s%@configure_input@%$configure_input%g
4591 s%@srcdir@%$srcdir%g
4592 s%@top_srcdir@%$top_srcdir%g
4593 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4597 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4598 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4600 # ac_d sets the value in "#define NAME VALUE" lines.
4601 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4602 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4605 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4606 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4607 ac_uB='\([ ]\)%\1#\2define\3'
4610 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4611 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4612 ac_eB='$%\1#\2define\3'
4616 if test "${CONFIG_HEADERS+set}" != set; then
4618 cat >> $CONFIG_STATUS <<EOF
4619 CONFIG_HEADERS="include/config.h"
4621 cat >> $CONFIG_STATUS <<\EOF
4623 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4626 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4627 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4628 *) ac_file_in="${ac_file}.in" ;;
4631 echo creating $ac_file
4633 rm -f conftest.frag conftest.in conftest.out
4634 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4635 cat $ac_file_inputs > conftest.in
4639 # Transform confdefs.h into a sed script conftest.vals that substitutes
4640 # the proper values into config.h.in to produce config.h. And first:
4641 # Protect against being on the right side of a sed subst in config.status.
4642 # Protect against being in an unquoted here document in config.status.
4644 cat > conftest.hdr <<\EOF
4647 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4651 sed -n -f conftest.hdr confdefs.h > conftest.vals
4654 # This sed command replaces #undef with comments. This is necessary, for
4655 # example, in the case of _POSIX_SOURCE, which is predefined and required
4656 # on some systems where configure will not decide to define it.
4657 cat >> conftest.vals <<\EOF
4658 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4661 # Break up conftest.vals because some shells have a limit on
4662 # the size of here documents, and old seds have small limits too.
4667 ac_lines=`grep -c . conftest.vals`
4668 # grep -c gives empty output for an empty file on some AIX systems.
4669 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4670 # Write a limited-size here document to conftest.frag.
4671 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4672 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4674 sed -f conftest.frag conftest.in > conftest.out
4676 mv conftest.out conftest.in
4678 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4680 mv conftest.tail conftest.vals
4684 cat >> $CONFIG_STATUS <<\EOF
4685 rm -f conftest.frag conftest.h
4686 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4687 cat conftest.in >> conftest.h
4689 if cmp -s $ac_file conftest.h 2>/dev/null; then
4690 echo "$ac_file is unchanged"
4693 # Remove last slash and all that follows it. Not all systems have dirname.
4694 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4695 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4696 # The file is in a subdirectory.
4697 test ! -d "$ac_dir" && mkdir "$ac_dir"
4700 mv conftest.h $ac_file
4706 cat >> $CONFIG_STATUS <<EOF
4707 ac_sources="backend/port/tas/i386_solaris.s backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
4708 ac_dests="backend/port/tas.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
4711 cat >> $CONFIG_STATUS <<\EOF
4712 srcdir=$ac_given_srcdir
4713 while test -n "$ac_sources"; do
4714 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4715 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4717 echo "linking $srcdir/$ac_source to $ac_dest"
4719 if test ! -r $srcdir/$ac_source; then
4720 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4724 # Make relative symlinks.
4725 # Remove last slash and all that follows it. Not all systems have dirname.
4726 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4727 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4728 # The dest file is in a subdirectory.
4729 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4730 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4731 # A "../" for each directory in $ac_dest_dir_suffix.
4732 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4734 ac_dest_dir_suffix= ac_dots=
4738 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4739 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4742 # Make a symlink if possible; otherwise try a hard link.
4743 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4744 ln $srcdir/$ac_source $ac_dest; then :
4746 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4750 cat >> $CONFIG_STATUS <<EOF
4753 cat >> $CONFIG_STATUS <<\EOF
4757 chmod +x $CONFIG_STATUS
4758 rm -fr confdefs* $ac_clean_files
4759 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1