/[svn]/ircd-hybrid/configure
ViewVC logotype

Contents of /ircd-hybrid/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 641 - (show annotations)
Wed Jun 7 10:51:31 2006 UTC (15 years, 6 months ago) by michael
File size: 339084 byte(s)
- Renamed basename() to libio_basename() and use it everywhere instead
  of glibc's basename
- Updated configure.ac accordingly

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for ircd-hybrid 7.3.
4 #
5 # $Id$
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='ircd-hybrid'
271 PACKAGE_TARNAME='ircd-hybrid'
272 PACKAGE_VERSION='7.3'
273 PACKAGE_STRING='ircd-hybrid 7.3'
274 PACKAGE_BUGREPORT=''
275
276 ac_default_prefix=/usr/local/ircd
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD TEST INET_MISC CRYPT_C CRYPT_LIB SNPRINTF_C ENCSPEED ZLIB_LD SELECT_TYPE CLOBBER BALLOC_C EXAMPLE_CONF MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ DYNLINK_C LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652 done
653
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674 do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures ircd-hybrid 7.3 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of ircd-hybrid 7.3:";;
841 esac
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
848 --disable-openssl Disable OpenSSL support.
849 --disable-zlib Disable ziplinks support
850 --enable-poll Force poll() usage.
851 --enable-select Force select() usage.
852 --enable-kqueue Force kqueue() usage.
853 --enable-devpoll Force usage of /dev/poll.
854 --enable-rtsigio Enable SIGIO with RT Signals (Linux only)
855 --enable-epoll Enable Linux epoll support.
856 --enable-clobber Don't preserve old binaries on make install
857 --enable-profile Enable profiling
858 --enable-efence Enable ElectricFence (memory debugger).
859 --disable-block-alloc Disable the block allocator (Only useful with
860 ElectricFence)
861 --enable-warnings Enable all sorts of warnings for debugging.
862 --enable-small-net Enable small network support.
863 --enable-efnet For IRCDs running on EFnet.
864 --disable-gline-voting Disable G-line voting.
865 --enable-halfops Enable halfops support.
866 --enable-syslog="EVENTS"
867 Enable syslog for events: kill, squit, connect,
868 users, oper, space separated in quotes (default:
869 disabled)
870 --disable-shared-modules
871 Disable shared modules.
872
873 Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-zlib-path=DIR Path to libz.so for ziplinks support.
877 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15)
878 --with-syslog-facility=LOG
879 Define the log facility to use with ircd's syslog
880 output (default LOG_LOCAL4)
881 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max
882 390)
883
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967 esac
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
984 cd $ac_popdir
985 done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
991 ircd-hybrid configure 7.3
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997
998 $Id$
999 _ACEOF
1000 exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by ircd-hybrid $as_me 7.3, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1009
1010 $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126 {
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 ;;
1134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139 }
1140 echo
1141
1142 cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
1184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
1239 . "$ac_site_file"
1240 fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
1254 else
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344 ac_config_headers="$ac_config_headers include/setup.h"
1345
1346
1347
1348
1349
1350 cat >>confdefs.h <<\_ACEOF
1351 #define _GNU_SOURCE 1
1352 _ACEOF
1353
1354
1355
1356 OLD_CFLAGS="$CFLAGS"
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1372 else
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384 done
1385 done
1386
1387 fi
1388 fi
1389 CC=$ac_cv_prog_CC
1390 if test -n "$CC"; then
1391 echo "$as_me:$LINENO: result: $CC" >&5
1392 echo "${ECHO_T}$CC" >&6
1393 else
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1396 fi
1397
1398 fi
1399 if test -z "$ac_cv_prog_CC"; then
1400 ac_ct_CC=$CC
1401 # Extract the first word of "gcc", so it can be a program name with args.
1402 set dummy gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$ac_ct_CC"; then
1409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1413 do
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_ac_ct_CC="gcc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1421 fi
1422 done
1423 done
1424
1425 fi
1426 fi
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1434 fi
1435
1436 CC=$ac_ct_CC
1437 else
1438 CC="$ac_cv_prog_CC"
1439 fi
1440
1441 if test -z "$CC"; then
1442 if test -n "$ac_tool_prefix"; then
1443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1444 set dummy ${ac_tool_prefix}cc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1452 else
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_CC="${ac_tool_prefix}cc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 break 2
1463 fi
1464 done
1465 done
1466
1467 fi
1468 fi
1469 CC=$ac_cv_prog_CC
1470 if test -n "$CC"; then
1471 echo "$as_me:$LINENO: result: $CC" >&5
1472 echo "${ECHO_T}$CC" >&6
1473 else
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 fi
1477
1478 fi
1479 if test -z "$ac_cv_prog_CC"; then
1480 ac_ct_CC=$CC
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$ac_ct_CC"; then
1489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_ac_ct_CC="cc"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1501 fi
1502 done
1503 done
1504
1505 fi
1506 fi
1507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1508 if test -n "$ac_ct_CC"; then
1509 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1510 echo "${ECHO_T}$ac_ct_CC" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516 CC=$ac_ct_CC
1517 else
1518 CC="$ac_cv_prog_CC"
1519 fi
1520
1521 fi
1522 if test -z "$CC"; then
1523 # Extract the first word of "cc", so it can be a program name with args.
1524 set dummy cc; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 else
1533 ac_prog_rejected=no
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537 IFS=$as_save_IFS
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1542 ac_prog_rejected=yes
1543 continue
1544 fi
1545 ac_cv_prog_CC="cc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1548 fi
1549 done
1550 done
1551
1552 if test $ac_prog_rejected = yes; then
1553 # We found a bogon in the path, so make sure we never use it.
1554 set dummy $ac_cv_prog_CC
1555 shift
1556 if test $# != 0; then
1557 # We chose a different compiler from the bogus one.
1558 # However, it has the same basename, so the bogon will be chosen
1559 # first if we set CC to just the basename; use the full file name.
1560 shift
1561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1562 fi
1563 fi
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$CC"; then
1577 if test -n "$ac_tool_prefix"; then
1578 for ac_prog in cl
1579 do
1580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 if test -n "$CC"; then
1588 ac_cv_prog_CC="$CC" # Let the user override the test.
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 break 2
1600 fi
1601 done
1602 done
1603
1604 fi
1605 fi
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 test -n "$CC" && break
1616 done
1617 fi
1618 if test -z "$CC"; then
1619 ac_ct_CC=$CC
1620 for ac_prog in cl
1621 do
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$ac_ct_CC"; then
1630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_CC="$ac_prog"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1649 if test -n "$ac_ct_CC"; then
1650 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1651 echo "${ECHO_T}$ac_ct_CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657 test -n "$ac_ct_CC" && break
1658 done
1659
1660 CC=$ac_ct_CC
1661 fi
1662
1663 fi
1664
1665
1666 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details." >&5
1668 echo "$as_me: error: no acceptable C compiler found in \$PATH
1669 See \`config.log' for more details." >&2;}
1670 { (exit 1); exit 1; }; }
1671
1672 # Provide some information about the compiler.
1673 echo "$as_me:$LINENO:" \
1674 "checking for C compiler version" >&5
1675 ac_compiler=`set X $ac_compile; echo $2`
1676 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1677 (eval $ac_compiler --version </dev/null >&5) 2>&5
1678 ac_status=$?
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }
1681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1682 (eval $ac_compiler -v </dev/null >&5) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }
1686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1687 (eval $ac_compiler -V </dev/null >&5) 2>&5
1688 ac_status=$?
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691
1692 cat >conftest.$ac_ext <<_ACEOF
1693 /* confdefs.h. */
1694 _ACEOF
1695 cat confdefs.h >>conftest.$ac_ext
1696 cat >>conftest.$ac_ext <<_ACEOF
1697 /* end confdefs.h. */
1698
1699 int
1700 main ()
1701 {
1702
1703 ;
1704 return 0;
1705 }
1706 _ACEOF
1707 ac_clean_files_save=$ac_clean_files
1708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1709 # Try to create an executable without -o first, disregard a.out.
1710 # It will help us diagnose broken compilers, and finding out an intuition
1711 # of exeext.
1712 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1715 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1716 (eval $ac_link_default) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }; then
1720 # Find the output, starting from the most likely. This scheme is
1721 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 # resort.
1723
1724 # Be careful to initialize this variable, since it used to be cached.
1725 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1726 ac_cv_exeext=
1727 # b.out is created by i960 compilers.
1728 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1729 do
1730 test -f "$ac_file" || continue
1731 case $ac_file in
1732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1733 ;;
1734 conftest.$ac_ext )
1735 # This is the source file.
1736 ;;
1737 [ab].out )
1738 # We found the default executable, but exeext='' is most
1739 # certainly right.
1740 break;;
1741 *.* )
1742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 # FIXME: I believe we export ac_cv_exeext for Libtool,
1744 # but it would be cool to find out if it's true. Does anybody
1745 # maintain Libtool? --akim.
1746 export ac_cv_exeext
1747 break;;
1748 * )
1749 break;;
1750 esac
1751 done
1752 else
1753 echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: C compiler cannot create executables
1759 See \`config.log' for more details." >&2;}
1760 { (exit 77); exit 77; }; }
1761 fi
1762
1763 ac_exeext=$ac_cv_exeext
1764 echo "$as_me:$LINENO: result: $ac_file" >&5
1765 echo "${ECHO_T}$ac_file" >&6
1766
1767 # Check the compiler produces executables we can run. If not, either
1768 # the compiler is broken, or we cross compile.
1769 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1772 # If not cross compiling, check that we can run a simple program.
1773 if test "$cross_compiling" != yes; then
1774 if { ac_try='./$ac_file'
1775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1776 (eval $ac_try) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1780 cross_compiling=no
1781 else
1782 if test "$cross_compiling" = maybe; then
1783 cross_compiling=yes
1784 else
1785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'.
1787 See \`config.log' for more details." >&5
1788 echo "$as_me: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'.
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1792 fi
1793 fi
1794 fi
1795 echo "$as_me:$LINENO: result: yes" >&5
1796 echo "${ECHO_T}yes" >&6
1797
1798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1799 ac_clean_files=$ac_clean_files_save
1800 # Check the compiler produces executables we can run. If not, either
1801 # the compiler is broken, or we cross compile.
1802 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1803 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1804 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1805 echo "${ECHO_T}$cross_compiling" >&6
1806
1807 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1808 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1810 (eval $ac_link) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1816 # work properly (i.e., refer to `conftest.exe'), while it won't with
1817 # `rm'.
1818 for ac_file in conftest.exe conftest conftest.*; do
1819 test -f "$ac_file" || continue
1820 case $ac_file in
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1823 export ac_cv_exeext
1824 break;;
1825 * ) break;;
1826 esac
1827 done
1828 else
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836 rm -f conftest$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1838 echo "${ECHO_T}$ac_cv_exeext" >&6
1839
1840 rm -f conftest.$ac_ext
1841 EXEEXT=$ac_cv_exeext
1842 ac_exeext=$EXEEXT
1843 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1845 if test "${ac_cv_objext+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 cat >conftest.$ac_ext <<_ACEOF
1849 /* confdefs.h. */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1854
1855 int
1856 main ()
1857 {
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 case $ac_file in
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1873 break;;
1874 esac
1875 done
1876 else
1877 echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1883 See \`config.log' for more details." >&2;}
1884 { (exit 1); exit 1; }; }
1885 fi
1886
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1888 fi
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1892 ac_objext=$OBJEXT
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 cat >conftest.$ac_ext <<_ACEOF
1899 /* confdefs.h. */
1900 _ACEOF
1901 cat confdefs.h >>conftest.$ac_ext
1902 cat >>conftest.$ac_ext <<_ACEOF
1903 /* end confdefs.h. */
1904
1905 int
1906 main ()
1907 {
1908 #ifndef __GNUC__
1909 choke me
1910 #endif
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 rm -f conftest.$ac_objext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>conftest.er1
1919 ac_status=$?
1920 grep -v '^ *+' conftest.er1 >conftest.err
1921 rm -f conftest.er1
1922 cat conftest.err >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); } &&
1925 { ac_try='test -z "$ac_c_werror_flag"
1926 || test ! -s conftest.err'
1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 (eval $ac_try) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; } &&
1932 { ac_try='test -s conftest.$ac_objext'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1938 ac_compiler_gnu=yes
1939 else
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_compiler_gnu=no
1944 fi
1945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1947
1948 fi
1949 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1950 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1951 GCC=`test $ac_compiler_gnu = yes && echo yes`
1952 ac_test_CFLAGS=${CFLAGS+set}
1953 ac_save_CFLAGS=$CFLAGS
1954 CFLAGS="-g"
1955 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1957 if test "${ac_cv_prog_cc_g+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 cat >conftest.$ac_ext <<_ACEOF
1961 /* confdefs.h. */
1962 _ACEOF
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h. */
1966
1967 int
1968 main ()
1969 {
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>conftest.er1
1978 ac_status=$?
1979 grep -v '^ *+' conftest.er1 >conftest.err
1980 rm -f conftest.er1
1981 cat conftest.err >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -z "$ac_c_werror_flag"
1985 || test ! -s conftest.err'
1986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 (eval $ac_try) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 ac_cv_prog_cc_g=yes
1998 else
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_cv_prog_cc_g=no
2003 fi
2004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2007 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2008 if test "$ac_test_CFLAGS" = set; then
2009 CFLAGS=$ac_save_CFLAGS
2010 elif test $ac_cv_prog_cc_g = yes; then
2011 if test "$GCC" = yes; then
2012 CFLAGS="-g -O2"
2013 else
2014 CFLAGS="-g"
2015 fi
2016 else
2017 if test "$GCC" = yes; then
2018 CFLAGS="-O2"
2019 else
2020 CFLAGS=
2021 fi
2022 fi
2023 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2024 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2025 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 ac_cv_prog_cc_stdc=no
2029 ac_save_CC=$CC
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2036 #include <stdarg.h>
2037 #include <stdio.h>
2038 #include <sys/types.h>
2039 #include <sys/stat.h>
2040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2041 struct buf { int x; };
2042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2043 static char *e (p, i)
2044 char **p;
2045 int i;
2046 {
2047 return p[i];
2048 }
2049 static char *f (char * (*g) (char **, int), char **p, ...)
2050 {
2051 char *s;
2052 va_list v;
2053 va_start (v,p);
2054 s = g (p, va_arg (v,int));
2055 va_end (v);
2056 return s;
2057 }
2058
2059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2060 function prototypes and stuff, but not '\xHH' hex character constants.
2061 These don't provoke an error unfortunately, instead are silently treated
2062 as 'x'. The following induces an error, until -std1 is added to get
2063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2064 array size at least. It's necessary to write '\x00'==0 to get something
2065 that's true only with -std1. */
2066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2067
2068 int test (int i, double x);
2069 struct s1 {int (*f) (int a);};
2070 struct s2 {int (*f) (double a);};
2071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2072 int argc;
2073 char **argv;
2074 int
2075 main ()
2076 {
2077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 # Don't try gcc -ansi; that turns off useful extensions and
2083 # breaks some systems' header files.
2084 # AIX -qlanglvl=ansi
2085 # Ultrix and OSF/1 -std1
2086 # HP-UX 10.20 and later -Ae
2087 # HP-UX older versions -Aa -D_HPUX_SOURCE
2088 # SVR4 -Xc -D__EXTENSIONS__
2089 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2090 do
2091 CC="$ac_save_CC $ac_arg"
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2095 ac_status=$?
2096 grep -v '^ *+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2115 break
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 fi
2121 rm -f conftest.err conftest.$ac_objext
2122 done
2123 rm -f conftest.$ac_ext conftest.$ac_objext
2124 CC=$ac_save_CC
2125
2126 fi
2127
2128 case "x$ac_cv_prog_cc_stdc" in
2129 x|xno)
2130 echo "$as_me:$LINENO: result: none needed" >&5
2131 echo "${ECHO_T}none needed" >&6 ;;
2132 *)
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2135 CC="$CC $ac_cv_prog_cc_stdc" ;;
2136 esac
2137
2138 # Some people use a C++ compiler to compile C. Since we use `exit',
2139 # in C++ we need to declare it. In case someone uses the same compiler
2140 # for both compiling C and C++ we need to have the C++ compiler decide
2141 # the declaration of exit, since it's the most demanding environment.
2142 cat >conftest.$ac_ext <<_ACEOF
2143 #ifndef __cplusplus
2144 choke me
2145 #endif
2146 _ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>conftest.er1
2150 ac_status=$?
2151 grep -v '^ *+' conftest.er1 >conftest.err
2152 rm -f conftest.er1
2153 cat conftest.err >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -z "$ac_c_werror_flag"
2157 || test ! -s conftest.err'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 for ac_declaration in \
2170 '' \
2171 'extern "C" void std::exit (int) throw (); using std::exit;' \
2172 'extern "C" void std::exit (int); using std::exit;' \
2173 'extern "C" void exit (int) throw ();' \
2174 'extern "C" void exit (int);' \
2175 'void exit (int);'
2176 do
2177 cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h. */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2183 $ac_declaration
2184 #include <stdlib.h>
2185 int
2186 main ()
2187 {
2188 exit (42);
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 :
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 continue
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 cat >conftest.$ac_ext <<_ACEOF
2224 /* confdefs.h. */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2229 $ac_declaration
2230 int
2231 main ()
2232 {
2233 exit (42);
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 rm -f conftest.$ac_objext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>conftest.er1
2241 ac_status=$?
2242 grep -v '^ *+' conftest.er1 >conftest.err
2243 rm -f conftest.er1
2244 cat conftest.err >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -z "$ac_c_werror_flag"
2248 || test ! -s conftest.err'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 break
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 rm -f conftest*
2269 if test -n "$ac_declaration"; then
2270 echo '#ifdef __cplusplus' >>confdefs.h
2271 echo $ac_declaration >>confdefs.h
2272 echo '#endif' >>confdefs.h
2273 fi
2274
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_ext=c
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294 CFLAGS="$OLD_CFLAGS"
2295
2296
2297 if test "$ac_cv_c_compiler_gnu" != yes; then
2298
2299 SGS=no
2300 echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2301 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2302 case `$CC -version 2>&1` in
2303 *TenDRA*)
2304 echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2305 echo "${ECHO_T}yes, TenDRA" >&6
2306 IRC_CFLAGS=""
2307 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
2308 SGS=yes
2309 TenDRA=yes
2310 ;;
2311 *MIPSpro*)
2312 echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2313 echo "${ECHO_T}yes, MIPSpro" >&6
2314 MIPSpro=yes
2315 SGS=yes
2316 ;;
2317 *)
2318 echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 TenDRA=no
2321 MIPSpro=no
2322 ;;
2323 esac
2324
2325 echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2326 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2327 case `$CC -V 2>&1` in
2328 *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
2329 echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2330 echo "${ECHO_T}Sun Workshop/Forte" >&6
2331 IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString"
2332 SunWorkShop=yes
2333 SGS=yes
2334 ;;
2335 *Tru64*)
2336 echo "$as_me:$LINENO: result: Tru64 cc" >&5
2337 echo "${ECHO_T}Tru64 cc" >&6
2338 IRC_CFLAGS=""
2339 CPPFLAGS="-I/usr/local/include"
2340 Tru=yes
2341 ;;
2342 *HP*ANSI*)
2343 echo "$as_me:$LINENO: result: HPUX cc" >&5
2344 echo "${ECHO_T}HPUX cc" >&6
2345 HPUX=yes
2346 IRC_CFLAGS="+e"
2347 ;;
2348 *)
2349 echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 ;;
2352 esac
2353
2354 fi
2355
2356 echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
2357 echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6
2358 case `uname -s` in
2359 HP-UX*)
2360
2361 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2362 echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2363 echo "${ECHO_T}assuming old HPUX with its own cc" >&6
2364 IRC_CFLAGS="$IRC_CFLAGS +e"
2365 HPUX=yes
2366 else
2367 echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2368 echo "${ECHO_T}already using newer HPUX" >&6
2369 fi
2370 ;;
2371 CYGWIN*)
2372 echo "$as_me:$LINENO: result: Cygwin" >&5
2373 echo "${ECHO_T}Cygwin" >&6
2374 CYGWIN=yes
2375 ;;
2376 SunOS*)
2377 echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2378 echo "${ECHO_T}SunOS or Solaris" >&6
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define __EXTENSIONS__ 1
2382 _ACEOF
2383
2384 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 ;;
2389 esac
2390
2391 if test "$ac_cv_c_compiler_gnu" = yes; then
2392 echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2393 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6
2394
2395 if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
2396 AppleGCC=yes
2397 else
2398 AppleGCC=no
2399 fi
2400
2401 echo "$as_me:$LINENO: result: $AppleGCC" >&5
2402 echo "${ECHO_T}$AppleGCC" >&6
2403
2404 IRC_CFLAGS="$IRC_CFLAGS -Wall -O0"
2405 fi
2406
2407 if test "$ac_cv_prog_cc_g" = yes; then
2408 if test "$Tru" = yes; then
2409 IRC_CFLAGS="$IRC_CFLAGS -g3"
2410 else
2411 IRC_CFLAGS="$IRC_CFLAGS -g"
2412 fi
2413 fi
2414
2415 echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2416 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2417 if test "$SGS" = "yes"; then
2418 echo "$as_me:$LINENO: result: yes" >&5
2419 echo "${ECHO_T}yes" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425 # Extract the first word of "mkdep", so it can be a program name with args.
2426 set dummy mkdep; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_path_MKDEP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 case $MKDEP in
2433 [\\/]* | ?:[\\/]*)
2434 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2435 ;;
2436 *)
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450
2451 ;;
2452 esac
2453 fi
2454 MKDEP=$ac_cv_path_MKDEP
2455
2456 if test -n "$MKDEP"; then
2457 echo "$as_me:$LINENO: result: $MKDEP" >&5
2458 echo "${ECHO_T}$MKDEP" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2462 fi
2463
2464 # Extract the first word of "makedepend", so it can be a program name with args.
2465 set dummy makedepend; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 case $MAKEDEPEND in
2472 [\\/]* | ?:[\\/]*)
2473 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2474 ;;
2475 *)
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489
2490 ;;
2491 esac
2492 fi
2493 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2494
2495 if test -n "$MAKEDEPEND"; then
2496 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2497 echo "${ECHO_T}$MAKEDEPEND" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2505 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2506
2507 STDOUT="> .depend"
2508
2509 if test "$ac_cv_c_compiler_gnu" = yes; then
2510 echo "$as_me:$LINENO: result: gcc -MM" >&5
2511 echo "${ECHO_T}gcc -MM" >&6
2512 MKDEP="$CC -MM"
2513 elif test ! -z "$MKDEP"; then
2514 echo "$as_me:$LINENO: result: mkdep" >&5
2515 echo "${ECHO_T}mkdep" >&6
2516
2517 if test -z "$Tru"; then
2518 STDOUT=""
2519 else
2520 STDOUT=" 2> /dev/null"
2521 fi
2522 elif test "$SunWorkShop" = yes; then
2523 echo "$as_me:$LINENO: result: $CC -xM" >&5
2524 echo "${ECHO_T}$CC -xM" >&6
2525 MKDEP="$CC -xM"
2526 STDOUT="> .depend 2> /dev/null"
2527 elif test ! -z "$MAKEDEPEND"; then
2528 echo "$as_me:$LINENO: result: makedepend" >&5
2529 echo "${ECHO_T}makedepend" >&6
2530 MKDEP="$MAKEDEPEND -f-"
2531 else
2532 echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2533 echo "${ECHO_T}nothing suitable.. forget it!" >&6
2534 MKDEP=":"
2535 fi
2536
2537
2538
2539
2540 echo "$as_me:$LINENO: checking for /dev/null" >&5
2541 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2542 if test -c /dev/null ; then
2543
2544 cat >>confdefs.h <<\_ACEOF
2545 #define PATH_DEVNULL "/dev/null"
2546 _ACEOF
2547
2548 echo "$as_me:$LINENO: result: yes" >&5
2549 echo "${ECHO_T}yes" >&6
2550 else
2551
2552 cat >>confdefs.h <<\_ACEOF
2553 #define PATH_DEVNULL "devnull.log"
2554 _ACEOF
2555
2556 echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2557 echo "${ECHO_T}no - using devnull.log" >&6
2558 fi
2559
2560 if test ! -z "$CFLAGS"; then
2561 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2562 fi
2563
2564
2565 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2566 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2567 if test "${ac_cv_search_strerror+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 ac_func_search_save_LIBS=$LIBS
2571 ac_cv_search_strerror=no
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578
2579 /* Override any gcc2 internal prototype to avoid an error. */
2580 #ifdef __cplusplus
2581 extern "C"
2582 #endif
2583 /* We use char because int might match the return type of a gcc2
2584 builtin and then its argument prototype would still apply. */
2585 char strerror ();
2586 int
2587 main ()
2588 {
2589 strerror ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext conftest$ac_exeext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596 (eval $ac_link) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest$ac_exeext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_search_strerror="none required"
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 fi
2622 rm -f conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2624 if test "$ac_cv_search_strerror" = no; then
2625 for ac_lib in cposix; do
2626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 #ifdef __cplusplus
2636 extern "C"
2637 #endif
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2640 char strerror ();
2641 int
2642 main ()
2643 {
2644 strerror ();
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 rm -f conftest.$ac_objext conftest$ac_exeext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2651 (eval $ac_link) 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -z "$ac_c_werror_flag"
2659 || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest$ac_exeext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_cv_search_strerror="-l$ac_lib"
2672 break
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 fi
2678 rm -f conftest.err conftest.$ac_objext \
2679 conftest$ac_exeext conftest.$ac_ext
2680 done
2681 fi
2682 LIBS=$ac_func_search_save_LIBS
2683 fi
2684 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2685 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2686 if test "$ac_cv_search_strerror" != no; then
2687 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2688
2689 fi
2690
2691 echo "$as_me:$LINENO: checking for inline" >&5
2692 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2693 if test "${ac_cv_c_inline+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 ac_cv_c_inline=no
2697 for ac_kw in inline __inline__ __inline; do
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h. */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704 #ifndef __cplusplus
2705 typedef int foo_t;
2706 static $ac_kw foo_t static_foo () {return 0; }
2707 $ac_kw foo_t foo () {return 0; }
2708 #endif
2709
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_c_inline=$ac_kw; break
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2744 echo "${ECHO_T}$ac_cv_c_inline" >&6
2745
2746
2747 case $ac_cv_c_inline in
2748 inline | yes) ;;
2749 *)
2750 case $ac_cv_c_inline in
2751 no) ac_val=;;
2752 *) ac_val=$ac_cv_c_inline;;
2753 esac
2754 cat >>confdefs.h <<_ACEOF
2755 #ifndef __cplusplus
2756 #define inline $ac_val
2757 #endif
2758 _ACEOF
2759 ;;
2760 esac
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2768 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2769 # On Suns, sometimes $CPP names a directory.
2770 if test -n "$CPP" && test -d "$CPP"; then
2771 CPP=
2772 fi
2773 if test -z "$CPP"; then
2774 if test "${ac_cv_prog_CPP+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 # Double quotes because CPP needs to be expanded
2778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2779 do
2780 ac_preproc_ok=false
2781 for ac_c_preproc_warn_flag in '' yes
2782 do
2783 # Use a header file that comes with gcc, so configuring glibc
2784 # with a fresh cross-compiler works.
2785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 # <limits.h> exists even on freestanding compilers.
2787 # On the NeXT, cc -E runs the code through the compiler's parser,
2788 # not just through cpp. "Syntax error" is here to catch this case.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2800 Syntax error
2801 _ACEOF
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2813 else
2814 ac_cpp_err=
2815 fi
2816 else
2817 ac_cpp_err=yes
2818 fi
2819 if test -z "$ac_cpp_err"; then
2820 :
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 # Broken: fails on valid input.
2826 continue
2827 fi
2828 rm -f conftest.err conftest.$ac_ext
2829
2830 # OK, works on sane cases. Now check whether non-existent headers
2831 # can be detected and how.
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2851 else
2852 ac_cpp_err=
2853 fi
2854 else
2855 ac_cpp_err=yes
2856 fi
2857 if test -z "$ac_cpp_err"; then
2858 # Broken: success on invalid input.
2859 continue
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 # Passes both tests.
2865 ac_preproc_ok=:
2866 break
2867 fi
2868 rm -f conftest.err conftest.$ac_ext
2869
2870 done
2871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872 rm -f conftest.err conftest.$ac_ext
2873 if $ac_preproc_ok; then
2874 break
2875 fi
2876
2877 done
2878 ac_cv_prog_CPP=$CPP
2879
2880 fi
2881 CPP=$ac_cv_prog_CPP
2882 else
2883 ac_cv_prog_CPP=$CPP
2884 fi
2885 echo "$as_me:$LINENO: result: $CPP" >&5
2886 echo "${ECHO_T}$CPP" >&6
2887 ac_preproc_ok=false
2888 for ac_c_preproc_warn_flag in '' yes
2889 do
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907 Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 else
2921 ac_cpp_err=
2922 fi
2923 else
2924 ac_cpp_err=yes
2925 fi
2926 if test -z "$ac_cpp_err"; then
2927 :
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 # Broken: fails on valid input.
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_ext
2936
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958 else
2959 ac_cpp_err=
2960 fi
2961 else
2962 ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2966 continue
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 # Passes both tests.
2972 ac_preproc_ok=:
2973 break
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977 done
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2981 :
2982 else
2983 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2988 fi
2989
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
2996
2997 echo "$as_me:$LINENO: checking for egrep" >&5
2998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2999 if test "${ac_cv_prog_egrep+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3003 then ac_cv_prog_egrep='grep -E'
3004 else ac_cv_prog_egrep='egrep'
3005 fi
3006 fi
3007 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3008 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3009 EGREP=$ac_cv_prog_egrep
3010
3011
3012 if test $ac_cv_c_compiler_gnu = yes; then
3013 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3014 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3015 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 ac_pattern="Autoconf.*'x'"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #include <sgtty.h>
3026 Autoconf TIOCGETP
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030 ac_cv_prog_gcc_traditional=yes
3031 else
3032 ac_cv_prog_gcc_traditional=no
3033 fi
3034 rm -f conftest*
3035
3036
3037 if test $ac_cv_prog_gcc_traditional = no; then
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3044 #include <termio.h>
3045 Autoconf TCGETA
3046 _ACEOF
3047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3049 ac_cv_prog_gcc_traditional=yes
3050 fi
3051 rm -f conftest*
3052
3053 fi
3054 fi
3055 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3056 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3057 if test $ac_cv_prog_gcc_traditional = yes; then
3058 CC="$CC -traditional"
3059 fi
3060 fi
3061
3062 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3064 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3065 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.make <<\_ACEOF
3069 all:
3070 @echo 'ac_maketemp="$(MAKE)"'
3071 _ACEOF
3072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3073 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3074 if test -n "$ac_maketemp"; then
3075 eval ac_cv_prog_make_${ac_make}_set=yes
3076 else
3077 eval ac_cv_prog_make_${ac_make}_set=no
3078 fi
3079 rm -f conftest.make
3080 fi
3081 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 SET_MAKE=
3085 else
3086 echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3088 SET_MAKE="MAKE=${MAKE-make}"
3089 fi
3090
3091 ac_aux_dir=
3092 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3093 if test -f $ac_dir/install-sh; then
3094 ac_aux_dir=$ac_dir
3095 ac_install_sh="$ac_aux_dir/install-sh -c"
3096 break
3097 elif test -f $ac_dir/install.sh; then
3098 ac_aux_dir=$ac_dir
3099 ac_install_sh="$ac_aux_dir/install.sh -c"
3100 break
3101 elif test -f $ac_dir/shtool; then
3102 ac_aux_dir=$ac_dir
3103 ac_install_sh="$ac_aux_dir/shtool install -c"
3104 break
3105 fi
3106 done
3107 if test -z "$ac_aux_dir"; then
3108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3109 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3110 { (exit 1); exit 1; }; }
3111 fi
3112 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3113 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3114 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3115
3116 # Find a good install program. We prefer a C program (faster),
3117 # so one script is as good as another. But avoid the broken or
3118 # incompatible versions:
3119 # SysV /etc/install, /usr/sbin/install
3120 # SunOS /usr/etc/install
3121 # IRIX /sbin/install
3122 # AIX /bin/install
3123 # AmigaOS /C/install, which installs bootblocks on floppy discs
3124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3127 # OS/2's system install, which has a completely different semantic
3128 # ./install, which can be erroneously created by make from ./install.sh.
3129 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3130 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3131 if test -z "$INSTALL"; then
3132 if test "${ac_cv_path_install+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 # Account for people who put trailing slashes in PATH elements.
3141 case $as_dir/ in
3142 ./ | .// | /cC/* | \
3143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3145 /usr/ucb/* ) ;;
3146 *)
3147 # OSF1 and SCO ODT 3.0 have their own names for install.
3148 # Don't use installbsd from OSF since it installs stuff as root
3149 # by default.
3150 for ac_prog in ginstall scoinst install; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3153 if test $ac_prog = install &&
3154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3155 # AIX install. It has an incompatible calling convention.
3156 :
3157 elif test $ac_prog = install &&
3158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3159 # program-specific install script used by HP pwplus--don't use.
3160 :
3161 else
3162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3163 break 3
3164 fi
3165 fi
3166 done
3167 done
3168 ;;
3169 esac
3170 done
3171
3172
3173 fi
3174 if test "${ac_cv_path_install+set}" = set; then
3175 INSTALL=$ac_cv_path_install
3176 else
3177 # As a last resort, use the slow shell script. We don't cache a
3178 # path for INSTALL within a source directory, because that will
3179 # break other packages using the cache if that directory is
3180 # removed, or if the path is relative.
3181 INSTALL=$ac_install_sh
3182 fi
3183 fi
3184 echo "$as_me:$LINENO: result: $INSTALL" >&5
3185 echo "${ECHO_T}$INSTALL" >&6
3186
3187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3188 # It thinks the first close brace ends the variable substitution.
3189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3190
3191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3192
3193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3194
3195 # Extract the first word of "rm", so it can be a program name with args.
3196 set dummy rm; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_path_RM+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 case $RM in
3203 [\\/]* | ?:[\\/]*)
3204 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3205 ;;
3206 *)
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220
3221 ;;
3222 esac
3223 fi
3224 RM=$ac_cv_path_RM
3225
3226 if test -n "$RM"; then
3227 echo "$as_me:$LINENO: result: $RM" >&5
3228 echo "${ECHO_T}$RM" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232 fi
3233
3234 # Extract the first word of "cp", so it can be a program name with args.
3235 set dummy cp; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_CP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 case $CP in
3242 [\\/]* | ?:[\\/]*)
3243 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3244 ;;
3245 *)
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259
3260 ;;
3261 esac
3262 fi
3263 CP=$ac_cv_path_CP
3264
3265 if test -n "$CP"; then
3266 echo "$as_me:$LINENO: result: $CP" >&5
3267 echo "${ECHO_T}$CP" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3271 fi
3272
3273 # Extract the first word of "mv", so it can be a program name with args.
3274 set dummy mv; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_path_MV+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 case $MV in
3281 [\\/]* | ?:[\\/]*)
3282 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3283 ;;
3284 *)
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298
3299 ;;
3300 esac
3301 fi
3302 MV=$ac_cv_path_MV
3303
3304 if test -n "$MV"; then
3305 echo "$as_me:$LINENO: result: $MV" >&5
3306 echo "${ECHO_T}$MV" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 # Extract the first word of "ln", so it can be a program name with args.
3313 set dummy ln; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_path_LN+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 case $LN in
3320 [\\/]* | ?:[\\/]*)
3321 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3322 ;;
3323 *)
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337
3338 ;;
3339 esac
3340 fi
3341 LN=$ac_cv_path_LN
3342
3343 if test -n "$LN"; then
3344 echo "$as_me:$LINENO: result: $LN" >&5
3345 echo "${ECHO_T}$LN" >&6
3346 else
3347 echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349 fi
3350
3351 # Extract the first word of "sed", so it can be a program name with args.
3352 set dummy sed; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_path_SED+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 case $SED in
3359 [\\/]* | ?:[\\/]*)
3360 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3361 ;;
3362 *)
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376
3377 ;;
3378 esac
3379 fi
3380 SED=$ac_cv_path_SED
3381
3382 if test -n "$SED"; then
3383 echo "$as_me:$LINENO: result: $SED" >&5
3384 echo "${ECHO_T}$SED" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390 # Extract the first word of "ar", so it can be a program name with args.
3391 set dummy ar; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_path_AR+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 case $AR in
3398 [\\/]* | ?:[\\/]*)
3399 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3400 ;;
3401 *)
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415
3416 ;;
3417 esac
3418 fi
3419 AR=$ac_cv_path_AR
3420
3421 if test -n "$AR"; then
3422 echo "$as_me:$LINENO: result: $AR" >&5
3423 echo "${ECHO_T}$AR" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429 # Extract the first word of "ld", so it can be a program name with args.
3430 set dummy ld; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_LD+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 case $LD in
3437 [\\/]* | ?:[\\/]*)
3438 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3439 ;;
3440 *)
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454
3455 ;;
3456 esac
3457 fi
3458 LD=$ac_cv_path_LD
3459
3460 if test -n "$LD"; then
3461 echo "$as_me:$LINENO: result: $LD" >&5
3462 echo "${ECHO_T}$LD" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "test", so it can be a program name with args.
3469 set dummy test; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_TEST+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 case $TEST in
3476 [\\/]* | ?:[\\/]*)
3477 ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
3478 ;;
3479 *)
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493
3494 test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test"
3495 ;;
3496 esac
3497 fi
3498 TEST=$ac_cv_path_TEST
3499
3500 if test -n "$TEST"; then
3501 echo "$as_me:$LINENO: result: $TEST" >&5
3502 echo "${ECHO_T}$TEST" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508
3509 if test "$libexecdir" = '${exec_prefix}/libexec' &&
3510 test "$localstatedir" = '${prefix}/var'; then
3511 libexecdir='${bindir}'
3512 localstatedir='${prefix}'
3513 fi
3514
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_header_stdc=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_header_stdc=no
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569
3570 if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <string.h>
3579
3580 _ACEOF
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 $EGREP "memchr" >/dev/null 2>&1; then
3583 :
3584 else
3585 ac_cv_header_stdc=no
3586 fi
3587 rm -f conftest*
3588
3589 fi
3590
3591 if test $ac_cv_header_stdc = yes; then
3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <stdlib.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "free" >/dev/null 2>&1; then
3604 :
3605 else
3606 ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614 if test "$cross_compiling" = yes; then
3615 :
3616 else
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ctype.h>
3624 #if ((' ' & 0x0FF) == 0x020)
3625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627 #else
3628 # define ISLOWER(c) \
3629 (('a' <= (c) && (c) <= 'i') \
3630 || ('j' <= (c) && (c) <= 'r') \
3631 || ('s' <= (c) && (c) <= 'z'))
3632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633 #endif
3634
3635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636 int
3637 main ()
3638 {
3639 int i;
3640 for (i = 0; i < 256; i++)
3641 if (XOR (islower (i), ISLOWER (i))
3642 || toupper (i) != TOUPPER (i))
3643 exit(2);
3644 exit (0);
3645 }
3646 _ACEOF
3647 rm -f conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 :
3659 else
3660 echo "$as_me: program exited with status $ac_status" >&5
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 ( exit $ac_status )
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 fi
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3673 if test $ac_cv_header_stdc = yes; then
3674
3675 cat >>confdefs.h <<\_ACEOF
3676 #define STDC_HEADERS 1
3677 _ACEOF
3678
3679 fi
3680
3681
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3693 inttypes.h stdint.h unistd.h
3694 do
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 echo "$as_me:$LINENO: checking for $ac_header" >&5
3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 $ac_includes_default
3708
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 eval "$as_ac_Header=yes"
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 eval "$as_ac_Header=no"
3739 fi
3740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3745 cat >>confdefs.h <<_ACEOF
3746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3747 _ACEOF
3748
3749 fi
3750
3751 done
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h
3767 do
3768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 fi
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 else
3778 # Is the header compilable?
3779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 $ac_includes_default
3788 #include <$ac_header>
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_header_compiler=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 ac_header_compiler=no
3818 fi
3819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3821 echo "${ECHO_T}$ac_header_compiler" >&6
3822
3823 # Is the header present?
3824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3826 cat >con