3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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:
15 --with-ssl[=DIR] where to look for SSL [compiler/linker default paths]
16 DIR points to the SSL installation [/usr/local/ssl]"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file
=.
/config.cache
31 program_transform_name
=s
,x
,x
,
39 bindir
='${exec_prefix}/bin'
40 sbindir
='${exec_prefix}/sbin'
41 libexecdir
='${exec_prefix}/libexec'
42 datadir
='${prefix}/share'
43 sysconfdir
='${prefix}/etc'
44 sharedstatedir
='${prefix}/com'
45 localstatedir
='${prefix}/var'
46 libdir
='${exec_prefix}/lib'
47 includedir
='${prefix}/include'
48 oldincludedir
='/usr/include'
49 infodir
='${prefix}/info'
50 mandir
='${prefix}/man'
52 # Initialize some other variables.
55 SHELL
=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
81 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
82 bindir
="$ac_optarg" ;;
84 -build |
--build |
--buil |
--bui |
--bu)
86 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
89 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
90 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
92 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
93 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
94 cache_file
="$ac_optarg" ;;
96 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
98 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
100 datadir
="$ac_optarg" ;;
102 -disable-* |
--disable-*)
103 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* |
--enable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
126 |
--exec |
--exe |
--ex)
127 ac_prev
=exec_prefix
;;
128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
130 |
--exec=* |
--exe=* |
--ex=*)
131 exec_prefix
="$ac_optarg" ;;
133 -gas |
--gas |
--ga |
--g)
134 # Obsolete; use --with-gas.
137 -help |
--help |
--hel |
--he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host |
--host |
--hos |
--ho)
194 -host=* |
--host=* |
--hos=* |
--ho=*)
197 -includedir |
--includedir |
--includedi |
--included |
--include \
198 |
--includ |
--inclu |
--incl |
--inc)
199 ac_prev
=includedir
;;
200 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
201 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
202 includedir
="$ac_optarg" ;;
204 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
206 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
207 infodir
="$ac_optarg" ;;
209 -libdir |
--libdir |
--libdi |
--libd)
211 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
212 libdir
="$ac_optarg" ;;
214 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
215 |
--libexe |
--libex |
--libe)
216 ac_prev
=libexecdir
;;
217 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
218 |
--libexe=* |
--libex=* |
--libe=*)
219 libexecdir
="$ac_optarg" ;;
221 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
222 |
--localstate |
--localstat |
--localsta |
--localst \
223 |
--locals |
--local |
--loca |
--loc |
--lo)
224 ac_prev
=localstatedir
;;
225 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
226 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
227 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
228 localstatedir
="$ac_optarg" ;;
230 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
232 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
233 mandir
="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
243 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
244 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
247 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
248 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
249 |
--oldin |
--oldi |
--old |
--ol |
--o)
250 ac_prev
=oldincludedir
;;
251 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
252 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
253 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
254 oldincludedir
="$ac_optarg" ;;
256 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
258 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
259 prefix
="$ac_optarg" ;;
261 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
262 |
--program-pre |
--program-pr |
--program-p)
263 ac_prev
=program_prefix
;;
264 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
265 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
266 program_prefix
="$ac_optarg" ;;
268 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
269 |
--program-suf |
--program-su |
--program-s)
270 ac_prev
=program_suffix
;;
271 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
272 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
273 program_suffix
="$ac_optarg" ;;
275 -program-transform-name |
--program-transform-name \
276 |
--program-transform-nam |
--program-transform-na \
277 |
--program-transform-n |
--program-transform- \
278 |
--program-transform |
--program-transfor \
279 |
--program-transfo |
--program-transf \
280 |
--program-trans |
--program-tran \
281 |
--progr-tra |
--program-tr |
--program-t)
282 ac_prev
=program_transform_name
;;
283 -program-transform-name=* |
--program-transform-name=* \
284 |
--program-transform-nam=* |
--program-transform-na=* \
285 |
--program-transform-n=* |
--program-transform-=* \
286 |
--program-transform=* |
--program-transfor=* \
287 |
--program-transfo=* |
--program-transf=* \
288 |
--program-trans=* |
--program-tran=* \
289 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
290 program_transform_name
="$ac_optarg" ;;
292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
293 |
-silent |
--silent |
--silen |
--sile |
--sil)
296 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
298 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
300 sbindir
="$ac_optarg" ;;
302 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
303 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
304 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
306 ac_prev
=sharedstatedir
;;
307 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
308 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
309 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
311 sharedstatedir
="$ac_optarg" ;;
313 -site |
--site |
--sit)
315 -site=* |
--site=* |
--sit=*)
318 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
320 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
321 srcdir
="$ac_optarg" ;;
323 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
324 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
325 ac_prev
=sysconfdir
;;
326 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
327 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
328 sysconfdir
="$ac_optarg" ;;
330 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
332 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
333 target
="$ac_optarg" ;;
335 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
338 -version |
--version |
--versio |
--versi |
--vers)
339 echo "configure generated by autoconf version 2.13"
343 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package
=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* |
--without-*)
356 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
369 |
--x-incl |
--x-inc |
--x-in |
--x-i)
370 ac_prev
=x_includes
;;
371 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
372 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
373 x_includes
="$ac_optarg" ;;
375 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
376 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
377 ac_prev
=x_libraries
;;
378 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
379 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
380 x_libraries
="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE
; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
431 |
--no-cr |
--no-c) ;;
432 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
433 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
434 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest
* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file
=lib
/urldata.h
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted
=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted
=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE
; then
485 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file
in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp
='$CPP $CPPFLAGS'
508 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling
=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
523 ac_n
= ac_c
='\c' ac_t
=
531 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
532 if test -f $ac_dir/install-sh
; then
534 ac_install_sh
="$ac_aux_dir/install-sh -c"
536 elif test -f $ac_dir/install.sh
; then
538 ac_install_sh
="$ac_aux_dir/install.sh -c"
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess
=$ac_aux_dir/config.guess
546 ac_config_sub
=$ac_aux_dir/config.sub
547 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
549 # Find a good install program. We prefer a C program (faster),
550 # so one script is as good as another. But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
567 for ac_dir
in $PATH; do
568 # Account for people who put trailing slashes in PATH elements.
570 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
572 # OSF1 and SCO ODT 3.0 have their own names for install.
573 # Don't use installbsd from OSF since it installs stuff as root
575 for ac_prog
in ginstall scoinst
install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
579 # AIX install. It has an incompatible calling convention.
582 ac_cv_path_install
="$ac_dir/$ac_prog -c"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL
="$ac_cv_path_install"
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL
="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
611 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
613 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
614 echo "configure:615: checking whether build environment is sane" >&5
617 echo timestamp
> conftestfile
618 # Do `set' in a subshell so we don't clobber the current shell's
619 # arguments. Must try -L first in case configure is actually a
620 # symlink; some systems play weird games with the mod time of symlinks
621 # (eg FreeBSD returns the mod time of the symlink's containing
624 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
625 if test "$*" = "X"; then
627 set X
`ls -t $srcdir/configure conftestfile`
629 if test "$*" != "X $srcdir/configure conftestfile" \
630 && test "$*" != "X conftestfile $srcdir/configure"; then
632 # If neither matched, then we have a broken ls. This can happen
633 # if, for instance, CONFIG_SHELL is bash and it inherits a
634 # broken ls alias from the environment. This has actually
635 # happened. Such a system could not be considered "sane".
636 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
637 alias in your environment" 1>&2; exit 1; }
640 test "$2" = conftestfile
646 { echo "configure: error: newly created file is older than distributed files!
647 Check your system clock" 1>&2; exit 1; }
650 echo "$ac_t""yes" 1>&6
651 if test "$program_transform_name" = s
,x
,x
,; then
652 program_transform_name
=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED
> conftestsed
656 s
,\\,\\\\,g
; s
,\$
,$$
,g
658 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE
&&
662 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE
&&
665 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
670 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
671 echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
672 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
673 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftestmake
<<\EOF
678 @
echo 'ac_maketemp="${MAKE}"'
680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
681 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
682 if test -n "$ac_maketemp"; then
683 eval ac_cv_prog_make_
${ac_make}_set
=yes
685 eval ac_cv_prog_make_
${ac_make}_set
=no
689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
690 echo "$ac_t""yes" 1>&6
693 echo "$ac_t""no" 1>&6
694 SET_MAKE
="MAKE=${MAKE-make}"
702 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
703 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
705 cat >> confdefs.h
<<EOF
706 #define PACKAGE "$PACKAGE"
709 cat >> confdefs.h
<<EOF
710 #define VERSION "$VERSION"
715 missing_dir
=`cd $ac_aux_dir && pwd`
716 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
717 echo "configure:718: checking for working aclocal" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf. Sigh.
721 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
723 echo "$ac_t""found" 1>&6
725 ACLOCAL
="$missing_dir/missing aclocal"
726 echo "$ac_t""missing" 1>&6
729 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
730 echo "configure:731: checking for working autoconf" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
736 echo "$ac_t""found" 1>&6
738 AUTOCONF
="$missing_dir/missing autoconf"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working automake""... $ac_c" 1>&6
743 echo "configure:744: checking for working automake" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOMAKE
="$missing_dir/missing automake"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
756 echo "configure:757: checking for working autoheader" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
761 AUTOHEADER
=autoheader
762 echo "$ac_t""found" 1>&6
764 AUTOHEADER
="$missing_dir/missing autoheader"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
769 echo "configure:770: checking for working makeinfo" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
775 echo "$ac_t""found" 1>&6
777 MAKEINFO
="$missing_dir/missing makeinfo"
778 echo "$ac_t""missing" 1>&6
783 # Extract the first word of "gcc", so it can be a program name with args.
784 set dummy gcc
; ac_word
=$2
785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786 echo "configure:787: checking for $ac_word" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
790 if test -n "$CC"; then
791 ac_cv_prog_CC
="$CC" # Let the user override the test.
793 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
795 for ac_dir
in $ac_dummy; do
796 test -z "$ac_dir" && ac_dir
=.
797 if test -f $ac_dir/$ac_word; then
806 if test -n "$CC"; then
807 echo "$ac_t""$CC" 1>&6
809 echo "$ac_t""no" 1>&6
812 if test -z "$CC"; then
813 # Extract the first word of "cc", so it can be a program name with args.
814 set dummy cc
; ac_word
=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$CC"; then
821 ac_cv_prog_CC
="$CC" # Let the user override the test.
823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
826 for ac_dir
in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir
=.
828 if test -f $ac_dir/$ac_word; then
829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
838 if test $ac_prog_rejected = yes; then
839 # We found a bogon in the path, so make sure we never use it.
840 set dummy
$ac_cv_prog_CC
842 if test $# -gt 0; then
843 # We chose a different compiler from the bogus one.
844 # However, it has the same basename, so the bogon will be chosen
845 # first if we set CC to just the basename; use the full file name.
847 set dummy
"$ac_dir/$ac_word" "$@"
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
864 # Extract the first word of "cl", so it can be a program name with args.
865 set dummy cl
; ac_word
=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$CC"; then
872 ac_cv_prog_CC
="$CC" # Let the user override the test.
874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
876 for ac_dir
in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir
=.
878 if test -f $ac_dir/$ac_word; then
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
903 ac_cpp
='$CPP $CPPFLAGS'
904 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
905 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
906 cross_compiling
=$ac_cv_prog_cc_cross
908 cat > conftest.
$ac_ext << EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 if { (eval echo configure
:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
916 ac_cv_prog_cc_works
=yes
917 # If we can't run a trivial program, we are probably using a cross compiler.
918 if (.
/conftest
; exit) 2>/dev
/null
; then
919 ac_cv_prog_cc_cross
=no
921 ac_cv_prog_cc_cross
=yes
924 echo "configure: failed program was:" >&5
925 cat conftest.
$ac_ext >&5
926 ac_cv_prog_cc_works
=no
930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931 ac_cpp
='$CPP $CPPFLAGS'
932 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934 cross_compiling
=$ac_cv_prog_cc_cross
936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
937 if test $ac_cv_prog_cc_works = no
; then
938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
943 cross_compiling
=$ac_cv_prog_cc_cross
945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
946 echo "configure:947: checking whether we are using GNU C" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 cat > conftest.c
<<EOF
955 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
964 if test $ac_cv_prog_gcc = yes; then
970 ac_test_CFLAGS
="${CFLAGS+set}"
971 ac_save_CFLAGS
="$CFLAGS"
973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 echo 'void f(){}' > conftest.c
979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
989 if test "$ac_test_CFLAGS" = set; then
990 CFLAGS
="$ac_save_CFLAGS"
991 elif test $ac_cv_prog_cc_g = yes; then
992 if test "$GCC" = yes; then
998 if test "$GCC" = yes; then
1005 # Find a good install program. We prefer a C program (faster),
1006 # so one script is as good as another. But avoid the broken or
1007 # incompatible versions:
1008 # SysV /etc/install, /usr/sbin/install
1009 # SunOS /usr/etc/install
1010 # IRIX /sbin/install
1012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1015 # ./install, which can be erroneously created by make from ./install.sh.
1016 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1017 echo "configure:1018: checking for a BSD compatible install" >&5
1018 if test -z "$INSTALL"; then
1019 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1023 for ac_dir
in $PATH; do
1024 # Account for people who put trailing slashes in PATH elements.
1026 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1028 # OSF1 and SCO ODT 3.0 have their own names for install.
1029 # Don't use installbsd from OSF since it installs stuff as root
1031 for ac_prog
in ginstall scoinst
install; do
1032 if test -f $ac_dir/$ac_prog; then
1033 if test $ac_prog = install &&
1034 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1035 # AIX install. It has an incompatible calling convention.
1038 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1049 if test "${ac_cv_path_install+set}" = set; then
1050 INSTALL
="$ac_cv_path_install"
1052 # As a last resort, use the slow shell script. We don't cache a
1053 # path for INSTALL within a source directory, because that will
1054 # break other packages using the cache if that directory is
1055 # removed, or if the path is relative.
1056 INSTALL
="$ac_install_sh"
1059 echo "$ac_t""$INSTALL" 1>&6
1061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1062 # It thinks the first close brace ends the variable substitution.
1063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1067 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1069 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether ${MAKE-make} sets \${MAKE}" >&5
1071 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1072 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 cat > conftestmake
<<\EOF
1077 @
echo 'ac_maketemp="${MAKE}"'
1079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1080 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1081 if test -n "$ac_maketemp"; then
1082 eval ac_cv_prog_make_
${ac_make}_set
=yes
1084 eval ac_cv_prog_make_
${ac_make}_set
=no
1088 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1089 echo "$ac_t""yes" 1>&6
1092 echo "$ac_t""no" 1>&6
1093 SET_MAKE
="MAKE=${MAKE-make}"
1097 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1098 echo "configure:1099: checking how to run the C preprocessor" >&5
1099 # On Suns, sometimes $CPP names a directory.
1100 if test -n "$CPP" && test -d "$CPP"; then
1103 if test -z "$CPP"; then
1104 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 # This must be in double quotes, not single quotes, because CPP may get
1108 # substituted into the Makefile and "${CC-cc}" will confuse make.
1110 # On the NeXT, cc -E runs the code through the compiler's parser,
1111 # not just through cpp.
1112 cat > conftest.
$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1119 { (eval echo configure
:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1121 if test -z "$ac_err"; then
1125 echo "configure: failed program was:" >&5
1126 cat conftest.
$ac_ext >&5
1128 CPP
="${CC-cc} -E -traditional-cpp"
1129 cat > conftest.
$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1135 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1136 { (eval echo configure
:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1137 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1138 if test -z "$ac_err"; then
1142 echo "configure: failed program was:" >&5
1143 cat conftest.
$ac_ext >&5
1145 CPP
="${CC-cc} -nologo -E"
1146 cat > conftest.
$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure
:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155 if test -z "$ac_err"; then
1159 echo "configure: failed program was:" >&5
1160 cat conftest.
$ac_ext >&5
1169 ac_cv_prog_CPP
="$CPP"
1171 CPP
="$ac_cv_prog_CPP"
1173 ac_cv_prog_CPP
="$CPP"
1175 echo "$ac_t""$CPP" 1>&6
1177 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1178 echo "configure:1179: checking for AIX" >&5
1179 cat > conftest.
$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1188 egrep "yes" >/dev
/null
2>&1; then
1190 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1191 #define _ALL_SOURCE 1
1196 echo "$ac_t""no" 1>&6
1203 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1204 echo "configure:1205: checking for gethostbyname" >&5
1205 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftest.
$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 /* System header to define __stub macros and hopefully few prototypes,
1212 which can conflict with char gethostbyname(); below. */
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1217 char gethostbyname();
1221 /* The GNU C library defines this for functions which it implements
1222 to always fail with ENOSYS. Some functions are actually named
1223 something starting with __ and the normal name is an alias. */
1224 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1232 if { (eval echo configure
:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1234 eval "ac_cv_func_gethostbyname=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1239 eval "ac_cv_func_gethostbyname=no"
1244 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1245 echo "$ac_t""yes" 1>&6
1248 echo "$ac_t""no" 1>&6
1249 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1250 echo "configure:1251: checking for gethostbyname in -lnsl" >&5
1251 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 ac_save_LIBS
="$LIBS"
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1260 /* Override any gcc2 internal prototype to avoid an error. */
1261 /* We use char because int might match the return type of a gcc2
1262 builtin and then its argument prototype would still apply. */
1263 char gethostbyname();
1269 if { (eval echo configure
:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1271 eval "ac_cv_lib_$ac_lib_var=yes"
1273 echo "configure: failed program was:" >&5
1274 cat conftest.
$ac_ext >&5
1276 eval "ac_cv_lib_$ac_lib_var=no"
1279 LIBS
="$ac_save_LIBS"
1282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1283 echo "$ac_t""yes" 1>&6
1284 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1286 cat >> confdefs.h
<<EOF
1287 #define $ac_tr_lib 1
1293 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1300 echo "configure:1301: checking for strcasecmp" >&5
1301 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.
$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* System header to define __stub macros and hopefully few prototypes,
1308 which can conflict with char strcasecmp(); below. */
1310 /* Override any gcc2 internal prototype to avoid an error. */
1311 /* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1317 /* The GNU C library defines this for functions which it implements
1318 to always fail with ENOSYS. Some functions are actually named
1319 something starting with __ and the normal name is an alias. */
1320 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
1328 if { (eval echo configure
:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1330 eval "ac_cv_func_strcasecmp=yes"
1332 echo "configure: failed program was:" >&5
1333 cat conftest.
$ac_ext >&5
1335 eval "ac_cv_func_strcasecmp=no"
1340 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1344 echo "$ac_t""no" 1>&6
1345 echo $ac_n "checking for strcasecmp in -lresolve""... $ac_c" 1>&6
1346 echo "configure:1347: checking for strcasecmp in -lresolve" >&5
1347 ac_lib_var
=`echo resolve'_'strcasecmp | sed 'y%./+-%__p_%'`
1348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 ac_save_LIBS
="$LIBS"
1352 LIBS
="-lresolve $LIBS"
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* Override any gcc2 internal prototype to avoid an error. */
1357 /* We use char because int might match the return type of a gcc2
1358 builtin and then its argument prototype would still apply. */
1365 if { (eval echo configure
:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1367 eval "ac_cv_lib_$ac_lib_var=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1372 eval "ac_cv_lib_$ac_lib_var=no"
1375 LIBS
="$ac_save_LIBS"
1378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1379 echo "$ac_t""yes" 1>&6
1380 ac_tr_lib
=HAVE_LIB
`echo resolve | sed -e 's/^a-zA-Z0-9_/_/g' \
1381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1382 cat >> confdefs.h
<<EOF
1383 #define $ac_tr_lib 1
1386 LIBS
="-lresolve $LIBS"
1389 echo "$ac_t""no" 1>&6
1395 echo $ac_n "checking for connect""... $ac_c" 1>&6
1396 echo "configure:1397: checking for connect" >&5
1397 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 cat > conftest.
$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1403 /* System header to define __stub macros and hopefully few prototypes,
1404 which can conflict with char connect(); below. */
1406 /* Override any gcc2 internal prototype to avoid an error. */
1407 /* We use char because int might match the return type of a gcc2
1408 builtin and then its argument prototype would still apply. */
1413 /* The GNU C library defines this for functions which it implements
1414 to always fail with ENOSYS. Some functions are actually named
1415 something starting with __ and the normal name is an alias. */
1416 #if defined (__stub_connect) || defined (__stub___connect)
1424 if { (eval echo configure
:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1426 eval "ac_cv_func_connect=yes"
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 eval "ac_cv_func_connect=no"
1436 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1437 echo "$ac_t""yes" 1>&6
1440 echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1442 echo "configure:1443: checking for connect in -lsocket" >&5
1443 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 ac_save_LIBS
="$LIBS"
1448 LIBS
="-lsocket $LIBS"
1449 cat > conftest.
$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1461 if { (eval echo configure
:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1463 eval "ac_cv_lib_$ac_lib_var=yes"
1465 echo "configure: failed program was:" >&5
1466 cat conftest.
$ac_ext >&5
1468 eval "ac_cv_lib_$ac_lib_var=no"
1471 LIBS
="$ac_save_LIBS"
1474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1475 echo "$ac_t""yes" 1>&6
1476 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1478 cat >> confdefs.h
<<EOF
1479 #define $ac_tr_lib 1
1482 LIBS
="-lsocket $LIBS"
1485 echo "$ac_t""no" 1>&6
1491 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
1492 echo "configure:1493: checking for gethostname" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char gethostname(); below. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_gethostname) || defined (__stub___gethostname)
1520 if { (eval echo configure
:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1522 eval "ac_cv_func_gethostname=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.
$ac_ext >&5
1527 eval "ac_cv_func_gethostname=no"
1532 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1536 echo "$ac_t""no" 1>&6
1537 echo $ac_n "checking for gethostname in -lucb""... $ac_c" 1>&6
1538 echo "configure:1539: checking for gethostname in -lucb" >&5
1539 ac_lib_var
=`echo ucb'_'gethostname | sed 'y%./+-%__p_%'`
1540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 ac_save_LIBS
="$LIBS"
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 /* Override any gcc2 internal prototype to avoid an error. */
1549 /* We use char because int might match the return type of a gcc2
1550 builtin and then its argument prototype would still apply. */
1557 if { (eval echo configure
:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1559 eval "ac_cv_lib_$ac_lib_var=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.
$ac_ext >&5
1564 eval "ac_cv_lib_$ac_lib_var=no"
1567 LIBS
="$ac_save_LIBS"
1570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1572 ac_tr_lib
=HAVE_LIB
`echo ucb | sed -e 's/^a-zA-Z0-9_/_/g' \
1573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1574 cat >> confdefs.h
<<EOF
1575 #define $ac_tr_lib 1
1581 echo "$ac_t""no" 1>&6
1587 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1588 echo "configure:1589: checking for dlopen" >&5
1589 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* System header to define __stub macros and hopefully few prototypes,
1596 which can conflict with char dlopen(); below. */
1598 /* Override any gcc2 internal prototype to avoid an error. */
1599 /* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1605 /* The GNU C library defines this for functions which it implements
1606 to always fail with ENOSYS. Some functions are actually named
1607 something starting with __ and the normal name is an alias. */
1608 #if defined (__stub_dlopen) || defined (__stub___dlopen)
1616 if { (eval echo configure
:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1618 eval "ac_cv_func_dlopen=yes"
1620 echo "configure: failed program was:" >&5
1621 cat conftest.
$ac_ext >&5
1623 eval "ac_cv_func_dlopen=no"
1628 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1632 echo "$ac_t""no" 1>&6
1633 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1634 echo "configure:1635: checking for dlopen in -ldl" >&5
1635 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 ac_save_LIBS
="$LIBS"
1641 cat > conftest.
$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1653 if { (eval echo configure
:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1657 echo "configure: failed program was:" >&5
1658 cat conftest.
$ac_ext >&5
1660 eval "ac_cv_lib_$ac_lib_var=no"
1663 LIBS
="$ac_save_LIBS"
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
1669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1670 cat >> confdefs.h
<<EOF
1671 #define $ac_tr_lib 1
1677 echo "$ac_t""no" 1>&6
1685 # Check whether --with-ssl or --without-ssl was given.
1686 if test "${with_ssl+set}" = set; then
1693 if test X
"$OPT_SSL" = Xno
1695 echo "configure: warning: SSL/https support disabled" 1>&2
1699 echo $ac_n "checking where to look for SSL""... $ac_c" 1>&6
1700 echo "configure:1701: checking where to look for SSL" >&5
1701 if test X
"$OPT_SSL" = Xoff
1703 echo "$ac_t""defaults (or given in environment)" 1>&6
1705 test X
"$OPT_SSL" = Xyes
&& OPT_SSL
=/usr
/local
/ssl
1706 LIBS
="$LIBS -L$OPT_SSL/lib"
1707 CPPFLAGS
="$CPPFLAGS -I$OPT_SSL/include/openssl -I$OPT_SSL/include"
1708 echo "$ac_t""$OPT_SSL" 1>&6
1711 echo $ac_n "checking for CRYPTO_lock in -lcrypto""... $ac_c" 1>&6
1712 echo "configure:1713: checking for CRYPTO_lock in -lcrypto" >&5
1713 ac_lib_var
=`echo crypto'_'CRYPTO_lock | sed 'y%./+-%__p_%'`
1714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 ac_save_LIBS
="$LIBS"
1718 LIBS
="-lcrypto $LIBS"
1719 cat > conftest.
$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1722 /* Override any gcc2 internal prototype to avoid an error. */
1723 /* We use char because int might match the return type of a gcc2
1724 builtin and then its argument prototype would still apply. */
1731 if { (eval echo configure
:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1733 eval "ac_cv_lib_$ac_lib_var=yes"
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 eval "ac_cv_lib_$ac_lib_var=no"
1741 LIBS
="$ac_save_LIBS"
1744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1747 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1748 cat >> confdefs.h
<<EOF
1749 #define $ac_tr_lib 1
1752 LIBS
="-lcrypto $LIBS"
1755 echo "$ac_t""no" 1>&6
1759 if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
1760 echo $ac_n "checking for SSL_connect in -lssl""... $ac_c" 1>&6
1761 echo "configure:1762: checking for SSL_connect in -lssl" >&5
1762 ac_lib_var
=`echo ssl'_'SSL_connect | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS
="$LIBS"
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1780 if { (eval echo configure
:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.
$ac_ext >&5
1787 eval "ac_cv_lib_$ac_lib_var=no"
1790 LIBS
="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_lib
=HAVE_LIB
`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1796 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1797 cat >> confdefs.h
<<EOF
1798 #define $ac_tr_lib 1
1804 echo "$ac_t""no" 1>&6
1808 for ac_hdr
in openssl
/x509.h openssl
/rsa.h openssl
/crypto.h openssl
/pem.h openssl
/ssl.h openssl
/err.h
1810 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_hdr" >&5
1813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.
$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure
:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1826 eval "ac_cv_header_$ac_safe=yes"
1829 echo "configure: failed program was:" >&5
1830 cat conftest.
$ac_ext >&5
1832 eval "ac_cv_header_$ac_safe=no"
1836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1837 echo "$ac_t""yes" 1>&6
1838 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1839 cat >> confdefs.h
<<EOF
1840 #define $ac_tr_hdr 1
1844 echo "$ac_t""no" 1>&6
1849 if test $ac_cv_header_openssl_x509_h = no
; then
1850 for ac_hdr
in x509.h rsa.h crypto.h pem.h ssl.h err.h
1852 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_hdr" >&5
1855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1863 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure
:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1866 if test -z "$ac_err"; then
1868 eval "ac_cv_header_$ac_safe=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.
$ac_ext >&5
1874 eval "ac_cv_header_$ac_safe=no"
1878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1881 cat >> confdefs.h
<<EOF
1882 #define $ac_tr_hdr 1
1886 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1902 echo "configure:1903: checking for ANSI C header files" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.
$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1915 { (eval echo configure
:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1916 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1917 if test -z "$ac_err"; then
1919 ac_cv_header_stdc
=yes
1922 echo "configure: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1925 ac_cv_header_stdc
=no
1929 if test $ac_cv_header_stdc = yes; then
1930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937 egrep "memchr" >/dev
/null
2>&1; then
1941 ac_cv_header_stdc
=no
1947 if test $ac_cv_header_stdc = yes; then
1948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "free" >/dev
/null
2>&1; then
1959 ac_cv_header_stdc
=no
1965 if test $ac_cv_header_stdc = yes; then
1966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1967 if test "$cross_compiling" = yes; then
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1974 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1975 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1977 int main () { int i; for (i = 0; i < 256; i++)
1978 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1982 if { (eval echo configure
:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 ac_cv_header_stdc
=no
1997 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1998 if test $ac_cv_header_stdc = yes; then
1999 cat >> confdefs.h
<<\EOF
2000 #define STDC_HEADERS 1
2029 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_hdr" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.
$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2040 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041 { (eval echo configure
:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2043 if test -z "$ac_err"; then
2045 eval "ac_cv_header_$ac_safe=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.
$ac_ext >&5
2051 eval "ac_cv_header_$ac_safe=no"
2055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058 cat >> confdefs.h
<<EOF
2059 #define $ac_tr_hdr 1
2063 echo "$ac_t""no" 1>&6
2069 echo $ac_n "checking for working const""... $ac_c" 1>&6
2070 echo "configure:2071: checking for working const" >&5
2071 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2080 /* Ultrix mips cc rejects this. */
2081 typedef int charset[2]; const charset x;
2082 /* SunOS 4.1.1 cc rejects this. */
2083 char const *const *ccp;
2085 /* NEC SVR4.0.2 mips cc rejects this. */
2086 struct point {int x, y;};
2087 static struct point const zero = {0,0};
2088 /* AIX XL C 1.02.0.0 rejects this.
2089 It does not let you subtract one const X* pointer from another in an arm
2090 of an if-expression whose if-part is not a constant expression */
2091 const char *g = "string";
2092 ccp = &g + (g ? g-g : 0);
2093 /* HPUX 7.0 cc rejects these. */
2096 ccp = (char const *const *) p;
2097 { /* SCO 3.2v4 cc rejects this. */
2099 char const *s = 0 ? (char *) 0 : (char const *) 0;
2103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2105 const int *foo = &x[0];
2108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2109 typedef const int *iptr;
2113 { /* AIX XL C 1.02.0.0 rejects this saying
2114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2115 struct s { int j; const int *ap[3]; };
2116 struct s *b; b->j = 5;
2118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2124 if { (eval echo configure
:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128 echo "configure: failed program was:" >&5
2129 cat conftest.
$ac_ext >&5
2136 echo "$ac_t""$ac_cv_c_const" 1>&6
2137 if test $ac_cv_c_const = no
; then
2138 cat >> confdefs.h
<<\EOF
2144 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2145 echo "configure:2146: checking for size_t" >&5
2146 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2159 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2161 ac_cv_type_size_t
=yes
2164 ac_cv_type_size_t
=no
2169 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2170 if test $ac_cv_type_size_t = no
; then
2171 cat >> confdefs.h
<<\EOF
2172 #define size_t unsigned
2177 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2178 echo "configure:2179: checking whether time.h and sys/time.h may both be included" >&5
2179 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 #include <sys/types.h>
2186 #include <sys/time.h>
2192 if { (eval echo configure
:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194 ac_cv_header_time
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 ac_cv_header_time
=no
2204 echo "$ac_t""$ac_cv_header_time" 1>&6
2205 if test $ac_cv_header_time = yes; then
2206 cat >> confdefs.h
<<\EOF
2207 #define TIME_WITH_SYS_TIME 1
2215 # check for 'long double'
2216 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2217 echo "configure:2218: checking size of long double" >&5
2218 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 if test "$cross_compiling" = yes; then
2222 ac_cv_sizeof_long_double
=8
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2230 FILE *f=fopen("conftestval", "w");
2232 fprintf(f, "%d\n", sizeof(long double));
2236 if { (eval echo configure
:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2238 ac_cv_sizeof_long_double
=`cat conftestval`
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 ac_cv_sizeof_long_double
=0
2249 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2250 cat >> confdefs.h
<<EOF
2251 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2255 # check for 'long long'
2256 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2257 echo "configure:2258: checking size of long long" >&5
2258 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 if test "$cross_compiling" = yes; then
2262 ac_cv_sizeof_long_long
=4
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2270 FILE *f=fopen("conftestval", "w");
2272 fprintf(f, "%d\n", sizeof(long long));
2276 if { (eval echo configure
:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2278 ac_cv_sizeof_long_long
=`cat conftestval`
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 ac_cv_sizeof_long_long
=0
2289 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2290 cat >> confdefs.h
<<EOF
2291 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2297 # Make sure we can run config.sub.
2298 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
2299 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2302 echo $ac_n "checking host system type""... $ac_c" 1>&6
2303 echo "configure:2304: checking host system type" >&5
2306 case "$host_alias" in
2310 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2311 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2313 *) host_alias
=$nonopt ;;
2317 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2318 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2319 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2320 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2321 echo "$ac_t""$host" 1>&6
2323 cat >> confdefs.h
<<EOF
2324 #define OS "${host}"
2328 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2329 echo "configure:2330: checking return type of signal handlers" >&5
2330 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2342 extern "C" void (*signal (int, void (*)(int)))(int);
2344 void (*signal ()) ();
2351 if { (eval echo configure
:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 ac_cv_type_signal
=void
2355 echo "configure: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2358 ac_cv_type_signal
=int
2363 echo "$ac_t""$ac_cv_type_signal" 1>&6
2364 cat >> confdefs.h
<<EOF
2365 #define RETSIGTYPE $ac_cv_type_signal
2369 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2370 echo "configure:2371: checking for vprintf" >&5
2371 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 /* System header to define __stub macros and hopefully few prototypes,
2378 which can conflict with char vprintf(); below. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2387 /* The GNU C library defines this for functions which it implements
2388 to always fail with ENOSYS. Some functions are actually named
2389 something starting with __ and the normal name is an alias. */
2390 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2398 if { (eval echo configure
:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2400 eval "ac_cv_func_vprintf=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2405 eval "ac_cv_func_vprintf=no"
2410 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 cat >> confdefs.h
<<\EOF
2413 #define HAVE_VPRINTF 1
2417 echo "$ac_t""no" 1>&6
2420 if test "$ac_cv_func_vprintf" != yes; then
2421 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2422 echo "configure:2423: checking for _doprnt" >&5
2423 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 /* System header to define __stub macros and hopefully few prototypes,
2430 which can conflict with char _doprnt(); below. */
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2439 /* The GNU C library defines this for functions which it implements
2440 to always fail with ENOSYS. Some functions are actually named
2441 something starting with __ and the normal name is an alias. */
2442 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2450 if { (eval echo configure
:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2452 eval "ac_cv_func__doprnt=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 eval "ac_cv_func__doprnt=no"
2462 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 cat >> confdefs.h
<<\EOF
2465 #define HAVE_DOPRNT 1
2469 echo "$ac_t""no" 1>&6
2474 for ac_func
in socket \
2494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_func" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503 which can conflict with char $ac_func(); below. */
2505 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2512 /* The GNU C library defines this for functions which it implements
2513 to always fail with ENOSYS. Some functions are actually named
2514 something starting with __ and the normal name is an alias. */
2515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2523 if { (eval echo configure
:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2525 eval "ac_cv_func_$ac_func=yes"
2527 echo "configure: failed program was:" >&5
2528 cat conftest.
$ac_ext >&5
2530 eval "ac_cv_func_$ac_func=no"
2535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2538 cat >> confdefs.h
<<EOF
2539 #define $ac_tr_func 1
2543 echo "$ac_t""no" 1>&6
2550 # Extract the first word of "perl", so it can be a program name with args.
2551 set dummy perl
; ac_word
=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2559 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2562 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2566 ac_dummy
="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
2567 for ac_dir
in $ac_dummy; do
2568 test -z "$ac_dir" && ac_dir
=.
2569 if test -f $ac_dir/$ac_word; then
2570 ac_cv_path_PERL
="$ac_dir/$ac_word"
2578 PERL
="$ac_cv_path_PERL"
2579 if test -n "$PERL"; then
2580 echo "$ac_t""$PERL" 1>&6
2582 echo "$ac_t""no" 1>&6
2587 for ac_prog
in nroff gnroff
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy
$ac_prog; ac_word
=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_cv_path_NROFF
="$NROFF" # Let the user override the test with a path.
2601 ac_cv_path_NROFF
="$NROFF" # Let the user override the test with a dos path.
2604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2605 ac_dummy
="$PATH:/usr/bin/:/usr/local/bin "
2606 for ac_dir
in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir
=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_NROFF
="$ac_dir/$ac_word"
2617 NROFF
="$ac_cv_path_NROFF"
2618 if test -n "$NROFF"; then
2619 echo "$ac_t""$NROFF" 1>&6
2621 echo "$ac_t""no" 1>&6
2624 test -n "$NROFF" && break
2629 # Extract the first word of "ranlib", so it can be a program name with args.
2630 set dummy ranlib
; ac_word
=$2
2631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_word" >&5
2633 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 if test -n "$RANLIB"; then
2637 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2641 for ac_dir
in $ac_dummy; do
2642 test -z "$ac_dir" && ac_dir
=.
2643 if test -f $ac_dir/$ac_word; then
2644 ac_cv_prog_RANLIB
="ranlib"
2649 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2652 RANLIB
="$ac_cv_prog_RANLIB"
2653 if test -n "$RANLIB"; then
2654 echo "$ac_t""$RANLIB" 1>&6
2656 echo "$ac_t""no" 1>&6
2659 for ac_prog
in 'bison -y' byacc
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy
$ac_prog; ac_word
=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 if test -n "$YACC"; then
2669 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2673 for ac_dir
in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir
=.
2675 if test -f $ac_dir/$ac_word; then
2676 ac_cv_prog_YACC
="$ac_prog"
2683 YACC
="$ac_cv_prog_YACC"
2684 if test -n "$YACC"; then
2685 echo "$ac_t""$YACC" 1>&6
2687 echo "$ac_t""no" 1>&6
2690 test -n "$YACC" && break
2692 test -n "$YACC" || YACC
="yacc"
2697 cat > confcache
<<\EOF
2698 # This file is a shell script that caches the results of configure
2699 # tests run on this system so they can be shared between configure
2700 # scripts and configure runs. It is not useful on other systems.
2701 # If it contains results you don't want to keep, you may remove or edit it.
2703 # By default, configure uses ./config.cache as the cache file,
2704 # creating it if it does not exist already. You can give configure
2705 # the --cache-file=FILE option to use a different cache file; that is
2706 # what configure does when it calls configure scripts in
2707 # subdirectories, so they share the cache.
2708 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2709 # config.status only pays attention to the cache file if you give it the
2710 # --recheck option to rerun configure.
2713 # The following way of writing the cache mishandles newlines in values,
2714 # but we know of no workaround that is simple, portable, and efficient.
2715 # So, don't put newlines in cache variables' values.
2716 # Ultrix sh set writes to stderr and can't be redirected directly,
2717 # and sets the high bit in the cache file unless we assign to the vars.
2719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2721 # `set' does not quote correctly, so add quotes (double-quote substitution
2722 # turns \\\\ into \\, and sed turns \\ into \).
2724 -e "s/'/'\\\\''/g" \
2725 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2728 # `set' quotes correctly as required by POSIX, so do not add quotes.
2729 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2732 if cmp -s $cache_file confcache
; then
2735 if test -w $cache_file; then
2736 echo "updating cache $cache_file"
2737 cat confcache
> $cache_file
2739 echo "not updating unwritable cache $cache_file"
2744 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2746 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2747 # Let make expand exec_prefix.
2748 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2750 # Any assignment to VPATH causes Sun make to only execute
2751 # the first set of double-colon rules, so remove it if not needed.
2752 # If there is a colon in the path, we need to keep it.
2753 if test "x$srcdir" = x.
; then
2754 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2757 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2759 DEFS
=-DHAVE_CONFIG_H
2761 # Without the "./", some shells look in PATH for config.status.
2762 : ${CONFIG_STATUS=./config.status}
2764 echo creating
$CONFIG_STATUS
2765 rm -f $CONFIG_STATUS
2766 cat > $CONFIG_STATUS <<EOF
2768 # Generated automatically by configure.
2769 # Run this file to recreate the current configuration.
2770 # This directory was configured as follows,
2771 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2773 # $0 $ac_configure_args
2775 # Compiler output produced by configure, useful for debugging
2776 # configure, is in ./config.log if it exists.
2778 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2781 case "\$ac_option" in
2782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2783 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2784 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2785 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2786 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2788 -help | --help | --hel | --he | --h)
2789 echo "\$ac_cs_usage"; exit 0 ;;
2790 *) echo "\$ac_cs_usage"; exit 1 ;;
2794 ac_given_srcdir=$srcdir
2795 ac_given_INSTALL="$INSTALL"
2797 trap 'rm -fr `echo "Makefile \
2800 perl/checklinks.pl \
2803 perl/recursiveftpget.pl config.h src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2805 cat >> $CONFIG_STATUS <<EOF
2807 # Protect against being on the right side of a sed subst in config.status.
2808 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2809 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2813 s%@CFLAGS@%$CFLAGS%g
2814 s%@CPPFLAGS@%$CPPFLAGS%g
2815 s%@CXXFLAGS@%$CXXFLAGS%g
2816 s%@FFLAGS@%$FFLAGS%g
2818 s%@LDFLAGS@%$LDFLAGS%g
2820 s%@exec_prefix@%$exec_prefix%g
2821 s%@prefix@%$prefix%g
2822 s%@program_transform_name@%$program_transform_name%g
2823 s%@bindir@%$bindir%g
2824 s%@sbindir@%$sbindir%g
2825 s%@libexecdir@%$libexecdir%g
2826 s%@datadir@%$datadir%g
2827 s%@sysconfdir@%$sysconfdir%g
2828 s%@sharedstatedir@%$sharedstatedir%g
2829 s%@localstatedir@%$localstatedir%g
2830 s%@libdir@%$libdir%g
2831 s%@includedir@%$includedir%g
2832 s%@oldincludedir@%$oldincludedir%g
2833 s%@infodir@%$infodir%g
2834 s%@mandir@%$mandir%g
2835 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2836 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2837 s%@INSTALL_DATA@%$INSTALL_DATA%g
2838 s%@PACKAGE@%$PACKAGE%g
2839 s%@VERSION@%$VERSION%g
2840 s%@ACLOCAL@%$ACLOCAL%g
2841 s%@AUTOCONF@%$AUTOCONF%g
2842 s%@AUTOMAKE@%$AUTOMAKE%g
2843 s%@AUTOHEADER@%$AUTOHEADER%g
2844 s%@MAKEINFO@%$MAKEINFO%g
2845 s%@SET_MAKE@%$SET_MAKE%g
2849 s%@host_alias@%$host_alias%g
2850 s%@host_cpu@%$host_cpu%g
2851 s%@host_vendor@%$host_vendor%g
2852 s%@host_os@%$host_os%g
2855 s%@RANLIB@%$RANLIB%g
2861 cat >> $CONFIG_STATUS <<\EOF
2863 # Split the substitutions into bite-sized pieces for seds with
2864 # small command number limits, like on Digital OSF/1 and HP-UX.
2865 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2866 ac_file
=1 # Number of current file.
2867 ac_beg
=1 # First line for current file.
2868 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2871 while $ac_more_lines; do
2872 if test $ac_beg -gt 1; then
2873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2875 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2877 if test ! -s conftest.s
$ac_file; then
2879 rm -f conftest.s
$ac_file
2881 if test -z "$ac_sed_cmds"; then
2882 ac_sed_cmds
="sed -f conftest.s$ac_file"
2884 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2886 ac_file
=`expr $ac_file + 1`
2888 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2891 if test -z "$ac_sed_cmds"; then
2896 cat >> $CONFIG_STATUS <<EOF
2898 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
2901 perl/checklinks.pl \
2904 perl/recursiveftpget.pl "}
2906 cat >> $CONFIG_STATUS <<\EOF
2907 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2910 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2911 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2912 *) ac_file_in
="${ac_file}.in" ;;
2915 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2917 # Remove last slash and all that follows it. Not all systems have dirname.
2918 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2919 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2920 # The file is in a subdirectory.
2921 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2922 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2923 # A "../" for each directory in $ac_dir_suffix.
2924 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2926 ac_dir_suffix
= ac_dots
=
2929 case "$ac_given_srcdir" in
2931 if test -z "$ac_dots"; then top_srcdir
=.
2932 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2933 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2935 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2936 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2939 case "$ac_given_INSTALL" in
2940 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2941 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2944 echo creating
"$ac_file"
2946 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2948 *Makefile
*) ac_comsub
="1i\\
2949 # $configure_input" ;;
2953 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2955 s%@configure_input@%$configure_input%g
2956 s%@srcdir@%$srcdir%g
2957 s%@top_srcdir@%$top_srcdir%g
2958 s%@INSTALL@%$INSTALL%g
2959 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2966 # ac_d sets the value in "#define NAME VALUE" lines.
2967 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2968 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2971 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2972 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2973 ac_uB
='\([ ]\)%\1#\2define\3'
2976 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2977 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2978 ac_eB
='$%\1#\2define\3'
2982 if test "${CONFIG_HEADERS+set}" != set; then
2984 cat >> $CONFIG_STATUS <<EOF
2985 CONFIG_HEADERS="config.h src/config.h"
2987 cat >> $CONFIG_STATUS <<\EOF
2989 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2992 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2993 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2994 *) ac_file_in
="${ac_file}.in" ;;
2997 echo creating
$ac_file
2999 rm -f conftest.frag conftest.
in conftest.out
3000 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3001 cat $ac_file_inputs > conftest.
in
3005 # Transform confdefs.h into a sed script conftest.vals that substitutes
3006 # the proper values into config.h.in to produce config.h. And first:
3007 # Protect against being on the right side of a sed subst in config.status.
3008 # Protect against being in an unquoted here document in config.status.
3010 cat > conftest.hdr
<<\EOF
3013 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3017 sed -n -f conftest.hdr confdefs.h > conftest.vals
3020 # This sed command replaces #undef with comments. This is necessary, for
3021 # example, in the case of _POSIX_SOURCE, which is predefined and required
3022 # on some systems where configure will not decide to define it.
3023 cat >> conftest.vals <<\EOF
3024 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3027 # Break up conftest.vals because some shells have a limit on
3028 # the size of here documents, and old seds have small limits too.
3033 ac_lines=`grep -c . conftest.vals
`
3034 # grep -c gives empty output for an empty file on some AIX systems.
3035 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3036 # Write a limited-size here document to conftest.frag.
3037 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3038 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3040 sed -f conftest.frag conftest.in > conftest.out
3042 mv conftest.out conftest.in
3044 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3046 mv conftest.tail conftest.vals
3050 cat >> $CONFIG_STATUS <<\EOF
3051 rm -f conftest.frag conftest.h
3052 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3053 cat conftest.in >> conftest.h
3055 if cmp -s $ac_file conftest.h 2>/dev/null; then
3056 echo "$ac_file is unchanged"
3059 # Remove last slash and all that follows it. Not all systems have dirname.
3060 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3062 # The file is in a subdirectory.
3063 test ! -d "$ac_dir" && mkdir "$ac_dir"
3066 mv conftest.h $ac_file
3071 cat >> $CONFIG_STATUS <<EOF
3075 cat >> $CONFIG_STATUS <<\EOF
3077 for am_file in config.h src/config.h; do
3078 case " $CONFIG_HEADERS " in
3080 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
3083 am_indx=`expr "$am_indx" + 1`
3088 chmod +x $CONFIG_STATUS
3089 rm -fr confdefs* $ac_clean_files
3090 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1