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