]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gold/configure
Add a TLS test case.
[thirdparty/binutils-gdb.git] / gold / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="gold.cc"
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"
311
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar TARGETOBJS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE YACC RANLIB ac_ct_RANLIB LN_S USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE NATIVE_LINKER_TRUE NATIVE_LINKER_FALSE GCC_TRUE GCC_FALSE FN_PTRS_IN_SO_WITHOUT_PIC_TRUE FN_PTRS_IN_SO_WITHOUT_PIC_FALSE TLS_TRUE TLS_FALSE WARN_CFLAGS NO_WERROR WARN_CXXFLAGS LFS_CXXFLAGS LIBOBJS CXXCPP EGREP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LTLIBOBJS'
313 ac_subst_files=''
314
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
334
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'
352
353 ac_prev=
354 for ac_option
355 do
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
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
641 *)
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}
647 ;;
648
649 esac
650 done
651
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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
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
668
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
672 do
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
680
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
687
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
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
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; }; }
735 fi
736 fi
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_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CXXCPP_set=${CXXCPP+set}
778 ac_env_CXXCPP_value=$CXXCPP
779 ac_cv_env_CXXCPP_set=${CXXCPP+set}
780 ac_cv_env_CXXCPP_value=$CXXCPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-targets alternative target configurations
862 --disable-dependency-tracking speeds up one-time build
863 --enable-dependency-tracking do not reject slow dependency extractors
864 --disable-nls do not use Native Language Support
865 --enable-werror treat compile warnings as errors
866 --enable-build-warnings enable build-time compiler warnings
867 --enable-maintainer-mode enable make rules and dependencies not useful
868 (and sometimes confusing) to the casual installer
869
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-sysroot=DIR search for usr/lib et al within DIR
874
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CXXCPP C++ preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904 ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
927 *)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
945 *)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960 esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
977 cd $ac_popdir
978 done
979 fi
980
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
998
999 $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115 {
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128 }
1129 echo
1130
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 ac_aux_dir=
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341 done
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346 fi
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433
1434 am__api_version="1.9"
1435 # Find a good install program. We prefer a C program (faster),
1436 # so one script is as good as another. But avoid the broken or
1437 # incompatible versions:
1438 # SysV /etc/install, /usr/sbin/install
1439 # SunOS /usr/etc/install
1440 # IRIX /sbin/install
1441 # AIX /bin/install
1442 # AmigaOS /C/install, which installs bootblocks on floppy discs
1443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1446 # OS/2's system install, which has a completely different semantic
1447 # ./install, which can be erroneously created by make from ./install.sh.
1448 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1449 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1450 if test -z "$INSTALL"; then
1451 if test "${ac_cv_path_install+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 for as_dir in $PATH
1456 do
1457 IFS=$as_save_IFS
1458 test -z "$as_dir" && as_dir=.
1459 # Account for people who put trailing slashes in PATH elements.
1460 case $as_dir/ in
1461 ./ | .// | /cC/* | \
1462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1463 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1464 /usr/ucb/* ) ;;
1465 *)
1466 # OSF1 and SCO ODT 3.0 have their own names for install.
1467 # Don't use installbsd from OSF since it installs stuff as root
1468 # by default.
1469 for ac_prog in ginstall scoinst install; do
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1472 if test $ac_prog = install &&
1473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1474 # AIX install. It has an incompatible calling convention.
1475 :
1476 elif test $ac_prog = install &&
1477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1478 # program-specific install script used by HP pwplus--don't use.
1479 :
1480 else
1481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1482 break 3
1483 fi
1484 fi
1485 done
1486 done
1487 ;;
1488 esac
1489 done
1490
1491
1492 fi
1493 if test "${ac_cv_path_install+set}" = set; then
1494 INSTALL=$ac_cv_path_install
1495 else
1496 # As a last resort, use the slow shell script. We don't cache a
1497 # path for INSTALL within a source directory, because that will
1498 # break other packages using the cache if that directory is
1499 # removed, or if the path is relative.
1500 INSTALL=$ac_install_sh
1501 fi
1502 fi
1503 echo "$as_me:$LINENO: result: $INSTALL" >&5
1504 echo "${ECHO_T}$INSTALL" >&6
1505
1506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507 # It thinks the first close brace ends the variable substitution.
1508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1509
1510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1511
1512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1513
1514 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1515 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1516 # Just in case
1517 sleep 1
1518 echo timestamp > conftest.file
1519 # Do `set' in a subshell so we don't clobber the current shell's
1520 # arguments. Must try -L first in case configure is actually a
1521 # symlink; some systems play weird games with the mod time of symlinks
1522 # (eg FreeBSD returns the mod time of the symlink's containing
1523 # directory).
1524 if (
1525 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1526 if test "$*" = "X"; then
1527 # -L didn't work.
1528 set X `ls -t $srcdir/configure conftest.file`
1529 fi
1530 rm -f conftest.file
1531 if test "$*" != "X $srcdir/configure conftest.file" \
1532 && test "$*" != "X conftest.file $srcdir/configure"; then
1533
1534 # If neither matched, then we have a broken ls. This can happen
1535 # if, for instance, CONFIG_SHELL is bash and it inherits a
1536 # broken ls alias from the environment. This has actually
1537 # happened. Such a system could not be considered "sane".
1538 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1539 alias in your environment" >&5
1540 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1541 alias in your environment" >&2;}
1542 { (exit 1); exit 1; }; }
1543 fi
1544
1545 test "$2" = conftest.file
1546 )
1547 then
1548 # Ok.
1549 :
1550 else
1551 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1552 Check your system clock" >&5
1553 echo "$as_me: error: newly created file is older than distributed files!
1554 Check your system clock" >&2;}
1555 { (exit 1); exit 1; }; }
1556 fi
1557 echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 test "$program_prefix" != NONE &&
1560 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1561 # Use a double $ so make ignores it.
1562 test "$program_suffix" != NONE &&
1563 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1564 # Double any \ or $. echo might interpret backslashes.
1565 # By default was `s,x,x', remove it if useless.
1566 cat <<\_ACEOF >conftest.sed
1567 s/[\\$]/&&/g;s/;s,x,x,$//
1568 _ACEOF
1569 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1570 rm conftest.sed
1571
1572 # expand $ac_aux_dir to an absolute path
1573 am_aux_dir=`cd $ac_aux_dir && pwd`
1574
1575 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1576 # Use eval to expand $SHELL
1577 if eval "$MISSING --run true"; then
1578 am_missing_run="$MISSING --run "
1579 else
1580 am_missing_run=
1581 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1582 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1583 fi
1584
1585 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1586 # We used to keeping the `.' as first argument, in order to
1587 # allow $(mkdir_p) to be used without argument. As in
1588 # $(mkdir_p) $(somedir)
1589 # where $(somedir) is conditionally defined. However this is wrong
1590 # for two reasons:
1591 # 1. if the package is installed by a user who cannot write `.'
1592 # make install will fail,
1593 # 2. the above comment should most certainly read
1594 # $(mkdir_p) $(DESTDIR)$(somedir)
1595 # so it does not work when $(somedir) is undefined and
1596 # $(DESTDIR) is not.
1597 # To support the latter case, we have to write
1598 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1599 # so the `.' trick is pointless.
1600 mkdir_p='mkdir -p --'
1601 else
1602 # On NextStep and OpenStep, the `mkdir' command does not
1603 # recognize any option. It will interpret all options as
1604 # directories to create, and then abort because `.' already
1605 # exists.
1606 for d in ./-p ./--version;
1607 do
1608 test -d $d && rmdir $d
1609 done
1610 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1611 if test -f "$ac_aux_dir/mkinstalldirs"; then
1612 mkdir_p='$(mkinstalldirs)'
1613 else
1614 mkdir_p='$(install_sh) -d'
1615 fi
1616 fi
1617
1618 for ac_prog in gawk mawk nawk awk
1619 do
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_AWK+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$AWK"; then
1628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_AWK="$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 AWK=$ac_cv_prog_AWK
1647 if test -n "$AWK"; then
1648 echo "$as_me:$LINENO: result: $AWK" >&5
1649 echo "${ECHO_T}$AWK" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 test -n "$AWK" && break
1656 done
1657
1658 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1659 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1660 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1661 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 cat >conftest.make <<\_ACEOF
1665 all:
1666 @echo 'ac_maketemp="$(MAKE)"'
1667 _ACEOF
1668 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1669 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1670 if test -n "$ac_maketemp"; then
1671 eval ac_cv_prog_make_${ac_make}_set=yes
1672 else
1673 eval ac_cv_prog_make_${ac_make}_set=no
1674 fi
1675 rm -f conftest.make
1676 fi
1677 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 SET_MAKE=
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 SET_MAKE="MAKE=${MAKE-make}"
1685 fi
1686
1687 rm -rf .tst 2>/dev/null
1688 mkdir .tst 2>/dev/null
1689 if test -d .tst; then
1690 am__leading_dot=.
1691 else
1692 am__leading_dot=_
1693 fi
1694 rmdir .tst 2>/dev/null
1695
1696 # test to see if srcdir already configured
1697 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1698 test -f $srcdir/config.status; then
1699 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1700 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1701 { (exit 1); exit 1; }; }
1702 fi
1703
1704 # test whether we have cygpath
1705 if test -z "$CYGPATH_W"; then
1706 if (cygpath --version) >/dev/null 2>/dev/null; then
1707 CYGPATH_W='cygpath -w'
1708 else
1709 CYGPATH_W=echo
1710 fi
1711 fi
1712
1713
1714 # Define the identity of the package.
1715 PACKAGE=gold
1716 VERSION=0.1
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE "$PACKAGE"
1721 _ACEOF
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define VERSION "$VERSION"
1726 _ACEOF
1727
1728 # Some tools Automake needs.
1729
1730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1731
1732
1733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1734
1735
1736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1737
1738
1739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1740
1741
1742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1743
1744 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1745
1746 # Installed binaries are usually stripped using `strip' when the user
1747 # run `make install-strip'. However `strip' might not be the right
1748 # tool to use in cross-compilation environments, therefore Automake
1749 # will honor the `STRIP' environment variable to overrule this program.
1750 if test "$cross_compiling" != no; then
1751 if test -n "$ac_tool_prefix"; then
1752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1753 set dummy ${ac_tool_prefix}strip; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_STRIP+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$STRIP"; then
1760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 STRIP=$ac_cv_prog_STRIP
1779 if test -n "$STRIP"; then
1780 echo "$as_me:$LINENO: result: $STRIP" >&5
1781 echo "${ECHO_T}$STRIP" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 fi
1788 if test -z "$ac_cv_prog_STRIP"; then
1789 ac_ct_STRIP=$STRIP
1790 # Extract the first word of "strip", so it can be a program name with args.
1791 set dummy strip; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$ac_ct_STRIP"; then
1798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_STRIP="strip"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1815 fi
1816 fi
1817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1818 if test -n "$ac_ct_STRIP"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1820 echo "${ECHO_T}$ac_ct_STRIP" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 STRIP=$ac_ct_STRIP
1827 else
1828 STRIP="$ac_cv_prog_STRIP"
1829 fi
1830
1831 fi
1832 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1833
1834 # We need awk for the "check" target. The system "awk" is bad on
1835 # some platforms.
1836 # Always define AMTAR for backward compatibility.
1837
1838 AMTAR=${AMTAR-"${am_missing_run}tar"}
1839
1840 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1841
1842
1843
1844
1845
1846
1847 ac_config_headers="$ac_config_headers config.h:config.in"
1848
1849
1850
1851 # Check whether --with-sysroot or --without-sysroot was given.
1852 if test "${with_sysroot+set}" = set; then
1853 withval="$with_sysroot"
1854 sysroot=$withval
1855 else
1856 sysroot=no
1857 fi;
1858
1859 if test "$sysroot" = "yes"; then
1860 sysroot='${exec_prefix}/${target_alias}/sys-root'
1861 elif test "$sysroot" = "no"; then
1862 sysroot=
1863 fi
1864
1865 sysroot_relocatable=0
1866 if test -n "$sysroot"; then
1867 case "sysroot" in
1868 "${prefix}" | "${prefix}/"* | \
1869 "${exec_prefix}" | "${exec_prefix}/"* | \
1870 '${prefix}' | '${prefix}/'*| \
1871 '${exec_prefix}' | '${exec_prefix}/'*)
1872 sysroot_relocatable=1
1873 ;;
1874 esac
1875 fi
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define TARGET_SYSTEM_ROOT "$sysroot"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
1885 _ACEOF
1886
1887
1888 # Check whether --enable-targets or --disable-targets was given.
1889 if test "${enable_targets+set}" = set; then
1890 enableval="$enable_targets"
1891 case "${enableval}" in
1892 yes | "")
1893 { { echo "$as_me:$LINENO: error: --enable-targets option must specify target names or 'all'" >&5
1894 echo "$as_me: error: --enable-targets option must specify target names or 'all'" >&2;}
1895 { (exit 1); exit 1; }; }
1896 ;;
1897 no)
1898 enable_targets=
1899 ;;
1900 *)
1901 enable_targets=$enableval
1902 ;;
1903 esac
1904 else
1905 # For now, enable all targets by default
1906 enable_targets=all
1907
1908 fi;
1909
1910 # Canonicalize the enabled targets.
1911 if test -n "$enable_targets"; then
1912 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
1913 result=`$ac_config_sub $targ 2>/dev/null`
1914 if test -n "$result"; then
1915 canon_targets="$canon_targets $result"
1916 else
1917 # Permit unrecognized target names, like "all".
1918 canon_targets="$canon_targets $targ"
1919 fi
1920 done
1921 fi
1922
1923 # See which specific instantiations we need.
1924 targetobjs=
1925 all_targets=
1926 for targ in $target $canon_targets; do
1927 targ_32_little=
1928 targ_32_big=
1929 targ_64_little=
1930 targ_64_big=
1931 if test "$targ" = "all"; then
1932 targ_32_little=yes
1933 targ_32_big=yes
1934 targ_64_little=yes
1935 targ_64_big=yes
1936 all_targets=yes
1937 else
1938 case "$targ" in
1939 i?86-*)
1940 targ_32_little=yes
1941 targetobjs="$targetobjs i386.\$(OBJEXT)"
1942 ;;
1943 x86_64-*)
1944 targ_64_little=yes
1945 targetobjs="$targetobjs x86_64.\$(OBJEXT)"
1946 ;;
1947 *)
1948 { { echo "$as_me:$LINENO: error: \"unsupported target $targ\"" >&5
1949 echo "$as_me: error: \"unsupported target $targ\"" >&2;}
1950 { (exit 1); exit 1; }; }
1951 ;;
1952 esac
1953 fi
1954 done
1955
1956 if test -n "$targ_32_little"; then
1957
1958 cat >>confdefs.h <<\_ACEOF
1959 #define HAVE_TARGET_32_LITTLE 1
1960 _ACEOF
1961
1962 fi
1963 if test -n "$targ_32_big"; then
1964
1965 cat >>confdefs.h <<\_ACEOF
1966 #define HAVE_TARGET_32_BIG 1
1967 _ACEOF
1968
1969 fi
1970 if test -n "$targ_64_little"; then
1971
1972 cat >>confdefs.h <<\_ACEOF
1973 #define HAVE_TARGET_64_LITTLE 1
1974 _ACEOF
1975
1976 fi
1977 if test -n "$targ_64_big"; then
1978
1979 cat >>confdefs.h <<\_ACEOF
1980 #define HAVE_TARGET_64_BIG 1
1981 _ACEOF
1982
1983 fi
1984
1985 if test -n "$all_targets"; then
1986 TARGETOBJS='$(ALL_TARGETOBJS)'
1987 else
1988 TARGETOBJS="$targetobjs"
1989 fi
1990
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019 done
2020 done
2021
2022 fi
2023 fi
2024 CC=$ac_cv_prog_CC
2025 if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027 echo "${ECHO_T}$CC" >&6
2028 else
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2031 fi
2032
2033 fi
2034 if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057 done
2058 done
2059
2060 fi
2061 fi
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2069 fi
2070
2071 CC=$ac_ct_CC
2072 else
2073 CC="$ac_cv_prog_CC"
2074 fi
2075
2076 if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="${ac_tool_prefix}cc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099 done
2100 done
2101
2102 fi
2103 fi
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2108 else
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2111 fi
2112
2113 fi
2114 if test -z "$ac_cv_prog_CC"; then
2115 ac_ct_CC=$CC
2116 # Extract the first word of "cc", so it can be a program name with args.
2117 set dummy cc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="cc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2136 fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2146 else
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151 CC=$ac_ct_CC
2152 else
2153 CC="$ac_cv_prog_CC"
2154 fi
2155
2156 fi
2157 if test -z "$CC"; then
2158 # Extract the first word of "cc", so it can be a program name with args.
2159 set dummy cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168 ac_prog_rejected=no
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177 ac_prog_rejected=yes
2178 continue
2179 fi
2180 ac_cv_prog_CC="cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184 done
2185 done
2186
2187 if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2190 shift
2191 if test $# != 0; then
2192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2195 shift
2196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197 fi
2198 fi
2199 fi
2200 fi
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6
2205 else
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2208 fi
2209
2210 fi
2211 if test -z "$CC"; then
2212 if test -n "$ac_tool_prefix"; then
2213 for ac_prog in cl
2214 do
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238
2239 fi
2240 fi
2241 CC=$ac_cv_prog_CC
2242 if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2245 else
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2248 fi
2249
2250 test -n "$CC" && break
2251 done
2252 fi
2253 if test -z "$CC"; then
2254 ac_ct_CC=$CC
2255 for ac_prog in cl
2256 do
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CC="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278 done
2279 done
2280
2281 fi
2282 fi
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 echo "${ECHO_T}$ac_ct_CC" >&6
2287 else
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2290 fi
2291
2292 test -n "$ac_ct_CC" && break
2293 done
2294
2295 CC=$ac_ct_CC
2296 fi
2297
2298 fi
2299
2300
2301 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2302 See \`config.log' for more details." >&5
2303 echo "$as_me: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2306
2307 # Provide some information about the compiler.
2308 echo "$as_me:$LINENO:" \
2309 "checking for C compiler version" >&5
2310 ac_compiler=`set X $ac_compile; echo $2`
2311 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2312 (eval $ac_compiler --version </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2317 (eval $ac_compiler -v </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2322 (eval $ac_compiler -V </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2333
2334 int
2335 main ()
2336 {
2337
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 ac_clean_files_save=$ac_clean_files
2343 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344 # Try to create an executable without -o first, disregard a.out.
2345 # It will help us diagnose broken compilers, and finding out an intuition
2346 # of exeext.
2347 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2349 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2351 (eval $ac_link_default) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 # Find the output, starting from the most likely. This scheme is
2356 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2357 # resort.
2358
2359 # Be careful to initialize this variable, since it used to be cached.
2360 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2361 ac_cv_exeext=
2362 # b.out is created by i960 compilers.
2363 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2364 do
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2368 ;;
2369 conftest.$ac_ext )
2370 # This is the source file.
2371 ;;
2372 [ab].out )
2373 # We found the default executable, but exeext='' is most
2374 # certainly right.
2375 break;;
2376 *.* )
2377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # FIXME: I believe we export ac_cv_exeext for Libtool,
2379 # but it would be cool to find out if it's true. Does anybody
2380 # maintain Libtool? --akim.
2381 export ac_cv_exeext
2382 break;;
2383 * )
2384 break;;
2385 esac
2386 done
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&2;}
2395 { (exit 77); exit 77; }; }
2396 fi
2397
2398 ac_exeext=$ac_cv_exeext
2399 echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6
2401
2402 # Check the compiler produces executables we can run. If not, either
2403 # the compiler is broken, or we cross compile.
2404 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2405 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2406 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2407 # If not cross compiling, check that we can run a simple program.
2408 if test "$cross_compiling" != yes; then
2409 if { ac_try='./$ac_file'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 cross_compiling=no
2416 else
2417 if test "$cross_compiling" = maybe; then
2418 cross_compiling=yes
2419 else
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427 fi
2428 fi
2429 fi
2430 echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check the compiler produces executables we can run. If not, either
2436 # the compiler is broken, or we cross compile.
2437 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2439 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6
2441
2442 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2451 # work properly (i.e., refer to `conftest.exe'), while it won't with
2452 # `rm'.
2453 for ac_file in conftest.exe conftest conftest.*; do
2454 test -f "$ac_file" || continue
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458 export ac_cv_exeext
2459 break;;
2460 * ) break;;
2461 esac
2462 done
2463 else
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2469 fi
2470
2471 rm -f conftest$ac_cv_exeext
2472 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473 echo "${ECHO_T}$ac_cv_exeext" >&6
2474
2475 rm -f conftest.$ac_ext
2476 EXEEXT=$ac_cv_exeext
2477 ac_exeext=$EXEEXT
2478 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2480 if test "${ac_cv_objext+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489
2490 int
2491 main ()
2492 {
2493
2494 ;
2495 return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.o conftest.obj
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; then
2504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2505 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508 break;;
2509 esac
2510 done
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520 fi
2521
2522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523 fi
2524 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525 echo "${ECHO_T}$ac_cv_objext" >&6
2526 OBJEXT=$ac_cv_objext
2527 ac_objext=$OBJEXT
2528 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539
2540 int
2541 main ()
2542 {
2543 #ifndef __GNUC__
2544 choke me
2545 #endif
2546
2547 ;
2548 return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_compiler_gnu=yes
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 ac_compiler_gnu=no
2579 fi
2580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583 fi
2584 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 CFLAGS="-g"
2590 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2601
2602 int
2603 main ()
2604 {
2605
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_g=yes
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_cv_prog_cc_g=no
2638 fi
2639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643 if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS=$ac_save_CFLAGS
2645 elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2647 CFLAGS="-g -O2"
2648 else
2649 CFLAGS="-g"
2650 fi
2651 else
2652 if test "$GCC" = yes; then
2653 CFLAGS="-O2"
2654 else
2655 CFLAGS=
2656 fi
2657 fi
2658 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 ac_cv_prog_cc_stdc=no
2664 ac_save_CC=$CC
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2671 #include <stdarg.h>
2672 #include <stdio.h>
2673 #include <sys/types.h>
2674 #include <sys/stat.h>
2675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676 struct buf { int x; };
2677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (p, i)
2679 char **p;
2680 int i;
2681 {
2682 return p[i];
2683 }
2684 static char *f (char * (*g) (char **, int), char **p, ...)
2685 {
2686 char *s;
2687 va_list v;
2688 va_start (v,p);
2689 s = g (p, va_arg (v,int));
2690 va_end (v);
2691 return s;
2692 }
2693
2694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2695 function prototypes and stuff, but not '\xHH' hex character constants.
2696 These don't provoke an error unfortunately, instead are silently treated
2697 as 'x'. The following induces an error, until -std1 is added to get
2698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2699 array size at least. It's necessary to write '\x00'==0 to get something
2700 that's true only with -std1. */
2701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702
2703 int test (int i, double x);
2704 struct s1 {int (*f) (int a);};
2705 struct s2 {int (*f) (double a);};
2706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707 int argc;
2708 char **argv;
2709 int
2710 main ()
2711 {
2712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715 }
2716 _ACEOF
2717 # Don't try gcc -ansi; that turns off useful extensions and
2718 # breaks some systems' header files.
2719 # AIX -qlanglvl=ansi
2720 # Ultrix and OSF/1 -std1
2721 # HP-UX 10.20 and later -Ae
2722 # HP-UX older versions -Aa -D_HPUX_SOURCE
2723 # SVR4 -Xc -D__EXTENSIONS__
2724 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_cv_prog_cc_stdc=$ac_arg
2750 break
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 fi
2756 rm -f conftest.err conftest.$ac_objext
2757 done
2758 rm -f conftest.$ac_ext conftest.$ac_objext
2759 CC=$ac_save_CC
2760
2761 fi
2762
2763 case "x$ac_cv_prog_cc_stdc" in
2764 x|xno)
2765 echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6 ;;
2767 *)
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2769 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2770 CC="$CC $ac_cv_prog_cc_stdc" ;;
2771 esac
2772
2773 # Some people use a C++ compiler to compile C. Since we use `exit',
2774 # in C++ we need to declare it. In case someone uses the same compiler
2775 # for both compiling C and C++ we need to have the C++ compiler decide
2776 # the declaration of exit, since it's the most demanding environment.
2777 cat >conftest.$ac_ext <<_ACEOF
2778 #ifndef __cplusplus
2779 choke me
2780 #endif
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
2805 '' \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2810 'void exit (int);'
2811 do
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 $ac_declaration
2819 #include <stdlib.h>
2820 int
2821 main ()
2822 {
2823 exit (42);
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 :
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 $ac_declaration
2865 int
2866 main ()
2867 {
2868 exit (42);
2869 ;
2870 return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 break
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903 rm -f conftest*
2904 if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2908 fi
2909
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 fi
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 DEPDIR="${am__leading_dot}deps"
2922
2923 ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926 am_make=${MAKE-make}
2927 cat > confinc << 'END'
2928 am__doit:
2929 @echo done
2930 .PHONY: am__doit
2931 END
2932 # If we don't find an include directive, just comment out the code.
2933 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935 am__include="#"
2936 am__quote=
2937 _am_result=none
2938 # First try GNU make style include.
2939 echo "include confinc" > confmf
2940 # We grep out `Entering directory' and `Leaving directory'
2941 # messages which can occur if `w' ends up in MAKEFLAGS.
2942 # In particular we don't look at `^make:' because GNU make might
2943 # be invoked under some other name (usually "gmake"), in which
2944 # case it prints its new name instead of `make'.
2945 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946 am__include=include
2947 am__quote=
2948 _am_result=GNU
2949 fi
2950 # Now try BSD make style include.
2951 if test "$am__include" = "#"; then
2952 echo '.include "confinc"' > confmf
2953 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2954 am__include=.include
2955 am__quote="\""
2956 _am_result=BSD
2957 fi
2958 fi
2959
2960
2961 echo "$as_me:$LINENO: result: $_am_result" >&5
2962 echo "${ECHO_T}$_am_result" >&6
2963 rm -f confinc confmf
2964
2965 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966 if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2968
2969 fi;
2970 if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2973 fi
2974
2975
2976 if test "x$enable_dependency_tracking" != xno; then
2977 AMDEP_TRUE=
2978 AMDEP_FALSE='#'
2979 else
2980 AMDEP_TRUE='#'
2981 AMDEP_FALSE=
2982 fi
2983
2984
2985
2986
2987 depcc="$CC" am_compiler_list=
2988
2989 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2990 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2991 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2995 # We make a subdir and do the tests there. Otherwise we can end up
2996 # making bogus files that we don't know about and never remove. For
2997 # instance it was reported that on HP-UX the gcc test will end up
2998 # making a dummy file named `D' -- because `-MD' means `put the output
2999 # in D'.
3000 mkdir conftest.dir
3001 # Copy depcomp to subdir because otherwise we won't find it if we're
3002 # using a relative directory.
3003 cp "$am_depcomp" conftest.dir
3004 cd conftest.dir
3005 # We will build objects and dependencies in a subdirectory because
3006 # it helps to detect inapplicable dependency modes. For instance
3007 # both Tru64's cc and ICC support -MD to output dependencies as a
3008 # side effect of compilation, but ICC will put the dependencies in
3009 # the current directory while Tru64 will put them in the object
3010 # directory.
3011 mkdir sub
3012
3013 am_cv_CC_dependencies_compiler_type=none
3014 if test "$am_compiler_list" = ""; then
3015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3016 fi
3017 for depmode in $am_compiler_list; do
3018 # Setup a source with many dependencies, because some compilers
3019 # like to wrap large dependency lists on column 80 (with \), and
3020 # we should not choose a depcomp mode which is confused by this.
3021 #
3022 # We need to recreate these files for each test, as the compiler may
3023 # overwrite some of them when testing with obscure command lines.
3024 # This happens at least with the AIX C compiler.
3025 : > sub/conftest.c
3026 for i in 1 2 3 4 5 6; do
3027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3029 # Solaris 8's {/usr,}/bin/sh.
3030 touch sub/conftst$i.h
3031 done
3032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3033
3034 case $depmode in
3035 nosideeffect)
3036 # after this tag, mechanisms are not by side-effect, so they'll
3037 # only be used when explicitly requested
3038 if test "x$enable_dependency_tracking" = xyes; then
3039 continue
3040 else
3041 break
3042 fi
3043 ;;
3044 none) break ;;
3045 esac
3046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3047 # mode. It turns out that the SunPro C++ compiler does not properly
3048 # handle `-M -o', and we need to detect this.
3049 if depmode=$depmode \
3050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3053 >/dev/null 2>conftest.err &&
3054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3057 # icc doesn't choke on unknown options, it will just issue warnings
3058 # or remarks (even with -Werror). So we grep stderr for any message
3059 # that says an option was ignored or not supported.
3060 # When given -MP, icc 7.0 and 7.1 complain thusly:
3061 # icc: Command line warning: ignoring option '-M'; no argument required
3062 # The diagnosis changed in icc 8.0:
3063 # icc: Command line remark: option '-MP' not supported
3064 if (grep 'ignoring option' conftest.err ||
3065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3066 am_cv_CC_dependencies_compiler_type=$depmode
3067 break
3068 fi
3069 fi
3070 done
3071
3072 cd ..
3073 rm -rf conftest.dir
3074 else
3075 am_cv_CC_dependencies_compiler_type=none
3076 fi
3077
3078 fi
3079 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
3083
3084
3085 if
3086 test "x$enable_dependency_tracking" != xno \
3087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3088 am__fastdepCC_TRUE=
3089 am__fastdepCC_FALSE='#'
3090 else
3091 am__fastdepCC_TRUE='#'
3092 am__fastdepCC_FALSE=
3093 fi
3094
3095
3096 ac_ext=cc
3097 ac_cpp='$CXXCPP $CPPFLAGS'
3098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3101 if test -n "$ac_tool_prefix"; then
3102 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3103 do
3104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_CXX+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$CXX"; then
3112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127
3128 fi
3129 fi
3130 CXX=$ac_cv_prog_CXX
3131 if test -n "$CXX"; then
3132 echo "$as_me:$LINENO: result: $CXX" >&5
3133 echo "${ECHO_T}$CXX" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 fi
3138
3139 test -n "$CXX" && break
3140 done
3141 fi
3142 if test -z "$CXX"; then
3143 ac_ct_CXX=$CXX
3144 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3145 do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 if test -n "$ac_ct_CXX"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_ac_ct_CXX="$ac_prog"
3164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169
3170 fi
3171 fi
3172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173 if test -n "$ac_ct_CXX"; then
3174 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3175 echo "${ECHO_T}$ac_ct_CXX" >&6
3176 else
3177 echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6
3179 fi
3180
3181 test -n "$ac_ct_CXX" && break
3182 done
3183 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3184
3185 CXX=$ac_ct_CXX
3186 fi
3187
3188
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO:" \
3191 "checking for C++ compiler version" >&5
3192 ac_compiler=`set X $ac_compile; echo $2`
3193 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3194 (eval $ac_compiler --version </dev/null >&5) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }
3198 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3199 (eval $ac_compiler -v </dev/null >&5) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }
3203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3204 (eval $ac_compiler -V </dev/null >&5) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }
3208
3209 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3210 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3211 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224 #ifndef __GNUC__
3225 choke me
3226 #endif
3227
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_cxx_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_compiler_gnu=yes
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_compiler_gnu=no
3260 fi
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3263
3264 fi
3265 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3266 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3267 GXX=`test $ac_compiler_gnu = yes && echo yes`
3268 ac_test_CXXFLAGS=${CXXFLAGS+set}
3269 ac_save_CXXFLAGS=$CXXFLAGS
3270 CXXFLAGS="-g"
3271 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3272 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cxx_g+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 ac_cv_prog_cxx_g=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 ac_cv_prog_cxx_g=no
3319 fi
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321 fi
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3324 if test "$ac_test_CXXFLAGS" = set; then
3325 CXXFLAGS=$ac_save_CXXFLAGS
3326 elif test $ac_cv_prog_cxx_g = yes; then
3327 if test "$GXX" = yes; then
3328 CXXFLAGS="-g -O2"
3329 else
3330 CXXFLAGS="-g"
3331 fi
3332 else
3333 if test "$GXX" = yes; then
3334 CXXFLAGS="-O2"
3335 else
3336 CXXFLAGS=
3337 fi
3338 fi
3339 for ac_declaration in \
3340 '' \
3341 'extern "C" void std::exit (int) throw (); using std::exit;' \
3342 'extern "C" void std::exit (int); using std::exit;' \
3343 'extern "C" void exit (int) throw ();' \
3344 'extern "C" void exit (int);' \
3345 'void exit (int);'
3346 do
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 $ac_declaration
3354 #include <stdlib.h>
3355 int
3356 main ()
3357 {
3358 exit (42);
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_cxx_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 :
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 continue
3391 fi
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 $ac_declaration
3400 int
3401 main ()
3402 {
3403 exit (42);
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410 (eval $ac_compile) 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_cxx_werror_flag"
3418 || test ! -s conftest.err'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 (eval $ac_try) 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; } &&
3424 { ac_try='test -s conftest.$ac_objext'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 (eval $ac_try) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; }; then
3430 break
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 fi
3436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 done
3438 rm -f conftest*
3439 if test -n "$ac_declaration"; then
3440 echo '#ifdef __cplusplus' >>confdefs.h
3441 echo $ac_declaration >>confdefs.h
3442 echo '#endif' >>confdefs.h
3443 fi
3444
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451 depcc="$CXX" am_compiler_list=
3452
3453 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3454 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3455 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3459 # We make a subdir and do the tests there. Otherwise we can end up
3460 # making bogus files that we don't know about and never remove. For
3461 # instance it was reported that on HP-UX the gcc test will end up
3462 # making a dummy file named `D' -- because `-MD' means `put the output
3463 # in D'.
3464 mkdir conftest.dir
3465 # Copy depcomp to subdir because otherwise we won't find it if we're
3466 # using a relative directory.
3467 cp "$am_depcomp" conftest.dir
3468 cd conftest.dir
3469 # We will build objects and dependencies in a subdirectory because
3470 # it helps to detect inapplicable dependency modes. For instance
3471 # both Tru64's cc and ICC support -MD to output dependencies as a
3472 # side effect of compilation, but ICC will put the dependencies in
3473 # the current directory while Tru64 will put them in the object
3474 # directory.
3475 mkdir sub
3476
3477 am_cv_CXX_dependencies_compiler_type=none
3478 if test "$am_compiler_list" = ""; then
3479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3480 fi
3481 for depmode in $am_compiler_list; do
3482 # Setup a source with many dependencies, because some compilers
3483 # like to wrap large dependency lists on column 80 (with \), and
3484 # we should not choose a depcomp mode which is confused by this.
3485 #
3486 # We need to recreate these files for each test, as the compiler may
3487 # overwrite some of them when testing with obscure command lines.
3488 # This happens at least with the AIX C compiler.
3489 : > sub/conftest.c
3490 for i in 1 2 3 4 5 6; do
3491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3492 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3493 # Solaris 8's {/usr,}/bin/sh.
3494 touch sub/conftst$i.h
3495 done
3496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3497
3498 case $depmode in
3499 nosideeffect)
3500 # after this tag, mechanisms are not by side-effect, so they'll
3501 # only be used when explicitly requested
3502 if test "x$enable_dependency_tracking" = xyes; then
3503 continue
3504 else
3505 break
3506 fi
3507 ;;
3508 none) break ;;
3509 esac
3510 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3511 # mode. It turns out that the SunPro C++ compiler does not properly
3512 # handle `-M -o', and we need to detect this.
3513 if depmode=$depmode \
3514 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3516 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3517 >/dev/null 2>conftest.err &&
3518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3519 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3521 # icc doesn't choke on unknown options, it will just issue warnings
3522 # or remarks (even with -Werror). So we grep stderr for any message
3523 # that says an option was ignored or not supported.
3524 # When given -MP, icc 7.0 and 7.1 complain thusly:
3525 # icc: Command line warning: ignoring option '-M'; no argument required
3526 # The diagnosis changed in icc 8.0:
3527 # icc: Command line remark: option '-MP' not supported
3528 if (grep 'ignoring option' conftest.err ||
3529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3530 am_cv_CXX_dependencies_compiler_type=$depmode
3531 break
3532 fi
3533 fi
3534 done
3535
3536 cd ..
3537 rm -rf conftest.dir
3538 else
3539 am_cv_CXX_dependencies_compiler_type=none
3540 fi
3541
3542 fi
3543 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3544 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3545 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3546
3547
3548
3549 if
3550 test "x$enable_dependency_tracking" != xno \
3551 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3552 am__fastdepCXX_TRUE=
3553 am__fastdepCXX_FALSE='#'
3554 else
3555 am__fastdepCXX_TRUE='#'
3556 am__fastdepCXX_FALSE=
3557 fi
3558
3559
3560 for ac_prog in 'bison -y' byacc
3561 do
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_YACC+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 if test -n "$YACC"; then
3570 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_YACC="$ac_prog"
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585
3586 fi
3587 fi
3588 YACC=$ac_cv_prog_YACC
3589 if test -n "$YACC"; then
3590 echo "$as_me:$LINENO: result: $YACC" >&5
3591 echo "${ECHO_T}$YACC" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595 fi
3596
3597 test -n "$YACC" && break
3598 done
3599 test -n "$YACC" || YACC="yacc"
3600
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_RANLIB+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -n "$RANLIB"; then
3610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625
3626 fi
3627 fi
3628 RANLIB=$ac_cv_prog_RANLIB
3629 if test -n "$RANLIB"; then
3630 echo "$as_me:$LINENO: result: $RANLIB" >&5
3631 echo "${ECHO_T}$RANLIB" >&6
3632 else
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637 fi
3638 if test -z "$ac_cv_prog_RANLIB"; then
3639 ac_ct_RANLIB=$RANLIB
3640 # Extract the first word of "ranlib", so it can be a program name with args.
3641 set dummy ranlib; ac_word=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 if test -n "$ac_ct_RANLIB"; then
3648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_ac_ct_RANLIB="ranlib"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663
3664 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3665 fi
3666 fi
3667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3668 if test -n "$ac_ct_RANLIB"; then
3669 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3670 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3674 fi
3675
3676 RANLIB=$ac_ct_RANLIB
3677 else
3678 RANLIB="$ac_cv_prog_RANLIB"
3679 fi
3680
3681 # Find a good install program. We prefer a C program (faster),
3682 # so one script is as good as another. But avoid the broken or
3683 # incompatible versions:
3684 # SysV /etc/install, /usr/sbin/install
3685 # SunOS /usr/etc/install
3686 # IRIX /sbin/install
3687 # AIX /bin/install
3688 # AmigaOS /C/install, which installs bootblocks on floppy discs
3689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3692 # OS/2's system install, which has a completely different semantic
3693 # ./install, which can be erroneously created by make from ./install.sh.
3694 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3706 case $as_dir/ in
3707 ./ | .// | /cC/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3710 /usr/ucb/* ) ;;
3711 *)
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3714 # by default.
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3721 :
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3725 :
3726 else
3727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3728 break 3
3729 fi
3730 fi
3731 done
3732 done
3733 ;;
3734 esac
3735 done
3736
3737
3738 fi
3739 if test "${ac_cv_path_install+set}" = set; then
3740 INSTALL=$ac_cv_path_install
3741 else
3742 # As a last resort, use the slow shell script. We don't cache a
3743 # path for INSTALL within a source directory, because that will
3744 # break other packages using the cache if that directory is
3745 # removed, or if the path is relative.
3746 INSTALL=$ac_install_sh
3747 fi
3748 fi
3749 echo "$as_me:$LINENO: result: $INSTALL" >&5
3750 echo "${ECHO_T}$INSTALL" >&6
3751
3752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3753 # It thinks the first close brace ends the variable substitution.
3754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3755
3756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3757
3758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3759
3760 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3762 LN_S=$as_ln_s
3763 if test "$LN_S" = "ln -s"; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3768 echo "${ECHO_T}no, using $LN_S" >&6
3769 fi
3770
3771 # If we haven't got the data from the intl directory,
3772 # assume NLS is disabled.
3773 USE_NLS=no
3774 LIBINTL=
3775 LIBINTL_DEP=
3776 INCINTL=
3777 XGETTEXT=
3778 GMSGFMT=
3779 POSUB=
3780
3781 if test -f ../intl/config.intl; then
3782 . ../intl/config.intl
3783 fi
3784 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3786 if test x"$USE_NLS" != xyes; then
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 else
3790 echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3792
3793 cat >>confdefs.h <<\_ACEOF
3794 #define ENABLE_NLS 1
3795 _ACEOF
3796
3797
3798 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3799 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3800 # Look for .po and .gmo files in the source directory.
3801 CATALOGS=
3802 XLINGUAS=
3803 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3804 # If there aren't any .gmo files the shell will give us the
3805 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3806 # weeded out.
3807 case "$cat" in *\**)
3808 continue;;
3809 esac
3810 # The quadruple backslash is collapsed to a double backslash
3811 # by the backticks, then collapsed again by the double quotes,
3812 # leaving us with one backslash in the sed expression (right
3813 # before the dot that mustn't act as a wildcard).
3814 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3815 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3816 # The user is allowed to set LINGUAS to a list of languages to
3817 # install catalogs for. If it's empty that means "all of them."
3818 if test "x$LINGUAS" = x; then
3819 CATALOGS="$CATALOGS $cat"
3820 XLINGUAS="$XLINGUAS $lang"
3821 else
3822 case "$LINGUAS" in *$lang*)
3823 CATALOGS="$CATALOGS $cat"
3824 XLINGUAS="$XLINGUAS $lang"
3825 ;;
3826 esac
3827 fi
3828 done
3829 LINGUAS="$XLINGUAS"
3830 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3831 echo "${ECHO_T}$LINGUAS" >&6
3832
3833
3834 DATADIRNAME=share
3835
3836 INSTOBJEXT=.mo
3837
3838 GENCAT=gencat
3839
3840 CATOBJEXT=.gmo
3841
3842 fi
3843
3844 MKINSTALLDIRS=
3845 if test -n "$ac_aux_dir"; then
3846 case "$ac_aux_dir" in
3847 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3848 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3849 esac
3850 fi
3851 if test -z "$MKINSTALLDIRS"; then
3852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3853 fi
3854
3855
3856
3857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3858 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3859 # Check whether --enable-nls or --disable-nls was given.
3860 if test "${enable_nls+set}" = set; then
3861 enableval="$enable_nls"
3862 USE_NLS=$enableval
3863 else
3864 USE_NLS=yes
3865 fi;
3866 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3867 echo "${ECHO_T}$USE_NLS" >&6
3868
3869
3870
3871
3872
3873
3874 # Prepare PATH_SEPARATOR.
3875 # The user is always right.
3876 if test "${PATH_SEPARATOR+set}" != set; then
3877 echo "#! /bin/sh" >conf$$.sh
3878 echo "exit 0" >>conf$$.sh
3879 chmod +x conf$$.sh
3880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3881 PATH_SEPARATOR=';'
3882 else
3883 PATH_SEPARATOR=:
3884 fi
3885 rm -f conf$$.sh
3886 fi
3887
3888 # Find out how to test for executable files. Don't use a zero-byte file,
3889 # as systems may use methods other than mode bits to determine executability.
3890 cat >conf$$.file <<_ASEOF
3891 #! /bin/sh
3892 exit 0
3893 _ASEOF
3894 chmod +x conf$$.file
3895 if test -x conf$$.file >/dev/null 2>&1; then
3896 ac_executable_p="test -x"
3897 else
3898 ac_executable_p="test -f"
3899 fi
3900 rm -f conf$$.file
3901
3902 # Extract the first word of "msgfmt", so it can be a program name with args.
3903 set dummy msgfmt; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_path_MSGFMT+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 case "$MSGFMT" in
3910 [\\/]* | ?:[\\/]*)
3911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3912 ;;
3913 *)
3914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3915 for ac_dir in $PATH; do
3916 IFS="$ac_save_IFS"
3917 test -z "$ac_dir" && ac_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3920 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3921 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3922 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3923 break 2
3924 fi
3925 fi
3926 done
3927 done
3928 IFS="$ac_save_IFS"
3929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3930 ;;
3931 esac
3932 fi
3933 MSGFMT="$ac_cv_path_MSGFMT"
3934 if test "$MSGFMT" != ":"; then
3935 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3936 echo "${ECHO_T}$MSGFMT" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3943 set dummy gmsgfmt; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 case $GMSGFMT in
3950 [\\/]* | ?:[\\/]*)
3951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3952 ;;
3953 *)
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967
3968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3969 ;;
3970 esac
3971 fi
3972 GMSGFMT=$ac_cv_path_GMSGFMT
3973
3974 if test -n "$GMSGFMT"; then
3975 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3976 echo "${ECHO_T}$GMSGFMT" >&6
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981
3982
3983
3984 # Prepare PATH_SEPARATOR.
3985 # The user is always right.
3986 if test "${PATH_SEPARATOR+set}" != set; then
3987 echo "#! /bin/sh" >conf$$.sh
3988 echo "exit 0" >>conf$$.sh
3989 chmod +x conf$$.sh
3990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3991 PATH_SEPARATOR=';'
3992 else
3993 PATH_SEPARATOR=:
3994 fi
3995 rm -f conf$$.sh
3996 fi
3997
3998 # Find out how to test for executable files. Don't use a zero-byte file,
3999 # as systems may use methods other than mode bits to determine executability.
4000 cat >conf$$.file <<_ASEOF
4001 #! /bin/sh
4002 exit 0
4003 _ASEOF
4004 chmod +x conf$$.file
4005 if test -x conf$$.file >/dev/null 2>&1; then
4006 ac_executable_p="test -x"
4007 else
4008 ac_executable_p="test -f"
4009 fi
4010 rm -f conf$$.file
4011
4012 # Extract the first word of "xgettext", so it can be a program name with args.
4013 set dummy xgettext; ac_word=$2
4014 echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 case "$XGETTEXT" in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4025 for ac_dir in $PATH; do
4026 IFS="$ac_save_IFS"
4027 test -z "$ac_dir" && ac_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4030 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4031 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4032 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4033 break 2
4034 fi
4035 fi
4036 done
4037 done
4038 IFS="$ac_save_IFS"
4039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4040 ;;
4041 esac
4042 fi
4043 XGETTEXT="$ac_cv_path_XGETTEXT"
4044 if test "$XGETTEXT" != ":"; then
4045 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4046 echo "${ECHO_T}$XGETTEXT" >&6
4047 else
4048 echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4050 fi
4051
4052 rm -f messages.po
4053
4054
4055 # Prepare PATH_SEPARATOR.
4056 # The user is always right.
4057 if test "${PATH_SEPARATOR+set}" != set; then
4058 echo "#! /bin/sh" >conf$$.sh
4059 echo "exit 0" >>conf$$.sh
4060 chmod +x conf$$.sh
4061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4062 PATH_SEPARATOR=';'
4063 else
4064 PATH_SEPARATOR=:
4065 fi
4066 rm -f conf$$.sh
4067 fi
4068
4069 # Find out how to test for executable files. Don't use a zero-byte file,
4070 # as systems may use methods other than mode bits to determine executability.
4071 cat >conf$$.file <<_ASEOF
4072 #! /bin/sh
4073 exit 0
4074 _ASEOF
4075 chmod +x conf$$.file
4076 if test -x conf$$.file >/dev/null 2>&1; then
4077 ac_executable_p="test -x"
4078 else
4079 ac_executable_p="test -f"
4080 fi
4081 rm -f conf$$.file
4082
4083 # Extract the first word of "msgmerge", so it can be a program name with args.
4084 set dummy msgmerge; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 case "$MSGMERGE" in
4091 [\\/]* | ?:[\\/]*)
4092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4093 ;;
4094 *)
4095 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4096 for ac_dir in $PATH; do
4097 IFS="$ac_save_IFS"
4098 test -z "$ac_dir" && ac_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4101 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4102 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4103 break 2
4104 fi
4105 fi
4106 done
4107 done
4108 IFS="$ac_save_IFS"
4109 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4110 ;;
4111 esac
4112 fi
4113 MSGMERGE="$ac_cv_path_MSGMERGE"
4114 if test "$MSGMERGE" != ":"; then
4115 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4116 echo "${ECHO_T}$MSGMERGE" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4120 fi
4121
4122
4123 if test "$GMSGFMT" != ":"; then
4124 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4125 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4126 : ;
4127 else
4128 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4129 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4130 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4131 GMSGFMT=":"
4132 fi
4133 fi
4134
4135 if test "$XGETTEXT" != ":"; then
4136 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4137 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4138 : ;
4139 else
4140 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4141 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4142 XGETTEXT=":"
4143 fi
4144 rm -f messages.po
4145 fi
4146
4147 ac_config_commands="$ac_config_commands default-1"
4148
4149
4150
4151
4152 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4153 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4154 if test "${ac_cv_c_bigendian+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 # See if sys/param.h defines the BYTE_ORDER macro.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4166
4167 int
4168 main ()
4169 {
4170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4171 bogus endian macros
4172 #endif
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 # It does; now see whether it defined to BIG_ENDIAN or not.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4209
4210 int
4211 main ()
4212 {
4213 #if BYTE_ORDER != BIG_ENDIAN
4214 not big endian
4215 #endif
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_c_bigendian=yes
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_c_bigendian=no
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 # It does not; compile a test program.
4256 if test "$cross_compiling" = yes; then
4257 # try to guess the endianness by grepping values into an object file
4258 ac_cv_c_bigendian=unknown
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4266 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4267 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4268 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4269 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4270 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4271 int
4272 main ()
4273 {
4274 _ascii (); _ebcdic ();
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4303 fi
4304 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4307 else
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4310 fi
4311 fi
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 fi
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 else
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 int
4326 main ()
4327 {
4328 /* Are we little or big endian? From Harbison&Steele. */
4329 union
4330 {
4331 long l;
4332 char c[sizeof (long)];
4333 } u;
4334 u.l = 1;
4335 exit (u.c[sizeof (long) - 1] == 1);
4336 }
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_c_bigendian=no
4350 else
4351 echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 ( exit $ac_status )
4356 ac_cv_c_bigendian=yes
4357 fi
4358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 fi
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4365 case $ac_cv_c_bigendian in
4366 yes)
4367
4368 cat >>confdefs.h <<\_ACEOF
4369 #define WORDS_BIGENDIAN 1
4370 _ACEOF
4371 ;;
4372 no)
4373 ;;
4374 *)
4375 { { echo "$as_me:$LINENO: error: unknown endianness
4376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4377 echo "$as_me: error: unknown endianness
4378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380 esac
4381
4382
4383
4384
4385
4386
4387 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
4388 NATIVE_LINKER_TRUE=
4389 NATIVE_LINKER_FALSE='#'
4390 else
4391 NATIVE_LINKER_TRUE='#'
4392 NATIVE_LINKER_FALSE=
4393 fi
4394
4395
4396
4397 if test "$GCC" = yes; then
4398 GCC_TRUE=
4399 GCC_FALSE='#'
4400 else
4401 GCC_TRUE='#'
4402 GCC_FALSE=
4403 fi
4404
4405
4406
4407
4408 if
4409 case $target_cpu in
4410 i?86) true;;
4411 x86_64) false;;
4412 *) true;;
4413 esac; then
4414 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
4415 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
4416 else
4417 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
4418 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
4419 fi
4420
4421
4422 cat >conftest.$ac_ext <<_ACEOF
4423 __thread int i = 1;
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 tls=yes
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 tls=no
4453 fi
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455
4456
4457 if test "$tls" = "yes"; then
4458 TLS_TRUE=
4459 TLS_FALSE='#'
4460 else
4461 TLS_TRUE='#'
4462 TLS_FALSE=
4463 fi
4464
4465
4466
4467 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4468
4469 # Check whether --enable-werror or --disable-werror was given.
4470 if test "${enable_werror+set}" = set; then
4471 enableval="$enable_werror"
4472 case "${enableval}" in
4473 yes | y) ERROR_ON_WARNING="yes" ;;
4474 no | n) ERROR_ON_WARNING="no" ;;
4475 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4476 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4477 { (exit 1); exit 1; }; } ;;
4478 esac
4479 fi;
4480
4481 # Enable -Werror by default when using gcc
4482 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4483 ERROR_ON_WARNING=yes
4484 fi
4485
4486 NO_WERROR=
4487 if test "${ERROR_ON_WARNING}" = yes ; then
4488 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4489 NO_WERROR="-Wno-error"
4490 fi
4491
4492 if test "${GCC}" = yes ; then
4493 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4494 fi
4495
4496 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4497 if test "${enable_build_warnings+set}" = set; then
4498 enableval="$enable_build_warnings"
4499 case "${enableval}" in
4500 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4501 no) if test "${GCC}" = yes ; then
4502 WARN_CFLAGS="-w"
4503 fi;;
4504 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4505 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4506 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4507 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4508 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4509 esac
4510 fi;
4511
4512 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4513 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4514 fi
4515
4516
4517
4518
4519
4520 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
4521
4522
4523 LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4524
4525
4526
4527 for ac_func in pread
4528 do
4529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4530 echo "$as_me:$LINENO: checking for $ac_func" >&5
4531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4532 if eval "test \"\${$as_ac_var+set}\" = set"; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4543 #define $ac_func innocuous_$ac_func
4544
4545 /* System header to define __stub macros and hopefully few prototypes,
4546 which can conflict with char $ac_func (); below.
4547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4548 <limits.h> exists even on freestanding compilers. */
4549
4550 #ifdef __STDC__
4551 # include <limits.h>
4552 #else
4553 # include <assert.h>
4554 #endif
4555
4556 #undef $ac_func
4557
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 #ifdef __cplusplus
4560 extern "C"
4561 {
4562 #endif
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4565 char $ac_func ();
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4570 choke me
4571 #else
4572 char (*f) () = $ac_func;
4573 #endif
4574 #ifdef __cplusplus
4575 }
4576 #endif
4577
4578 int
4579 main ()
4580 {
4581 return f != $ac_func;
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext conftest$ac_exeext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588 (eval $ac_link) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest$ac_exeext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 eval "$as_ac_var=yes"
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 eval "$as_ac_var=no"
4614 fi
4615 rm -f conftest.err conftest.$ac_objext \
4616 conftest$ac_exeext conftest.$ac_ext
4617 fi
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4620 if test `eval echo '${'$as_ac_var'}'` = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4623 _ACEOF
4624
4625 else
4626 case $LIBOBJS in
4627 "$ac_func.$ac_objext" | \
4628 *" $ac_func.$ac_objext" | \
4629 "$ac_func.$ac_objext "* | \
4630 *" $ac_func.$ac_objext "* ) ;;
4631 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4632 esac
4633
4634 fi
4635 done
4636
4637
4638
4639 ac_ext=cc
4640 ac_cpp='$CXXCPP $CPPFLAGS'
4641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4644
4645
4646
4647 ac_ext=cc
4648 ac_cpp='$CXXCPP $CPPFLAGS'
4649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4652 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4653 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4654 if test -z "$CXXCPP"; then
4655 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 # Double quotes because CXXCPP needs to be expanded
4659 for CXXCPP in "$CXX -E" "/lib/cpp"
4660 do
4661 ac_preproc_ok=false
4662 for ac_cxx_preproc_warn_flag in '' yes
4663 do
4664 # Use a header file that comes with gcc, so configuring glibc
4665 # with a fresh cross-compiler works.
4666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667 # <limits.h> exists even on freestanding compilers.
4668 # On the NeXT, cc -E runs the code through the compiler's parser,
4669 # not just through cpp. "Syntax error" is here to catch this case.
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #ifdef __STDC__
4677 # include <limits.h>
4678 #else
4679 # include <assert.h>
4680 #endif
4681 Syntax error
4682 _ACEOF
4683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null; then
4691 if test -s conftest.err; then
4692 ac_cpp_err=$ac_cxx_preproc_warn_flag
4693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4694 else
4695 ac_cpp_err=
4696 fi
4697 else
4698 ac_cpp_err=yes
4699 fi
4700 if test -z "$ac_cpp_err"; then
4701 :
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 # Broken: fails on valid input.
4707 continue
4708 fi
4709 rm -f conftest.err conftest.$ac_ext
4710
4711 # OK, works on sane cases. Now check whether non-existent headers
4712 # can be detected and how.
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <ac_nonexistent.h>
4720 _ACEOF
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_cxx_preproc_warn_flag
4731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4732 else
4733 ac_cpp_err=
4734 fi
4735 else
4736 ac_cpp_err=yes
4737 fi
4738 if test -z "$ac_cpp_err"; then
4739 # Broken: success on invalid input.
4740 continue
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 # Passes both tests.
4746 ac_preproc_ok=:
4747 break
4748 fi
4749 rm -f conftest.err conftest.$ac_ext
4750
4751 done
4752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4753 rm -f conftest.err conftest.$ac_ext
4754 if $ac_preproc_ok; then
4755 break
4756 fi
4757
4758 done
4759 ac_cv_prog_CXXCPP=$CXXCPP
4760
4761 fi
4762 CXXCPP=$ac_cv_prog_CXXCPP
4763 else
4764 ac_cv_prog_CXXCPP=$CXXCPP
4765 fi
4766 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4767 echo "${ECHO_T}$CXXCPP" >&6
4768 ac_preproc_ok=false
4769 for ac_cxx_preproc_warn_flag in '' yes
4770 do
4771 # Use a header file that comes with gcc, so configuring glibc
4772 # with a fresh cross-compiler works.
4773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4774 # <limits.h> exists even on freestanding compilers.
4775 # On the NeXT, cc -E runs the code through the compiler's parser,
4776 # not just through cpp. "Syntax error" is here to catch this case.
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #ifdef __STDC__
4784 # include <limits.h>
4785 #else
4786 # include <assert.h>
4787 #endif
4788 Syntax error
4789 _ACEOF
4790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } >/dev/null; then
4798 if test -s conftest.err; then
4799 ac_cpp_err=$ac_cxx_preproc_warn_flag
4800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4801 else
4802 ac_cpp_err=
4803 fi
4804 else
4805 ac_cpp_err=yes
4806 fi
4807 if test -z "$ac_cpp_err"; then
4808 :
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 # Broken: fails on valid input.
4814 continue
4815 fi
4816 rm -f conftest.err conftest.$ac_ext
4817
4818 # OK, works on sane cases. Now check whether non-existent headers
4819 # can be detected and how.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <ac_nonexistent.h>
4827 _ACEOF
4828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null; then
4836 if test -s conftest.err; then
4837 ac_cpp_err=$ac_cxx_preproc_warn_flag
4838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4839 else
4840 ac_cpp_err=
4841 fi
4842 else
4843 ac_cpp_err=yes
4844 fi
4845 if test -z "$ac_cpp_err"; then
4846 # Broken: success on invalid input.
4847 continue
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 # Passes both tests.
4853 ac_preproc_ok=:
4854 break
4855 fi
4856 rm -f conftest.err conftest.$ac_ext
4857
4858 done
4859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860 rm -f conftest.err conftest.$ac_ext
4861 if $ac_preproc_ok; then
4862 :
4863 else
4864 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4865 See \`config.log' for more details." >&5
4866 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4867 See \`config.log' for more details." >&2;}
4868 { (exit 1); exit 1; }; }
4869 fi
4870
4871 ac_ext=cc
4872 ac_cpp='$CXXCPP $CPPFLAGS'
4873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4876
4877
4878 echo "$as_me:$LINENO: checking for egrep" >&5
4879 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4880 if test "${ac_cv_prog_egrep+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4884 then ac_cv_prog_egrep='grep -E'
4885 else ac_cv_prog_egrep='egrep'
4886 fi
4887 fi
4888 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4889 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4890 EGREP=$ac_cv_prog_egrep
4891
4892
4893 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4894 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4895 if test "${ac_cv_header_stdc+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <stdlib.h>
4905 #include <stdarg.h>
4906 #include <string.h>
4907 #include <float.h>
4908
4909 int
4910 main ()
4911 {
4912
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_cxx_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_header_stdc=yes
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 ac_cv_header_stdc=no
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947
4948 if test $ac_cv_header_stdc = yes; then
4949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <string.h>
4957
4958 _ACEOF
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "memchr" >/dev/null 2>&1; then
4961 :
4962 else
4963 ac_cv_header_stdc=no
4964 fi
4965 rm -f conftest*
4966
4967 fi
4968
4969 if test $ac_cv_header_stdc = yes; then
4970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #include <stdlib.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "free" >/dev/null 2>&1; then
4982 :
4983 else
4984 ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4992 if test "$cross_compiling" = yes; then
4993 :
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <ctype.h>
5002 #if ((' ' & 0x0FF) == 0x020)
5003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5005 #else
5006 # define ISLOWER(c) \
5007 (('a' <= (c) && (c) <= 'i') \
5008 || ('j' <= (c) && (c) <= 'r') \
5009 || ('s' <= (c) && (c) <= 'z'))
5010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5011 #endif
5012
5013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5014 int
5015 main ()
5016 {
5017 int i;
5018 for (i = 0; i < 256; i++)
5019 if (XOR (islower (i), ISLOWER (i))
5020 || toupper (i) != TOUPPER (i))
5021 exit(2);
5022 exit (0);
5023 }
5024 _ACEOF
5025 rm -f conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 :
5037 else
5038 echo "$as_me: program exited with status $ac_status" >&5
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 ( exit $ac_status )
5043 ac_cv_header_stdc=no
5044 fi
5045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 fi
5048 fi
5049 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5050 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5051 if test $ac_cv_header_stdc = yes; then
5052
5053 cat >>confdefs.h <<\_ACEOF
5054 #define STDC_HEADERS 1
5055 _ACEOF
5056
5057 fi
5058
5059 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070 inttypes.h stdint.h unistd.h
5071 do
5072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 echo "$as_me:$LINENO: checking for $ac_header" >&5
5074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085
5086 #include <$ac_header>
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 eval "$as_ac_Header=yes"
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 eval "$as_ac_Header=no"
5116 fi
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124 _ACEOF
5125
5126 fi
5127
5128 done
5129
5130
5131
5132
5133 for ac_header in tr1/unordered_set tr1/unordered_map
5134 do
5135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5137 echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 fi
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144 else
5145 # Is the header compilable?
5146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 #include <$ac_header>
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_header_compiler=yes
5180 else
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ac_header_compiler=no
5185 fi
5186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5188 echo "${ECHO_T}$ac_header_compiler" >&6
5189
5190 # Is the header present?
5191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <$ac_header>
5200 _ACEOF
5201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null; then
5209 if test -s conftest.err; then
5210 ac_cpp_err=$ac_cxx_preproc_warn_flag
5211 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5212 else
5213 ac_cpp_err=
5214 fi
5215 else
5216 ac_cpp_err=yes
5217 fi
5218 if test -z "$ac_cpp_err"; then
5219 ac_header_preproc=yes
5220 else
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 ac_header_preproc=no
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5228 echo "${ECHO_T}$ac_header_preproc" >&6
5229
5230 # So? What about this header?
5231 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5232 yes:no: )
5233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5237 ac_header_preproc=yes
5238 ;;
5239 no:yes:* )
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5252 (
5253 cat <<\_ASBOX
5254 ## ------------------------------------------ ##
5255 ## Report this to the AC_PACKAGE_NAME lists. ##
5256 ## ------------------------------------------ ##
5257 _ASBOX
5258 ) |
5259 sed "s/^/$as_me: WARNING: /" >&2
5260 ;;
5261 esac
5262 echo "$as_me:$LINENO: checking for $ac_header" >&5
5263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 eval "$as_ac_Header=\$ac_header_preproc"
5268 fi
5269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5271
5272 fi
5273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5274 cat >>confdefs.h <<_ACEOF
5275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5276 _ACEOF
5277
5278 fi
5279
5280 done
5281
5282
5283
5284 for ac_header in ext/hash_map ext/hash_set
5285 do
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 echo "$as_me:$LINENO: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 fi
5293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5295 else
5296 # Is the header compilable?
5297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 #include <$ac_header>
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_cxx_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_header_compiler=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_header_compiler=no
5336 fi
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5339 echo "${ECHO_T}$ac_header_compiler" >&6
5340
5341 # Is the header present?
5342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <$ac_header>
5351 _ACEOF
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null; then
5360 if test -s conftest.err; then
5361 ac_cpp_err=$ac_cxx_preproc_warn_flag
5362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5363 else
5364 ac_cpp_err=
5365 fi
5366 else
5367 ac_cpp_err=yes
5368 fi
5369 if test -z "$ac_cpp_err"; then
5370 ac_header_preproc=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_header_preproc=no
5376 fi
5377 rm -f conftest.err conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379 echo "${ECHO_T}$ac_header_preproc" >&6
5380
5381 # So? What about this header?
5382 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5383 yes:no: )
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5388 ac_header_preproc=yes
5389 ;;
5390 no:yes:* )
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5403 (
5404 cat <<\_ASBOX
5405 ## ------------------------------------------ ##
5406 ## Report this to the AC_PACKAGE_NAME lists. ##
5407 ## ------------------------------------------ ##
5408 _ASBOX
5409 ) |
5410 sed "s/^/$as_me: WARNING: /" >&2
5411 ;;
5412 esac
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 eval "$as_ac_Header=\$ac_header_preproc"
5419 fi
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5422
5423 fi
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 _ACEOF
5428
5429 fi
5430
5431 done
5432
5433
5434 cat >conftest.$ac_ext <<_ACEOF
5435
5436 class c { public: template<int i> void fn(); };
5437 template<int i> void foo(c cv) { cv.fn<i>(); }
5438 template void foo<1>(c cv);
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -z "$ac_cxx_werror_flag"
5450 || test ! -s conftest.err'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; } &&
5456 { ac_try='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462
5463 cat >>confdefs.h <<\_ACEOF
5464 #define HAVE_MEMBER_TEMPLATE_SPECIFICATIONS
5465 _ACEOF
5466
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473
5474 ac_ext=c
5475 ac_cpp='$CPP $CPPFLAGS'
5476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479
5480
5481 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5482 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5483 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5484 if test "${enable_maintainer_mode+set}" = set; then
5485 enableval="$enable_maintainer_mode"
5486 USE_MAINTAINER_MODE=$enableval
5487 else
5488 USE_MAINTAINER_MODE=no
5489 fi;
5490 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5491 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5492
5493
5494 if test $USE_MAINTAINER_MODE = yes; then
5495 MAINTAINER_MODE_TRUE=
5496 MAINTAINER_MODE_FALSE='#'
5497 else
5498 MAINTAINER_MODE_TRUE='#'
5499 MAINTAINER_MODE_FALSE=
5500 fi
5501
5502 MAINT=$MAINTAINER_MODE_TRUE
5503
5504
5505
5506 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
5507 cat >confcache <<\_ACEOF
5508 # This file is a shell script that caches the results of configure
5509 # tests run on this system so they can be shared between configure
5510 # scripts and configure runs, see configure's option --config-cache.
5511 # It is not useful on other systems. If it contains results you don't
5512 # want to keep, you may remove or edit it.
5513 #
5514 # config.status only pays attention to the cache file if you give it
5515 # the --recheck option to rerun configure.
5516 #
5517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5519 # following values.
5520
5521 _ACEOF
5522
5523 # The following way of writing the cache mishandles newlines in values,
5524 # but we know of no workaround that is simple, portable, and efficient.
5525 # So, don't put newlines in cache variables' values.
5526 # Ultrix sh set writes to stderr and can't be redirected directly,
5527 # and sets the high bit in the cache file unless we assign to the vars.
5528 {
5529 (set) 2>&1 |
5530 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5531 *ac_space=\ *)
5532 # `set' does not quote correctly, so add quotes (double-quote
5533 # substitution turns \\\\ into \\, and sed turns \\ into \).
5534 sed -n \
5535 "s/'/'\\\\''/g;
5536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5537 ;;
5538 *)
5539 # `set' quotes correctly as required by POSIX, so do not add quotes.
5540 sed -n \
5541 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5542 ;;
5543 esac;
5544 } |
5545 sed '
5546 t clear
5547 : clear
5548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5549 t end
5550 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5551 : end' >>confcache
5552 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5553 if test -w $cache_file; then
5554 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5555 cat confcache >$cache_file
5556 else
5557 echo "not updating unwritable cache $cache_file"
5558 fi
5559 fi
5560 rm -f confcache
5561
5562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5563 # Let make expand exec_prefix.
5564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5565
5566 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5567 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5568 # trailing colons and then remove the whole line if VPATH becomes empty
5569 # (actually we leave an empty line to preserve line numbers).
5570 if test "x$srcdir" = x.; then
5571 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5572 s/:*\$(srcdir):*/:/;
5573 s/:*\${srcdir}:*/:/;
5574 s/:*@srcdir@:*/:/;
5575 s/^\([^=]*=[ ]*\):*/\1/;
5576 s/:*$//;
5577 s/^[^=]*=[ ]*$//;
5578 }'
5579 fi
5580
5581 DEFS=-DHAVE_CONFIG_H
5582
5583 ac_libobjs=
5584 ac_ltlibobjs=
5585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5586 # 1. Remove the extension, and $U if already installed.
5587 ac_i=`echo "$ac_i" |
5588 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5589 # 2. Add them.
5590 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5591 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5592 done
5593 LIBOBJS=$ac_libobjs
5594
5595 LTLIBOBJS=$ac_ltlibobjs
5596
5597
5598 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5599 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5600 Usually this means the macro was only invoked conditionally." >&5
5601 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5602 Usually this means the macro was only invoked conditionally." >&2;}
5603 { (exit 1); exit 1; }; }
5604 fi
5605 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5606 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5607 Usually this means the macro was only invoked conditionally." >&5
5608 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5609 Usually this means the macro was only invoked conditionally." >&2;}
5610 { (exit 1); exit 1; }; }
5611 fi
5612 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5613 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5614 Usually this means the macro was only invoked conditionally." >&5
5615 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5616 Usually this means the macro was only invoked conditionally." >&2;}
5617 { (exit 1); exit 1; }; }
5618 fi
5619 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
5620 { { echo "$as_me:$LINENO: error: conditional \"NATIVE_LINKER\" was never defined.
5621 Usually this means the macro was only invoked conditionally." >&5
5622 echo "$as_me: error: conditional \"NATIVE_LINKER\" was never defined.
5623 Usually this means the macro was only invoked conditionally." >&2;}
5624 { (exit 1); exit 1; }; }
5625 fi
5626 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
5627 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
5628 Usually this means the macro was only invoked conditionally." >&5
5629 echo "$as_me: error: conditional \"GCC\" was never defined.
5630 Usually this means the macro was only invoked conditionally." >&2;}
5631 { (exit 1); exit 1; }; }
5632 fi
5633 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
5634 { { echo "$as_me:$LINENO: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
5635 Usually this means the macro was only invoked conditionally." >&5
5636 echo "$as_me: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
5637 Usually this means the macro was only invoked conditionally." >&2;}
5638 { (exit 1); exit 1; }; }
5639 fi
5640 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
5641 { { echo "$as_me:$LINENO: error: conditional \"TLS\" was never defined.
5642 Usually this means the macro was only invoked conditionally." >&5
5643 echo "$as_me: error: conditional \"TLS\" was never defined.
5644 Usually this means the macro was only invoked conditionally." >&2;}
5645 { (exit 1); exit 1; }; }
5646 fi
5647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5648 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5649 Usually this means the macro was only invoked conditionally." >&5
5650 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5651 Usually this means the macro was only invoked conditionally." >&2;}
5652 { (exit 1); exit 1; }; }
5653 fi
5654
5655 : ${CONFIG_STATUS=./config.status}
5656 ac_clean_files_save=$ac_clean_files
5657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5658 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5659 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5660 cat >$CONFIG_STATUS <<_ACEOF
5661 #! $SHELL
5662 # Generated by $as_me.
5663 # Run this file to recreate the current configuration.
5664 # Compiler output produced by configure, useful for debugging
5665 # configure, is in config.log if it exists.
5666
5667 debug=false
5668 ac_cs_recheck=false
5669 ac_cs_silent=false
5670 SHELL=\${CONFIG_SHELL-$SHELL}
5671 _ACEOF
5672
5673 cat >>$CONFIG_STATUS <<\_ACEOF
5674 ## --------------------- ##
5675 ## M4sh Initialization. ##
5676 ## --------------------- ##
5677
5678 # Be Bourne compatible
5679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5680 emulate sh
5681 NULLCMD=:
5682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5683 # is contrary to our usage. Disable this feature.
5684 alias -g '${1+"$@"}'='"$@"'
5685 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5686 set -o posix
5687 fi
5688 DUALCASE=1; export DUALCASE # for MKS sh
5689
5690 # Support unset when possible.
5691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5692 as_unset=unset
5693 else
5694 as_unset=false
5695 fi
5696
5697
5698 # Work around bugs in pre-3.0 UWIN ksh.
5699 $as_unset ENV MAIL MAILPATH
5700 PS1='$ '
5701 PS2='> '
5702 PS4='+ '
5703
5704 # NLS nuisances.
5705 for as_var in \
5706 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5707 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5708 LC_TELEPHONE LC_TIME
5709 do
5710 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5711 eval $as_var=C; export $as_var
5712 else
5713 $as_unset $as_var
5714 fi
5715 done
5716
5717 # Required to use basename.
5718 if expr a : '\(a\)' >/dev/null 2>&1; then
5719 as_expr=expr
5720 else
5721 as_expr=false
5722 fi
5723
5724 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5725 as_basename=basename
5726 else
5727 as_basename=false
5728 fi
5729
5730
5731 # Name of the executable.
5732 as_me=`$as_basename "$0" ||
5733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5734 X"$0" : 'X\(//\)$' \| \
5735 X"$0" : 'X\(/\)$' \| \
5736 . : '\(.\)' 2>/dev/null ||
5737 echo X/"$0" |
5738 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5739 /^X\/\(\/\/\)$/{ s//\1/; q; }
5740 /^X\/\(\/\).*/{ s//\1/; q; }
5741 s/.*/./; q'`
5742
5743
5744 # PATH needs CR, and LINENO needs CR and PATH.
5745 # Avoid depending upon Character Ranges.
5746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5749 as_cr_digits='0123456789'
5750 as_cr_alnum=$as_cr_Letters$as_cr_digits
5751
5752 # The user is always right.
5753 if test "${PATH_SEPARATOR+set}" != set; then
5754 echo "#! /bin/sh" >conf$$.sh
5755 echo "exit 0" >>conf$$.sh
5756 chmod +x conf$$.sh
5757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5758 PATH_SEPARATOR=';'
5759 else
5760 PATH_SEPARATOR=:
5761 fi
5762 rm -f conf$$.sh
5763 fi
5764
5765
5766 as_lineno_1=$LINENO
5767 as_lineno_2=$LINENO
5768 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5769 test "x$as_lineno_1" != "x$as_lineno_2" &&
5770 test "x$as_lineno_3" = "x$as_lineno_2" || {
5771 # Find who we are. Look in the path if we contain no path at all
5772 # relative or not.
5773 case $0 in
5774 *[\\/]* ) as_myself=$0 ;;
5775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5781 done
5782
5783 ;;
5784 esac
5785 # We did not find ourselves, most probably we were run as `sh COMMAND'
5786 # in which case we are not to be found in the path.
5787 if test "x$as_myself" = x; then
5788 as_myself=$0
5789 fi
5790 if test ! -f "$as_myself"; then
5791 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5792 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5793 { (exit 1); exit 1; }; }
5794 fi
5795 case $CONFIG_SHELL in
5796 '')
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5799 do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for as_base in sh bash ksh sh5; do
5803 case $as_dir in
5804 /*)
5805 if ("$as_dir/$as_base" -c '
5806 as_lineno_1=$LINENO
5807 as_lineno_2=$LINENO
5808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5809 test "x$as_lineno_1" != "x$as_lineno_2" &&
5810 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5811 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5812 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5813 CONFIG_SHELL=$as_dir/$as_base
5814 export CONFIG_SHELL
5815 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5816 fi;;
5817 esac
5818 done
5819 done
5820 ;;
5821 esac
5822
5823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5824 # uniformly replaced by the line number. The first 'sed' inserts a
5825 # line-number line before each line; the second 'sed' does the real
5826 # work. The second script uses 'N' to pair each line-number line
5827 # with the numbered line, and appends trailing '-' during
5828 # substitution so that $LINENO is not a special case at line end.
5829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5830 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5831 sed '=' <$as_myself |
5832 sed '
5833 N
5834 s,$,-,
5835 : loop
5836 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5837 t loop
5838 s,-$,,
5839 s,^['$as_cr_digits']*\n,,
5840 ' >$as_me.lineno &&
5841 chmod +x $as_me.lineno ||
5842 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5843 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5844 { (exit 1); exit 1; }; }
5845
5846 # Don't try to exec as it changes $[0], causing all sort of problems
5847 # (the dirname of $[0] is not the place where we might find the
5848 # original and so on. Autoconf is especially sensible to this).
5849 . ./$as_me.lineno
5850 # Exit status is that of the last command.
5851 exit
5852 }
5853
5854
5855 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5856 *c*,-n*) ECHO_N= ECHO_C='
5857 ' ECHO_T=' ' ;;
5858 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5859 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5860 esac
5861
5862 if expr a : '\(a\)' >/dev/null 2>&1; then
5863 as_expr=expr
5864 else
5865 as_expr=false
5866 fi
5867
5868 rm -f conf$$ conf$$.exe conf$$.file
5869 echo >conf$$.file
5870 if ln -s conf$$.file conf$$ 2>/dev/null; then
5871 # We could just check for DJGPP; but this test a) works b) is more generic
5872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5873 if test -f conf$$.exe; then
5874 # Don't use ln at all; we don't have any links
5875 as_ln_s='cp -p'
5876 else
5877 as_ln_s='ln -s'
5878 fi
5879 elif ln conf$$.file conf$$ 2>/dev/null; then
5880 as_ln_s=ln
5881 else
5882 as_ln_s='cp -p'
5883 fi
5884 rm -f conf$$ conf$$.exe conf$$.file
5885
5886 if mkdir -p . 2>/dev/null; then
5887 as_mkdir_p=:
5888 else
5889 test -d ./-p && rmdir ./-p
5890 as_mkdir_p=false
5891 fi
5892
5893 as_executable_p="test -f"
5894
5895 # Sed expression to map a string onto a valid CPP name.
5896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5897
5898 # Sed expression to map a string onto a valid variable name.
5899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5900
5901
5902 # IFS
5903 # We need space, tab and new line, in precisely that order.
5904 as_nl='
5905 '
5906 IFS=" $as_nl"
5907
5908 # CDPATH.
5909 $as_unset CDPATH
5910
5911 exec 6>&1
5912
5913 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5914 # report actual input values of CONFIG_FILES etc. instead of their
5915 # values after options handling. Logging --version etc. is OK.
5916 exec 5>>config.log
5917 {
5918 echo
5919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5920 ## Running $as_me. ##
5921 _ASBOX
5922 } >&5
5923 cat >&5 <<_CSEOF
5924
5925 This file was extended by $as_me, which was
5926 generated by GNU Autoconf 2.59. Invocation command line was
5927
5928 CONFIG_FILES = $CONFIG_FILES
5929 CONFIG_HEADERS = $CONFIG_HEADERS
5930 CONFIG_LINKS = $CONFIG_LINKS
5931 CONFIG_COMMANDS = $CONFIG_COMMANDS
5932 $ $0 $@
5933
5934 _CSEOF
5935 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5936 echo >&5
5937 _ACEOF
5938
5939 # Files that config.status was made for.
5940 if test -n "$ac_config_files"; then
5941 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5942 fi
5943
5944 if test -n "$ac_config_headers"; then
5945 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5946 fi
5947
5948 if test -n "$ac_config_links"; then
5949 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5950 fi
5951
5952 if test -n "$ac_config_commands"; then
5953 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5954 fi
5955
5956 cat >>$CONFIG_STATUS <<\_ACEOF
5957
5958 ac_cs_usage="\
5959 \`$as_me' instantiates files from templates according to the
5960 current configuration.
5961
5962 Usage: $0 [OPTIONS] [FILE]...
5963
5964 -h, --help print this help, then exit
5965 -V, --version print version number, then exit
5966 -q, --quiet do not print progress messages
5967 -d, --debug don't remove temporary files
5968 --recheck update $as_me by reconfiguring in the same conditions
5969 --file=FILE[:TEMPLATE]
5970 instantiate the configuration file FILE
5971 --header=FILE[:TEMPLATE]
5972 instantiate the configuration header FILE
5973
5974 Configuration files:
5975 $config_files
5976
5977 Configuration headers:
5978 $config_headers
5979
5980 Configuration commands:
5981 $config_commands
5982
5983 Report bugs to <bug-autoconf@gnu.org>."
5984 _ACEOF
5985
5986 cat >>$CONFIG_STATUS <<_ACEOF
5987 ac_cs_version="\\
5988 config.status
5989 configured by $0, generated by GNU Autoconf 2.59,
5990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5991
5992 Copyright (C) 2003 Free Software Foundation, Inc.
5993 This config.status script is free software; the Free Software Foundation
5994 gives unlimited permission to copy, distribute and modify it."
5995 srcdir=$srcdir
5996 INSTALL="$INSTALL"
5997 _ACEOF
5998
5999 cat >>$CONFIG_STATUS <<\_ACEOF
6000 # If no file are specified by the user, then we need to provide default
6001 # value. By we need to know if files were specified by the user.
6002 ac_need_defaults=:
6003 while test $# != 0
6004 do
6005 case $1 in
6006 --*=*)
6007 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6008 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6009 ac_shift=:
6010 ;;
6011 -*)
6012 ac_option=$1
6013 ac_optarg=$2
6014 ac_shift=shift
6015 ;;
6016 *) # This is not an option, so the user has probably given explicit
6017 # arguments.
6018 ac_option=$1
6019 ac_need_defaults=false;;
6020 esac
6021
6022 case $ac_option in
6023 # Handling of the options.
6024 _ACEOF
6025 cat >>$CONFIG_STATUS <<\_ACEOF
6026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6027 ac_cs_recheck=: ;;
6028 --version | --vers* | -V )
6029 echo "$ac_cs_version"; exit 0 ;;
6030 --he | --h)
6031 # Conflict between --help and --header
6032 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6033 Try \`$0 --help' for more information." >&5
6034 echo "$as_me: error: ambiguous option: $1
6035 Try \`$0 --help' for more information." >&2;}
6036 { (exit 1); exit 1; }; };;
6037 --help | --hel | -h )
6038 echo "$ac_cs_usage"; exit 0 ;;
6039 --debug | --d* | -d )
6040 debug=: ;;
6041 --file | --fil | --fi | --f )
6042 $ac_shift
6043 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6044 ac_need_defaults=false;;
6045 --header | --heade | --head | --hea )
6046 $ac_shift
6047 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6048 ac_need_defaults=false;;
6049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6051 ac_cs_silent=: ;;
6052
6053 # This is an error.
6054 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6055 Try \`$0 --help' for more information." >&5
6056 echo "$as_me: error: unrecognized option: $1
6057 Try \`$0 --help' for more information." >&2;}
6058 { (exit 1); exit 1; }; } ;;
6059
6060 *) ac_config_targets="$ac_config_targets $1" ;;
6061
6062 esac
6063 shift
6064 done
6065
6066 ac_configure_extra_args=
6067
6068 if $ac_cs_silent; then
6069 exec 6>/dev/null
6070 ac_configure_extra_args="$ac_configure_extra_args --silent"
6071 fi
6072
6073 _ACEOF
6074 cat >>$CONFIG_STATUS <<_ACEOF
6075 if \$ac_cs_recheck; then
6076 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6077 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6078 fi
6079
6080 _ACEOF
6081
6082 cat >>$CONFIG_STATUS <<_ACEOF
6083 #
6084 # INIT-COMMANDS section.
6085 #
6086
6087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6088 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6089 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6090 # from automake.
6091 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6092 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6093 LINGUAS="${LINGUAS-%UNSET%}"
6094
6095
6096 _ACEOF
6097
6098
6099
6100 cat >>$CONFIG_STATUS <<\_ACEOF
6101 for ac_config_target in $ac_config_targets
6102 do
6103 case "$ac_config_target" in
6104 # Handling of arguments.
6105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6106 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6107 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
6108 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6109 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6110 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6113 { (exit 1); exit 1; }; };;
6114 esac
6115 done
6116
6117 # If the user did not use the arguments to specify the items to instantiate,
6118 # then the envvar interface is used. Set only those that are not.
6119 # We use the long form for the default assignment because of an extremely
6120 # bizarre bug on SunOS 4.1.3.
6121 if $ac_need_defaults; then
6122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6125 fi
6126
6127 # Have a temporary directory for convenience. Make it in the build tree
6128 # simply because there is no reason to put it here, and in addition,
6129 # creating and moving files from /tmp can sometimes cause problems.
6130 # Create a temporary directory, and hook for its removal unless debugging.
6131 $debug ||
6132 {
6133 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6134 trap '{ (exit 1); exit 1; }' 1 2 13 15
6135 }
6136
6137 # Create a (secure) tmp directory for tmp files.
6138
6139 {
6140 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6141 test -n "$tmp" && test -d "$tmp"
6142 } ||
6143 {
6144 tmp=./confstat$$-$RANDOM
6145 (umask 077 && mkdir $tmp)
6146 } ||
6147 {
6148 echo "$me: cannot create a temporary directory in ." >&2
6149 { (exit 1); exit 1; }
6150 }
6151
6152 _ACEOF
6153
6154 cat >>$CONFIG_STATUS <<_ACEOF
6155
6156 #
6157 # CONFIG_FILES section.
6158 #
6159
6160 # No need to generate the scripts if there are no CONFIG_FILES.
6161 # This happens for instance when ./config.status config.h
6162 if test -n "\$CONFIG_FILES"; then
6163 # Protect against being on the right side of a sed subst in config.status.
6164 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6165 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6166 s,@SHELL@,$SHELL,;t t
6167 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6168 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6169 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6170 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6171 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6172 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6173 s,@exec_prefix@,$exec_prefix,;t t
6174 s,@prefix@,$prefix,;t t
6175 s,@program_transform_name@,$program_transform_name,;t t
6176 s,@bindir@,$bindir,;t t
6177 s,@sbindir@,$sbindir,;t t
6178 s,@libexecdir@,$libexecdir,;t t
6179 s,@datadir@,$datadir,;t t
6180 s,@sysconfdir@,$sysconfdir,;t t
6181 s,@sharedstatedir@,$sharedstatedir,;t t
6182 s,@localstatedir@,$localstatedir,;t t
6183 s,@libdir@,$libdir,;t t
6184 s,@includedir@,$includedir,;t t
6185 s,@oldincludedir@,$oldincludedir,;t t
6186 s,@infodir@,$infodir,;t t
6187 s,@mandir@,$mandir,;t t
6188 s,@build_alias@,$build_alias,;t t
6189 s,@host_alias@,$host_alias,;t t
6190 s,@target_alias@,$target_alias,;t t
6191 s,@DEFS@,$DEFS,;t t
6192 s,@ECHO_C@,$ECHO_C,;t t
6193 s,@ECHO_N@,$ECHO_N,;t t
6194 s,@ECHO_T@,$ECHO_T,;t t
6195 s,@LIBS@,$LIBS,;t t
6196 s,@build@,$build,;t t
6197 s,@build_cpu@,$build_cpu,;t t
6198 s,@build_vendor@,$build_vendor,;t t
6199 s,@build_os@,$build_os,;t t
6200 s,@host@,$host,;t t
6201 s,@host_cpu@,$host_cpu,;t t
6202 s,@host_vendor@,$host_vendor,;t t
6203 s,@host_os@,$host_os,;t t
6204 s,@target@,$target,;t t
6205 s,@target_cpu@,$target_cpu,;t t
6206 s,@target_vendor@,$target_vendor,;t t
6207 s,@target_os@,$target_os,;t t
6208 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6209 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6210 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6211 s,@CYGPATH_W@,$CYGPATH_W,;t t
6212 s,@PACKAGE@,$PACKAGE,;t t
6213 s,@VERSION@,$VERSION,;t t
6214 s,@ACLOCAL@,$ACLOCAL,;t t
6215 s,@AUTOCONF@,$AUTOCONF,;t t
6216 s,@AUTOMAKE@,$AUTOMAKE,;t t
6217 s,@AUTOHEADER@,$AUTOHEADER,;t t
6218 s,@MAKEINFO@,$MAKEINFO,;t t
6219 s,@install_sh@,$install_sh,;t t
6220 s,@STRIP@,$STRIP,;t t
6221 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6222 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6223 s,@mkdir_p@,$mkdir_p,;t t
6224 s,@AWK@,$AWK,;t t
6225 s,@SET_MAKE@,$SET_MAKE,;t t
6226 s,@am__leading_dot@,$am__leading_dot,;t t
6227 s,@AMTAR@,$AMTAR,;t t
6228 s,@am__tar@,$am__tar,;t t
6229 s,@am__untar@,$am__untar,;t t
6230 s,@TARGETOBJS@,$TARGETOBJS,;t t
6231 s,@CC@,$CC,;t t
6232 s,@CFLAGS@,$CFLAGS,;t t
6233 s,@LDFLAGS@,$LDFLAGS,;t t
6234 s,@CPPFLAGS@,$CPPFLAGS,;t t
6235 s,@ac_ct_CC@,$ac_ct_CC,;t t
6236 s,@EXEEXT@,$EXEEXT,;t t
6237 s,@OBJEXT@,$OBJEXT,;t t
6238 s,@DEPDIR@,$DEPDIR,;t t
6239 s,@am__include@,$am__include,;t t
6240 s,@am__quote@,$am__quote,;t t
6241 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6242 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6243 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6244 s,@CCDEPMODE@,$CCDEPMODE,;t t
6245 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6246 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6247 s,@CXX@,$CXX,;t t
6248 s,@CXXFLAGS@,$CXXFLAGS,;t t
6249 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6250 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6251 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6252 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6253 s,@YACC@,$YACC,;t t
6254 s,@RANLIB@,$RANLIB,;t t
6255 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6256 s,@LN_S@,$LN_S,;t t
6257 s,@USE_NLS@,$USE_NLS,;t t
6258 s,@LIBINTL@,$LIBINTL,;t t
6259 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6260 s,@INCINTL@,$INCINTL,;t t
6261 s,@XGETTEXT@,$XGETTEXT,;t t
6262 s,@GMSGFMT@,$GMSGFMT,;t t
6263 s,@POSUB@,$POSUB,;t t
6264 s,@CATALOGS@,$CATALOGS,;t t
6265 s,@DATADIRNAME@,$DATADIRNAME,;t t
6266 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6267 s,@GENCAT@,$GENCAT,;t t
6268 s,@CATOBJEXT@,$CATOBJEXT,;t t
6269 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6270 s,@MSGFMT@,$MSGFMT,;t t
6271 s,@MSGMERGE@,$MSGMERGE,;t t
6272 s,@NATIVE_LINKER_TRUE@,$NATIVE_LINKER_TRUE,;t t
6273 s,@NATIVE_LINKER_FALSE@,$NATIVE_LINKER_FALSE,;t t
6274 s,@GCC_TRUE@,$GCC_TRUE,;t t
6275 s,@GCC_FALSE@,$GCC_FALSE,;t t
6276 s,@FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@,$FN_PTRS_IN_SO_WITHOUT_PIC_TRUE,;t t
6277 s,@FN_PTRS_IN_SO_WITHOUT_PIC_FALSE@,$FN_PTRS_IN_SO_WITHOUT_PIC_FALSE,;t t
6278 s,@TLS_TRUE@,$TLS_TRUE,;t t
6279 s,@TLS_FALSE@,$TLS_FALSE,;t t
6280 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6281 s,@NO_WERROR@,$NO_WERROR,;t t
6282 s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
6283 s,@LFS_CXXFLAGS@,$LFS_CXXFLAGS,;t t
6284 s,@LIBOBJS@,$LIBOBJS,;t t
6285 s,@CXXCPP@,$CXXCPP,;t t
6286 s,@EGREP@,$EGREP,;t t
6287 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6288 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6289 s,@MAINT@,$MAINT,;t t
6290 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6291 CEOF
6292
6293 _ACEOF
6294
6295 cat >>$CONFIG_STATUS <<\_ACEOF
6296 # Split the substitutions into bite-sized pieces for seds with
6297 # small command number limits, like on Digital OSF/1 and HP-UX.
6298 ac_max_sed_lines=48
6299 ac_sed_frag=1 # Number of current file.
6300 ac_beg=1 # First line for current file.
6301 ac_end=$ac_max_sed_lines # Line after last line for current file.
6302 ac_more_lines=:
6303 ac_sed_cmds=
6304 while $ac_more_lines; do
6305 if test $ac_beg -gt 1; then
6306 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6307 else
6308 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6309 fi
6310 if test ! -s $tmp/subs.frag; then
6311 ac_more_lines=false
6312 else
6313 # The purpose of the label and of the branching condition is to
6314 # speed up the sed processing (if there are no `@' at all, there
6315 # is no need to browse any of the substitutions).
6316 # These are the two extra sed commands mentioned above.
6317 (echo ':t
6318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6319 if test -z "$ac_sed_cmds"; then
6320 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6321 else
6322 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6323 fi
6324 ac_sed_frag=`expr $ac_sed_frag + 1`
6325 ac_beg=$ac_end
6326 ac_end=`expr $ac_end + $ac_max_sed_lines`
6327 fi
6328 done
6329 if test -z "$ac_sed_cmds"; then
6330 ac_sed_cmds=cat
6331 fi
6332 fi # test -n "$CONFIG_FILES"
6333
6334 _ACEOF
6335 cat >>$CONFIG_STATUS <<\_ACEOF
6336 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6338 case $ac_file in
6339 - | *:- | *:-:* ) # input from stdin
6340 cat >$tmp/stdin
6341 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6343 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6345 * ) ac_file_in=$ac_file.in ;;
6346 esac
6347
6348 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6349 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6351 X"$ac_file" : 'X\(//\)[^/]' \| \
6352 X"$ac_file" : 'X\(//\)$' \| \
6353 X"$ac_file" : 'X\(/\)' \| \
6354 . : '\(.\)' 2>/dev/null ||
6355 echo X"$ac_file" |
6356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6358 /^X\(\/\/\)$/{ s//\1/; q; }
6359 /^X\(\/\).*/{ s//\1/; q; }
6360 s/.*/./; q'`
6361 { if $as_mkdir_p; then
6362 mkdir -p "$ac_dir"
6363 else
6364 as_dir="$ac_dir"
6365 as_dirs=
6366 while test ! -d "$as_dir"; do
6367 as_dirs="$as_dir $as_dirs"
6368 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6370 X"$as_dir" : 'X\(//\)[^/]' \| \
6371 X"$as_dir" : 'X\(//\)$' \| \
6372 X"$as_dir" : 'X\(/\)' \| \
6373 . : '\(.\)' 2>/dev/null ||
6374 echo X"$as_dir" |
6375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6377 /^X\(\/\/\)$/{ s//\1/; q; }
6378 /^X\(\/\).*/{ s//\1/; q; }
6379 s/.*/./; q'`
6380 done
6381 test ! -n "$as_dirs" || mkdir $as_dirs
6382 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6384 { (exit 1); exit 1; }; }; }
6385
6386 ac_builddir=.
6387
6388 if test "$ac_dir" != .; then
6389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6390 # A "../" for each directory in $ac_dir_suffix.
6391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6392 else
6393 ac_dir_suffix= ac_top_builddir=
6394 fi
6395
6396 case $srcdir in
6397 .) # No --srcdir option. We are building in place.
6398 ac_srcdir=.
6399 if test -z "$ac_top_builddir"; then
6400 ac_top_srcdir=.
6401 else
6402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6403 fi ;;
6404 [\\/]* | ?:[\\/]* ) # Absolute path.
6405 ac_srcdir=$srcdir$ac_dir_suffix;
6406 ac_top_srcdir=$srcdir ;;
6407 *) # Relative path.
6408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6410 esac
6411
6412 # Do not use `cd foo && pwd` to compute absolute paths, because
6413 # the directories may not exist.
6414 case `pwd` in
6415 .) ac_abs_builddir="$ac_dir";;
6416 *)
6417 case "$ac_dir" in
6418 .) ac_abs_builddir=`pwd`;;
6419 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6420 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6421 esac;;
6422 esac
6423 case $ac_abs_builddir in
6424 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6425 *)
6426 case ${ac_top_builddir}. in
6427 .) ac_abs_top_builddir=$ac_abs_builddir;;
6428 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6429 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6430 esac;;
6431 esac
6432 case $ac_abs_builddir in
6433 .) ac_abs_srcdir=$ac_srcdir;;
6434 *)
6435 case $ac_srcdir in
6436 .) ac_abs_srcdir=$ac_abs_builddir;;
6437 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6438 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6439 esac;;
6440 esac
6441 case $ac_abs_builddir in
6442 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6443 *)
6444 case $ac_top_srcdir in
6445 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6446 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6447 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6448 esac;;
6449 esac
6450
6451
6452 case $INSTALL in
6453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6454 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6455 esac
6456
6457 if test x"$ac_file" != x-; then
6458 { echo "$as_me:$LINENO: creating $ac_file" >&5
6459 echo "$as_me: creating $ac_file" >&6;}
6460 rm -f "$ac_file"
6461 fi
6462 # Let's still pretend it is `configure' which instantiates (i.e., don't
6463 # use $as_me), people would be surprised to read:
6464 # /* config.h. Generated by config.status. */
6465 if test x"$ac_file" = x-; then
6466 configure_input=
6467 else
6468 configure_input="$ac_file. "
6469 fi
6470 configure_input=$configure_input"Generated from `echo $ac_file_in |
6471 sed 's,.*/,,'` by configure."
6472
6473 # First look for the input files in the build tree, otherwise in the
6474 # src tree.
6475 ac_file_inputs=`IFS=:
6476 for f in $ac_file_in; do
6477 case $f in
6478 -) echo $tmp/stdin ;;
6479 [\\/$]*)
6480 # Absolute (can't be DOS-style, as IFS=:)
6481 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6482 echo "$as_me: error: cannot find input file: $f" >&2;}
6483 { (exit 1); exit 1; }; }
6484 echo "$f";;
6485 *) # Relative
6486 if test -f "$f"; then
6487 # Build tree
6488 echo "$f"
6489 elif test -f "$srcdir/$f"; then
6490 # Source tree
6491 echo "$srcdir/$f"
6492 else
6493 # /dev/null tree
6494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6495 echo "$as_me: error: cannot find input file: $f" >&2;}
6496 { (exit 1); exit 1; }; }
6497 fi;;
6498 esac
6499 done` || { (exit 1); exit 1; }
6500 _ACEOF
6501 cat >>$CONFIG_STATUS <<_ACEOF
6502 sed "$ac_vpsub
6503 $extrasub
6504 _ACEOF
6505 cat >>$CONFIG_STATUS <<\_ACEOF
6506 :t
6507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6508 s,@configure_input@,$configure_input,;t t
6509 s,@srcdir@,$ac_srcdir,;t t
6510 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6511 s,@top_srcdir@,$ac_top_srcdir,;t t
6512 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6513 s,@builddir@,$ac_builddir,;t t
6514 s,@abs_builddir@,$ac_abs_builddir,;t t
6515 s,@top_builddir@,$ac_top_builddir,;t t
6516 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6517 s,@INSTALL@,$ac_INSTALL,;t t
6518 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6519 rm -f $tmp/stdin
6520 if test x"$ac_file" != x-; then
6521 mv $tmp/out $ac_file
6522 else
6523 cat $tmp/out
6524 rm -f $tmp/out
6525 fi
6526
6527 done
6528 _ACEOF
6529 cat >>$CONFIG_STATUS <<\_ACEOF
6530
6531 #
6532 # CONFIG_HEADER section.
6533 #
6534
6535 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6536 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6537 #
6538 # ac_d sets the value in "#define NAME VALUE" lines.
6539 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6540 ac_dB='[ ].*$,\1#\2'
6541 ac_dC=' '
6542 ac_dD=',;t'
6543 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6544 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6545 ac_uB='$,\1#\2define\3'
6546 ac_uC=' '
6547 ac_uD=',;t'
6548
6549 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6550 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6551 case $ac_file in
6552 - | *:- | *:-:* ) # input from stdin
6553 cat >$tmp/stdin
6554 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6556 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6558 * ) ac_file_in=$ac_file.in ;;
6559 esac
6560
6561 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6562 echo "$as_me: creating $ac_file" >&6;}
6563
6564 # First look for the input files in the build tree, otherwise in the
6565 # src tree.
6566 ac_file_inputs=`IFS=:
6567 for f in $ac_file_in; do
6568 case $f in
6569 -) echo $tmp/stdin ;;
6570 [\\/$]*)
6571 # Absolute (can't be DOS-style, as IFS=:)
6572 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6573 echo "$as_me: error: cannot find input file: $f" >&2;}
6574 { (exit 1); exit 1; }; }
6575 # Do quote $f, to prevent DOS paths from being IFS'd.
6576 echo "$f";;
6577 *) # Relative
6578 if test -f "$f"; then
6579 # Build tree
6580 echo "$f"
6581 elif test -f "$srcdir/$f"; then
6582 # Source tree
6583 echo "$srcdir/$f"
6584 else
6585 # /dev/null tree
6586 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6587 echo "$as_me: error: cannot find input file: $f" >&2;}
6588 { (exit 1); exit 1; }; }
6589 fi;;
6590 esac
6591 done` || { (exit 1); exit 1; }
6592 # Remove the trailing spaces.
6593 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6594
6595 _ACEOF
6596
6597 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6598 # `conftest.undefs', that substitutes the proper values into
6599 # config.h.in to produce config.h. The first handles `#define'
6600 # templates, and the second `#undef' templates.
6601 # And first: Protect against being on the right side of a sed subst in
6602 # config.status. Protect against being in an unquoted here document
6603 # in config.status.
6604 rm -f conftest.defines conftest.undefs
6605 # Using a here document instead of a string reduces the quoting nightmare.
6606 # Putting comments in sed scripts is not portable.
6607 #
6608 # `end' is used to avoid that the second main sed command (meant for
6609 # 0-ary CPP macros) applies to n-ary macro definitions.
6610 # See the Autoconf documentation for `clear'.
6611 cat >confdef2sed.sed <<\_ACEOF
6612 s/[\\&,]/\\&/g
6613 s,[\\$`],\\&,g
6614 t clear
6615 : clear
6616 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6617 t end
6618 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6619 : end
6620 _ACEOF
6621 # If some macros were called several times there might be several times
6622 # the same #defines, which is useless. Nevertheless, we may not want to
6623 # sort them, since we want the *last* AC-DEFINE to be honored.
6624 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6625 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6626 rm -f confdef2sed.sed
6627
6628 # This sed command replaces #undef with comments. This is necessary, for
6629 # example, in the case of _POSIX_SOURCE, which is predefined and required
6630 # on some systems where configure will not decide to define it.
6631 cat >>conftest.undefs <<\_ACEOF
6632 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6633 _ACEOF
6634
6635 # Break up conftest.defines because some shells have a limit on the size
6636 # of here documents, and old seds have small limits too (100 cmds).
6637 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6638 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6639 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6640 echo ' :' >>$CONFIG_STATUS
6641 rm -f conftest.tail
6642 while grep . conftest.defines >/dev/null
6643 do
6644 # Write a limited-size here document to $tmp/defines.sed.
6645 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6646 # Speed up: don't consider the non `#define' lines.
6647 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6648 # Work around the forget-to-reset-the-flag bug.
6649 echo 't clr' >>$CONFIG_STATUS
6650 echo ': clr' >>$CONFIG_STATUS
6651 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6652 echo 'CEOF
6653 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6654 rm -f $tmp/in
6655 mv $tmp/out $tmp/in
6656 ' >>$CONFIG_STATUS
6657 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6658 rm -f conftest.defines
6659 mv conftest.tail conftest.defines
6660 done
6661 rm -f conftest.defines
6662 echo ' fi # grep' >>$CONFIG_STATUS
6663 echo >>$CONFIG_STATUS
6664
6665 # Break up conftest.undefs because some shells have a limit on the size
6666 # of here documents, and old seds have small limits too (100 cmds).
6667 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6668 rm -f conftest.tail
6669 while grep . conftest.undefs >/dev/null
6670 do
6671 # Write a limited-size here document to $tmp/undefs.sed.
6672 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6673 # Speed up: don't consider the non `#undef'
6674 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6675 # Work around the forget-to-reset-the-flag bug.
6676 echo 't clr' >>$CONFIG_STATUS
6677 echo ': clr' >>$CONFIG_STATUS
6678 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6679 echo 'CEOF
6680 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6681 rm -f $tmp/in
6682 mv $tmp/out $tmp/in
6683 ' >>$CONFIG_STATUS
6684 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6685 rm -f conftest.undefs
6686 mv conftest.tail conftest.undefs
6687 done
6688 rm -f conftest.undefs
6689
6690 cat >>$CONFIG_STATUS <<\_ACEOF
6691 # Let's still pretend it is `configure' which instantiates (i.e., don't
6692 # use $as_me), people would be surprised to read:
6693 # /* config.h. Generated by config.status. */
6694 if test x"$ac_file" = x-; then
6695 echo "/* Generated by configure. */" >$tmp/config.h
6696 else
6697 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6698 fi
6699 cat $tmp/in >>$tmp/config.h
6700 rm -f $tmp/in
6701 if test x"$ac_file" != x-; then
6702 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6703 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6704 echo "$as_me: $ac_file is unchanged" >&6;}
6705 else
6706 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6708 X"$ac_file" : 'X\(//\)[^/]' \| \
6709 X"$ac_file" : 'X\(//\)$' \| \
6710 X"$ac_file" : 'X\(/\)' \| \
6711 . : '\(.\)' 2>/dev/null ||
6712 echo X"$ac_file" |
6713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6715 /^X\(\/\/\)$/{ s//\1/; q; }
6716 /^X\(\/\).*/{ s//\1/; q; }
6717 s/.*/./; q'`
6718 { if $as_mkdir_p; then
6719 mkdir -p "$ac_dir"
6720 else
6721 as_dir="$ac_dir"
6722 as_dirs=
6723 while test ! -d "$as_dir"; do
6724 as_dirs="$as_dir $as_dirs"
6725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6727 X"$as_dir" : 'X\(//\)[^/]' \| \
6728 X"$as_dir" : 'X\(//\)$' \| \
6729 X"$as_dir" : 'X\(/\)' \| \
6730 . : '\(.\)' 2>/dev/null ||
6731 echo X"$as_dir" |
6732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6734 /^X\(\/\/\)$/{ s//\1/; q; }
6735 /^X\(\/\).*/{ s//\1/; q; }
6736 s/.*/./; q'`
6737 done
6738 test ! -n "$as_dirs" || mkdir $as_dirs
6739 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6740 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6741 { (exit 1); exit 1; }; }; }
6742
6743 rm -f $ac_file
6744 mv $tmp/config.h $ac_file
6745 fi
6746 else
6747 cat $tmp/config.h
6748 rm -f $tmp/config.h
6749 fi
6750 # Compute $ac_file's index in $config_headers.
6751 _am_stamp_count=1
6752 for _am_header in $config_headers :; do
6753 case $_am_header in
6754 $ac_file | $ac_file:* )
6755 break ;;
6756 * )
6757 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6758 esac
6759 done
6760 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6761 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6762 X$ac_file : 'X\(//\)[^/]' \| \
6763 X$ac_file : 'X\(//\)$' \| \
6764 X$ac_file : 'X\(/\)' \| \
6765 . : '\(.\)' 2>/dev/null ||
6766 echo X$ac_file |
6767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6769 /^X\(\/\/\)$/{ s//\1/; q; }
6770 /^X\(\/\).*/{ s//\1/; q; }
6771 s/.*/./; q'`/stamp-h$_am_stamp_count
6772 done
6773 _ACEOF
6774 cat >>$CONFIG_STATUS <<\_ACEOF
6775
6776 #
6777 # CONFIG_COMMANDS section.
6778 #
6779 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6780 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6781 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6782 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6783 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6784 X"$ac_dest" : 'X\(//\)[^/]' \| \
6785 X"$ac_dest" : 'X\(//\)$' \| \
6786 X"$ac_dest" : 'X\(/\)' \| \
6787 . : '\(.\)' 2>/dev/null ||
6788 echo X"$ac_dest" |
6789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6791 /^X\(\/\/\)$/{ s//\1/; q; }
6792 /^X\(\/\).*/{ s//\1/; q; }
6793 s/.*/./; q'`
6794 { if $as_mkdir_p; then
6795 mkdir -p "$ac_dir"
6796 else
6797 as_dir="$ac_dir"
6798 as_dirs=
6799 while test ! -d "$as_dir"; do
6800 as_dirs="$as_dir $as_dirs"
6801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6803 X"$as_dir" : 'X\(//\)[^/]' \| \
6804 X"$as_dir" : 'X\(//\)$' \| \
6805 X"$as_dir" : 'X\(/\)' \| \
6806 . : '\(.\)' 2>/dev/null ||
6807 echo X"$as_dir" |
6808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6810 /^X\(\/\/\)$/{ s//\1/; q; }
6811 /^X\(\/\).*/{ s//\1/; q; }
6812 s/.*/./; q'`
6813 done
6814 test ! -n "$as_dirs" || mkdir $as_dirs
6815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6817 { (exit 1); exit 1; }; }; }
6818
6819 ac_builddir=.
6820
6821 if test "$ac_dir" != .; then
6822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6823 # A "../" for each directory in $ac_dir_suffix.
6824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6825 else
6826 ac_dir_suffix= ac_top_builddir=
6827 fi
6828
6829 case $srcdir in
6830 .) # No --srcdir option. We are building in place.
6831 ac_srcdir=.
6832 if test -z "$ac_top_builddir"; then
6833 ac_top_srcdir=.
6834 else
6835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6836 fi ;;
6837 [\\/]* | ?:[\\/]* ) # Absolute path.
6838 ac_srcdir=$srcdir$ac_dir_suffix;
6839 ac_top_srcdir=$srcdir ;;
6840 *) # Relative path.
6841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6843 esac
6844
6845 # Do not use `cd foo && pwd` to compute absolute paths, because
6846 # the directories may not exist.
6847 case `pwd` in
6848 .) ac_abs_builddir="$ac_dir";;
6849 *)
6850 case "$ac_dir" in
6851 .) ac_abs_builddir=`pwd`;;
6852 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6853 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6854 esac;;
6855 esac
6856 case $ac_abs_builddir in
6857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6858 *)
6859 case ${ac_top_builddir}. in
6860 .) ac_abs_top_builddir=$ac_abs_builddir;;
6861 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6862 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6863 esac;;
6864 esac
6865 case $ac_abs_builddir in
6866 .) ac_abs_srcdir=$ac_srcdir;;
6867 *)
6868 case $ac_srcdir in
6869 .) ac_abs_srcdir=$ac_abs_builddir;;
6870 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6871 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6872 esac;;
6873 esac
6874 case $ac_abs_builddir in
6875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6876 *)
6877 case $ac_top_srcdir in
6878 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6879 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6880 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6881 esac;;
6882 esac
6883
6884
6885 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6886 echo "$as_me: executing $ac_dest commands" >&6;}
6887 case $ac_dest in
6888 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6889 # Strip MF so we end up with the name of the file.
6890 mf=`echo "$mf" | sed -e 's/:.*$//'`
6891 # Check whether this is an Automake generated Makefile or not.
6892 # We used to match only the files named `Makefile.in', but
6893 # some people rename them; so instead we look at the file content.
6894 # Grep'ing the first line is not enough: some people post-process
6895 # each Makefile.in and add a new line on top of each file to say so.
6896 # So let's grep whole file.
6897 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6898 dirpart=`(dirname "$mf") 2>/dev/null ||
6899 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6900 X"$mf" : 'X\(//\)[^/]' \| \
6901 X"$mf" : 'X\(//\)$' \| \
6902 X"$mf" : 'X\(/\)' \| \
6903 . : '\(.\)' 2>/dev/null ||
6904 echo X"$mf" |
6905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6907 /^X\(\/\/\)$/{ s//\1/; q; }
6908 /^X\(\/\).*/{ s//\1/; q; }
6909 s/.*/./; q'`
6910 else
6911 continue
6912 fi
6913 # Extract the definition of DEPDIR, am__include, and am__quote
6914 # from the Makefile without running `make'.
6915 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6916 test -z "$DEPDIR" && continue
6917 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6918 test -z "am__include" && continue
6919 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6920 # When using ansi2knr, U may be empty or an underscore; expand it
6921 U=`sed -n 's/^U = //p' < "$mf"`
6922 # Find all dependency output files, they are included files with
6923 # $(DEPDIR) in their names. We invoke sed twice because it is the
6924 # simplest approach to changing $(DEPDIR) to its actual value in the
6925 # expansion.
6926 for file in `sed -n "
6927 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6928 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6929 # Make sure the directory exists.
6930 test -f "$dirpart/$file" && continue
6931 fdir=`(dirname "$file") 2>/dev/null ||
6932 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6933 X"$file" : 'X\(//\)[^/]' \| \
6934 X"$file" : 'X\(//\)$' \| \
6935 X"$file" : 'X\(/\)' \| \
6936 . : '\(.\)' 2>/dev/null ||
6937 echo X"$file" |
6938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6940 /^X\(\/\/\)$/{ s//\1/; q; }
6941 /^X\(\/\).*/{ s//\1/; q; }
6942 s/.*/./; q'`
6943 { if $as_mkdir_p; then
6944 mkdir -p $dirpart/$fdir
6945 else
6946 as_dir=$dirpart/$fdir
6947 as_dirs=
6948 while test ! -d "$as_dir"; do
6949 as_dirs="$as_dir $as_dirs"
6950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6952 X"$as_dir" : 'X\(//\)[^/]' \| \
6953 X"$as_dir" : 'X\(//\)$' \| \
6954 X"$as_dir" : 'X\(/\)' \| \
6955 . : '\(.\)' 2>/dev/null ||
6956 echo X"$as_dir" |
6957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6959 /^X\(\/\/\)$/{ s//\1/; q; }
6960 /^X\(\/\).*/{ s//\1/; q; }
6961 s/.*/./; q'`
6962 done
6963 test ! -n "$as_dirs" || mkdir $as_dirs
6964 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6965 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6966 { (exit 1); exit 1; }; }; }
6967
6968 # echo "creating $dirpart/$file"
6969 echo '# dummy' > "$dirpart/$file"
6970 done
6971 done
6972 ;;
6973 default-1 )
6974 for ac_file in $CONFIG_FILES; do
6975 # Support "outfile[:infile[:infile...]]"
6976 case "$ac_file" in
6977 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6978 esac
6979 # PO directories have a Makefile.in generated from Makefile.in.in.
6980 case "$ac_file" in */Makefile.in)
6981 # Adjust a relative srcdir.
6982 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6983 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6984 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6985 # In autoconf-2.13 it is called $ac_given_srcdir.
6986 # In autoconf-2.50 it is called $srcdir.
6987 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6988 case "$ac_given_srcdir" in
6989 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6990 /*) top_srcdir="$ac_given_srcdir" ;;
6991 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6992 esac
6993 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6994 rm -f "$ac_dir/POTFILES"
6995 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6996 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6997 POMAKEFILEDEPS="POTFILES.in"
6998 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6999 # on $ac_dir but don't depend on user-specified configuration
7000 # parameters.
7001 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7002 # The LINGUAS file contains the set of available languages.
7003 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7004 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7005 fi
7006 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7007 # Hide the ALL_LINGUAS assigment from automake.
7008 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7009 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7010 else
7011 # The set of available languages was given in configure.in.
7012 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7013 fi
7014 case "$ac_given_srcdir" in
7015 .) srcdirpre= ;;
7016 *) srcdirpre='$(srcdir)/' ;;
7017 esac
7018 POFILES=
7019 GMOFILES=
7020 UPDATEPOFILES=
7021 DUMMYPOFILES=
7022 for lang in $ALL_LINGUAS; do
7023 POFILES="$POFILES $srcdirpre$lang.po"
7024 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7025 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7026 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7027 done
7028 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7029 # environment variable.
7030 INST_LINGUAS=
7031 if test -n "$ALL_LINGUAS"; then
7032 for presentlang in $ALL_LINGUAS; do
7033 useit=no
7034 if test "%UNSET%" != "$LINGUAS"; then
7035 desiredlanguages="$LINGUAS"
7036 else
7037 desiredlanguages="$ALL_LINGUAS"
7038 fi
7039 for desiredlang in $desiredlanguages; do
7040 # Use the presentlang catalog if desiredlang is
7041 # a. equal to presentlang, or
7042 # b. a variant of presentlang (because in this case,
7043 # presentlang can be used as a fallback for messages
7044 # which are not translated in the desiredlang catalog).
7045 case "$desiredlang" in
7046 "$presentlang"*) useit=yes;;
7047 esac
7048 done
7049 if test $useit = yes; then
7050 INST_LINGUAS="$INST_LINGUAS $presentlang"
7051 fi
7052 done
7053 fi
7054 CATALOGS=
7055 if test -n "$INST_LINGUAS"; then
7056 for lang in $INST_LINGUAS; do
7057 CATALOGS="$CATALOGS $lang.gmo"
7058 done
7059 fi
7060 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7061 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7062 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7063 if test -f "$f"; then
7064 case "$f" in
7065 *.orig | *.bak | *~) ;;
7066 *) cat "$f" >> "$ac_dir/Makefile" ;;
7067 esac
7068 fi
7069 done
7070 fi
7071 ;;
7072 esac
7073 done ;;
7074 esac
7075 done
7076 _ACEOF
7077
7078 cat >>$CONFIG_STATUS <<\_ACEOF
7079
7080 { (exit 0); exit 0; }
7081 _ACEOF
7082 chmod +x $CONFIG_STATUS
7083 ac_clean_files=$ac_clean_files_save
7084
7085
7086 # configure is writing to config.log, and then calls config.status.
7087 # config.status does its own redirection, appending to config.log.
7088 # Unfortunately, on DOS this fails, as config.log is still kept open
7089 # by configure, so config.status won't be able to write to it; its
7090 # output is simply discarded. So we exec the FD to /dev/null,
7091 # effectively closing config.log, so it can be properly (re)opened and
7092 # appended to by config.status. When coming back to configure, we
7093 # need to make the FD available again.
7094 if test "$no_create" != yes; then
7095 ac_cs_success=:
7096 ac_config_status_args=
7097 test "$silent" = yes &&
7098 ac_config_status_args="$ac_config_status_args --quiet"
7099 exec 5>/dev/null
7100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7101 exec 5>>config.log
7102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7103 # would make configure fail if this is the last instruction.
7104 $ac_cs_success || { (exit 1); exit 1; }
7105 fi
7106