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 --with-template=TEMPLATE
17 use operating system template file
18 see template directory"
20 --with-includes=DIR site header files for tk/tcl, etc in DIR"
22 --with-libs=DIR site library directories for tk/tcl, etc in DIR"
24 --with-libraries=DIR site library directories for tk/tcl, etc in DIR"
26 --enable-locale enable locale support "
28 --enable-recode enable cyrillic recode support "
30 --with-mb=<encoding> enable multi-byte support "
32 --with-pgport=<portnum> change default startup port "
36 --with-perl use perl "
38 --enable-cassert enable assertion checks (debugging) "
40 --with-CC=compiler use specific C compiler"
42 --with-CXX=compiler use specific C++ compiler"
44 --with-x use the X Window System"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file=./config.cache
59 program_transform_name=s,x,x,
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
219 -host | --host | --hos | --ho)
221 -host=* | --host=* | --hos=* | --ho=*)
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
263 # Obsolete; use --without-fp.
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
342 -site=* | --site=* | --sit=*)
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.12"
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=backend/access/common/heaptuple.c
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
528 echo "creating cache $cache_file"
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
556 if test -f $ac_dir/install-sh; then
558 ac_install_sh="$ac_aux_dir/install-sh -c"
560 elif test -f $ac_dir/install.sh; then
562 ac_install_sh="$ac_aux_dir/install.sh -c"
566 if test -z "$ac_aux_dir"; then
567 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574 # Make sure we can run config.sub.
575 if $ac_config_sub sun4 >/dev/null 2>&1; then :
576 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
579 echo $ac_n "checking host system type""... $ac_c" 1>&6
580 echo "configure:581: checking host system type" >&5
583 case "$host_alias" in
587 if host_alias=`$ac_config_guess`; then :
588 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
590 *) host_alias=$nonopt ;;
594 host=`$ac_config_sub $host_alias`
595 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
596 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
597 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
598 echo "$ac_t""$host" 1>&6
605 sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;;
606 i386) os=solaris_sparc need_tas=yes tas_file=solaris_i386.s ;;
608 sunos*) os=sunos4 need_tas=no ;;
609 aux*) os=aux need_tas=no ;;
610 linux*) os=linux need_tas=no ;;
611 bsdi*) os=bsdi need_tas=no ;;
612 freebsd*|netbsd*|openbsd*) os=bsd need_tas=no ;;
613 dgux*) os=dgux need_tas=no ;;
614 aix*) os=aix need_tas=no ;;
615 nextstep*) os=nextstep need_tas=no ;;
616 ultrix*) os=ultrix4 need_tas=no ;;
617 irix*) os=irix5 need_tas=no ;;
618 hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
619 osf*) os=alpha need_tas=no ;;
620 sco*) os=sco need_tas=no ;;
621 machten*) os=machten need_tas=no ;;
622 cygwin*) os=win need_tas=no ;;
624 case "$host_vendor" in
625 univel) os=univel need_tas=no ;;
626 *) os=unknown need_tas=no ;;
628 sysv4*) os=svr4 need_tas=no ;;
629 sysv5*) os=unixware need_tas=no ;;
631 echo "*************************************************************"
632 echo "configure does not currently recognize your operating system,"
633 echo "therefore you must do a manual configuration of:"
635 echo "Please contact scrappy@hub.org to see about rectifying this, "
636 echo "including the above 'checking host system type...' line "
637 echo "*************************************************************"
642 if test "X$need_tas" = "Xyes"
657 echo "checking echo setting..."
658 if echo '\c' | grep -s c >/dev/null 2>&1
668 echo $ac_n "checking setting template to""... $ac_c" 1>&6
669 echo "configure:670: checking setting template to" >&5
670 # Check whether --with-template or --without-template was given.
671 if test "${with_template+set}" = set; then
672 withval="$with_template"
675 host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`
676 GUESS=`grep "$host_no_ver" template/.similar | sed 's/.*=//' | tail -1`
678 then TEMPLATE="$GUESS"
679 else TEMPLATE=`uname -s | tr A-Z a-z`
684 echo "$ac_t""$TEMPLATE" 1>&6
687 if test ! -f "template/$TEMPLATE"; then
689 echo "$TEMPLATE does not exist"
691 echo "Available Templates (set using --with-template):"
698 AROPT=`grep '^AROPT:' template/$TEMPLATE | awk -F: '{print $2}'`
699 SHARED_LIB=`grep '^SHARED_LIB:' template/$TEMPLATE | awk -F: '{print $2}'`
700 CFLAGS=`grep '^CFLAGS:' template/$TEMPLATE | awk -F: '{print $2}'`
701 SRCH_INC=`grep '^SRCH_INC:' template/$TEMPLATE | awk -F: '{print $2}'`
702 SRCH_LIB=`grep '^SRCH_LIB:' template/$TEMPLATE | awk -F: '{print $2}'`
703 USE_LOCALE=`grep '^USE_LOCALE:' template/$TEMPLATE | awk -F: '{print $2}'`
704 DLSUFFIX=`grep '^DLSUFFIX:' template/$TEMPLATE | awk -F: '{print $2}'`
705 DL_LIB=`grep '^DL_LIB:' template/$TEMPLATE | awk -F: '{print $2}'`
706 YACC=`grep '^YACC:' template/$TEMPLATE | awk -F: '{print $2}'`
707 YFLAGS=`grep '^YFLAGS:' template/$TEMPLATE | awk -F: '{print $2}'`
708 CC=`grep '^CC:' template/$TEMPLATE | awk -F: '{print $2}'`
709 LIBS=`grep '^LIBS:' template/$TEMPLATE | awk -F: '{print $2}'`
712 # Check whether --with-includes or --without-includes was given.
713 if test "${with_includes+set}" = set; then
714 withval="$with_includes"
717 "" | y | ye | yes | n | no)
718 { echo "configure: error: *** You must supply an argument to the --with-includes option." 1>&2; exit 1; }
721 INCLUDE_DIRS="$withval"
726 if test "$INCLUDE_DIRS"; then
727 for dir in $INCLUDE_DIRS; do
728 if test -d "$dir"; then
729 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
731 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
736 # Check whether --with-libs or --without-libs was given.
737 if test "${with_libs+set}" = set; then
741 "" | y | ye | yes | n | no)
742 { echo "configure: error: *** You must supply an argument to the --with-libs option." 1>&2; exit 1; }
745 LIBRARY_DIRS="$withval"
750 # Check whether --with-libraries or --without-libraries was given.
751 if test "${with_libraries+set}" = set; then
752 withval="$with_libraries"
755 "" | y | ye | yes | n | no)
756 { echo "configure: error: *** You must supply an argument to the --with-libraries option." 1>&2; exit 1; }
759 LIBRARY_DIRS="$withval"
764 if test "$LIBRARY_DIRS"; then
765 for dir in $LIBRARY_DIRS; do
766 if test -d "$dir"; then
767 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
769 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
774 echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
775 echo "configure:776: checking setting USE_LOCALE" >&5
776 # Check whether --enable-locale or --disable-locale was given.
777 if test "${enable_locale+set}" = set; then
778 enableval="$enable_locale"
779 cat >> confdefs.h <<\EOF
782 echo "$ac_t""enabled" 1>&6
784 echo "$ac_t""disabled" 1>&6
789 echo $ac_n "checking setting CYR_RECODE""... $ac_c" 1>&6
790 echo "configure:791: checking setting CYR_RECODE" >&5
791 # Check whether --enable-recode or --disable-recode was given.
792 if test "${enable_recode+set}" = set; then
793 enableval="$enable_recode"
794 cat >> confdefs.h <<\EOF
797 echo "$ac_t""enabled" 1>&6
799 echo "$ac_t""disabled" 1>&6
804 echo $ac_n "checking setting MULTIBYTE""... $ac_c" 1>&6
805 echo "configure:806: checking setting MULTIBYTE" >&5
806 # Check whether --with-mb or --without-mb was given.
807 if test "${with_mb+set}" = set; then
811 EUC_JP|EHC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5)
812 echo "$ac_t"""enabled with $withval"" 1>&6
815 { echo "configure: error: *** You must supply an argument to the --with-mb option one of EUC_JP,EHC_CN,EUC_KR,EUC_TW,UNICODE,MULE_INTERNAL,LATIN1-5" 1>&2; exit 1; }
821 echo "$ac_t"""disabled"" 1>&6
826 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
827 echo "configure:828: checking setting DEF_PGPORT" >&5
828 # Check whether --with-pgport or --without-pgport was given.
829 if test "${with_pgport+set}" = set; then
830 withval="$with_pgport"
831 cat >> confdefs.h <<EOF
832 #define DEF_PGPORT "${withval}"
834 echo "$ac_t""$with_pgport" 1>&6
836 cat >> confdefs.h <<EOF
837 #define DEF_PGPORT "5432"
839 echo "$ac_t""5432" 1>&6
844 echo $ac_n "checking setting USE_TCL""... $ac_c" 1>&6
845 echo "configure:846: checking setting USE_TCL" >&5
846 # Check whether --with-tcl or --without-tcl was given.
847 if test "${with_tcl+set}" = set; then
849 USE_TCL=true; echo "$ac_t""enabled" 1>&6
851 USE_TCL=false; echo "$ac_t""disabled" 1>&6
856 if test "$USE_TCL"; then
857 header_dirs="/usr/include $INCLUDE_DIRS"
858 tcl_dirs="tcl8.0 tcl80 tcl7.6 tcl76"
859 tk_dirs="tk8.0 tk4.2"
860 for dir in $header_dirs; do
861 for tcl_dir in $tcl_dirs; do
862 if test -d "$dir/$tcl_dir"; then
863 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir/$tcl_dir"
867 for dir in $header_dirs; do
868 for tk_dir in $tk_dirs; do
869 if test -d "$dir/$tk_dir"; then
870 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir/$tk_dir"
878 echo $ac_n "checking setting USE_PERL""... $ac_c" 1>&6
879 echo "configure:880: checking setting USE_PERL" >&5
880 # Check whether --with-perl or --without-perl was given.
881 if test "${with_perl+set}" = set; then
883 USE_PERL=true; echo "$ac_t""enabled" 1>&6
885 USE_PERL=false; echo "$ac_t""disabled" 1>&6
890 #dnl Verify that postgres is already installed
891 #dnl per instructions for perl interface installation
892 #if test "$USE_PERL" = "true"
894 # if test ! -x "$prefix"/bin/postgres -a ! -x "$ac_default_prefix"/bin/postgres
895 # then AC_MSG_WARN(perl support disabled; postgres not previously installed)
901 echo $ac_n "checking setting ASSERT CHECKING""... $ac_c" 1>&6
902 echo "configure:903: checking setting ASSERT CHECKING" >&5
903 # Check whether --enable-cassert or --disable-cassert was given.
904 if test "${enable_cassert+set}" = set; then
905 enableval="$enable_cassert"
906 cat >> confdefs.h <<\EOF
907 #define USE_ASSERT_CHECKING 1
909 echo "$ac_t""enabled" 1>&6
911 echo "$ac_t""disabled" 1>&6
916 # Check whether --with-CC or --without-CC was given.
917 if test "${with_CC+set}" = set; then
921 "" | y | ye | yes | n | no)
922 { echo "configure: error: *** You must supply an argument to the --with-CC option." 1>&2; exit 1; }
928 # Extract the first word of "gcc", so it can be a program name with args.
929 set dummy gcc; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 if test -n "$CC"; then
936 ac_cv_prog_CC="$CC" # Let the user override the test.
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
939 for ac_dir in $PATH; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no" 1>&6
956 if test -z "$CC"; then
957 # Extract the first word of "cc", so it can be a program name with args.
958 set dummy cc; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$CC"; then
965 ac_cv_prog_CC="$CC" # Let the user override the test.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
969 for ac_dir in $PATH; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
981 if test $ac_prog_rejected = yes; then
982 # We found a bogon in the path, so make sure we never use it.
983 set dummy $ac_cv_prog_CC
985 if test $# -gt 0; then
986 # We chose a different compiler from the bogus one.
987 # However, it has the same basename, so the bogon will be chosen
988 # first if we set CC to just the basename; use the full file name.
990 set dummy "$ac_dir/$ac_word" "$@"
998 if test -n "$CC"; then
999 echo "$ac_t""$CC" 1>&6
1001 echo "$ac_t""no" 1>&6
1004 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1007 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1012 ac_cpp='$CPP $CPPFLAGS'
1013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1014 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1015 cross_compiling=$ac_cv_prog_cc_cross
1017 cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1022 if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1023 ac_cv_prog_cc_works=yes
1024 # If we can't run a trivial program, we are probably using a cross compiler.
1025 if (./conftest; exit) 2>/dev/null; then
1026 ac_cv_prog_cc_cross=no
1028 ac_cv_prog_cc_cross=yes
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1033 ac_cv_prog_cc_works=no
1037 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1038 if test $ac_cv_prog_cc_works = no; then
1039 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1041 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1043 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1044 cross_compiling=$ac_cv_prog_cc_cross
1046 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether we are using GNU C" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.c <<EOF
1056 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1063 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1065 if test $ac_cv_prog_gcc = yes; then
1067 ac_test_CFLAGS="${CFLAGS+set}"
1068 ac_save_CFLAGS="$CFLAGS"
1070 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether ${CC-cc} accepts -g" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 echo 'void f(){}' > conftest.c
1076 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1085 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1086 if test "$ac_test_CFLAGS" = set; then
1087 CFLAGS="$ac_save_CFLAGS"
1088 elif test $ac_cv_prog_cc_g = yes; then
1095 test "${CFLAGS+set}" = set || CFLAGS="-g"
1101 if test "$CC" = "gcc"
1103 CC_VERSION=`${CC} --version`
1109 CPPFLAGS="$CPPFLAGS $PGSQL_CPPFLAGS"
1111 echo "- setting CPPFLAGS=$CPPFLAGS"
1113 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
1115 echo "- setting LDFLAGS=$LDFLAGS"
1119 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1120 echo "configure:1121: checking how to run the C preprocessor" >&5
1121 # On Suns, sometimes $CPP names a directory.
1122 if test -n "$CPP" && test -d "$CPP"; then
1125 if test -z "$CPP"; then
1126 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 # This must be in double quotes, not single quotes, because CPP may get
1130 # substituted into the Makefile and "${CC-cc}" will confuse make.
1132 # On the NeXT, cc -E runs the code through the compiler's parser,
1133 # not just through cpp.
1134 cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141 { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142 ac_err=`grep -v '^ *+' conftest.out`
1143 if test -z "$ac_err"; then
1147 echo "configure: failed program was:" >&5
1148 cat conftest.$ac_ext >&5
1150 CPP="${CC-cc} -E -traditional-cpp"
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1158 { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1159 ac_err=`grep -v '^ *+' conftest.out`
1160 if test -z "$ac_err"; then
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1172 ac_cv_prog_CPP="$CPP"
1174 CPP="$ac_cv_prog_CPP"
1176 ac_cv_prog_CPP="$CPP"
1178 echo "$ac_t""$CPP" 1>&6
1193 HAVECXX='HAVE_Cplusplus=true'
1194 # Check whether --with-CXX or --without-CXX was given.
1195 if test "${with_CXX+set}" = set; then
1200 { echo "configure: error: *** You must supply an argument to the --with-CC option." 1>&2; exit 1; }
1203 HAVECXX='HAVE_Cplusplus=false'
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -n "$CXX"; then
1219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1222 for ac_dir in $PATH; do
1223 test -z "$ac_dir" && ac_dir=.
1224 if test -f $ac_dir/$ac_word; then
1225 ac_cv_prog_CXX="$ac_prog"
1232 CXX="$ac_cv_prog_CXX"
1233 if test -n "$CXX"; then
1234 echo "$ac_t""$CXX" 1>&6
1236 echo "$ac_t""no" 1>&6
1239 test -n "$CXX" && break
1241 test -n "$CXX" || CXX="gcc"
1244 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1249 ac_cpp='$CXXCPP $CPPFLAGS'
1250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1251 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1252 cross_compiling=$ac_cv_prog_cxx_cross
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1259 if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1260 ac_cv_prog_cxx_works=yes
1261 # If we can't run a trivial program, we are probably using a cross compiler.
1262 if (./conftest; exit) 2>/dev/null; then
1263 ac_cv_prog_cxx_cross=no
1265 ac_cv_prog_cxx_cross=yes
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1270 ac_cv_prog_cxx_works=no
1274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1277 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1278 cross_compiling=$ac_cv_prog_cc_cross
1280 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1281 if test $ac_cv_prog_cxx_works = no; then
1282 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1284 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1286 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1287 cross_compiling=$ac_cv_prog_cxx_cross
1289 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether we are using GNU C++" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 cat > conftest.C <<EOF
1299 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1306 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1308 if test $ac_cv_prog_gxx = yes; then
1310 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1311 ac_save_CXXFLAGS="$CXXFLAGS"
1313 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether ${CXX-g++} accepts -g" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 echo 'void f(){}' > conftest.cc
1319 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1320 ac_cv_prog_cxx_g=yes
1328 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1329 if test "$ac_test_CXXFLAGS" = set; then
1330 CXXFLAGS="$ac_save_CXXFLAGS"
1331 elif test $ac_cv_prog_cxx_g = yes; then
1338 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1345 INSTALLPATH="/usr/ucb:$PATH"
1346 for ac_prog in ginstall installbsd bsdinst scoinst install
1348 # Extract the first word of "$ac_prog", so it can be a program name with args.
1349 set dummy $ac_prog; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1357 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1361 for ac_dir in $INSTALLPATH$ac_dummy; do
1362 test -z "$ac_dir" && ac_dir=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_path_INSTALL="$ac_dir/$ac_word"
1372 INSTALL="$ac_cv_path_INSTALL"
1373 if test -n "$INSTALL"; then
1374 echo "$ac_t""$INSTALL" 1>&6
1376 echo "$ac_t""no" 1>&6
1379 test -n "$INSTALL" && break
1381 test -n "$INSTALL" || INSTALL="NONE"
1383 if test $INSTALL = "NONE"
1385 echo "- No Install Script found - aborting."
1390 INSTL_EXE_OPTS="-m 555"
1391 INSTL_LIB_OPTS="-m 644"
1392 INSTL_SHLIB_OPTS="-m 644"
1396 INSTL_SHLIB_OPTS="-m 555" ;;
1399 case "`basename $INSTALL`" in
1400 install|installbsd|scoinst)
1401 INSTLOPTS="-c $INSTLOPTS"
1402 INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1403 INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS"
1404 INSTL_SHLIB_OPTS="-c $INSTL_SHLIB_OPTS";;
1407 echo "- Using $INSTALL"
1414 ECHO_N_OUT=`echo -n "" | wc -c`
1415 ECHO_C_OUT=`echo "\c" | wc -c`
1416 if test "$ECHO_N_OUT" -eq 0; then
1420 if test "ECHO_C_OUT" -eq 0; then
1424 { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
1430 # Extract the first word of "flex", so it can be a program name with args.
1431 set dummy flex; ac_word=$2
1432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_word" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 if test -n "$LEX"; then
1438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1441 for ac_dir in $PATH; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_LEX="flex"
1449 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1452 LEX="$ac_cv_prog_LEX"
1453 if test -n "$LEX"; then
1454 echo "$ac_t""$LEX" 1>&6
1456 echo "$ac_t""no" 1>&6
1459 if test -z "$LEXLIB"
1465 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1466 echo "configure:1467: checking for yywrap in -l$ac_lib" >&5
1467 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 ac_save_LIBS="$LIBS"
1472 LIBS="-l$ac_lib $LIBS"
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 /* Override any gcc2 internal prototype to avoid an error. */
1477 /* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1487 eval "ac_cv_lib_$ac_lib_var=yes"
1489 echo "configure: failed program was:" >&5
1490 cat conftest.$ac_ext >&5
1492 eval "ac_cv_lib_$ac_lib_var=no"
1495 LIBS="$ac_save_LIBS"
1498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1502 echo "$ac_t""no" 1>&6
1507 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether ln -s works" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1513 if ln -s X conftestdata 2>/dev/null
1516 ac_cv_prog_LN_S="ln -s"
1521 LN_S="$ac_cv_prog_LN_S"
1522 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1523 echo "$ac_t""yes" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1529 echo "configure:1530: checking whether ${MAKE-make} sets \${MAKE}" >&5
1530 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1531 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftestmake <<\EOF
1536 @echo 'ac_maketemp="${MAKE}"'
1538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1539 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1540 if test -n "$ac_maketemp"; then
1541 eval ac_cv_prog_make_${ac_make}_set=yes
1543 eval ac_cv_prog_make_${ac_make}_set=no
1547 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1552 SET_MAKE="MAKE=${MAKE-make}"
1555 # Extract the first word of "ranlib", so it can be a program name with args.
1556 set dummy ranlib; ac_word=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 if test -n "$RANLIB"; then
1563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1566 for ac_dir in $PATH; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_RANLIB="ranlib"
1574 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1577 RANLIB="$ac_cv_prog_RANLIB"
1578 if test -n "$RANLIB"; then
1579 echo "$ac_t""$RANLIB" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "find", so it can be a program name with args.
1585 set dummy find; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_find="$find" # Let the user override the test with a path.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1597 for ac_dir in $PATH; do
1598 test -z "$ac_dir" && ac_dir=.
1599 if test -f $ac_dir/$ac_word; then
1600 ac_cv_path_find="$ac_dir/$ac_word"
1608 find="$ac_cv_path_find"
1609 if test -n "$find"; then
1610 echo "$ac_t""$find" 1>&6
1612 echo "$ac_t""no" 1>&6
1615 # Extract the first word of "tar", so it can be a program name with args.
1616 set dummy tar; ac_word=$2
1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_word" >&5
1619 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1624 ac_cv_path_tar="$tar" # Let the user override the test with a path.
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1628 for ac_dir in $PATH; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f $ac_dir/$ac_word; then
1631 ac_cv_path_tar="$ac_dir/$ac_word"
1639 tar="$ac_cv_path_tar"
1640 if test -n "$tar"; then
1641 echo "$ac_t""$tar" 1>&6
1643 echo "$ac_t""no" 1>&6
1646 # Extract the first word of "split", so it can be a program name with args.
1647 set dummy split; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5
1650 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1655 ac_cv_path_split="$split" # Let the user override the test with a path.
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1659 for ac_dir in $PATH; do
1660 test -z "$ac_dir" && ac_dir=.
1661 if test -f $ac_dir/$ac_word; then
1662 ac_cv_path_split="$ac_dir/$ac_word"
1670 split="$ac_cv_path_split"
1671 if test -n "$split"; then
1672 echo "$ac_t""$split" 1>&6
1674 echo "$ac_t""no" 1>&6
1677 # Extract the first word of "etags", so it can be a program name with args.
1678 set dummy etags; ac_word=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1681 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1686 ac_cv_path_etags="$etags" # Let the user override the test with a path.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1690 for ac_dir in $PATH; do
1691 test -z "$ac_dir" && ac_dir=.
1692 if test -f $ac_dir/$ac_word; then
1693 ac_cv_path_etags="$ac_dir/$ac_word"
1701 etags="$ac_cv_path_etags"
1702 if test -n "$etags"; then
1703 echo "$ac_t""$etags" 1>&6
1705 echo "$ac_t""no" 1>&6
1708 # Extract the first word of "xargs", so it can be a program name with args.
1709 set dummy xargs; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1717 ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1721 for ac_dir in $PATH; do
1722 test -z "$ac_dir" && ac_dir=.
1723 if test -f $ac_dir/$ac_word; then
1724 ac_cv_path_xargs="$ac_dir/$ac_word"
1732 xargs="$ac_cv_path_xargs"
1733 if test -n "$xargs"; then
1734 echo "$ac_t""$xargs" 1>&6
1736 echo "$ac_t""no" 1>&6
1739 # Extract the first word of "ipcs", so it can be a program name with args.
1740 set dummy ipcs; ac_word=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1752 for ac_dir in $PATH; do
1753 test -z "$ac_dir" && ac_dir=.
1754 if test -f $ac_dir/$ac_word; then
1755 ac_cv_path_ipcs="$ac_dir/$ac_word"
1763 ipcs="$ac_cv_path_ipcs"
1764 if test -n "$ipcs"; then
1765 echo "$ac_t""$ipcs" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 # Extract the first word of "ipcrm", so it can be a program name with args.
1771 set dummy ipcrm; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1779 ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1783 for ac_dir in $PATH; do
1784 test -z "$ac_dir" && ac_dir=.
1785 if test -f $ac_dir/$ac_word; then
1786 ac_cv_path_ipcrm="$ac_dir/$ac_word"
1794 ipcrm="$ac_cv_path_ipcrm"
1795 if test -n "$ipcrm"; then
1796 echo "$ac_t""$ipcrm" 1>&6
1798 echo "$ac_t""no" 1>&6
1801 for ac_prog in trbsd tr
1803 # Extract the first word of "$ac_prog", so it can be a program name with args.
1804 set dummy $ac_prog; ac_word=$2
1805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_word" >&5
1807 if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1812 ac_cv_path_TR="$TR" # Let the user override the test with a path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1816 for ac_dir in $PATH; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_path_TR="$ac_dir/$ac_word"
1828 if test -n "$TR"; then
1829 echo "$ac_t""$TR" 1>&6
1831 echo "$ac_t""no" 1>&6
1834 test -n "$TR" && break
1836 test -n "$TR" || TR="NOT_FOUND"
1839 TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
1840 TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1842 if test "$TRSTRINGS" = "ABCDEF"; then
1843 TRARGS="'[a-z]' '[A-Z]'"
1844 elif test "$TRCLASS" = "ABCDEF"; then
1845 TRARGS="'[:lower:]' '[:upper:]'"
1847 { echo "configure: error: "Can\'t find method to convert from upper to lower case with tr"" 1>&2; exit 1; }
1854 # Extract the first word of "yacc", so it can be a program name with args.
1855 set dummy yacc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1863 ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1867 for ac_dir in $PATH; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 ac_cv_path_yacc="$ac_dir/$ac_word"
1878 yacc="$ac_cv_path_yacc"
1879 if test -n "$yacc"; then
1880 echo "$ac_t""$yacc" 1>&6
1882 echo "$ac_t""no" 1>&6
1885 # Extract the first word of "bison", so it can be a program name with args.
1886 set dummy bison; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1894 ac_cv_path_bison="$bison" # Let the user override the test with a path.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1898 for ac_dir in $PATH; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 ac_cv_path_bison="$ac_dir/$ac_word"
1909 bison="$ac_cv_path_bison"
1910 if test -n "$bison"; then
1911 echo "$ac_t""$bison" 1>&6
1913 echo "$ac_t""no" 1>&6
1918 echo "- Using $YACC $YFLAGS"
1919 elif test -f "$bison"
1921 echo "- Using $bison -y $YFLAGS"
1926 echo "- Using $yacc $YFLAGS"
1931 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
1932 echo "configure:1933: checking for main in -lsfio" >&5
1933 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
1934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 ac_save_LIBS="$LIBS"
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1949 eval "ac_cv_lib_$ac_lib_var=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_lib_$ac_lib_var=no"
1957 LIBS="$ac_save_LIBS"
1960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1961 echo "$ac_t""yes" 1>&6
1962 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_lib 1
1971 echo "$ac_t""no" 1>&6
1974 for curses in ncurses curses ; do
1975 echo $ac_n "checking for main in -l${curses}""... $ac_c" 1>&6
1976 echo "configure:1977: checking for main in -l${curses}" >&5
1977 ac_lib_var=`echo ${curses}'_'main | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 ac_save_LIBS="$LIBS"
1982 LIBS="-l${curses} $LIBS"
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1993 eval "ac_cv_lib_$ac_lib_var=yes"
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 eval "ac_cv_lib_$ac_lib_var=no"
2001 LIBS="$ac_save_LIBS"
2004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2006 LIBS="-l${curses} $LIBS"; break
2008 echo "$ac_t""no" 1>&6
2012 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2013 echo "configure:2014: checking for main in -ltermcap" >&5
2014 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 ac_save_LIBS="$LIBS"
2019 LIBS="-ltermcap $LIBS"
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2035 eval "ac_cv_lib_$ac_lib_var=no"
2038 LIBS="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2045 cat >> confdefs.h <<EOF
2046 #define $ac_tr_lib 1
2049 LIBS="-ltermcap $LIBS"
2052 echo "$ac_t""no" 1>&6
2055 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
2056 echo "configure:2057: checking for main in -lhistory" >&5
2057 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
2058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 ac_save_LIBS="$LIBS"
2062 LIBS="-lhistory $LIBS"
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2071 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2073 eval "ac_cv_lib_$ac_lib_var=yes"
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 eval "ac_cv_lib_$ac_lib_var=no"
2081 LIBS="$ac_save_LIBS"
2084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2085 echo "$ac_t""yes" 1>&6
2086 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_lib 1
2092 LIBS="-lhistory $LIBS"
2095 echo "$ac_t""no" 1>&6
2098 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2099 echo "configure:2100: checking for main in -lreadline" >&5
2100 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 ac_save_LIBS="$LIBS"
2105 LIBS="-lreadline $LIBS"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2116 eval "ac_cv_lib_$ac_lib_var=yes"
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2121 eval "ac_cv_lib_$ac_lib_var=no"
2124 LIBS="$ac_save_LIBS"
2127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_lib 1
2135 LIBS="-lreadline $LIBS"
2138 echo "$ac_t""no" 1>&6
2141 echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
2142 echo "configure:2143: checking for write_history in -lreadline" >&5
2143 ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
2144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 ac_save_LIBS="$LIBS"
2148 LIBS="-lreadline $LIBS"
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2155 char write_history();
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2163 eval "ac_cv_lib_$ac_lib_var=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_lib_$ac_lib_var=no"
2171 LIBS="$ac_save_LIBS"
2174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 cat >> confdefs.h <<\EOF
2177 #define HAVE_HISTORY 1
2181 echo "$ac_t""no" 1>&6
2184 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
2186 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
2187 echo "configure:2188: checking for main in -lbsd" >&5
2188 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_save_LIBS="$LIBS"
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2219 cat >> confdefs.h <<EOF
2220 #define $ac_tr_lib 1
2226 echo "$ac_t""no" 1>&6
2230 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2231 echo "configure:2232: checking for main in -lm" >&5
2232 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 ac_save_LIBS="$LIBS"
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_lib_$ac_lib_var=no"
2256 LIBS="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_lib 1
2270 echo "$ac_t""no" 1>&6
2273 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
2274 echo "configure:2275: checking for main in -ldl" >&5
2275 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 ac_save_LIBS="$LIBS"
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2291 eval "ac_cv_lib_$ac_lib_var=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_lib_$ac_lib_var=no"
2299 LIBS="$ac_save_LIBS"
2302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_lib 1
2313 echo "$ac_t""no" 1>&6
2316 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2317 echo "configure:2318: checking for main in -lsocket" >&5
2318 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 ac_save_LIBS="$LIBS"
2323 LIBS="-lsocket $LIBS"
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2334 eval "ac_cv_lib_$ac_lib_var=yes"
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 eval "ac_cv_lib_$ac_lib_var=no"
2342 LIBS="$ac_save_LIBS"
2345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2349 cat >> confdefs.h <<EOF
2350 #define $ac_tr_lib 1
2353 LIBS="-lsocket $LIBS"
2356 echo "$ac_t""no" 1>&6
2359 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2360 echo "configure:2361: checking for main in -lnsl" >&5
2361 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_save_LIBS="$LIBS"
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2377 eval "ac_cv_lib_$ac_lib_var=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 eval "ac_cv_lib_$ac_lib_var=no"
2385 LIBS="$ac_save_LIBS"
2388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2392 cat >> confdefs.h <<EOF
2393 #define $ac_tr_lib 1
2399 echo "$ac_t""no" 1>&6
2402 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
2403 echo "configure:2404: checking for main in -lipc" >&5
2404 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 ac_save_LIBS="$LIBS"
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2420 eval "ac_cv_lib_$ac_lib_var=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_lib_$ac_lib_var=no"
2428 LIBS="$ac_save_LIBS"
2431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2435 cat >> confdefs.h <<EOF
2436 #define $ac_tr_lib 1
2442 echo "$ac_t""no" 1>&6
2445 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
2446 echo "configure:2447: checking for main in -lIPC" >&5
2447 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_save_LIBS="$LIBS"
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2461 if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2463 eval "ac_cv_lib_$ac_lib_var=yes"
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 eval "ac_cv_lib_$ac_lib_var=no"
2471 LIBS="$ac_save_LIBS"
2474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2478 cat >> confdefs.h <<EOF
2479 #define $ac_tr_lib 1
2485 echo "$ac_t""no" 1>&6
2488 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
2489 echo "configure:2490: checking for main in -llc" >&5
2490 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 ac_save_LIBS="$LIBS"
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2506 eval "ac_cv_lib_$ac_lib_var=yes"
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2511 eval "ac_cv_lib_$ac_lib_var=no"
2514 LIBS="$ac_save_LIBS"
2517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_lib 1
2528 echo "$ac_t""no" 1>&6
2531 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
2532 echo "configure:2533: checking for main in -ldld" >&5
2533 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_save_LIBS="$LIBS"
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 eval "ac_cv_lib_$ac_lib_var=no"
2557 LIBS="$ac_save_LIBS"
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2564 cat >> confdefs.h <<EOF
2565 #define $ac_tr_lib 1
2571 echo "$ac_t""no" 1>&6
2574 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
2575 echo "configure:2576: checking for main in -lln" >&5
2576 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_save_LIBS="$LIBS"
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2590 if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2592 eval "ac_cv_lib_$ac_lib_var=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 eval "ac_cv_lib_$ac_lib_var=no"
2600 LIBS="$ac_save_LIBS"
2603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2607 cat >> confdefs.h <<EOF
2608 #define $ac_tr_lib 1
2614 echo "$ac_t""no" 1>&6
2617 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
2618 echo "configure:2619: checking for main in -lld" >&5
2619 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 ac_save_LIBS="$LIBS"
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2635 eval "ac_cv_lib_$ac_lib_var=yes"
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 eval "ac_cv_lib_$ac_lib_var=no"
2643 LIBS="$ac_save_LIBS"
2646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2650 cat >> confdefs.h <<EOF
2651 #define $ac_tr_lib 1
2657 echo "$ac_t""no" 1>&6
2660 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
2661 echo "configure:2662: checking for main in -lcompat" >&5
2662 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_save_LIBS="$LIBS"
2667 LIBS="-lcompat $LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2678 eval "ac_cv_lib_$ac_lib_var=yes"
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2683 eval "ac_cv_lib_$ac_lib_var=no"
2686 LIBS="$ac_save_LIBS"
2689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2692 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2693 cat >> confdefs.h <<EOF
2694 #define $ac_tr_lib 1
2697 LIBS="-lcompat $LIBS"
2700 echo "$ac_t""no" 1>&6
2703 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
2704 echo "configure:2705: checking for main in -lBSD" >&5
2705 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_save_LIBS="$LIBS"
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2721 eval "ac_cv_lib_$ac_lib_var=yes"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 eval "ac_cv_lib_$ac_lib_var=no"
2729 LIBS="$ac_save_LIBS"
2732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2734 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2735 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2736 cat >> confdefs.h <<EOF
2737 #define $ac_tr_lib 1
2743 echo "$ac_t""no" 1>&6
2746 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2747 echo "configure:2748: checking for main in -lcrypt" >&5
2748 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 ac_save_LIBS="$LIBS"
2753 LIBS="-lcrypt $LIBS"
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2764 eval "ac_cv_lib_$ac_lib_var=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_lib_$ac_lib_var=no"
2772 LIBS="$ac_save_LIBS"
2775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2779 cat >> confdefs.h <<EOF
2780 #define $ac_tr_lib 1
2783 LIBS="-lcrypt $LIBS"
2786 echo "$ac_t""no" 1>&6
2789 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2790 echo "configure:2791: checking for main in -lgen" >&5
2791 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_save_LIBS="$LIBS"
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2805 if { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2807 eval "ac_cv_lib_$ac_lib_var=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2812 eval "ac_cv_lib_$ac_lib_var=no"
2815 LIBS="$ac_save_LIBS"
2818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2822 cat >> confdefs.h <<EOF
2823 #define $ac_tr_lib 1
2829 echo "$ac_t""no" 1>&6
2832 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
2833 echo "configure:2834: checking for main in -lPW" >&5
2834 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
2835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 ac_save_LIBS="$LIBS"
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2850 eval "ac_cv_lib_$ac_lib_var=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_lib_$ac_lib_var=no"
2858 LIBS="$ac_save_LIBS"
2861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2865 cat >> confdefs.h <<EOF
2866 #define $ac_tr_lib 1
2872 echo "$ac_t""no" 1>&6
2876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2877 echo "configure:2878: checking for ANSI C header files" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2890 { (eval echo configure:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2891 ac_err=`grep -v '^ *+' conftest.out`
2892 if test -z "$ac_err"; then
2894 ac_cv_header_stdc=yes
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 ac_cv_header_stdc=no
2904 if test $ac_cv_header_stdc = yes; then
2905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2912 egrep "memchr" >/dev/null 2>&1; then
2916 ac_cv_header_stdc=no
2922 if test $ac_cv_header_stdc = yes; then
2923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2930 egrep "free" >/dev/null 2>&1; then
2934 ac_cv_header_stdc=no
2940 if test $ac_cv_header_stdc = yes; then
2941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2942 if test "$cross_compiling" = yes; then
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952 int main () { int i; for (i = 0; i < 256; i++)
2953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 ac_cv_header_stdc=no
2972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2973 if test $ac_cv_header_stdc = yes; then
2974 cat >> confdefs.h <<\EOF
2975 #define STDC_HEADERS 1
2980 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2981 echo "configure:2982: checking for sys/wait.h that is POSIX.1 compatible" >&5
2982 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2989 #include <sys/wait.h>
2991 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2994 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2999 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3002 if { (eval echo configure:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3004 ac_cv_header_sys_wait_h=yes
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 ac_cv_header_sys_wait_h=no
3014 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3015 if test $ac_cv_header_sys_wait_h = yes; then
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_SYS_WAIT_H 1
3022 for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
3024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_hdr" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3036 { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3037 ac_err=`grep -v '^ *+' conftest.out`
3038 if test -z "$ac_err"; then
3040 eval "ac_cv_header_$ac_safe=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3046 eval "ac_cv_header_$ac_safe=no"
3050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3053 cat >> confdefs.h <<EOF
3054 #define $ac_tr_hdr 1
3058 echo "$ac_t""no" 1>&6
3062 for ac_hdr in sys/resource.h netdb.h arpa/inet.h getopt.h
3064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_hdr" >&5
3067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3076 { (eval echo configure:3077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3077 ac_err=`grep -v '^ *+' conftest.out`
3078 if test -z "$ac_err"; then
3080 eval "ac_cv_header_$ac_safe=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 eval "ac_cv_header_$ac_safe=no"
3090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_hdr 1
3098 echo "$ac_t""no" 1>&6
3102 for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
3104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_hdr" >&5
3107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3116 { (eval echo configure:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3117 ac_err=`grep -v '^ *+' conftest.out`
3118 if test -z "$ac_err"; then
3120 eval "ac_cv_header_$ac_safe=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 eval "ac_cv_header_$ac_safe=no"
3130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3131 echo "$ac_t""yes" 1>&6
3132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3133 cat >> confdefs.h <<EOF
3134 #define $ac_tr_hdr 1
3138 echo "$ac_t""no" 1>&6
3142 for ac_hdr in readline/readline.h readline/history.h ieeefp.h fp_class.h
3144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3146 echo "configure:3147: checking for $ac_hdr" >&5
3147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3156 { (eval echo configure:3157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3157 ac_err=`grep -v '^ *+' conftest.out`
3158 if test -z "$ac_err"; then
3160 eval "ac_cv_header_$ac_safe=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "ac_cv_header_$ac_safe=no"
3170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3173 cat >> confdefs.h <<EOF
3174 #define $ac_tr_hdr 1
3178 echo "$ac_t""no" 1>&6
3182 for ac_hdr in netinet/in.h string.h strings.h
3184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_hdr" >&5
3187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3196 { (eval echo configure:3197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3197 ac_err=`grep -v '^ *+' conftest.out`
3198 if test -z "$ac_err"; then
3200 eval "ac_cv_header_$ac_safe=yes"
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 eval "ac_cv_header_$ac_safe=no"
3210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3211 echo "$ac_t""yes" 1>&6
3212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3213 cat >> confdefs.h <<EOF
3214 #define $ac_tr_hdr 1
3218 echo "$ac_t""no" 1>&6
3223 echo $ac_n "checking for working const""... $ac_c" 1>&6
3224 echo "configure:3225: checking for working const" >&5
3225 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2]; const charset x;
3236 /* SunOS 4.1.1 cc rejects this. */
3237 char const *const *ccp;
3239 /* NEC SVR4.0.2 mips cc rejects this. */
3240 struct point {int x, y;};
3241 static struct point const zero = {0,0};
3242 /* AIX XL C 1.02.0.0 rejects this.
3243 It does not let you subtract one const X* pointer from another in an arm
3244 of an if-expression whose if-part is not a constant expression */
3245 const char *g = "string";
3246 ccp = &g + (g ? g-g : 0);
3247 /* HPUX 7.0 cc rejects these. */
3250 ccp = (char const *const *) p;
3251 { /* SCO 3.2v4 cc rejects this. */
3253 char const *s = 0 ? (char *) 0 : (char const *) 0;
3257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3259 const int *foo = &x[0];
3262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3263 typedef const int *iptr;
3267 { /* AIX XL C 1.02.0.0 rejects this saying
3268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3269 struct s { int j; const int *ap[3]; };
3270 struct s *b; b->j = 5;
3272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3290 echo "$ac_t""$ac_cv_c_const" 1>&6
3291 if test $ac_cv_c_const = no; then
3292 cat >> confdefs.h <<\EOF
3298 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3299 echo "configure:3300: checking for uid_t in sys/types.h" >&5
3300 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 egrep "uid_t" >/dev/null 2>&1; then
3311 ac_cv_type_uid_t=yes
3320 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3321 if test $ac_cv_type_uid_t = no; then
3322 cat >> confdefs.h <<\EOF
3326 cat >> confdefs.h <<\EOF
3332 echo $ac_n "checking for inline""... $ac_c" 1>&6
3333 echo "configure:3334: checking for inline" >&5
3334 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3338 for ac_kw in inline __inline__ __inline; do
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3349 ac_cv_c_inline=$ac_kw; break
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3359 echo "$ac_t""$ac_cv_c_inline" 1>&6
3360 case "$ac_cv_c_inline" in
3362 no) cat >> confdefs.h <<\EOF
3366 *) cat >> confdefs.h <<EOF
3367 #define inline $ac_cv_c_inline
3372 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3373 echo "configure:3374: checking for mode_t" >&5
3374 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3387 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3389 ac_cv_type_mode_t=yes
3392 ac_cv_type_mode_t=no
3397 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3398 if test $ac_cv_type_mode_t = no; then
3399 cat >> confdefs.h <<\EOF
3405 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3406 echo "configure:3407: checking for off_t" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3422 ac_cv_type_off_t=yes
3430 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3431 if test $ac_cv_type_off_t = no; then
3432 cat >> confdefs.h <<\EOF
3438 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3439 echo "configure:3440: checking for size_t" >&5
3440 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3455 ac_cv_type_size_t=yes
3458 ac_cv_type_size_t=no
3463 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3464 if test $ac_cv_type_size_t = no; then
3465 cat >> confdefs.h <<\EOF
3466 #define size_t unsigned
3471 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether time.h and sys/time.h may both be included" >&5
3473 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 #include <sys/types.h>
3480 #include <sys/time.h>
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3488 ac_cv_header_time=yes
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 ac_cv_header_time=no
3498 echo "$ac_t""$ac_cv_header_time" 1>&6
3499 if test $ac_cv_header_time = yes; then
3500 cat >> confdefs.h <<\EOF
3501 #define TIME_WITH_SYS_TIME 1
3506 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3507 echo "configure:3508: checking whether struct tm is in sys/time.h or time.h" >&5
3508 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 #include <sys/types.h>
3517 struct tm *tp; tp->tm_sec;
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 ac_cv_struct_tm=time.h
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 ac_cv_struct_tm=sys/time.h
3532 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3533 if test $ac_cv_struct_tm = sys/time.h; then
3534 cat >> confdefs.h <<\EOF
3535 #define TM_IN_SYS_TIME 1
3541 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
3542 echo "configure:3543: checking for int timezone" >&5
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3548 int res = timezone / 60;
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3553 cat >> confdefs.h <<\EOF
3554 #define HAVE_INT_TIMEZONE 1
3556 echo "$ac_t""yes" 1>&6
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3561 echo "$ac_t""no" 1>&6
3565 echo $ac_n "checking for gettimeofday args""... $ac_c" 1>&6
3566 echo "configure:3567: checking for gettimeofday args" >&5
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 #include <sys/time.h>
3572 struct timeval *tp; struct timezone *tzp; gettimeofday(tp,tzp);
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3577 cat >> confdefs.h <<\EOF
3578 #define HAVE_GETTIMEOFDAY_2_ARGS 1
3580 echo "$ac_t""2 args" 1>&6
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3590 echo "configure:3591: checking for union semun" >&5
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 #include <sys/types.h>
3595 #include <sys/ipc.h>
3596 #include <sys/sem.h>
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3603 cat >> confdefs.h <<\EOF
3604 #define HAVE_UNION_SEMUN 1
3606 echo "$ac_t""yes" 1>&6
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 echo "$ac_t""no" 1>&6
3615 echo $ac_n "checking for good DBL_MIN""... $ac_c" 1>&6
3616 echo "configure:3617: checking for good DBL_MIN" >&5
3617 if test "$cross_compiling" = yes; then
3618 echo "$ac_t""assuming ok on target machine" 1>&6
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3628 main() { double d = DBL_MIN; if (d != DBL_MIN) exit(-1); else exit(0); }
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3632 echo "$ac_t""yes" 1>&6
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 echo "$ac_t""no" 1>&6 cat >> confdefs.h <<\EOF
3638 #define HAVE_DBL_MIN_PROBLEM 1
3646 echo $ac_n "checking whether 'long int' is 64 bits""... $ac_c" 1>&6
3647 echo "configure:3648: checking whether 'long int' is 64 bits" >&5
3648 if test "$cross_compiling" = yes; then
3649 echo "$ac_t""assuming not on target machine" 1>&6
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3655 typedef long int int64;
3656 #define INT64_FORMAT "%ld"
3661 int does_int64_work()
3666 if (sizeof(int64) != 8)
3667 return 0; /* doesn't look like the right size */
3669 /* we do perfunctory checks on multiply, divide, sprintf, sscanf */
3671 sprintf(buf, INT64_FORMAT, c);
3672 if (strcmp(buf, "800000140000005") != 0)
3673 return 0; /* either multiply or sprintf is busted */
3674 if (sscanf(buf, INT64_FORMAT, &d) != 1)
3684 exit(! does_int64_work());
3687 if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3689 echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF
3690 #define HAVE_LONG_INT_64 1
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3697 echo "$ac_t""no" 1>&6
3703 echo $ac_n "checking whether 'long long int' is 64 bits""... $ac_c" 1>&6
3704 echo "configure:3705: checking whether 'long long int' is 64 bits" >&5
3705 if test "$cross_compiling" = yes; then
3706 echo "$ac_t""assuming not on target machine" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3712 typedef long long int int64;
3713 #define INT64_FORMAT "%Ld"
3718 int does_int64_work()
3723 if (sizeof(int64) != 8)
3724 return 0; /* doesn't look like the right size */
3726 /* we do perfunctory checks on multiply, divide, sprintf, sscanf */
3728 sprintf(buf, INT64_FORMAT, c);
3729 if (strcmp(buf, "800000140000005") != 0)
3730 return 0; /* either multiply or sprintf is busted */
3731 if (sscanf(buf, INT64_FORMAT, &d) != 1)
3741 exit(! does_int64_work());
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3746 echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF
3747 #define HAVE_LONG_LONG_INT_64 1
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 echo "$ac_t""no" 1>&6
3760 if test $ac_cv_prog_gcc = yes; then
3761 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3762 echo "configure:3763: checking whether ${CC-cc} needs -traditional" >&5
3763 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 ac_pattern="Autoconf.*'x'"
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774 egrep "$ac_pattern" >/dev/null 2>&1; then
3776 ac_cv_prog_gcc_traditional=yes
3779 ac_cv_prog_gcc_traditional=no
3784 if test $ac_cv_prog_gcc_traditional = no; then
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 egrep "$ac_pattern" >/dev/null 2>&1; then
3794 ac_cv_prog_gcc_traditional=yes
3801 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3802 if test $ac_cv_prog_gcc_traditional = yes; then
3803 CC="$CC -traditional"
3807 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3808 echo "configure:3809: checking for 8-bit clean memcmp" >&5
3809 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 if test "$cross_compiling" = yes; then
3813 ac_cv_func_memcmp_clean=no
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3821 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3822 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3828 ac_cv_func_memcmp_clean=yes
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 ac_cv_func_memcmp_clean=no
3840 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3841 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3843 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3844 echo "configure:3845: checking return type of signal handlers" >&5
3845 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3857 extern "C" void (*signal (int, void (*)(int)))(int);
3859 void (*signal ()) ();
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 ac_cv_type_signal=void
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 ac_cv_type_signal=int
3878 echo "$ac_t""$ac_cv_type_signal" 1>&6
3879 cat >> confdefs.h <<EOF
3880 #define RETSIGTYPE $ac_cv_type_signal
3884 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3885 echo "configure:3886: checking for vprintf" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char vprintf(); below. */
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3915 eval "ac_cv_func_vprintf=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3920 eval "ac_cv_func_vprintf=no"
3925 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_VPRINTF 1
3932 echo "$ac_t""no" 1>&6
3935 if test "$ac_cv_func_vprintf" != yes; then
3936 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3937 echo "configure:3938: checking for _doprnt" >&5
3938 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char _doprnt(); below. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3954 /* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3967 eval "ac_cv_func__doprnt=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 eval "ac_cv_func__doprnt=no"
3977 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_DOPRNT 1
3984 echo "$ac_t""no" 1>&6
3989 for ac_func in tzset memmove sigsetjmp kill sysconf fpclass
3991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3992 echo "configure:3993: checking for $ac_func" >&5
3993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 /* System header to define __stub macros and hopefully few prototypes,
4000 which can conflict with char $ac_func(); below. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4022 eval "ac_cv_func_$ac_func=yes"
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4027 eval "ac_cv_func_$ac_func=no"
4032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4033 echo "$ac_t""yes" 1>&6
4034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4035 cat >> confdefs.h <<EOF
4036 #define $ac_tr_func 1
4040 echo "$ac_t""no" 1>&6
4044 for ac_func in fp_class fp_class_d class
4046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_func" >&5
4048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4077 eval "ac_cv_func_$ac_func=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 eval "ac_cv_func_$ac_func=no"
4087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4090 cat >> confdefs.h <<EOF
4091 #define $ac_tr_func 1
4095 echo "$ac_t""no" 1>&6
4099 for ac_func in sigprocmask waitpid setsid fcvt
4101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4102 echo "configure:4103: checking for $ac_func" >&5
4103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char $ac_func(); below. */
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4119 /* The GNU C library defines this for functions which it implements
4120 to always fail with ENOSYS. Some functions are actually named
4121 something starting with __ and the normal name is an alias. */
4122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4132 eval "ac_cv_func_$ac_func=yes"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 eval "ac_cv_func_$ac_func=no"
4142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4145 cat >> confdefs.h <<EOF
4146 #define $ac_tr_func 1
4150 echo "$ac_t""no" 1>&6
4154 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
4155 echo "configure:4156: checking for snprintf" >&5
4156 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char snprintf(); below. */
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4172 /* The GNU C library defines this for functions which it implements
4173 to always fail with ENOSYS. Some functions are actually named
4174 something starting with __ and the normal name is an alias. */
4175 #if defined (__stub_snprintf) || defined (__stub___snprintf)
4183 if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4185 eval "ac_cv_func_snprintf=yes"
4187 echo "configure: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4190 eval "ac_cv_func_snprintf=no"
4195 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_SNPRINTF 1
4202 echo "$ac_t""no" 1>&6
4203 SNPRINTF='snprintf.o'
4207 echo $ac_n "checking for isinf""... $ac_c" 1>&6
4208 echo "configure:4209: checking for isinf" >&5
4209 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 /* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char isinf(); below. */
4218 /* Override any gcc2 internal prototype to avoid an error. */
4219 /* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4225 /* The GNU C library defines this for functions which it implements
4226 to always fail with ENOSYS. Some functions are actually named
4227 something starting with __ and the normal name is an alias. */
4228 #if defined (__stub_isinf) || defined (__stub___isinf)
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4238 eval "ac_cv_func_isinf=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_func_isinf=no"
4248 if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_ISINF 1
4255 echo "$ac_t""no" 1>&6
4260 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
4261 echo "configure:4262: checking for getrusage" >&5
4262 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* System header to define __stub macros and hopefully few prototypes,
4269 which can conflict with char getrusage(); below. */
4271 /* Override any gcc2 internal prototype to avoid an error. */
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4278 /* The GNU C library defines this for functions which it implements
4279 to always fail with ENOSYS. Some functions are actually named
4280 something starting with __ and the normal name is an alias. */
4281 #if defined (__stub_getrusage) || defined (__stub___getrusage)
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4291 eval "ac_cv_func_getrusage=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_func_getrusage=no"
4301 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
4302 echo "$ac_t""yes" 1>&6
4303 cat >> confdefs.h <<\EOF
4304 #define HAVE_GETRUSAGE 1
4308 echo "$ac_t""no" 1>&6
4309 GETRUSAGE='getrusage.o'
4313 echo $ac_n "checking for srandom""... $ac_c" 1>&6
4314 echo "configure:4315: checking for srandom" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322 which can conflict with char srandom(); below. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4331 /* The GNU C library defines this for functions which it implements
4332 to always fail with ENOSYS. Some functions are actually named
4333 something starting with __ and the normal name is an alias. */
4334 #if defined (__stub_srandom) || defined (__stub___srandom)
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4344 eval "ac_cv_func_srandom=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_func_srandom=no"
4354 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_SRANDOM 1
4361 echo "$ac_t""no" 1>&6
4366 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
4367 echo "configure:4368: checking for gethostname" >&5
4368 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* System header to define __stub macros and hopefully few prototypes,
4375 which can conflict with char gethostname(); below. */
4377 /* Override any gcc2 internal prototype to avoid an error. */
4378 /* We use char because int might match the return type of a gcc2
4379 builtin and then its argument prototype would still apply. */
4384 /* The GNU C library defines this for functions which it implements
4385 to always fail with ENOSYS. Some functions are actually named
4386 something starting with __ and the normal name is an alias. */
4387 #if defined (__stub_gethostname) || defined (__stub___gethostname)
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4397 eval "ac_cv_func_gethostname=yes"
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4402 eval "ac_cv_func_gethostname=no"
4407 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 cat >> confdefs.h <<\EOF
4410 #define HAVE_GETHOSTNAME 1
4414 echo "$ac_t""no" 1>&6
4415 GETHOSTNAME='gethostname.o'
4419 echo $ac_n "checking for random""... $ac_c" 1>&6
4420 echo "configure:4421: checking for random" >&5
4421 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 /* System header to define __stub macros and hopefully few prototypes,
4428 which can conflict with char random(); below. */
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4437 /* The GNU C library defines this for functions which it implements
4438 to always fail with ENOSYS. Some functions are actually named
4439 something starting with __ and the normal name is an alias. */
4440 #if defined (__stub_random) || defined (__stub___random)
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4450 eval "ac_cv_func_random=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_func_random=no"
4460 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4462 cat >> confdefs.h <<\EOF
4463 #define HAVE_RANDOM 1
4467 echo "$ac_t""no" 1>&6
4468 MISSING_RANDOM='random.o'
4472 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4473 echo "configure:4474: checking for inet_aton" >&5
4474 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* System header to define __stub macros and hopefully few prototypes,
4481 which can conflict with char inet_aton(); below. */
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4490 /* The GNU C library defines this for functions which it implements
4491 to always fail with ENOSYS. Some functions are actually named
4492 something starting with __ and the normal name is an alias. */
4493 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4503 eval "ac_cv_func_inet_aton=yes"
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 eval "ac_cv_func_inet_aton=no"
4513 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_INET_ATON 1
4520 echo "$ac_t""no" 1>&6
4521 INET_ATON='inet_aton.o'
4525 echo $ac_n "checking for strerror""... $ac_c" 1>&6
4526 echo "configure:4527: checking for strerror" >&5
4527 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 /* System header to define __stub macros and hopefully few prototypes,
4534 which can conflict with char strerror(); below. */
4536 /* Override any gcc2 internal prototype to avoid an error. */
4537 /* We use char because int might match the return type of a gcc2
4538 builtin and then its argument prototype would still apply. */
4543 /* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
4546 #if defined (__stub_strerror) || defined (__stub___strerror)
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4556 eval "ac_cv_func_strerror=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 eval "ac_cv_func_strerror=no"
4566 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_STRERROR 1
4573 echo "$ac_t""no" 1>&6
4574 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
4579 echo $ac_n "checking for strdup""... $ac_c" 1>&6
4580 echo "configure:4581: checking for strdup" >&5
4581 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 /* System header to define __stub macros and hopefully few prototypes,
4588 which can conflict with char strdup(); below. */
4590 /* Override any gcc2 internal prototype to avoid an error. */
4591 /* We use char because int might match the return type of a gcc2
4592 builtin and then its argument prototype would still apply. */
4597 /* The GNU C library defines this for functions which it implements
4598 to always fail with ENOSYS. Some functions are actually named
4599 something starting with __ and the normal name is an alias. */
4600 #if defined (__stub_strdup) || defined (__stub___strdup)
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4610 eval "ac_cv_func_strdup=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_func_strdup=no"
4620 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_STRDUP 1
4627 echo "$ac_t""no" 1>&6
4628 STRDUP='../../utils/strdup.o'
4632 echo $ac_n "checking for strtol""... $ac_c" 1>&6
4633 echo "configure:4634: checking for strtol" >&5
4634 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* System header to define __stub macros and hopefully few prototypes,
4641 which can conflict with char strtol(); below. */
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4650 /* The GNU C library defines this for functions which it implements
4651 to always fail with ENOSYS. Some functions are actually named
4652 something starting with __ and the normal name is an alias. */
4653 #if defined (__stub_strtol) || defined (__stub___strtol)
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4663 eval "ac_cv_func_strtol=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_func_strtol=no"
4673 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 cat >> confdefs.h <<\EOF
4676 #define HAVE_STRTOL 1
4680 echo "$ac_t""no" 1>&6
4685 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
4686 echo "configure:4687: checking for strtoul" >&5
4687 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 /* System header to define __stub macros and hopefully few prototypes,
4694 which can conflict with char strtoul(); below. */
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4703 /* The GNU C library defines this for functions which it implements
4704 to always fail with ENOSYS. Some functions are actually named
4705 something starting with __ and the normal name is an alias. */
4706 #if defined (__stub_strtoul) || defined (__stub___strtoul)
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4716 eval "ac_cv_func_strtoul=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_func_strtoul=no"
4726 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 cat >> confdefs.h <<\EOF
4729 #define HAVE_STRTOUL 1
4733 echo "$ac_t""no" 1>&6
4738 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
4739 echo "configure:4740: checking for strcasecmp" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char strcasecmp(); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4769 eval "ac_cv_func_strcasecmp=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_func_strcasecmp=no"
4779 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 cat >> confdefs.h <<\EOF
4782 #define HAVE_STRCASECMP 1
4786 echo "$ac_t""no" 1>&6
4787 STRCASECMP='strcasecmp.o'
4791 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
4792 echo "configure:4793: checking for cbrt" >&5
4793 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* System header to define __stub macros and hopefully few prototypes,
4800 which can conflict with char cbrt(); below. */
4802 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4809 /* The GNU C library defines this for functions which it implements
4810 to always fail with ENOSYS. Some functions are actually named
4811 something starting with __ and the normal name is an alias. */
4812 #if defined (__stub_cbrt) || defined (__stub___cbrt)
4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4822 eval "ac_cv_func_cbrt=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 eval "ac_cv_func_cbrt=no"
4832 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 cat >> confdefs.h <<\EOF
4839 echo "$ac_t""no" 1>&6
4840 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
4841 echo "configure:4842: checking for cbrt in -lm" >&5
4842 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 ac_save_LIBS="$LIBS"
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* Override any gcc2 internal prototype to avoid an error. */
4852 /* We use char because int might match the return type of a gcc2
4853 builtin and then its argument prototype would still apply. */
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4862 eval "ac_cv_lib_$ac_lib_var=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_lib_$ac_lib_var=no"
4870 LIBS="$ac_save_LIBS"
4873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 cat >> confdefs.h <<\EOF
4880 echo "$ac_t""no" 1>&6
4885 echo $ac_n "checking for rint""... $ac_c" 1>&6
4886 echo "configure:4887: checking for rint" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char rint(); below. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4903 /* The GNU C library defines this for functions which it implements
4904 to always fail with ENOSYS. Some functions are actually named
4905 something starting with __ and the normal name is an alias. */
4906 #if defined (__stub_rint) || defined (__stub___rint)
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4916 eval "ac_cv_func_rint=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4921 eval "ac_cv_func_rint=no"
4926 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 cat >> confdefs.h <<\EOF
4933 echo "$ac_t""no" 1>&6
4935 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a
4937 if [ -r /lib/pa1.1/libm.a ] ; then
4938 SPECIALMATHLIB="-L /lib/pa1.1 -lm"
4940 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
4941 echo "configure:4942: checking for rint in -lm" >&5
4942 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 ac_save_LIBS="$LIBS"
4947 LIBS="-lm $SPECIALMATHLIB $LIBS"
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 cat >> confdefs.h <<\EOF
4980 echo "$ac_t""no" 1>&6
4988 if test "$USE_X" = true; then
4990 ice_save_LIBS="$LIBS"
4991 ice_save_CFLAGS="$CFLAGS"
4992 ice_save_CPPFLAGS="$CPPFLAGS"
4993 ice_save_LDFLAGS="$LDFLAGS"
4995 # If we find X, set shell vars x_includes and x_libraries to the
4996 # paths, otherwise set no_x=yes.
4997 # Uses ac_ vars as temps to allow command line to override cache and checks.
4998 # --without-x overrides everything else, but does not touch the cache.
4999 echo $ac_n "checking for X""... $ac_c" 1>&6
5000 echo "configure:5001: checking for X" >&5
5002 # Check whether --with-x or --without-x was given.
5003 if test "${with_x+set}" = set; then
5008 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5009 if test "x$with_x" = xno; then
5010 # The user explicitly disabled X.
5013 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5014 # Both variables are already set.
5017 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 # One or both of the vars are not set, and there is no cached value.
5021 ac_x_includes=NO ac_x_libraries=NO
5023 if mkdir conftestdir; then
5025 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5026 cat > Imakefile <<'EOF'
5028 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5030 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5032 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5034 for ac_extension in a so sl; do
5035 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5036 test -f $ac_im_libdir/libX11.$ac_extension; then
5037 ac_im_usrlibdir=$ac_im_libdir; break
5040 # Screen out bogus values from the imake configuration. They are
5041 # bogus both because they are the default anyway, and because
5042 # using them would break gcc on systems where it needs fixed includes.
5043 case "$ac_im_incroot" in
5045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5047 case "$ac_im_usrlibdir" in
5049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5056 if test "$ac_x_includes" = NO; then
5057 # Guess where to find include files, by looking for this one X11 .h file.
5058 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5060 # First, try using that file with no special directory specified.
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 #include <$x_direct_test_include>
5066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5067 { (eval echo configure:5068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5068 ac_err=`grep -v '^ *+' conftest.out`
5069 if test -z "$ac_err"; then
5071 # We can compile using X headers with no special include directory.
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 # Look for the header file in a standard set of common directories.
5079 # Check X11 before X11Rn because it is often a symlink to the current release.
5082 /usr/X11R6/include \
5083 /usr/X11R5/include \
5084 /usr/X11R4/include \
5087 /usr/include/X11R6 \
5088 /usr/include/X11R5 \
5089 /usr/include/X11R4 \
5091 /usr/local/X11/include \
5092 /usr/local/X11R6/include \
5093 /usr/local/X11R5/include \
5094 /usr/local/X11R4/include \
5096 /usr/local/include/X11 \
5097 /usr/local/include/X11R6 \
5098 /usr/local/include/X11R5 \
5099 /usr/local/include/X11R4 \
5103 /usr/XFree86/include/X11 \
5106 /usr/local/include \
5107 /usr/unsupported/include \
5108 /usr/athena/include \
5109 /usr/local/x11r5/include \
5110 /usr/lpp/Xamples/include \
5112 /usr/openwin/include \
5113 /usr/openwin/share/include \
5116 if test -r "$ac_dir/$x_direct_test_include"; then
5117 ac_x_includes=$ac_dir
5123 fi # $ac_x_includes = NO
5125 if test "$ac_x_libraries" = NO; then
5126 # Check for the libraries.
5128 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5129 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5131 # See if we find them without any special options.
5132 # Don't add to $LIBS permanently.
5133 ac_save_LIBS="$LIBS"
5134 LIBS="-l$x_direct_test_library $LIBS"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5140 ${x_direct_test_function}()
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5145 LIBS="$ac_save_LIBS"
5146 # We can link X programs with no special library path.
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 LIBS="$ac_save_LIBS"
5153 # First see if replacing the include by lib works.
5154 # Check X11 before X11Rn because it is often a symlink to the current release.
5155 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5166 /usr/local/X11/lib \
5167 /usr/local/X11R6/lib \
5168 /usr/local/X11R5/lib \
5169 /usr/local/X11R4/lib \
5171 /usr/local/lib/X11 \
5172 /usr/local/lib/X11R6 \
5173 /usr/local/lib/X11R5 \
5174 /usr/local/lib/X11R4 \
5178 /usr/XFree86/lib/X11 \
5182 /usr/unsupported/lib \
5184 /usr/local/x11r5/lib \
5185 /usr/lpp/Xamples/lib \
5189 /usr/openwin/share/lib \
5192 for ac_extension in a so sl; do
5193 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5194 ac_x_libraries=$ac_dir
5201 fi # $ac_x_libraries = NO
5203 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5204 # Didn't find X anywhere. Cache the known absence of X.
5205 ac_cv_have_x="have_x=no"
5207 # Record where we found X for the cache.
5208 ac_cv_have_x="have_x=yes \
5209 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5213 eval "$ac_cv_have_x"
5216 if test "$have_x" != yes; then
5217 echo "$ac_t""$have_x" 1>&6
5220 # If each of the values was on the command line, it overrides each guess.
5221 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5222 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5223 # Update the cache value to reflect the command line values.
5224 ac_cv_have_x="have_x=yes \
5225 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5226 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5229 if test "$no_x" = yes; then
5230 # Not all programs may use this symbol, but it does not hurt to define it.
5231 cat >> confdefs.h <<\EOF
5232 #define X_DISPLAY_MISSING 1
5235 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5237 if test -n "$x_includes"; then
5238 X_CFLAGS="$X_CFLAGS -I$x_includes"
5241 # It would also be nice to do this for all -L options, not just this one.
5242 if test -n "$x_libraries"; then
5243 X_LIBS="$X_LIBS -L$x_libraries"
5244 # For Solaris; some versions of Sun CC require a space after -R and
5245 # others require no space. Words are not sufficient . . . .
5246 case "`(uname -sr) 2>/dev/null`" in
5248 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5249 echo "configure:5250: checking whether -R must be followed by a space" >&5
5250 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5269 if test $ac_R_nospace = yes; then
5270 echo "$ac_t""no" 1>&6
5271 X_LIBS="$X_LIBS -R$x_libraries"
5273 LIBS="$ac_xsave_LIBS -R $x_libraries"
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5292 if test $ac_R_space = yes; then
5293 echo "$ac_t""yes" 1>&6
5294 X_LIBS="$X_LIBS -R $x_libraries"
5296 echo "$ac_t""neither works" 1>&6
5299 LIBS="$ac_xsave_LIBS"
5303 # Check for system-dependent libraries X programs must link with.
5304 # Do this before checking for the system-independent R6 libraries
5305 # (-lICE), since we may need -lsocket or whatever for X linking.
5307 if test "$ISC" = yes; then
5308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5310 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5311 # libraries were built with DECnet support. And karl@cs.umb.edu says
5312 # the Alpha needs dnet_stub (dnet does not exist).
5313 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5314 echo "configure:5315: checking for dnet_ntoa in -ldnet" >&5
5315 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 ac_save_LIBS="$LIBS"
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5333 if { (eval echo configure:5334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5335 eval "ac_cv_lib_$ac_lib_var=yes"
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 eval "ac_cv_lib_$ac_lib_var=no"
5343 LIBS="$ac_save_LIBS"
5346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5347 echo "$ac_t""yes" 1>&6
5348 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5350 echo "$ac_t""no" 1>&6
5353 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5354 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5355 echo "configure:5356: checking for dnet_ntoa in -ldnet_stub" >&5
5356 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 ac_save_LIBS="$LIBS"
5361 LIBS="-ldnet_stub $LIBS"
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 /* Override any gcc2 internal prototype to avoid an error. */
5366 /* We use char because int might match the return type of a gcc2
5367 builtin and then its argument prototype would still apply. */
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5376 eval "ac_cv_lib_$ac_lib_var=yes"
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 eval "ac_cv_lib_$ac_lib_var=no"
5384 LIBS="$ac_save_LIBS"
5387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5388 echo "$ac_t""yes" 1>&6
5389 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5391 echo "$ac_t""no" 1>&6
5396 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5397 # to get the SysV transport functions.
5398 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5400 # The nsl library prevents programs from opening the X display
5401 # on Irix 5.2, according to dickey@clark.net.
5402 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5403 echo "configure:5404: checking for gethostbyname" >&5
5404 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5410 /* System header to define __stub macros and hopefully few prototypes,
5411 which can conflict with char gethostbyname(); below. */
5413 /* Override any gcc2 internal prototype to avoid an error. */
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5416 char gethostbyname();
5420 /* The GNU C library defines this for functions which it implements
5421 to always fail with ENOSYS. Some functions are actually named
5422 something starting with __ and the normal name is an alias. */
5423 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5433 eval "ac_cv_func_gethostbyname=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_func_gethostbyname=no"
5443 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5444 echo "$ac_t""yes" 1>&6
5447 echo "$ac_t""no" 1>&6
5450 if test $ac_cv_func_gethostbyname = no; then
5451 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5452 echo "configure:5453: checking for gethostbyname in -lnsl" >&5
5453 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 ac_save_LIBS="$LIBS"
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5465 char gethostbyname();
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5473 eval "ac_cv_lib_$ac_lib_var=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_lib_$ac_lib_var=no"
5481 LIBS="$ac_save_LIBS"
5484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5488 echo "$ac_t""no" 1>&6
5493 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5494 # socket/setsockopt and other routines are undefined under SCO ODT
5495 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5496 # on later versions), says simon@lia.di.epfl.ch: it contains
5497 # gethostby* variants that don't use the nameserver (or something).
5498 # -lsocket must be given before -lnsl if both are needed.
5499 # We assume that if connect needs -lnsl, so does gethostbyname.
5500 echo $ac_n "checking for connect""... $ac_c" 1>&6
5501 echo "configure:5502: checking for connect" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char connect(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_connect) || defined (__stub___connect)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5531 eval "ac_cv_func_connect=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_connect=no"
5541 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5545 echo "$ac_t""no" 1>&6
5548 if test $ac_cv_func_connect = no; then
5549 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5550 echo "configure:5551: checking for connect in -lsocket" >&5
5551 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 ac_save_LIBS="$LIBS"
5556 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5571 eval "ac_cv_lib_$ac_lib_var=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_lib_$ac_lib_var=no"
5579 LIBS="$ac_save_LIBS"
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5586 echo "$ac_t""no" 1>&6
5591 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5592 echo $ac_n "checking for remove""... $ac_c" 1>&6
5593 echo "configure:5594: checking for remove" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char remove(); below. */
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_remove) || defined (__stub___remove)
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5623 eval "ac_cv_func_remove=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 eval "ac_cv_func_remove=no"
5633 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5637 echo "$ac_t""no" 1>&6
5640 if test $ac_cv_func_remove = no; then
5641 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5642 echo "configure:5643: checking for remove in -lposix" >&5
5643 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 ac_save_LIBS="$LIBS"
5648 LIBS="-lposix $LIBS"
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5663 eval "ac_cv_lib_$ac_lib_var=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_lib_$ac_lib_var=no"
5671 LIBS="$ac_save_LIBS"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5678 echo "$ac_t""no" 1>&6
5683 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5684 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5685 echo "configure:5686: checking for shmat" >&5
5686 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5692 /* System header to define __stub macros and hopefully few prototypes,
5693 which can conflict with char shmat(); below. */
5695 /* Override any gcc2 internal prototype to avoid an error. */
5696 /* We use char because int might match the return type of a gcc2
5697 builtin and then its argument prototype would still apply. */
5702 /* The GNU C library defines this for functions which it implements
5703 to always fail with ENOSYS. Some functions are actually named
5704 something starting with __ and the normal name is an alias. */
5705 #if defined (__stub_shmat) || defined (__stub___shmat)
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5715 eval "ac_cv_func_shmat=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_func_shmat=no"
5725 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5726 echo "$ac_t""yes" 1>&6
5729 echo "$ac_t""no" 1>&6
5732 if test $ac_cv_func_shmat = no; then
5733 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5734 echo "configure:5735: checking for shmat in -lipc" >&5
5735 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 ac_save_LIBS="$LIBS"
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5755 eval "ac_cv_lib_$ac_lib_var=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5760 eval "ac_cv_lib_$ac_lib_var=no"
5763 LIBS="$ac_save_LIBS"
5766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5767 echo "$ac_t""yes" 1>&6
5768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5770 echo "$ac_t""no" 1>&6
5776 # Check for libraries that X11R6 Xt/Xaw programs need.
5777 ac_save_LDFLAGS="$LDFLAGS"
5778 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5779 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5780 # check for ICE first), but we must link in the order -lSM -lICE or
5781 # we get undefined symbols. So assume we have SM if we have ICE.
5782 # These have to be linked with before -lX11, unlike the other
5783 # libraries we check for below, so use a different variable.
5784 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5785 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5786 echo "configure:5787: checking for IceConnectionNumber in -lICE" >&5
5787 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 ac_save_LIBS="$LIBS"
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796 /* Override any gcc2 internal prototype to avoid an error. */
5797 /* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5799 char IceConnectionNumber();
5802 IceConnectionNumber()
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5807 eval "ac_cv_lib_$ac_lib_var=yes"
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 eval "ac_cv_lib_$ac_lib_var=no"
5815 LIBS="$ac_save_LIBS"
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5822 echo "$ac_t""no" 1>&6
5825 LDFLAGS="$ac_save_LDFLAGS"
5830 LIBS="$LIBS $X_EXTRA_LIBS"
5831 CFLAGS="$CFLAGS $X_CFLAGS"
5832 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5833 LDFLAGS="$LDFLAGS $X_LIBS"
5837 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5838 echo "configure:5839: checking for XOpenDisplay in -lX11" >&5
5839 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 ac_save_LIBS="$LIBS"
5844 LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5851 char XOpenDisplay();
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5859 eval "ac_cv_lib_$ac_lib_var=yes"
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5864 eval "ac_cv_lib_$ac_lib_var=no"
5867 LIBS="$ac_save_LIBS"
5870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5874 echo "$ac_t""no" 1>&6
5877 if test "$X11_LIBS" = ""; then
5878 echo "configure: warning: The X11 library '-lX11' could not be found.
5879 Please use the configure options '--x-includes=DIR'
5880 and '--x-libraries=DIR' to specify the X location.
5881 See the file 'config.log' for further diagnostics." 1>&2
5887 LIBS="$ice_save_LIBS"
5888 CFLAGS="$ice_save_CFLAGS"
5889 CPPFLAGS="$ice_save_CPPFLAGS"
5890 LDFLAGS="$ice_save_LDFLAGS"
5894 if test "$USE_TCL" = "true"
5897 ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
5898 echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
5899 echo "configure:5900: checking for tcl.h" >&5
5900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5909 { (eval echo configure:5910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5910 ac_err=`grep -v '^ *+' conftest.out`
5911 if test -z "$ac_err"; then
5913 eval "ac_cv_header_$ac_safe=yes"
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5919 eval "ac_cv_header_$ac_safe=no"
5923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5927 echo "$ac_t""no" 1>&6
5930 if test "$TCL_INCDIR" = "no"; then
5931 echo "configure: warning: tcl support disabled; tcl.h missing" 1>&2
5936 if test "$USE_TCL" = "true"; then
5938 tcl_libs="tcl8.0 tcl80 tcl7.6 tcl76 tcl"
5939 for tcl_lib in $tcl_libs; do
5940 if test -z "$TCL_LIB"; then
5941 echo $ac_n "checking for main in -l$tcl_lib""... $ac_c" 1>&6
5942 echo "configure:5943: checking for main in -l$tcl_lib" >&5
5943 ac_lib_var=`echo $tcl_lib'_'main | sed 'y%./+-%__p_%'`
5944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 ac_save_LIBS="$LIBS"
5948 LIBS="-l$tcl_lib $LIBS"
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5959 eval "ac_cv_lib_$ac_lib_var=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_lib_$ac_lib_var=no"
5967 LIBS="$ac_save_LIBS"
5970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5974 echo "$ac_t""no" 1>&6
5979 if test -z "$TCL_LIB"; then
5980 echo "configure: warning: tcl support disabled; Tcl library missing" 1>&2
5989 if test "$USE_TCL" = "true"
5991 ice_save_LIBS="$LIBS"
5992 ice_save_CFLAGS="$CFLAGS"
5993 ice_save_CPPFLAGS="$CPPFLAGS"
5994 ice_save_LDFLAGS="$LDFLAGS"
5996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5999 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
6000 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6001 echo "configure:6002: checking for tk.h" >&5
6002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out`
6013 if test -z "$ac_err"; then
6015 eval "ac_cv_header_$ac_safe=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_header_$ac_safe=no"
6025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6026 echo "$ac_t""yes" 1>&6
6029 echo "$ac_t""no" 1>&6
6032 if test "$TK_INCDIR" = "no"; then
6033 echo "configure: warning: tcl support disabled; tk.h missing" 1>&2
6037 LIBS="$ice_save_LIBS"
6038 CFLAGS="$ice_save_CFLAGS"
6039 CPPFLAGS="$ice_save_CPPFLAGS"
6040 LDFLAGS="$ice_save_LDFLAGS"
6043 if test "$USE_TCL" = "true"
6045 ice_save_LIBS="$LIBS"
6046 ice_save_CFLAGS="$CFLAGS"
6047 ice_save_CPPFLAGS="$CPPFLAGS"
6048 ice_save_LDFLAGS="$LDFLAGS"
6050 LIBS="$TCL_LIB $X_PRE_LIBS $X11_LIBS $X_EXTRA_LIBS $LIBS"
6051 CFLAGS="$CFLAGS $X_CFLAGS"
6052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6053 LDFLAGS="$LDFLAGS $X_LIBS"
6056 tk_libs="tk8.0 tk80 tk4.2 tk42 tk"
6057 for tk_lib in $tk_libs; do
6058 if test -z "$TK_LIB"; then
6059 echo $ac_n "checking for main in -l$tk_lib""... $ac_c" 1>&6
6060 echo "configure:6061: checking for main in -l$tk_lib" >&5
6061 ac_lib_var=`echo $tk_lib'_'main | sed 'y%./+-%__p_%'`
6062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 ac_save_LIBS="$LIBS"
6066 LIBS="-l$tk_lib $LIBS"
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6077 eval "ac_cv_lib_$ac_lib_var=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 eval "ac_cv_lib_$ac_lib_var=no"
6085 LIBS="$ac_save_LIBS"
6088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6089 echo "$ac_t""yes" 1>&6
6092 echo "$ac_t""no" 1>&6
6097 if test -z "$TK_LIB"; then
6098 echo "configure: warning: tk support disabled; Tk library missing" 1>&2
6106 LIBS="$ice_save_LIBS"
6107 CFLAGS="$ice_save_CFLAGS"
6108 CPPFLAGS="$ice_save_CPPFLAGS"
6109 LDFLAGS="$ice_save_LDFLAGS"
6113 cat > confcache <<\EOF
6114 # This file is a shell script that caches the results of configure
6115 # tests run on this system so they can be shared between configure
6116 # scripts and configure runs. It is not useful on other systems.
6117 # If it contains results you don't want to keep, you may remove or edit it.
6119 # By default, configure uses ./config.cache as the cache file,
6120 # creating it if it does not exist already. You can give configure
6121 # the --cache-file=FILE option to use a different cache file; that is
6122 # what configure does when it calls configure scripts in
6123 # subdirectories, so they share the cache.
6124 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6125 # config.status only pays attention to the cache file if you give it the
6126 # --recheck option to rerun configure.
6129 # The following way of writing the cache mishandles newlines in values,
6130 # but we know of no workaround that is simple, portable, and efficient.
6131 # So, don't put newlines in cache variables' values.
6132 # Ultrix sh set writes to stderr and can't be redirected directly,
6133 # and sets the high bit in the cache file unless we assign to the vars.
6135 case `(ac_space=' '; set) 2>&1` in
6137 # `set' does not quote correctly, so add quotes (double-quote substitution
6138 # turns \\\\ into \\, and sed turns \\ into \).
6140 -e "s/'/'\\\\''/g" \
6141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6144 # `set' quotes correctly as required by POSIX, so do not add quotes.
6145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6148 if cmp -s $cache_file confcache; then
6151 if test -w $cache_file; then
6152 echo "updating cache $cache_file"
6153 cat confcache > $cache_file
6155 echo "not updating unwritable cache $cache_file"
6160 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6163 # Let make expand exec_prefix.
6164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6166 # Any assignment to VPATH causes Sun make to only execute
6167 # the first set of double-colon rules, so remove it if not needed.
6168 # If there is a colon in the path, we need to keep it.
6169 if test "x$srcdir" = x.; then
6170 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6173 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6175 DEFS=-DHAVE_CONFIG_H
6177 # Without the "./", some shells look in PATH for config.status.
6178 : ${CONFIG_STATUS=./config.status}
6180 echo creating $CONFIG_STATUS
6181 rm -f $CONFIG_STATUS
6182 cat > $CONFIG_STATUS <<EOF
6184 # Generated automatically by configure.
6185 # Run this file to recreate the current configuration.
6186 # This directory was configured as follows,
6187 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6189 # $0 $ac_configure_args
6191 # Compiler output produced by configure, useful for debugging
6192 # configure, is in ./config.log if it exists.
6194 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6197 case "\$ac_option" in
6198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6199 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6200 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6201 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6202 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6204 -help | --help | --hel | --he | --h)
6205 echo "\$ac_cs_usage"; exit 0 ;;
6206 *) echo "\$ac_cs_usage"; exit 1 ;;
6210 ac_given_srcdir=$srcdir
6212 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 interfaces/ecpg/lib/Makefile include/version.h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6214 cat >> $CONFIG_STATUS <<EOF
6216 # Protect against being on the right side of a sed subst in config.status.
6217 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6218 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6221 s%@CFLAGS@%$CFLAGS%g
6222 s%@CPPFLAGS@%$CPPFLAGS%g
6223 s%@CXXFLAGS@%$CXXFLAGS%g
6225 s%@LDFLAGS@%$LDFLAGS%g
6227 s%@exec_prefix@%$exec_prefix%g
6228 s%@prefix@%$prefix%g
6229 s%@program_transform_name@%$program_transform_name%g
6230 s%@bindir@%$bindir%g
6231 s%@sbindir@%$sbindir%g
6232 s%@libexecdir@%$libexecdir%g
6233 s%@datadir@%$datadir%g
6234 s%@sysconfdir@%$sysconfdir%g
6235 s%@sharedstatedir@%$sharedstatedir%g
6236 s%@localstatedir@%$localstatedir%g
6237 s%@libdir@%$libdir%g
6238 s%@includedir@%$includedir%g
6239 s%@oldincludedir@%$oldincludedir%g
6240 s%@infodir@%$infodir%g
6241 s%@mandir@%$mandir%g
6243 s%@host_alias@%$host_alias%g
6244 s%@host_cpu@%$host_cpu%g
6245 s%@host_vendor@%$host_vendor%g
6246 s%@host_os@%$host_os%g
6248 s%@PORTNAME@%$PORTNAME%g
6250 s%@CC_VERSION@%$CC_VERSION%g
6253 s%@SHARED_LIB@%$SHARED_LIB%g
6254 s%@DLSUFFIX@%$DLSUFFIX%g
6255 s%@DL_LIB@%$DL_LIB%g
6256 s%@USE_TCL@%$USE_TCL%g
6257 s%@USE_PERL@%$USE_PERL%g
6258 s%@MULTIBYTE@%$MULTIBYTE%g
6260 s%@HAVECXX@%$HAVECXX%g
6261 s%@INSTALL@%$INSTALL%g
6262 s%@INSTLOPTS@%$INSTLOPTS%g
6263 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
6264 s%@INSTL_SHLIB_OPTS@%$INSTL_SHLIB_OPTS%g
6265 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
6266 s%@DASH_N@%$DASH_N%g
6267 s%@BACKSLASH_C@%$BACKSLASH_C%g
6269 s%@LEXLIB@%$LEXLIB%g
6271 s%@SET_MAKE@%$SET_MAKE%g
6272 s%@RANLIB@%$RANLIB%g
6281 s%@TRARGS@%$TRARGS%g
6283 s%@YFLAGS@%$YFLAGS%g
6286 s%@LIBOBJS@%$LIBOBJS%g
6287 s%@SNPRINTF@%$SNPRINTF%g
6289 s%@GETRUSAGE@%$GETRUSAGE%g
6290 s%@SRANDOM@%$SRANDOM%g
6291 s%@GETHOSTNAME@%$GETHOSTNAME%g
6292 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
6293 s%@INET_ATON@%$INET_ATON%g
6294 s%@STRERROR@%$STRERROR%g
6295 s%@STRERROR2@%$STRERROR2%g
6296 s%@STRDUP@%$STRDUP%g
6297 s%@STRTOL@%$STRTOL%g
6298 s%@STRTOUL@%$STRTOUL%g
6299 s%@STRCASECMP@%$STRCASECMP%g
6300 s%@X_CFLAGS@%$X_CFLAGS%g
6301 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6302 s%@X_LIBS@%$X_LIBS%g
6303 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6304 s%@X11_LIBS@%$X11_LIBS%g
6305 s%@TCL_LIB@%$TCL_LIB%g
6306 s%@TK_LIB@%$TK_LIB%g
6311 cat >> $CONFIG_STATUS <<\EOF
6313 # Split the substitutions into bite-sized pieces for seds with
6314 # small command number limits, like on Digital OSF/1 and HP-UX.
6315 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6316 ac_file=1 # Number of current file.
6317 ac_beg=1 # First line for current file.
6318 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6321 while $ac_more_lines; do
6322 if test $ac_beg -gt 1; then
6323 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6325 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6327 if test ! -s conftest.s$ac_file; then
6329 rm -f conftest.s$ac_file
6331 if test -z "$ac_sed_cmds"; then
6332 ac_sed_cmds="sed -f conftest.s$ac_file"
6334 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6336 ac_file=`expr $ac_file + 1`
6338 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6341 if test -z "$ac_sed_cmds"; then
6346 cat >> $CONFIG_STATUS <<EOF
6348 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 interfaces/ecpg/lib/Makefile include/version.h"}
6350 cat >> $CONFIG_STATUS <<\EOF
6351 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6354 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6355 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6356 *) ac_file_in="${ac_file}.in" ;;
6359 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6361 # Remove last slash and all that follows it. Not all systems have dirname.
6362 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6363 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6364 # The file is in a subdirectory.
6365 test ! -d "$ac_dir" && mkdir "$ac_dir"
6366 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6367 # A "../" for each directory in $ac_dir_suffix.
6368 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6370 ac_dir_suffix= ac_dots=
6373 case "$ac_given_srcdir" in
6375 if test -z "$ac_dots"; then top_srcdir=.
6376 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6377 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6379 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6380 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6384 echo creating "$ac_file"
6386 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6388 *Makefile*) ac_comsub="1i\\
6389 # $configure_input" ;;
6393 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6395 s%@configure_input@%$configure_input%g
6396 s%@srcdir@%$srcdir%g
6397 s%@top_srcdir@%$top_srcdir%g
6398 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6402 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6403 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6405 # ac_d sets the value in "#define NAME VALUE" lines.
6406 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6407 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6410 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6411 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6412 ac_uB='\([ ]\)%\1#\2define\3'
6415 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6416 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6417 ac_eB='$%\1#\2define\3'
6421 if test "${CONFIG_HEADERS+set}" != set; then
6423 cat >> $CONFIG_STATUS <<EOF
6424 CONFIG_HEADERS="include/config.h"
6426 cat >> $CONFIG_STATUS <<\EOF
6428 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6431 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6432 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6433 *) ac_file_in="${ac_file}.in" ;;
6436 echo creating $ac_file
6438 rm -f conftest.frag conftest.in conftest.out
6439 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6440 cat $ac_file_inputs > conftest.in
6444 # Transform confdefs.h into a sed script conftest.vals that substitutes
6445 # the proper values into config.h.in to produce config.h. And first:
6446 # Protect against being on the right side of a sed subst in config.status.
6447 # Protect against being in an unquoted here document in config.status.
6449 cat > conftest.hdr <<\EOF
6452 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6456 sed -n -f conftest.hdr confdefs.h > conftest.vals
6459 # This sed command replaces #undef with comments. This is necessary, for
6460 # example, in the case of _POSIX_SOURCE, which is predefined and required
6461 # on some systems where configure will not decide to define it.
6462 cat >> conftest.vals <<\EOF
6463 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6466 # Break up conftest.vals because some shells have a limit on
6467 # the size of here documents, and old seds have small limits too.
6472 ac_lines=`grep -c . conftest.vals`
6473 # grep -c gives empty output for an empty file on some AIX systems.
6474 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6475 # Write a limited-size here document to conftest.frag.
6476 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6477 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6479 sed -f conftest.frag conftest.in > conftest.out
6481 mv conftest.out conftest.in
6483 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6485 mv conftest.tail conftest.vals
6489 cat >> $CONFIG_STATUS <<\EOF
6490 rm -f conftest.frag conftest.h
6491 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6492 cat conftest.in >> conftest.h
6494 if cmp -s $ac_file conftest.h 2>/dev/null; then
6495 echo "$ac_file is unchanged"
6498 # Remove last slash and all that follows it. Not all systems have dirname.
6499 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6501 # The file is in a subdirectory.
6502 test ! -d "$ac_dir" && mkdir "$ac_dir"
6505 mv conftest.h $ac_file
6511 cat >> $CONFIG_STATUS <<EOF
6512 ac_sources="backend/port/tas/${tas_file} backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
6513 ac_dests="backend/port/tas.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
6516 cat >> $CONFIG_STATUS <<\EOF
6517 srcdir=$ac_given_srcdir
6518 while test -n "$ac_sources"; do
6519 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6520 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6522 echo "linking $srcdir/$ac_source to $ac_dest"
6524 if test ! -r $srcdir/$ac_source; then
6525 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6529 # Make relative symlinks.
6530 # Remove last slash and all that follows it. Not all systems have dirname.
6531 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6532 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6533 # The dest file is in a subdirectory.
6534 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6535 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6536 # A "../" for each directory in $ac_dest_dir_suffix.
6537 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6539 ac_dest_dir_suffix= ac_dots=
6543 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6544 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6547 # Make a symlink if possible; otherwise try a hard link.
6548 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6549 ln $srcdir/$ac_source $ac_dest; then :
6551 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6555 cat >> $CONFIG_STATUS <<EOF
6558 cat >> $CONFIG_STATUS <<\EOF
6562 chmod +x $CONFIG_STATUS
6563 rm -fr confdefs* $ac_clean_files
6564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1