/[cvs]/eggdrop1.6/configure
ViewVC logotype

Contents of /eggdrop1.6/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.99 - (show annotations) (download)
Sat Nov 1 23:26:56 2003 UTC (16 years, 4 months ago) by wcc
Branch: MAIN
Changes since 1.98: +3 -162 lines
* Remove IPv6 for now. I know we've discussed this on the lists and in
  #eggdrop/#eggdev on Undernet, and I think we pretty much agreed (as far
  as 'agreeing' goes on eggdev anyway ;p) to ditch this hacked togeather
  code and get Ian's code tested and put that in an upcoming release instead.
  IPv6 realllyyyyyyy screwed up .15. I'm basically ready to release .16..
  can anyone think of anything else that needs to be done? Bugzilla is dead
  and i'm not sure if eggdev's up or not, but changes appears to work. The
  lists have been down alot lately. Anyway, e-mail me if I forgot any little
  pieces, but I don't think I did. -- Wcc

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
150 ;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS=" $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="src/eggdrop.h"
271 ac_default_prefix=\${HOME}/eggdrop
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 # include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 # include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP AWK BASENAME UNAME MOD_LD MOD_CC MOD_STRIP SHLIB_LD SHLIB_CC SHLIB_STRIP DEFAULT_MAKE MOD_EXT EGGEXEC TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS EGGVERSION DEST MOD_UPDIR LIBOBJS LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
356 ac_prev=
357 continue
358 fi
359
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362 # Accept the important Cygnus configure options, so we can diagnose typos.
363
364 case $ac_option in
365
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 ac_prev=bindir ;;
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir=$ac_optarg ;;
370
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
375
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
382
383 --config-cache | -C)
384 cache_file=config.cache ;;
385
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 ac_prev=datadir ;;
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 | --da=*)
390 datadir=$ac_optarg ;;
391
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
400
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 case $ac_option in
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "enable_$ac_feature='$ac_optarg'" ;;
413
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
422
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
425 with_gas=yes ;;
426
427 -help | --help | --hel | --he | -h)
428 ac_init_help=long ;;
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
433
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
438
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
445
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 ac_prev=infodir ;;
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
450
451 -libdir | --libdir | --libdi | --libd)
452 ac_prev=libdir ;;
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
454 libdir=$ac_optarg ;;
455
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
462
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
471
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 ac_prev=mandir ;;
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475 mandir=$ac_optarg ;;
476
477 -nfp | --nfp | --nf)
478 # Obsolete; use --without-fp.
479 with_fp=no ;;
480
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
483 no_create=yes ;;
484
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487 no_recursion=yes ;;
488
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
497
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 ac_prev=prefix ;;
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501 prefix=$ac_optarg ;;
502
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
509
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
516
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
533
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
536 silent=yes ;;
537
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 ac_prev=sbindir ;;
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 | --sbi=* | --sb=*)
542 sbindir=$ac_optarg ;;
543
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
547 | --sha | --sh)
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 | --sha=* | --sh=*)
553 sharedstatedir=$ac_optarg ;;
554
555 -site | --site | --sit)
556 ac_prev=site ;;
557 -site=* | --site=* | --sit=*)
558 site=$ac_optarg ;;
559
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 ac_prev=srcdir ;;
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563 srcdir=$ac_optarg ;;
564
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
571
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
576
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
578 verbose=yes ;;
579
580 -version | --version | --versio | --versi | --vers | -V)
581 ac_init_version=: ;;
582
583 -with-* | --with-*)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 case $ac_option in
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592 *) ac_optarg=yes ;;
593 esac
594 eval "with_$ac_package='$ac_optarg'" ;;
595
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
604
605 --x)
606 # Obsolete; use --with-x.
607 with_x=yes ;;
608
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
615
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
622
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
626 ;;
627
628 *=*)
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
636 export $ac_envvar ;;
637
638 *)
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644 ;;
645
646 esac
647 done
648
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
669 do
670 eval ac_val=$`echo $ac_var`
671 case $ac_val in
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
675 esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
692 cross_compiling=yes
693 fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
717 s/.*/./; q'`
718 srcdir=$ac_confdir
719 if test ! -r $srcdir/$ac_unique_file; then
720 srcdir=..
721 fi
722 else
723 ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
729 else
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
732 fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800 cat <<_ACEOF
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827 _ACEOF
828
829 cat <<\_ACEOF
830 _ACEOF
831 fi
832
833 if test -n "$ac_init_help"; then
834
835 cat <<\_ACEOF
836
837 Optional Features:
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-strip enable stripping of executables
841 --disable-cc-optimization disable -O2 cflag
842 --disable-tcl-threads disable threaded Tcl support if detected
843
844 Optional Packages:
845 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
846 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
847 --with-tcllib=PATH full path to Tcl library
848 --with-tclinc=PATH full path to Tcl header
849
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CPP C preprocessor
858
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
861
862 _ACEOF
863 fi
864
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
871
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
878 fi
879
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
896 # absolute.
897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
901
902 cd $ac_dir
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
905 echo
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
908 echo
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
912 echo
913 $ac_configure --help
914 else
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 fi
917 cd $ac_popdir
918 done
919 fi
920
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
923 cat <<\_ACEOF
924
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930 exit 0
931 fi
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
936
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.54. Invocation command line was
939
940 $ $0 $@
941
942 _ACEOF
943 {
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
948
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957
958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965
966 _ASUNAME
967
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
970 do
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974 done
975
976 } >&5
977
978 cat >&5 <<_ACEOF
979
980
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
984
985 _ACEOF
986
987
988 # Keep a trace of the command line.
989 # Strip out --no-create and --no-recursion so they do not pile up.
990 # Also quote any args containing shell meta-characters.
991 ac_configure_args=
992 ac_sep=
993 for ac_arg
994 do
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n ) continue ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 continue ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 esac
1004 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1005 # Get rid of the leading space.
1006 ac_sep=" "
1007 done
1008
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log. We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 # WARNING: Be sure not to use single quotes in there, as some shells,
1013 # such as our DU 5.0 friend, will then `close' the trap.
1014 trap 'exit_status=$?
1015 # Save into config.log some information that might help in debugging.
1016 {
1017 echo
1018
1019 cat <<\_ASBOX
1020 ## ---------------- ##
1021 ## Cache variables. ##
1022 ## ---------------- ##
1023 _ASBOX
1024 echo
1025 # The following way of writing the cache mishandles newlines in values,
1026 {
1027 (set) 2>&1 |
1028 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029 *ac_space=\ *)
1030 sed -n \
1031 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 ;;
1034 *)
1035 sed -n \
1036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 ;;
1038 esac;
1039 }
1040 echo
1041
1042 cat <<\_ASBOX
1043 ## ----------------- ##
1044 ## Output variables. ##
1045 ## ----------------- ##
1046 _ASBOX
1047 echo
1048 for ac_var in $ac_subst_vars
1049 do
1050 eval ac_val=$`echo $ac_var`
1051 echo "$ac_var='"'"'$ac_val'"'"'"
1052 done | sort
1053 echo
1054
1055 if test -n "$ac_subst_files"; then
1056 cat <<\_ASBOX
1057 ## ------------- ##
1058 ## Output files. ##
1059 ## ------------- ##
1060 _ASBOX
1061 echo
1062 for ac_var in $ac_subst_files
1063 do
1064 eval ac_val=$`echo $ac_var`
1065 echo "$ac_var='"'"'$ac_val'"'"'"
1066 done | sort
1067 echo
1068 fi
1069
1070 if test -s confdefs.h; then
1071 cat <<\_ASBOX
1072 ## ----------- ##
1073 ## confdefs.h. ##
1074 ## ----------- ##
1075 _ASBOX
1076 echo
1077 sed "/^$/d" confdefs.h | sort
1078 echo
1079 fi
1080 test "$ac_signal" != 0 &&
1081 echo "$as_me: caught signal $ac_signal"
1082 echo "$as_me: exit $exit_status"
1083 } >&5
1084 rm -f core core.* *.core &&
1085 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1086 exit $exit_status
1087 ' 0
1088 for ac_signal in 1 2 13 15; do
1089 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1090 done
1091 ac_signal=0
1092
1093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1094 rm -rf conftest* confdefs.h
1095 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1096 echo >confdefs.h
1097
1098 # Predefined preprocessor variables.
1099
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_NAME "$PACKAGE_NAME"
1102 _ACEOF
1103
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_STRING "$PACKAGE_STRING"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1122 _ACEOF
1123
1124
1125 # Let the site file select an alternate cache file if it wants to.
1126 # Prefer explicitly selected file to automatically selected ones.
1127 if test -z "$CONFIG_SITE"; then
1128 if test "x$prefix" != xNONE; then
1129 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1130 else
1131 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1132 fi
1133 fi
1134 for ac_site_file in $CONFIG_SITE; do
1135 if test -r "$ac_site_file"; then
1136 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1137 echo "$as_me: loading site script $ac_site_file" >&6;}
1138 sed 's/^/| /' "$ac_site_file" >&5
1139 . "$ac_site_file"
1140 fi
1141 done
1142
1143 if test -r "$cache_file"; then
1144 # Some versions of bash will fail to source /dev/null (special
1145 # files actually), so we avoid doing that.
1146 if test -f "$cache_file"; then
1147 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1148 echo "$as_me: loading cache $cache_file" >&6;}
1149 case $cache_file in
1150 [\\/]* | ?:[\\/]* ) . $cache_file;;
1151 *) . ./$cache_file;;
1152 esac
1153 fi
1154 else
1155 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1156 echo "$as_me: creating cache $cache_file" >&6;}
1157 >$cache_file
1158 fi
1159
1160 # Check that the precious variables saved in the cache have kept the same
1161 # value.
1162 ac_cache_corrupted=false
1163 for ac_var in `(set) 2>&1 |
1164 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1166 eval ac_new_set=\$ac_env_${ac_var}_set
1167 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1168 eval ac_new_val="\$ac_env_${ac_var}_value"
1169 case $ac_old_set,$ac_new_set in
1170 set,)
1171 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1172 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1173 ac_cache_corrupted=: ;;
1174 ,set)
1175 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1176 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1177 ac_cache_corrupted=: ;;
1178 ,);;
1179 *)
1180 if test "x$ac_old_val" != "x$ac_new_val"; then
1181 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1182 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1183 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1184 echo "$as_me: former value: $ac_old_val" >&2;}
1185 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1186 echo "$as_me: current value: $ac_new_val" >&2;}
1187 ac_cache_corrupted=:
1188 fi;;
1189 esac
1190 # Pass precious variables to config.status.
1191 if test "$ac_new_set" = set; then
1192 case $ac_new_val in
1193 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1195 *) ac_arg=$ac_var=$ac_new_val ;;
1196 esac
1197 case " $ac_configure_args " in
1198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1199 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1200 esac
1201 fi
1202 done
1203 if $ac_cache_corrupted; then
1204 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1205 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1206 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1207 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1208 { (exit 1); exit 1; }; }
1209 fi
1210
1211 ac_ext=c
1212 ac_cpp='$CPP $CPPFLAGS'
1213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235 ac_aux_dir=
1236 for ac_dir in misc $srcdir/misc; do
1237 if test -f $ac_dir/install-sh; then
1238 ac_aux_dir=$ac_dir
1239 ac_install_sh="$ac_aux_dir/install-sh -c"
1240 break
1241 elif test -f $ac_dir/install.sh; then
1242 ac_aux_dir=$ac_dir
1243 ac_install_sh="$ac_aux_dir/install.sh -c"
1244 break
1245 elif test -f $ac_dir/shtool; then
1246 ac_aux_dir=$ac_dir
1247 ac_install_sh="$ac_aux_dir/shtool install -c"
1248 break
1249 fi
1250 done
1251 if test -z "$ac_aux_dir"; then
1252 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&5
1253 echo "$as_me: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&2;}
1254 { (exit 1); exit 1; }; }
1255 fi
1256 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1257 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1258 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1259
1260
1261 ac_config_headers="$ac_config_headers config.h"
1262
1263
1264 echo "$as_me:$LINENO: result: " >&5
1265 echo "${ECHO_T}" >&6
1266 echo "$as_me:$LINENO: result: This is Eggdrop's GNU configure script." >&5
1267 echo "${ECHO_T}This is Eggdrop's GNU configure script." >&6
1268 echo "$as_me:$LINENO: result: It's going to run a bunch of strange tests to hopefully" >&5
1269 echo "${ECHO_T}It's going to run a bunch of strange tests to hopefully" >&6
1270 echo "$as_me:$LINENO: result: make your compile work without much twiddling." >&5
1271 echo "${ECHO_T}make your compile work without much twiddling." >&6
1272 echo "$as_me:$LINENO: result: " >&5
1273 echo "${ECHO_T}" >&6
1274
1275 # Remove --cache-file and --srcdir arguments so they do not pile up.
1276 egg_ac_parameters=
1277 ac_prev=
1278 for ac_arg in $ac_configure_args; do
1279 if test -n "$ac_prev"; then
1280 ac_prev=
1281 continue
1282 fi
1283 case $ac_arg in
1284 -cache-file | --cache-file | --cache-fil | --cache-fi \
1285 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1286 ac_prev=cache_file ;;
1287 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1288 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
1289 | --c=*)
1290 ;;
1291 --config-cache | -C)
1292 ;;
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294 ac_prev=srcdir ;;
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 ;;
1297 *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
1298 esac
1299 done
1300
1301
1302
1303 # Setup build environment
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 if test -n "$ac_tool_prefix"; then
1310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1311 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1312 echo "$as_me:$LINENO: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 else
1317 if test -n "$CC"; then
1318 ac_cv_prog_CC="$CC" # Let the user override the test.
1319 else
1320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 for as_dir in $PATH
1322 do
1323 IFS=$as_save_IFS
1324 test -z "$as_dir" && as_dir=.
1325 for ac_exec_ext in '' $ac_executable_extensions; do
1326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1327 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1329 break 2
1330 fi
1331 done
1332 done
1333
1334 fi
1335 fi
1336 CC=$ac_cv_prog_CC
1337 if test -n "$CC"; then
1338 echo "$as_me:$LINENO: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1340 else
1341 echo "$as_me:$LINENO: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1343 fi
1344
1345 fi
1346 if test -z "$ac_cv_prog_CC"; then
1347 ac_ct_CC=$CC
1348 # Extract the first word of "gcc", so it can be a program name with args.
1349 set dummy gcc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 if test -n "$ac_ct_CC"; then
1356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357 else
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361 IFS=$as_save_IFS
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_ac_ct_CC="gcc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 break 2
1368 fi
1369 done
1370 done
1371
1372 fi
1373 fi
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1378 else
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1381 fi
1382
1383 CC=$ac_ct_CC
1384 else
1385 CC="$ac_cv_prog_CC"
1386 fi
1387
1388 if test -z "$CC"; then
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}cc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 else
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403 IFS=$as_save_IFS
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}cc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409 break 2
1410 fi
1411 done
1412 done
1413
1414 fi
1415 fi
1416 CC=$ac_cv_prog_CC
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1420 else
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425 fi
1426 if test -z "$ac_cv_prog_CC"; then
1427 ac_ct_CC=$CC
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 break 2
1448 fi
1449 done
1450 done
1451
1452 fi
1453 fi
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1458 else
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463 CC=$ac_ct_CC
1464 else
1465 CC="$ac_cv_prog_CC"
1466 fi
1467
1468 fi
1469 if test -z "$CC"; then
1470 # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 ac_prog_rejected=no
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1489 ac_prog_rejected=yes
1490 continue
1491 fi
1492 ac_cv_prog_CC="cc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496 done
1497 done
1498
1499 if test $ac_prog_rejected = yes; then
1500 # We found a bogon in the path, so make sure we never use it.
1501 set dummy $ac_cv_prog_CC
1502 shift
1503 if test $# != 0; then
1504 # We chose a different compiler from the bogus one.
1505 # However, it has the same basename, so the bogon will be chosen
1506 # first if we set CC to just the basename; use the full file name.
1507 shift
1508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1509 fi
1510 fi
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$CC"; then
1524 if test -n "$ac_tool_prefix"; then
1525 for ac_prog in cl
1526 do
1527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1547 fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 test -n "$CC" && break
1563 done
1564 fi
1565 if test -z "$CC"; then
1566 ac_ct_CC=$CC
1567 for ac_prog in cl
1568 do
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo "$as_me:$LINENO: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 else
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_ac_ct_CC="$ac_prog"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1589 fi
1590 done
1591 done
1592
1593 fi
1594 fi
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1599 else
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1602 fi
1603
1604 test -n "$ac_ct_CC" && break
1605 done
1606
1607 CC=$ac_ct_CC
1608 fi
1609
1610 fi
1611
1612
1613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1614 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617 # Provide some information about the compiler.
1618 echo "$as_me:$LINENO:" \
1619 "checking for C compiler version" >&5
1620 ac_compiler=`set X $ac_compile; echo $2`
1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1622 (eval $ac_compiler --version </dev/null >&5) 2>&5
1623 ac_status=$?
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1627 (eval $ac_compiler -v </dev/null >&5) 2>&5
1628 ac_status=$?
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1632 (eval $ac_compiler -V </dev/null >&5) 2>&5
1633 ac_status=$?
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636
1637 cat >conftest.$ac_ext <<_ACEOF
1638 #line $LINENO "configure"
1639 #include "confdefs.h"
1640
1641 int
1642 main ()
1643 {
1644
1645 ;
1646 return 0;
1647 }
1648 _ACEOF
1649 ac_clean_files_save=$ac_clean_files
1650 ac_clean_files="$ac_clean_files a.out a.exe"
1651 # Try to create an executable without -o first, disregard a.out.
1652 # It will help us diagnose broken compilers, and finding out an intuition
1653 # of exeext.
1654 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1655 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1656 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1657 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1658 (eval $ac_link_default) 2>&5
1659 ac_status=$?
1660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661 (exit $ac_status); }; then
1662 # Find the output, starting from the most likely. This scheme is
1663 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1664 # resort.
1665
1666 # Be careful to initialize this variable, since it used to be cached.
1667 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1668 ac_cv_exeext=
1669 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1670 test -f "$ac_file" || continue
1671 case $ac_file in
1672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1673 a.out ) # We found the default executable, but exeext='' is most
1674 # certainly right.
1675 break;;
1676 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1678 export ac_cv_exeext
1679 break;;
1680 * ) break;;
1681 esac
1682 done
1683 else
1684 echo "$as_me: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1687 check \`config.log' for details." >&5
1688 echo "$as_me: error: C compiler cannot create executables
1689 check \`config.log' for details." >&2;}
1690 { (exit 77); exit 77; }; }
1691 fi
1692
1693 ac_exeext=$ac_cv_exeext
1694 echo "$as_me:$LINENO: result: $ac_file" >&5
1695 echo "${ECHO_T}$ac_file" >&6
1696
1697 # Check the compiler produces executables we can run. If not, either
1698 # the compiler is broken, or we cross compile.
1699 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1700 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1701 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1702 # If not cross compiling, check that we can run a simple program.
1703 if test "$cross_compiling" != yes; then
1704 if { ac_try='./$ac_file'
1705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706 (eval $ac_try) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }; }; then
1710 cross_compiling=no
1711 else
1712 if test "$cross_compiling" = maybe; then
1713 cross_compiling=yes
1714 else
1715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1716 If you meant to cross compile, use \`--host'." >&5
1717 echo "$as_me: error: cannot run C compiled programs.
1718 If you meant to cross compile, use \`--host'." >&2;}
1719 { (exit 1); exit 1; }; }
1720 fi
1721 fi
1722 fi
1723 echo "$as_me:$LINENO: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1725
1726 rm -f a.out a.exe conftest$ac_cv_exeext
1727 ac_clean_files=$ac_clean_files_save
1728 # Check the compiler produces executables we can run. If not, either
1729 # the compiler is broken, or we cross compile.
1730 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1731 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1732 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1733 echo "${ECHO_T}$cross_compiling" >&6
1734
1735 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1736 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1738 (eval $ac_link) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1744 # work properly (i.e., refer to `conftest.exe'), while it won't with
1745 # `rm'.
1746 for ac_file in conftest.exe conftest conftest.*; do
1747 test -f "$ac_file" || continue
1748 case $ac_file in
1749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1751 export ac_cv_exeext
1752 break;;
1753 * ) break;;
1754 esac
1755 done
1756 else
1757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1758 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1759 { (exit 1); exit 1; }; }
1760 fi
1761
1762 rm -f conftest$ac_cv_exeext
1763 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1764 echo "${ECHO_T}$ac_cv_exeext" >&6
1765
1766 rm -f conftest.$ac_ext
1767 EXEEXT=$ac_cv_exeext
1768 ac_exeext=$EXEEXT
1769 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1770 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1771 if test "${ac_cv_objext+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 cat >conftest.$ac_ext <<_ACEOF
1775 #line $LINENO "configure"
1776 #include "confdefs.h"
1777
1778 int
1779 main ()
1780 {
1781
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 rm -f conftest.o conftest.obj
1787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1788 (eval $ac_compile) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1793 case $ac_file in
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1796 break;;
1797 esac
1798 done
1799 else
1800 echo "$as_me: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1803 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
1806
1807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1808 fi
1809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810 echo "${ECHO_T}$ac_cv_objext" >&6
1811 OBJEXT=$ac_cv_objext
1812 ac_objext=$OBJEXT
1813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 cat >conftest.$ac_ext <<_ACEOF
1819 #line $LINENO "configure"
1820 #include "confdefs.h"
1821
1822 int
1823 main ()
1824 {
1825 #ifndef __GNUC__
1826 choke me
1827 #endif
1828
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 rm -f conftest.$ac_objext
1834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1835 (eval $ac_compile) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); } &&
1839 { ac_try='test -s conftest.$ac_objext'
1840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1841 (eval $ac_try) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }; }; then
1845 ac_compiler_gnu=yes
1846 else
1847 echo "$as_me: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 ac_compiler_gnu=no
1850 fi
1851 rm -f conftest.$ac_objext conftest.$ac_ext
1852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1853
1854 fi
1855 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1856 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1857 GCC=`test $ac_compiler_gnu = yes && echo yes`
1858 ac_test_CFLAGS=${CFLAGS+set}
1859 ac_save_CFLAGS=$CFLAGS
1860 CFLAGS="-g"
1861 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1863 if test "${ac_cv_prog_cc_g+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866 cat >conftest.$ac_ext <<_ACEOF
1867 #line $LINENO "configure"
1868 #include "confdefs.h"
1869
1870 int
1871 main ()
1872 {
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 rm -f conftest.$ac_objext
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 ac_cv_prog_cc_g=yes
1891 else
1892 echo "$as_me: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1894 ac_cv_prog_cc_g=no
1895 fi
1896 rm -f conftest.$ac_objext conftest.$ac_ext
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1899 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1900 if test "$ac_test_CFLAGS" = set; then
1901 CFLAGS=$ac_save_CFLAGS
1902 elif test $ac_cv_prog_cc_g = yes; then
1903 if test "$GCC" = yes; then
1904 CFLAGS="-g -O2"
1905 else
1906 CFLAGS="-g"
1907 fi
1908 else
1909 if test "$GCC" = yes; then
1910 CFLAGS="-O2"
1911 else
1912 CFLAGS=
1913 fi
1914 fi
1915 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1916 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1917 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 ac_cv_prog_cc_stdc=no
1921 ac_save_CC=$CC
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line $LINENO "configure"
1924 #include "confdefs.h"
1925 #include <stdarg.h>
1926 #include <stdio.h>
1927 #include <sys/types.h>
1928 #include <sys/stat.h>
1929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1930 struct buf { int x; };
1931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1932 static char *e (p, i)
1933 char **p;
1934 int i;
1935 {
1936 return p[i];
1937 }
1938 static char *f (char * (*g) (char **, int), char **p, ...)
1939 {
1940 char *s;
1941 va_list v;
1942 va_start (v,p);
1943 s = g (p, va_arg (v,int));
1944 va_end (v);
1945 return s;
1946 }
1947 int test (int i, double x);
1948 struct s1 {int (*f) (int a);};
1949 struct s2 {int (*f) (double a);};
1950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1951 int argc;
1952 char **argv;
1953 int
1954 main ()
1955 {
1956 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 # Don't try gcc -ansi; that turns off useful extensions and
1962 # breaks some systems' header files.
1963 # AIX -qlanglvl=ansi
1964 # Ultrix and OSF/1 -std1
1965 # HP-UX 10.20 and later -Ae
1966 # HP-UX older versions -Aa -D_HPUX_SOURCE
1967 # SVR4 -Xc -D__EXTENSIONS__
1968 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1969 do
1970 CC="$ac_save_CC $ac_arg"
1971 rm -f conftest.$ac_objext
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1974 ac_status=$?
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 ac_cv_prog_cc_stdc=$ac_arg
1984 break
1985 else
1986 echo "$as_me: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 fi
1989 rm -f conftest.$ac_objext
1990 done
1991 rm -f conftest.$ac_ext conftest.$ac_objext
1992 CC=$ac_save_CC
1993
1994 fi
1995
1996 case "x$ac_cv_prog_cc_stdc" in
1997 x|xno)
1998 echo "$as_me:$LINENO: result: none needed" >&5
1999 echo "${ECHO_T}none needed" >&6 ;;
2000 *)
2001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2003 CC="$CC $ac_cv_prog_cc_stdc" ;;
2004 esac
2005
2006 # Some people use a C++ compiler to compile C. Since we use `exit',
2007 # in C++ we need to declare it. In case someone uses the same compiler
2008 # for both compiling C and C++ we need to have the C++ compiler decide
2009 # the declaration of exit, since it's the most demanding environment.
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #ifndef __cplusplus
2012 choke me
2013 #endif
2014 _ACEOF
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -s conftest.$ac_objext'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 for ac_declaration in \
2028 ''\
2029 '#include <stdlib.h>' \
2030 'extern "C" void std::exit (int) throw (); using std::exit;' \
2031 'extern "C" void std::exit (int); using std::exit;' \
2032 'extern "C" void exit (int) throw ();' \
2033 'extern "C" void exit (int);' \
2034 'void exit (int);'
2035 do
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2038 #include "confdefs.h"
2039 #include <stdlib.h>
2040 $ac_declaration
2041 int
2042 main ()
2043 {
2044 exit (42);
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -s conftest.$ac_objext'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 :
2062 else
2063 echo "$as_me: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2065 continue
2066 fi
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 #include "confdefs.h"
2071 $ac_declaration
2072 int
2073 main ()
2074 {
2075 exit (42);
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2092 break
2093 else
2094 echo "$as_me: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2096 fi
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2098 done
2099 rm -f conftest*
2100 if test -n "$ac_declaration"; then
2101 echo '#ifdef __cplusplus' >>confdefs.h
2102 echo $ac_declaration >>confdefs.h
2103 echo '#endif' >>confdefs.h
2104 fi
2105
2106 else
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 fi
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2111 ac_ext=c
2112 ac_cpp='$CPP $CPPFLAGS'
2113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116
2117 if test "${cross_compiling-x}" = "x"
2118 then
2119 cat << 'EOF' >&2
2120 configure: error:
2121
2122 This system does not appear to have a working C compiler.
2123 A working C compiler is required to compile Eggdrop.
2124
2125 EOF
2126 exit 1
2127 fi
2128
2129
2130 # Crazy machines
2131
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2139 # On Suns, sometimes $CPP names a directory.
2140 if test -n "$CPP" && test -d "$CPP"; then
2141 CPP=
2142 fi
2143 if test -z "$CPP"; then
2144 if test "${ac_cv_prog_CPP+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 # Double quotes because CPP needs to be expanded
2148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2149 do
2150 ac_preproc_ok=false
2151 for ac_c_preproc_warn_flag in '' yes
2152 do
2153 # Use a header file that comes with gcc, so configuring glibc
2154 # with a fresh cross-compiler works.
2155 # On the NeXT, cc -E runs the code through the compiler's parser,
2156 # not just through cpp. "Syntax error" is here to catch this case.
2157 cat >conftest.$ac_ext <<_ACEOF
2158 #line $LINENO "configure"
2159 #include "confdefs.h"
2160 #include <assert.h>
2161 Syntax error
2162 _ACEOF
2163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } >/dev/null; then
2171 if test -s conftest.err; then
2172 ac_cpp_err=$ac_c_preproc_warn_flag
2173 else
2174 ac_cpp_err=
2175 fi
2176 else
2177 ac_cpp_err=yes
2178 fi
2179 if test -z "$ac_cpp_err"; then
2180 :
2181 else
2182 echo "$as_me: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 # Broken: fails on valid input.
2185 continue
2186 fi
2187 rm -f conftest.err conftest.$ac_ext
2188
2189 # OK, works on sane cases. Now check whether non-existent headers
2190 # can be detected and how.
2191 cat >conftest.$ac_ext <<_ACEOF
2192 #line $LINENO "configure"
2193 #include "confdefs.h"
2194 #include <ac_nonexistent.h>
2195 _ACEOF
2196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } >/dev/null; then
2204 if test -s conftest.err; then
2205 ac_cpp_err=$ac_c_preproc_warn_flag
2206 else
2207 ac_cpp_err=
2208 fi
2209 else
2210 ac_cpp_err=yes
2211 fi
2212 if test -z "$ac_cpp_err"; then
2213 # Broken: success on invalid input.
2214 continue
2215 else
2216 echo "$as_me: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2218 # Passes both tests.
2219 ac_preproc_ok=:
2220 break
2221 fi
2222 rm -f conftest.err conftest.$ac_ext
2223
2224 done
2225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2226 rm -f conftest.err conftest.$ac_ext
2227 if $ac_preproc_ok; then
2228 break
2229 fi
2230
2231 done
2232 ac_cv_prog_CPP=$CPP
2233
2234 fi
2235 CPP=$ac_cv_prog_CPP
2236 else
2237 ac_cv_prog_CPP=$CPP
2238 fi
2239 echo "$as_me:$LINENO: result: $CPP" >&5
2240 echo "${ECHO_T}$CPP" >&6
2241 ac_preproc_ok=false
2242 for ac_c_preproc_warn_flag in '' yes
2243 do
2244 # Use a header file that comes with gcc, so configuring glibc
2245 # with a fresh cross-compiler works.
2246 # On the NeXT, cc -E runs the code through the compiler's parser,
2247 # not just through cpp. "Syntax error" is here to catch this case.
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 #include "confdefs.h"
2251 #include <assert.h>
2252 Syntax error
2253 _ACEOF
2254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } >/dev/null; then
2262 if test -s conftest.err; then
2263 ac_cpp_err=$ac_c_preproc_warn_flag
2264 else
2265 ac_cpp_err=
2266 fi
2267 else
2268 ac_cpp_err=yes
2269 fi
2270 if test -z "$ac_cpp_err"; then
2271 :
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 # Broken: fails on valid input.
2276 continue
2277 fi
2278 rm -f conftest.err conftest.$ac_ext
2279
2280 # OK, works on sane cases. Now check whether non-existent headers
2281 # can be detected and how.
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2285 #include <ac_nonexistent.h>
2286 _ACEOF
2287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } >/dev/null; then
2295 if test -s conftest.err; then
2296 ac_cpp_err=$ac_c_preproc_warn_flag
2297 else
2298 ac_cpp_err=
2299 fi
2300 else
2301 ac_cpp_err=yes
2302 fi
2303 if test -z "$ac_cpp_err"; then
2304 # Broken: success on invalid input.
2305 continue
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 # Passes both tests.
2310 ac_preproc_ok=:
2311 break
2312 fi
2313 rm -f conftest.err conftest.$ac_ext
2314
2315 done
2316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2317 rm -f conftest.err conftest.$ac_ext
2318 if $ac_preproc_ok; then
2319 :
2320 else
2321 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2323 { (exit 1); exit 1; }; }
2324 fi
2325
2326 ac_ext=c
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331
2332
2333 echo "$as_me:$LINENO: checking for egrep" >&5
2334 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2335 if test "${ac_cv_prog_egrep+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2339 then ac_cv_prog_egrep='grep -E'
2340 else ac_cv_prog_egrep='egrep'
2341 fi
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2344 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2345 EGREP=$ac_cv_prog_egrep
2346
2347
2348
2349 echo "$as_me:$LINENO: checking for AIX" >&5
2350 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line $LINENO "configure"
2353 #include "confdefs.h"
2354 #ifdef _AIX
2355 yes
2356 #endif
2357
2358 _ACEOF
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360 $EGREP "yes" >/dev/null 2>&1; then
2361 echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6
2363 cat >>confdefs.h <<\_ACEOF
2364 #define _ALL_SOURCE 1
2365 _ACEOF
2366
2367 else
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371 rm -f conftest*
2372
2373
2374 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2375 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2376 if test "${ac_cv_search_strerror+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 ac_func_search_save_LIBS=$LIBS
2380 ac_cv_search_strerror=no
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 #include "confdefs.h"
2384
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 #ifdef __cplusplus
2387 extern "C"
2388 #endif
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2391 char strerror ();
2392 int
2393 main ()
2394 {
2395 strerror ();
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2402 (eval $ac_link) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 fi
2417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2418 if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2424
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char strerror ();
2432 int
2433 main ()
2434 {
2435 strerror ();
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext conftest$ac_exeext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -s conftest$ac_exeext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 ac_cv_search_strerror="-l$ac_lib"
2453 break
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 fi
2458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2459 done
2460 fi
2461 LIBS=$ac_func_search_save_LIBS
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2464 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2465 if test "$ac_cv_search_strerror" != no; then
2466 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2467
2468 fi
2469
2470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2472 if test "${ac_cv_header_stdc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 cat >conftest.$ac_ext <<_ACEOF
2476 #line $LINENO "configure"
2477 #include "confdefs.h"
2478 #include <stdlib.h>
2479 #include <stdarg.h>
2480 #include <string.h>
2481 #include <float.h>
2482
2483 _ACEOF
2484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 ac_status=$?
2487 grep -v '^ *+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2494 else
2495 ac_cpp_err=
2496 fi
2497 else
2498 ac_cpp_err=yes
2499 fi
2500 if test -z "$ac_cpp_err"; then
2501 ac_cv_header_stdc=yes
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 ac_cv_header_stdc=no
2506 fi
2507 rm -f conftest.err conftest.$ac_ext
2508
2509 if test $ac_cv_header_stdc = yes; then
2510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2514 #include <string.h>
2515
2516 _ACEOF
2517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2518 $EGREP "memchr" >/dev/null 2>&1; then
2519 :
2520 else
2521 ac_cv_header_stdc=no
2522 fi
2523 rm -f conftest*
2524
2525 fi
2526
2527 if test $ac_cv_header_stdc = yes; then
2528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2531 #include "confdefs.h"
2532 #include <stdlib.h>
2533
2534 _ACEOF
2535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2536 $EGREP "free" >/dev/null 2>&1; then
2537 :
2538 else
2539 ac_cv_header_stdc=no
2540 fi
2541 rm -f conftest*
2542
2543 fi
2544
2545 if test $ac_cv_header_stdc = yes; then
2546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2547 if test "$cross_compiling" = yes; then
2548 :
2549 else
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <ctype.h>
2554 #if ((' ' & 0x0FF) == 0x020)
2555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2557 #else
2558 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2559 || ('j' <= (c) && (c) <= 'r') \
2560 || ('s' <= (c) && (c) <= 'z'))
2561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2562 #endif
2563
2564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2565 int
2566 main ()
2567 {
2568 int i;
2569 for (i = 0; i < 256; i++)
2570 if (XOR (islower (i), ISLOWER (i))
2571 || toupper (i) != TOUPPER (i))
2572 exit(2);
2573 exit (0);
2574 }
2575 _ACEOF
2576 rm -f conftest$ac_exeext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578 (eval $ac_link) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 :
2588 else
2589 echo "$as_me: program exited with status $ac_status" >&5
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 ( exit $ac_status )
2593 ac_cv_header_stdc=no
2594 fi
2595 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2596 fi
2597 fi
2598 fi
2599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2601 if test $ac_cv_header_stdc = yes; then
2602
2603 cat >>confdefs.h <<\_ACEOF
2604 #define STDC_HEADERS 1
2605 _ACEOF
2606
2607 fi
2608
2609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2620 inttypes.h stdint.h unistd.h
2621 do
2622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2623 echo "$as_me:$LINENO: checking for $ac_header" >&5
2624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 #include "confdefs.h"
2631 $ac_includes_default
2632
2633 #include <$ac_header>
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 eval "$as_ac_Header=yes"
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 eval "$as_ac_Header=no"
2652 fi
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2654 fi
2655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2658 cat >>confdefs.h <<_ACEOF
2659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2660 _ACEOF
2661
2662 fi
2663
2664 done
2665
2666
2667 if test "${ac_cv_header_minix_config_h+set}" = set; then
2668 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2669 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2670 if test "${ac_cv_header_minix_config_h+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 fi
2673 echo "$as_me:$LINENO: