Debian Codegraph @

configure

raw
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-debug enable debugging"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
67 fi
68
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
73
74 # Accept the important Cygnus configure options, so we can diagnose typos.
75
76 case "$ac_option" in
77
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
82
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
87
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
94
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
100
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 fi
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
109
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 fi
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
131
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
135
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172 EOF
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185 EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
190
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
195
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
202
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
207
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
212
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
219
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
228
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
233
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
237
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
241
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
245
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
254
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
259
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
266
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
273
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
290
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
294
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
300
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
311
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
316
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
321
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
328
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
333
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
336
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
340
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 fi
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
353
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
362
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
366
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
373
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
380
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 ;;
383
384 *)
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 fi
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 fi
391 nonopt="$ac_option"
392 ;;
393
394 esac
395 done
396
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=tunnel.c
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
468 fi
469 else
470 ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
493 fi
494 done
495
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
520 fi
521 else
522 ac_n= ac_c='\c' ac_t=
523 fi
524
525
526 ac_aux_dir=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
529 ac_aux_dir=$ac_dir
530 ac_install_sh="$ac_aux_dir/install-sh -c"
531 break
532 elif test -f $ac_dir/install.sh; then
533 ac_aux_dir=$ac_dir
534 ac_install_sh="$ac_aux_dir/install.sh -c"
535 break
536 fi
537 done
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 fi
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
550 # IRIX /sbin/install
551 # AIX /bin/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561 else
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
565 case "$ac_dir/" in
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
567 *)
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
570 # by default.
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
576 :
577 else
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
579 break 2
580 fi
581 fi
582 done
583 ;;
584 esac
585 done
586 IFS="$ac_save_IFS"
587
588 fi
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
591 else
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
597 fi
598 fi
599 echo "$ac_t""$INSTALL" 1>&6
600
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
604
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
606
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
608
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
611 # Just in case
612 sleep 1
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
618 # directory).
619 if (
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
622 # -L didn't work.
623 set X `ls -t $srcdir/configure conftestfile`
624 fi
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
627
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
634 fi
635
636 test "$2" = conftestfile
637 )
638 then
639 # Ok.
640 :
641 else
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
644 fi
645 rm -f conftest*
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
649 else
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
653 EOF_SED
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
655 rm -f conftestsed
656 fi
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
662
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
665
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 cat > conftestmake <<\EOF
673 all:
674 @echo 'ac_maketemp="${MAKE}"'
675 EOF
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
680 else
681 eval ac_cv_prog_make_${ac_make}_set=no
682 fi
683 rm -f conftestmake
684 fi
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
687 SET_MAKE=
688 else
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
691 fi
692
693
694 PACKAGE=httptunnel
695
696 VERSION=3.3
697
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
700 fi
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
703 EOF
704
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
707 EOF
708
709
710
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
718 ACLOCAL=aclocal
719 echo "$ac_t""found" 1>&6
720 else
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
723 fi
724
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
731 AUTOCONF=autoconf
732 echo "$ac_t""found" 1>&6
733 else
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
736 fi
737
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
744 AUTOMAKE=automake
745 echo "$ac_t""found" 1>&6
746 else
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
749 fi
750
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
759 else
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
762 fi
763
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
770 MAKEINFO=makeinfo
771 echo "$ac_t""found" 1>&6
772 else
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
775 fi
776
777
778
779
780
781
782
783
784 if test "x$srcdir" != x.; then
785 SRCDIR_TRUE=
786 SRCDIR_FALSE='#'
787 else
788 SRCDIR_TRUE='#'
789 SRCDIR_FALSE=
790 fi
791
792 # Check whether --enable-debug or --disable-debug was given.
793 if test "${enable_debug+set}" = set; then
794 enableval="$enable_debug"
795 cat >> confdefs.h <<\EOF
796 #define DEBUG_MODE 1
797 EOF
798
799 fi
800
801
802 if test "x$CFLAGS" = x; then
803 if test "x$enable_debug" != x; then
804 CFLAGS="-g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith"
805 else
806 CFLAGS="-O2 -Wall -fomit-frame-pointer"
807 fi
808 fi
809
810 for ac_prog in mawk gawk nawk awk
811 do
812 # Extract the first word of "$ac_prog", so it can be a program name with args.
813 set dummy $ac_prog; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818 else
819 if test -n "$AWK"; then
820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
821 else
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 ac_dummy="$PATH"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 ac_cv_prog_AWK="$ac_prog"
828 break
829 fi
830 done
831 IFS="$ac_save_ifs"
832 fi
833 fi
834 AWK="$ac_cv_prog_AWK"
835 if test -n "$AWK"; then
836 echo "$ac_t""$AWK" 1>&6
837 else
838 echo "$ac_t""no" 1>&6
839 fi
840
841 test -n "$AWK" && break
842 done
843
844 # Extract the first word of "gcc", so it can be a program name with args.
845 set dummy gcc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
850 else
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
853 else
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
855 ac_dummy="$PATH"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
859 ac_cv_prog_CC="gcc"
860 break
861 fi
862 done
863 IFS="$ac_save_ifs"
864 fi
865 fi
866 CC="$ac_cv_prog_CC"
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
869 else
870 echo "$ac_t""no" 1>&6
871 fi
872
873 if test -z "$CC"; then
874 # Extract the first word of "cc", so it can be a program name with args.
875 set dummy cc; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
880 else
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
883 else
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885 ac_prog_rejected=no
886 ac_dummy="$PATH"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 ac_prog_rejected=yes
892 continue
893 fi
894 ac_cv_prog_CC="cc"
895 break
896 fi
897 done
898 IFS="$ac_save_ifs"
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
902 shift
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
907 shift
908 set dummy "$ac_dir/$ac_word" "$@"
909 shift
910 ac_cv_prog_CC="$@"
911 fi
912 fi
913 fi
914 fi
915 CC="$ac_cv_prog_CC"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
918 else
919 echo "$ac_t""no" 1>&6
920 fi
921
922 if test -z "$CC"; then
923 case "`uname -s`" in
924 *win32* | *WIN32*)
925 # Extract the first word of "cl", so it can be a program name with args.
926 set dummy cl; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
931 else
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
934 else
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
936 ac_dummy="$PATH"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_CC="cl"
941 break
942 fi
943 done
944 IFS="$ac_save_ifs"
945 fi
946 fi
947 CC="$ac_cv_prog_CC"
948 if test -n "$CC"; then
949 echo "$ac_t""$CC" 1>&6
950 else
951 echo "$ac_t""no" 1>&6
952 fi
953 ;;
954 esac
955 fi
956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
957 fi
958
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
961
962 ac_ext=c
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
968
969 cat > conftest.$ac_ext << EOF
970
971 #line 972 "configure"
972 #include "confdefs.h"
973
974 main(){return(0);}
975 EOF
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 ac_cv_prog_cc_works=yes
978 # If we can't run a trivial program, we are probably using a cross compiler.
979 if (./conftest; exit) 2>/dev/null; then
980 ac_cv_prog_cc_cross=no
981 else
982 ac_cv_prog_cc_cross=yes
983 fi
984 else
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 ac_cv_prog_cc_works=no
988 fi
989 rm -fr conftest*
990 ac_ext=c
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
996
997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
998 if test $ac_cv_prog_cc_works = no; then
999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1000 fi
1001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1004 cross_compiling=$ac_cv_prog_cc_cross
1005
1006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether we are using GNU C" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011 cat > conftest.c <<EOF
1012 #ifdef __GNUC__
1013 yes;
1014 #endif
1015 EOF
1016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1017 ac_cv_prog_gcc=yes
1018 else
1019 ac_cv_prog_gcc=no
1020 fi
1021 fi
1022
1023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1024
1025 if test $ac_cv_prog_gcc = yes; then
1026 GCC=yes
1027 else
1028 GCC=
1029 fi
1030
1031 ac_test_CFLAGS="${CFLAGS+set}"
1032 ac_save_CFLAGS="$CFLAGS"
1033 CFLAGS=
1034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether ${CC-cc} accepts -g" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038 else
1039 echo 'void f(){}' > conftest.c
1040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 ac_cv_prog_cc_g=yes
1042 else
1043 ac_cv_prog_cc_g=no
1044 fi
1045 rm -f conftest*
1046
1047 fi
1048
1049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1050 if test "$ac_test_CFLAGS" = set; then
1051 CFLAGS="$ac_save_CFLAGS"
1052 elif test $ac_cv_prog_cc_g = yes; then
1053 if test "$GCC" = yes; then
1054 CFLAGS="-g -O2"
1055 else
1056 CFLAGS="-g"
1057 fi
1058 else
1059 if test "$GCC" = yes; then
1060 CFLAGS="-O2"
1061 else
1062 CFLAGS=
1063 fi
1064 fi
1065
1066 if test "$program_transform_name" = s,x,x,; then
1067 program_transform_name=
1068 else
1069 # Double any \ or $. echo might interpret backslashes.
1070 cat <<\EOF_SED > conftestsed
1071 s,\\,\\\\,g; s,\$,$$,g
1072 EOF_SED
1073 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1074 rm -f conftestsed
1075 fi
1076 test "$program_prefix" != NONE &&
1077 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE &&
1080 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1081
1082 # sed with no file args requires a program.
1083 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1084
1085 # Find a good install program. We prefer a C program (faster),
1086 # so one script is as good as another. But avoid the broken or
1087 # incompatible versions:
1088 # SysV /etc/install, /usr/sbin/install
1089 # SunOS /usr/etc/install
1090 # IRIX /sbin/install
1091 # AIX /bin/install
1092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1095 # ./install, which can be erroneously created by make from ./install.sh.
1096 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1097 echo "configure:1098: checking for a BSD compatible install" >&5
1098 if test -z "$INSTALL"; then
1099 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1103 for ac_dir in $PATH; do
1104 # Account for people who put trailing slashes in PATH elements.
1105 case "$ac_dir/" in
1106 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1107 *)
1108 # OSF1 and SCO ODT 3.0 have their own names for install.
1109 # Don't use installbsd from OSF since it installs stuff as root
1110 # by default.
1111 for ac_prog in ginstall scoinst install; do
1112 if test -f $ac_dir/$ac_prog; then
1113 if test $ac_prog = install &&
1114 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1115 # AIX install. It has an incompatible calling convention.
1116 :
1117 else
1118 ac_cv_path_install="$ac_dir/$ac_prog -c"
1119 break 2
1120 fi
1121 fi
1122 done
1123 ;;
1124 esac
1125 done
1126 IFS="$ac_save_IFS"
1127
1128 fi
1129 if test "${ac_cv_path_install+set}" = set; then
1130 INSTALL="$ac_cv_path_install"
1131 else
1132 # As a last resort, use the slow shell script. We don't cache a
1133 # path for INSTALL within a source directory, because that will
1134 # break other packages using the cache if that directory is
1135 # removed, or if the path is relative.
1136 INSTALL="$ac_install_sh"
1137 fi
1138 fi
1139 echo "$ac_t""$INSTALL" 1>&6
1140
1141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1142 # It thinks the first close brace ends the variable substitution.
1143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1144
1145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1146
1147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1148
1149 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether ln -s works" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 rm -f conftestdata
1155 if ln -s X conftestdata 2>/dev/null
1156 then
1157 rm -f conftestdata
1158 ac_cv_prog_LN_S="ln -s"
1159 else
1160 ac_cv_prog_LN_S=ln
1161 fi
1162 fi
1163 LN_S="$ac_cv_prog_LN_S"
1164 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1165 echo "$ac_t""yes" 1>&6
1166 else
1167 echo "$ac_t""no" 1>&6
1168 fi
1169
1170 # Extract the first word of "ranlib", so it can be a program name with args.
1171 set dummy ranlib; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 if test -n "$RANLIB"; then
1178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1179 else
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 ac_dummy="$PATH"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_RANLIB="ranlib"
1186 break
1187 fi
1188 done
1189 IFS="$ac_save_ifs"
1190 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1191 fi
1192 fi
1193 RANLIB="$ac_cv_prog_RANLIB"
1194 if test -n "$RANLIB"; then
1195 echo "$ac_t""$RANLIB" 1>&6
1196 else
1197 echo "$ac_t""no" 1>&6
1198 fi
1199
1200
1201 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
1202 echo "configure:1203: checking for gethostent" >&5
1203 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 /* System header to define __stub macros and hopefully few prototypes,
1210 which can conflict with char gethostent(); below. */
1211 #include <assert.h>
1212 /* Override any gcc2 internal prototype to avoid an error. */
1213 /* We use char because int might match the return type of a gcc2
1214 builtin and then its argument prototype would still apply. */
1215 char gethostent();
1216
1217 int main() {
1218
1219 /* The GNU C library defines this for functions which it implements
1220 to always fail with ENOSYS. Some functions are actually named
1221 something starting with __ and the normal name is an alias. */
1222 #if defined (__stub_gethostent) || defined (__stub___gethostent)
1223 choke me
1224 #else
1225 gethostent();
1226 #endif
1227
1228 ; return 0; }
1229 EOF
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1231 rm -rf conftest*
1232 eval "ac_cv_func_gethostent=yes"
1233 else
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1236 rm -rf conftest*
1237 eval "ac_cv_func_gethostent=no"
1238 fi
1239 rm -f conftest*
1240 fi
1241
1242 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
1243 echo "$ac_t""yes" 1>&6
1244 :
1245 else
1246 echo "$ac_t""no" 1>&6
1247 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
1248 echo "configure:1249: checking for gethostent in -lnsl" >&5
1249 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
1250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 ac_save_LIBS="$LIBS"
1254 LIBS="-lnsl $LIBS"
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* Override any gcc2 internal prototype to avoid an error. */
1259 /* We use char because int might match the return type of a gcc2
1260 builtin and then its argument prototype would still apply. */
1261 char gethostent();
1262
1263 int main() {
1264 gethostent()
1265 ; return 0; }
1266 EOF
1267 if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1268 rm -rf conftest*
1269 eval "ac_cv_lib_$ac_lib_var=yes"
1270 else
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1273 rm -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=no"
1275 fi
1276 rm -f conftest*
1277 LIBS="$ac_save_LIBS"
1278
1279 fi
1280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1282 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1284 cat >> confdefs.h <<EOF
1285 #define $ac_tr_lib 1
1286 EOF
1287
1288 LIBS="-lnsl $LIBS"
1289
1290 else
1291 echo "$ac_t""no" 1>&6
1292 fi
1293
1294 fi
1295
1296 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
1297 echo "configure:1298: checking for setsockopt" >&5
1298 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 /* System header to define __stub macros and hopefully few prototypes,
1305 which can conflict with char setsockopt(); below. */
1306 #include <assert.h>
1307 /* Override any gcc2 internal prototype to avoid an error. */
1308 /* We use char because int might match the return type of a gcc2
1309 builtin and then its argument prototype would still apply. */
1310 char setsockopt();
1311
1312 int main() {
1313
1314 /* The GNU C library defines this for functions which it implements
1315 to always fail with ENOSYS. Some functions are actually named
1316 something starting with __ and the normal name is an alias. */
1317 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
1318 choke me
1319 #else
1320 setsockopt();
1321 #endif
1322
1323 ; return 0; }
1324 EOF
1325 if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1326 rm -rf conftest*
1327 eval "ac_cv_func_setsockopt=yes"
1328 else
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
1331 rm -rf conftest*
1332 eval "ac_cv_func_setsockopt=no"
1333 fi
1334 rm -f conftest*
1335 fi
1336
1337 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
1338 echo "$ac_t""yes" 1>&6
1339 :
1340 else
1341 echo "$ac_t""no" 1>&6
1342 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
1343 echo "configure:1344: checking for setsockopt in -lsocket" >&5
1344 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
1345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 ac_save_LIBS="$LIBS"
1349 LIBS="-lsocket $LIBS"
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353 /* Override any gcc2 internal prototype to avoid an error. */
1354 /* We use char because int might match the return type of a gcc2
1355 builtin and then its argument prototype would still apply. */
1356 char setsockopt();
1357
1358 int main() {
1359 setsockopt()
1360 ; return 0; }
1361 EOF
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1363 rm -rf conftest*
1364 eval "ac_cv_lib_$ac_lib_var=yes"
1365 else
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1368 rm -rf conftest*
1369 eval "ac_cv_lib_$ac_lib_var=no"
1370 fi
1371 rm -f conftest*
1372 LIBS="$ac_save_LIBS"
1373
1374 fi
1375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1379 cat >> confdefs.h <<EOF
1380 #define $ac_tr_lib 1
1381 EOF
1382
1383 LIBS="-lsocket $LIBS"
1384
1385 else
1386 echo "$ac_t""no" 1>&6
1387 fi
1388
1389 fi
1390
1391
1392 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1393 echo "configure:1394: checking how to run the C preprocessor" >&5
1394 # On Suns, sometimes $CPP names a directory.
1395 if test -n "$CPP" && test -d "$CPP"; then
1396 CPP=
1397 fi
1398 if test -z "$CPP"; then
1399 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 # This must be in double quotes, not single quotes, because CPP may get
1403 # substituted into the Makefile and "${CC-cc}" will confuse make.
1404 CPP="${CC-cc} -E"
1405 # On the NeXT, cc -E runs the code through the compiler's parser,
1406 # not just through cpp.
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1410 #include <assert.h>
1411 Syntax Error
1412 EOF
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1417 :
1418 else
1419 echo "$ac_err" >&5
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1422 rm -rf conftest*
1423 CPP="${CC-cc} -E -traditional-cpp"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <assert.h>
1428 Syntax Error
1429 EOF
1430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1431 { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1433 if test -z "$ac_err"; then
1434 :
1435 else
1436 echo "$ac_err" >&5
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 rm -rf conftest*
1440 CPP="${CC-cc} -nologo -E"
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <assert.h>
1445 Syntax Error
1446 EOF
1447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1451 :
1452 else
1453 echo "$ac_err" >&5
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1456 rm -rf conftest*
1457 CPP=/lib/cpp
1458 fi
1459 rm -f conftest*
1460 fi
1461 rm -f conftest*
1462 fi
1463 rm -f conftest*
1464 ac_cv_prog_CPP="$CPP"
1465 fi
1466 CPP="$ac_cv_prog_CPP"
1467 else
1468 ac_cv_prog_CPP="$CPP"
1469 fi
1470 echo "$ac_t""$CPP" 1>&6
1471
1472 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1473 echo "configure:1474: checking for ANSI C header files" >&5
1474 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 #include <stdlib.h>
1481 #include <stdarg.h>
1482 #include <string.h>
1483 #include <float.h>
1484 EOF
1485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1486 { (eval echo configure:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1488 if test -z "$ac_err"; then
1489 rm -rf conftest*
1490 ac_cv_header_stdc=yes
1491 else
1492 echo "$ac_err" >&5
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -rf conftest*
1496 ac_cv_header_stdc=no
1497 fi
1498 rm -f conftest*
1499
1500 if test $ac_cv_header_stdc = yes; then
1501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <string.h>
1506 EOF
1507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1508 egrep "memchr" >/dev/null 2>&1; then
1509 :
1510 else
1511 rm -rf conftest*
1512 ac_cv_header_stdc=no
1513 fi
1514 rm -f conftest*
1515
1516 fi
1517
1518 if test $ac_cv_header_stdc = yes; then
1519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 #include <stdlib.h>
1524 EOF
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "free" >/dev/null 2>&1; then
1527 :
1528 else
1529 rm -rf conftest*
1530 ac_cv_header_stdc=no
1531 fi
1532 rm -f conftest*
1533
1534 fi
1535
1536 if test $ac_cv_header_stdc = yes; then
1537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1538 if test "$cross_compiling" = yes; then
1539 :
1540 else
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1544 #include <ctype.h>
1545 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1546 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1548 int main () { int i; for (i = 0; i < 256; i++)
1549 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1550 exit (0); }
1551
1552 EOF
1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1554 then
1555 :
1556 else
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -fr conftest*
1560 ac_cv_header_stdc=no
1561 fi
1562 rm -fr conftest*
1563 fi
1564
1565 fi
1566 fi
1567
1568 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1569 if test $ac_cv_header_stdc = yes; then
1570 cat >> confdefs.h <<\EOF
1571 #define STDC_HEADERS 1
1572 EOF
1573
1574 fi
1575
1576 for ac_hdr in fcntl.h syslog.h unistd.h sys/poll.h
1577 do
1578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_hdr" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <$ac_hdr>
1588 EOF
1589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1592 if test -z "$ac_err"; then
1593 rm -rf conftest*
1594 eval "ac_cv_header_$ac_safe=yes"
1595 else
1596 echo "$ac_err" >&5
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1599 rm -rf conftest*
1600 eval "ac_cv_header_$ac_safe=no"
1601 fi
1602 rm -f conftest*
1603 fi
1604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1607 cat >> confdefs.h <<EOF
1608 #define $ac_tr_hdr 1
1609 EOF
1610
1611 else
1612 echo "$ac_t""no" 1>&6
1613 fi
1614 done
1615
1616
1617 echo $ac_n "checking for working const""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working const" >&5
1619 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621 else
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625
1626 int main() {
1627
1628 /* Ultrix mips cc rejects this. */
1629 typedef int charset[2]; const charset x = {0,0};
1630 /* SunOS 4.1.1 cc rejects this. */
1631 char const *const *ccp;
1632 char **p;
1633 /* NEC SVR4.0.2 mips cc rejects this. */
1634 struct point {int x, y;};
1635 static struct point const zero = {0,0};
1636 /* AIX XL C 1.02.0.0 rejects this.
1637 It does not let you subtract one const X* pointer from another in an arm
1638 of an if-expression whose if-part is not a constant expression */
1639 const char *g = "string";
1640 ccp = &g + (g ? g-g : 0);
1641 /* HPUX 7.0 cc rejects these. */
1642 ++ccp;
1643 p = (char**) ccp;
1644 ccp = (char const *const *) p;
1645 { /* SCO 3.2v4 cc rejects this. */
1646 char *t;
1647 char const *s = 0 ? (char *) 0 : (char const *) 0;
1648
1649 *t++ = 0;
1650 }
1651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1652 int x[] = {25, 17};
1653 const int *foo = &x[0];
1654 ++foo;
1655 }
1656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1657 typedef const int *iptr;
1658 iptr p = 0;
1659 ++p;
1660 }
1661 { /* AIX XL C 1.02.0.0 rejects this saying
1662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1663 struct s { int j; const int *ap[3]; };
1664 struct s *b; b->j = 5;
1665 }
1666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1667 const int foo = 10;
1668 }
1669
1670 ; return 0; }
1671 EOF
1672 if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1673 rm -rf conftest*
1674 ac_cv_c_const=yes
1675 else
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1678 rm -rf conftest*
1679 ac_cv_c_const=no
1680 fi
1681 rm -f conftest*
1682 fi
1683
1684 echo "$ac_t""$ac_cv_c_const" 1>&6
1685 if test $ac_cv_c_const = no; then
1686 cat >> confdefs.h <<\EOF
1687 #define const
1688 EOF
1689
1690 fi
1691
1692 echo $ac_n "checking for inline""... $ac_c" 1>&6
1693 echo "configure:1694: checking for inline" >&5
1694 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697 ac_cv_c_inline=no
1698 for ac_kw in inline __inline__ __inline; do
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1702
1703 int main() {
1704 } int $ac_kw foo() {
1705 ; return 0; }
1706 EOF
1707 if { (eval echo configure:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1708 rm -rf conftest*
1709 ac_cv_c_inline=$ac_kw; break
1710 else
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 fi
1714 rm -f conftest*
1715 done
1716
1717 fi
1718
1719 echo "$ac_t""$ac_cv_c_inline" 1>&6
1720 case "$ac_cv_c_inline" in
1721 inline | yes) ;;
1722 no) cat >> confdefs.h <<\EOF
1723 #define inline
1724 EOF
1725 ;;
1726 *) cat >> confdefs.h <<EOF
1727 #define inline $ac_cv_c_inline
1728 EOF
1729 ;;
1730 esac
1731
1732 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1733 echo "configure:1734: checking for size_t" >&5
1734 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 #include <sys/types.h>
1741 #if STDC_HEADERS
1742 #include <stdlib.h>
1743 #include <stddef.h>
1744 #endif
1745 EOF
1746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1747 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1748 rm -rf conftest*
1749 ac_cv_type_size_t=yes
1750 else
1751 rm -rf conftest*
1752 ac_cv_type_size_t=no
1753 fi
1754 rm -f conftest*
1755
1756 fi
1757 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1758 if test $ac_cv_type_size_t = no; then
1759 cat >> confdefs.h <<\EOF
1760 #define size_t unsigned
1761 EOF
1762
1763 fi
1764
1765 ##AC_CHECK_TYPE(socklen_t, unsigned) # doesn't search <sys/socket.h>
1766 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
1767 echo "configure:1768: checking for socklen_t" >&5
1768 if eval "test \"`echo '$''{'ac_cv_httptunnel_type_socklen_t'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1770 else
1771
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 #include <sys/types.h>
1776 #include <sys/socket.h>
1777 int main() {
1778 socklen_t len = 42; return 0;
1779 ; return 0; }
1780 EOF
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1782 rm -rf conftest*
1783 ac_cv_httptunnel_type_socklen_t=yes
1784 else
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 rm -rf conftest*
1788 ac_cv_httptunnel_type_socklen_t=no
1789 fi
1790 rm -f conftest*
1791
1792 fi
1793
1794 echo "$ac_t""$ac_cv_httptunnel_type_socklen_t" 1>&6
1795 if test $ac_cv_httptunnel_type_socklen_t != yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define socklen_t int
1798 EOF
1799
1800 fi
1801
1802 echo $ac_n "checking whether INADDR_NONE is defined""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether INADDR_NONE is defined" >&5
1804 if eval "test \"`echo '$''{'ac_cv_httptunnel_define_inaddr_none'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1806 else
1807
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 #include <sys/types.h>
1812 #include <netinet/in.h>
1813 int main() {
1814 return INADDR_NONE;
1815 ; return 0; }
1816 EOF
1817 if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 rm -rf conftest*
1819 ac_cv_httptunnel_define_inaddr_none=yes
1820 else
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 rm -rf conftest*
1824 ac_cv_httptunnel_define_inaddr_none=no
1825 fi
1826 rm -f conftest*
1827
1828 fi
1829
1830 echo "$ac_t""$ac_cv_httptunnel_define_inaddr_none" 1>&6
1831 if test $ac_cv_httptunnel_define_inaddr_none != yes; then
1832 cat >> confdefs.h <<\EOF
1833 #define INADDR_NONE 0xffffffff
1834 EOF
1835
1836 fi
1837
1838 echo $ac_n "checking size of char""... $ac_c" 1>&6
1839 echo "configure:1840: checking size of char" >&5
1840 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843 if test "$cross_compiling" = yes; then
1844 ac_cv_sizeof_char=1
1845 else
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <stdio.h>
1850 main()
1851 {
1852 FILE *f=fopen("conftestval", "w");
1853 if (!f) exit(1);
1854 fprintf(f, "%d\n", sizeof(char));
1855 exit(0);
1856 }
1857 EOF
1858 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1859 then
1860 ac_cv_sizeof_char=`cat conftestval`
1861 else
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -fr conftest*
1865 ac_cv_sizeof_char=0
1866 fi
1867 rm -fr conftest*
1868 fi
1869
1870 fi
1871 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1872 cat >> confdefs.h <<EOF
1873 #define SIZEOF_CHAR $ac_cv_sizeof_char
1874 EOF
1875
1876
1877 echo $ac_n "checking size of short""... $ac_c" 1>&6
1878 echo "configure:1879: checking size of short" >&5
1879 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 if test "$cross_compiling" = yes; then
1883 ac_cv_sizeof_short=2
1884 else
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 #include <stdio.h>
1889 main()
1890 {
1891 FILE *f=fopen("conftestval", "w");
1892 if (!f) exit(1);
1893 fprintf(f, "%d\n", sizeof(short));
1894 exit(0);
1895 }
1896 EOF
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1898 then
1899 ac_cv_sizeof_short=`cat conftestval`
1900 else
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 rm -fr conftest*
1904 ac_cv_sizeof_short=0
1905 fi
1906 rm -fr conftest*
1907 fi
1908
1909 fi
1910 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1911 cat >> confdefs.h <<EOF
1912 #define SIZEOF_SHORT $ac_cv_sizeof_short
1913 EOF
1914
1915
1916 echo $ac_n "checking size of int""... $ac_c" 1>&6
1917 echo "configure:1918: checking size of int" >&5
1918 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 if test "$cross_compiling" = yes; then
1922 ac_cv_sizeof_int=4
1923 else
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 #include <stdio.h>
1928 main()
1929 {
1930 FILE *f=fopen("conftestval", "w");
1931 if (!f) exit(1);
1932 fprintf(f, "%d\n", sizeof(int));
1933 exit(0);
1934 }
1935 EOF
1936 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1937 then
1938 ac_cv_sizeof_int=`cat conftestval`
1939 else
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 rm -fr conftest*
1943 ac_cv_sizeof_int=0
1944 fi
1945 rm -fr conftest*
1946 fi
1947
1948 fi
1949 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1950 cat >> confdefs.h <<EOF
1951 #define SIZEOF_INT $ac_cv_sizeof_int
1952 EOF
1953
1954
1955 echo $ac_n "checking size of long""... $ac_c" 1>&6
1956 echo "configure:1957: checking size of long" >&5
1957 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 if test "$cross_compiling" = yes; then
1961 ac_cv_sizeof_long=4
1962 else
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1966 #include <stdio.h>
1967 main()
1968 {
1969 FILE *f=fopen("conftestval", "w");
1970 if (!f) exit(1);
1971 fprintf(f, "%d\n", sizeof(long));
1972 exit(0);
1973 }
1974 EOF
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1976 then
1977 ac_cv_sizeof_long=`cat conftestval`
1978 else
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1981 rm -fr conftest*
1982 ac_cv_sizeof_long=0
1983 fi
1984 rm -fr conftest*
1985 fi
1986
1987 fi
1988 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1989 cat >> confdefs.h <<EOF
1990 #define SIZEOF_LONG $ac_cv_sizeof_long
1991 EOF
1992
1993
1994 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1995 echo "configure:1996: checking size of long long" >&5
1996 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 if test "$cross_compiling" = yes; then
2000 ac_cv_sizeof_long_long=8
2001 else
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <stdio.h>
2006 main()
2007 {
2008 FILE *f=fopen("conftestval", "w");
2009 if (!f) exit(1);
2010 fprintf(f, "%d\n", sizeof(long long));
2011 exit(0);
2012 }
2013 EOF
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2015 then
2016 ac_cv_sizeof_long_long=`cat conftestval`
2017 else
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -fr conftest*
2021 ac_cv_sizeof_long_long=0
2022 fi
2023 rm -fr conftest*
2024 fi
2025
2026 fi
2027 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2028 cat >> confdefs.h <<EOF
2029 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2030 EOF
2031
2032
2033
2034 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2035 echo "configure:2036: checking for 8-bit clean memcmp" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 if test "$cross_compiling" = yes; then
2040 ac_cv_func_memcmp_clean=no
2041 else
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045
2046 main()
2047 {
2048 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2049 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2050 }
2051
2052 EOF
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2054 then
2055 ac_cv_func_memcmp_clean=yes
2056 else
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -fr conftest*
2060 ac_cv_func_memcmp_clean=no
2061 fi
2062 rm -fr conftest*
2063 fi
2064
2065 fi
2066
2067 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2068 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2069
2070 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2071 echo "configure:2072: checking return type of signal handlers" >&5
2072 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <sys/types.h>
2079 #include <signal.h>
2080 #ifdef signal
2081 #undef signal
2082 #endif
2083 #ifdef __cplusplus
2084 extern "C" void (*signal (int, void (*)(int)))(int);
2085 #else
2086 void (*signal ()) ();
2087 #endif
2088
2089 int main() {
2090 int i;
2091 ; return 0; }
2092 EOF
2093 if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2094 rm -rf conftest*
2095 ac_cv_type_signal=void
2096 else
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 ac_cv_type_signal=int
2101 fi
2102 rm -f conftest*
2103 fi
2104
2105 echo "$ac_t""$ac_cv_type_signal" 1>&6
2106 cat >> confdefs.h <<EOF
2107 #define RETSIGTYPE $ac_cv_type_signal
2108 EOF
2109
2110
2111 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2112 echo "configure:2113: checking for vprintf" >&5
2113 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* System header to define __stub macros and hopefully few prototypes,
2120 which can conflict with char vprintf(); below. */
2121 #include <assert.h>
2122 /* Override any gcc2 internal prototype to avoid an error. */
2123 /* We use char because int might match the return type of a gcc2
2124 builtin and then its argument prototype would still apply. */
2125 char vprintf();
2126
2127 int main() {
2128
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2133 choke me
2134 #else
2135 vprintf();
2136 #endif
2137
2138 ; return 0; }
2139 EOF
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2141 rm -rf conftest*
2142 eval "ac_cv_func_vprintf=yes"
2143 else
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 rm -rf conftest*
2147 eval "ac_cv_func_vprintf=no"
2148 fi
2149 rm -f conftest*
2150 fi
2151
2152 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 cat >> confdefs.h <<\EOF
2155 #define HAVE_VPRINTF 1
2156 EOF
2157
2158 else
2159 echo "$ac_t""no" 1>&6
2160 fi
2161
2162 if test "$ac_cv_func_vprintf" != yes; then
2163 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2164 echo "configure:2165: checking for _doprnt" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char _doprnt(); below. */
2173 #include <assert.h>
2174 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2177 char _doprnt();
2178
2179 int main() {
2180
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2185 choke me
2186 #else
2187 _doprnt();
2188 #endif
2189
2190 ; return 0; }
2191 EOF
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 rm -rf conftest*
2194 eval "ac_cv_func__doprnt=yes"
2195 else
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_func__doprnt=no"
2200 fi
2201 rm -f conftest*
2202 fi
2203
2204 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2206 cat >> confdefs.h <<\EOF
2207 #define HAVE_DOPRNT 1
2208 EOF
2209
2210 else
2211 echo "$ac_t""no" 1>&6
2212 fi
2213
2214 fi
2215
2216 for ac_func in socket strdup strerror daemon vsyslog
2217 do
2218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_func" >&5
2220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 /* System header to define __stub macros and hopefully few prototypes,
2227 which can conflict with char $ac_func(); below. */
2228 #include <assert.h>
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2232 char $ac_func();
2233
2234 int main() {
2235
2236 /* The GNU C library defines this for functions which it implements
2237 to always fail with ENOSYS. Some functions are actually named
2238 something starting with __ and the normal name is an alias. */
2239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2240 choke me
2241 #else
2242 $ac_func();
2243 #endif
2244
2245 ; return 0; }
2246 EOF
2247 if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2248 rm -rf conftest*
2249 eval "ac_cv_func_$ac_func=yes"
2250 else
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 rm -rf conftest*
2254 eval "ac_cv_func_$ac_func=no"
2255 fi
2256 rm -f conftest*
2257 fi
2258
2259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2262 cat >> confdefs.h <<EOF
2263 #define $ac_tr_func 1
2264 EOF
2265
2266 else
2267 echo "$ac_t""no" 1>&6
2268 fi
2269 done
2270
2271 for ac_func in poll select endprotoent vsnprintf syslog
2272 do
2273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_func" >&5
2275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $ac_func(); below. */
2283 #include <assert.h>
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287 char $ac_func();
2288
2289 int main() {
2290
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2295 choke me
2296 #else
2297 $ac_func();
2298 #endif
2299
2300 ; return 0; }
2301 EOF
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 rm -rf conftest*
2304 eval "ac_cv_func_$ac_func=yes"
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 eval "ac_cv_func_$ac_func=no"
2310 fi
2311 rm -f conftest*
2312 fi
2313
2314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_func 1
2319 EOF
2320
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324 done
2325
2326
2327 trap '' 1 2 15
2328 cat > confcache <<\EOF
2329 # This file is a shell script that caches the results of configure
2330 # tests run on this system so they can be shared between configure
2331 # scripts and configure runs. It is not useful on other systems.
2332 # If it contains results you don't want to keep, you may remove or edit it.
2333 #
2334 # By default, configure uses ./config.cache as the cache file,
2335 # creating it if it does not exist already. You can give configure
2336 # the --cache-file=FILE option to use a different cache file; that is
2337 # what configure does when it calls configure scripts in
2338 # subdirectories, so they share the cache.
2339 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2340 # config.status only pays attention to the cache file if you give it the
2341 # --recheck option to rerun configure.
2342 #
2343 EOF
2344 # The following way of writing the cache mishandles newlines in values,
2345 # but we know of no workaround that is simple, portable, and efficient.
2346 # So, don't put newlines in cache variables' values.
2347 # Ultrix sh set writes to stderr and can't be redirected directly,
2348 # and sets the high bit in the cache file unless we assign to the vars.
2349 (set) 2>&1 |
2350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2351 *ac_space=\ *)
2352 # `set' does not quote correctly, so add quotes (double-quote substitution
2353 # turns \\\\ into \\, and sed turns \\ into \).
2354 sed -n \
2355 -e "s/'/'\\\\''/g" \
2356 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2357 ;;
2358 *)
2359 # `set' quotes correctly as required by POSIX, so do not add quotes.
2360 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2361 ;;
2362 esac >> confcache
2363 if cmp -s $cache_file confcache; then
2364 :
2365 else
2366 if test -w $cache_file; then
2367 echo "updating cache $cache_file"
2368 cat confcache > $cache_file
2369 else
2370 echo "not updating unwritable cache $cache_file"
2371 fi
2372 fi
2373 rm -f confcache
2374
2375 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2376
2377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2378 # Let make expand exec_prefix.
2379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2380
2381 # Any assignment to VPATH causes Sun make to only execute
2382 # the first set of double-colon rules, so remove it if not needed.
2383 # If there is a colon in the path, we need to keep it.
2384 if test "x$srcdir" = x.; then
2385 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2386 fi
2387
2388 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2389
2390 DEFS=-DHAVE_CONFIG_H
2391
2392 # Without the "./", some shells look in PATH for config.status.
2393 : ${CONFIG_STATUS=./config.status}
2394
2395 echo creating $CONFIG_STATUS
2396 rm -f $CONFIG_STATUS
2397 cat > $CONFIG_STATUS <<EOF
2398 #! /bin/sh
2399 # Generated automatically by configure.
2400 # Run this file to recreate the current configuration.
2401 # This directory was configured as follows,
2402 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2403 #
2404 # $0 $ac_configure_args
2405 #
2406 # Compiler output produced by configure, useful for debugging
2407 # configure, is in ./config.log if it exists.
2408
2409 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2410 for ac_option
2411 do
2412 case "\$ac_option" in
2413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2414 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2415 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2416 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2417 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2418 exit 0 ;;
2419 -help | --help | --hel | --he | --h)
2420 echo "\$ac_cs_usage"; exit 0 ;;
2421 *) echo "\$ac_cs_usage"; exit 1 ;;
2422 esac
2423 done
2424
2425 ac_given_srcdir=$srcdir
2426 ac_given_INSTALL="$INSTALL"
2427
2428 trap 'rm -fr `echo "Makefile port/Makefile port/sys/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2429 EOF
2430 cat >> $CONFIG_STATUS <<EOF
2431
2432 # Protect against being on the right side of a sed subst in config.status.
2433 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2434 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2435 $ac_vpsub
2436 $extrasub
2437 s%@SHELL@%$SHELL%g
2438 s%@CFLAGS@%$CFLAGS%g
2439 s%@CPPFLAGS@%$CPPFLAGS%g
2440 s%@CXXFLAGS@%$CXXFLAGS%g
2441 s%@FFLAGS@%$FFLAGS%g
2442 s%@DEFS@%$DEFS%g
2443 s%@LDFLAGS@%$LDFLAGS%g
2444 s%@LIBS@%$LIBS%g
2445 s%@exec_prefix@%$exec_prefix%g
2446 s%@prefix@%$prefix%g
2447 s%@program_transform_name@%$program_transform_name%g
2448 s%@bindir@%$bindir%g
2449 s%@sbindir@%$sbindir%g
2450 s%@libexecdir@%$libexecdir%g
2451 s%@datadir@%$datadir%g
2452 s%@sysconfdir@%$sysconfdir%g
2453 s%@sharedstatedir@%$sharedstatedir%g
2454 s%@localstatedir@%$localstatedir%g
2455 s%@libdir@%$libdir%g
2456 s%@includedir@%$includedir%g
2457 s%@oldincludedir@%$oldincludedir%g
2458 s%@infodir@%$infodir%g
2459 s%@mandir@%$mandir%g
2460 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2461 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2462 s%@INSTALL_DATA@%$INSTALL_DATA%g
2463 s%@PACKAGE@%$PACKAGE%g
2464 s%@VERSION@%$VERSION%g
2465 s%@ACLOCAL@%$ACLOCAL%g
2466 s%@AUTOCONF@%$AUTOCONF%g
2467 s%@AUTOMAKE@%$AUTOMAKE%g
2468 s%@AUTOHEADER@%$AUTOHEADER%g
2469 s%@MAKEINFO@%$MAKEINFO%g
2470 s%@SET_MAKE@%$SET_MAKE%g
2471 s%@SRCDIR_TRUE@%$SRCDIR_TRUE%g
2472 s%@SRCDIR_FALSE@%$SRCDIR_FALSE%g
2473 s%@AWK@%$AWK%g
2474 s%@CC@%$CC%g
2475 s%@LN_S@%$LN_S%g
2476 s%@RANLIB@%$RANLIB%g
2477 s%@CPP@%$CPP%g
2478 s%@LIBOBJS@%$LIBOBJS%g
2479
2480 CEOF
2481 EOF
2482
2483 cat >> $CONFIG_STATUS <<\EOF
2484
2485 # Split the substitutions into bite-sized pieces for seds with
2486 # small command number limits, like on Digital OSF/1 and HP-UX.
2487 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2488 ac_file=1 # Number of current file.
2489 ac_beg=1 # First line for current file.
2490 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2491 ac_more_lines=:
2492 ac_sed_cmds=""
2493 while $ac_more_lines; do
2494 if test $ac_beg -gt 1; then
2495 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2496 else
2497 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2498 fi
2499 if test ! -s conftest.s$ac_file; then
2500 ac_more_lines=false
2501 rm -f conftest.s$ac_file
2502 else
2503 if test -z "$ac_sed_cmds"; then
2504 ac_sed_cmds="sed -f conftest.s$ac_file"
2505 else
2506 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2507 fi
2508 ac_file=`expr $ac_file + 1`
2509 ac_beg=$ac_end
2510 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2511 fi
2512 done
2513 if test -z "$ac_sed_cmds"; then
2514 ac_sed_cmds=cat
2515 fi
2516 EOF
2517
2518 cat >> $CONFIG_STATUS <<EOF
2519
2520 CONFIG_FILES=\${CONFIG_FILES-"Makefile port/Makefile port/sys/Makefile"}
2521 EOF
2522 cat >> $CONFIG_STATUS <<\EOF
2523 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2525 case "$ac_file" in
2526 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2527 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2528 *) ac_file_in="${ac_file}.in" ;;
2529 esac
2530
2531 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2532
2533 # Remove last slash and all that follows it. Not all systems have dirname.
2534 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2535 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2536 # The file is in a subdirectory.
2537 test ! -d "$ac_dir" && mkdir "$ac_dir"
2538 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2539 # A "../" for each directory in $ac_dir_suffix.
2540 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2541 else
2542 ac_dir_suffix= ac_dots=
2543 fi
2544
2545 case "$ac_given_srcdir" in
2546 .) srcdir=.
2547 if test -z "$ac_dots"; then top_srcdir=.
2548 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2549 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2550 *) # Relative path.
2551 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2552 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2553 esac
2554
2555 case "$ac_given_INSTALL" in
2556 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2557 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2558 esac
2559
2560 echo creating "$ac_file"
2561 rm -f "$ac_file"
2562 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2563 case "$ac_file" in
2564 *Makefile*) ac_comsub="1i\\
2565 # $configure_input" ;;
2566 *) ac_comsub= ;;
2567 esac
2568
2569 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2570 sed -e "$ac_comsub
2571 s%@configure_input@%$configure_input%g
2572 s%@srcdir@%$srcdir%g
2573 s%@top_srcdir@%$top_srcdir%g
2574 s%@INSTALL@%$INSTALL%g
2575 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2576 fi; done
2577 rm -f conftest.s*
2578
2579 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2580 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2581 #
2582 # ac_d sets the value in "#define NAME VALUE" lines.
2583 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2584 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2585 ac_dC='\3'
2586 ac_dD='%g'
2587 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2588 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2589 ac_uB='\([ ]\)%\1#\2define\3'
2590 ac_uC=' '
2591 ac_uD='\4%g'
2592 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2593 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2594 ac_eB='$%\1#\2define\3'
2595 ac_eC=' '
2596 ac_eD='%g'
2597
2598 if test "${CONFIG_HEADERS+set}" != set; then
2599 EOF
2600 cat >> $CONFIG_STATUS <<EOF
2601 CONFIG_HEADERS="config.h"
2602 EOF
2603 cat >> $CONFIG_STATUS <<\EOF
2604 fi
2605 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2607 case "$ac_file" in
2608 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2609 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2610 *) ac_file_in="${ac_file}.in" ;;
2611 esac
2612
2613 echo creating $ac_file
2614
2615 rm -f conftest.frag conftest.in conftest.out
2616 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2617 cat $ac_file_inputs > conftest.in
2618
2619 EOF
2620
2621 # Transform confdefs.h into a sed script conftest.vals that substitutes
2622 # the proper values into config.h.in to produce config.h. And first:
2623 # Protect against being on the right side of a sed subst in config.status.
2624 # Protect against being in an unquoted here document in config.status.
2625 rm -f conftest.vals
2626 cat > conftest.hdr <<\EOF
2627 s/[\\&%]/\\&/g
2628 s%[\\$`]%\\&%g
2629 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2630 s%ac_d%ac_u%gp
2631 s%ac_u%ac_e%gp
2632 EOF
2633 sed -n -f conftest.hdr confdefs.h > conftest.vals
2634 rm -f conftest.hdr
2635
2636 # This sed command replaces #undef with comments. This is necessary, for
2637 # example, in the case of _POSIX_SOURCE, which is predefined and required
2638 # on some systems where configure will not decide to define it.
2639 cat >> conftest.vals <<\EOF
2640 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2641 EOF
2642
2643 # Break up conftest.vals because some shells have a limit on
2644 # the size of here documents, and old seds have small limits too.
2645
2646 rm -f conftest.tail
2647 while :
2648 do
2649 ac_lines=`grep -c . conftest.vals`
2650 # grep -c gives empty output for an empty file on some AIX systems.
2651 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2652 # Write a limited-size here document to conftest.frag.
2653 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2654 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2655 echo 'CEOF
2656 sed -f conftest.frag conftest.in > conftest.out
2657 rm -f conftest.in
2658 mv conftest.out conftest.in
2659 ' >> $CONFIG_STATUS
2660 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2661 rm -f conftest.vals
2662 mv conftest.tail conftest.vals
2663 done
2664 rm -f conftest.vals
2665
2666 cat >> $CONFIG_STATUS <<\EOF
2667 rm -f conftest.frag conftest.h
2668 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2669 cat conftest.in >> conftest.h
2670 rm -f conftest.in
2671 if cmp -s $ac_file conftest.h 2>/dev/null; then
2672 echo "$ac_file is unchanged"
2673 rm -f conftest.h
2674 else
2675 # Remove last slash and all that follows it. Not all systems have dirname.
2676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2678 # The file is in a subdirectory.
2679 test ! -d "$ac_dir" && mkdir "$ac_dir"
2680 fi
2681 rm -f $ac_file
2682 mv conftest.h $ac_file
2683 fi
2684 fi; done
2685
2686 EOF
2687 cat >> $CONFIG_STATUS <<EOF
2688
2689
2690 EOF
2691 cat >> $CONFIG_STATUS <<\EOF
2692 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2693
2694 exit 0
2695 EOF
2696 chmod +x $CONFIG_STATUS
2697 rm -fr confdefs* $ac_clean_files
2698 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2699