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