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