* ld-cris/hiddef1.d, ld-cris/hiddef1.d, ld-cris/hidrefgotplt1.s:
[binutils.git] / gprof / configure
blobff641067ccef0a02a0661f362caea4054ee5aadc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="gprof.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WARN_CFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --disable-nls do not use Native Language Support
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-pic try to use only PIC/non-PIC objects default=use both
869 --with-included-gettext use the GNU gettext library included here
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 _ACEOF
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 else
898 ac_dir_suffix= ac_top_builddir=
901 case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 fi ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
919 case `pwd` in
920 .) ac_abs_builddir="$ac_dir";;
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
954 esac
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 cd "$ac_popdir"
972 done
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977 cat <<\_ACEOF
979 Copyright (C) 2003 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
982 _ACEOF
983 exit 0
985 exec 5>config.log
986 cat >&5 <<_ACEOF
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59. Invocation command line was
993 $ $0 $@
995 _ACEOF
997 cat <<_ASUNAME
998 ## --------- ##
999 ## Platform. ##
1000 ## --------- ##
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 _ASUNAME
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 for as_dir in $PATH
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027 done
1029 } >&5
1031 cat >&5 <<_ACEOF
1034 ## ----------- ##
1035 ## Core tests. ##
1036 ## ----------- ##
1038 _ACEOF
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_configure_args=
1047 ac_configure_args0=
1048 ac_configure_args1=
1049 ac_sep=
1050 ac_must_keep_next=false
1051 for ac_pass in 1 2
1053 for ac_arg
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1086 esac
1087 done
1088 done
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1100 echo
1102 cat <<\_ASBOX
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1106 _ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 esac;
1123 echo
1125 cat <<\_ASBOX
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140 ## ------------- ##
1141 ## Output files. ##
1142 ## ------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155 ## ----------- ##
1156 ## confdefs.h. ##
1157 ## ----------- ##
1158 _ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 done
1174 ac_signal=0
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 echo >confdefs.h
1181 # Predefined preprocessor variables.
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 _ACEOF
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1222 . "$ac_site_file"
1224 done
1226 if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1232 case $cache_file in
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1235 esac
1237 else
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1240 >$cache_file
1243 # Check that the precious variables saved in the cache have kept the same
1244 # value.
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1253 set,)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,set)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,);;
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267 echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269 echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1285 done
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1294 ac_ext=c
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 ac_aux_dir=
1321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322 if test -f $ac_dir/install-sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 break
1326 elif test -f $ac_dir/install.sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 break
1330 elif test -f $ac_dir/shtool; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 break
1335 done
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339 { (exit 1); exit 1; }; }
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345 # Make sure we can run config.sub.
1346 $ac_config_sub sun4 >/dev/null 2>&1 ||
1347 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1348 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1349 { (exit 1); exit 1; }; }
1351 echo "$as_me:$LINENO: checking build system type" >&5
1352 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1353 if test "${ac_cv_build+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 ac_cv_build_alias=$build_alias
1357 test -z "$ac_cv_build_alias" &&
1358 ac_cv_build_alias=`$ac_config_guess`
1359 test -z "$ac_cv_build_alias" &&
1360 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1361 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1362 { (exit 1); exit 1; }; }
1363 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1364 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1366 { (exit 1); exit 1; }; }
1369 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1370 echo "${ECHO_T}$ac_cv_build" >&6
1371 build=$ac_cv_build
1372 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 echo "$as_me:$LINENO: checking host system type" >&5
1378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1379 if test "${ac_cv_host+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 ac_cv_host_alias=$host_alias
1383 test -z "$ac_cv_host_alias" &&
1384 ac_cv_host_alias=$ac_cv_build_alias
1385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1388 { (exit 1); exit 1; }; }
1391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1392 echo "${ECHO_T}$ac_cv_host" >&6
1393 host=$ac_cv_host
1394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399 echo "$as_me:$LINENO: checking target system type" >&5
1400 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1401 if test "${ac_cv_target+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 ac_cv_target_alias=$target_alias
1405 test "x$ac_cv_target_alias" = "x" &&
1406 ac_cv_target_alias=$ac_cv_host_alias
1407 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1414 echo "${ECHO_T}$ac_cv_target" >&6
1415 target=$ac_cv_target
1416 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 # The aliases save the names the user supplied, while $host etc.
1422 # will get canonicalized.
1423 test -n "$target_alias" &&
1424 test "$program_prefix$program_suffix$program_transform_name" = \
1425 NONENONEs,x,x, &&
1426 program_prefix=${target_alias}-
1427 ac_ext=c
1428 ac_cpp='$CPP $CPPFLAGS'
1429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432 if test -n "$ac_tool_prefix"; then
1433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 if test -n "$CC"; then
1441 ac_cv_prog_CC="$CC" # Let the user override the test.
1442 else
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1446 IFS=$as_save_IFS
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1454 done
1455 done
1459 CC=$ac_cv_prog_CC
1460 if test -n "$CC"; then
1461 echo "$as_me:$LINENO: result: $CC" >&5
1462 echo "${ECHO_T}$CC" >&6
1463 else
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1469 if test -z "$ac_cv_prog_CC"; then
1470 ac_ct_CC=$CC
1471 # Extract the first word of "gcc", so it can be a program name with args.
1472 set dummy gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 if test -n "$ac_ct_CC"; then
1479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_ac_ct_CC="gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1492 done
1493 done
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 CC=$ac_ct_CC
1507 else
1508 CC="$ac_cv_prog_CC"
1511 if test -z "$CC"; then
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}cc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_CC="${ac_tool_prefix}cc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 break 2
1534 done
1535 done
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$ac_cv_prog_CC"; then
1550 ac_ct_CC=$CC
1551 # Extract the first word of "cc", so it can be a program name with args.
1552 set dummy cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558 if test -n "$ac_ct_CC"; then
1559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_ac_ct_CC="cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1572 done
1573 done
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1586 CC=$ac_ct_CC
1587 else
1588 CC="$ac_cv_prog_CC"
1592 if test -z "$CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 ac_prog_rejected=no
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1612 ac_prog_rejected=yes
1613 continue
1615 ac_cv_prog_CC="cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1619 done
1620 done
1622 if test $ac_prog_rejected = yes; then
1623 # We found a bogon in the path, so make sure we never use it.
1624 set dummy $ac_cv_prog_CC
1625 shift
1626 if test $# != 0; then
1627 # We chose a different compiler from the bogus one.
1628 # However, it has the same basename, so the bogon will be chosen
1629 # first if we set CC to just the basename; use the full file name.
1630 shift
1631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 CC=$ac_cv_prog_CC
1637 if test -n "$CC"; then
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1640 else
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1646 if test -z "$CC"; then
1647 if test -n "$ac_tool_prefix"; then
1648 for ac_prog in cl
1650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1685 test -n "$CC" && break
1686 done
1688 if test -z "$CC"; then
1689 ac_ct_CC=$CC
1690 for ac_prog in cl
1692 # Extract the first word of "$ac_prog", so it can be a program name with args.
1693 set dummy $ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699 if test -n "$ac_ct_CC"; then
1700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_ac_ct_CC="$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 break 2
1713 done
1714 done
1718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1719 if test -n "$ac_ct_CC"; then
1720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1721 echo "${ECHO_T}$ac_ct_CC" >&6
1722 else
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$ac_ct_CC" && break
1728 done
1730 CC=$ac_ct_CC
1736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&5
1738 echo "$as_me: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&2;}
1740 { (exit 1); exit 1; }; }
1742 # Provide some information about the compiler.
1743 echo "$as_me:$LINENO:" \
1744 "checking for C compiler version" >&5
1745 ac_compiler=`set X $ac_compile; echo $2`
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1747 (eval $ac_compiler --version </dev/null >&5) 2>&5
1748 ac_status=$?
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1752 (eval $ac_compiler -v </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1757 (eval $ac_compiler -V </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1762 cat >conftest.$ac_ext <<_ACEOF
1763 /* confdefs.h. */
1764 _ACEOF
1765 cat confdefs.h >>conftest.$ac_ext
1766 cat >>conftest.$ac_ext <<_ACEOF
1767 /* end confdefs.h. */
1770 main ()
1774 return 0;
1776 _ACEOF
1777 ac_clean_files_save=$ac_clean_files
1778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1779 # Try to create an executable without -o first, disregard a.out.
1780 # It will help us diagnose broken compilers, and finding out an intuition
1781 # of exeext.
1782 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1785 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1786 (eval $ac_link_default) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; then
1790 # Find the output, starting from the most likely. This scheme is
1791 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1792 # resort.
1794 # Be careful to initialize this variable, since it used to be cached.
1795 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 ac_cv_exeext=
1797 # b.out is created by i960 compilers.
1798 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 test -f "$ac_file" || continue
1801 case $ac_file in
1802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804 conftest.$ac_ext )
1805 # This is the source file.
1807 [ab].out )
1808 # We found the default executable, but exeext='' is most
1809 # certainly right.
1810 break;;
1811 *.* )
1812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813 # FIXME: I believe we export ac_cv_exeext for Libtool,
1814 # but it would be cool to find out if it's true. Does anybody
1815 # maintain Libtool? --akim.
1816 export ac_cv_exeext
1817 break;;
1819 break;;
1820 esac
1821 done
1822 else
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&2;}
1830 { (exit 77); exit 77; }; }
1833 ac_exeext=$ac_cv_exeext
1834 echo "$as_me:$LINENO: result: $ac_file" >&5
1835 echo "${ECHO_T}$ac_file" >&6
1837 # Check the compiler produces executables we can run. If not, either
1838 # the compiler is broken, or we cross compile.
1839 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1842 # If not cross compiling, check that we can run a simple program.
1843 if test "$cross_compiling" != yes; then
1844 if { ac_try='./$ac_file'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1850 cross_compiling=no
1851 else
1852 if test "$cross_compiling" = maybe; then
1853 cross_compiling=yes
1854 else
1855 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&2;}
1861 { (exit 1); exit 1; }; }
1865 echo "$as_me:$LINENO: result: yes" >&5
1866 echo "${ECHO_T}yes" >&6
1868 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1869 ac_clean_files=$ac_clean_files_save
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1873 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1874 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1875 echo "${ECHO_T}$cross_compiling" >&6
1877 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1878 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1880 (eval $ac_link) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1886 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 # `rm'.
1888 for ac_file in conftest.exe conftest conftest.*; do
1889 test -f "$ac_file" || continue
1890 case $ac_file in
1891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1893 export ac_cv_exeext
1894 break;;
1895 * ) break;;
1896 esac
1897 done
1898 else
1899 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1906 rm -f conftest$ac_cv_exeext
1907 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1908 echo "${ECHO_T}$ac_cv_exeext" >&6
1910 rm -f conftest.$ac_ext
1911 EXEEXT=$ac_cv_exeext
1912 ac_exeext=$EXEEXT
1913 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1914 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1915 if test "${ac_cv_objext+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 /* confdefs.h. */
1970 _ACEOF
1971 cat confdefs.h >>conftest.$ac_ext
1972 cat >>conftest.$ac_ext <<_ACEOF
1973 /* end confdefs.h. */
1976 main ()
1978 #ifndef __GNUC__
1979 choke me
1980 #endif
1983 return 0;
1985 _ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 ac_compiler_gnu=yes
2008 else
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 ac_compiler_gnu=no
2014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2020 GCC=`test $ac_compiler_gnu = yes && echo yes`
2021 ac_test_CFLAGS=${CFLAGS+set}
2022 ac_save_CFLAGS=$CFLAGS
2023 CFLAGS="-g"
2024 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2025 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2026 if test "${ac_cv_prog_cc_g+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 cat >conftest.$ac_ext <<_ACEOF
2030 /* confdefs.h. */
2031 _ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2037 main ()
2041 return 0;
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2047 ac_status=$?
2048 grep -v '^ *+' conftest.er1 >conftest.err
2049 rm -f conftest.er1
2050 cat conftest.err >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 (eval $ac_try) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2065 ac_cv_prog_cc_g=yes
2066 else
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_cv_prog_cc_g=no
2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2076 if test "$ac_test_CFLAGS" = set; then
2077 CFLAGS=$ac_save_CFLAGS
2078 elif test $ac_cv_prog_cc_g = yes; then
2079 if test "$GCC" = yes; then
2080 CFLAGS="-g -O2"
2081 else
2082 CFLAGS="-g"
2084 else
2085 if test "$GCC" = yes; then
2086 CFLAGS="-O2"
2087 else
2088 CFLAGS=
2091 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2092 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2093 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_cv_prog_cc_stdc=no
2097 ac_save_CC=$CC
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2104 #include <stdarg.h>
2105 #include <stdio.h>
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2112 char **p;
2113 int i;
2115 return p[i];
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2119 char *s;
2120 va_list v;
2121 va_start (v,p);
2122 s = g (p, va_arg (v,int));
2123 va_end (v);
2124 return s;
2127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2128 function prototypes and stuff, but not '\xHH' hex character constants.
2129 These don't provoke an error unfortunately, instead are silently treated
2130 as 'x'. The following induces an error, until -std1 is added to get
2131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2132 array size at least. It's necessary to write '\x00'==0 to get something
2133 that's true only with -std1. */
2134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136 int test (int i, double x);
2137 struct s1 {int (*f) (int a);};
2138 struct s2 {int (*f) (double a);};
2139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2140 int argc;
2141 char **argv;
2143 main ()
2145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2147 return 0;
2149 _ACEOF
2150 # Don't try gcc -ansi; that turns off useful extensions and
2151 # breaks some systems' header files.
2152 # AIX -qlanglvl=ansi
2153 # Ultrix and OSF/1 -std1
2154 # HP-UX 10.20 and later -Ae
2155 # HP-UX older versions -Aa -D_HPUX_SOURCE
2156 # SVR4 -Xc -D__EXTENSIONS__
2157 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 CC="$ac_save_CC $ac_arg"
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_stdc=$ac_arg
2182 break
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2188 rm -f conftest.err conftest.$ac_objext
2189 done
2190 rm -f conftest.$ac_ext conftest.$ac_objext
2191 CC=$ac_save_CC
2195 case "x$ac_cv_prog_cc_stdc" in
2196 x|xno)
2197 echo "$as_me:$LINENO: result: none needed" >&5
2198 echo "${ECHO_T}none needed" >&6 ;;
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2202 CC="$CC $ac_cv_prog_cc_stdc" ;;
2203 esac
2205 # Some people use a C++ compiler to compile C. Since we use `exit',
2206 # in C++ we need to declare it. In case someone uses the same compiler
2207 # for both compiling C and C++ we need to have the C++ compiler decide
2208 # the declaration of exit, since it's the most demanding environment.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #ifndef __cplusplus
2211 choke me
2212 #endif
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 for ac_declaration in \
2236 '' \
2237 'extern "C" void std::exit (int) throw (); using std::exit;' \
2238 'extern "C" void std::exit (int); using std::exit;' \
2239 'extern "C" void exit (int) throw ();' \
2240 'extern "C" void exit (int);' \
2241 'void exit (int);'
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2249 $ac_declaration
2250 #include <stdlib.h>
2252 main ()
2254 exit (42);
2256 return 0;
2258 _ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2262 ac_status=$?
2263 grep -v '^ *+' conftest.er1 >conftest.err
2264 rm -f conftest.er1
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2285 continue
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2294 $ac_declaration
2296 main ()
2298 exit (42);
2300 return 0;
2302 _ACEOF
2303 rm -f conftest.$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2306 ac_status=$?
2307 grep -v '^ *+' conftest.er1 >conftest.err
2308 rm -f conftest.er1
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2324 break
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 done
2332 rm -f conftest*
2333 if test -n "$ac_declaration"; then
2334 echo '#ifdef __cplusplus' >>confdefs.h
2335 echo $ac_declaration >>confdefs.h
2336 echo '#endif' >>confdefs.h
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 ac_ext=c
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2353 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2354 if test "${ac_cv_search_strerror+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 ac_func_search_save_LIBS=$LIBS
2358 ac_cv_search_strerror=no
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 #ifdef __cplusplus
2368 extern "C"
2369 #endif
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372 char strerror ();
2374 main ()
2376 strerror ();
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2383 (eval $ac_link) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest$ac_exeext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_search_strerror="none required"
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext \
2409 conftest$ac_exeext conftest.$ac_ext
2410 if test "$ac_cv_search_strerror" = no; then
2411 for ac_lib in cposix; do
2412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2420 /* Override any gcc2 internal prototype to avoid an error. */
2421 #ifdef __cplusplus
2422 extern "C"
2423 #endif
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2426 char strerror ();
2428 main ()
2430 strerror ();
2432 return 0;
2434 _ACEOF
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2437 (eval $ac_link) 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest$ac_exeext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_search_strerror="-l$ac_lib"
2457 break
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext \
2464 conftest$ac_exeext conftest.$ac_ext
2465 done
2467 LIBS=$ac_func_search_save_LIBS
2469 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2470 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2471 if test "$ac_cv_search_strerror" != no; then
2472 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2477 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2478 am__api_version="1.8"
2479 # Find a good install program. We prefer a C program (faster),
2480 # so one script is as good as another. But avoid the broken or
2481 # incompatible versions:
2482 # SysV /etc/install, /usr/sbin/install
2483 # SunOS /usr/etc/install
2484 # IRIX /sbin/install
2485 # AIX /bin/install
2486 # AmigaOS /C/install, which installs bootblocks on floppy discs
2487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2490 # OS/2's system install, which has a completely different semantic
2491 # ./install, which can be erroneously created by make from ./install.sh.
2492 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2493 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2494 if test -z "$INSTALL"; then
2495 if test "${ac_cv_path_install+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 # Account for people who put trailing slashes in PATH elements.
2504 case $as_dir/ in
2505 ./ | .// | /cC/* | \
2506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2507 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2508 /usr/ucb/* ) ;;
2510 # OSF1 and SCO ODT 3.0 have their own names for install.
2511 # Don't use installbsd from OSF since it installs stuff as root
2512 # by default.
2513 for ac_prog in ginstall scoinst install; do
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2516 if test $ac_prog = install &&
2517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518 # AIX install. It has an incompatible calling convention.
2520 elif test $ac_prog = install &&
2521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # program-specific install script used by HP pwplus--don't use.
2524 else
2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2526 break 3
2529 done
2530 done
2532 esac
2533 done
2537 if test "${ac_cv_path_install+set}" = set; then
2538 INSTALL=$ac_cv_path_install
2539 else
2540 # As a last resort, use the slow shell script. We don't cache a
2541 # path for INSTALL within a source directory, because that will
2542 # break other packages using the cache if that directory is
2543 # removed, or if the path is relative.
2544 INSTALL=$ac_install_sh
2547 echo "$as_me:$LINENO: result: $INSTALL" >&5
2548 echo "${ECHO_T}$INSTALL" >&6
2550 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2551 # It thinks the first close brace ends the variable substitution.
2552 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2559 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2560 # Just in case
2561 sleep 1
2562 echo timestamp > conftest.file
2563 # Do `set' in a subshell so we don't clobber the current shell's
2564 # arguments. Must try -L first in case configure is actually a
2565 # symlink; some systems play weird games with the mod time of symlinks
2566 # (eg FreeBSD returns the mod time of the symlink's containing
2567 # directory).
2568 if (
2569 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2570 if test "$*" = "X"; then
2571 # -L didn't work.
2572 set X `ls -t $srcdir/configure conftest.file`
2574 rm -f conftest.file
2575 if test "$*" != "X $srcdir/configure conftest.file" \
2576 && test "$*" != "X conftest.file $srcdir/configure"; then
2578 # If neither matched, then we have a broken ls. This can happen
2579 # if, for instance, CONFIG_SHELL is bash and it inherits a
2580 # broken ls alias from the environment. This has actually
2581 # happened. Such a system could not be considered "sane".
2582 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2583 alias in your environment" >&5
2584 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2585 alias in your environment" >&2;}
2586 { (exit 1); exit 1; }; }
2589 test "$2" = conftest.file
2591 then
2592 # Ok.
2594 else
2595 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2596 Check your system clock" >&5
2597 echo "$as_me: error: newly created file is older than distributed files!
2598 Check your system clock" >&2;}
2599 { (exit 1); exit 1; }; }
2601 echo "$as_me:$LINENO: result: yes" >&5
2602 echo "${ECHO_T}yes" >&6
2603 test "$program_prefix" != NONE &&
2604 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2605 # Use a double $ so make ignores it.
2606 test "$program_suffix" != NONE &&
2607 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2608 # Double any \ or $. echo might interpret backslashes.
2609 # By default was `s,x,x', remove it if useless.
2610 cat <<\_ACEOF >conftest.sed
2611 s/[\\$]/&&/g;s/;s,x,x,$//
2612 _ACEOF
2613 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2614 rm conftest.sed
2616 # expand $ac_aux_dir to an absolute path
2617 am_aux_dir=`cd $ac_aux_dir && pwd`
2619 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2620 # Use eval to expand $SHELL
2621 if eval "$MISSING --run true"; then
2622 am_missing_run="$MISSING --run "
2623 else
2624 am_missing_run=
2625 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2626 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2630 # Keeping the `.' argument allows $(mkdir_p) to be used without
2631 # argument. Indeed, we sometimes output rules like
2632 # $(mkdir_p) $(somedir)
2633 # where $(somedir) is conditionally defined.
2634 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2635 # expensive solution, as it forces Make to start a sub-shell.)
2636 mkdir_p='mkdir -p -- .'
2637 else
2638 # On NextStep and OpenStep, the `mkdir' command does not
2639 # recognize any option. It will interpret all options as
2640 # directories to create, and then abort because `.' already
2641 # exists.
2642 for d in ./-p ./--version;
2644 test -d $d && rmdir $d
2645 done
2646 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2647 if test -f "$ac_aux_dir/mkinstalldirs"; then
2648 mkdir_p='$(mkinstalldirs)'
2649 else
2650 mkdir_p='$(install_sh) -d'
2654 for ac_prog in gawk mawk nawk awk
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2660 if test "${ac_cv_prog_AWK+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 if test -n "$AWK"; then
2664 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_AWK="$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2677 done
2678 done
2682 AWK=$ac_cv_prog_AWK
2683 if test -n "$AWK"; then
2684 echo "$as_me:$LINENO: result: $AWK" >&5
2685 echo "${ECHO_T}$AWK" >&6
2686 else
2687 echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6
2691 test -n "$AWK" && break
2692 done
2694 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2695 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2696 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2697 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 cat >conftest.make <<\_ACEOF
2701 all:
2702 @echo 'ac_maketemp="$(MAKE)"'
2703 _ACEOF
2704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2705 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2706 if test -n "$ac_maketemp"; then
2707 eval ac_cv_prog_make_${ac_make}_set=yes
2708 else
2709 eval ac_cv_prog_make_${ac_make}_set=no
2711 rm -f conftest.make
2713 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2714 echo "$as_me:$LINENO: result: yes" >&5
2715 echo "${ECHO_T}yes" >&6
2716 SET_MAKE=
2717 else
2718 echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2720 SET_MAKE="MAKE=${MAKE-make}"
2723 rm -rf .tst 2>/dev/null
2724 mkdir .tst 2>/dev/null
2725 if test -d .tst; then
2726 am__leading_dot=.
2727 else
2728 am__leading_dot=_
2730 rmdir .tst 2>/dev/null
2732 DEPDIR="${am__leading_dot}deps"
2734 ac_config_commands="$ac_config_commands depfiles"
2737 am_make=${MAKE-make}
2738 cat > confinc << 'END'
2739 am__doit:
2740 @echo done
2741 .PHONY: am__doit
2743 # If we don't find an include directive, just comment out the code.
2744 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2745 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2746 am__include="#"
2747 am__quote=
2748 _am_result=none
2749 # First try GNU make style include.
2750 echo "include confinc" > confmf
2751 # We grep out `Entering directory' and `Leaving directory'
2752 # messages which can occur if `w' ends up in MAKEFLAGS.
2753 # In particular we don't look at `^make:' because GNU make might
2754 # be invoked under some other name (usually "gmake"), in which
2755 # case it prints its new name instead of `make'.
2756 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2757 am__include=include
2758 am__quote=
2759 _am_result=GNU
2761 # Now try BSD make style include.
2762 if test "$am__include" = "#"; then
2763 echo '.include "confinc"' > confmf
2764 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2765 am__include=.include
2766 am__quote="\""
2767 _am_result=BSD
2772 echo "$as_me:$LINENO: result: $_am_result" >&5
2773 echo "${ECHO_T}$_am_result" >&6
2774 rm -f confinc confmf
2776 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2777 if test "${enable_dependency_tracking+set}" = set; then
2778 enableval="$enable_dependency_tracking"
2781 if test "x$enable_dependency_tracking" != xno; then
2782 am_depcomp="$ac_aux_dir/depcomp"
2783 AMDEPBACKSLASH='\'
2787 if test "x$enable_dependency_tracking" != xno; then
2788 AMDEP_TRUE=
2789 AMDEP_FALSE='#'
2790 else
2791 AMDEP_TRUE='#'
2792 AMDEP_FALSE=
2797 # test to see if srcdir already configured
2798 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2799 test -f $srcdir/config.status; then
2800 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2801 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2802 { (exit 1); exit 1; }; }
2805 # test whether we have cygpath
2806 if test -z "$CYGPATH_W"; then
2807 if (cygpath --version) >/dev/null 2>/dev/null; then
2808 CYGPATH_W='cygpath -w'
2809 else
2810 CYGPATH_W=echo
2815 # Define the identity of the package.
2816 PACKAGE=gprof
2817 VERSION=${BFD_VERSION}
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE "$PACKAGE"
2822 _ACEOF
2825 cat >>confdefs.h <<_ACEOF
2826 #define VERSION "$VERSION"
2827 _ACEOF
2829 # Some tools Automake needs.
2831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846 AMTAR=${AMTAR-"${am_missing_run}tar"}
2848 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2850 # Installed binaries are usually stripped using `strip' when the user
2851 # run `make install-strip'. However `strip' might not be the right
2852 # tool to use in cross-compilation environments, therefore Automake
2853 # will honor the `STRIP' environment variable to overrule this program.
2854 if test "$cross_compiling" != no; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}strip; ac_word=$2
2858 echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860 if test "${ac_cv_prog_STRIP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if test -n "$STRIP"; then
2864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2882 STRIP=$ac_cv_prog_STRIP
2883 if test -n "$STRIP"; then
2884 echo "$as_me:$LINENO: result: $STRIP" >&5
2885 echo "${ECHO_T}$STRIP" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2892 if test -z "$ac_cv_prog_STRIP"; then
2893 ac_ct_STRIP=$STRIP
2894 # Extract the first word of "strip", so it can be a program name with args.
2895 set dummy strip; ac_word=$2
2896 echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901 if test -n "$ac_ct_STRIP"; then
2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_STRIP="strip"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922 if test -n "$ac_ct_STRIP"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2924 echo "${ECHO_T}$ac_ct_STRIP" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 STRIP=$ac_ct_STRIP
2931 else
2932 STRIP="$ac_cv_prog_STRIP"
2936 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2938 # We need awk for the "check" target. The system "awk" is bad on
2939 # some platforms.
2942 depcc="$CC" am_compiler_list=
2944 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2954 # in D'.
2955 mkdir conftest.dir
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2959 cd conftest.dir
2960 # We will build objects and dependencies in a subdirectory because
2961 # it helps to detect inapplicable dependency modes. For instance
2962 # both Tru64's cc and ICC support -MD to output dependencies as a
2963 # side effect of compilation, but ICC will put the dependencies in
2964 # the current directory while Tru64 will put them in the object
2965 # directory.
2966 mkdir sub
2968 am_cv_CC_dependencies_compiler_type=none
2969 if test "$am_compiler_list" = ""; then
2970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2972 for depmode in $am_compiler_list; do
2973 # Setup a source with many dependencies, because some compilers
2974 # like to wrap large dependency lists on column 80 (with \), and
2975 # we should not choose a depcomp mode which is confused by this.
2977 # We need to recreate these files for each test, as the compiler may
2978 # overwrite some of them when testing with obscure command lines.
2979 # This happens at least with the AIX C compiler.
2980 : > sub/conftest.c
2981 for i in 1 2 3 4 5 6; do
2982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2984 # Solaris 8's {/usr,}/bin/sh.
2985 touch sub/conftst$i.h
2986 done
2987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2989 case $depmode in
2990 nosideeffect)
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes; then
2994 continue
2995 else
2996 break
2999 none) break ;;
3000 esac
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode=$depmode \
3005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3008 >/dev/null 2>conftest.err &&
3009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type=$depmode
3022 break
3025 done
3027 cd ..
3028 rm -rf conftest.dir
3029 else
3030 am_cv_CC_dependencies_compiler_type=none
3034 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3041 test "x$enable_dependency_tracking" != xno \
3042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3043 am__fastdepCC_TRUE=
3044 am__fastdepCC_FALSE='#'
3045 else
3046 am__fastdepCC_TRUE='#'
3047 am__fastdepCC_FALSE=
3053 # Check whether --enable-shared or --disable-shared was given.
3054 if test "${enable_shared+set}" = set; then
3055 enableval="$enable_shared"
3056 p=${PACKAGE-default}
3057 case $enableval in
3058 yes) enable_shared=yes ;;
3059 no) enable_shared=no ;;
3061 enable_shared=no
3062 # Look at the argument we got. We use all the common list separators.
3063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3064 for pkg in $enableval; do
3065 if test "X$pkg" = "X$p"; then
3066 enable_shared=yes
3068 done
3069 IFS="$ac_save_ifs"
3071 esac
3072 else
3073 enable_shared=yes
3075 # Check whether --enable-static or --disable-static was given.
3076 if test "${enable_static+set}" = set; then
3077 enableval="$enable_static"
3078 p=${PACKAGE-default}
3079 case $enableval in
3080 yes) enable_static=yes ;;
3081 no) enable_static=no ;;
3083 enable_static=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_static=yes
3090 done
3091 IFS="$ac_save_ifs"
3093 esac
3094 else
3095 enable_static=yes
3097 # Check whether --enable-fast-install or --disable-fast-install was given.
3098 if test "${enable_fast_install+set}" = set; then
3099 enableval="$enable_fast_install"
3100 p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_fast_install=yes ;;
3103 no) enable_fast_install=no ;;
3105 enable_fast_install=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_fast_install=yes
3112 done
3113 IFS="$ac_save_ifs"
3115 esac
3116 else
3117 enable_fast_install=yes
3120 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3121 if test "${with_gnu_ld+set}" = set; then
3122 withval="$with_gnu_ld"
3123 test "$withval" = no || with_gnu_ld=yes
3124 else
3125 with_gnu_ld=no
3127 ac_prog=ld
3128 if test "$GCC" = yes; then
3129 # Check if gcc -print-prog-name=ld gives a path.
3130 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3131 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3132 case $host in
3133 *-*-mingw*)
3134 # gcc leaves a trailing carriage return which upsets mingw
3135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3138 esac
3139 case $ac_prog in
3140 # Accept absolute paths.
3141 [\\/]* | [A-Za-z]:[\\/]*)
3142 re_direlt='/[^/][^/]*/\.\./'
3143 # Canonicalize the path of ld
3144 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3146 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3147 done
3148 test -z "$LD" && LD="$ac_prog"
3151 # If it fails, then pretend we aren't using GCC.
3152 ac_prog=ld
3155 # If it is relative, then search for the first ld in PATH.
3156 with_gnu_ld=unknown
3158 esac
3159 elif test "$with_gnu_ld" = yes; then
3160 echo "$as_me:$LINENO: checking for GNU ld" >&5
3161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3162 else
3163 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3166 if test "${lt_cv_path_LD+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 if test -z "$LD"; then
3170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3171 for ac_dir in $PATH; do
3172 test -z "$ac_dir" && ac_dir=.
3173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3174 lt_cv_path_LD="$ac_dir/$ac_prog"
3175 # Check to see if the program is GNU ld. I'd rather use --version,
3176 # but apparently some GNU ld's only accept -v.
3177 # Break only if it was the GNU/non-GNU ld that we prefer.
3178 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3179 test "$with_gnu_ld" != no && break
3180 else
3181 test "$with_gnu_ld" != yes && break
3184 done
3185 IFS="$ac_save_ifs"
3186 else
3187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3191 LD="$lt_cv_path_LD"
3192 if test -n "$LD"; then
3193 echo "$as_me:$LINENO: result: $LD" >&5
3194 echo "${ECHO_T}$LD" >&6
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3201 { (exit 1); exit 1; }; }
3202 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3208 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3209 lt_cv_prog_gnu_ld=yes
3210 else
3211 lt_cv_prog_gnu_ld=no
3214 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3216 with_gnu_ld=$lt_cv_prog_gnu_ld
3219 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3220 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3221 if test "${lt_cv_ld_reload_flag+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 lt_cv_ld_reload_flag='-r'
3226 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3227 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3228 reload_flag=$lt_cv_ld_reload_flag
3229 test -n "$reload_flag" && reload_flag=" $reload_flag"
3231 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3232 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3233 if test "${lt_cv_path_NM+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 if test -n "$NM"; then
3237 # Let the user override the test.
3238 lt_cv_path_NM="$NM"
3239 else
3240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3241 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3242 test -z "$ac_dir" && ac_dir=.
3243 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3244 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3245 # Check to see if the nm accepts a BSD-compat flag.
3246 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3247 # nm: unknown option "B" ignored
3248 # Tru64's nm complains that /dev/null is an invalid object file
3249 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3250 lt_cv_path_NM="$tmp_nm -B"
3251 break
3252 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3253 lt_cv_path_NM="$tmp_nm -p"
3254 break
3255 else
3256 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3257 continue # so that we can try to find one that supports BSD flags
3260 done
3261 IFS="$ac_save_ifs"
3262 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3266 NM="$lt_cv_path_NM"
3267 echo "$as_me:$LINENO: result: $NM" >&5
3268 echo "${ECHO_T}$NM" >&6
3270 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3272 LN_S=$as_ln_s
3273 if test "$LN_S" = "ln -s"; then
3274 echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3278 echo "${ECHO_T}no, using $LN_S" >&6
3281 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3282 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3283 if test "${lt_cv_deplibs_check_method+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 lt_cv_file_magic_cmd='$MAGIC_CMD'
3287 lt_cv_file_magic_test_file=
3288 lt_cv_deplibs_check_method='unknown'
3289 # Need to set the preceding variable on all platforms that support
3290 # interlibrary dependencies.
3291 # 'none' -- dependencies not supported.
3292 # `unknown' -- same as none, but documents that we really don't know.
3293 # 'pass_all' -- all dependencies passed with no checks.
3294 # 'test_compile' -- check by making test program.
3295 # 'file_magic [regex]' -- check by looking for files in library path
3296 # which responds to the $file_magic_cmd with a given egrep regex.
3297 # If you have `file' or equivalent on your system and you're not sure
3298 # whether `pass_all' will *always* work, you probably want this one.
3300 case $host_os in
3301 aix*)
3302 lt_cv_deplibs_check_method=pass_all
3305 beos*)
3306 lt_cv_deplibs_check_method=pass_all
3309 bsdi4*)
3310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3311 lt_cv_file_magic_cmd='/usr/bin/file -L'
3312 lt_cv_file_magic_test_file=/shlib/libc.so
3315 cygwin* | mingw* |pw32*)
3316 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3317 lt_cv_file_magic_cmd='$OBJDUMP -f'
3320 darwin* | rhapsody*)
3321 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3322 lt_cv_file_magic_cmd='/usr/bin/file -L'
3323 case "$host_os" in
3324 rhapsody* | darwin1.012)
3325 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3327 *) # Darwin 1.3 on
3328 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3330 esac
3333 freebsd* )
3334 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3335 case $host_cpu in
3336 i*86 )
3337 # Not sure whether the presence of OpenBSD here was a mistake.
3338 # Let's accept both of them until this is cleared up.
3339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3340 lt_cv_file_magic_cmd=/usr/bin/file
3341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3343 esac
3344 else
3345 lt_cv_deplibs_check_method=pass_all
3349 gnu*)
3350 lt_cv_deplibs_check_method=pass_all
3353 hpux10.20*|hpux11*)
3354 case $host_cpu in
3355 hppa*)
3356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3357 lt_cv_file_magic_cmd=/usr/bin/file
3358 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3360 ia64*)
3361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3362 lt_cv_file_magic_cmd=/usr/bin/file
3363 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3365 esac
3368 irix5* | irix6*)
3369 case $host_os in
3370 irix5*)
3371 # this will be overridden with pass_all, but let us keep it just in case
3372 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3375 case $LD in
3376 *-32|*"-32 ") libmagic=32-bit;;
3377 *-n32|*"-n32 ") libmagic=N32;;
3378 *-64|*"-64 ") libmagic=64-bit;;
3379 *) libmagic=never-match;;
3380 esac
3381 # this will be overridden with pass_all, but let us keep it just in case
3382 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3384 esac
3385 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3386 lt_cv_deplibs_check_method=pass_all
3389 # This must be Linux ELF.
3390 linux-gnu*)
3391 case $host_cpu in
3392 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3393 lt_cv_deplibs_check_method=pass_all ;;
3395 # glibc up to 2.1.1 does not perform some relocations on ARM
3396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3397 esac
3398 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3401 netbsd*)
3402 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3403 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3404 else
3405 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3409 newsos6)
3410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3415 osf3* | osf4* | osf5*)
3416 # this will be overridden with pass_all, but let us keep it just in case
3417 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3418 lt_cv_file_magic_test_file=/shlib/libc.so
3419 lt_cv_deplibs_check_method=pass_all
3422 sco3.2v5*)
3423 lt_cv_deplibs_check_method=pass_all
3426 solaris*)
3427 lt_cv_deplibs_check_method=pass_all
3428 lt_cv_file_magic_test_file=/lib/libc.so
3431 sysv5uw[78]* | sysv4*uw2*)
3432 lt_cv_deplibs_check_method=pass_all
3435 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3436 case $host_vendor in
3437 ncr)
3438 lt_cv_deplibs_check_method=pass_all
3440 motorola)
3441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3444 esac
3446 esac
3449 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3450 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3451 file_magic_cmd=$lt_cv_file_magic_cmd
3452 deplibs_check_method=$lt_cv_deplibs_check_method
3457 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3459 # Only perform the check for file, if the check method requires it
3460 case $deplibs_check_method in
3461 file_magic*)
3462 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3463 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3464 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3465 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 case $MAGIC_CMD in
3470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3472 ?:/*)
3473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3476 ac_save_MAGIC_CMD="$MAGIC_CMD"
3477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3478 ac_dummy="/usr/bin:$PATH"
3479 for ac_dir in $ac_dummy; do
3480 test -z "$ac_dir" && ac_dir=.
3481 if test -f $ac_dir/${ac_tool_prefix}file; then
3482 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3483 if test -n "$file_magic_test_file"; then
3484 case $deplibs_check_method in
3485 "file_magic "*)
3486 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3489 egrep "$file_magic_regex" > /dev/null; then
3491 else
3492 cat <<EOF 1>&2
3494 *** Warning: the command libtool uses to detect shared libraries,
3495 *** $file_magic_cmd, produces output that libtool cannot recognize.
3496 *** The result is that libtool may fail to recognize shared libraries
3497 *** as such. This will affect the creation of libtool libraries that
3498 *** depend on shared libraries, but programs linked with such libtool
3499 *** libraries will work regardless of this problem. Nevertheless, you
3500 *** may want to report the problem to your system manager and/or to
3501 *** bug-libtool@gnu.org
3504 fi ;;
3505 esac
3507 break
3509 done
3510 IFS="$ac_save_ifs"
3511 MAGIC_CMD="$ac_save_MAGIC_CMD"
3513 esac
3516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3517 if test -n "$MAGIC_CMD"; then
3518 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3519 echo "${ECHO_T}$MAGIC_CMD" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3525 if test -z "$lt_cv_path_MAGIC_CMD"; then
3526 if test -n "$ac_tool_prefix"; then
3527 echo "$as_me:$LINENO: checking for file" >&5
3528 echo $ECHO_N "checking for file... $ECHO_C" >&6
3529 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 case $MAGIC_CMD in
3534 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3536 ?:/*)
3537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3540 ac_save_MAGIC_CMD="$MAGIC_CMD"
3541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 ac_dummy="/usr/bin:$PATH"
3543 for ac_dir in $ac_dummy; do
3544 test -z "$ac_dir" && ac_dir=.
3545 if test -f $ac_dir/file; then
3546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3547 if test -n "$file_magic_test_file"; then
3548 case $deplibs_check_method in
3549 "file_magic "*)
3550 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3553 egrep "$file_magic_regex" > /dev/null; then
3555 else
3556 cat <<EOF 1>&2
3558 *** Warning: the command libtool uses to detect shared libraries,
3559 *** $file_magic_cmd, produces output that libtool cannot recognize.
3560 *** The result is that libtool may fail to recognize shared libraries
3561 *** as such. This will affect the creation of libtool libraries that
3562 *** depend on shared libraries, but programs linked with such libtool
3563 *** libraries will work regardless of this problem. Nevertheless, you
3564 *** may want to report the problem to your system manager and/or to
3565 *** bug-libtool@gnu.org
3568 fi ;;
3569 esac
3571 break
3573 done
3574 IFS="$ac_save_ifs"
3575 MAGIC_CMD="$ac_save_MAGIC_CMD"
3577 esac
3580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3581 if test -n "$MAGIC_CMD"; then
3582 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3583 echo "${ECHO_T}$MAGIC_CMD" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3589 else
3590 MAGIC_CMD=:
3596 esac
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_prog_RANLIB+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$RANLIB"; then
3607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3625 RANLIB=$ac_cv_prog_RANLIB
3626 if test -n "$RANLIB"; then
3627 echo "$as_me:$LINENO: result: $RANLIB" >&5
3628 echo "${ECHO_T}$RANLIB" >&6
3629 else
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3635 if test -z "$ac_cv_prog_RANLIB"; then
3636 ac_ct_RANLIB=$RANLIB
3637 # Extract the first word of "ranlib", so it can be a program name with args.
3638 set dummy ranlib; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 if test -n "$ac_ct_RANLIB"; then
3645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_RANLIB="ranlib"
3655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3661 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3665 if test -n "$ac_ct_RANLIB"; then
3666 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3667 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3673 RANLIB=$ac_ct_RANLIB
3674 else
3675 RANLIB="$ac_cv_prog_RANLIB"
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}strip; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_STRIP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if test -n "$STRIP"; then
3687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3700 done
3701 done
3705 STRIP=$ac_cv_prog_STRIP
3706 if test -n "$STRIP"; then
3707 echo "$as_me:$LINENO: result: $STRIP" >&5
3708 echo "${ECHO_T}$STRIP" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3715 if test -z "$ac_cv_prog_STRIP"; then
3716 ac_ct_STRIP=$STRIP
3717 # Extract the first word of "strip", so it can be a program name with args.
3718 set dummy strip; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 if test -n "$ac_ct_STRIP"; then
3725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_ac_ct_STRIP="strip"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3738 done
3739 done
3741 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3745 if test -n "$ac_ct_STRIP"; then
3746 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3747 echo "${ECHO_T}$ac_ct_STRIP" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3753 STRIP=$ac_ct_STRIP
3754 else
3755 STRIP="$ac_cv_prog_STRIP"
3759 # Check for any special flags to pass to ltconfig.
3760 libtool_flags="--cache-file=$cache_file"
3761 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3762 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3763 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3764 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3765 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3768 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3769 if test "${enable_libtool_lock+set}" = set; then
3770 enableval="$enable_libtool_lock"
3773 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3774 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3777 # Check whether --with-pic or --without-pic was given.
3778 if test "${with_pic+set}" = set; then
3779 withval="$with_pic"
3780 pic_mode="$withval"
3781 else
3782 pic_mode=default
3784 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3785 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3787 # Some flags need to be propagated to the compiler or linker for good
3788 # libtool support.
3789 case $host in
3790 *-*-irix6*)
3791 # Find out which ABI we are using.
3792 echo '#line 3792 "configure"' > conftest.$ac_ext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; then
3798 if test "$lt_cv_prog_gnu_ld" = yes; then
3799 case `/usr/bin/file conftest.$ac_objext` in
3800 *32-bit*)
3801 LD="${LD-ld} -melf32bsmip"
3803 *N32*)
3804 LD="${LD-ld} -melf32bmipn32"
3806 *64-bit*)
3807 LD="${LD-ld} -melf64bmip"
3809 esac
3810 else
3811 case `/usr/bin/file conftest.$ac_objext` in
3812 *32-bit*)
3813 LD="${LD-ld} -32"
3815 *N32*)
3816 LD="${LD-ld} -n32"
3818 *64-bit*)
3819 LD="${LD-ld} -64"
3821 esac
3824 rm -rf conftest*
3827 ia64-*-hpux*)
3828 # Find out which ABI we are using.
3829 echo 'int i;' > conftest.$ac_ext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; then
3835 case "`/usr/bin/file conftest.o`" in
3836 *ELF-32*)
3837 HPUX_IA64_MODE="32"
3839 *ELF-64*)
3840 HPUX_IA64_MODE="64"
3842 esac
3844 rm -rf conftest*
3847 *-*-sco3.2v5*)
3848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3849 SAVE_CFLAGS="$CFLAGS"
3850 CFLAGS="$CFLAGS -belf"
3851 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3852 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3853 if test "${lt_cv_cc_needs_belf+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 rm -f conftest.$ac_objext conftest$ac_exeext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3881 (eval $ac_link) 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 lt_cv_cc_needs_belf=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 lt_cv_cc_needs_belf=no
3907 rm -f conftest.err conftest.$ac_objext \
3908 conftest$ac_exeext conftest.$ac_ext
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3917 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3920 CFLAGS="$SAVE_CFLAGS"
3925 esac
3928 # Save cache, so that ltconfig can load it
3929 cat >confcache <<\_ACEOF
3930 # This file is a shell script that caches the results of configure
3931 # tests run on this system so they can be shared between configure
3932 # scripts and configure runs, see configure's option --config-cache.
3933 # It is not useful on other systems. If it contains results you don't
3934 # want to keep, you may remove or edit it.
3936 # config.status only pays attention to the cache file if you give it
3937 # the --recheck option to rerun configure.
3939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3941 # following values.
3943 _ACEOF
3945 # The following way of writing the cache mishandles newlines in values,
3946 # but we know of no workaround that is simple, portable, and efficient.
3947 # So, don't put newlines in cache variables' values.
3948 # Ultrix sh set writes to stderr and can't be redirected directly,
3949 # and sets the high bit in the cache file unless we assign to the vars.
3951 (set) 2>&1 |
3952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3953 *ac_space=\ *)
3954 # `set' does not quote correctly, so add quotes (double-quote
3955 # substitution turns \\\\ into \\, and sed turns \\ into \).
3956 sed -n \
3957 "s/'/'\\\\''/g;
3958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3961 # `set' quotes correctly as required by POSIX, so do not add quotes.
3962 sed -n \
3963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3965 esac;
3967 sed '
3968 t clear
3969 : clear
3970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3971 t end
3972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3973 : end' >>confcache
3974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3975 if test -w $cache_file; then
3976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3977 cat confcache >$cache_file
3978 else
3979 echo "not updating unwritable cache $cache_file"
3982 rm -f confcache
3984 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3985 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3986 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3987 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3988 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3989 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3990 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3991 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3992 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3993 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3994 echo "$as_me: error: libtool configure failed" >&2;}
3995 { (exit 1); exit 1; }; }
3997 # Reload cache, that may have been modified by ltconfig
3998 if test -r "$cache_file"; then
3999 # Some versions of bash will fail to source /dev/null (special
4000 # files actually), so we avoid doing that.
4001 if test -f "$cache_file"; then
4002 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4003 echo "$as_me: loading cache $cache_file" >&6;}
4004 case $cache_file in
4005 [\\/]* | ?:[\\/]* ) . $cache_file;;
4006 *) . ./$cache_file;;
4007 esac
4009 else
4010 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4011 echo "$as_me: creating cache $cache_file" >&6;}
4012 >$cache_file
4016 # This can be used to rebuild libtool when needed
4017 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4019 # Always use our own libtool.
4020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4022 # Redirect the config.log output again, so that the ltconfig log is not
4023 # clobbered by the next message.
4024 exec 5>>./config.log
4032 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_CC+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4062 done
4063 done
4067 CC=$ac_cv_prog_CC
4068 if test -n "$CC"; then
4069 echo "$as_me:$LINENO: result: $CC" >&5
4070 echo "${ECHO_T}$CC" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_prog_CC"; then
4078 ac_ct_CC=$CC
4079 # Extract the first word of "gcc", so it can be a program name with args.
4080 set dummy gcc; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test -n "$ac_ct_CC"; then
4087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_ac_ct_CC="gcc"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106 if test -n "$ac_ct_CC"; then
4107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4108 echo "${ECHO_T}$ac_ct_CC" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4114 CC=$ac_ct_CC
4115 else
4116 CC="$ac_cv_prog_CC"
4119 if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}cc; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_CC+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_CC="${ac_tool_prefix}cc"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4147 CC=$ac_cv_prog_CC
4148 if test -n "$CC"; then
4149 echo "$as_me:$LINENO: result: $CC" >&5
4150 echo "${ECHO_T}$CC" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4157 if test -z "$ac_cv_prog_CC"; then
4158 ac_ct_CC=$CC
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_ac_ct_CC="cc"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4188 echo "${ECHO_T}$ac_ct_CC" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4194 CC=$ac_ct_CC
4195 else
4196 CC="$ac_cv_prog_CC"
4200 if test -z "$CC"; then
4201 # Extract the first word of "cc", so it can be a program name with args.
4202 set dummy cc; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_CC+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4210 else
4211 ac_prog_rejected=no
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4220 ac_prog_rejected=yes
4221 continue
4223 ac_cv_prog_CC="cc"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4230 if test $ac_prog_rejected = yes; then
4231 # We found a bogon in the path, so make sure we never use it.
4232 set dummy $ac_cv_prog_CC
4233 shift
4234 if test $# != 0; then
4235 # We chose a different compiler from the bogus one.
4236 # However, it has the same basename, so the bogon will be chosen
4237 # first if we set CC to just the basename; use the full file name.
4238 shift
4239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244 CC=$ac_cv_prog_CC
4245 if test -n "$CC"; then
4246 echo "$as_me:$LINENO: result: $CC" >&5
4247 echo "${ECHO_T}$CC" >&6
4248 else
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 for ac_prog in cl
4258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 if test -n "$CC"; then
4266 ac_cv_prog_CC="$CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4284 CC=$ac_cv_prog_CC
4285 if test -n "$CC"; then
4286 echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4293 test -n "$CC" && break
4294 done
4296 if test -z "$CC"; then
4297 ac_ct_CC=$CC
4298 for ac_prog in cl
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy $ac_prog; ac_word=$2
4302 echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 if test -n "$ac_ct_CC"; then
4308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_ac_ct_CC="$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4329 echo "${ECHO_T}$ac_ct_CC" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 test -n "$ac_ct_CC" && break
4336 done
4338 CC=$ac_ct_CC
4344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4345 See \`config.log' for more details." >&5
4346 echo "$as_me: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&2;}
4348 { (exit 1); exit 1; }; }
4350 # Provide some information about the compiler.
4351 echo "$as_me:$LINENO:" \
4352 "checking for C compiler version" >&5
4353 ac_compiler=`set X $ac_compile; echo $2`
4354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4355 (eval $ac_compiler --version </dev/null >&5) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }
4359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4360 (eval $ac_compiler -v </dev/null >&5) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }
4364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4365 (eval $ac_compiler -V </dev/null >&5) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }
4370 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4383 main ()
4385 #ifndef __GNUC__
4386 choke me
4387 #endif
4390 return 0;
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_compiler_gnu=yes
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_compiler_gnu=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4425 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4427 GCC=`test $ac_compiler_gnu = yes && echo yes`
4428 ac_test_CFLAGS=${CFLAGS+set}
4429 ac_save_CFLAGS=$CFLAGS
4430 CFLAGS="-g"
4431 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4433 if test "${ac_cv_prog_cc_g+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4444 main ()
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_prog_cc_g=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_prog_cc_g=no
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4483 if test "$ac_test_CFLAGS" = set; then
4484 CFLAGS=$ac_save_CFLAGS
4485 elif test $ac_cv_prog_cc_g = yes; then
4486 if test "$GCC" = yes; then
4487 CFLAGS="-g -O2"
4488 else
4489 CFLAGS="-g"
4491 else
4492 if test "$GCC" = yes; then
4493 CFLAGS="-O2"
4494 else
4495 CFLAGS=
4498 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4499 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4500 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 ac_cv_prog_cc_stdc=no
4504 ac_save_CC=$CC
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 #include <stdarg.h>
4512 #include <stdio.h>
4513 #include <sys/types.h>
4514 #include <sys/stat.h>
4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4516 struct buf { int x; };
4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518 static char *e (p, i)
4519 char **p;
4520 int i;
4522 return p[i];
4524 static char *f (char * (*g) (char **, int), char **p, ...)
4526 char *s;
4527 va_list v;
4528 va_start (v,p);
4529 s = g (p, va_arg (v,int));
4530 va_end (v);
4531 return s;
4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4535 function prototypes and stuff, but not '\xHH' hex character constants.
4536 These don't provoke an error unfortunately, instead are silently treated
4537 as 'x'. The following induces an error, until -std1 is added to get
4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4539 array size at least. It's necessary to write '\x00'==0 to get something
4540 that's true only with -std1. */
4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4543 int test (int i, double x);
4544 struct s1 {int (*f) (int a);};
4545 struct s2 {int (*f) (double a);};
4546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4547 int argc;
4548 char **argv;
4550 main ()
4552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4554 return 0;
4556 _ACEOF
4557 # Don't try gcc -ansi; that turns off useful extensions and
4558 # breaks some systems' header files.
4559 # AIX -qlanglvl=ansi
4560 # Ultrix and OSF/1 -std1
4561 # HP-UX 10.20 and later -Ae
4562 # HP-UX older versions -Aa -D_HPUX_SOURCE
4563 # SVR4 -Xc -D__EXTENSIONS__
4564 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4566 CC="$ac_save_CC $ac_arg"
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 ac_cv_prog_cc_stdc=$ac_arg
4589 break
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4595 rm -f conftest.err conftest.$ac_objext
4596 done
4597 rm -f conftest.$ac_ext conftest.$ac_objext
4598 CC=$ac_save_CC
4602 case "x$ac_cv_prog_cc_stdc" in
4603 x|xno)
4604 echo "$as_me:$LINENO: result: none needed" >&5
4605 echo "${ECHO_T}none needed" >&6 ;;
4607 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4608 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4609 CC="$CC $ac_cv_prog_cc_stdc" ;;
4610 esac
4612 # Some people use a C++ compiler to compile C. Since we use `exit',
4613 # in C++ we need to declare it. In case someone uses the same compiler
4614 # for both compiling C and C++ we need to have the C++ compiler decide
4615 # the declaration of exit, since it's the most demanding environment.
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #ifndef __cplusplus
4618 choke me
4619 #endif
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 for ac_declaration in \
4643 '' \
4644 'extern "C" void std::exit (int) throw (); using std::exit;' \
4645 'extern "C" void std::exit (int); using std::exit;' \
4646 'extern "C" void exit (int) throw ();' \
4647 'extern "C" void exit (int);' \
4648 'void exit (int);'
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_declaration
4657 #include <stdlib.h>
4659 main ()
4661 exit (42);
4663 return 0;
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 continue
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 $ac_declaration
4703 main ()
4705 exit (42);
4707 return 0;
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 break
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 done
4739 rm -f conftest*
4740 if test -n "$ac_declaration"; then
4741 echo '#ifdef __cplusplus' >>confdefs.h
4742 echo $ac_declaration >>confdefs.h
4743 echo '#endif' >>confdefs.h
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 # Find a good install program. We prefer a C program (faster),
4759 # so one script is as good as another. But avoid the broken or
4760 # incompatible versions:
4761 # SysV /etc/install, /usr/sbin/install
4762 # SunOS /usr/etc/install
4763 # IRIX /sbin/install
4764 # AIX /bin/install
4765 # AmigaOS /C/install, which installs bootblocks on floppy discs
4766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769 # OS/2's system install, which has a completely different semantic
4770 # ./install, which can be erroneously created by make from ./install.sh.
4771 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4772 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4773 if test -z "$INSTALL"; then
4774 if test "${ac_cv_path_install+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 # Account for people who put trailing slashes in PATH elements.
4783 case $as_dir/ in
4784 ./ | .// | /cC/* | \
4785 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4786 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4787 /usr/ucb/* ) ;;
4789 # OSF1 and SCO ODT 3.0 have their own names for install.
4790 # Don't use installbsd from OSF since it installs stuff as root
4791 # by default.
4792 for ac_prog in ginstall scoinst install; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4795 if test $ac_prog = install &&
4796 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4797 # AIX install. It has an incompatible calling convention.
4799 elif test $ac_prog = install &&
4800 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4801 # program-specific install script used by HP pwplus--don't use.
4803 else
4804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4805 break 3
4808 done
4809 done
4811 esac
4812 done
4816 if test "${ac_cv_path_install+set}" = set; then
4817 INSTALL=$ac_cv_path_install
4818 else
4819 # As a last resort, use the slow shell script. We don't cache a
4820 # path for INSTALL within a source directory, because that will
4821 # break other packages using the cache if that directory is
4822 # removed, or if the path is relative.
4823 INSTALL=$ac_install_sh
4826 echo "$as_me:$LINENO: result: $INSTALL" >&5
4827 echo "${ECHO_T}$INSTALL" >&6
4829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4830 # It thinks the first close brace ends the variable substitution.
4831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4839 for ac_func in setmode
4841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4842 echo "$as_me:$LINENO: checking for $ac_func" >&5
4843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4844 if eval "test \"\${$as_ac_var+set}\" = set"; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4855 #define $ac_func innocuous_$ac_func
4857 /* System header to define __stub macros and hopefully few prototypes,
4858 which can conflict with char $ac_func (); below.
4859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 <limits.h> exists even on freestanding compilers. */
4862 #ifdef __STDC__
4863 # include <limits.h>
4864 #else
4865 # include <assert.h>
4866 #endif
4868 #undef $ac_func
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 #ifdef __cplusplus
4872 extern "C"
4874 #endif
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4877 char $ac_func ();
4878 /* The GNU C library defines this for functions which it implements
4879 to always fail with ENOSYS. Some functions are actually named
4880 something starting with __ and the normal name is an alias. */
4881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4882 choke me
4883 #else
4884 char (*f) () = $ac_func;
4885 #endif
4886 #ifdef __cplusplus
4888 #endif
4891 main ()
4893 return f != $ac_func;
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext conftest$ac_exeext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 eval "$as_ac_var=yes"
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 eval "$as_ac_var=no"
4926 rm -f conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4931 if test `eval echo '${'$as_ac_var'}'` = yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4934 _ACEOF
4937 done
4940 ALL_LINGUAS="fr tr sv es id da pt_BR de"
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_RANLIB+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4968 RANLIB=$ac_cv_prog_RANLIB
4969 if test -n "$RANLIB"; then
4970 echo "$as_me:$LINENO: result: $RANLIB" >&5
4971 echo "${ECHO_T}$RANLIB" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4978 if test -z "$ac_cv_prog_RANLIB"; then
4979 ac_ct_RANLIB=$RANLIB
4980 # Extract the first word of "ranlib", so it can be a program name with args.
4981 set dummy ranlib; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$ac_ct_RANLIB"; then
4988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_ac_ct_RANLIB="ranlib"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5008 if test -n "$ac_ct_RANLIB"; then
5009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5011 else
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5016 RANLIB=$ac_ct_RANLIB
5017 else
5018 RANLIB="$ac_cv_prog_RANLIB"
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5027 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5028 # On Suns, sometimes $CPP names a directory.
5029 if test -n "$CPP" && test -d "$CPP"; then
5030 CPP=
5032 if test -z "$CPP"; then
5033 if test "${ac_cv_prog_CPP+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 # Double quotes because CPP needs to be expanded
5037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5039 ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #ifdef __STDC__
5055 # include <limits.h>
5056 #else
5057 # include <assert.h>
5058 #endif
5059 Syntax error
5060 _ACEOF
5061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev/null; then
5069 if test -s conftest.err; then
5070 ac_cpp_err=$ac_c_preproc_warn_flag
5071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5072 else
5073 ac_cpp_err=
5075 else
5076 ac_cpp_err=yes
5078 if test -z "$ac_cpp_err"; then
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 # Broken: fails on valid input.
5085 continue
5087 rm -f conftest.err conftest.$ac_ext
5089 # OK, works on sane cases. Now check whether non-existent headers
5090 # can be detected and how.
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #include <ac_nonexistent.h>
5098 _ACEOF
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_c_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5110 else
5111 ac_cpp_err=
5113 else
5114 ac_cpp_err=yes
5116 if test -z "$ac_cpp_err"; then
5117 # Broken: success on invalid input.
5118 continue
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Passes both tests.
5124 ac_preproc_ok=:
5125 break
5127 rm -f conftest.err conftest.$ac_ext
5129 done
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then
5133 break
5136 done
5137 ac_cv_prog_CPP=$CPP
5140 CPP=$ac_cv_prog_CPP
5141 else
5142 ac_cv_prog_CPP=$CPP
5144 echo "$as_me:$LINENO: result: $CPP" >&5
5145 echo "${ECHO_T}$CPP" >&6
5146 ac_preproc_ok=false
5147 for ac_c_preproc_warn_flag in '' yes
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #ifdef __STDC__
5162 # include <limits.h>
5163 #else
5164 # include <assert.h>
5165 #endif
5166 Syntax error
5167 _ACEOF
5168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5170 ac_status=$?
5171 grep -v '^ *+' conftest.er1 >conftest.err
5172 rm -f conftest.er1
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } >/dev/null; then
5176 if test -s conftest.err; then
5177 ac_cpp_err=$ac_c_preproc_warn_flag
5178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5179 else
5180 ac_cpp_err=
5182 else
5183 ac_cpp_err=yes
5185 if test -z "$ac_cpp_err"; then
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 # Broken: fails on valid input.
5192 continue
5194 rm -f conftest.err conftest.$ac_ext
5196 # OK, works on sane cases. Now check whether non-existent headers
5197 # can be detected and how.
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <ac_nonexistent.h>
5205 _ACEOF
5206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } >/dev/null; then
5214 if test -s conftest.err; then
5215 ac_cpp_err=$ac_c_preproc_warn_flag
5216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5217 else
5218 ac_cpp_err=
5220 else
5221 ac_cpp_err=yes
5223 if test -z "$ac_cpp_err"; then
5224 # Broken: success on invalid input.
5225 continue
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 # Passes both tests.
5231 ac_preproc_ok=:
5232 break
5234 rm -f conftest.err conftest.$ac_ext
5236 done
5237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5238 rm -f conftest.err conftest.$ac_ext
5239 if $ac_preproc_ok; then
5241 else
5242 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5243 See \`config.log' for more details." >&5
5244 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5245 See \`config.log' for more details." >&2;}
5246 { (exit 1); exit 1; }; }
5249 ac_ext=c
5250 ac_cpp='$CPP $CPPFLAGS'
5251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256 echo "$as_me:$LINENO: checking for egrep" >&5
5257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5258 if test "${ac_cv_prog_egrep+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5262 then ac_cv_prog_egrep='grep -E'
5263 else ac_cv_prog_egrep='egrep'
5266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5268 EGREP=$ac_cv_prog_egrep
5271 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5272 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5273 if test "${ac_cv_header_stdc+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <stdlib.h>
5283 #include <stdarg.h>
5284 #include <string.h>
5285 #include <float.h>
5288 main ()
5292 return 0;
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_cv_header_stdc=yes
5317 else
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 ac_cv_header_stdc=no
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325 if test $ac_cv_header_stdc = yes; then
5326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 #include <string.h>
5335 _ACEOF
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "memchr" >/dev/null 2>&1; then
5339 else
5340 ac_cv_header_stdc=no
5342 rm -f conftest*
5346 if test $ac_cv_header_stdc = yes; then
5347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <stdlib.h>
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "free" >/dev/null 2>&1; then
5360 else
5361 ac_cv_header_stdc=no
5363 rm -f conftest*
5367 if test $ac_cv_header_stdc = yes; then
5368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369 if test "$cross_compiling" = yes; then
5371 else
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <ctype.h>
5379 #if ((' ' & 0x0FF) == 0x020)
5380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5382 #else
5383 # define ISLOWER(c) \
5384 (('a' <= (c) && (c) <= 'i') \
5385 || ('j' <= (c) && (c) <= 'r') \
5386 || ('s' <= (c) && (c) <= 'z'))
5387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5388 #endif
5390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5392 main ()
5394 int i;
5395 for (i = 0; i < 256; i++)
5396 if (XOR (islower (i), ISLOWER (i))
5397 || toupper (i) != TOUPPER (i))
5398 exit(2);
5399 exit (0);
5401 _ACEOF
5402 rm -f conftest$ac_exeext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404 (eval $ac_link) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5414 else
5415 echo "$as_me: program exited with status $ac_status" >&5
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 ( exit $ac_status )
5420 ac_cv_header_stdc=no
5422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5427 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5428 if test $ac_cv_header_stdc = yes; then
5430 cat >>confdefs.h <<\_ACEOF
5431 #define STDC_HEADERS 1
5432 _ACEOF
5436 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5437 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5438 if test "${ac_cv_c_const+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5449 main ()
5451 /* FIXME: Include the comments suggested by Paul. */
5452 #ifndef __cplusplus
5453 /* Ultrix mips cc rejects this. */
5454 typedef int charset[2];
5455 const charset x;
5456 /* SunOS 4.1.1 cc rejects this. */
5457 char const *const *ccp;
5458 char **p;
5459 /* NEC SVR4.0.2 mips cc rejects this. */
5460 struct point {int x, y;};
5461 static struct point const zero = {0,0};
5462 /* AIX XL C 1.02.0.0 rejects this.
5463 It does not let you subtract one const X* pointer from another in
5464 an arm of an if-expression whose if-part is not a constant
5465 expression */
5466 const char *g = "string";
5467 ccp = &g + (g ? g-g : 0);
5468 /* HPUX 7.0 cc rejects these. */
5469 ++ccp;
5470 p = (char**) ccp;
5471 ccp = (char const *const *) p;
5472 { /* SCO 3.2v4 cc rejects this. */
5473 char *t;
5474 char const *s = 0 ? (char *) 0 : (char const *) 0;
5476 *t++ = 0;
5478 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5479 int x[] = {25, 17};
5480 const int *foo = &x[0];
5481 ++foo;
5483 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5484 typedef const int *iptr;
5485 iptr p = 0;
5486 ++p;
5488 { /* AIX XL C 1.02.0.0 rejects this saying
5489 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5490 struct s { int j; const int *ap[3]; };
5491 struct s *b; b->j = 5;
5493 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5494 const int foo = 10;
5496 #endif
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_cv_c_const=yes
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_cv_c_const=no
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5533 echo "${ECHO_T}$ac_cv_c_const" >&6
5534 if test $ac_cv_c_const = no; then
5536 cat >>confdefs.h <<\_ACEOF
5537 #define const
5538 _ACEOF
5542 echo "$as_me:$LINENO: checking for inline" >&5
5543 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5544 if test "${ac_cv_c_inline+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547 ac_cv_c_inline=no
5548 for ac_kw in inline __inline__ __inline; do
5549 cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h. */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 #ifndef __cplusplus
5556 typedef int foo_t;
5557 static $ac_kw foo_t static_foo () {return 0; }
5558 $ac_kw foo_t foo () {return 0; }
5559 #endif
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest.$ac_objext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 ac_cv_c_inline=$ac_kw; break
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590 done
5593 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5594 echo "${ECHO_T}$ac_cv_c_inline" >&6
5597 case $ac_cv_c_inline in
5598 inline | yes) ;;
5600 case $ac_cv_c_inline in
5601 no) ac_val=;;
5602 *) ac_val=$ac_cv_c_inline;;
5603 esac
5604 cat >>confdefs.h <<_ACEOF
5605 #ifndef __cplusplus
5606 #define inline $ac_val
5607 #endif
5608 _ACEOF
5610 esac
5612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5623 inttypes.h stdint.h unistd.h
5625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5626 echo "$as_me:$LINENO: checking for $ac_header" >&5
5627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5639 #include <$ac_header>
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest.$ac_objext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 eval "$as_ac_Header=yes"
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 eval "$as_ac_Header=no"
5669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674 cat >>confdefs.h <<_ACEOF
5675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676 _ACEOF
5680 done
5683 echo "$as_me:$LINENO: checking for off_t" >&5
5684 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5685 if test "${ac_cv_type_off_t+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 $ac_includes_default
5696 main ()
5698 if ((off_t *) 0)
5699 return 0;
5700 if (sizeof (off_t))
5701 return 0;
5703 return 0;
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_type_off_t=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_type_off_t=no
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5737 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5738 if test $ac_cv_type_off_t = yes; then
5740 else
5742 cat >>confdefs.h <<_ACEOF
5743 #define off_t long
5744 _ACEOF
5748 echo "$as_me:$LINENO: checking for size_t" >&5
5749 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5750 if test "${ac_cv_type_size_t+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 $ac_includes_default
5761 main ()
5763 if ((size_t *) 0)
5764 return 0;
5765 if (sizeof (size_t))
5766 return 0;
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_type_size_t=yes
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ac_cv_type_size_t=no
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5802 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5803 if test $ac_cv_type_size_t = yes; then
5805 else
5807 cat >>confdefs.h <<_ACEOF
5808 #define size_t unsigned
5809 _ACEOF
5813 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5814 # for constant arguments. Useless!
5815 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5816 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5817 if test "${ac_cv_working_alloca_h+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <alloca.h>
5828 main ()
5830 char *p = (char *) alloca (2 * sizeof (int));
5832 return 0;
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_working_alloca_h=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 ac_cv_working_alloca_h=no
5863 rm -f conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5866 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5867 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5868 if test $ac_cv_working_alloca_h = yes; then
5870 cat >>confdefs.h <<\_ACEOF
5871 #define HAVE_ALLOCA_H 1
5872 _ACEOF
5876 echo "$as_me:$LINENO: checking for alloca" >&5
5877 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5878 if test "${ac_cv_func_alloca_works+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 #ifdef __GNUC__
5888 # define alloca __builtin_alloca
5889 #else
5890 # ifdef _MSC_VER
5891 # include <malloc.h>
5892 # define alloca _alloca
5893 # else
5894 # if HAVE_ALLOCA_H
5895 # include <alloca.h>
5896 # else
5897 # ifdef _AIX
5898 #pragma alloca
5899 # else
5900 # ifndef alloca /* predefined by HP cc +Olibcalls */
5901 char *alloca ();
5902 # endif
5903 # endif
5904 # endif
5905 # endif
5906 #endif
5909 main ()
5911 char *p = (char *) alloca (1);
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_func_alloca_works=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_func_alloca_works=no
5944 rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5948 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5950 if test $ac_cv_func_alloca_works = yes; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_ALLOCA 1
5954 _ACEOF
5956 else
5957 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5958 # that cause trouble. Some versions do not even contain alloca or
5959 # contain a buggy version. If you still want to use their alloca,
5960 # use ar to extract alloca.o from them instead of compiling alloca.c.
5962 ALLOCA=alloca.$ac_objext
5964 cat >>confdefs.h <<\_ACEOF
5965 #define C_ALLOCA 1
5966 _ACEOF
5969 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5970 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5971 if test "${ac_cv_os_cray+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #if defined(CRAY) && ! defined(CRAY2)
5981 webecray
5982 #else
5983 wenotbecray
5984 #endif
5986 _ACEOF
5987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5988 $EGREP "webecray" >/dev/null 2>&1; then
5989 ac_cv_os_cray=yes
5990 else
5991 ac_cv_os_cray=no
5993 rm -f conftest*
5996 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5997 echo "${ECHO_T}$ac_cv_os_cray" >&6
5998 if test $ac_cv_os_cray = yes; then
5999 for ac_func in _getb67 GETB67 getb67; do
6000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6001 echo "$as_me:$LINENO: checking for $ac_func" >&5
6002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6003 if eval "test \"\${$as_ac_var+set}\" = set"; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6014 #define $ac_func innocuous_$ac_func
6016 /* System header to define __stub macros and hopefully few prototypes,
6017 which can conflict with char $ac_func (); below.
6018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019 <limits.h> exists even on freestanding compilers. */
6021 #ifdef __STDC__
6022 # include <limits.h>
6023 #else
6024 # include <assert.h>
6025 #endif
6027 #undef $ac_func
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 #ifdef __cplusplus
6031 extern "C"
6033 #endif
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6036 char $ac_func ();
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6041 choke me
6042 #else
6043 char (*f) () = $ac_func;
6044 #endif
6045 #ifdef __cplusplus
6047 #endif
6050 main ()
6052 return f != $ac_func;
6054 return 0;
6056 _ACEOF
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_var=yes"
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 eval "$as_ac_var=no"
6085 rm -f conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6090 if test `eval echo '${'$as_ac_var'}'` = yes; then
6092 cat >>confdefs.h <<_ACEOF
6093 #define CRAY_STACKSEG_END $ac_func
6094 _ACEOF
6096 break
6099 done
6102 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6103 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6104 if test "${ac_cv_c_stack_direction+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 if test "$cross_compiling" = yes; then
6108 ac_cv_c_stack_direction=0
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 find_stack_direction ()
6119 static char *addr = 0;
6120 auto char dummy;
6121 if (addr == 0)
6123 addr = &dummy;
6124 return find_stack_direction ();
6126 else
6127 return (&dummy > addr) ? 1 : -1;
6131 main ()
6133 exit (find_stack_direction () < 0);
6135 _ACEOF
6136 rm -f conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_c_stack_direction=1
6148 else
6149 echo "$as_me: program exited with status $ac_status" >&5
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ( exit $ac_status )
6154 ac_cv_c_stack_direction=-1
6156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6160 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6162 cat >>confdefs.h <<_ACEOF
6163 #define STACK_DIRECTION $ac_cv_c_stack_direction
6164 _ACEOF
6171 for ac_header in stdlib.h unistd.h
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175 echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182 else
6183 # Is the header compilable?
6184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <$ac_header>
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_header_compiler=yes
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_header_compiler=no
6223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225 echo "${ECHO_T}$ac_header_compiler" >&6
6227 # Is the header present?
6228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <$ac_header>
6237 _ACEOF
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_c_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6249 else
6250 ac_cpp_err=
6252 else
6253 ac_cpp_err=yes
6255 if test -z "$ac_cpp_err"; then
6256 ac_header_preproc=yes
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_header_preproc=no
6263 rm -f conftest.err conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6269 yes:no: )
6270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc=yes
6276 no:yes:* )
6277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6290 cat <<\_ASBOX
6291 ## ------------------------------------------ ##
6292 ## Report this to the AC_PACKAGE_NAME lists. ##
6293 ## ------------------------------------------ ##
6294 _ASBOX
6296 sed "s/^/$as_me: WARNING: /" >&2
6298 esac
6299 echo "$as_me:$LINENO: checking for $ac_header" >&5
6300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 eval "$as_ac_Header=\$ac_header_preproc"
6306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313 _ACEOF
6317 done
6320 for ac_func in getpagesize
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6336 #define $ac_func innocuous_$ac_func
6338 /* System header to define __stub macros and hopefully few prototypes,
6339 which can conflict with char $ac_func (); below.
6340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341 <limits.h> exists even on freestanding compilers. */
6343 #ifdef __STDC__
6344 # include <limits.h>
6345 #else
6346 # include <assert.h>
6347 #endif
6349 #undef $ac_func
6351 /* Override any gcc2 internal prototype to avoid an error. */
6352 #ifdef __cplusplus
6353 extern "C"
6355 #endif
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6358 char $ac_func ();
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6363 choke me
6364 #else
6365 char (*f) () = $ac_func;
6366 #endif
6367 #ifdef __cplusplus
6369 #endif
6372 main ()
6374 return f != $ac_func;
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 eval "$as_ac_var=yes"
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 eval "$as_ac_var=no"
6407 rm -f conftest.err conftest.$ac_objext \
6408 conftest$ac_exeext conftest.$ac_ext
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6412 if test `eval echo '${'$as_ac_var'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6415 _ACEOF
6418 done
6420 echo "$as_me:$LINENO: checking for working mmap" >&5
6421 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6422 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test "$cross_compiling" = yes; then
6426 ac_cv_func_mmap_fixed_mapped=no
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6435 /* malloc might have been renamed as rpl_malloc. */
6436 #undef malloc
6438 /* Thanks to Mike Haertel and Jim Avera for this test.
6439 Here is a matrix of mmap possibilities:
6440 mmap private not fixed
6441 mmap private fixed at somewhere currently unmapped
6442 mmap private fixed at somewhere already mapped
6443 mmap shared not fixed
6444 mmap shared fixed at somewhere currently unmapped
6445 mmap shared fixed at somewhere already mapped
6446 For private mappings, we should verify that changes cannot be read()
6447 back from the file, nor mmap's back from the file at a different
6448 address. (There have been systems where private was not correctly
6449 implemented like the infamous i386 svr4.0, and systems where the
6450 VM page cache was not coherent with the file system buffer cache
6451 like early versions of FreeBSD and possibly contemporary NetBSD.)
6452 For shared mappings, we should conversely verify that changes get
6453 propagated back to all the places they're supposed to be.
6455 Grep wants private fixed already mapped.
6456 The main things grep needs to know about mmap are:
6457 * does it exist and is it safe to write into the mmap'd area
6458 * how to use it (BSD variants) */
6460 #include <fcntl.h>
6461 #include <sys/mman.h>
6463 #if !STDC_HEADERS && !HAVE_STDLIB_H
6464 char *malloc ();
6465 #endif
6467 /* This mess was copied from the GNU getpagesize.h. */
6468 #if !HAVE_GETPAGESIZE
6469 /* Assume that all systems that can run configure have sys/param.h. */
6470 # if !HAVE_SYS_PARAM_H
6471 # define HAVE_SYS_PARAM_H 1
6472 # endif
6474 # ifdef _SC_PAGESIZE
6475 # define getpagesize() sysconf(_SC_PAGESIZE)
6476 # else /* no _SC_PAGESIZE */
6477 # if HAVE_SYS_PARAM_H
6478 # include <sys/param.h>
6479 # ifdef EXEC_PAGESIZE
6480 # define getpagesize() EXEC_PAGESIZE
6481 # else /* no EXEC_PAGESIZE */
6482 # ifdef NBPG
6483 # define getpagesize() NBPG * CLSIZE
6484 # ifndef CLSIZE
6485 # define CLSIZE 1
6486 # endif /* no CLSIZE */
6487 # else /* no NBPG */
6488 # ifdef NBPC
6489 # define getpagesize() NBPC
6490 # else /* no NBPC */
6491 # ifdef PAGESIZE
6492 # define getpagesize() PAGESIZE
6493 # endif /* PAGESIZE */
6494 # endif /* no NBPC */
6495 # endif /* no NBPG */
6496 # endif /* no EXEC_PAGESIZE */
6497 # else /* no HAVE_SYS_PARAM_H */
6498 # define getpagesize() 8192 /* punt totally */
6499 # endif /* no HAVE_SYS_PARAM_H */
6500 # endif /* no _SC_PAGESIZE */
6502 #endif /* no HAVE_GETPAGESIZE */
6505 main ()
6507 char *data, *data2, *data3;
6508 int i, pagesize;
6509 int fd;
6511 pagesize = getpagesize ();
6513 /* First, make a file with some known garbage in it. */
6514 data = (char *) malloc (pagesize);
6515 if (!data)
6516 exit (1);
6517 for (i = 0; i < pagesize; ++i)
6518 *(data + i) = rand ();
6519 umask (0);
6520 fd = creat ("conftest.mmap", 0600);
6521 if (fd < 0)
6522 exit (1);
6523 if (write (fd, data, pagesize) != pagesize)
6524 exit (1);
6525 close (fd);
6527 /* Next, try to mmap the file at a fixed address which already has
6528 something else allocated at it. If we can, also make sure that
6529 we see the same garbage. */
6530 fd = open ("conftest.mmap", O_RDWR);
6531 if (fd < 0)
6532 exit (1);
6533 data2 = (char *) malloc (2 * pagesize);
6534 if (!data2)
6535 exit (1);
6536 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6537 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6538 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6539 exit (1);
6540 for (i = 0; i < pagesize; ++i)
6541 if (*(data + i) != *(data2 + i))
6542 exit (1);
6544 /* Finally, make sure that changes to the mapped area do not
6545 percolate back to the file as seen by read(). (This is a bug on
6546 some variants of i386 svr4.0.) */
6547 for (i = 0; i < pagesize; ++i)
6548 *(data2 + i) = *(data2 + i) + 1;
6549 data3 = (char *) malloc (pagesize);
6550 if (!data3)
6551 exit (1);
6552 if (read (fd, data3, pagesize) != pagesize)
6553 exit (1);
6554 for (i = 0; i < pagesize; ++i)
6555 if (*(data + i) != *(data3 + i))
6556 exit (1);
6557 close (fd);
6558 exit (0);
6560 _ACEOF
6561 rm -f conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_func_mmap_fixed_mapped=yes
6573 else
6574 echo "$as_me: program exited with status $ac_status" >&5
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ( exit $ac_status )
6579 ac_cv_func_mmap_fixed_mapped=no
6581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6585 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_MMAP 1
6590 _ACEOF
6593 rm -f conftest.mmap
6605 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6606 unistd.h values.h sys/param.h
6608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo "$as_me:$LINENO: checking for $ac_header" >&5
6611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6617 else
6618 # Is the header compilable?
6619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 #include <$ac_header>
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632 (eval $ac_compile) 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 (eval $ac_try) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_header_compiler=yes
6652 else
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_header_compiler=no
6658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6660 echo "${ECHO_T}$ac_header_compiler" >&6
6662 # Is the header present?
6663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #include <$ac_header>
6672 _ACEOF
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null; then
6681 if test -s conftest.err; then
6682 ac_cpp_err=$ac_c_preproc_warn_flag
6683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684 else
6685 ac_cpp_err=
6687 else
6688 ac_cpp_err=yes
6690 if test -z "$ac_cpp_err"; then
6691 ac_header_preproc=yes
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_header_preproc=no
6698 rm -f conftest.err conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6700 echo "${ECHO_T}$ac_header_preproc" >&6
6702 # So? What about this header?
6703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6704 yes:no: )
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6709 ac_header_preproc=yes
6711 no:yes:* )
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6725 cat <<\_ASBOX
6726 ## ------------------------------------------ ##
6727 ## Report this to the AC_PACKAGE_NAME lists. ##
6728 ## ------------------------------------------ ##
6729 _ASBOX
6731 sed "s/^/$as_me: WARNING: /" >&2
6733 esac
6734 echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 eval "$as_ac_Header=\$ac_header_preproc"
6741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6746 cat >>confdefs.h <<_ACEOF
6747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6748 _ACEOF
6752 done
6764 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6765 __argz_count __argz_stringify __argz_next
6767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781 #define $ac_func innocuous_$ac_func
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6788 #ifdef __STDC__
6789 # include <limits.h>
6790 #else
6791 # include <assert.h>
6792 #endif
6794 #undef $ac_func
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6800 #endif
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803 char $ac_func ();
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 choke me
6809 #else
6810 char (*f) () = $ac_func;
6811 #endif
6812 #ifdef __cplusplus
6814 #endif
6817 main ()
6819 return f != $ac_func;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 eval "$as_ac_var=yes"
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 eval "$as_ac_var=no"
6852 rm -f conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860 _ACEOF
6863 done
6866 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6868 for ac_func in stpcpy
6870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6871 echo "$as_me:$LINENO: checking for $ac_func" >&5
6872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6873 if eval "test \"\${$as_ac_var+set}\" = set"; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6884 #define $ac_func innocuous_$ac_func
6886 /* System header to define __stub macros and hopefully few prototypes,
6887 which can conflict with char $ac_func (); below.
6888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889 <limits.h> exists even on freestanding compilers. */
6891 #ifdef __STDC__
6892 # include <limits.h>
6893 #else
6894 # include <assert.h>
6895 #endif
6897 #undef $ac_func
6899 /* Override any gcc2 internal prototype to avoid an error. */
6900 #ifdef __cplusplus
6901 extern "C"
6903 #endif
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906 char $ac_func ();
6907 /* The GNU C library defines this for functions which it implements
6908 to always fail with ENOSYS. Some functions are actually named
6909 something starting with __ and the normal name is an alias. */
6910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6911 choke me
6912 #else
6913 char (*f) () = $ac_func;
6914 #endif
6915 #ifdef __cplusplus
6917 #endif
6920 main ()
6922 return f != $ac_func;
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 eval "$as_ac_var=yes"
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 eval "$as_ac_var=no"
6955 rm -f conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6960 if test `eval echo '${'$as_ac_var'}'` = yes; then
6961 cat >>confdefs.h <<_ACEOF
6962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6963 _ACEOF
6966 done
6969 if test "${ac_cv_func_stpcpy}" = "yes"; then
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_STPCPY 1
6973 _ACEOF
6977 if test $ac_cv_header_locale_h = yes; then
6978 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6979 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6980 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <locale.h>
6991 main ()
6993 return LC_MESSAGES
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 am_cv_val_LC_MESSAGES=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 am_cv_val_LC_MESSAGES=no
7026 rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7029 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7030 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7031 if test $am_cv_val_LC_MESSAGES = yes; then
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_LC_MESSAGES 1
7035 _ACEOF
7039 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7040 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7041 # Check whether --enable-nls or --disable-nls was given.
7042 if test "${enable_nls+set}" = set; then
7043 enableval="$enable_nls"
7044 USE_NLS=$enableval
7045 else
7046 USE_NLS=yes
7048 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7049 echo "${ECHO_T}$USE_NLS" >&6
7052 USE_INCLUDED_LIBINTL=no
7054 if test "$USE_NLS" = "yes"; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define ENABLE_NLS 1
7058 _ACEOF
7060 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7061 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7063 # Check whether --with-included-gettext or --without-included-gettext was given.
7064 if test "${with_included_gettext+set}" = set; then
7065 withval="$with_included_gettext"
7066 nls_cv_force_use_gnu_gettext=$withval
7067 else
7068 nls_cv_force_use_gnu_gettext=no
7070 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7071 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7073 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7074 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7075 nls_cv_header_intl=
7076 nls_cv_header_libgt=
7077 CATOBJEXT=NONE
7079 if test "${ac_cv_header_libintl_h+set}" = set; then
7080 echo "$as_me:$LINENO: checking for libintl.h" >&5
7081 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7082 if test "${ac_cv_header_libintl_h+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7086 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7087 else
7088 # Is the header compilable?
7089 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7090 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 #include <libintl.h>
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102 (eval $ac_compile) 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_header_compiler=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_header_compiler=no
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7130 echo "${ECHO_T}$ac_header_compiler" >&6
7132 # Is the header present?
7133 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7134 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <libintl.h>
7142 _ACEOF
7143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } >/dev/null; then
7151 if test -s conftest.err; then
7152 ac_cpp_err=$ac_c_preproc_warn_flag
7153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7154 else
7155 ac_cpp_err=
7157 else
7158 ac_cpp_err=yes
7160 if test -z "$ac_cpp_err"; then
7161 ac_header_preproc=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_header_preproc=no
7168 rm -f conftest.err conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7170 echo "${ECHO_T}$ac_header_preproc" >&6
7172 # So? What about this header?
7173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7174 yes:no: )
7175 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7176 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7178 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7179 ac_header_preproc=yes
7181 no:yes:* )
7182 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7183 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7185 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7186 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7187 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7188 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7189 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7191 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7193 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7195 cat <<\_ASBOX
7196 ## ------------------------------------------ ##
7197 ## Report this to the AC_PACKAGE_NAME lists. ##
7198 ## ------------------------------------------ ##
7199 _ASBOX
7201 sed "s/^/$as_me: WARNING: /" >&2
7203 esac
7204 echo "$as_me:$LINENO: checking for libintl.h" >&5
7205 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7206 if test "${ac_cv_header_libintl_h+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 ac_cv_header_libintl_h=$ac_header_preproc
7211 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7212 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7215 if test $ac_cv_header_libintl_h = yes; then
7216 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7217 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7218 if test "${gt_cv_func_gettext_libc+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 #include <libintl.h>
7229 main ()
7231 return (int) gettext ("")
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest$ac_exeext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 gt_cv_func_gettext_libc=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 gt_cv_func_gettext_libc=no
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7267 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7268 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7270 if test "$gt_cv_func_gettext_libc" != "yes"; then
7271 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7272 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7273 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 ac_check_lib_save_LIBS=$LIBS
7277 LIBS="-lintl $LIBS"
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7285 /* Override any gcc2 internal prototype to avoid an error. */
7286 #ifdef __cplusplus
7287 extern "C"
7288 #endif
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char bindtextdomain ();
7293 main ()
7295 bindtextdomain ();
7297 return 0;
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; } &&
7315 { ac_try='test -s conftest$ac_exeext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_cv_lib_intl_bindtextdomain=yes
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_cv_lib_intl_bindtextdomain=no
7328 rm -f conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LIBS=$ac_check_lib_save_LIBS
7332 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7333 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7334 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7335 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7336 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7337 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7348 main ()
7350 return (int) gettext ("")
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
7364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; } &&
7370 { ac_try='test -s conftest$ac_exeext'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 gt_cv_func_gettext_libintl=yes
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7381 gt_cv_func_gettext_libintl=no
7383 rm -f conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7387 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7392 if test "$gt_cv_func_gettext_libc" = "yes" \
7393 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_GETTEXT 1
7397 _ACEOF
7399 # Extract the first word of "msgfmt", so it can be a program name with args.
7400 set dummy msgfmt; ac_word=$2
7401 echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403 if test "${ac_cv_path_MSGFMT+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 case "$MSGFMT" in
7408 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7412 for ac_dir in $PATH; do
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f $ac_dir/$ac_word; then
7415 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7416 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7417 break
7420 done
7421 IFS="$ac_save_ifs"
7422 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7424 esac
7426 MSGFMT="$ac_cv_path_MSGFMT"
7427 if test -n "$MSGFMT"; then
7428 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7429 echo "${ECHO_T}$MSGFMT" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7434 if test "$MSGFMT" != "no"; then
7436 for ac_func in dcgettext
7438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7439 echo "$as_me:$LINENO: checking for $ac_func" >&5
7440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7441 if eval "test \"\${$as_ac_var+set}\" = set"; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7452 #define $ac_func innocuous_$ac_func
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func (); below.
7456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457 <limits.h> exists even on freestanding compilers. */
7459 #ifdef __STDC__
7460 # include <limits.h>
7461 #else
7462 # include <assert.h>
7463 #endif
7465 #undef $ac_func
7467 /* Override any gcc2 internal prototype to avoid an error. */
7468 #ifdef __cplusplus
7469 extern "C"
7471 #endif
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474 char $ac_func ();
7475 /* The GNU C library defines this for functions which it implements
7476 to always fail with ENOSYS. Some functions are actually named
7477 something starting with __ and the normal name is an alias. */
7478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7479 choke me
7480 #else
7481 char (*f) () = $ac_func;
7482 #endif
7483 #ifdef __cplusplus
7485 #endif
7488 main ()
7490 return f != $ac_func;
7492 return 0;
7494 _ACEOF
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest$ac_exeext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 eval "$as_ac_var=yes"
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 eval "$as_ac_var=no"
7523 rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7528 if test `eval echo '${'$as_ac_var'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7531 _ACEOF
7534 done
7536 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7537 set dummy gmsgfmt; ac_word=$2
7538 echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7540 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 case $GMSGFMT in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7559 done
7560 done
7562 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7564 esac
7566 GMSGFMT=$ac_cv_path_GMSGFMT
7568 if test -n "$GMSGFMT"; then
7569 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7570 echo "${ECHO_T}$GMSGFMT" >&6
7571 else
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7576 # Extract the first word of "xgettext", so it can be a program name with args.
7577 set dummy xgettext; ac_word=$2
7578 echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7580 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 case "$XGETTEXT" in
7585 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7589 for ac_dir in $PATH; do
7590 test -z "$ac_dir" && ac_dir=.
7591 if test -f $ac_dir/$ac_word; then
7592 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7593 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7594 break
7597 done
7598 IFS="$ac_save_ifs"
7599 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7601 esac
7603 XGETTEXT="$ac_cv_path_XGETTEXT"
7604 if test -n "$XGETTEXT"; then
7605 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7606 echo "${ECHO_T}$XGETTEXT" >&6
7607 else
7608 echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7620 main ()
7622 extern int _nl_msg_cat_cntr;
7623 return _nl_msg_cat_cntr
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext conftest$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 CATOBJEXT=.gmo
7650 DATADIRNAME=share
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 CATOBJEXT=.mo
7656 DATADIRNAME=lib
7658 rm -f conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 INSTOBJEXT=.mo
7669 if test "$CATOBJEXT" = "NONE"; then
7670 nls_cv_use_gnu_gettext=yes
7674 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7675 INTLOBJS="\$(GETTOBJS)"
7676 # Extract the first word of "msgfmt", so it can be a program name with args.
7677 set dummy msgfmt; ac_word=$2
7678 echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7680 if test "${ac_cv_path_MSGFMT+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 case "$MSGFMT" in
7685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7689 for ac_dir in $PATH; do
7690 test -z "$ac_dir" && ac_dir=.
7691 if test -f $ac_dir/$ac_word; then
7692 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7693 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7694 break
7697 done
7698 IFS="$ac_save_ifs"
7699 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7701 esac
7703 MSGFMT="$ac_cv_path_MSGFMT"
7704 if test -n "$MSGFMT"; then
7705 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7706 echo "${ECHO_T}$MSGFMT" >&6
7707 else
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7712 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7713 set dummy gmsgfmt; ac_word=$2
7714 echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7716 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 case $GMSGFMT in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7735 done
7736 done
7738 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7740 esac
7742 GMSGFMT=$ac_cv_path_GMSGFMT
7744 if test -n "$GMSGFMT"; then
7745 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7746 echo "${ECHO_T}$GMSGFMT" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7752 # Extract the first word of "xgettext", so it can be a program name with args.
7753 set dummy xgettext; ac_word=$2
7754 echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759 case "$XGETTEXT" in
7761 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7765 for ac_dir in $PATH; do
7766 test -z "$ac_dir" && ac_dir=.
7767 if test -f $ac_dir/$ac_word; then
7768 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7769 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7770 break
7773 done
7774 IFS="$ac_save_ifs"
7775 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7777 esac
7779 XGETTEXT="$ac_cv_path_XGETTEXT"
7780 if test -n "$XGETTEXT"; then
7781 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7782 echo "${ECHO_T}$XGETTEXT" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7789 USE_INCLUDED_LIBINTL=yes
7790 CATOBJEXT=.gmo
7791 INSTOBJEXT=.mo
7792 DATADIRNAME=share
7793 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7794 INTLLIBS=$INTLDEPS
7795 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7796 nls_cv_header_intl=libintl.h
7797 nls_cv_header_libgt=libgettext.h
7800 if test "$XGETTEXT" != ":"; then
7801 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7803 else
7804 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7805 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7806 XGETTEXT=":"
7810 # We need to process the po/ directory.
7811 POSUB=po
7812 else
7813 DATADIRNAME=share
7814 nls_cv_header_intl=libintl.h
7815 nls_cv_header_libgt=libgettext.h
7818 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7819 # because some of the sources are only built for this goal.
7820 if test "$PACKAGE" = gettext; then
7821 USE_NLS=yes
7822 USE_INCLUDED_LIBINTL=yes
7825 for lang in $ALL_LINGUAS; do
7826 GMOFILES="$GMOFILES $lang.gmo"
7827 POFILES="$POFILES $lang.po"
7828 done
7843 if test "x$CATOBJEXT" != "x"; then
7844 if test "x$ALL_LINGUAS" = "x"; then
7845 LINGUAS=
7846 else
7847 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7848 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7849 NEW_LINGUAS=
7850 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7851 case "$ALL_LINGUAS" in
7852 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7853 esac
7854 done
7855 LINGUAS=$NEW_LINGUAS
7856 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7857 echo "${ECHO_T}$LINGUAS" >&6
7860 if test -n "$LINGUAS"; then
7861 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7865 if test $ac_cv_header_locale_h = yes; then
7866 INCLUDE_LOCALE_H="#include <locale.h>"
7867 else
7868 INCLUDE_LOCALE_H="\
7869 /* The system does not provide the header <locale.h>. Take care yourself. */"
7873 if test -f $srcdir/po2tbl.sed.in; then
7874 if test "$CATOBJEXT" = ".cat"; then
7875 if test "${ac_cv_header_linux_version_h+set}" = set; then
7876 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7877 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7878 if test "${ac_cv_header_linux_version_h+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7882 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7883 else
7884 # Is the header compilable?
7885 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7886 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 #include <linux/version.h>
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_header_compiler=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_header_compiler=no
7924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7930 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <linux/version.h>
7938 _ACEOF
7939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } >/dev/null; then
7947 if test -s conftest.err; then
7948 ac_cpp_err=$ac_c_preproc_warn_flag
7949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7950 else
7951 ac_cpp_err=
7953 else
7954 ac_cpp_err=yes
7956 if test -z "$ac_cpp_err"; then
7957 ac_header_preproc=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_header_preproc=no
7964 rm -f conftest.err conftest.$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7968 # So? What about this header?
7969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7970 yes:no: )
7971 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7974 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7975 ac_header_preproc=yes
7977 no:yes:* )
7978 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7979 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7981 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7983 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7984 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7985 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7987 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7989 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7991 cat <<\_ASBOX
7992 ## ------------------------------------------ ##
7993 ## Report this to the AC_PACKAGE_NAME lists. ##
7994 ## ------------------------------------------ ##
7995 _ASBOX
7997 sed "s/^/$as_me: WARNING: /" >&2
7999 esac
8000 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8001 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8002 if test "${ac_cv_header_linux_version_h+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005 ac_cv_header_linux_version_h=$ac_header_preproc
8007 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8008 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8011 if test $ac_cv_header_linux_version_h = yes; then
8012 msgformat=linux
8013 else
8014 msgformat=xopen
8019 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8021 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8022 $srcdir/po2tbl.sed.in > po2tbl.sed
8025 if test "$PACKAGE" = "gettext"; then
8026 GT_NO="#NO#"
8027 GT_YES=
8028 else
8029 GT_NO=
8030 GT_YES="#YES#"
8035 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8041 if test -f $srcdir/po/POTFILES.in; then
8042 test -d po || mkdir po
8043 if test "x$srcdir" != "x."; then
8044 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8045 posrcprefix="$srcdir/"
8046 else
8047 posrcprefix="../$srcdir/"
8049 else
8050 posrcprefix="../"
8052 rm -f po/POTFILES
8053 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8054 < $srcdir/po/POTFILES.in > po/POTFILES
8058 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8059 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8060 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8061 if test "${enable_maintainer_mode+set}" = set; then
8062 enableval="$enable_maintainer_mode"
8063 USE_MAINTAINER_MODE=$enableval
8064 else
8065 USE_MAINTAINER_MODE=no
8067 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8068 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8071 if test $USE_MAINTAINER_MODE = yes; then
8072 MAINTAINER_MODE_TRUE=
8073 MAINTAINER_MODE_FALSE='#'
8074 else
8075 MAINTAINER_MODE_TRUE='#'
8076 MAINTAINER_MODE_FALSE=
8079 MAINT=$MAINTAINER_MODE_TRUE
8085 for ac_header in sys/gmon_out.h
8087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo "$as_me:$LINENO: checking for $ac_header" >&5
8090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8096 else
8097 # Is the header compilable?
8098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h. */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #include <$ac_header>
8108 _ACEOF
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_header_compiler=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_header_compiler=no
8137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8139 echo "${ECHO_T}$ac_header_compiler" >&6
8141 # Is the header present?
8142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 #include <$ac_header>
8151 _ACEOF
8152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } >/dev/null; then
8160 if test -s conftest.err; then
8161 ac_cpp_err=$ac_c_preproc_warn_flag
8162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8163 else
8164 ac_cpp_err=
8166 else
8167 ac_cpp_err=yes
8169 if test -z "$ac_cpp_err"; then
8170 ac_header_preproc=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_header_preproc=no
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8181 # So? What about this header?
8182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8183 yes:no: )
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8188 ac_header_preproc=yes
8190 no:yes:* )
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8204 cat <<\_ASBOX
8205 ## ------------------------------------------ ##
8206 ## Report this to the AC_PACKAGE_NAME lists. ##
8207 ## ------------------------------------------ ##
8208 _ASBOX
8210 sed "s/^/$as_me: WARNING: /" >&2
8212 esac
8213 echo "$as_me:$LINENO: checking for $ac_header" >&5
8214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218 eval "$as_ac_Header=\$ac_header_preproc"
8220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 _ACEOF
8231 done
8234 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
8235 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8236 if test "${enable_build_warnings+set}" = set; then
8237 enableval="$enable_build_warnings"
8238 case "${enableval}" in
8239 yes) ;;
8240 no) build_warnings="-w";;
8241 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8242 build_warnings="${build_warnings} ${t}";;
8243 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8244 build_warnings="${t} ${build_warnings}";;
8245 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8246 esac
8247 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
8248 echo "Setting warning flags = $build_warnings" 6>&1
8250 fi; WARN_CFLAGS=""
8251 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
8252 WARN_CFLAGS="${build_warnings}"
8256 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8258 ac_config_commands="$ac_config_commands default"
8260 cat >confcache <<\_ACEOF
8261 # This file is a shell script that caches the results of configure
8262 # tests run on this system so they can be shared between configure
8263 # scripts and configure runs, see configure's option --config-cache.
8264 # It is not useful on other systems. If it contains results you don't
8265 # want to keep, you may remove or edit it.
8267 # config.status only pays attention to the cache file if you give it
8268 # the --recheck option to rerun configure.
8270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8272 # following values.
8274 _ACEOF
8276 # The following way of writing the cache mishandles newlines in values,
8277 # but we know of no workaround that is simple, portable, and efficient.
8278 # So, don't put newlines in cache variables' values.
8279 # Ultrix sh set writes to stderr and can't be redirected directly,
8280 # and sets the high bit in the cache file unless we assign to the vars.
8282 (set) 2>&1 |
8283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8284 *ac_space=\ *)
8285 # `set' does not quote correctly, so add quotes (double-quote
8286 # substitution turns \\\\ into \\, and sed turns \\ into \).
8287 sed -n \
8288 "s/'/'\\\\''/g;
8289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8292 # `set' quotes correctly as required by POSIX, so do not add quotes.
8293 sed -n \
8294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8296 esac;
8298 sed '
8299 t clear
8300 : clear
8301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8302 t end
8303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8304 : end' >>confcache
8305 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8306 if test -w $cache_file; then
8307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8308 cat confcache >$cache_file
8309 else
8310 echo "not updating unwritable cache $cache_file"
8313 rm -f confcache
8315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8316 # Let make expand exec_prefix.
8317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8321 # trailing colons and then remove the whole line if VPATH becomes empty
8322 # (actually we leave an empty line to preserve line numbers).
8323 if test "x$srcdir" = x.; then
8324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8325 s/:*\$(srcdir):*/:/;
8326 s/:*\${srcdir}:*/:/;
8327 s/:*@srcdir@:*/:/;
8328 s/^\([^=]*=[ ]*\):*/\1/;
8329 s/:*$//;
8330 s/^[^=]*=[ ]*$//;
8334 DEFS=-DHAVE_CONFIG_H
8336 ac_libobjs=
8337 ac_ltlibobjs=
8338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8339 # 1. Remove the extension, and $U if already installed.
8340 ac_i=`echo "$ac_i" |
8341 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8342 # 2. Add them.
8343 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8344 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8345 done
8346 LIBOBJS=$ac_libobjs
8348 LTLIBOBJS=$ac_ltlibobjs
8351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8352 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8353 Usually this means the macro was only invoked conditionally." >&5
8354 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8355 Usually this means the macro was only invoked conditionally." >&2;}
8356 { (exit 1); exit 1; }; }
8358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8359 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8360 Usually this means the macro was only invoked conditionally." >&5
8361 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8362 Usually this means the macro was only invoked conditionally." >&2;}
8363 { (exit 1); exit 1; }; }
8365 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8366 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8367 Usually this means the macro was only invoked conditionally." >&5
8368 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8369 Usually this means the macro was only invoked conditionally." >&2;}
8370 { (exit 1); exit 1; }; }
8373 : ${CONFIG_STATUS=./config.status}
8374 ac_clean_files_save=$ac_clean_files
8375 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8376 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8377 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8378 cat >$CONFIG_STATUS <<_ACEOF
8379 #! $SHELL
8380 # Generated by $as_me.
8381 # Run this file to recreate the current configuration.
8382 # Compiler output produced by configure, useful for debugging
8383 # configure, is in config.log if it exists.
8385 debug=false
8386 ac_cs_recheck=false
8387 ac_cs_silent=false
8388 SHELL=\${CONFIG_SHELL-$SHELL}
8389 _ACEOF
8391 cat >>$CONFIG_STATUS <<\_ACEOF
8392 ## --------------------- ##
8393 ## M4sh Initialization. ##
8394 ## --------------------- ##
8396 # Be Bourne compatible
8397 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8398 emulate sh
8399 NULLCMD=:
8400 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8401 # is contrary to our usage. Disable this feature.
8402 alias -g '${1+"$@"}'='"$@"'
8403 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8404 set -o posix
8406 DUALCASE=1; export DUALCASE # for MKS sh
8408 # Support unset when possible.
8409 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8410 as_unset=unset
8411 else
8412 as_unset=false
8416 # Work around bugs in pre-3.0 UWIN ksh.
8417 $as_unset ENV MAIL MAILPATH
8418 PS1='$ '
8419 PS2='> '
8420 PS4='+ '
8422 # NLS nuisances.
8423 for as_var in \
8424 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8425 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8426 LC_TELEPHONE LC_TIME
8428 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8429 eval $as_var=C; export $as_var
8430 else
8431 $as_unset $as_var
8433 done
8435 # Required to use basename.
8436 if expr a : '\(a\)' >/dev/null 2>&1; then
8437 as_expr=expr
8438 else
8439 as_expr=false
8442 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8443 as_basename=basename
8444 else
8445 as_basename=false
8449 # Name of the executable.
8450 as_me=`$as_basename "$0" ||
8451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8452 X"$0" : 'X\(//\)$' \| \
8453 X"$0" : 'X\(/\)$' \| \
8454 . : '\(.\)' 2>/dev/null ||
8455 echo X/"$0" |
8456 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8457 /^X\/\(\/\/\)$/{ s//\1/; q; }
8458 /^X\/\(\/\).*/{ s//\1/; q; }
8459 s/.*/./; q'`
8462 # PATH needs CR, and LINENO needs CR and PATH.
8463 # Avoid depending upon Character Ranges.
8464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8467 as_cr_digits='0123456789'
8468 as_cr_alnum=$as_cr_Letters$as_cr_digits
8470 # The user is always right.
8471 if test "${PATH_SEPARATOR+set}" != set; then
8472 echo "#! /bin/sh" >conf$$.sh
8473 echo "exit 0" >>conf$$.sh
8474 chmod +x conf$$.sh
8475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8476 PATH_SEPARATOR=';'
8477 else
8478 PATH_SEPARATOR=:
8480 rm -f conf$$.sh
8484 as_lineno_1=$LINENO
8485 as_lineno_2=$LINENO
8486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8487 test "x$as_lineno_1" != "x$as_lineno_2" &&
8488 test "x$as_lineno_3" = "x$as_lineno_2" || {
8489 # Find who we are. Look in the path if we contain no path at all
8490 # relative or not.
8491 case $0 in
8492 *[\\/]* ) as_myself=$0 ;;
8493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8499 done
8502 esac
8503 # We did not find ourselves, most probably we were run as `sh COMMAND'
8504 # in which case we are not to be found in the path.
8505 if test "x$as_myself" = x; then
8506 as_myself=$0
8508 if test ! -f "$as_myself"; then
8509 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8510 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8511 { (exit 1); exit 1; }; }
8513 case $CONFIG_SHELL in
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8518 IFS=$as_save_IFS
8519 test -z "$as_dir" && as_dir=.
8520 for as_base in sh bash ksh sh5; do
8521 case $as_dir in
8523 if ("$as_dir/$as_base" -c '
8524 as_lineno_1=$LINENO
8525 as_lineno_2=$LINENO
8526 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8527 test "x$as_lineno_1" != "x$as_lineno_2" &&
8528 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8529 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8530 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8531 CONFIG_SHELL=$as_dir/$as_base
8532 export CONFIG_SHELL
8533 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8534 fi;;
8535 esac
8536 done
8537 done
8539 esac
8541 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8542 # uniformly replaced by the line number. The first 'sed' inserts a
8543 # line-number line before each line; the second 'sed' does the real
8544 # work. The second script uses 'N' to pair each line-number line
8545 # with the numbered line, and appends trailing '-' during
8546 # substitution so that $LINENO is not a special case at line end.
8547 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8548 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8549 sed '=' <$as_myself |
8550 sed '
8552 s,$,-,
8553 : loop
8554 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8555 t loop
8556 s,-$,,
8557 s,^['$as_cr_digits']*\n,,
8558 ' >$as_me.lineno &&
8559 chmod +x $as_me.lineno ||
8560 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8561 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8562 { (exit 1); exit 1; }; }
8564 # Don't try to exec as it changes $[0], causing all sort of problems
8565 # (the dirname of $[0] is not the place where we might find the
8566 # original and so on. Autoconf is especially sensible to this).
8567 . ./$as_me.lineno
8568 # Exit status is that of the last command.
8569 exit
8573 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8574 *c*,-n*) ECHO_N= ECHO_C='
8575 ' ECHO_T=' ' ;;
8576 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8577 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8578 esac
8580 if expr a : '\(a\)' >/dev/null 2>&1; then
8581 as_expr=expr
8582 else
8583 as_expr=false
8586 rm -f conf$$ conf$$.exe conf$$.file
8587 echo >conf$$.file
8588 if ln -s conf$$.file conf$$ 2>/dev/null; then
8589 # We could just check for DJGPP; but this test a) works b) is more generic
8590 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8591 if test -f conf$$.exe; then
8592 # Don't use ln at all; we don't have any links
8593 as_ln_s='cp -p'
8594 else
8595 as_ln_s='ln -s'
8597 elif ln conf$$.file conf$$ 2>/dev/null; then
8598 as_ln_s=ln
8599 else
8600 as_ln_s='cp -p'
8602 rm -f conf$$ conf$$.exe conf$$.file
8604 if mkdir -p . 2>/dev/null; then
8605 as_mkdir_p=:
8606 else
8607 test -d ./-p && rmdir ./-p
8608 as_mkdir_p=false
8611 as_executable_p="test -f"
8613 # Sed expression to map a string onto a valid CPP name.
8614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8616 # Sed expression to map a string onto a valid variable name.
8617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8620 # IFS
8621 # We need space, tab and new line, in precisely that order.
8622 as_nl='
8624 IFS=" $as_nl"
8626 # CDPATH.
8627 $as_unset CDPATH
8629 exec 6>&1
8631 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8632 # report actual input values of CONFIG_FILES etc. instead of their
8633 # values after options handling. Logging --version etc. is OK.
8634 exec 5>>config.log
8636 echo
8637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8638 ## Running $as_me. ##
8639 _ASBOX
8640 } >&5
8641 cat >&5 <<_CSEOF
8643 This file was extended by $as_me, which was
8644 generated by GNU Autoconf 2.59. Invocation command line was
8646 CONFIG_FILES = $CONFIG_FILES
8647 CONFIG_HEADERS = $CONFIG_HEADERS
8648 CONFIG_LINKS = $CONFIG_LINKS
8649 CONFIG_COMMANDS = $CONFIG_COMMANDS
8650 $ $0 $@
8652 _CSEOF
8653 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8654 echo >&5
8655 _ACEOF
8657 # Files that config.status was made for.
8658 if test -n "$ac_config_files"; then
8659 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8662 if test -n "$ac_config_headers"; then
8663 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8666 if test -n "$ac_config_links"; then
8667 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8670 if test -n "$ac_config_commands"; then
8671 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8674 cat >>$CONFIG_STATUS <<\_ACEOF
8676 ac_cs_usage="\
8677 \`$as_me' instantiates files from templates according to the
8678 current configuration.
8680 Usage: $0 [OPTIONS] [FILE]...
8682 -h, --help print this help, then exit
8683 -V, --version print version number, then exit
8684 -q, --quiet do not print progress messages
8685 -d, --debug don't remove temporary files
8686 --recheck update $as_me by reconfiguring in the same conditions
8687 --file=FILE[:TEMPLATE]
8688 instantiate the configuration file FILE
8689 --header=FILE[:TEMPLATE]
8690 instantiate the configuration header FILE
8692 Configuration files:
8693 $config_files
8695 Configuration headers:
8696 $config_headers
8698 Configuration commands:
8699 $config_commands
8701 Report bugs to <bug-autoconf@gnu.org>."
8702 _ACEOF
8704 cat >>$CONFIG_STATUS <<_ACEOF
8705 ac_cs_version="\\
8706 config.status
8707 configured by $0, generated by GNU Autoconf 2.59,
8708 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8710 Copyright (C) 2003 Free Software Foundation, Inc.
8711 This config.status script is free software; the Free Software Foundation
8712 gives unlimited permission to copy, distribute and modify it."
8713 srcdir=$srcdir
8714 INSTALL="$INSTALL"
8715 _ACEOF
8717 cat >>$CONFIG_STATUS <<\_ACEOF
8718 # If no file are specified by the user, then we need to provide default
8719 # value. By we need to know if files were specified by the user.
8720 ac_need_defaults=:
8721 while test $# != 0
8723 case $1 in
8724 --*=*)
8725 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8726 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8727 ac_shift=:
8730 ac_option=$1
8731 ac_optarg=$2
8732 ac_shift=shift
8734 *) # This is not an option, so the user has probably given explicit
8735 # arguments.
8736 ac_option=$1
8737 ac_need_defaults=false;;
8738 esac
8740 case $ac_option in
8741 # Handling of the options.
8742 _ACEOF
8743 cat >>$CONFIG_STATUS <<\_ACEOF
8744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8745 ac_cs_recheck=: ;;
8746 --version | --vers* | -V )
8747 echo "$ac_cs_version"; exit 0 ;;
8748 --he | --h)
8749 # Conflict between --help and --header
8750 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8751 Try \`$0 --help' for more information." >&5
8752 echo "$as_me: error: ambiguous option: $1
8753 Try \`$0 --help' for more information." >&2;}
8754 { (exit 1); exit 1; }; };;
8755 --help | --hel | -h )
8756 echo "$ac_cs_usage"; exit 0 ;;
8757 --debug | --d* | -d )
8758 debug=: ;;
8759 --file | --fil | --fi | --f )
8760 $ac_shift
8761 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8762 ac_need_defaults=false;;
8763 --header | --heade | --head | --hea )
8764 $ac_shift
8765 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8766 ac_need_defaults=false;;
8767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8769 ac_cs_silent=: ;;
8771 # This is an error.
8772 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8773 Try \`$0 --help' for more information." >&5
8774 echo "$as_me: error: unrecognized option: $1
8775 Try \`$0 --help' for more information." >&2;}
8776 { (exit 1); exit 1; }; } ;;
8778 *) ac_config_targets="$ac_config_targets $1" ;;
8780 esac
8781 shift
8782 done
8784 ac_configure_extra_args=
8786 if $ac_cs_silent; then
8787 exec 6>/dev/null
8788 ac_configure_extra_args="$ac_configure_extra_args --silent"
8791 _ACEOF
8792 cat >>$CONFIG_STATUS <<_ACEOF
8793 if \$ac_cs_recheck; then
8794 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8795 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8798 _ACEOF
8800 cat >>$CONFIG_STATUS <<_ACEOF
8802 # INIT-COMMANDS section.
8805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8808 _ACEOF
8812 cat >>$CONFIG_STATUS <<\_ACEOF
8813 for ac_config_target in $ac_config_targets
8815 case "$ac_config_target" in
8816 # Handling of arguments.
8817 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8818 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8819 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8820 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8821 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
8822 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8823 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8824 { (exit 1); exit 1; }; };;
8825 esac
8826 done
8828 # If the user did not use the arguments to specify the items to instantiate,
8829 # then the envvar interface is used. Set only those that are not.
8830 # We use the long form for the default assignment because of an extremely
8831 # bizarre bug on SunOS 4.1.3.
8832 if $ac_need_defaults; then
8833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8838 # Have a temporary directory for convenience. Make it in the build tree
8839 # simply because there is no reason to put it here, and in addition,
8840 # creating and moving files from /tmp can sometimes cause problems.
8841 # Create a temporary directory, and hook for its removal unless debugging.
8842 $debug ||
8844 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8845 trap '{ (exit 1); exit 1; }' 1 2 13 15
8848 # Create a (secure) tmp directory for tmp files.
8851 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8852 test -n "$tmp" && test -d "$tmp"
8853 } ||
8855 tmp=./confstat$$-$RANDOM
8856 (umask 077 && mkdir $tmp)
8857 } ||
8859 echo "$me: cannot create a temporary directory in ." >&2
8860 { (exit 1); exit 1; }
8863 _ACEOF
8865 cat >>$CONFIG_STATUS <<_ACEOF
8868 # CONFIG_FILES section.
8871 # No need to generate the scripts if there are no CONFIG_FILES.
8872 # This happens for instance when ./config.status config.h
8873 if test -n "\$CONFIG_FILES"; then
8874 # Protect against being on the right side of a sed subst in config.status.
8875 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8876 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8877 s,@SHELL@,$SHELL,;t t
8878 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8879 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8880 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8881 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8882 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8883 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8884 s,@exec_prefix@,$exec_prefix,;t t
8885 s,@prefix@,$prefix,;t t
8886 s,@program_transform_name@,$program_transform_name,;t t
8887 s,@bindir@,$bindir,;t t
8888 s,@sbindir@,$sbindir,;t t
8889 s,@libexecdir@,$libexecdir,;t t
8890 s,@datadir@,$datadir,;t t
8891 s,@sysconfdir@,$sysconfdir,;t t
8892 s,@sharedstatedir@,$sharedstatedir,;t t
8893 s,@localstatedir@,$localstatedir,;t t
8894 s,@libdir@,$libdir,;t t
8895 s,@includedir@,$includedir,;t t
8896 s,@oldincludedir@,$oldincludedir,;t t
8897 s,@infodir@,$infodir,;t t
8898 s,@mandir@,$mandir,;t t
8899 s,@build_alias@,$build_alias,;t t
8900 s,@host_alias@,$host_alias,;t t
8901 s,@target_alias@,$target_alias,;t t
8902 s,@DEFS@,$DEFS,;t t
8903 s,@ECHO_C@,$ECHO_C,;t t
8904 s,@ECHO_N@,$ECHO_N,;t t
8905 s,@ECHO_T@,$ECHO_T,;t t
8906 s,@LIBS@,$LIBS,;t t
8907 s,@build@,$build,;t t
8908 s,@build_cpu@,$build_cpu,;t t
8909 s,@build_vendor@,$build_vendor,;t t
8910 s,@build_os@,$build_os,;t t
8911 s,@host@,$host,;t t
8912 s,@host_cpu@,$host_cpu,;t t
8913 s,@host_vendor@,$host_vendor,;t t
8914 s,@host_os@,$host_os,;t t
8915 s,@target@,$target,;t t
8916 s,@target_cpu@,$target_cpu,;t t
8917 s,@target_vendor@,$target_vendor,;t t
8918 s,@target_os@,$target_os,;t t
8919 s,@CC@,$CC,;t t
8920 s,@CFLAGS@,$CFLAGS,;t t
8921 s,@LDFLAGS@,$LDFLAGS,;t t
8922 s,@CPPFLAGS@,$CPPFLAGS,;t t
8923 s,@ac_ct_CC@,$ac_ct_CC,;t t
8924 s,@EXEEXT@,$EXEEXT,;t t
8925 s,@OBJEXT@,$OBJEXT,;t t
8926 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8927 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8928 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8929 s,@CYGPATH_W@,$CYGPATH_W,;t t
8930 s,@PACKAGE@,$PACKAGE,;t t
8931 s,@VERSION@,$VERSION,;t t
8932 s,@ACLOCAL@,$ACLOCAL,;t t
8933 s,@AUTOCONF@,$AUTOCONF,;t t
8934 s,@AUTOMAKE@,$AUTOMAKE,;t t
8935 s,@AUTOHEADER@,$AUTOHEADER,;t t
8936 s,@MAKEINFO@,$MAKEINFO,;t t
8937 s,@AMTAR@,$AMTAR,;t t
8938 s,@install_sh@,$install_sh,;t t
8939 s,@STRIP@,$STRIP,;t t
8940 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8941 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8942 s,@mkdir_p@,$mkdir_p,;t t
8943 s,@AWK@,$AWK,;t t
8944 s,@SET_MAKE@,$SET_MAKE,;t t
8945 s,@am__leading_dot@,$am__leading_dot,;t t
8946 s,@DEPDIR@,$DEPDIR,;t t
8947 s,@am__include@,$am__include,;t t
8948 s,@am__quote@,$am__quote,;t t
8949 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8950 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8951 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8952 s,@CCDEPMODE@,$CCDEPMODE,;t t
8953 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8954 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8955 s,@LN_S@,$LN_S,;t t
8956 s,@RANLIB@,$RANLIB,;t t
8957 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8958 s,@LIBTOOL@,$LIBTOOL,;t t
8959 s,@CPP@,$CPP,;t t
8960 s,@EGREP@,$EGREP,;t t
8961 s,@ALLOCA@,$ALLOCA,;t t
8962 s,@USE_NLS@,$USE_NLS,;t t
8963 s,@MSGFMT@,$MSGFMT,;t t
8964 s,@GMSGFMT@,$GMSGFMT,;t t
8965 s,@XGETTEXT@,$XGETTEXT,;t t
8966 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8967 s,@CATALOGS@,$CATALOGS,;t t
8968 s,@CATOBJEXT@,$CATOBJEXT,;t t
8969 s,@DATADIRNAME@,$DATADIRNAME,;t t
8970 s,@GMOFILES@,$GMOFILES,;t t
8971 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8972 s,@INTLDEPS@,$INTLDEPS,;t t
8973 s,@INTLLIBS@,$INTLLIBS,;t t
8974 s,@INTLOBJS@,$INTLOBJS,;t t
8975 s,@POFILES@,$POFILES,;t t
8976 s,@POSUB@,$POSUB,;t t
8977 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8978 s,@GT_NO@,$GT_NO,;t t
8979 s,@GT_YES@,$GT_YES,;t t
8980 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8981 s,@l@,$l,;t t
8982 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8983 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8984 s,@MAINT@,$MAINT,;t t
8985 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8986 s,@LIBOBJS@,$LIBOBJS,;t t
8987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8988 CEOF
8990 _ACEOF
8992 cat >>$CONFIG_STATUS <<\_ACEOF
8993 # Split the substitutions into bite-sized pieces for seds with
8994 # small command number limits, like on Digital OSF/1 and HP-UX.
8995 ac_max_sed_lines=48
8996 ac_sed_frag=1 # Number of current file.
8997 ac_beg=1 # First line for current file.
8998 ac_end=$ac_max_sed_lines # Line after last line for current file.
8999 ac_more_lines=:
9000 ac_sed_cmds=
9001 while $ac_more_lines; do
9002 if test $ac_beg -gt 1; then
9003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9004 else
9005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9007 if test ! -s $tmp/subs.frag; then
9008 ac_more_lines=false
9009 else
9010 # The purpose of the label and of the branching condition is to
9011 # speed up the sed processing (if there are no `@' at all, there
9012 # is no need to browse any of the substitutions).
9013 # These are the two extra sed commands mentioned above.
9014 (echo ':t
9015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9016 if test -z "$ac_sed_cmds"; then
9017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9018 else
9019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9021 ac_sed_frag=`expr $ac_sed_frag + 1`
9022 ac_beg=$ac_end
9023 ac_end=`expr $ac_end + $ac_max_sed_lines`
9025 done
9026 if test -z "$ac_sed_cmds"; then
9027 ac_sed_cmds=cat
9029 fi # test -n "$CONFIG_FILES"
9031 _ACEOF
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9033 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9035 case $ac_file in
9036 - | *:- | *:-:* ) # input from stdin
9037 cat >$tmp/stdin
9038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9042 * ) ac_file_in=$ac_file.in ;;
9043 esac
9045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9048 X"$ac_file" : 'X\(//\)[^/]' \| \
9049 X"$ac_file" : 'X\(//\)$' \| \
9050 X"$ac_file" : 'X\(/\)' \| \
9051 . : '\(.\)' 2>/dev/null ||
9052 echo X"$ac_file" |
9053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9055 /^X\(\/\/\)$/{ s//\1/; q; }
9056 /^X\(\/\).*/{ s//\1/; q; }
9057 s/.*/./; q'`
9058 { if $as_mkdir_p; then
9059 mkdir -p "$ac_dir"
9060 else
9061 as_dir="$ac_dir"
9062 as_dirs=
9063 while test ! -d "$as_dir"; do
9064 as_dirs="$as_dir $as_dirs"
9065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9067 X"$as_dir" : 'X\(//\)[^/]' \| \
9068 X"$as_dir" : 'X\(//\)$' \| \
9069 X"$as_dir" : 'X\(/\)' \| \
9070 . : '\(.\)' 2>/dev/null ||
9071 echo X"$as_dir" |
9072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9074 /^X\(\/\/\)$/{ s//\1/; q; }
9075 /^X\(\/\).*/{ s//\1/; q; }
9076 s/.*/./; q'`
9077 done
9078 test ! -n "$as_dirs" || mkdir $as_dirs
9079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9081 { (exit 1); exit 1; }; }; }
9083 ac_builddir=.
9085 if test "$ac_dir" != .; then
9086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9087 # A "../" for each directory in $ac_dir_suffix.
9088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9089 else
9090 ac_dir_suffix= ac_top_builddir=
9093 case $srcdir in
9094 .) # No --srcdir option. We are building in place.
9095 ac_srcdir=.
9096 if test -z "$ac_top_builddir"; then
9097 ac_top_srcdir=.
9098 else
9099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9100 fi ;;
9101 [\\/]* | ?:[\\/]* ) # Absolute path.
9102 ac_srcdir=$srcdir$ac_dir_suffix;
9103 ac_top_srcdir=$srcdir ;;
9104 *) # Relative path.
9105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9107 esac
9109 # Do not use `cd foo && pwd` to compute absolute paths, because
9110 # the directories may not exist.
9111 case `pwd` in
9112 .) ac_abs_builddir="$ac_dir";;
9114 case "$ac_dir" in
9115 .) ac_abs_builddir=`pwd`;;
9116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9118 esac;;
9119 esac
9120 case $ac_abs_builddir in
9121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9123 case ${ac_top_builddir}. in
9124 .) ac_abs_top_builddir=$ac_abs_builddir;;
9125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9127 esac;;
9128 esac
9129 case $ac_abs_builddir in
9130 .) ac_abs_srcdir=$ac_srcdir;;
9132 case $ac_srcdir in
9133 .) ac_abs_srcdir=$ac_abs_builddir;;
9134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9136 esac;;
9137 esac
9138 case $ac_abs_builddir in
9139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9141 case $ac_top_srcdir in
9142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9145 esac;;
9146 esac
9149 case $INSTALL in
9150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9152 esac
9154 # Let's still pretend it is `configure' which instantiates (i.e., don't
9155 # use $as_me), people would be surprised to read:
9156 # /* config.h. Generated by config.status. */
9157 if test x"$ac_file" = x-; then
9158 configure_input=
9159 else
9160 configure_input="$ac_file. "
9162 configure_input=$configure_input"Generated from `echo $ac_file_in |
9163 sed 's,.*/,,'` by configure."
9165 # First look for the input files in the build tree, otherwise in the
9166 # src tree.
9167 ac_file_inputs=`IFS=:
9168 for f in $ac_file_in; do
9169 case $f in
9170 -) echo $tmp/stdin ;;
9171 [\\/$]*)
9172 # Absolute (can't be DOS-style, as IFS=:)
9173 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9174 echo "$as_me: error: cannot find input file: $f" >&2;}
9175 { (exit 1); exit 1; }; }
9176 echo "$f";;
9177 *) # Relative
9178 if test -f "$f"; then
9179 # Build tree
9180 echo "$f"
9181 elif test -f "$srcdir/$f"; then
9182 # Source tree
9183 echo "$srcdir/$f"
9184 else
9185 # /dev/null tree
9186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9187 echo "$as_me: error: cannot find input file: $f" >&2;}
9188 { (exit 1); exit 1; }; }
9189 fi;;
9190 esac
9191 done` || { (exit 1); exit 1; }
9193 if test x"$ac_file" != x-; then
9194 { echo "$as_me:$LINENO: creating $ac_file" >&5
9195 echo "$as_me: creating $ac_file" >&6;}
9196 rm -f "$ac_file"
9198 _ACEOF
9199 cat >>$CONFIG_STATUS <<_ACEOF
9200 sed "$ac_vpsub
9201 $extrasub
9202 _ACEOF
9203 cat >>$CONFIG_STATUS <<\_ACEOF
9205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9206 s,@configure_input@,$configure_input,;t t
9207 s,@srcdir@,$ac_srcdir,;t t
9208 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9209 s,@top_srcdir@,$ac_top_srcdir,;t t
9210 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9211 s,@builddir@,$ac_builddir,;t t
9212 s,@abs_builddir@,$ac_abs_builddir,;t t
9213 s,@top_builddir@,$ac_top_builddir,;t t
9214 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9215 s,@INSTALL@,$ac_INSTALL,;t t
9216 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9217 rm -f $tmp/stdin
9218 if test x"$ac_file" != x-; then
9219 mv $tmp/out $ac_file
9220 else
9221 cat $tmp/out
9222 rm -f $tmp/out
9225 done
9226 _ACEOF
9227 cat >>$CONFIG_STATUS <<\_ACEOF
9230 # CONFIG_HEADER section.
9233 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9234 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9236 # ac_d sets the value in "#define NAME VALUE" lines.
9237 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9238 ac_dB='[ ].*$,\1#\2'
9239 ac_dC=' '
9240 ac_dD=',;t'
9241 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9242 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9243 ac_uB='$,\1#\2define\3'
9244 ac_uC=' '
9245 ac_uD=',;t'
9247 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9249 case $ac_file in
9250 - | *:- | *:-:* ) # input from stdin
9251 cat >$tmp/stdin
9252 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9254 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9256 * ) ac_file_in=$ac_file.in ;;
9257 esac
9259 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9260 echo "$as_me: creating $ac_file" >&6;}
9262 # First look for the input files in the build tree, otherwise in the
9263 # src tree.
9264 ac_file_inputs=`IFS=:
9265 for f in $ac_file_in; do
9266 case $f in
9267 -) echo $tmp/stdin ;;
9268 [\\/$]*)
9269 # Absolute (can't be DOS-style, as IFS=:)
9270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9271 echo "$as_me: error: cannot find input file: $f" >&2;}
9272 { (exit 1); exit 1; }; }
9273 # Do quote $f, to prevent DOS paths from being IFS'd.
9274 echo "$f";;
9275 *) # Relative
9276 if test -f "$f"; then
9277 # Build tree
9278 echo "$f"
9279 elif test -f "$srcdir/$f"; then
9280 # Source tree
9281 echo "$srcdir/$f"
9282 else
9283 # /dev/null tree
9284 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9285 echo "$as_me: error: cannot find input file: $f" >&2;}
9286 { (exit 1); exit 1; }; }
9287 fi;;
9288 esac
9289 done` || { (exit 1); exit 1; }
9290 # Remove the trailing spaces.
9291 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9293 _ACEOF
9295 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9296 # `conftest.undefs', that substitutes the proper values into
9297 # config.h.in to produce config.h. The first handles `#define'
9298 # templates, and the second `#undef' templates.
9299 # And first: Protect against being on the right side of a sed subst in
9300 # config.status. Protect against being in an unquoted here document
9301 # in config.status.
9302 rm -f conftest.defines conftest.undefs
9303 # Using a here document instead of a string reduces the quoting nightmare.
9304 # Putting comments in sed scripts is not portable.
9306 # `end' is used to avoid that the second main sed command (meant for
9307 # 0-ary CPP macros) applies to n-ary macro definitions.
9308 # See the Autoconf documentation for `clear'.
9309 cat >confdef2sed.sed <<\_ACEOF
9310 s/[\\&,]/\\&/g
9311 s,[\\$`],\\&,g
9312 t clear
9313 : clear
9314 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9315 t end
9316 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9317 : end
9318 _ACEOF
9319 # If some macros were called several times there might be several times
9320 # the same #defines, which is useless. Nevertheless, we may not want to
9321 # sort them, since we want the *last* AC-DEFINE to be honored.
9322 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9323 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9324 rm -f confdef2sed.sed
9326 # This sed command replaces #undef with comments. This is necessary, for
9327 # example, in the case of _POSIX_SOURCE, which is predefined and required
9328 # on some systems where configure will not decide to define it.
9329 cat >>conftest.undefs <<\_ACEOF
9330 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9331 _ACEOF
9333 # Break up conftest.defines because some shells have a limit on the size
9334 # of here documents, and old seds have small limits too (100 cmds).
9335 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9336 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9337 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9338 echo ' :' >>$CONFIG_STATUS
9339 rm -f conftest.tail
9340 while grep . conftest.defines >/dev/null
9342 # Write a limited-size here document to $tmp/defines.sed.
9343 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9344 # Speed up: don't consider the non `#define' lines.
9345 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9346 # Work around the forget-to-reset-the-flag bug.
9347 echo 't clr' >>$CONFIG_STATUS
9348 echo ': clr' >>$CONFIG_STATUS
9349 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9350 echo 'CEOF
9351 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9352 rm -f $tmp/in
9353 mv $tmp/out $tmp/in
9354 ' >>$CONFIG_STATUS
9355 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9356 rm -f conftest.defines
9357 mv conftest.tail conftest.defines
9358 done
9359 rm -f conftest.defines
9360 echo ' fi # grep' >>$CONFIG_STATUS
9361 echo >>$CONFIG_STATUS
9363 # Break up conftest.undefs because some shells have a limit on the size
9364 # of here documents, and old seds have small limits too (100 cmds).
9365 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9366 rm -f conftest.tail
9367 while grep . conftest.undefs >/dev/null
9369 # Write a limited-size here document to $tmp/undefs.sed.
9370 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9371 # Speed up: don't consider the non `#undef'
9372 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9373 # Work around the forget-to-reset-the-flag bug.
9374 echo 't clr' >>$CONFIG_STATUS
9375 echo ': clr' >>$CONFIG_STATUS
9376 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9377 echo 'CEOF
9378 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9379 rm -f $tmp/in
9380 mv $tmp/out $tmp/in
9381 ' >>$CONFIG_STATUS
9382 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9383 rm -f conftest.undefs
9384 mv conftest.tail conftest.undefs
9385 done
9386 rm -f conftest.undefs
9388 cat >>$CONFIG_STATUS <<\_ACEOF
9389 # Let's still pretend it is `configure' which instantiates (i.e., don't
9390 # use $as_me), people would be surprised to read:
9391 # /* config.h. Generated by config.status. */
9392 if test x"$ac_file" = x-; then
9393 echo "/* Generated by configure. */" >$tmp/config.h
9394 else
9395 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9397 cat $tmp/in >>$tmp/config.h
9398 rm -f $tmp/in
9399 if test x"$ac_file" != x-; then
9400 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9401 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9402 echo "$as_me: $ac_file is unchanged" >&6;}
9403 else
9404 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9405 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9406 X"$ac_file" : 'X\(//\)[^/]' \| \
9407 X"$ac_file" : 'X\(//\)$' \| \
9408 X"$ac_file" : 'X\(/\)' \| \
9409 . : '\(.\)' 2>/dev/null ||
9410 echo X"$ac_file" |
9411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9413 /^X\(\/\/\)$/{ s//\1/; q; }
9414 /^X\(\/\).*/{ s//\1/; q; }
9415 s/.*/./; q'`
9416 { if $as_mkdir_p; then
9417 mkdir -p "$ac_dir"
9418 else
9419 as_dir="$ac_dir"
9420 as_dirs=
9421 while test ! -d "$as_dir"; do
9422 as_dirs="$as_dir $as_dirs"
9423 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9425 X"$as_dir" : 'X\(//\)[^/]' \| \
9426 X"$as_dir" : 'X\(//\)$' \| \
9427 X"$as_dir" : 'X\(/\)' \| \
9428 . : '\(.\)' 2>/dev/null ||
9429 echo X"$as_dir" |
9430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9432 /^X\(\/\/\)$/{ s//\1/; q; }
9433 /^X\(\/\).*/{ s//\1/; q; }
9434 s/.*/./; q'`
9435 done
9436 test ! -n "$as_dirs" || mkdir $as_dirs
9437 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9438 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9439 { (exit 1); exit 1; }; }; }
9441 rm -f $ac_file
9442 mv $tmp/config.h $ac_file
9444 else
9445 cat $tmp/config.h
9446 rm -f $tmp/config.h
9448 # Compute $ac_file's index in $config_headers.
9449 _am_stamp_count=1
9450 for _am_header in $config_headers :; do
9451 case $_am_header in
9452 $ac_file | $ac_file:* )
9453 break ;;
9455 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9456 esac
9457 done
9458 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9459 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9460 X$ac_file : 'X\(//\)[^/]' \| \
9461 X$ac_file : 'X\(//\)$' \| \
9462 X$ac_file : 'X\(/\)' \| \
9463 . : '\(.\)' 2>/dev/null ||
9464 echo X$ac_file |
9465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9467 /^X\(\/\/\)$/{ s//\1/; q; }
9468 /^X\(\/\).*/{ s//\1/; q; }
9469 s/.*/./; q'`/stamp-h$_am_stamp_count
9470 done
9471 _ACEOF
9472 cat >>$CONFIG_STATUS <<\_ACEOF
9475 # CONFIG_COMMANDS section.
9477 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9478 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9479 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9480 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9481 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9482 X"$ac_dest" : 'X\(//\)[^/]' \| \
9483 X"$ac_dest" : 'X\(//\)$' \| \
9484 X"$ac_dest" : 'X\(/\)' \| \
9485 . : '\(.\)' 2>/dev/null ||
9486 echo X"$ac_dest" |
9487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9489 /^X\(\/\/\)$/{ s//\1/; q; }
9490 /^X\(\/\).*/{ s//\1/; q; }
9491 s/.*/./; q'`
9492 { if $as_mkdir_p; then
9493 mkdir -p "$ac_dir"
9494 else
9495 as_dir="$ac_dir"
9496 as_dirs=
9497 while test ! -d "$as_dir"; do
9498 as_dirs="$as_dir $as_dirs"
9499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9501 X"$as_dir" : 'X\(//\)[^/]' \| \
9502 X"$as_dir" : 'X\(//\)$' \| \
9503 X"$as_dir" : 'X\(/\)' \| \
9504 . : '\(.\)' 2>/dev/null ||
9505 echo X"$as_dir" |
9506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9508 /^X\(\/\/\)$/{ s//\1/; q; }
9509 /^X\(\/\).*/{ s//\1/; q; }
9510 s/.*/./; q'`
9511 done
9512 test ! -n "$as_dirs" || mkdir $as_dirs
9513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9515 { (exit 1); exit 1; }; }; }
9517 ac_builddir=.
9519 if test "$ac_dir" != .; then
9520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9521 # A "../" for each directory in $ac_dir_suffix.
9522 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9523 else
9524 ac_dir_suffix= ac_top_builddir=
9527 case $srcdir in
9528 .) # No --srcdir option. We are building in place.
9529 ac_srcdir=.
9530 if test -z "$ac_top_builddir"; then
9531 ac_top_srcdir=.
9532 else
9533 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9534 fi ;;
9535 [\\/]* | ?:[\\/]* ) # Absolute path.
9536 ac_srcdir=$srcdir$ac_dir_suffix;
9537 ac_top_srcdir=$srcdir ;;
9538 *) # Relative path.
9539 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9540 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9541 esac
9543 # Do not use `cd foo && pwd` to compute absolute paths, because
9544 # the directories may not exist.
9545 case `pwd` in
9546 .) ac_abs_builddir="$ac_dir";;
9548 case "$ac_dir" in
9549 .) ac_abs_builddir=`pwd`;;
9550 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9551 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9552 esac;;
9553 esac
9554 case $ac_abs_builddir in
9555 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9557 case ${ac_top_builddir}. in
9558 .) ac_abs_top_builddir=$ac_abs_builddir;;
9559 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9560 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9561 esac;;
9562 esac
9563 case $ac_abs_builddir in
9564 .) ac_abs_srcdir=$ac_srcdir;;
9566 case $ac_srcdir in
9567 .) ac_abs_srcdir=$ac_abs_builddir;;
9568 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9569 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9570 esac;;
9571 esac
9572 case $ac_abs_builddir in
9573 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9575 case $ac_top_srcdir in
9576 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9577 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9578 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9579 esac;;
9580 esac
9583 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9584 echo "$as_me: executing $ac_dest commands" >&6;}
9585 case $ac_dest in
9586 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9587 # Strip MF so we end up with the name of the file.
9588 mf=`echo "$mf" | sed -e 's/:.*$//'`
9589 # Check whether this is an Automake generated Makefile or not.
9590 # We used to match only the files named `Makefile.in', but
9591 # some people rename them; so instead we look at the file content.
9592 # Grep'ing the first line is not enough: some people post-process
9593 # each Makefile.in and add a new line on top of each file to say so.
9594 # So let's grep whole file.
9595 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9596 dirpart=`(dirname "$mf") 2>/dev/null ||
9597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9598 X"$mf" : 'X\(//\)[^/]' \| \
9599 X"$mf" : 'X\(//\)$' \| \
9600 X"$mf" : 'X\(/\)' \| \
9601 . : '\(.\)' 2>/dev/null ||
9602 echo X"$mf" |
9603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9605 /^X\(\/\/\)$/{ s//\1/; q; }
9606 /^X\(\/\).*/{ s//\1/; q; }
9607 s/.*/./; q'`
9608 else
9609 continue
9611 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9612 # Extract the definition of DEP_FILES from the Makefile without
9613 # running `make'.
9614 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9615 test -z "$DEPDIR" && continue
9616 # When using ansi2knr, U may be empty or an underscore; expand it
9617 U=`sed -n 's/^U = //p' < "$mf"`
9618 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9619 # We invoke sed twice because it is the simplest approach to
9620 # changing $(DEPDIR) to its actual value in the expansion.
9621 for file in `sed -n '
9622 /^DEP_FILES = .*\\\\$/ {
9623 s/^DEP_FILES = //
9624 :loop
9625 s/\\\\$//
9628 /\\\\$/ b loop
9631 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9633 # Make sure the directory exists.
9634 test -f "$dirpart/$file" && continue
9635 fdir=`(dirname "$file") 2>/dev/null ||
9636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9637 X"$file" : 'X\(//\)[^/]' \| \
9638 X"$file" : 'X\(//\)$' \| \
9639 X"$file" : 'X\(/\)' \| \
9640 . : '\(.\)' 2>/dev/null ||
9641 echo X"$file" |
9642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9644 /^X\(\/\/\)$/{ s//\1/; q; }
9645 /^X\(\/\).*/{ s//\1/; q; }
9646 s/.*/./; q'`
9647 { if $as_mkdir_p; then
9648 mkdir -p $dirpart/$fdir
9649 else
9650 as_dir=$dirpart/$fdir
9651 as_dirs=
9652 while test ! -d "$as_dir"; do
9653 as_dirs="$as_dir $as_dirs"
9654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9656 X"$as_dir" : 'X\(//\)[^/]' \| \
9657 X"$as_dir" : 'X\(//\)$' \| \
9658 X"$as_dir" : 'X\(/\)' \| \
9659 . : '\(.\)' 2>/dev/null ||
9660 echo X"$as_dir" |
9661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9663 /^X\(\/\/\)$/{ s//\1/; q; }
9664 /^X\(\/\).*/{ s//\1/; q; }
9665 s/.*/./; q'`
9666 done
9667 test ! -n "$as_dirs" || mkdir $as_dirs
9668 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9669 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9670 { (exit 1); exit 1; }; }; }
9672 # echo "creating $dirpart/$file"
9673 echo '# dummy' > "$dirpart/$file"
9674 done
9675 done
9677 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9678 esac
9679 done
9680 _ACEOF
9682 cat >>$CONFIG_STATUS <<\_ACEOF
9684 { (exit 0); exit 0; }
9685 _ACEOF
9686 chmod +x $CONFIG_STATUS
9687 ac_clean_files=$ac_clean_files_save
9690 # configure is writing to config.log, and then calls config.status.
9691 # config.status does its own redirection, appending to config.log.
9692 # Unfortunately, on DOS this fails, as config.log is still kept open
9693 # by configure, so config.status won't be able to write to it; its
9694 # output is simply discarded. So we exec the FD to /dev/null,
9695 # effectively closing config.log, so it can be properly (re)opened and
9696 # appended to by config.status. When coming back to configure, we
9697 # need to make the FD available again.
9698 if test "$no_create" != yes; then
9699 ac_cs_success=:
9700 ac_config_status_args=
9701 test "$silent" = yes &&
9702 ac_config_status_args="$ac_config_status_args --quiet"
9703 exec 5>/dev/null
9704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9705 exec 5>>config.log
9706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9707 # would make configure fail if this is the last instruction.
9708 $ac_cs_success || { (exit 1); exit 1; }