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