Add checks for overfar branches
[deliverable/binutils-gdb.git] / gold / configure
CommitLineData
bae7f79e
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64 for gold 0.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
bae7f79e 8#
bae7f79e
ILT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bae7f79e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bae7f79e 31fi
bae7f79e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bae7f79e
ILT
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bae7f79e
ILT
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bae7f79e 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
bae7f79e 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
bae7f79e 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
bae7f79e 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bae7f79e 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bae7f79e 410
bae7f79e
ILT
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
bae7f79e 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bae7f79e 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bae7f79e 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bae7f79e 436 t loop
81ecdfbb 437 s/-\n.*//
bae7f79e 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
bae7f79e
ILT
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bae7f79e
ILT
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bae7f79e
ILT
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bae7f79e 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bae7f79e 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
bae7f79e 483 fi
bae7f79e
ILT
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bae7f79e
ILT
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bae7f79e
ILT
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bae7f79e
ILT
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bae7f79e
ILT
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bae7f79e 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bae7f79e
ILT
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
bae7f79e
ILT
545
546# Identity of this package.
8486ee48
ILT
547PACKAGE_NAME='gold'
548PACKAGE_TARNAME='gold'
549PACKAGE_VERSION='0.1'
550PACKAGE_STRING='gold 0.1'
551PACKAGE_BUGREPORT=''
81ecdfbb 552PACKAGE_URL=''
bae7f79e
ILT
553
554ac_unique_file="gold.cc"
54dc6425
ILT
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
54dc6425
ILT
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
54dc6425
ILT
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
54dc6425
ILT
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
54dc6425
ILT
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
54dc6425
ILT
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
54dc6425
ILT
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
54dc6425 582# include <inttypes.h>
54dc6425 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
54dc6425
ILT
588# include <unistd.h>
589#endif"
590
81ecdfbb
RW
591ac_subst_vars='am__EXEEXT_FALSE
592am__EXEEXT_TRUE
593LTLIBOBJS
594MAINT
595MAINTAINER_MODE_FALSE
596MAINTAINER_MODE_TRUE
f1415016
CC
597HAVE_PUBNAMES_FALSE
598HAVE_PUBNAMES_TRUE
0bf402d5 599DLOPEN_LIBS
81ecdfbb
RW
600CXXCPP
601HAVE_ZLIB_FALSE
602HAVE_ZLIB_TRUE
603LIBOBJS
604LFS_CFLAGS
dc87f620
ILT
605GOLD_LDADD
606GOLD_LDFLAGS
81ecdfbb
RW
607WARN_CXXFLAGS
608NO_WERROR
609WARN_CFLAGS
ebb300b2
CC
610IFUNC_STATIC_FALSE
611IFUNC_STATIC_TRUE
7223e9ca
ILT
612IFUNC_FALSE
613IFUNC_TRUE
81ecdfbb 614RANDOM_SEED_CFLAGS
81ecdfbb
RW
615TLS_DESCRIPTORS_FALSE
616TLS_DESCRIPTORS_TRUE
617TLS_GNU2_DIALECT_FALSE
618TLS_GNU2_DIALECT_TRUE
619OMP_SUPPORT_FALSE
620OMP_SUPPORT_TRUE
621STATIC_TLS_FALSE
622STATIC_TLS_TRUE
623TLS_FALSE
624TLS_TRUE
2b64b551 625MERGE_CONSTANTS_FLAG
81ecdfbb
RW
626MCMODEL_MEDIUM_FALSE
627MCMODEL_MEDIUM_TRUE
628FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
629FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
328c7c2f
ILT
630HAVE_STATIC_FALSE
631HAVE_STATIC_TRUE
eb373049
ILT
632NATIVE_OR_CROSS_LINKER_FALSE
633NATIVE_OR_CROSS_LINKER_TRUE
81ecdfbb
RW
634GCC_FALSE
635GCC_TRUE
636NATIVE_LINKER_FALSE
637NATIVE_LINKER_TRUE
638MSGMERGE
639MSGFMT
640MKINSTALLDIRS
641CATOBJEXT
642GENCAT
643INSTOBJEXT
644DATADIRNAME
645CATALOGS
646POSUB
647GMSGFMT
648XGETTEXT
649INCINTL
650LIBINTL_DEP
651LIBINTL
652USE_NLS
653EGREP
654GREP
655CPP
656LN_S
657RANLIB
658YFLAGS
659YACC
660am__fastdepCXX_FALSE
661am__fastdepCXX_TRUE
662CXXDEPMODE
663ac_ct_CXX
664CXXFLAGS
665CXX
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
ebb300b2 682NM
81ecdfbb 683TARGETOBJS
9df9de2c 684DEFAULT_TARGET
0a6f1bf2
AM
685DEFAULT_TARGET_TILEGX_FALSE
686DEFAULT_TARGET_TILEGX_TRUE
364c7fa5
ILT
687DEFAULT_TARGET_X86_64_FALSE
688DEFAULT_TARGET_X86_64_TRUE
689DEFAULT_TARGET_SPARC_FALSE
690DEFAULT_TARGET_SPARC_TRUE
691DEFAULT_TARGET_POWERPC_FALSE
692DEFAULT_TARGET_POWERPC_TRUE
693DEFAULT_TARGET_I386_FALSE
694DEFAULT_TARGET_I386_TRUE
695DEFAULT_TARGET_ARM_FALSE
696DEFAULT_TARGET_ARM_TRUE
81ecdfbb
RW
697PLUGINS_FALSE
698PLUGINS_TRUE
699THREADS_FALSE
700THREADS_TRUE
4fda8867
NC
701installed_linker
702install_as_default
81ecdfbb
RW
703am__untar
704am__tar
705AMTAR
706am__leading_dot
707SET_MAKE
708AWK
709mkdir_p
710MKDIR_P
711INSTALL_STRIP_PROGRAM
712STRIP
713install_sh
714MAKEINFO
715AUTOHEADER
716AUTOMAKE
717AUTOCONF
718ACLOCAL
719VERSION
720PACKAGE
721CYGPATH_W
722am__isrc
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726target_os
727target_vendor
728target_cpu
729target
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
bae7f79e 776ac_subst_files=''
81ecdfbb
RW
777ac_user_opts='
778enable_option_checking
779with_sysroot
4fda8867 780enable_gold
81ecdfbb
RW
781enable_threads
782enable_plugins
783enable_targets
3f3cddf1 784with_lib_path
81ecdfbb
RW
785enable_dependency_tracking
786enable_nls
787enable_werror
788enable_build_warnings
dc87f620
ILT
789with_gold_ldflags
790with_gold_ldadd
ae2eea65 791with_zlib
81ecdfbb
RW
792enable_maintainer_mode
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
805YACC
806YFLAGS
807CPP
808CXXCPP'
809
bae7f79e
ILT
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
81ecdfbb
RW
814ac_unrecognized_opts=
815ac_unrecognized_sep=
bae7f79e
ILT
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 838# (The list follows the same order as the GNU Coding Standards.)
bae7f79e
ILT
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
bae7f79e
ILT
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
bae7f79e
ILT
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
81ecdfbb
RW
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
bae7f79e
ILT
858
859ac_prev=
81ecdfbb 860ac_dashdash=
bae7f79e
ILT
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
81ecdfbb 865 eval $ac_prev=\$ac_option
bae7f79e
ILT
866 ac_prev=
867 continue
868 fi
869
81ecdfbb
RW
870 case $ac_option in
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *) ac_optarg=yes ;;
873 esac
bae7f79e
ILT
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
81ecdfbb
RW
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
bae7f79e
ILT
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
81ecdfbb 901 -datadir | --datadir | --datadi | --datad)
bae7f79e 902 ac_prev=datadir ;;
81ecdfbb 903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bae7f79e
ILT
904 datadir=$ac_optarg ;;
905
81ecdfbb
RW
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
bae7f79e 913 -disable-* | --disable-*)
81ecdfbb 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bae7f79e 915 # Reject names that are not valid shell variable names.
81ecdfbb
RW
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
bae7f79e
ILT
938
939 -enable-* | --enable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bae7f79e 941 # Reject names that are not valid shell variable names.
81ecdfbb
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
bae7f79e 952 esac
81ecdfbb 953 eval enable_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
81ecdfbb
RW
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
bae7f79e
ILT
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
81ecdfbb
RW
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
bae7f79e 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1016 | --localstate | --localstat | --localsta | --localst | --locals)
bae7f79e
ILT
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bae7f79e
ILT
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
81ecdfbb
RW
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
bae7f79e
ILT
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
81ecdfbb 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bae7f79e 1145 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
bae7f79e 1156 esac
81ecdfbb 1157 eval with_$ac_useropt=\$ac_optarg ;;
bae7f79e
ILT
1158
1159 -without-* | --without-*)
81ecdfbb 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bae7f79e 1161 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
bae7f79e
ILT
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
81ecdfbb
RW
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information."
bae7f79e
ILT
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
bae7f79e
ILT
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bae7f79e 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bae7f79e
ILT
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1220 as_fn_error "missing argument to $ac_option"
bae7f79e
ILT
1221fi
1222
81ecdfbb
RW
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bae7f79e 1228 esac
81ecdfbb 1229fi
bae7f79e 1230
81ecdfbb
RW
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
bae7f79e 1236do
81ecdfbb
RW
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
bae7f79e 1245 case $ac_val in
81ecdfbb
RW
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bae7f79e 1248 esac
81ecdfbb 1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
bae7f79e
ILT
1250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
81ecdfbb 1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bae7f79e
ILT
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268fi
1269
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
1274
1275
81ecdfbb
RW
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1282
1283
bae7f79e
ILT
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
81ecdfbb
RW
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
bae7f79e 1311 srcdir=$ac_confdir
81ecdfbb 1312 if test ! -r "$srcdir/$ac_unique_file"; then
bae7f79e
ILT
1313 srcdir=..
1314 fi
1315else
1316 ac_srcdir_defaulted=no
1317fi
81ecdfbb
RW
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325 pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
bae7f79e
ILT
1342
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
8486ee48 1350\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
1351
1352Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357Defaults for the options are specified in brackets.
1358
1359Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
bae7f79e
ILT
1370Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1372 [$ac_default_prefix]
bae7f79e 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1374 [PREFIX]
bae7f79e
ILT
1375
1376By default, \`make install' will install all the files in
1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379for instance \`--prefix=\$HOME'.
1380
1381For better control, use the options below.
1382
1383Fine tuning of the installation directories:
81ecdfbb
RW
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
bae7f79e
ILT
1403_ACEOF
1404
1405 cat <<\_ACEOF
1406
1407Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
1412System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416_ACEOF
1417fi
1418
1419if test -n "$ac_init_help"; then
8486ee48
ILT
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of gold 0.1:";;
1422 esac
bae7f79e
ILT
1423 cat <<\_ACEOF
1424
1425Optional Features:
81ecdfbb 1426 --disable-option-checking ignore unrecognized --enable/--with options
bae7f79e
ILT
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1429 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
fe9a4c12 1430 --enable-threads multi-threaded linking
89fc3421 1431 --enable-plugins linker plugins
193a53d9 1432 --enable-targets alternative target configurations
bae7f79e
ILT
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
1435 --disable-nls do not use Native Language Support
1436 --enable-werror treat compile warnings as errors
1437 --enable-build-warnings enable build-time compiler warnings
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440
ad2d6943
ILT
1441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-sysroot=DIR search for usr/lib et al within DIR
3f3cddf1 1445 --with-lib-path=dir1:dir2... set default LIB_PATH
dc87f620
ILT
1446 --with-gold-ldflags=FLAGS additional link flags for gold
1447 --with-gold-ldadd=LIBS additional libraries for gold
ae2eea65 1448 --with-zlib include zlib support (auto/yes/no) default=auto
ad2d6943 1449
bae7f79e
ILT
1450Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
81ecdfbb
RW
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
bae7f79e
ILT
1458 CXX C++ compiler command
1459 CXXFLAGS C++ compiler flags
81ecdfbb
RW
1460 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1461 the first program found out of: `bison -y', `byacc', `yacc'.
1462 YFLAGS The list of arguments that will be passed by default to $YACC.
1463 This script will default YFLAGS to the empty string to avoid a
1464 default value of `-d' given by some make applications.
9a0910c3 1465 CPP C preprocessor
54dc6425 1466 CXXCPP C++ preprocessor
bae7f79e
ILT
1467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
81ecdfbb 1471Report bugs to the package provider.
bae7f79e 1472_ACEOF
81ecdfbb 1473ac_status=$?
bae7f79e
ILT
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
bae7f79e 1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
bae7f79e
ILT
1482 ac_builddir=.
1483
81ecdfbb
RW
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
1499
1500case $srcdir in
81ecdfbb 1501 .) # We are building in place.
bae7f79e 1502 ac_srcdir=.
81ecdfbb
RW
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 1506 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 1513esac
81ecdfbb
RW
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
bae7f79e 1524 else
81ecdfbb
RW
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
bae7f79e
ILT
1528 done
1529fi
1530
81ecdfbb 1531test -n "$ac_init_help" && exit $ac_status
bae7f79e
ILT
1532if $ac_init_version; then
1533 cat <<\_ACEOF
8486ee48 1534gold configure 0.1
81ecdfbb 1535generated by GNU Autoconf 2.64
bae7f79e 1536
81ecdfbb 1537Copyright (C) 2009 Free Software Foundation, Inc.
bae7f79e
ILT
1538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
1540_ACEOF
81ecdfbb 1541 exit
bae7f79e 1542fi
bae7f79e 1543
81ecdfbb
RW
1544## ------------------------ ##
1545## Autoconf initialization. ##
1546## ------------------------ ##
bae7f79e 1547
81ecdfbb
RW
1548# ac_fn_c_try_compile LINENO
1549# --------------------------
1550# Try to compile conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_compile ()
bae7f79e 1552{
81ecdfbb
RW
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575else
1576 $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1578
81ecdfbb
RW
1579 ac_retval=1
1580fi
1581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 return $ac_retval
bae7f79e 1583
81ecdfbb 1584} # ac_fn_c_try_compile
bae7f79e 1585
81ecdfbb
RW
1586# ac_fn_cxx_try_compile LINENO
1587# ----------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_cxx_try_compile ()
1590{
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_cxx_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613else
1614 $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1616
81ecdfbb
RW
1617 ac_retval=1
1618fi
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 return $ac_retval
bae7f79e 1621
81ecdfbb 1622} # ac_fn_cxx_try_compile
bae7f79e 1623
81ecdfbb
RW
1624# ac_fn_c_try_cpp LINENO
1625# ----------------------
1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_cpp ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } >/dev/null && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1653
81ecdfbb
RW
1654 ac_retval=1
1655fi
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
bae7f79e 1658
81ecdfbb 1659} # ac_fn_c_try_cpp
bae7f79e 1660
81ecdfbb
RW
1661# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664# the include files in INCLUDES and setting the cache variable VAR
1665# accordingly.
1666ac_fn_c_check_header_mongrel ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 $as_echo_n "(cached) " >&6
1674fi
1675eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678else
1679 # Is the header compilable?
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681$as_echo_n "checking $2 usability... " >&6; }
1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684$4
1685#include <$2>
bae7f79e 1686_ACEOF
81ecdfbb
RW
1687if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1689else
1690 ac_header_compiler=no
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694$as_echo "$ac_header_compiler" >&6; }
bae7f79e 1695
81ecdfbb
RW
1696# Is the header present?
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698$as_echo_n "checking $2 presence... " >&6; }
1699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701#include <$2>
1702_ACEOF
1703if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1705else
1706 ac_header_preproc=no
1707fi
1708rm -f conftest.err conftest.$ac_ext
1709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710$as_echo "$ac_header_preproc" >&6; }
bae7f79e 1711
81ecdfbb
RW
1712# So? What about this header?
1713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 yes:no: )
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720 no:yes:* )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ;;
1732esac
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1737else
1738 eval "$3=\$ac_header_compiler"
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 1745
81ecdfbb 1746} # ac_fn_c_check_header_mongrel
bae7f79e 1747
81ecdfbb
RW
1748# ac_fn_c_try_run LINENO
1749# ----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751# that executables *can* be run.
1752ac_fn_c_try_run ()
bae7f79e 1753{
81ecdfbb
RW
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1781
81ecdfbb
RW
1782 ac_retval=$ac_status
1783fi
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
bae7f79e 1787
81ecdfbb 1788} # ac_fn_c_try_run
bae7f79e 1789
81ecdfbb
RW
1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists and can be compiled using the include files in
1793# INCLUDES, setting the cache variable VAR accordingly.
1794ac_fn_c_check_header_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809else
1810 eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 1818
81ecdfbb 1819} # ac_fn_c_check_header_compile
bae7f79e 1820
81ecdfbb
RW
1821# ac_fn_c_try_link LINENO
1822# -----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_link ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 1854
81ecdfbb
RW
1855 ac_retval=1
1856fi
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
bae7f79e 1864
81ecdfbb 1865} # ac_fn_c_try_link
bae7f79e 1866
81ecdfbb
RW
1867# ac_fn_c_check_func LINENO FUNC VAR
1868# ----------------------------------
1869# Tests whether FUNC exists, setting the cache variable VAR accordingly
1870ac_fn_c_check_func ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h. */
1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882#define $2 innocuous_$2
bae7f79e 1883
81ecdfbb
RW
1884/* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
bae7f79e 1888
81ecdfbb
RW
1889#ifdef __STDC__
1890# include <limits.h>
1891#else
1892# include <assert.h>
1893#endif
bae7f79e 1894
81ecdfbb 1895#undef $2
bae7f79e 1896
81ecdfbb
RW
1897/* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1900#ifdef __cplusplus
1901extern "C"
1902#endif
1903char $2 ();
1904/* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907#if defined __stub_$2 || defined __stub___$2
1908choke me
1909#endif
1910
1911int
1912main ()
1913{
1914return $2 ();
1915 ;
1916 return 0;
1917}
bae7f79e 1918_ACEOF
81ecdfbb
RW
1919if ac_fn_c_try_link "$LINENO"; then :
1920 eval "$3=yes"
1921else
1922 eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 1931
81ecdfbb 1932} # ac_fn_c_check_func
bae7f79e 1933
81ecdfbb
RW
1934# ac_fn_c_check_decl LINENO SYMBOL VAR
1935# ------------------------------------
1936# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1937ac_fn_c_check_decl ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
1940 as_decl_name=`echo $2|sed 's/ *(.*//'`
1941 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1943$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1944if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
7223e9ca
ILT
1953#ifndef $as_decl_name
1954#ifdef __cplusplus
1955 (void) $as_decl_use;
1956#else
1957 (void) $as_decl_name;
1958#endif
81ecdfbb
RW
1959#endif
1960
1961 ;
1962 return 0;
1963}
bae7f79e 1964_ACEOF
81ecdfbb
RW
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$3=yes"
1967else
1968 eval "$3=no"
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 1976
81ecdfbb 1977} # ac_fn_c_check_decl
bae7f79e 1978
81ecdfbb
RW
1979# ac_fn_cxx_try_cpp LINENO
1980# ------------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_cpp ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
bae7f79e 1998 fi
81ecdfbb
RW
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } >/dev/null && {
2001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 }; then :
2004 ac_retval=0
2005else
2006 $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
bae7f79e 2010fi
81ecdfbb
RW
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 return $ac_retval
bae7f79e 2013
81ecdfbb
RW
2014} # ac_fn_cxx_try_cpp
2015
2016# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2017# ---------------------------------------------------------
2018# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019# the include files in INCLUDES and setting the cache variable VAR
2020# accordingly.
2021ac_fn_cxx_check_header_mongrel ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029fi
2030eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
bae7f79e 2033else
81ecdfbb
RW
2034 # Is the header compilable?
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036$as_echo_n "checking $2 usability... " >&6; }
2037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$4
2040#include <$2>
2041_ACEOF
2042if ac_fn_cxx_try_compile "$LINENO"; then :
2043 ac_header_compiler=yes
2044else
2045 ac_header_compiler=no
bae7f79e 2046fi
81ecdfbb
RW
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049$as_echo "$ac_header_compiler" >&6; }
bae7f79e 2050
81ecdfbb
RW
2051# Is the header present?
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053$as_echo_n "checking $2 presence... " >&6; }
2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056#include <$2>
2057_ACEOF
2058if ac_fn_cxx_try_cpp "$LINENO"; then :
2059 ac_header_preproc=yes
2060else
2061 ac_header_preproc=no
bae7f79e 2062fi
81ecdfbb
RW
2063rm -f conftest.err conftest.$ac_ext
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065$as_echo "$ac_header_preproc" >&6; }
bae7f79e 2066
81ecdfbb
RW
2067# So? What about this header?
2068case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2069 yes:no: )
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ;;
2075 no:yes:* )
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2079$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2083$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ;;
2087esac
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089$as_echo_n "checking for $2... " >&6; }
2090if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092else
2093 eval "$3=\$ac_header_compiler"
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098fi
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100
2101} # ac_fn_cxx_check_header_mongrel
2102
2103# ac_fn_cxx_try_link LINENO
2104# -------------------------
2105# Try to link conftest.$ac_ext, and return whether this succeeded.
2106ac_fn_cxx_try_link ()
2107{
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 rm -f conftest.$ac_objext conftest$ac_exeext
2110 if { { ac_try="$ac_link"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116$as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>conftest.err
2118 ac_status=$?
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2123 fi
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && {
2126 test -z "$ac_cxx_werror_flag" ||
2127 test ! -s conftest.err
2128 } && test -s conftest$ac_exeext && {
2129 test "$cross_compiling" = yes ||
2130 $as_test_x conftest$ac_exeext
2131 }; then :
2132 ac_retval=0
2133else
2134 $as_echo "$as_me: failed program was:" >&5
2135sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 2136
81ecdfbb
RW
2137 ac_retval=1
2138fi
2139 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2140 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2141 # interfere with the next link command; also delete a directory that is
2142 # left behind by Apple's compiler. We do this before executing the actions.
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
bae7f79e 2146
81ecdfbb 2147} # ac_fn_cxx_try_link
bae7f79e 2148
81ecdfbb
RW
2149# ac_fn_cxx_check_func LINENO FUNC VAR
2150# ------------------------------------
2151# Tests whether FUNC exists, setting the cache variable VAR accordingly
2152ac_fn_cxx_check_func ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156$as_echo_n "checking for $2... " >&6; }
2157if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158 $as_echo_n "(cached) " >&6
2159else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2164#define $2 innocuous_$2
bae7f79e 2165
81ecdfbb
RW
2166/* System header to define __stub macros and hopefully few prototypes,
2167 which can conflict with char $2 (); below.
2168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2169 <limits.h> exists even on freestanding compilers. */
bae7f79e 2170
81ecdfbb
RW
2171#ifdef __STDC__
2172# include <limits.h>
2173#else
2174# include <assert.h>
2175#endif
bae7f79e 2176
81ecdfbb 2177#undef $2
bae7f79e 2178
81ecdfbb
RW
2179/* Override any GCC internal prototype to avoid an error.
2180 Use char because int might match the return type of a GCC
2181 builtin and then its argument prototype would still apply. */
2182#ifdef __cplusplus
2183extern "C"
2184#endif
2185char $2 ();
2186/* The GNU C library defines this for functions which it implements
2187 to always fail with ENOSYS. Some functions are actually named
2188 something starting with __ and the normal name is an alias. */
2189#if defined __stub_$2 || defined __stub___$2
2190choke me
2191#endif
bae7f79e 2192
81ecdfbb
RW
2193int
2194main ()
2195{
2196return $2 ();
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_cxx_try_link "$LINENO"; then :
2202 eval "$3=yes"
2203else
2204 eval "$3=no"
2205fi
2206rm -f core conftest.err conftest.$ac_objext \
2207 conftest$ac_exeext conftest.$ac_ext
2208fi
2209eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 2213
81ecdfbb 2214} # ac_fn_cxx_check_func
bae7f79e 2215
81ecdfbb
RW
2216# ac_fn_cxx_check_decl LINENO SYMBOL VAR
2217# --------------------------------------
2218# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2219ac_fn_cxx_check_decl ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7223e9ca
ILT
2222 as_decl_name=`echo $2|sed 's/ *(.*//'`
2223 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2225$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2226if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2228else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232int
2233main ()
2234{
7223e9ca
ILT
2235#ifndef $as_decl_name
2236#ifdef __cplusplus
2237 (void) $as_decl_use;
2238#else
2239 (void) $as_decl_name;
2240#endif
81ecdfbb 2241#endif
bae7f79e 2242
81ecdfbb
RW
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_cxx_try_compile "$LINENO"; then :
2248 eval "$3=yes"
2249else
2250 eval "$3=no"
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256$as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bae7f79e 2258
81ecdfbb
RW
2259} # ac_fn_cxx_check_decl
2260cat >config.log <<_ACEOF
2261This file contains any messages produced by compilers while
2262running configure, to aid debugging if configure makes a mistake.
8486ee48 2263
81ecdfbb
RW
2264It was created by gold $as_me 0.1, which was
2265generated by GNU Autoconf 2.64. Invocation command line was
8486ee48 2266
81ecdfbb 2267 $ $0 $@
8486ee48 2268
81ecdfbb
RW
2269_ACEOF
2270exec 5>>config.log
2271{
2272cat <<_ASUNAME
2273## --------- ##
2274## Platform. ##
2275## --------- ##
8486ee48 2276
81ecdfbb
RW
2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281uname -v = `(uname -v) 2>/dev/null || echo unknown`
8486ee48 2282
81ecdfbb
RW
2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8486ee48 2285
81ecdfbb
RW
2286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8486ee48 2293
81ecdfbb 2294_ASUNAME
8486ee48 2295
81ecdfbb
RW
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 $as_echo "PATH: $as_dir"
2302 done
2303IFS=$as_save_IFS
bae7f79e 2304
81ecdfbb 2305} >&5
bae7f79e 2306
81ecdfbb 2307cat >&5 <<_ACEOF
bae7f79e
ILT
2308
2309
81ecdfbb
RW
2310## ----------- ##
2311## Core tests. ##
2312## ----------- ##
bae7f79e 2313
81ecdfbb 2314_ACEOF
1d1f116d
CD
2315
2316
81ecdfbb
RW
2317# Keep a trace of the command line.
2318# Strip out --no-create and --no-recursion so they do not pile up.
2319# Strip out --silent because we don't want to record it for future runs.
2320# Also quote any args containing shell meta-characters.
2321# Make two passes to allow for proper duplicate-argument suppression.
2322ac_configure_args=
2323ac_configure_args0=
2324ac_configure_args1=
2325ac_must_keep_next=false
2326for ac_pass in 1 2
2327do
2328 for ac_arg
2329 do
2330 case $ac_arg in
2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333 | -silent | --silent | --silen | --sile | --sil)
2334 continue ;;
2335 *\'*)
2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 esac
2338 case $ac_pass in
2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2340 2)
2341 as_fn_append ac_configure_args1 " '$ac_arg'"
2342 if test $ac_must_keep_next = true; then
2343 ac_must_keep_next=false # Got value, back to normal.
2344 else
2345 case $ac_arg in
2346 *=* | --config-cache | -C | -disable-* | --disable-* \
2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349 | -with-* | --with-* | -without-* | --without-* | --x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352 esac
2353 ;;
2354 -* ) ac_must_keep_next=true ;;
2355 esac
2356 fi
2357 as_fn_append ac_configure_args " '$ac_arg'"
2358 ;;
2359 esac
2360 done
2361done
2362{ ac_configure_args0=; unset ac_configure_args0;}
2363{ ac_configure_args1=; unset ac_configure_args1;}
1d1f116d 2364
81ecdfbb
RW
2365# When interrupted or exit'd, cleanup temporary files, and complete
2366# config.log. We remove comments because anyway the quotes in there
2367# would cause problems or look ugly.
2368# WARNING: Use '\'' to represent an apostrophe within the trap.
2369# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2372 {
2373 echo
bae7f79e 2374
81ecdfbb
RW
2375 cat <<\_ASBOX
2376## ---------------- ##
2377## Cache variables. ##
2378## ---------------- ##
2379_ASBOX
2380 echo
2381 # The following way of writing the cache mishandles newlines in values,
2382(
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in #(
2386 *${as_nl}*)
2387 case $ac_var in #(
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 esac
2391 case $ac_var in #(
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2395 esac ;;
2396 esac
2397 done
2398 (set) 2>&1 |
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2401 sed -n \
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 ;; #(
2405 *)
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407 ;;
2408 esac |
2409 sort
2410)
2411 echo
bae7f79e 2412
81ecdfbb
RW
2413 cat <<\_ASBOX
2414## ----------------- ##
2415## Output variables. ##
2416## ----------------- ##
2417_ASBOX
2418 echo
2419 for ac_var in $ac_subst_vars
2420 do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
bae7f79e 2428
81ecdfbb
RW
2429 if test -n "$ac_subst_files"; then
2430 cat <<\_ASBOX
2431## ------------------- ##
2432## File substitutions. ##
2433## ------------------- ##
2434_ASBOX
2435 echo
2436 for ac_var in $ac_subst_files
2437 do
2438 eval ac_val=\$$ac_var
2439 case $ac_val in
2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 esac
2442 $as_echo "$ac_var='\''$ac_val'\''"
2443 done | sort
2444 echo
2445 fi
bae7f79e 2446
81ecdfbb
RW
2447 if test -s confdefs.h; then
2448 cat <<\_ASBOX
2449## ----------- ##
2450## confdefs.h. ##
2451## ----------- ##
2452_ASBOX
2453 echo
2454 cat confdefs.h
2455 echo
2456 fi
2457 test "$ac_signal" != 0 &&
2458 $as_echo "$as_me: caught signal $ac_signal"
2459 $as_echo "$as_me: exit $exit_status"
2460 } >&5
2461 rm -f core *.core core.conftest.* &&
2462 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2463 exit $exit_status
2464' 0
2465for ac_signal in 1 2 13 15; do
2466 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bae7f79e 2467done
81ecdfbb 2468ac_signal=0
bae7f79e 2469
81ecdfbb
RW
2470# confdefs.h avoids OS command line length limits that DEFS can exceed.
2471rm -f -r conftest* confdefs.h
bae7f79e 2472
81ecdfbb 2473$as_echo "/* confdefs.h */" > confdefs.h
bae7f79e 2474
81ecdfbb 2475# Predefined preprocessor variables.
bae7f79e 2476
81ecdfbb
RW
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_NAME "$PACKAGE_NAME"
2479_ACEOF
bae7f79e 2480
81ecdfbb
RW
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2483_ACEOF
bae7f79e 2484
81ecdfbb
RW
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_VERSION "$PACKAGE_VERSION"
2487_ACEOF
bae7f79e 2488
81ecdfbb
RW
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_STRING "$PACKAGE_STRING"
2491_ACEOF
bae7f79e 2492
81ecdfbb
RW
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2495_ACEOF
bae7f79e 2496
81ecdfbb
RW
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_URL "$PACKAGE_URL"
2499_ACEOF
2500
2501
2502# Let the site file select an alternate cache file if it wants to.
2503# Prefer an explicitly selected file to automatically selected ones.
2504ac_site_file1=NONE
2505ac_site_file2=NONE
2506if test -n "$CONFIG_SITE"; then
2507 ac_site_file1=$CONFIG_SITE
2508elif test "x$prefix" != xNONE; then
2509 ac_site_file1=$prefix/share/config.site
2510 ac_site_file2=$prefix/etc/config.site
2511else
2512 ac_site_file1=$ac_default_prefix/share/config.site
2513 ac_site_file2=$ac_default_prefix/etc/config.site
2514fi
2515for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2516do
2517 test "x$ac_site_file" = xNONE && continue
2518 if test -r "$ac_site_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521 sed 's/^/| /' "$ac_site_file" >&5
2522 . "$ac_site_file"
2523 fi
2524done
2525
2526if test -r "$cache_file"; then
2527 # Some versions of bash will fail to source /dev/null (special
2528 # files actually), so we avoid doing that.
2529 if test -f "$cache_file"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2531$as_echo "$as_me: loading cache $cache_file" >&6;}
2532 case $cache_file in
2533 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2534 *) . "./$cache_file";;
2535 esac
2536 fi
2537else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2539$as_echo "$as_me: creating cache $cache_file" >&6;}
2540 >$cache_file
2541fi
2542
2543# Check that the precious variables saved in the cache have kept the same
2544# value.
2545ac_cache_corrupted=false
2546for ac_var in $ac_precious_vars; do
2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548 eval ac_new_set=\$ac_env_${ac_var}_set
2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550 eval ac_new_val=\$ac_env_${ac_var}_value
2551 case $ac_old_set,$ac_new_set in
2552 set,)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2554$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,set)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2558$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559 ac_cache_corrupted=: ;;
2560 ,);;
2561 *)
2562 if test "x$ac_old_val" != "x$ac_new_val"; then
2563 # differences in whitespace do not lead to failure.
2564 ac_old_val_w=`echo x $ac_old_val`
2565 ac_new_val_w=`echo x $ac_new_val`
2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2568$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 ac_cache_corrupted=:
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2572$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 eval $ac_var=\$ac_old_val
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2576$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2578$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2579 fi;;
2580 esac
2581 # Pass precious variables to config.status.
2582 if test "$ac_new_set" = set; then
2583 case $ac_new_val in
2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2585 *) ac_arg=$ac_var=$ac_new_val ;;
2586 esac
2587 case " $ac_configure_args " in
2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 esac
2591 fi
2592done
2593if $ac_cache_corrupted; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2597$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2598 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2599fi
2600## -------------------- ##
2601## Main body of script. ##
2602## -------------------- ##
2603
2604ac_ext=c
2605ac_cpp='$CPP $CPPFLAGS'
2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610
2611
2612
2613
2614
2615
2616ac_aux_dir=
2617for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2618 for ac_t in install-sh install.sh shtool; do
2619 if test -f "$ac_dir/$ac_t"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/$ac_t -c"
2622 break 2
2623 fi
2624 done
2625done
2626if test -z "$ac_aux_dir"; then
2627 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2628fi
2629
2630# These three variables are undocumented and unsupported,
2631# and are intended to be withdrawn in a future Autoconf release.
2632# They can cause serious problems if a builder's source tree is in a directory
2633# whose full name contains unusual characters.
2634ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2637
2638
2639# Make sure we can run config.sub.
2640$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2644$as_echo_n "checking build system type... " >&6; }
2645if test "${ac_cv_build+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 ac_build_alias=$build_alias
2649test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651test "x$ac_build_alias" = x &&
2652 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2653ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2654 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2655
2656fi
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658$as_echo "$ac_cv_build" >&6; }
2659case $ac_cv_build in
2660*-*-*) ;;
2661*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2662esac
2663build=$ac_cv_build
2664ac_save_IFS=$IFS; IFS='-'
2665set x $ac_cv_build
2666shift
2667build_cpu=$1
2668build_vendor=$2
2669shift; shift
2670# Remember, the first character of IFS is used to create $*,
2671# except with old shells:
2672build_os=$*
2673IFS=$ac_save_IFS
2674case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2675
2676
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678$as_echo_n "checking host system type... " >&6; }
2679if test "${ac_cv_host+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test "x$host_alias" = x; then
2683 ac_cv_host=$ac_cv_build
2684else
2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2686 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2687fi
2688
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2691$as_echo "$ac_cv_host" >&6; }
2692case $ac_cv_host in
2693*-*-*) ;;
2694*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2695esac
2696host=$ac_cv_host
2697ac_save_IFS=$IFS; IFS='-'
2698set x $ac_cv_host
2699shift
2700host_cpu=$1
2701host_vendor=$2
2702shift; shift
2703# Remember, the first character of IFS is used to create $*,
2704# except with old shells:
2705host_os=$*
2706IFS=$ac_save_IFS
2707case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2708
2709
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2711$as_echo_n "checking target system type... " >&6; }
2712if test "${ac_cv_target+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714else
2715 if test "x$target_alias" = x; then
2716 ac_cv_target=$ac_cv_host
2717else
2718 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2720fi
2721
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2724$as_echo "$ac_cv_target" >&6; }
2725case $ac_cv_target in
2726*-*-*) ;;
2727*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2728esac
2729target=$ac_cv_target
2730ac_save_IFS=$IFS; IFS='-'
2731set x $ac_cv_target
2732shift
2733target_cpu=$1
2734target_vendor=$2
2735shift; shift
2736# Remember, the first character of IFS is used to create $*,
2737# except with old shells:
2738target_os=$*
2739IFS=$ac_save_IFS
2740case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2741
2742
2743# The aliases save the names the user supplied, while $host etc.
bae7f79e
ILT
2744# will get canonicalized.
2745test -n "$target_alias" &&
2746 test "$program_prefix$program_suffix$program_transform_name" = \
2747 NONENONEs,x,x, &&
2748 program_prefix=${target_alias}-
2749
81ecdfbb
RW
2750am__api_version='1.11'
2751
bae7f79e
ILT
2752# Find a good install program. We prefer a C program (faster),
2753# so one script is as good as another. But avoid the broken or
2754# incompatible versions:
2755# SysV /etc/install, /usr/sbin/install
2756# SunOS /usr/etc/install
2757# IRIX /sbin/install
2758# AIX /bin/install
2759# AmigaOS /C/install, which installs bootblocks on floppy discs
2760# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2761# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2762# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2763# OS/2's system install, which has a completely different semantic
2764# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 2765# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2767$as_echo_n "checking for a BSD-compatible install... " >&6; }
bae7f79e 2768if test -z "$INSTALL"; then
81ecdfbb
RW
2769if test "${ac_cv_path_install+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
bae7f79e
ILT
2771else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2777 # Account for people who put trailing slashes in PATH elements.
2778case $as_dir/ in #((
2779 ./ | .// | /[cC]/* | \
bae7f79e 2780 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2781 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
bae7f79e
ILT
2782 /usr/ucb/* ) ;;
2783 *)
2784 # OSF1 and SCO ODT 3.0 have their own names for install.
2785 # Don't use installbsd from OSF since it installs stuff as root
2786 # by default.
2787 for ac_prog in ginstall scoinst install; do
2788 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2789 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bae7f79e
ILT
2790 if test $ac_prog = install &&
2791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792 # AIX install. It has an incompatible calling convention.
2793 :
2794 elif test $ac_prog = install &&
2795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2796 # program-specific install script used by HP pwplus--don't use.
2797 :
2798 else
f5314dd5
DM
2799 rm -rf conftest.one conftest.two conftest.dir
2800 echo one > conftest.one
2801 echo two > conftest.two
2802 mkdir conftest.dir
2803 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2804 test -s conftest.one && test -s conftest.two &&
2805 test -s conftest.dir/conftest.one &&
2806 test -s conftest.dir/conftest.two
2807 then
2808 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2809 break 3
2810 fi
bae7f79e
ILT
2811 fi
2812 fi
2813 done
2814 done
2815 ;;
2816esac
81ecdfbb
RW
2817
2818 done
2819IFS=$as_save_IFS
bae7f79e 2820
f5314dd5 2821rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
2822
2823fi
2824 if test "${ac_cv_path_install+set}" = set; then
2825 INSTALL=$ac_cv_path_install
2826 else
f5314dd5
DM
2827 # As a last resort, use the slow shell script. Don't cache a
2828 # value for INSTALL within a source directory, because that will
bae7f79e 2829 # break other packages using the cache if that directory is
f5314dd5 2830 # removed, or if the value is a relative name.
bae7f79e
ILT
2831 INSTALL=$ac_install_sh
2832 fi
2833fi
81ecdfbb
RW
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2835$as_echo "$INSTALL" >&6; }
bae7f79e
ILT
2836
2837# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2838# It thinks the first close brace ends the variable substitution.
2839test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2840
2841test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2842
2843test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2844
81ecdfbb
RW
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2846$as_echo_n "checking whether build environment is sane... " >&6; }
bae7f79e
ILT
2847# Just in case
2848sleep 1
2849echo timestamp > conftest.file
81ecdfbb
RW
2850# Reject unsafe characters in $srcdir or the absolute working directory
2851# name. Accept space and tab only in the latter.
2852am_lf='
2853'
2854case `pwd` in
2855 *[\\\"\#\$\&\'\`$am_lf]*)
2856 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2857esac
2858case $srcdir in
2859 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2860 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2861esac
2862
bae7f79e
ILT
2863# Do `set' in a subshell so we don't clobber the current shell's
2864# arguments. Must try -L first in case configure is actually a
2865# symlink; some systems play weird games with the mod time of symlinks
2866# (eg FreeBSD returns the mod time of the symlink's containing
2867# directory).
2868if (
81ecdfbb 2869 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bae7f79e
ILT
2870 if test "$*" = "X"; then
2871 # -L didn't work.
81ecdfbb 2872 set X `ls -t "$srcdir/configure" conftest.file`
bae7f79e
ILT
2873 fi
2874 rm -f conftest.file
2875 if test "$*" != "X $srcdir/configure conftest.file" \
2876 && test "$*" != "X conftest.file $srcdir/configure"; then
2877
2878 # If neither matched, then we have a broken ls. This can happen
2879 # if, for instance, CONFIG_SHELL is bash and it inherits a
2880 # broken ls alias from the environment. This has actually
2881 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
2882 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2883alias in your environment" "$LINENO" 5
bae7f79e
ILT
2884 fi
2885
2886 test "$2" = conftest.file
2887 )
2888then
2889 # Ok.
2890 :
2891else
81ecdfbb
RW
2892 as_fn_error "newly created file is older than distributed files!
2893Check your system clock" "$LINENO" 5
bae7f79e 2894fi
81ecdfbb
RW
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896$as_echo "yes" >&6; }
bae7f79e 2897test "$program_prefix" != NONE &&
81ecdfbb 2898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bae7f79e
ILT
2899# Use a double $ so make ignores it.
2900test "$program_suffix" != NONE &&
81ecdfbb
RW
2901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2902# Double any \ or $.
bae7f79e 2903# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2904ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2905program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bae7f79e
ILT
2906
2907# expand $ac_aux_dir to an absolute path
2908am_aux_dir=`cd $ac_aux_dir && pwd`
2909
81ecdfbb
RW
2910if test x"${MISSING+set}" != xset; then
2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2914 *)
2915 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2916 esac
2917fi
bae7f79e
ILT
2918# Use eval to expand $SHELL
2919if eval "$MISSING --run true"; then
2920 am_missing_run="$MISSING --run "
2921else
2922 am_missing_run=
81ecdfbb
RW
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2924$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2925fi
2926
2927if test x"${install_sh}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931 *)
2932 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 esac
2934fi
2935
2936# Installed binaries are usually stripped using `strip' when the user
2937# run `make install-strip'. However `strip' might not be the right
2938# tool to use in cross-compilation environments, therefore Automake
2939# will honor the `STRIP' environment variable to overrule this program.
2940if test "$cross_compiling" != no; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}strip; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_STRIP+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 if test -n "$STRIP"; then
2950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964 done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969STRIP=$ac_cv_prog_STRIP
2970if test -n "$STRIP"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2972$as_echo "$STRIP" >&6; }
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979fi
2980if test -z "$ac_cv_prog_STRIP"; then
2981 ac_ct_STRIP=$STRIP
2982 # Extract the first word of "strip", so it can be a program name with args.
2983set dummy strip; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988else
2989 if test -n "$ac_ct_STRIP"; then
2990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_ac_ct_STRIP="strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004 done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3010if test -n "$ac_ct_STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3012$as_echo "$ac_ct_STRIP" >&6; }
3013else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018 if test "x$ac_ct_STRIP" = x; then
3019 STRIP=":"
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027 STRIP=$ac_ct_STRIP
3028 fi
3029else
3030 STRIP="$ac_cv_prog_STRIP"
3031fi
3032
3033fi
3034INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3035
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3037$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3038if test -z "$MKDIR_P"; then
3039 if test "${ac_cv_path_mkdir+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3041else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_prog in mkdir gmkdir; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3050 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3051 'mkdir (GNU coreutils) '* | \
3052 'mkdir (coreutils) '* | \
3053 'mkdir (fileutils) '4.1*)
3054 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3055 break 3;;
3056 esac
3057 done
3058 done
bae7f79e 3059 done
81ecdfbb
RW
3060IFS=$as_save_IFS
3061
3062fi
3063
3064 if test "${ac_cv_path_mkdir+set}" = set; then
3065 MKDIR_P="$ac_cv_path_mkdir -p"
bae7f79e 3066 else
81ecdfbb
RW
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for MKDIR_P within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
3071 test -d ./--version && rmdir ./--version
3072 MKDIR_P="$ac_install_sh -d"
bae7f79e
ILT
3073 fi
3074fi
81ecdfbb
RW
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3076$as_echo "$MKDIR_P" >&6; }
3077
3078mkdir_p="$MKDIR_P"
3079case $mkdir_p in
3080 [\\/$]* | ?:[\\/]*) ;;
3081 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3082esac
bae7f79e
ILT
3083
3084for ac_prog in gawk mawk nawk awk
3085do
3086 # Extract the first word of "$ac_prog", so it can be a program name with args.
3087set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if test "${ac_cv_prog_AWK+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3092else
3093 if test -n "$AWK"; then
3094 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bae7f79e 3103 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bae7f79e
ILT
3105 break 2
3106 fi
3107done
81ecdfbb
RW
3108 done
3109IFS=$as_save_IFS
bae7f79e
ILT
3110
3111fi
3112fi
3113AWK=$ac_cv_prog_AWK
3114if test -n "$AWK"; then
81ecdfbb
RW
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3116$as_echo "$AWK" >&6; }
bae7f79e 3117else
81ecdfbb
RW
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
bae7f79e
ILT
3120fi
3121
81ecdfbb 3122
bae7f79e
ILT
3123 test -n "$AWK" && break
3124done
3125
81ecdfbb
RW
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3127$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3128set x ${MAKE-make}
3129ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3130if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3131 $as_echo_n "(cached) " >&6
bae7f79e
ILT
3132else
3133 cat >conftest.make <<\_ACEOF
81ecdfbb 3134SHELL = /bin/sh
bae7f79e 3135all:
81ecdfbb 3136 @echo '@@@%%%=$(MAKE)=@@@%%%'
bae7f79e
ILT
3137_ACEOF
3138# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3139case `${MAKE-make} -f conftest.make 2>/dev/null` in
3140 *@@@%%%=?*=@@@%%%*)
3141 eval ac_cv_prog_make_${ac_make}_set=yes;;
3142 *)
3143 eval ac_cv_prog_make_${ac_make}_set=no;;
3144esac
bae7f79e
ILT
3145rm -f conftest.make
3146fi
81ecdfbb
RW
3147if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149$as_echo "yes" >&6; }
bae7f79e
ILT
3150 SET_MAKE=
3151else
81ecdfbb
RW
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
bae7f79e
ILT
3154 SET_MAKE="MAKE=${MAKE-make}"
3155fi
3156
3157rm -rf .tst 2>/dev/null
3158mkdir .tst 2>/dev/null
3159if test -d .tst; then
3160 am__leading_dot=.
3161else
3162 am__leading_dot=_
3163fi
3164rmdir .tst 2>/dev/null
3165
81ecdfbb
RW
3166if test "`cd $srcdir && pwd`" != "`pwd`"; then
3167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3168 # is not polluted with repeated "-I."
3169 am__isrc=' -I$(srcdir)'
3170 # test to see if srcdir already configured
3171 if test -f $srcdir/config.status; then
3172 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3173 fi
bae7f79e
ILT
3174fi
3175
3176# test whether we have cygpath
3177if test -z "$CYGPATH_W"; then
3178 if (cygpath --version) >/dev/null 2>/dev/null; then
3179 CYGPATH_W='cygpath -w'
3180 else
3181 CYGPATH_W=echo
3182 fi
3183fi
3184
3185
3186# Define the identity of the package.
8486ee48
ILT
3187 PACKAGE='gold'
3188 VERSION='0.1'
bae7f79e
ILT
3189
3190
3191cat >>confdefs.h <<_ACEOF
3192#define PACKAGE "$PACKAGE"
3193_ACEOF
3194
3195
3196cat >>confdefs.h <<_ACEOF
3197#define VERSION "$VERSION"
3198_ACEOF
3199
3200# Some tools Automake needs.
3201
3202ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3203
3204
3205AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3206
3207
3208AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3209
3210
3211AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3212
3213
3214MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3215
81ecdfbb
RW
3216# We need awk for the "check" target. The system "awk" is bad on
3217# some platforms.
3218# Always define AMTAR for backward compatibility.
bae7f79e 3219
81ecdfbb 3220AMTAR=${AMTAR-"${am_missing_run}tar"}
bae7f79e 3221
81ecdfbb
RW
3222am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3223
3224
3225
3226
3227
3228
3229ac_config_headers="$ac_config_headers config.h:config.in"
3230
3231
7c0640fa 3232# PR 14072
81ecdfbb 3233
df7b86aa
NC
3234
3235
81ecdfbb
RW
3236# Check whether --with-sysroot was given.
3237if test "${with_sysroot+set}" = set; then :
3238 withval=$with_sysroot; sysroot=$withval
bae7f79e 3239else
81ecdfbb 3240 sysroot=no
bae7f79e
ILT
3241fi
3242
81ecdfbb
RW
3243
3244if test "$sysroot" = "yes"; then
3245 sysroot='${exec_prefix}/${target_alias}/sys-root'
3246elif test "$sysroot" = "no"; then
3247 sysroot=
ad2d6943
ILT
3248fi
3249
3250sysroot_relocatable=0
3251if test -n "$sysroot"; then
3252 case "sysroot" in
3253 "${prefix}" | "${prefix}/"* | \
3254 "${exec_prefix}" | "${exec_prefix}/"* | \
3255 '${prefix}' | '${prefix}/'*| \
3256 '${exec_prefix}' | '${exec_prefix}/'*)
3257 sysroot_relocatable=1
3258 ;;
3259 esac
3260fi
3261
3262
3263cat >>confdefs.h <<_ACEOF
3264#define TARGET_SYSTEM_ROOT "$sysroot"
3265_ACEOF
3266
3267
3268cat >>confdefs.h <<_ACEOF
3269#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
3270_ACEOF
3271
3272
c7791212 3273
f2a6224b 3274installed_linker=ld.gold
4fda8867
NC
3275# Check whether --enable-gold was given.
3276if test "${enable_gold+set}" = set; then :
3277 enableval=$enable_gold; case "${enableval}" in
f2a6224b
L
3278 default)
3279 install_as_default=yes
3280 ;;
3281 yes)
3282 if test x${enable_ld} = xno; then
c7791212
NC
3283 install_as_default=yes
3284 fi
4fda8867
NC
3285 ;;
3286 esac
3287else
c7791212 3288 install_as_default=no
4fda8867
NC
3289fi
3290
3291
3292
3293
81ecdfbb
RW
3294# Check whether --enable-threads was given.
3295if test "${enable_threads+set}" = set; then :
3296 enableval=$enable_threads; case "${enableval}" in
fe9a4c12
ILT
3297 yes | "") threads=yes ;;
3298 no) threads=no ;;
3299 *) threads=yes ;;
3300 esac
3301else
3302 threads=no
81ecdfbb
RW
3303fi
3304
fe9a4c12
ILT
3305if test "$threads" = "yes"; then
3306
81ecdfbb 3307$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
fe9a4c12
ILT
3308
3309fi
81ecdfbb 3310 if test "$threads" = "yes"; then
fe9a4c12
ILT
3311 THREADS_TRUE=
3312 THREADS_FALSE='#'
3313else
3314 THREADS_TRUE='#'
3315 THREADS_FALSE=
3316fi
3317
3318
81ecdfbb
RW
3319# Check whether --enable-plugins was given.
3320if test "${enable_plugins+set}" = set; then :
3321 enableval=$enable_plugins; case "${enableval}" in
89fc3421
CC
3322 yes | "") plugins=yes ;;
3323 no) plugins=no ;;
3324 *) plugins=yes ;;
3325 esac
3326else
3327 plugins=no
81ecdfbb
RW
3328fi
3329
89fc3421
CC
3330if test "$plugins" = "yes"; then
3331
81ecdfbb 3332$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
89fc3421
CC
3333
3334fi
81ecdfbb 3335 if test "$plugins" = "yes"; then
89fc3421
CC
3336 PLUGINS_TRUE=
3337 PLUGINS_FALSE='#'
3338else
3339 PLUGINS_TRUE='#'
3340 PLUGINS_FALSE=
3341fi
3342
3343
81ecdfbb
RW
3344# Check whether --enable-targets was given.
3345if test "${enable_targets+set}" = set; then :
3346 enableval=$enable_targets; case "${enableval}" in
193a53d9 3347 yes | "")
81ecdfbb 3348 as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
193a53d9
ILT
3349 ;;
3350 no)
3351 enable_targets=
3352 ;;
3353 *)
3354 enable_targets=$enableval
3355 ;;
3356esac
3357else
3358 # For now, enable all targets by default
3359 enable_targets=all
3360
81ecdfbb
RW
3361fi
3362
193a53d9
ILT
3363
3364# Canonicalize the enabled targets.
3365if test -n "$enable_targets"; then
3366 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
3367 result=`$ac_config_sub $targ 2>/dev/null`
3368 if test -n "$result"; then
3369 canon_targets="$canon_targets $result"
3370 else
3371 # Permit unrecognized target names, like "all".
3372 canon_targets="$canon_targets $targ"
3373 fi
3374 done
3375fi
3376
3377# See which specific instantiations we need.
6df6da4a
ILT
3378targetobjs=
3379all_targets=
fbfba508
ILT
3380default_machine=
3381default_size=
3382default_big_endian=
36959681 3383default_osabi=ELFOSABI_NONE
fbfba508
ILT
3384targ_32_little=
3385targ_32_big=
81ecdfbb
RW
3386targ_64_little=
3387targ_64_big=
3388for targ in $target $canon_targets; do
3389 if test "$targ" = "all"; then
3390 targ_32_little=yes
3391 targ_32_big=yes
3392 targ_64_little=yes
3393 targ_64_big=yes
3394 all_targets=yes
3395 else
3396 . ${srcdir}/configure.tgt
bae7f79e 3397
81ecdfbb
RW
3398 if test "$targ_obj" = "UNKNOWN"; then
3399 as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
3400 else
3401 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
3402 if test "$targ_extra_obj" != ""; then
3403 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
3404 fi
3405 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
3406 if test "$targ_big_endian" = "true" \
3407 -o "$targ_extra_big_endian" = "true"; then
3408 targ_32_big=yes
3409 fi
3410 if test "$targ_big_endian" = "false" \
3411 -o "$targ_extra_big_endian" = "false"; then
3412 targ_32_little=yes
3413 fi
3414 fi
3415 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
3416 if test "$targ_big_endian" = "true" \
3417 -o "$targ_extra_big_endian" = "true"; then
3418 targ_64_big=yes
3419 fi
3420 if test "$targ_big_endian" = "false" \
3421 -o "$targ_extra_big_endian" = "false"; then
3422 targ_64_little=yes
3423 fi
3424 fi
bae7f79e 3425
81ecdfbb
RW
3426 if test "$target" = "$targ"; then
3427 default_machine=$targ_machine
3428 default_size=$targ_size
3429 default_big_endian=$targ_big_endian
3430 default_osabi=$targ_osabi
364c7fa5
ILT
3431
3432 if test "$targ_obj" = "arm"; then
3433 DEFAULT_TARGET_ARM_TRUE=
3434 DEFAULT_TARGET_ARM_FALSE='#'
3435else
3436 DEFAULT_TARGET_ARM_TRUE='#'
3437 DEFAULT_TARGET_ARM_FALSE=
3438fi
3439
3440 if test "$targ_obj" = "i386"; then
3441 DEFAULT_TARGET_I386_TRUE=
3442 DEFAULT_TARGET_I386_FALSE='#'
3443else
3444 DEFAULT_TARGET_I386_TRUE='#'
3445 DEFAULT_TARGET_I386_FALSE=
3446fi
3447
3448 if test "$targ_obj" = "powerpc"; then
3449 DEFAULT_TARGET_POWERPC_TRUE=
3450 DEFAULT_TARGET_POWERPC_FALSE='#'
3451else
3452 DEFAULT_TARGET_POWERPC_TRUE='#'
3453 DEFAULT_TARGET_POWERPC_FALSE=
3454fi
3455
3456 if test "$targ_obj" = "sparc"; then
3457 DEFAULT_TARGET_SPARC_TRUE=
3458 DEFAULT_TARGET_SPARC_FALSE='#'
3459else
3460 DEFAULT_TARGET_SPARC_TRUE='#'
3461 DEFAULT_TARGET_SPARC_FALSE=
3462fi
3463
3464 if test "$targ_obj" = "x86_64"; then
3465 DEFAULT_TARGET_X86_64_TRUE=
3466 DEFAULT_TARGET_X86_64_FALSE='#'
3467else
3468 DEFAULT_TARGET_X86_64_TRUE='#'
3469 DEFAULT_TARGET_X86_64_FALSE=
3470fi
3471
0a6f1bf2
AM
3472 if test "$targ_obj" = "tilegx"; then
3473 DEFAULT_TARGET_TILEGX_TRUE=
3474 DEFAULT_TARGET_TILEGX_FALSE='#'
3475else
3476 DEFAULT_TARGET_TILEGX_TRUE='#'
3477 DEFAULT_TARGET_TILEGX_FALSE=
3478fi
3479
9df9de2c
CC
3480 DEFAULT_TARGET=${targ_obj}
3481
81ecdfbb
RW
3482 fi
3483 fi
bae7f79e 3484 fi
81ecdfbb 3485done
bae7f79e 3486
6cfaf60b 3487# Remove any duplicates.
9109c078
ILT
3488to=""
3489for t in $targetobjs; do
3490 case " $to " in
3491 *" $t "*) ;;
3492 *) to="$to $t" ;;
3493 esac
3494done
3495targetobjs=$to
6cfaf60b 3496
81ecdfbb 3497if test -n "$targ_32_little"; then
bae7f79e 3498
81ecdfbb 3499$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
bae7f79e 3500
537b5f51 3501fi
81ecdfbb 3502if test -n "$targ_32_big"; then
537b5f51 3503
81ecdfbb 3504$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
fa99aa09 3505
81ecdfbb
RW
3506fi
3507if test -n "$targ_64_little"; then
fa99aa09 3508
81ecdfbb 3509$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
fa99aa09 3510
81ecdfbb
RW
3511fi
3512if test -n "$targ_64_big"; then
fa99aa09 3513
81ecdfbb 3514$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
bae7f79e 3515
bae7f79e 3516fi
bae7f79e 3517
81ecdfbb
RW
3518if test -n "$all_targets"; then
3519 TARGETOBJS='$(ALL_TARGETOBJS)'
3520else
3521 TARGETOBJS="$targetobjs"
3522fi
bae7f79e 3523
bae7f79e
ILT
3524
3525
81ecdfbb
RW
3526cat >>confdefs.h <<_ACEOF
3527#define GOLD_DEFAULT_MACHINE $default_machine
3528_ACEOF
bae7f79e 3529
bae7f79e 3530
81ecdfbb
RW
3531cat >>confdefs.h <<_ACEOF
3532#define GOLD_DEFAULT_SIZE $default_size
3533_ACEOF
bae7f79e 3534
bae7f79e 3535
81ecdfbb
RW
3536cat >>confdefs.h <<_ACEOF
3537#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
3538_ACEOF
bae7f79e 3539
bae7f79e 3540
81ecdfbb
RW
3541cat >>confdefs.h <<_ACEOF
3542#define GOLD_DEFAULT_OSABI $default_osabi
3543_ACEOF
bae7f79e
ILT
3544
3545
3f3cddf1
ILT
3546
3547# Check whether --with-lib-path was given.
3548if test "${with_lib_path+set}" = set; then :
3549 withval=$with_lib_path; case "$withval" in
3550 yes) LIB_PATH='"/lib:/usr/lib"' ;;
3551 no) LIB_PATH='""' ;;
3552 *) LIB_PATH='"'"$withval"'"' ;;
3553 esac
3554else
3555 LIB_PATH='"::DEFAULT::"'
3556fi
3557
3558
3559cat >>confdefs.h <<_ACEOF
3560#define LIB_PATH $LIB_PATH
3561_ACEOF
3562
3563if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
3564
3565$as_echo "#define NATIVE_LINKER 1" >>confdefs.h
3566
3567fi
3568
ebb300b2
CC
3569if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3571set dummy ${ac_tool_prefix}nm; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
3574if test "${ac_cv_prog_NM+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if test -n "$NM"; then
3578 ac_cv_prog_NM="$NM" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_NM="${ac_tool_prefix}nm"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591done
3592 done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597NM=$ac_cv_prog_NM
3598if test -n "$NM"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3600$as_echo "$NM" >&6; }
3601else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604fi
3605
3606
3607fi
3608if test -z "$ac_cv_prog_NM"; then
3609 ac_ct_NM=$NM
3610 # Extract the first word of "nm", so it can be a program name with args.
3611set dummy nm; ac_word=$2
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613$as_echo_n "checking for $ac_word... " >&6; }
3614if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616else
3617 if test -n "$ac_ct_NM"; then
3618 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3619else
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_NM="nm"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631done
3632 done
3633IFS=$as_save_IFS
3634
3635fi
3636fi
3637ac_ct_NM=$ac_cv_prog_ac_ct_NM
3638if test -n "$ac_ct_NM"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3640$as_echo "$ac_ct_NM" >&6; }
3641else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644fi
3645
3646 if test "x$ac_ct_NM" = x; then
3647 NM=""
3648 else
3649 case $cross_compiling:$ac_tool_warned in
3650yes:)
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653ac_tool_warned=yes ;;
3654esac
3655 NM=$ac_ct_NM
3656 fi
3657else
3658 NM="$ac_cv_prog_NM"
3659fi
3660
3661
81ecdfbb
RW
3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}gcc; ac_word=$2
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671$as_echo_n "checking for $ac_word... " >&6; }
3672if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
bae7f79e 3674else
81ecdfbb
RW
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689done
3690 done
3691IFS=$as_save_IFS
bae7f79e 3692
81ecdfbb
RW
3693fi
3694fi
3695CC=$ac_cv_prog_CC
3696if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698$as_echo "$CC" >&6; }
3699else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701$as_echo "no" >&6; }
3702fi
bae7f79e
ILT
3703
3704
bae7f79e 3705fi
81ecdfbb
RW
3706if test -z "$ac_cv_prog_CC"; then
3707 ac_ct_CC=$CC
3708 # Extract the first word of "gcc", so it can be a program name with args.
3709set dummy gcc; ac_word=$2
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711$as_echo_n "checking for $ac_word... " >&6; }
3712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714else
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_CC="gcc"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729done
3730 done
3731IFS=$as_save_IFS
bae7f79e 3732
81ecdfbb
RW
3733fi
3734fi
3735ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738$as_echo "$ac_ct_CC" >&6; }
bae7f79e 3739else
81ecdfbb
RW
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741$as_echo "no" >&6; }
bae7f79e 3742fi
bae7f79e 3743
81ecdfbb
RW
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748yes:)
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751ac_tool_warned=yes ;;
bae7f79e 3752esac
81ecdfbb
RW
3753 CC=$ac_ct_CC
3754 fi
bae7f79e 3755else
81ecdfbb 3756 CC="$ac_cv_prog_CC"
bae7f79e
ILT
3757fi
3758
81ecdfbb
RW
3759if test -z "$CC"; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3762set dummy ${ac_tool_prefix}cc; ac_word=$2
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764$as_echo_n "checking for $ac_word... " >&6; }
3765if test "${ac_cv_prog_CC+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
bae7f79e 3767else
81ecdfbb
RW
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bae7f79e
ILT
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bae7f79e
ILT
3780 break 2
3781 fi
3782done
81ecdfbb
RW
3783 done
3784IFS=$as_save_IFS
bae7f79e 3785
bae7f79e 3786fi
81ecdfbb
RW
3787fi
3788CC=$ac_cv_prog_CC
3789if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791$as_echo "$CC" >&6; }
bae7f79e 3792else
81ecdfbb
RW
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794$as_echo "no" >&6; }
bae7f79e
ILT
3795fi
3796
3797
81ecdfbb
RW
3798 fi
3799fi
3800if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802set dummy cc; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
3805if test "${ac_cv_prog_CC+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807else
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3810else
3811 ac_prog_rejected=no
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3821 continue
3822 fi
3823 ac_cv_prog_CC="cc"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828 done
3829IFS=$as_save_IFS
bae7f79e 3830
81ecdfbb
RW
3831if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3834 shift
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3839 shift
3840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
bae7f79e 3841 fi
81ecdfbb
RW
3842fi
3843fi
3844fi
3845CC=$ac_cv_prog_CC
3846if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848$as_echo "$CC" >&6; }
3849else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
bae7f79e
ILT
3852fi
3853
81ecdfbb
RW
3854
3855fi
3856if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3859 do
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
3864if test "${ac_cv_prog_CC+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
bae7f79e 3866else
81ecdfbb
RW
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887CC=$ac_cv_prog_CC
3888if test -n "$CC"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890$as_echo "$CC" >&6; }
3891else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
bae7f79e 3894fi
bae7f79e 3895
81ecdfbb
RW
3896
3897 test -n "$CC" && break
3898 done
3899fi
3900if test -z "$CC"; then
3901 ac_ct_CC=$CC
3902 for ac_prog in cl.exe
3903do
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905set dummy $ac_prog; ac_word=$2
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
bae7f79e 3910else
81ecdfbb
RW
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925done
3926 done
3927IFS=$as_save_IFS
3928
bae7f79e 3929fi
81ecdfbb
RW
3930fi
3931ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934$as_echo "$ac_ct_CC" >&6; }
bae7f79e 3935else
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
bae7f79e
ILT
3938fi
3939
bae7f79e 3940
81ecdfbb
RW
3941 test -n "$ac_ct_CC" && break
3942done
bae7f79e 3943
81ecdfbb
RW
3944 if test "x$ac_ct_CC" = x; then
3945 CC=""
bae7f79e 3946 else
81ecdfbb
RW
3947 case $cross_compiling:$ac_tool_warned in
3948yes:)
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951ac_tool_warned=yes ;;
3952esac
3953 CC=$ac_ct_CC
bae7f79e 3954 fi
bae7f79e
ILT
3955fi
3956
bae7f79e 3957fi
bae7f79e 3958
81ecdfbb
RW
3959
3960test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962as_fn_error "no acceptable C compiler found in \$PATH
3963See \`config.log' for more details." "$LINENO" 5; }
3964
3965# Provide some information about the compiler.
3966$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3967set X $ac_compile
3968ac_compiler=$2
3969for ac_option in --version -v -V -qversion; do
3970 { { ac_try="$ac_compiler $ac_option >&5"
3971case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
bae7f79e 3974esac
81ecdfbb
RW
3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976$as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3978 ac_status=$?
3979 if test -s conftest.err; then
3980 sed '10a\
3981... rest of stderr output deleted ...
3982 10q' conftest.err >conftest.er1
3983 cat conftest.er1 >&5
3984 rm -f conftest.er1 conftest.err
3985 fi
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988done
3989
3990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991/* end confdefs.h. */
3992
3993int
3994main ()
3995{
3996
3997 ;
3998 return 0;
3999}
4000_ACEOF
4001ac_clean_files_save=$ac_clean_files
4002ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4003# Try to create an executable without -o first, disregard a.out.
4004# It will help us diagnose broken compilers, and finding out an intuition
4005# of exeext.
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4007$as_echo_n "checking for C compiler default output file name... " >&6; }
4008ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4009
4010# The possible output files:
4011ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4012
4013ac_rmfiles=
4014for ac_file in $ac_files
4015do
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4019 esac
4020done
4021rm -f $ac_rmfiles
4022
4023if { { ac_try="$ac_link_default"
4024case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029$as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_link_default") 2>&5
4031 ac_status=$?
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }; then :
4034 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4035# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4036# in a Makefile. We should not override ac_cv_exeext if it was cached,
4037# so that the user can short-circuit this test for compilers unknown to
4038# Autoconf.
4039for ac_file in $ac_files ''
4040do
4041 test -f "$ac_file" || continue
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4044 ;;
4045 [ab].out )
4046 # We found the default executable, but exeext='' is most
4047 # certainly right.
4048 break;;
4049 *.* )
4050 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4051 then :; else
4052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 fi
4054 # We set ac_cv_exeext here because the later test for it is not
4055 # safe: cross compilers may not add the suffix if given an `-o'
4056 # argument, so we may need to know it at that point already.
4057 # Even if this section looks crufty: it has the advantage of
4058 # actually working.
4059 break;;
4060 * )
4061 break;;
4062 esac
4063done
4064test "$ac_cv_exeext" = no && ac_cv_exeext=
4065
bae7f79e 4066else
81ecdfbb 4067 ac_file=''
bae7f79e 4068fi
81ecdfbb
RW
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4070$as_echo "$ac_file" >&6; }
4071if test -z "$ac_file"; then :
4072 $as_echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
bae7f79e 4074
81ecdfbb
RW
4075{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077{ as_fn_set_status 77
4078as_fn_error "C compiler cannot create executables
4079See \`config.log' for more details." "$LINENO" 5; }; }
4080fi
4081ac_exeext=$ac_cv_exeext
bae7f79e 4082
81ecdfbb
RW
4083# Check that the compiler produces executables we can run. If not, either
4084# the compiler is broken, or we cross compile.
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4086$as_echo_n "checking whether the C compiler works... " >&6; }
4087# If not cross compiling, check that we can run a simple program.
4088if test "$cross_compiling" != yes; then
4089 if { ac_try='./$ac_file'
4090 { { case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095$as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; }; then
4100 cross_compiling=no
4101 else
4102 if test "$cross_compiling" = maybe; then
4103 cross_compiling=yes
bae7f79e 4104 else
81ecdfbb
RW
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107as_fn_error "cannot run C compiled programs.
4108If you meant to cross compile, use \`--host'.
4109See \`config.log' for more details." "$LINENO" 5; }
bae7f79e 4110 fi
bae7f79e 4111 fi
81ecdfbb
RW
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
bae7f79e 4115
81ecdfbb
RW
4116rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4117ac_clean_files=$ac_clean_files_save
4118# Check that the compiler produces executables we can run. If not, either
4119# the compiler is broken, or we cross compile.
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121$as_echo_n "checking whether we are cross compiling... " >&6; }
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4123$as_echo "$cross_compiling" >&6; }
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4126$as_echo_n "checking for suffix of executables... " >&6; }
4127if { { ac_try="$ac_link"
4128case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133$as_echo "$ac_try_echo"; } >&5
4134 (eval "$ac_link") 2>&5
4135 ac_status=$?
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }; then :
4138 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4139# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4140# work properly (i.e., refer to `conftest.exe'), while it won't with
4141# `rm'.
4142for ac_file in conftest.exe conftest conftest.*; do
4143 test -f "$ac_file" || continue
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4147 break;;
4148 * ) break;;
4149 esac
4150done
4151else
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error "cannot compute suffix of executables: cannot compile and link
4155See \`config.log' for more details." "$LINENO" 5; }
4156fi
4157rm -f conftest$ac_cv_exeext
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4159$as_echo "$ac_cv_exeext" >&6; }
bae7f79e 4160
81ecdfbb
RW
4161rm -f conftest.$ac_ext
4162EXEEXT=$ac_cv_exeext
4163ac_exeext=$EXEEXT
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4165$as_echo_n "checking for suffix of object files... " >&6; }
4166if test "${ac_cv_objext+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
92e059d8 4168else
81ecdfbb 4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 4170/* end confdefs.h. */
92e059d8
ILT
4171
4172int
4173main ()
4174{
92e059d8
ILT
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
81ecdfbb
RW
4180rm -f conftest.o conftest.obj
4181if { { ac_try="$ac_compile"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187$as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_compile") 2>&5
4189 ac_status=$?
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }; then :
4192 for ac_file in conftest.o conftest.obj conftest.*; do
4193 test -f "$ac_file" || continue;
4194 case $ac_file in
4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4197 break;;
4198 esac
4199done
4200else
4201 $as_echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
4203
4204{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206as_fn_error "cannot compute suffix of object files: cannot compile
4207See \`config.log' for more details." "$LINENO" 5; }
4208fi
4209rm -f conftest.$ac_cv_objext conftest.$ac_ext
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4212$as_echo "$ac_cv_objext" >&6; }
4213OBJEXT=$ac_cv_objext
4214ac_objext=$OBJEXT
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4216$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4217if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4219else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 4221/* end confdefs.h. */
92e059d8
ILT
4222
4223int
4224main ()
4225{
81ecdfbb
RW
4226#ifndef __GNUC__
4227 choke me
92e059d8
ILT
4228#endif
4229
4230 ;
4231 return 0;
4232}
4233_ACEOF
81ecdfbb
RW
4234if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_compiler_gnu=yes
92e059d8 4236else
81ecdfbb
RW
4237 ac_compiler_gnu=no
4238fi
4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240ac_cv_c_compiler_gnu=$ac_compiler_gnu
92e059d8 4241
92e059d8 4242fi
81ecdfbb
RW
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4244$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4245if test $ac_compiler_gnu = yes; then
4246 GCC=yes
92e059d8 4247else
81ecdfbb
RW
4248 GCC=
4249fi
4250ac_test_CFLAGS=${CFLAGS+set}
4251ac_save_CFLAGS=$CFLAGS
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4253$as_echo_n "checking whether $CC accepts -g... " >&6; }
4254if test "${ac_cv_prog_cc_g+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 ac_save_c_werror_flag=$ac_c_werror_flag
4258 ac_c_werror_flag=yes
4259 ac_cv_prog_cc_g=no
4260 CFLAGS="-g"
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 4262/* end confdefs.h. */
81ecdfbb 4263
92e059d8
ILT
4264int
4265main ()
4266{
81ecdfbb 4267
92e059d8
ILT
4268 ;
4269 return 0;
4270}
4271_ACEOF
81ecdfbb
RW
4272if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_prog_cc_g=yes
92e059d8 4274else
81ecdfbb
RW
4275 CFLAGS=""
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92e059d8 4277/* end confdefs.h. */
81ecdfbb 4278
92e059d8
ILT
4279int
4280main ()
4281{
81ecdfbb
RW
4282
4283 ;
4284 return 0;
92e059d8
ILT
4285}
4286_ACEOF
81ecdfbb
RW
4287if ac_fn_c_try_compile "$LINENO"; then :
4288
92e059d8 4289else
81ecdfbb
RW
4290 ac_c_werror_flag=$ac_save_c_werror_flag
4291 CFLAGS="-g"
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
92e059d8 4294
81ecdfbb
RW
4295int
4296main ()
4297{
92e059d8 4298
81ecdfbb
RW
4299 ;
4300 return 0;
4301}
92e059d8 4302_ACEOF
81ecdfbb
RW
4303if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_prog_cc_g=yes
537b5f51 4305fi
81ecdfbb 4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
537b5f51 4307fi
81ecdfbb 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63402fe4 4309fi
81ecdfbb
RW
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_c_werror_flag=$ac_save_c_werror_flag
8a5e3e08 4312fi
81ecdfbb
RW
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4314$as_echo "$ac_cv_prog_cc_g" >&6; }
4315if test "$ac_test_CFLAGS" = set; then
4316 CFLAGS=$ac_save_CFLAGS
4317elif test $ac_cv_prog_cc_g = yes; then
4318 if test "$GCC" = yes; then
4319 CFLAGS="-g -O2"
4320 else
4321 CFLAGS="-g"
4322 fi
6eee141f 4323else
81ecdfbb
RW
4324 if test "$GCC" = yes; then
4325 CFLAGS="-O2"
4326 else
4327 CFLAGS=
4328 fi
097ec620 4329fi
81ecdfbb
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4331$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4332if test "${ac_cv_prog_cc_c89+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
6eee141f 4334else
81ecdfbb
RW
4335 ac_cv_prog_cc_c89=no
4336ac_save_CC=$CC
4337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h. */
4339#include <stdarg.h>
4340#include <stdio.h>
4341#include <sys/types.h>
4342#include <sys/stat.h>
4343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4344struct buf { int x; };
4345FILE * (*rcsopen) (struct buf *, struct stat *, int);
4346static char *e (p, i)
4347 char **p;
4348 int i;
4349{
4350 return p[i];
4351}
4352static char *f (char * (*g) (char **, int), char **p, ...)
4353{
4354 char *s;
4355 va_list v;
4356 va_start (v,p);
4357 s = g (p, va_arg (v,int));
4358 va_end (v);
4359 return s;
4360}
6eee141f 4361
81ecdfbb
RW
4362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4363 function prototypes and stuff, but not '\xHH' hex character constants.
4364 These don't provoke an error unfortunately, instead are silently treated
4365 as 'x'. The following induces an error, until -std is added to get
4366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4367 array size at least. It's necessary to write '\x00'==0 to get something
4368 that's true only with -std. */
4369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
097ec620 4370
81ecdfbb
RW
4371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4372 inside strings and character constants. */
4373#define FOO(x) 'x'
4374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
097ec620 4375
81ecdfbb
RW
4376int test (int i, double x);
4377struct s1 {int (*f) (int a);};
4378struct s2 {int (*f) (double a);};
4379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4380int argc;
4381char **argv;
4382int
4383main ()
4384{
4385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4386 ;
4387 return 0;
4388}
097ec620 4389_ACEOF
81ecdfbb
RW
4390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4392do
4393 CC="$ac_save_CC $ac_arg"
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395 ac_cv_prog_cc_c89=$ac_arg
097ec620 4396fi
81ecdfbb
RW
4397rm -f core conftest.err conftest.$ac_objext
4398 test "x$ac_cv_prog_cc_c89" != "xno" && break
4399done
4400rm -f conftest.$ac_ext
4401CC=$ac_save_CC
097ec620 4402
097ec620 4403fi
81ecdfbb
RW
4404# AC_CACHE_VAL
4405case "x$ac_cv_prog_cc_c89" in
4406 x)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4408$as_echo "none needed" >&6; } ;;
4409 xno)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4411$as_echo "unsupported" >&6; } ;;
4412 *)
4413 CC="$CC $ac_cv_prog_cc_c89"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4416esac
4417if test "x$ac_cv_prog_cc_c89" != xno; then :
097ec620 4418
81ecdfbb 4419fi
097ec620 4420
81ecdfbb
RW
4421ac_ext=c
4422ac_cpp='$CPP $CPPFLAGS'
4423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426DEPDIR="${am__leading_dot}deps"
155a0dd7 4427
81ecdfbb 4428ac_config_commands="$ac_config_commands depfiles"
155a0dd7 4429
155a0dd7 4430
81ecdfbb
RW
4431am_make=${MAKE-make}
4432cat > confinc << 'END'
4433am__doit:
4434 @echo this is the am__doit target
4435.PHONY: am__doit
4436END
4437# If we don't find an include directive, just comment out the code.
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4439$as_echo_n "checking for style of include used by $am_make... " >&6; }
4440am__include="#"
4441am__quote=
4442_am_result=none
4443# First try GNU make style include.
4444echo "include confinc" > confmf
4445# Ignore all kinds of additional output from `make'.
4446case `$am_make -s -f confmf 2> /dev/null` in #(
4447*the\ am__doit\ target*)
4448 am__include=include
4449 am__quote=
4450 _am_result=GNU
4451 ;;
4452esac
4453# Now try BSD make style include.
4454if test "$am__include" = "#"; then
4455 echo '.include "confinc"' > confmf
4456 case `$am_make -s -f confmf 2> /dev/null` in #(
4457 *the\ am__doit\ target*)
4458 am__include=.include
4459 am__quote="\""
4460 _am_result=BSD
4461 ;;
4462 esac
155a0dd7 4463fi
155a0dd7 4464
155a0dd7 4465
81ecdfbb
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4467$as_echo "$_am_result" >&6; }
4468rm -f confinc confmf
155a0dd7 4469
81ecdfbb
RW
4470# Check whether --enable-dependency-tracking was given.
4471if test "${enable_dependency_tracking+set}" = set; then :
4472 enableval=$enable_dependency_tracking;
4473fi
155a0dd7 4474
81ecdfbb
RW
4475if test "x$enable_dependency_tracking" != xno; then
4476 am_depcomp="$ac_aux_dir/depcomp"
4477 AMDEPBACKSLASH='\'
4478fi
4479 if test "x$enable_dependency_tracking" != xno; then
4480 AMDEP_TRUE=
4481 AMDEP_FALSE='#'
155a0dd7 4482else
81ecdfbb
RW
4483 AMDEP_TRUE='#'
4484 AMDEP_FALSE=
155a0dd7
ILT
4485fi
4486
4487
c2b45e22 4488
81ecdfbb 4489depcc="$CC" am_compiler_list=
c2b45e22 4490
81ecdfbb
RW
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492$as_echo_n "checking dependency style of $depcc... " >&6; }
4493if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
c2b45e22 4495else
81ecdfbb
RW
4496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4497 # We make a subdir and do the tests there. Otherwise we can end up
4498 # making bogus files that we don't know about and never remove. For
4499 # instance it was reported that on HP-UX the gcc test will end up
4500 # making a dummy file named `D' -- because `-MD' means `put the output
4501 # in D'.
4502 mkdir conftest.dir
4503 # Copy depcomp to subdir because otherwise we won't find it if we're
4504 # using a relative directory.
4505 cp "$am_depcomp" conftest.dir
4506 cd conftest.dir
4507 # We will build objects and dependencies in a subdirectory because
4508 # it helps to detect inapplicable dependency modes. For instance
4509 # both Tru64's cc and ICC support -MD to output dependencies as a
4510 # side effect of compilation, but ICC will put the dependencies in
4511 # the current directory while Tru64 will put them in the object
4512 # directory.
4513 mkdir sub
c2b45e22 4514
81ecdfbb
RW
4515 am_cv_CC_dependencies_compiler_type=none
4516 if test "$am_compiler_list" = ""; then
4517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4518 fi
4519 am__universal=false
4520 case " $depcc " in #(
4521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4522 esac
c2b45e22 4523
81ecdfbb
RW
4524 for depmode in $am_compiler_list; do
4525 # Setup a source with many dependencies, because some compilers
4526 # like to wrap large dependency lists on column 80 (with \), and
4527 # we should not choose a depcomp mode which is confused by this.
4528 #
4529 # We need to recreate these files for each test, as the compiler may
4530 # overwrite some of them when testing with obscure command lines.
4531 # This happens at least with the AIX C compiler.
4532 : > sub/conftest.c
4533 for i in 1 2 3 4 5 6; do
4534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4536 # Solaris 8's {/usr,}/bin/sh.
4537 touch sub/conftst$i.h
4538 done
4539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
c2b45e22 4540
81ecdfbb
RW
4541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4542 # mode. It turns out that the SunPro C++ compiler does not properly
4543 # handle `-M -o', and we need to detect this. Also, some Intel
4544 # versions had trouble with output in subdirs
4545 am__obj=sub/conftest.${OBJEXT-o}
4546 am__minus_obj="-o $am__obj"
4547 case $depmode in
4548 gcc)
4549 # This depmode causes a compiler race in universal mode.
4550 test "$am__universal" = false || continue
4551 ;;
4552 nosideeffect)
4553 # after this tag, mechanisms are not by side-effect, so they'll
4554 # only be used when explicitly requested
4555 if test "x$enable_dependency_tracking" = xyes; then
4556 continue
4557 else
4558 break
4559 fi
4560 ;;
4561 msvisualcpp | msvcmsys)
4562 # This compiler won't grok `-c -o', but also, the minuso test has
4563 # not run yet. These depmodes are late enough in the game, and
4564 # so weak that their functioning should not be impacted.
4565 am__obj=conftest.${OBJEXT-o}
4566 am__minus_obj=
4567 ;;
4568 none) break ;;
4569 esac
4570 if depmode=$depmode \
4571 source=sub/conftest.c object=$am__obj \
4572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4574 >/dev/null 2>conftest.err &&
4575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4579 # icc doesn't choke on unknown options, it will just issue warnings
4580 # or remarks (even with -Werror). So we grep stderr for any message
4581 # that says an option was ignored or not supported.
4582 # When given -MP, icc 7.0 and 7.1 complain thusly:
4583 # icc: Command line warning: ignoring option '-M'; no argument required
4584 # The diagnosis changed in icc 8.0:
4585 # icc: Command line remark: option '-MP' not supported
4586 if (grep 'ignoring option' conftest.err ||
4587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4588 am_cv_CC_dependencies_compiler_type=$depmode
4589 break
4590 fi
4591 fi
4592 done
c2b45e22 4593
81ecdfbb
RW
4594 cd ..
4595 rm -rf conftest.dir
c2b45e22 4596else
81ecdfbb 4597 am_cv_CC_dependencies_compiler_type=none
c2b45e22 4598fi
c2b45e22 4599
81ecdfbb
RW
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4602$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4603CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
c2b45e22 4604
81ecdfbb
RW
4605 if
4606 test "x$enable_dependency_tracking" != xno \
4607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4608 am__fastdepCC_TRUE=
4609 am__fastdepCC_FALSE='#'
c2b45e22 4610else
81ecdfbb
RW
4611 am__fastdepCC_TRUE='#'
4612 am__fastdepCC_FALSE=
c2b45e22
CC
4613fi
4614
4615
81ecdfbb
RW
4616ac_ext=cpp
4617ac_cpp='$CXXCPP $CPPFLAGS'
4618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621if test -z "$CXX"; then
4622 if test -n "$CCC"; then
4623 CXX=$CCC
4624 else
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4627 do
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if test "${ac_cv_prog_CXX+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
2fd32231 4634else
81ecdfbb
RW
4635 if test -n "$CXX"; then
4636 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2fd32231 4637else
81ecdfbb
RW
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649done
4650 done
4651IFS=$as_save_IFS
2fd32231 4652
2fd32231 4653fi
2fd32231 4654fi
81ecdfbb
RW
4655CXX=$ac_cv_prog_CXX
4656if test -n "$CXX"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4658$as_echo "$CXX" >&6; }
2fd32231 4659else
81ecdfbb
RW
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661$as_echo "no" >&6; }
2fd32231
ILT
4662fi
4663
4664
81ecdfbb
RW
4665 test -n "$CXX" && break
4666 done
4667fi
4668if test -z "$CXX"; then
4669 ac_ct_CXX=$CXX
4670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4671do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673set dummy $ac_prog; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
1d1f116d 4678else
81ecdfbb
RW
4679 if test -n "$ac_ct_CXX"; then
4680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1d1f116d 4681else
81ecdfbb
RW
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CXX="$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694 done
4695IFS=$as_save_IFS
1d1f116d 4696
1d1f116d 4697fi
1d1f116d 4698fi
81ecdfbb
RW
4699ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4700if test -n "$ac_ct_CXX"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4702$as_echo "$ac_ct_CXX" >&6; }
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
1d1f116d
CD
4706fi
4707
4708
81ecdfbb
RW
4709 test -n "$ac_ct_CXX" && break
4710done
63402fe4 4711
81ecdfbb
RW
4712 if test "x$ac_ct_CXX" = x; then
4713 CXX="g++"
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
04bf7072 4720esac
81ecdfbb
RW
4721 CXX=$ac_ct_CXX
4722 fi
4723fi
04bf7072 4724
81ecdfbb 4725 fi
bae7f79e 4726fi
81ecdfbb
RW
4727# Provide some information about the compiler.
4728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4729set X $ac_compile
4730ac_compiler=$2
4731for ac_option in --version -v -V -qversion; do
4732 { { ac_try="$ac_compiler $ac_option >&5"
4733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
4737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738$as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4740 ac_status=$?
4741 if test -s conftest.err; then
4742 sed '10a\
4743... rest of stderr output deleted ...
4744 10q' conftest.err >conftest.er1
4745 cat conftest.er1 >&5
4746 rm -f conftest.er1 conftest.err
4747 fi
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }
4750done
bae7f79e 4751
81ecdfbb
RW
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4753$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756else
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763#ifndef __GNUC__
4764 choke me
4765#endif
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
4771if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_compiler_gnu=yes
4773else
4774 ac_compiler_gnu=no
bae7f79e 4775fi
81ecdfbb
RW
4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
bae7f79e 4778
bae7f79e 4779fi
81ecdfbb
RW
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4781$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4782if test $ac_compiler_gnu = yes; then
4783 GXX=yes
4784else
4785 GXX=
4786fi
4787ac_test_CXXFLAGS=${CXXFLAGS+set}
4788ac_save_CXXFLAGS=$CXXFLAGS
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4790$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4791if test "${ac_cv_prog_cxx_g+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793else
4794 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4795 ac_cxx_werror_flag=yes
4796 ac_cv_prog_cxx_g=no
4797 CXXFLAGS="-g"
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h. */
bae7f79e 4800
81ecdfbb
RW
4801int
4802main ()
4803{
bae7f79e 4804
81ecdfbb
RW
4805 ;
4806 return 0;
4807}
4808_ACEOF
4809if ac_fn_cxx_try_compile "$LINENO"; then :
4810 ac_cv_prog_cxx_g=yes
4811else
4812 CXXFLAGS=""
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h. */
bae7f79e 4815
81ecdfbb
RW
4816int
4817main ()
4818{
bae7f79e 4819
81ecdfbb
RW
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_cxx_try_compile "$LINENO"; then :
bae7f79e 4825
81ecdfbb
RW
4826else
4827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4828 CXXFLAGS="-g"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h. */
bae7f79e 4831
81ecdfbb
RW
4832int
4833main ()
4834{
bae7f79e 4835
81ecdfbb
RW
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840if ac_fn_cxx_try_compile "$LINENO"; then :
4841 ac_cv_prog_cxx_g=yes
4842fi
4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4851$as_echo "$ac_cv_prog_cxx_g" >&6; }
4852if test "$ac_test_CXXFLAGS" = set; then
4853 CXXFLAGS=$ac_save_CXXFLAGS
4854elif test $ac_cv_prog_cxx_g = yes; then
4855 if test "$GXX" = yes; then
4856 CXXFLAGS="-g -O2"
4857 else
4858 CXXFLAGS="-g"
4859 fi
4860else
4861 if test "$GXX" = yes; then
4862 CXXFLAGS="-O2"
4863 else
4864 CXXFLAGS=
4865 fi
4866fi
4867ac_ext=c
4868ac_cpp='$CPP $CPPFLAGS'
4869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871ac_compiler_gnu=$ac_cv_c_compiler_gnu
bae7f79e 4872
81ecdfbb 4873depcc="$CXX" am_compiler_list=
bae7f79e 4874
81ecdfbb
RW
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4876$as_echo_n "checking dependency style of $depcc... " >&6; }
4877if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879else
4880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4881 # We make a subdir and do the tests there. Otherwise we can end up
4882 # making bogus files that we don't know about and never remove. For
4883 # instance it was reported that on HP-UX the gcc test will end up
4884 # making a dummy file named `D' -- because `-MD' means `put the output
4885 # in D'.
4886 mkdir conftest.dir
4887 # Copy depcomp to subdir because otherwise we won't find it if we're
4888 # using a relative directory.
4889 cp "$am_depcomp" conftest.dir
4890 cd conftest.dir
4891 # We will build objects and dependencies in a subdirectory because
4892 # it helps to detect inapplicable dependency modes. For instance
4893 # both Tru64's cc and ICC support -MD to output dependencies as a
4894 # side effect of compilation, but ICC will put the dependencies in
4895 # the current directory while Tru64 will put them in the object
4896 # directory.
4897 mkdir sub
bae7f79e 4898
81ecdfbb
RW
4899 am_cv_CXX_dependencies_compiler_type=none
4900 if test "$am_compiler_list" = ""; then
4901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4902 fi
4903 am__universal=false
4904 case " $depcc " in #(
4905 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4906 esac
bae7f79e 4907
81ecdfbb
RW
4908 for depmode in $am_compiler_list; do
4909 # Setup a source with many dependencies, because some compilers
4910 # like to wrap large dependency lists on column 80 (with \), and
4911 # we should not choose a depcomp mode which is confused by this.
4912 #
4913 # We need to recreate these files for each test, as the compiler may
4914 # overwrite some of them when testing with obscure command lines.
4915 # This happens at least with the AIX C compiler.
4916 : > sub/conftest.c
4917 for i in 1 2 3 4 5 6; do
4918 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4920 # Solaris 8's {/usr,}/bin/sh.
4921 touch sub/conftst$i.h
4922 done
4923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
82dcae9d 4924
81ecdfbb
RW
4925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4926 # mode. It turns out that the SunPro C++ compiler does not properly
4927 # handle `-M -o', and we need to detect this. Also, some Intel
4928 # versions had trouble with output in subdirs
4929 am__obj=sub/conftest.${OBJEXT-o}
4930 am__minus_obj="-o $am__obj"
4931 case $depmode in
4932 gcc)
4933 # This depmode causes a compiler race in universal mode.
4934 test "$am__universal" = false || continue
4935 ;;
4936 nosideeffect)
4937 # after this tag, mechanisms are not by side-effect, so they'll
4938 # only be used when explicitly requested
4939 if test "x$enable_dependency_tracking" = xyes; then
4940 continue
4941 else
4942 break
4943 fi
4944 ;;
4945 msvisualcpp | msvcmsys)
4946 # This compiler won't grok `-c -o', but also, the minuso test has
4947 # not run yet. These depmodes are late enough in the game, and
4948 # so weak that their functioning should not be impacted.
4949 am__obj=conftest.${OBJEXT-o}
4950 am__minus_obj=
4951 ;;
4952 none) break ;;
4953 esac
4954 if depmode=$depmode \
4955 source=sub/conftest.c object=$am__obj \
4956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4957 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4958 >/dev/null 2>conftest.err &&
4959 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4960 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4961 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4962 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4963 # icc doesn't choke on unknown options, it will just issue warnings
4964 # or remarks (even with -Werror). So we grep stderr for any message
4965 # that says an option was ignored or not supported.
4966 # When given -MP, icc 7.0 and 7.1 complain thusly:
4967 # icc: Command line warning: ignoring option '-M'; no argument required
4968 # The diagnosis changed in icc 8.0:
4969 # icc: Command line remark: option '-MP' not supported
4970 if (grep 'ignoring option' conftest.err ||
4971 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4972 am_cv_CXX_dependencies_compiler_type=$depmode
4973 break
4974 fi
4975 fi
4976 done
9201d894 4977
81ecdfbb
RW
4978 cd ..
4979 rm -rf conftest.dir
4980else
4981 am_cv_CXX_dependencies_compiler_type=none
4982fi
9201d894 4983
81ecdfbb
RW
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4986$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4987CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9201d894 4988
81ecdfbb
RW
4989 if
4990 test "x$enable_dependency_tracking" != xno \
4991 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4992 am__fastdepCXX_TRUE=
4993 am__fastdepCXX_FALSE='#'
4994else
4995 am__fastdepCXX_TRUE='#'
4996 am__fastdepCXX_FALSE=
4997fi
9201d894 4998
9201d894 4999
81ecdfbb
RW
5000for ac_prog in 'bison -y' byacc
5001do
5002 # Extract the first word of "$ac_prog", so it can be a program name with args.
5003set dummy $ac_prog; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_YACC+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
9201d894 5008else
81ecdfbb
RW
5009 if test -n "$YACC"; then
5010 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_YACC="$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023done
5024 done
5025IFS=$as_save_IFS
9201d894 5026
9201d894 5027fi
9201d894 5028fi
81ecdfbb
RW
5029YACC=$ac_cv_prog_YACC
5030if test -n "$YACC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5032$as_echo "$YACC" >&6; }
5033else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
9201d894 5036fi
9201d894 5037
2f35ab9b 5038
81ecdfbb
RW
5039 test -n "$YACC" && break
5040done
5041test -n "$YACC" || YACC="yacc"
fd03461a 5042
81ecdfbb
RW
5043if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047$as_echo_n "checking for $ac_word... " >&6; }
5048if test "${ac_cv_prog_RANLIB+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 if test -n "$RANLIB"; then
5052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
82dcae9d 5056do
81ecdfbb
RW
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066 done
5067IFS=$as_save_IFS
82dcae9d 5068
81ecdfbb
RW
5069fi
5070fi
5071RANLIB=$ac_cv_prog_RANLIB
5072if test -n "$RANLIB"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5074$as_echo "$RANLIB" >&6; }
5075else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078fi
82dcae9d 5079
82dcae9d 5080
81ecdfbb
RW
5081fi
5082if test -z "$ac_cv_prog_RANLIB"; then
5083 ac_ct_RANLIB=$RANLIB
5084 # Extract the first word of "ranlib", so it can be a program name with args.
5085set dummy ranlib; ac_word=$2
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
82dcae9d 5090else
81ecdfbb
RW
5091 if test -n "$ac_ct_RANLIB"; then
5092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_ac_ct_RANLIB="ranlib"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106 done
5107IFS=$as_save_IFS
82dcae9d 5108
82dcae9d 5109fi
82dcae9d 5110fi
81ecdfbb
RW
5111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5112if test -n "$ac_ct_RANLIB"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5114$as_echo "$ac_ct_RANLIB" >&6; }
82dcae9d 5115else
81ecdfbb
RW
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120 if test "x$ac_ct_RANLIB" = x; then
5121 RANLIB=":"
5122 else
5123 case $cross_compiling:$ac_tool_warned in
5124yes:)
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127ac_tool_warned=yes ;;
82dcae9d 5128esac
81ecdfbb
RW
5129 RANLIB=$ac_ct_RANLIB
5130 fi
5131else
5132 RANLIB="$ac_cv_prog_RANLIB"
5133fi
82dcae9d 5134
81ecdfbb
RW
5135
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5137$as_echo_n "checking whether ln -s works... " >&6; }
5138LN_S=$as_ln_s
5139if test "$LN_S" = "ln -s"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5141$as_echo "yes" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5144$as_echo "no, using $LN_S" >&6; }
82dcae9d 5145fi
82dcae9d
ILT
5146
5147
5148
9a0910c3
ILT
5149ac_ext=c
5150ac_cpp='$CPP $CPPFLAGS'
5151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5155$as_echo_n "checking how to run the C preprocessor... " >&6; }
9a0910c3
ILT
5156# On Suns, sometimes $CPP names a directory.
5157if test -n "$CPP" && test -d "$CPP"; then
5158 CPP=
5159fi
5160if test -z "$CPP"; then
81ecdfbb
RW
5161 if test "${ac_cv_prog_CPP+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
9a0910c3
ILT
5163else
5164 # Double quotes because CPP needs to be expanded
5165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5166 do
5167 ac_preproc_ok=false
5168for ac_c_preproc_warn_flag in '' yes
5169do
5170 # Use a header file that comes with gcc, so configuring glibc
5171 # with a fresh cross-compiler works.
5172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 # <limits.h> exists even on freestanding compilers.
5174 # On the NeXT, cc -E runs the code through the compiler's parser,
5175 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5177/* end confdefs.h. */
5178#ifdef __STDC__
5179# include <limits.h>
5180#else
5181# include <assert.h>
5182#endif
5183 Syntax error
5184_ACEOF
81ecdfbb 5185if ac_fn_c_try_cpp "$LINENO"; then :
9a0910c3 5186
81ecdfbb 5187else
9a0910c3
ILT
5188 # Broken: fails on valid input.
5189continue
5190fi
5191rm -f conftest.err conftest.$ac_ext
5192
81ecdfbb 5193 # OK, works on sane cases. Now check whether nonexistent headers
9a0910c3 5194 # can be detected and how.
81ecdfbb 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5196/* end confdefs.h. */
5197#include <ac_nonexistent.h>
5198_ACEOF
81ecdfbb 5199if ac_fn_c_try_cpp "$LINENO"; then :
9a0910c3
ILT
5200 # Broken: success on invalid input.
5201continue
5202else
9a0910c3
ILT
5203 # Passes both tests.
5204ac_preproc_ok=:
5205break
5206fi
5207rm -f conftest.err conftest.$ac_ext
5208
5209done
5210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211rm -f conftest.err conftest.$ac_ext
81ecdfbb 5212if $ac_preproc_ok; then :
9a0910c3
ILT
5213 break
5214fi
5215
5216 done
5217 ac_cv_prog_CPP=$CPP
5218
5219fi
5220 CPP=$ac_cv_prog_CPP
5221else
5222 ac_cv_prog_CPP=$CPP
5223fi
81ecdfbb
RW
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5225$as_echo "$CPP" >&6; }
9a0910c3
ILT
5226ac_preproc_ok=false
5227for ac_c_preproc_warn_flag in '' yes
5228do
5229 # Use a header file that comes with gcc, so configuring glibc
5230 # with a fresh cross-compiler works.
5231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5232 # <limits.h> exists even on freestanding compilers.
5233 # On the NeXT, cc -E runs the code through the compiler's parser,
5234 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5236/* end confdefs.h. */
5237#ifdef __STDC__
5238# include <limits.h>
5239#else
5240# include <assert.h>
5241#endif
5242 Syntax error
5243_ACEOF
81ecdfbb 5244if ac_fn_c_try_cpp "$LINENO"; then :
9a0910c3 5245
81ecdfbb 5246else
9a0910c3
ILT
5247 # Broken: fails on valid input.
5248continue
5249fi
5250rm -f conftest.err conftest.$ac_ext
5251
81ecdfbb 5252 # OK, works on sane cases. Now check whether nonexistent headers
9a0910c3 5253 # can be detected and how.
81ecdfbb 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5255/* end confdefs.h. */
5256#include <ac_nonexistent.h>
5257_ACEOF
81ecdfbb 5258if ac_fn_c_try_cpp "$LINENO"; then :
9a0910c3
ILT
5259 # Broken: success on invalid input.
5260continue
5261else
9a0910c3
ILT
5262 # Passes both tests.
5263ac_preproc_ok=:
5264break
5265fi
5266rm -f conftest.err conftest.$ac_ext
5267
5268done
5269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5271if $ac_preproc_ok; then :
5272
9a0910c3 5273else
81ecdfbb
RW
5274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5276as_fn_error "C preprocessor \"$CPP\" fails sanity check
5277See \`config.log' for more details." "$LINENO" 5; }
9a0910c3
ILT
5278fi
5279
5280ac_ext=c
5281ac_cpp='$CPP $CPPFLAGS'
5282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285
5286
81ecdfbb
RW
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5289if test "${ac_cv_path_GREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291else
5292 if test -z "$GREP"; then
5293 ac_path_GREP_found=false
5294 # Loop through the user's path and test for each of PROGNAME-LIST
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_prog in grep ggrep; do
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5304# Check for GNU ac_path_GREP and select it if it is found.
5305 # Check for GNU $ac_path_GREP
5306case `"$ac_path_GREP" --version 2>&1` in
5307*GNU*)
5308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5309*)
5310 ac_count=0
5311 $as_echo_n 0123456789 >"conftest.in"
5312 while :
5313 do
5314 cat "conftest.in" "conftest.in" >"conftest.tmp"
5315 mv "conftest.tmp" "conftest.in"
5316 cp "conftest.in" "conftest.nl"
5317 $as_echo 'GREP' >> "conftest.nl"
5318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320 as_fn_arith $ac_count + 1 && ac_count=$as_val
5321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5322 # Best one so far, save it but keep looking for a better one
5323 ac_cv_path_GREP="$ac_path_GREP"
5324 ac_path_GREP_max=$ac_count
5325 fi
5326 # 10*(2^10) chars as input seems more than enough
5327 test $ac_count -gt 10 && break
5328 done
5329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330esac
5331
5332 $ac_path_GREP_found && break 3
5333 done
5334 done
5335 done
5336IFS=$as_save_IFS
5337 if test -z "$ac_cv_path_GREP"; then
5338 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5339 fi
5340else
5341 ac_cv_path_GREP=$GREP
5342fi
5343
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5346$as_echo "$ac_cv_path_GREP" >&6; }
5347 GREP="$ac_cv_path_GREP"
5348
5349
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5351$as_echo_n "checking for egrep... " >&6; }
5352if test "${ac_cv_path_EGREP+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
9a0910c3 5354else
81ecdfbb
RW
5355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5356 then ac_cv_path_EGREP="$GREP -E"
5357 else
5358 if test -z "$EGREP"; then
5359 ac_path_EGREP_found=false
5360 # Loop through the user's path and test for each of PROGNAME-LIST
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_prog in egrep; do
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5369 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5370# Check for GNU ac_path_EGREP and select it if it is found.
5371 # Check for GNU $ac_path_EGREP
5372case `"$ac_path_EGREP" --version 2>&1` in
5373*GNU*)
5374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5375*)
5376 ac_count=0
5377 $as_echo_n 0123456789 >"conftest.in"
5378 while :
5379 do
5380 cat "conftest.in" "conftest.in" >"conftest.tmp"
5381 mv "conftest.tmp" "conftest.in"
5382 cp "conftest.in" "conftest.nl"
5383 $as_echo 'EGREP' >> "conftest.nl"
5384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5386 as_fn_arith $ac_count + 1 && ac_count=$as_val
5387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5388 # Best one so far, save it but keep looking for a better one
5389 ac_cv_path_EGREP="$ac_path_EGREP"
5390 ac_path_EGREP_max=$ac_count
9a0910c3 5391 fi
81ecdfbb
RW
5392 # 10*(2^10) chars as input seems more than enough
5393 test $ac_count -gt 10 && break
5394 done
5395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5396esac
5397
5398 $ac_path_EGREP_found && break 3
5399 done
5400 done
5401 done
5402IFS=$as_save_IFS
5403 if test -z "$ac_cv_path_EGREP"; then
5404 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5405 fi
5406else
5407 ac_cv_path_EGREP=$EGREP
5408fi
5409
5410 fi
9a0910c3 5411fi
81ecdfbb
RW
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5413$as_echo "$ac_cv_path_EGREP" >&6; }
5414 EGREP="$ac_cv_path_EGREP"
9a0910c3
ILT
5415
5416
81ecdfbb
RW
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5418$as_echo_n "checking for ANSI C header files... " >&6; }
5419if test "${ac_cv_header_stdc+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
9a0910c3 5421else
81ecdfbb 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5423/* end confdefs.h. */
5424#include <stdlib.h>
5425#include <stdarg.h>
5426#include <string.h>
5427#include <float.h>
5428
5429int
5430main ()
5431{
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
81ecdfbb 5437if ac_fn_c_try_compile "$LINENO"; then :
9a0910c3
ILT
5438 ac_cv_header_stdc=yes
5439else
81ecdfbb 5440 ac_cv_header_stdc=no
9a0910c3 5441fi
81ecdfbb 5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9a0910c3
ILT
5443
5444if test $ac_cv_header_stdc = yes; then
5445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5447/* end confdefs.h. */
5448#include <string.h>
5449
5450_ACEOF
5451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5452 $EGREP "memchr" >/dev/null 2>&1; then :
5453
9a0910c3
ILT
5454else
5455 ac_cv_header_stdc=no
5456fi
5457rm -f conftest*
5458
5459fi
5460
5461if test $ac_cv_header_stdc = yes; then
5462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5464/* end confdefs.h. */
5465#include <stdlib.h>
5466
5467_ACEOF
5468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5469 $EGREP "free" >/dev/null 2>&1; then :
5470
9a0910c3
ILT
5471else
5472 ac_cv_header_stdc=no
5473fi
5474rm -f conftest*
5475
5476fi
5477
5478if test $ac_cv_header_stdc = yes; then
5479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5480 if test "$cross_compiling" = yes; then :
9a0910c3
ILT
5481 :
5482else
81ecdfbb 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5484/* end confdefs.h. */
5485#include <ctype.h>
81ecdfbb 5486#include <stdlib.h>
9a0910c3
ILT
5487#if ((' ' & 0x0FF) == 0x020)
5488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5490#else
5491# define ISLOWER(c) \
5492 (('a' <= (c) && (c) <= 'i') \
5493 || ('j' <= (c) && (c) <= 'r') \
5494 || ('s' <= (c) && (c) <= 'z'))
5495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5496#endif
5497
5498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5499int
5500main ()
5501{
5502 int i;
5503 for (i = 0; i < 256; i++)
5504 if (XOR (islower (i), ISLOWER (i))
5505 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5506 return 2;
5507 return 0;
9a0910c3
ILT
5508}
5509_ACEOF
81ecdfbb 5510if ac_fn_c_try_run "$LINENO"; then :
9a0910c3 5511
81ecdfbb
RW
5512else
5513 ac_cv_header_stdc=no
9a0910c3 5514fi
81ecdfbb
RW
5515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5516 conftest.$ac_objext conftest.beam conftest.$ac_ext
9a0910c3 5517fi
81ecdfbb 5518
9a0910c3
ILT
5519fi
5520fi
81ecdfbb
RW
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5522$as_echo "$ac_cv_header_stdc" >&6; }
9a0910c3
ILT
5523if test $ac_cv_header_stdc = yes; then
5524
81ecdfbb 5525$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9a0910c3
ILT
5526
5527fi
5528
5529# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
5530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5531 inttypes.h stdint.h unistd.h
5532do :
5533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5535"
5536eval as_val=\$$as_ac_Header
5537 if test "x$as_val" = x""yes; then :
5538 cat >>confdefs.h <<_ACEOF
5539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5540_ACEOF
9a0910c3 5541
81ecdfbb 5542fi
9a0910c3 5543
81ecdfbb 5544done
9a0910c3
ILT
5545
5546
5547
81ecdfbb
RW
5548 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5549if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5550 MINIX=yes
5551else
5552 MINIX=
5553fi
9a0910c3
ILT
5554
5555
81ecdfbb 5556 if test "$MINIX" = yes; then
9a0910c3 5557
81ecdfbb 5558$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
9a0910c3 5559
9a0910c3 5560
81ecdfbb 5561$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
9a0910c3 5562
9a0910c3 5563
81ecdfbb 5564$as_echo "#define _MINIX 1" >>confdefs.h
9a0910c3 5565
81ecdfbb 5566 fi
9a0910c3
ILT
5567
5568
81ecdfbb
RW
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5570$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5571if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
9a0910c3 5573else
81ecdfbb 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9a0910c3
ILT
5575/* end confdefs.h. */
5576
81ecdfbb
RW
5577# define __EXTENSIONS__ 1
5578 $ac_includes_default
9a0910c3
ILT
5579int
5580main ()
5581{
81ecdfbb 5582
9a0910c3
ILT
5583 ;
5584 return 0;
5585}
5586_ACEOF
81ecdfbb
RW
5587if ac_fn_c_try_compile "$LINENO"; then :
5588 ac_cv_safe_to_define___extensions__=yes
9a0910c3 5589else
81ecdfbb 5590 ac_cv_safe_to_define___extensions__=no
9a0910c3 5591fi
81ecdfbb
RW
5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5595$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5596 test $ac_cv_safe_to_define___extensions__ = yes &&
5597 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
9a0910c3 5598
81ecdfbb
RW
5599 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5600
5601 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
9a0910c3 5602
81ecdfbb
RW
5603 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5604
5605 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5606
5607
5608
5609
5610# If we haven't got the data from the intl directory,
5611# assume NLS is disabled.
5612USE_NLS=no
5613LIBINTL=
5614LIBINTL_DEP=
5615INCINTL=
5616XGETTEXT=
5617GMSGFMT=
5618POSUB=
5619
5620if test -f ../intl/config.intl; then
5621 . ../intl/config.intl
9a0910c3 5622fi
81ecdfbb
RW
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5624$as_echo_n "checking whether NLS is requested... " >&6; }
5625if test x"$USE_NLS" != xyes; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630$as_echo "yes" >&6; }
5631
5632$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5636$as_echo_n "checking for catalogs to be installed... " >&6; }
5637 # Look for .po and .gmo files in the source directory.
5638 CATALOGS=
5639 XLINGUAS=
5640 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5641 # If there aren't any .gmo files the shell will give us the
5642 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5643 # weeded out.
5644 case "$cat" in *\**)
5645 continue;;
5646 esac
5647 # The quadruple backslash is collapsed to a double backslash
5648 # by the backticks, then collapsed again by the double quotes,
5649 # leaving us with one backslash in the sed expression (right
5650 # before the dot that mustn't act as a wildcard).
5651 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5652 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5653 # The user is allowed to set LINGUAS to a list of languages to
5654 # install catalogs for. If it's empty that means "all of them."
5655 if test "x$LINGUAS" = x; then
5656 CATALOGS="$CATALOGS $cat"
5657 XLINGUAS="$XLINGUAS $lang"
5658 else
5659 case "$LINGUAS" in *$lang*)
5660 CATALOGS="$CATALOGS $cat"
5661 XLINGUAS="$XLINGUAS $lang"
5662 ;;
5663 esac
5664 fi
9a0910c3 5665 done
81ecdfbb
RW
5666 LINGUAS="$XLINGUAS"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5668$as_echo "$LINGUAS" >&6; }
5669
5670
5671 DATADIRNAME=share
5672
5673 INSTOBJEXT=.mo
5674
5675 GENCAT=gencat
5676
5677 CATOBJEXT=.gmo
9a0910c3 5678
9a0910c3 5679fi
9a0910c3 5680
81ecdfbb
RW
5681 MKINSTALLDIRS=
5682 if test -n "$ac_aux_dir"; then
5683 case "$ac_aux_dir" in
5684 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5685 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5686 esac
5687 fi
5688 if test -z "$MKINSTALLDIRS"; then
5689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5690 fi
5691
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5695$as_echo_n "checking whether NLS is requested... " >&6; }
5696 # Check whether --enable-nls was given.
5697if test "${enable_nls+set}" = set; then :
5698 enableval=$enable_nls; USE_NLS=$enableval
5699else
5700 USE_NLS=yes
9a0910c3 5701fi
9a0910c3 5702
81ecdfbb
RW
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5704$as_echo "$USE_NLS" >&6; }
5705
5706
5707
5708
5709
5710
5711# Prepare PATH_SEPARATOR.
5712# The user is always right.
5713if test "${PATH_SEPARATOR+set}" != set; then
5714 echo "#! /bin/sh" >conf$$.sh
5715 echo "exit 0" >>conf$$.sh
5716 chmod +x conf$$.sh
5717 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5718 PATH_SEPARATOR=';'
9a0910c3 5719 else
81ecdfbb 5720 PATH_SEPARATOR=:
9a0910c3 5721 fi
81ecdfbb 5722 rm -f conf$$.sh
9a0910c3 5723fi
81ecdfbb
RW
5724
5725# Find out how to test for executable files. Don't use a zero-byte file,
5726# as systems may use methods other than mode bits to determine executability.
5727cat >conf$$.file <<_ASEOF
5728#! /bin/sh
5729exit 0
5730_ASEOF
5731chmod +x conf$$.file
5732if test -x conf$$.file >/dev/null 2>&1; then
5733 ac_executable_p="test -x"
9a0910c3 5734else
81ecdfbb
RW
5735 ac_executable_p="test -f"
5736fi
5737rm -f conf$$.file
9a0910c3 5738
81ecdfbb
RW
5739# Extract the first word of "msgfmt", so it can be a program name with args.
5740set dummy msgfmt; ac_word=$2
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742$as_echo_n "checking for $ac_word... " >&6; }
5743if test "${ac_cv_path_MSGFMT+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745else
5746 case "$MSGFMT" in
5747 [\\/]* | ?:[\\/]*)
5748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5749 ;;
5750 *)
5751 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5752 for ac_dir in $PATH; do
5753 IFS="$ac_save_IFS"
5754 test -z "$ac_dir" && ac_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5757 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5758 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5759 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5760 break 2
5761 fi
5762 fi
5763 done
5764 done
5765 IFS="$ac_save_IFS"
5766 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5767 ;;
5768esac
9a0910c3 5769fi
81ecdfbb
RW
5770MSGFMT="$ac_cv_path_MSGFMT"
5771if test "$MSGFMT" != ":"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5773$as_echo "$MSGFMT" >&6; }
5774else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5780set dummy gmsgfmt; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
5783if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785else
5786 case $GMSGFMT in
5787 [\\/]* | ?:[\\/]*)
5788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5789 ;;
5790 *)
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803 done
5804IFS=$as_save_IFS
9a0910c3 5805
81ecdfbb
RW
5806 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5807 ;;
9a0910c3 5808esac
81ecdfbb
RW
5809fi
5810GMSGFMT=$ac_cv_path_GMSGFMT
5811if test -n "$GMSGFMT"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5813$as_echo "$GMSGFMT" >&6; }
9a0910c3 5814else
81ecdfbb
RW
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }
9a0910c3 5817fi
9a0910c3 5818
9a0910c3 5819
9a0910c3 5820
9a0910c3 5821
81ecdfbb
RW
5822# Prepare PATH_SEPARATOR.
5823# The user is always right.
5824if test "${PATH_SEPARATOR+set}" != set; then
5825 echo "#! /bin/sh" >conf$$.sh
5826 echo "exit 0" >>conf$$.sh
5827 chmod +x conf$$.sh
5828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5829 PATH_SEPARATOR=';'
5830 else
5831 PATH_SEPARATOR=:
5832 fi
5833 rm -f conf$$.sh
9a0910c3
ILT
5834fi
5835
81ecdfbb
RW
5836# Find out how to test for executable files. Don't use a zero-byte file,
5837# as systems may use methods other than mode bits to determine executability.
5838cat >conf$$.file <<_ASEOF
5839#! /bin/sh
5840exit 0
5841_ASEOF
5842chmod +x conf$$.file
5843if test -x conf$$.file >/dev/null 2>&1; then
5844 ac_executable_p="test -x"
7fcd0256 5845else
81ecdfbb 5846 ac_executable_p="test -f"
7fcd0256 5847fi
81ecdfbb 5848rm -f conf$$.file
7fcd0256 5849
81ecdfbb
RW
5850# Extract the first word of "xgettext", so it can be a program name with args.
5851set dummy xgettext; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
54dc6425 5856else
81ecdfbb
RW
5857 case "$XGETTEXT" in
5858 [\\/]* | ?:[\\/]*)
5859 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5860 ;;
5861 *)
5862 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5864 IFS="$ac_save_IFS"
5865 test -z "$ac_dir" && ac_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5868 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5869 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5870 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5871 break 2
5872 fi
5873 fi
5874 done
5875 done
5876 IFS="$ac_save_IFS"
5877 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5878 ;;
5879esac
54dc6425 5880fi
81ecdfbb
RW
5881XGETTEXT="$ac_cv_path_XGETTEXT"
5882if test "$XGETTEXT" != ":"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5884$as_echo "$XGETTEXT" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
0639a6f6 5888fi
0639a6f6 5889
81ecdfbb 5890 rm -f messages.po
0639a6f6
ILT
5891
5892
81ecdfbb
RW
5893# Prepare PATH_SEPARATOR.
5894# The user is always right.
5895if test "${PATH_SEPARATOR+set}" != set; then
5896 echo "#! /bin/sh" >conf$$.sh
5897 echo "exit 0" >>conf$$.sh
5898 chmod +x conf$$.sh
5899 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5900 PATH_SEPARATOR=';'
5901 else
5902 PATH_SEPARATOR=:
5903 fi
5904 rm -f conf$$.sh
0639a6f6 5905fi
0639a6f6 5906
81ecdfbb
RW
5907# Find out how to test for executable files. Don't use a zero-byte file,
5908# as systems may use methods other than mode bits to determine executability.
5909cat >conf$$.file <<_ASEOF
5910#! /bin/sh
5911exit 0
5912_ASEOF
5913chmod +x conf$$.file
5914if test -x conf$$.file >/dev/null 2>&1; then
5915 ac_executable_p="test -x"
54dc6425 5916else
81ecdfbb 5917 ac_executable_p="test -f"
54dc6425 5918fi
81ecdfbb 5919rm -f conf$$.file
54dc6425 5920
81ecdfbb
RW
5921# Extract the first word of "msgmerge", so it can be a program name with args.
5922set dummy msgmerge; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
54dc6425 5927else
81ecdfbb
RW
5928 case "$MSGMERGE" in
5929 [\\/]* | ?:[\\/]*)
5930 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5931 ;;
5932 *)
5933 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5934 for ac_dir in $PATH; do
5935 IFS="$ac_save_IFS"
5936 test -z "$ac_dir" && ac_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5939 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5940 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5941 break 2
5942 fi
5943 fi
5944 done
5945 done
5946 IFS="$ac_save_IFS"
5947 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5948 ;;
5949esac
54dc6425 5950fi
81ecdfbb
RW
5951MSGMERGE="$ac_cv_path_MSGMERGE"
5952if test "$MSGMERGE" != ":"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5954$as_echo "$MSGMERGE" >&6; }
0639a6f6 5955else
81ecdfbb
RW
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
0639a6f6 5959
54dc6425 5960
81ecdfbb
RW
5961 if test "$GMSGFMT" != ":"; then
5962 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5963 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5964 : ;
5965 else
5966 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5968$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5969 GMSGFMT=":"
5970 fi
5971 fi
54dc6425 5972
81ecdfbb
RW
5973 if test "$XGETTEXT" != ":"; then
5974 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5975 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5976 : ;
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5979$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5980 XGETTEXT=":"
5981 fi
5982 rm -f messages.po
5983 fi
54dc6425 5984
81ecdfbb 5985 ac_config_commands="$ac_config_commands default-1"
54dc6425 5986
54dc6425
ILT
5987
5988
81ecdfbb
RW
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5990$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5991if test "${ac_cv_c_bigendian+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
54dc6425 5993else
81ecdfbb
RW
5994 ac_cv_c_bigendian=unknown
5995 # See if we're dealing with a universal compiler.
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425 5997/* end confdefs.h. */
81ecdfbb
RW
5998#ifndef __APPLE_CC__
5999 not a universal capable compiler
6000 #endif
6001 typedef int dummy;
6002
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005
6006 # Check for potential -arch flags. It is not universal unless
6007 # there are at least two -arch flags with different values.
6008 ac_arch=
6009 ac_prev=
6010 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6011 if test -n "$ac_prev"; then
6012 case $ac_word in
6013 i?86 | x86_64 | ppc | ppc64)
6014 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6015 ac_arch=$ac_word
6016 else
6017 ac_cv_c_bigendian=universal
6018 break
6019 fi
6020 ;;
6021 esac
6022 ac_prev=
6023 elif test "x$ac_word" = "x-arch"; then
6024 ac_prev=arch
6025 fi
6026 done
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 if test $ac_cv_c_bigendian = unknown; then
6030 # See if sys/param.h defines the BYTE_ORDER macro.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h. */
6033#include <sys/types.h>
6034 #include <sys/param.h>
6035
0639a6f6
ILT
6036int
6037main ()
6038{
81ecdfbb
RW
6039#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6040 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6041 && LITTLE_ENDIAN)
6042 bogus endian macros
6043 #endif
54dc6425 6044
81ecdfbb
RW
6045 ;
6046 return 0;
6047}
15d5fa16 6048_ACEOF
81ecdfbb
RW
6049if ac_fn_c_try_compile "$LINENO"; then :
6050 # It does; now see whether it defined to BIG_ENDIAN or not.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 6052/* end confdefs.h. */
81ecdfbb
RW
6053#include <sys/types.h>
6054 #include <sys/param.h>
6055
0639a6f6
ILT
6056int
6057main ()
6058{
81ecdfbb
RW
6059#if BYTE_ORDER != BIG_ENDIAN
6060 not big endian
6061 #endif
0639a6f6
ILT
6062
6063 ;
6064 return 0;
6065}
15d5fa16 6066_ACEOF
81ecdfbb
RW
6067if ac_fn_c_try_compile "$LINENO"; then :
6068 ac_cv_c_bigendian=yes
15d5fa16 6069else
81ecdfbb 6070 ac_cv_c_bigendian=no
15d5fa16 6071fi
81ecdfbb 6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0639a6f6 6073fi
81ecdfbb
RW
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 fi
6076 if test $ac_cv_c_bigendian = unknown; then
6077 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080#include <limits.h>
0639a6f6 6081
81ecdfbb
RW
6082int
6083main ()
6084{
6085#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6086 bogus endian macros
6087 #endif
0639a6f6 6088
81ecdfbb
RW
6089 ;
6090 return 0;
6091}
15d5fa16 6092_ACEOF
81ecdfbb
RW
6093if ac_fn_c_try_compile "$LINENO"; then :
6094 # It does; now see whether it defined to _BIG_ENDIAN or not.
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15d5fa16 6096/* end confdefs.h. */
81ecdfbb
RW
6097#include <limits.h>
6098
0639a6f6
ILT
6099int
6100main ()
6101{
81ecdfbb
RW
6102#ifndef _BIG_ENDIAN
6103 not big endian
6104 #endif
0639a6f6
ILT
6105
6106 ;
6107 return 0;
6108}
15d5fa16 6109_ACEOF
81ecdfbb
RW
6110if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_c_bigendian=yes
15d5fa16 6112else
81ecdfbb 6113 ac_cv_c_bigendian=no
15d5fa16 6114fi
81ecdfbb 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15d5fa16 6116fi
81ecdfbb
RW
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 if test $ac_cv_c_bigendian = unknown; then
6120 # Compile a test program.
6121 if test "$cross_compiling" = yes; then :
6122 # Try to guess by grepping values from an object file.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h. */
6125short int ascii_mm[] =
6126 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6127 short int ascii_ii[] =
6128 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6129 int use_ascii (int i) {
6130 return ascii_mm[i] + ascii_ii[i];
6131 }
6132 short int ebcdic_ii[] =
6133 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6134 short int ebcdic_mm[] =
6135 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6136 int use_ebcdic (int i) {
6137 return ebcdic_mm[i] + ebcdic_ii[i];
6138 }
6139 extern int foo;
15d5fa16 6140
81ecdfbb
RW
6141int
6142main ()
6143{
6144return use_ascii (foo) == use_ebcdic (foo);
6145 ;
6146 return 0;
6147}
0639a6f6 6148_ACEOF
81ecdfbb
RW
6149if ac_fn_c_try_compile "$LINENO"; then :
6150 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6151 ac_cv_c_bigendian=yes
6152 fi
6153 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6154 if test "$ac_cv_c_bigendian" = unknown; then
6155 ac_cv_c_bigendian=no
6156 else
6157 # finding both strings is unlikely to happen, but who knows?
6158 ac_cv_c_bigendian=unknown
6159 fi
6160 fi
54dc6425 6161fi
81ecdfbb 6162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54dc6425 6163else
81ecdfbb 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54dc6425
ILT
6165/* end confdefs.h. */
6166$ac_includes_default
0639a6f6
ILT
6167int
6168main ()
6169{
81ecdfbb
RW
6170
6171 /* Are we little or big endian? From Harbison&Steele. */
6172 union
6173 {
6174 long int l;
6175 char c[sizeof (long int)];
6176 } u;
6177 u.l = 1;
6178 return u.c[sizeof (long int) - 1] == 1;
0639a6f6
ILT
6179
6180 ;
6181 return 0;
6182}
54dc6425 6183_ACEOF
81ecdfbb
RW
6184if ac_fn_c_try_run "$LINENO"; then :
6185 ac_cv_c_bigendian=no
54dc6425 6186else
81ecdfbb 6187 ac_cv_c_bigendian=yes
54dc6425 6188fi
81ecdfbb
RW
6189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6190 conftest.$ac_objext conftest.beam conftest.$ac_ext
0639a6f6 6191fi
54dc6425 6192
81ecdfbb
RW
6193 fi
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6196$as_echo "$ac_cv_c_bigendian" >&6; }
6197 case $ac_cv_c_bigendian in #(
6198 yes)
6199 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6200;; #(
6201 no)
6202 ;; #(
6203 universal)
6204
6205$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6206
6207 ;; #(
6208 *)
6209 as_fn_error "unknown endianness
6210 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6211 esac
0639a6f6
ILT
6212
6213
0639a6f6
ILT
6214
6215
81ecdfbb
RW
6216 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
6217 NATIVE_LINKER_TRUE=
6218 NATIVE_LINKER_FALSE='#'
6219else
6220 NATIVE_LINKER_TRUE='#'
6221 NATIVE_LINKER_FALSE=
0639a6f6
ILT
6222fi
6223
81ecdfbb
RW
6224 if test "$GCC" = yes; then
6225 GCC_TRUE=
6226 GCC_FALSE='#'
6227else
6228 GCC_TRUE='#'
6229 GCC_FALSE=
6230fi
0639a6f6
ILT
6231
6232
eb373049
ILT
6233 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
6234 NATIVE_OR_CROSS_LINKER_TRUE=
6235 NATIVE_OR_CROSS_LINKER_FALSE='#'
6236else
6237 NATIVE_OR_CROSS_LINKER_TRUE='#'
6238 NATIVE_OR_CROSS_LINKER_FALSE=
6239fi
6240
6241
328c7c2f
ILT
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
6243$as_echo_n "checking whether static linking works... " >&6; }
6244if test "${gold_cv_lib_static+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246else
6247 LDFLAGS_hold=$LDFLAGS
6248LDFLAGS="$LDFLAGS -static"
6249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h. */
6251
6252void f() { }
6253int
6254main ()
6255{
6256
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_link "$LINENO"; then :
6262 gold_cv_lib_static=yes
6263else
6264 gold_cv_lib_static=no
6265fi
6266rm -f core conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
dd7af074 6268LDFLAGS=$LDFLAGS_hold
328c7c2f
ILT
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
6271$as_echo "$gold_cv_lib_static" >&6; }
6272 if test "$gold_cv_lib_static" = "yes"; then
6273 HAVE_STATIC_TRUE=
6274 HAVE_STATIC_FALSE='#'
6275else
6276 HAVE_STATIC_TRUE='#'
6277 HAVE_STATIC_FALSE=
6278fi
6279
6280
81ecdfbb
RW
6281 if
6282 case $target_cpu in
864a1b56 6283 powerpc*) false;;
81ecdfbb
RW
6284 x86_64) false;;
6285 sparc64) false;;
6286 *) true;;
6287 esac; then
6288 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
6289 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
6290else
6291 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
6292 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
6293fi
0639a6f6
ILT
6294
6295
084e2665
ILT
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
6297$as_echo_n "checking for gcc >= 4.1... " >&6; }
6298if test "${gold_cv_prog_gcc41+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h. */
6303
6304#if !defined __GNUC__
6305error
6306#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
6307error
6308#endif
6309
6310_ACEOF
6311if ac_fn_c_try_compile "$LINENO"; then :
6312 gold_cv_prog_gcc41=yes
6313else
6314 gold_cv_prog_gcc41=no
6315fi
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
6319$as_echo "$gold_cv_prog_gcc41" >&6; }
6320
24482ca0
L
6321save_CFLAGS="$CFLAGS"
6322CFLAGS="$CFLAGS -mcmodel=medium"
6323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h. */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"; then :
6328 have_mcmodel_medium=yes
6329else
6330 have_mcmodel_medium=no
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333CFLAGS="$save_CFLAGS"
6334 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
81ecdfbb
RW
6335 MCMODEL_MEDIUM_TRUE=
6336 MCMODEL_MEDIUM_FALSE='#'
54dc6425 6337else
81ecdfbb
RW
6338 MCMODEL_MEDIUM_TRUE='#'
6339 MCMODEL_MEDIUM_FALSE=
54dc6425 6340fi
54dc6425 6341
54dc6425 6342
2b64b551
RM
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
6344$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
6345if test "${gold_cv_merge_constants+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348
6349save_CFLAGS="$CFLAGS"
6350CFLAGS="$CFLAGS -fmerge-constants"
6351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h. */
6353const char *s = "foo";
6354_ACEOF
6355if ac_fn_c_try_compile "$LINENO"; then :
2500c017 6356 gold_cv_merge_constants=yes
2b64b551 6357else
2500c017 6358 gold_cv_merge_constants=no
2b64b551
RM
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361CFLAGS="$save_CFLAGS"
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
6364$as_echo "$gold_cv_merge_constants" >&6; }
6365
6366if test "$gold_cv_merge_constants" = yes; then :
6367 MERGE_CONSTANTS_FLAG=-fmerge-constants
6368else
6369 MERGE_CONSTANTS_FLAG=
6370fi
6371
81ecdfbb
RW
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
6373$as_echo_n "checking for thread support... " >&6; }
6374if test "${gold_cv_c_thread+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e44fcf3b 6378/* end confdefs.h. */
81ecdfbb 6379__thread int i = 1;
e44fcf3b 6380_ACEOF
81ecdfbb
RW
6381if ac_fn_c_try_compile "$LINENO"; then :
6382 gold_cv_c_thread=yes
0639a6f6 6383else
81ecdfbb 6384 gold_cv_c_thread=no
0639a6f6 6385fi
81ecdfbb 6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e44fcf3b 6387fi
81ecdfbb
RW
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
6389$as_echo "$gold_cv_c_thread" >&6; }
e44fcf3b 6390
81ecdfbb
RW
6391 if test "$gold_cv_c_thread" = "yes"; then
6392 TLS_TRUE=
6393 TLS_FALSE='#'
6394else
6395 TLS_TRUE='#'
6396 TLS_FALSE=
0639a6f6 6397fi
e44fcf3b 6398
0639a6f6 6399
81ecdfbb
RW
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
6401$as_echo_n "checking for glibc >= 2.4... " >&6; }
6402if test "${gold_cv_lib_glibc24+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
1b77ea50 6404else
81ecdfbb 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b77ea50 6406/* end confdefs.h. */
81ecdfbb
RW
6407
6408#include <features.h>
6409#if !defined __GLIBC__
6410error
6411#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
6412error
1b77ea50 6413#endif
81ecdfbb 6414
1b77ea50 6415_ACEOF
81ecdfbb
RW
6416if ac_fn_c_try_compile "$LINENO"; then :
6417 gold_cv_lib_glibc24=yes
0639a6f6 6418else
81ecdfbb 6419 gold_cv_lib_glibc24=no
0639a6f6 6420fi
81ecdfbb 6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1b77ea50 6422fi
81ecdfbb
RW
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
6424$as_echo "$gold_cv_lib_glibc24" >&6; }
1b77ea50 6425
81ecdfbb
RW
6426 if test "$gold_cv_lib_glibc24" = "yes"; then
6427 STATIC_TLS_TRUE=
6428 STATIC_TLS_FALSE='#'
0639a6f6 6429else
81ecdfbb
RW
6430 STATIC_TLS_TRUE='#'
6431 STATIC_TLS_FALSE=
0639a6f6 6432fi
1b77ea50 6433
0639a6f6 6434
81ecdfbb
RW
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
6436$as_echo_n "checking for omp support... " >&6; }
6437if test "${gold_cv_c_threadprivate+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
0639a6f6 6439else
81ecdfbb
RW
6440 save_CFLAGS="$CFLAGS"
6441CFLAGS="$CFLAGS -fopenmp"
6442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h. */
1b77ea50 6444
81ecdfbb
RW
6445#include <omp.h>
6446int i;
6447#pragma omp threadprivate (i)
1b77ea50 6448
81ecdfbb
RW
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451 gold_cv_c_threadprivate=yes
6452else
6453 gold_cv_c_threadprivate=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456CFLAGS="$save_CFLAGS"
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
6459$as_echo "$gold_cv_c_threadprivate" >&6; }
6460if test "$gold_cv_c_threadprivate" = "yes"; then
1b77ea50 6461
81ecdfbb 6462$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
1b77ea50 6463
0639a6f6 6464fi
81ecdfbb
RW
6465 if test "$gold_cv_c_threadprivate" = "yes"; then
6466 OMP_SUPPORT_TRUE=
6467 OMP_SUPPORT_FALSE='#'
1b77ea50 6468else
81ecdfbb
RW
6469 OMP_SUPPORT_TRUE='#'
6470 OMP_SUPPORT_FALSE=
1b77ea50 6471fi
1b77ea50 6472
81ecdfbb
RW
6473
6474save_CFLAGS="$CFLAGS"
13323c49 6475CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
81ecdfbb 6476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 6477/* end confdefs.h. */
63887f3d
L
6478
6479__thread int i;
6480void foo (void)
6481{
6482 i = 10;
6483}
6484
1b77ea50 6485_ACEOF
81ecdfbb
RW
6486if ac_fn_c_try_compile "$LINENO"; then :
6487 have_tls_gnu2=yes
0639a6f6 6488else
81ecdfbb 6489 have_tls_gnu2=no
0639a6f6 6490fi
81ecdfbb
RW
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492CFLAGS="$save_CFLAGS"
6493 if test "$have_tls_gnu2" = "yes"; then
6494 TLS_GNU2_DIALECT_TRUE=
6495 TLS_GNU2_DIALECT_FALSE='#'
0639a6f6 6496else
81ecdfbb
RW
6497 TLS_GNU2_DIALECT_TRUE='#'
6498 TLS_GNU2_DIALECT_FALSE=
0639a6f6 6499fi
1b77ea50 6500
81ecdfbb
RW
6501
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
6503$as_echo_n "checking for glibc >= 2.9... " >&6; }
6504if test "${gold_cv_lib_glibc29+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
1b77ea50 6506else
81ecdfbb
RW
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
0639a6f6 6509
81ecdfbb
RW
6510#include <features.h>
6511#if !defined __GLIBC__
6512error
6513#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
6514error
6515#endif
1b77ea50 6516
81ecdfbb
RW
6517_ACEOF
6518if ac_fn_c_try_compile "$LINENO"; then :
6519 gold_cv_lib_glibc29=yes
6520else
6521 gold_cv_lib_glibc29=no
1b77ea50 6522fi
81ecdfbb
RW
6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
6526$as_echo "$gold_cv_lib_glibc29" >&6; }
0639a6f6 6527
81ecdfbb
RW
6528 if test "$gold_cv_lib_glibc29" = "yes"; then
6529 TLS_DESCRIPTORS_TRUE=
6530 TLS_DESCRIPTORS_FALSE='#'
6531else
6532 TLS_DESCRIPTORS_TRUE='#'
6533 TLS_DESCRIPTORS_FALSE=
6534fi
0639a6f6
ILT
6535
6536
81ecdfbb
RW
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
6538$as_echo_n "checking for -frandom-seed support... " >&6; }
6539if test "${gold_cv_c_random_seed+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 save_CFLAGS="$CFLAGS"
6543CFLAGS="$CFLAGS -frandom-seed=foo"
6544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0639a6f6 6545/* end confdefs.h. */
81ecdfbb 6546int i;
0639a6f6 6547_ACEOF
81ecdfbb
RW
6548if ac_fn_c_try_compile "$LINENO"; then :
6549 gold_cv_c_random_seed=yes
0639a6f6 6550else
81ecdfbb
RW
6551 gold_cv_c_random_seed=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554CFLAGS="$save_CFLAGS"
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
6557$as_echo "$gold_cv_c_random_seed" >&6; }
6558if test "$gold_cv_c_random_seed" = "yes"; then
6559 # In Makefile, '$@' will be expanded to be the name of the file
6560 # being built, providing a unique seed for each file.
6561 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
0639a6f6 6562fi
1b77ea50 6563
81ecdfbb 6564
ebb300b2
CC
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
6566$as_echo_n "checking for glibc ifunc support... " >&6; }
6567if test "${gold_cv_lib_glibc_ifunc+set}" = set; then :
7223e9ca
ILT
6568 $as_echo_n "(cached) " >&6
6569else
ebb300b2
CC
6570 save_LDFLAGS="$LDFLAGS"
6571LDFLAGS="$LDFLAGS -static"
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223e9ca
ILT
6573/* end confdefs.h. */
6574
6575#include <features.h>
6576#if !defined __GLIBC__
6577error
6578#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
6579error
6580#endif
ebb300b2
CC
6581void func (void) { }
6582void invoke (void);
6583__asm__(".type invoke, %gnu_indirect_function");
6584typedef void (*funcptr) (void);
6585funcptr dispatch (void) __asm__ ("invoke");
6586funcptr dispatch (void) { return &func; }
6587int
6588main ()
6589{
6590invoke();
6591 ;
6592 return 0;
6593}
7223e9ca
ILT
6594
6595_ACEOF
ebb300b2
CC
6596if ac_fn_c_try_link "$LINENO"; then :
6597
6598if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
6599 gold_cv_lib_glibc_ifunc=both
7223e9ca 6600else
ebb300b2 6601 gold_cv_lib_glibc_ifunc=dyn
7223e9ca 6602fi
ebb300b2
CC
6603else
6604 gold_cv_lib_glibc_ifunc=no
6605fi
6606rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608LDFLAGS="$save_LDFLAGS"
7223e9ca 6609fi
ebb300b2
CC
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
6611$as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7223e9ca 6612
ebb300b2 6613 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7223e9ca
ILT
6614 IFUNC_TRUE=
6615 IFUNC_FALSE='#'
6616else
6617 IFUNC_TRUE='#'
6618 IFUNC_FALSE=
6619fi
6620
ebb300b2
CC
6621 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
6622 IFUNC_STATIC_TRUE=
6623 IFUNC_STATIC_FALSE='#'
6624else
6625 IFUNC_STATIC_TRUE='#'
6626 IFUNC_STATIC_FALSE=
6627fi
6628
7223e9ca 6629
81ecdfbb 6630
efc8d4f2
RW
6631GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634__GNUC__
6635_ACEOF
6636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6637 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
6638
6639else
6640 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
6641fi
6642rm -f conftest*
6643
81ecdfbb
RW
6644
6645# Check whether --enable-werror was given.
6646if test "${enable_werror+set}" = set; then :
6647 enableval=$enable_werror; case "${enableval}" in
6648 yes | y) ERROR_ON_WARNING="yes" ;;
6649 no | n) ERROR_ON_WARNING="no" ;;
6650 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6651 esac
0639a6f6 6652fi
1b77ea50 6653
81ecdfbb 6654
efc8d4f2 6655# Disable -Wformat by default when using gcc on mingw
81ecdfbb
RW
6656case "${host}" in
6657 *-*-mingw32*)
6658 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6659 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
6660 fi
0639a6f6 6661 ;;
81ecdfbb 6662 *) ;;
0639a6f6 6663esac
81ecdfbb
RW
6664
6665# Enable -Werror by default when using gcc
6666if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6667 ERROR_ON_WARNING=yes
0639a6f6 6668fi
0639a6f6 6669
81ecdfbb
RW
6670NO_WERROR=
6671if test "${ERROR_ON_WARNING}" = yes ; then
6672 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6673 NO_WERROR="-Wno-error"
0639a6f6 6674fi
1b77ea50 6675
81ecdfbb
RW
6676if test "${GCC}" = yes ; then
6677 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
0639a6f6
ILT
6678fi
6679
81ecdfbb
RW
6680# Check whether --enable-build-warnings was given.
6681if test "${enable_build_warnings+set}" = set; then :
6682 enableval=$enable_build_warnings; case "${enableval}" in
6683 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6684 no) if test "${GCC}" = yes ; then
6685 WARN_CFLAGS="-w"
6686 fi;;
6687 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6688 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6689 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6690 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6691 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6692esac
6693fi
0639a6f6 6694
1b77ea50 6695
81ecdfbb
RW
6696if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6697 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
0639a6f6 6698fi
1b77ea50 6699
1b77ea50 6700
1b77ea50 6701
0639a6f6 6702
1b77ea50 6703
2ea97941 6704WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
81ecdfbb
RW
6705
6706
dc87f620
ILT
6707
6708# Check whether --with-gold-ldflags was given.
6709if test "${with_gold_ldflags+set}" = set; then :
6710 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6711 GOLD_LDFLAGS=
6712 else
6713 GOLD_LDFLAGS=$withval
6714 fi
6715else
6716 GOLD_LDFLAGS=
6717fi
6718
6719
6720
6721
6722# Check whether --with-gold-ldadd was given.
6723if test "${with_gold_ldadd+set}" = set; then :
6724 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
6725 GOLD_LDADD=
6726 else
6727 GOLD_LDADD=$withval
6728 fi
6729else
6730 GOLD_LDADD=
6731fi
6732
6733
6734
81ecdfbb
RW
6735LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6736
6737
88597d34 6738for ac_header in sys/mman.h
81ecdfbb 6739do :
88597d34
ILT
6740 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6741if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
0639a6f6 6742 cat >>confdefs.h <<_ACEOF
88597d34
ILT
6743#define HAVE_SYS_MMAN_H 1
6744_ACEOF
6745
6746fi
6747
6748done
6749
6750for ac_func in chsize mmap
6751do :
6752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6754eval as_val=\$$as_ac_var
6755 if test "x$as_val" = x""yes; then :
6756 cat >>confdefs.h <<_ACEOF
6757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1b77ea50
ILT
6758_ACEOF
6759
0639a6f6 6760fi
0639a6f6 6761done
1b77ea50 6762
88597d34 6763for ac_func in pread ftruncate ffsll
81ecdfbb
RW
6764do :
6765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6766ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6767eval as_val=\$$as_ac_var
6768 if test "x$as_val" = x""yes; then :
6769 cat >>confdefs.h <<_ACEOF
6770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1b77ea50 6771_ACEOF
0639a6f6 6772
81ecdfbb
RW
6773else
6774 case " $LIBOBJS " in
6775 *" $ac_func.$ac_objext "* ) ;;
6776 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6777 ;;
6778esac
0639a6f6 6779
81ecdfbb
RW
6780fi
6781done
0639a6f6 6782
0639a6f6 6783
81ecdfbb 6784
88597d34
ILT
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
6786$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
6787if test "${gold_cv_lib_mremap_maymove+set}" = set; then :
6788 $as_echo_n "(cached) " >&6
6789else
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h. */
6792
6793
6794#include <sys/mman.h>
6795void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
6796
6797int
6798main ()
6799{
6800
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_link "$LINENO"; then :
6806 gold_cv_lib_mremap_maymove=yes
6807else
6808 gold_cv_lib_mremap_maymove=no
6809fi
6810rm -f core conftest.err conftest.$ac_objext \
6811 conftest$ac_exeext conftest.$ac_ext
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
6814$as_echo "$gold_cv_lib_mremap_maymove" >&6; }
6815if test "$gold_cv_lib_mremap_maymove" = "yes"; then
6816
6817$as_echo "#define HAVE_MREMAP 1" >>confdefs.h
6818
6819else
6820 case " $LIBOBJS " in
6821 *" mremap.$ac_objext "* ) ;;
6822 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
6823 ;;
6824esac
6825
6826fi
6827
81ecdfbb 6828# Link in zlib if we can. This allows us to write compressed sections.
ae2eea65
ILT
6829
6830 # See if the user specified whether he wants zlib support or not.
6831
6832# Check whether --with-zlib was given.
6833if test "${with_zlib+set}" = set; then :
6834 withval=$with_zlib;
6835else
6836 with_zlib=auto
6837fi
6838
6839
6840 if test "$with_zlib" != "no"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
6842$as_echo_n "checking for library containing zlibVersion... " >&6; }
6843if test "${ac_cv_search_zlibVersion+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 ac_func_search_save_LIBS=$LIBS
6847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h. */
6849
6850/* Override any GCC internal prototype to avoid an error.
6851 Use char because int might match the return type of a GCC
6852 builtin and then its argument prototype would still apply. */
0639a6f6 6853#ifdef __cplusplus
81ecdfbb 6854extern "C"
1b77ea50 6855#endif
81ecdfbb 6856char zlibVersion ();
0639a6f6
ILT
6857int
6858main ()
6859{
81ecdfbb 6860return zlibVersion ();
1b77ea50
ILT
6861 ;
6862 return 0;
6863}
6864_ACEOF
81ecdfbb
RW
6865for ac_lib in '' z; do
6866 if test -z "$ac_lib"; then
6867 ac_res="none required"
6868 else
6869 ac_res=-l$ac_lib
6870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6871 fi
6872 if ac_fn_c_try_link "$LINENO"; then :
6873 ac_cv_search_zlibVersion=$ac_res
6874fi
6875rm -f core conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext
6877 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6878 break
6879fi
6880done
6881if test "${ac_cv_search_zlibVersion+set}" = set; then :
1b77ea50 6882
81ecdfbb
RW
6883else
6884 ac_cv_search_zlibVersion=no
1b77ea50 6885fi
81ecdfbb
RW
6886rm conftest.$ac_ext
6887LIBS=$ac_func_search_save_LIBS
1b77ea50 6888fi
81ecdfbb
RW
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6890$as_echo "$ac_cv_search_zlibVersion" >&6; }
6891ac_res=$ac_cv_search_zlibVersion
6892if test "$ac_res" != no; then :
6893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6894 for ac_header in zlib.h
6895do :
6896 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6897if test "x$ac_cv_header_zlib_h" = x""yes; then :
1b77ea50 6898 cat >>confdefs.h <<_ACEOF
81ecdfbb 6899#define HAVE_ZLIB_H 1
1b77ea50
ILT
6900_ACEOF
6901
1b77ea50 6902fi
81ecdfbb 6903
0639a6f6 6904done
1b77ea50 6905
81ecdfbb 6906fi
3d857b98 6907
ae2eea65
ILT
6908 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6909 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6910 fi
6911 fi
6912
6913 if test "$ac_cv_header_zlib_h" = "yes"; then
81ecdfbb
RW
6914 HAVE_ZLIB_TRUE=
6915 HAVE_ZLIB_FALSE='#'
3d857b98 6916else
81ecdfbb
RW
6917 HAVE_ZLIB_TRUE='#'
6918 HAVE_ZLIB_FALSE=
3d857b98 6919fi
81ecdfbb
RW
6920
6921
6922ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
6923if test "x$ac_cv_have_decl_basename" = x""yes; then :
6924 ac_have_decl=1
6925else
6926 ac_have_decl=0
3d857b98 6927fi
3d857b98
DK
6928
6929cat >>confdefs.h <<_ACEOF
81ecdfbb 6930#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 6931_ACEOF
81ecdfbb
RW
6932ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6933if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6934 ac_have_decl=1
3d857b98 6935else
81ecdfbb 6936 ac_have_decl=0
3d857b98 6937fi
3d857b98 6938
81ecdfbb
RW
6939cat >>confdefs.h <<_ACEOF
6940#define HAVE_DECL_FFS $ac_have_decl
3d857b98 6941_ACEOF
81ecdfbb
RW
6942ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6943if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6944 ac_have_decl=1
3d857b98 6945else
81ecdfbb 6946 ac_have_decl=0
3d857b98 6947fi
3d857b98
DK
6948
6949cat >>confdefs.h <<_ACEOF
81ecdfbb 6950#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 6951_ACEOF
81ecdfbb
RW
6952ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6953if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6954 ac_have_decl=1
3d857b98 6955else
81ecdfbb 6956 ac_have_decl=0
3d857b98 6957fi
3d857b98 6958
81ecdfbb
RW
6959cat >>confdefs.h <<_ACEOF
6960#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 6961_ACEOF
81ecdfbb
RW
6962ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6963if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6964 ac_have_decl=1
3d857b98 6965else
81ecdfbb
RW
6966 ac_have_decl=0
6967fi
3d857b98 6968
81ecdfbb
RW
6969cat >>confdefs.h <<_ACEOF
6970#define HAVE_DECL_SNPRINTF $ac_have_decl
6971_ACEOF
6972ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6973if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6974 ac_have_decl=1
6975else
6976 ac_have_decl=0
3d857b98 6977fi
81ecdfbb
RW
6978
6979cat >>confdefs.h <<_ACEOF
6980#define HAVE_DECL_VSNPRINTF $ac_have_decl
6981_ACEOF
6982ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6983if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6984 ac_have_decl=1
6985else
6986 ac_have_decl=0
3d857b98 6987fi
3d857b98
DK
6988
6989cat >>confdefs.h <<_ACEOF
81ecdfbb 6990#define HAVE_DECL_STRVERSCMP $ac_have_decl
3d857b98
DK
6991_ACEOF
6992
6993
81ecdfbb
RW
6994ac_ext=cpp
6995ac_cpp='$CXXCPP $CPPFLAGS'
6996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3d857b98
DK
6999
7000
81ecdfbb
RW
7001
7002ac_ext=cpp
7003ac_cpp='$CXXCPP $CPPFLAGS'
7004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7008$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7009if test -z "$CXXCPP"; then
7010 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
3d857b98 7012else
81ecdfbb
RW
7013 # Double quotes because CXXCPP needs to be expanded
7014 for CXXCPP in "$CXX -E" "/lib/cpp"
7015 do
7016 ac_preproc_ok=false
7017for ac_cxx_preproc_warn_flag in '' yes
7018do
7019 # Use a header file that comes with gcc, so configuring glibc
7020 # with a fresh cross-compiler works.
7021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022 # <limits.h> exists even on freestanding compilers.
7023 # On the NeXT, cc -E runs the code through the compiler's parser,
7024 # not just through cpp. "Syntax error" is here to catch this case.
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 7026/* end confdefs.h. */
81ecdfbb
RW
7027#ifdef __STDC__
7028# include <limits.h>
7029#else
7030# include <assert.h>
3d857b98 7031#endif
81ecdfbb 7032 Syntax error
3d857b98 7033_ACEOF
81ecdfbb 7034if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 7035
81ecdfbb
RW
7036else
7037 # Broken: fails on valid input.
7038continue
3d857b98 7039fi
81ecdfbb 7040rm -f conftest.err conftest.$ac_ext
3d857b98 7041
81ecdfbb
RW
7042 # OK, works on sane cases. Now check whether nonexistent headers
7043 # can be detected and how.
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h. */
7046#include <ac_nonexistent.h>
3d857b98 7047_ACEOF
81ecdfbb
RW
7048if ac_fn_cxx_try_cpp "$LINENO"; then :
7049 # Broken: success on invalid input.
7050continue
3d857b98 7051else
81ecdfbb
RW
7052 # Passes both tests.
7053ac_preproc_ok=:
7054break
7055fi
7056rm -f conftest.err conftest.$ac_ext
7057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060rm -f conftest.err conftest.$ac_ext
7061if $ac_preproc_ok; then :
7062 break
7063fi
3d857b98 7064
81ecdfbb
RW
7065 done
7066 ac_cv_prog_CXXCPP=$CXXCPP
3d857b98
DK
7067
7068fi
81ecdfbb 7069 CXXCPP=$ac_cv_prog_CXXCPP
3d857b98 7070else
81ecdfbb
RW
7071 ac_cv_prog_CXXCPP=$CXXCPP
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7074$as_echo "$CXXCPP" >&6; }
7075ac_preproc_ok=false
7076for ac_cxx_preproc_warn_flag in '' yes
7077do
7078 # Use a header file that comes with gcc, so configuring glibc
7079 # with a fresh cross-compiler works.
7080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 # <limits.h> exists even on freestanding compilers.
7082 # On the NeXT, cc -E runs the code through the compiler's parser,
7083 # not just through cpp. "Syntax error" is here to catch this case.
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d857b98 7085/* end confdefs.h. */
81ecdfbb
RW
7086#ifdef __STDC__
7087# include <limits.h>
7088#else
7089# include <assert.h>
3d857b98 7090#endif
81ecdfbb 7091 Syntax error
3d857b98 7092_ACEOF
81ecdfbb 7093if ac_fn_cxx_try_cpp "$LINENO"; then :
3d857b98 7094
81ecdfbb
RW
7095else
7096 # Broken: fails on valid input.
7097continue
3d857b98 7098fi
81ecdfbb 7099rm -f conftest.err conftest.$ac_ext
3d857b98 7100
81ecdfbb
RW
7101 # OK, works on sane cases. Now check whether nonexistent headers
7102 # can be detected and how.
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h. */
7105#include <ac_nonexistent.h>
3d857b98 7106_ACEOF
81ecdfbb
RW
7107if ac_fn_cxx_try_cpp "$LINENO"; then :
7108 # Broken: success on invalid input.
7109continue
7110else
7111 # Passes both tests.
7112ac_preproc_ok=:
7113break
7114fi
7115rm -f conftest.err conftest.$ac_ext
3d857b98 7116
81ecdfbb
RW
7117done
7118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7119rm -f conftest.err conftest.$ac_ext
7120if $ac_preproc_ok; then :
3d857b98
DK
7121
7122else
81ecdfbb
RW
7123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7125as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7126See \`config.log' for more details." "$LINENO" 5; }
7127fi
7128
7129ac_ext=cpp
7130ac_cpp='$CXXCPP $CPPFLAGS'
7131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7134
7135
8356f2d0
CC
7136for ac_header in unordered_set unordered_map
7137do :
7138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7140eval as_val=\$$as_ac_Header
7141 if test "x$as_val" = x""yes; then :
7142 cat >>confdefs.h <<_ACEOF
7143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144_ACEOF
7145
7146fi
7147
7148done
7149
81ecdfbb
RW
7150for ac_header in tr1/unordered_set tr1/unordered_map
7151do :
7152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7154eval as_val=\$$as_ac_Header
7155 if test "x$as_val" = x""yes; then :
3d857b98 7156 cat >>confdefs.h <<_ACEOF
81ecdfbb 7157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3d857b98
DK
7158_ACEOF
7159
3d857b98 7160fi
3d857b98 7161
81ecdfbb
RW
7162done
7163
7164for ac_header in ext/hash_map ext/hash_set
7165do :
7166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7167ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7168eval as_val=\$$as_ac_Header
7169 if test "x$as_val" = x""yes; then :
7170 cat >>confdefs.h <<_ACEOF
7171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172_ACEOF
3d857b98 7173
3d857b98 7174fi
3d857b98 7175
81ecdfbb
RW
7176done
7177
7178for ac_header in byteswap.h
7179do :
7180 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
7181if test "x$ac_cv_header_byteswap_h" = x""yes; then :
7182 cat >>confdefs.h <<_ACEOF
7183#define HAVE_BYTESWAP_H 1
3d857b98
DK
7184_ACEOF
7185
81ecdfbb 7186fi
3d857b98 7187
81ecdfbb
RW
7188done
7189
0bf402d5
ILT
7190
7191for ac_header in windows.h
7192do :
7193 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7194if test "x$ac_cv_header_windows_h" = x""yes; then :
7195 cat >>confdefs.h <<_ACEOF
7196#define HAVE_WINDOWS_H 1
7197_ACEOF
7198
7199fi
7200
7201done
7202
7203for ac_header in dlfcn.h
7204do :
7205 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7206if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7207 cat >>confdefs.h <<_ACEOF
7208#define HAVE_DLFCN_H 1
7209_ACEOF
6632e8cc 7210
0bf402d5
ILT
7211fi
7212
7213done
7214
6632e8cc
CC
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7216$as_echo_n "checking for library containing dlopen... " >&6; }
7217if test "${ac_cv_search_dlopen+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219else
7220 ac_func_search_save_LIBS=$LIBS
7221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h. */
7223
7224/* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7227#ifdef __cplusplus
7228extern "C"
7229#endif
7230char dlopen ();
7231int
7232main ()
7233{
7234return dlopen ();
7235 ;
7236 return 0;
7237}
7238_ACEOF
7239for ac_lib in '' dl dld; do
7240 if test -z "$ac_lib"; then
7241 ac_res="none required"
7242 else
7243 ac_res=-l$ac_lib
7244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7245 fi
7246 if ac_fn_cxx_try_link "$LINENO"; then :
7247 ac_cv_search_dlopen=$ac_res
7248fi
7249rm -f core conftest.err conftest.$ac_objext \
7250 conftest$ac_exeext
7251 if test "${ac_cv_search_dlopen+set}" = set; then :
7252 break
7253fi
7254done
7255if test "${ac_cv_search_dlopen+set}" = set; then :
7256
7257else
7258 ac_cv_search_dlopen=no
7259fi
7260rm conftest.$ac_ext
7261LIBS=$ac_func_search_save_LIBS
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7264$as_echo "$ac_cv_search_dlopen" >&6; }
7265ac_res=$ac_cv_search_dlopen
7266if test "$ac_res" != no; then :
7267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7268
7269fi
7270
7271case "$ac_cv_search_dlopen" in
7272 no*) DLOPEN_LIBS="";;
7273 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
7274esac
0bf402d5
ILT
7275
7276
7c0640fa 7277for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
81ecdfbb
RW
7278do :
7279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7280ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7281eval as_val=\$$as_ac_var
7282 if test "x$as_val" = x""yes; then :
3d857b98 7283 cat >>confdefs.h <<_ACEOF
81ecdfbb 7284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3d857b98
DK
7285_ACEOF
7286
3d857b98 7287fi
81ecdfbb
RW
7288done
7289
7290ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
7291if test "x$ac_cv_have_decl_basename" = x""yes; then :
7292 ac_have_decl=1
3d857b98 7293else
81ecdfbb
RW
7294 ac_have_decl=0
7295fi
3d857b98 7296
81ecdfbb
RW
7297cat >>confdefs.h <<_ACEOF
7298#define HAVE_DECL_BASENAME $ac_have_decl
3d857b98 7299_ACEOF
81ecdfbb
RW
7300ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7301if test "x$ac_cv_have_decl_ffs" = x""yes; then :
7302 ac_have_decl=1
3d857b98 7303else
81ecdfbb 7304 ac_have_decl=0
3d857b98 7305fi
3d857b98
DK
7306
7307cat >>confdefs.h <<_ACEOF
81ecdfbb 7308#define HAVE_DECL_FFS $ac_have_decl
3d857b98 7309_ACEOF
81ecdfbb
RW
7310ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7311if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
7312 ac_have_decl=1
3d857b98 7313else
81ecdfbb 7314 ac_have_decl=0
3d857b98 7315fi
3d857b98 7316
81ecdfbb
RW
7317cat >>confdefs.h <<_ACEOF
7318#define HAVE_DECL_ASPRINTF $ac_have_decl
3d857b98 7319_ACEOF
81ecdfbb
RW
7320ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7321if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7322 ac_have_decl=1
3d857b98 7323else
81ecdfbb 7324 ac_have_decl=0
3d857b98 7325fi
3d857b98
DK
7326
7327cat >>confdefs.h <<_ACEOF
81ecdfbb 7328#define HAVE_DECL_VASPRINTF $ac_have_decl
3d857b98 7329_ACEOF
81ecdfbb
RW
7330ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7331if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7332 ac_have_decl=1
3d857b98 7333else
81ecdfbb 7334 ac_have_decl=0
3d857b98 7335fi
3d857b98 7336
81ecdfbb
RW
7337cat >>confdefs.h <<_ACEOF
7338#define HAVE_DECL_SNPRINTF $ac_have_decl
3d857b98 7339_ACEOF
81ecdfbb
RW
7340ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7341if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7342 ac_have_decl=1
3d857b98 7343else
81ecdfbb 7344 ac_have_decl=0
3d857b98 7345fi
3d857b98
DK
7346
7347cat >>confdefs.h <<_ACEOF
81ecdfbb 7348#define HAVE_DECL_VSNPRINTF $ac_have_decl
3d857b98 7349_ACEOF
81ecdfbb
RW
7350ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7351if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7352 ac_have_decl=1
3d857b98 7353else
81ecdfbb
RW
7354 ac_have_decl=0
7355fi
3d857b98 7356
81ecdfbb
RW
7357cat >>confdefs.h <<_ACEOF
7358#define HAVE_DECL_STRVERSCMP $ac_have_decl
7359_ACEOF
7360ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
7361if test "x$ac_cv_have_decl_strndup" = x""yes; then :
7362 ac_have_decl=1
7363else
7364 ac_have_decl=0
7365fi
3d857b98 7366
81ecdfbb
RW
7367cat >>confdefs.h <<_ACEOF
7368#define HAVE_DECL_STRNDUP $ac_have_decl
7369_ACEOF
7370ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7371if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7372 ac_have_decl=1
7373else
7374 ac_have_decl=0
3d857b98
DK
7375fi
7376
81ecdfbb
RW
7377cat >>confdefs.h <<_ACEOF
7378#define HAVE_DECL_MEMMEM $ac_have_decl
7379_ACEOF
3d857b98 7380
e44fcf3b 7381
40fde488
CD
7382# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
7383# at link time with some versions of GCC.
81ecdfbb
RW
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
7385$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
7386if test "${gold_cv_unordered_map_rehash+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
40fde488 7388else
81ecdfbb 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40fde488
CD
7390/* end confdefs.h. */
7391
7392#include <tr1/unordered_map>
7393void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
7394
7395int
7396main ()
7397{
7398
7399 ;
7400 return 0;
7401}
7402_ACEOF
81ecdfbb 7403if ac_fn_cxx_try_link "$LINENO"; then :
40fde488
CD
7404 gold_cv_unordered_map_rehash=yes
7405else
81ecdfbb 7406 gold_cv_unordered_map_rehash=no
40fde488 7407fi
81ecdfbb
RW
7408rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
40fde488 7410fi
81ecdfbb
RW
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
7412$as_echo "$gold_cv_unordered_map_rehash" >&6; }
40fde488
CD
7413if test "$gold_cv_unordered_map_rehash" = "yes"; then
7414
81ecdfbb 7415$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
40fde488
CD
7416
7417fi
7418
81c82a68
ILT
7419# Use of tr1/unordered_map with off_t as a key is not supported on GCC
7420# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
7422$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
7423if test "${gold_cv_hash_off_t+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 CXXFLAGS_hold=$CXXFLAGS
7427CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
7428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h. */
7430
7431#include <sys/types.h>
7432#include <tr1/unordered_map>
7433std::tr1::hash<off_t> h;
7434
7435_ACEOF
7436if ac_fn_cxx_try_compile "$LINENO"; then :
7437 gold_cv_hash_off_t=yes
7438else
7439 gold_cv_hash_off_t=no
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26e4ef59 7442CXXFLAGS=$CXXFLAGS_hold
81c82a68
ILT
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
7445$as_echo "$gold_cv_hash_off_t" >&6; }
7446if test "$gold_cv_hash_off_t" = "yes"; then
7447
7448$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
7449
7450fi
7451
04bf7072
ILT
7452# gcc 4.3.0 doesn't recognize the printf attribute on a template
7453# function. Check for that. This is gcc bug 35546. This test can
7454# probably be removed after the bug has been fixed for a while.
81ecdfbb
RW
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
7456$as_echo_n "checking whether we can use attributes with template functions... " >&6; }
7457if test "${gold_cv_template_attribute+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
04bf7072 7459else
81ecdfbb
RW
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
04bf7072
ILT
7462
7463template<typename T> extern void foo(const char*, ...)
7464 __attribute__ ((__format__ (__printf__, 1, 2)));
7465template<typename T> void foo(const char* format, ...) {}
7466void bar() { foo<int>("%s\n", "foo"); }
7467
7468_ACEOF
81ecdfbb 7469if ac_fn_cxx_try_compile "$LINENO"; then :
04bf7072
ILT
7470 gold_cv_template_attribute=yes
7471else
81ecdfbb 7472 gold_cv_template_attribute=no
04bf7072 7473fi
81ecdfbb 7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
04bf7072 7475fi
81ecdfbb
RW
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
7477$as_echo "$gold_cv_template_attribute" >&6; }
04bf7072
ILT
7478if test "$gold_cv_template_attribute" = "yes"; then
7479
81ecdfbb 7480$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
04bf7072
ILT
7481
7482fi
7483
5d329b7d
ILT
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
7485$as_echo_n "checking for struct stat::st_mtim.... " >&6; }
7486if test "${gold_cv_stat_st_mtim+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h. */
7491
7492#include <sys/stat.h>
7493long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
7494
7495int
7496main ()
7497{
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503if ac_fn_cxx_try_compile "$LINENO"; then :
7504 gold_cv_stat_st_mtim=yes
7505else
7506 gold_cv_stat_st_mtim=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
7511$as_echo "$gold_cv_stat_st_mtim" >&6; }
7512if test "$gold_cv_stat_st_mtim" = "yes"; then
7513
7514$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
7515
7516fi
7517
f1415016 7518save_CXXFLAGS="$CXXFLAGS"
13323c49 7519CXXFLAGS="$CXXFLAGS -Werror -gpubnames"
f1415016
CC
7520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h. */
7522int i;
7523_ACEOF
7524if ac_fn_cxx_try_compile "$LINENO"; then :
7525 have_pubnames=yes
7526else
7527 have_pubnames=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530CXXFLAGS="$save_CXXFLAGS"
7531 if test "$have_pubnames" = "yes"; then
7532 HAVE_PUBNAMES_TRUE=
7533 HAVE_PUBNAMES_FALSE='#'
7534else
7535 HAVE_PUBNAMES_TRUE='#'
7536 HAVE_PUBNAMES_FALSE=
7537fi
7538
7539
54dc6425
ILT
7540ac_ext=c
7541ac_cpp='$CPP $CPPFLAGS'
7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546
58797674
RM
7547for ac_header in locale.h
7548do :
7549 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7550if test "x$ac_cv_header_locale_h" = x""yes; then :
7551 cat >>confdefs.h <<_ACEOF
7552#define HAVE_LOCALE_H 1
7553_ACEOF
7554
7555fi
7556
7557done
7558
44350750
NC
7559for ac_func in setlocale
7560do :
7561 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7562if test "x$ac_cv_func_setlocale" = x""yes; then :
7563 cat >>confdefs.h <<_ACEOF
7564#define HAVE_SETLOCALE 1
7565_ACEOF
7566
7567fi
7568done
7569
7570
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7572$as_echo_n "checking for LC_MESSAGES... " >&6; }
7573if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575else
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h. */
7578#include <locale.h>
7579int
7580main ()
7581{
7582return LC_MESSAGES
7583 ;
7584 return 0;
7585}
7586_ACEOF
7587if ac_fn_c_try_link "$LINENO"; then :
7588 am_cv_val_LC_MESSAGES=yes
7589else
7590 am_cv_val_LC_MESSAGES=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
7594fi
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7596$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7597 if test $am_cv_val_LC_MESSAGES = yes; then
7598
7599$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7600
7601 fi
7602
7603
81ecdfbb
RW
7604
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7606$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7607 # Check whether --enable-maintainer-mode was given.
7608if test "${enable_maintainer_mode+set}" = set; then :
7609 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
bae7f79e
ILT
7610else
7611 USE_MAINTAINER_MODE=no
81ecdfbb 7612fi
bae7f79e 7613
81ecdfbb
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7615$as_echo "$USE_MAINTAINER_MODE" >&6; }
7616 if test $USE_MAINTAINER_MODE = yes; then
bae7f79e
ILT
7617 MAINTAINER_MODE_TRUE=
7618 MAINTAINER_MODE_FALSE='#'
7619else
7620 MAINTAINER_MODE_TRUE='#'
7621 MAINTAINER_MODE_FALSE=
7622fi
7623
7624 MAINT=$MAINTAINER_MODE_TRUE
7625
7626
7627
81ecdfbb
RW
7628ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
7629
bae7f79e
ILT
7630cat >confcache <<\_ACEOF
7631# This file is a shell script that caches the results of configure
7632# tests run on this system so they can be shared between configure
7633# scripts and configure runs, see configure's option --config-cache.
7634# It is not useful on other systems. If it contains results you don't
7635# want to keep, you may remove or edit it.
7636#
7637# config.status only pays attention to the cache file if you give it
7638# the --recheck option to rerun configure.
7639#
7640# `ac_cv_env_foo' variables (set or unset) will be overridden when
7641# loading this file, other *unset* `ac_cv_foo' will be assigned the
7642# following values.
7643
7644_ACEOF
7645
7646# The following way of writing the cache mishandles newlines in values,
7647# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7648# So, we kill variables containing newlines.
bae7f79e
ILT
7649# Ultrix sh set writes to stderr and can't be redirected directly,
7650# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7651(
7652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7653 eval ac_val=\$$ac_var
7654 case $ac_val in #(
7655 *${as_nl}*)
7656 case $ac_var in #(
7657 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7658$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7659 esac
7660 case $ac_var in #(
7661 _ | IFS | as_nl) ;; #(
7662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7663 *) { eval $ac_var=; unset $ac_var;} ;;
7664 esac ;;
7665 esac
7666 done
7667
bae7f79e 7668 (set) 2>&1 |
81ecdfbb
RW
7669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7670 *${as_nl}ac_space=\ *)
7671 # `set' does not quote correctly, so add quotes: double-quote
7672 # substitution turns \\\\ into \\, and sed turns \\ into \.
bae7f79e
ILT
7673 sed -n \
7674 "s/'/'\\\\''/g;
7675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7676 ;; #(
bae7f79e
ILT
7677 *)
7678 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bae7f79e 7680 ;;
81ecdfbb
RW
7681 esac |
7682 sort
7683) |
bae7f79e 7684 sed '
81ecdfbb 7685 /^ac_cv_env_/b end
bae7f79e 7686 t clear
81ecdfbb 7687 :clear
bae7f79e
ILT
7688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7689 t end
81ecdfbb
RW
7690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7691 :end' >>confcache
7692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7693 if test -w "$cache_file"; then
7694 test "x$cache_file" != "x/dev/null" &&
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7696$as_echo "$as_me: updating cache $cache_file" >&6;}
bae7f79e
ILT
7697 cat confcache >$cache_file
7698 else
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7700$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bae7f79e
ILT
7701 fi
7702fi
7703rm -f confcache
7704
7705test "x$prefix" = xNONE && prefix=$ac_default_prefix
7706# Let make expand exec_prefix.
7707test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7708
bae7f79e
ILT
7709DEFS=-DHAVE_CONFIG_H
7710
7711ac_libobjs=
7712ac_ltlibobjs=
7713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7714 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7718 # will be set to the directory where LIBOBJS objects are built.
7719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bae7f79e
ILT
7721done
7722LIBOBJS=$ac_libobjs
7723
7724LTLIBOBJS=$ac_ltlibobjs
7725
7726
81ecdfbb
RW
7727 if test -n "$EXEEXT"; then
7728 am__EXEEXT_TRUE=
7729 am__EXEEXT_FALSE='#'
7730else
7731 am__EXEEXT_TRUE='#'
7732 am__EXEEXT_FALSE=
7733fi
7734
fe9a4c12 7735if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
81ecdfbb
RW
7736 as_fn_error "conditional \"THREADS\" was never defined.
7737Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe9a4c12 7738fi
89fc3421 7739if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
7740 as_fn_error "conditional \"PLUGINS\" was never defined.
7741Usually this means the macro was only invoked conditionally." "$LINENO" 5
89fc3421 7742fi
364c7fa5
ILT
7743if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
7744 as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined.
7745Usually this means the macro was only invoked conditionally." "$LINENO" 5
7746fi
7747if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
7748 as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined.
7749Usually this means the macro was only invoked conditionally." "$LINENO" 5
7750fi
7751if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
7752 as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
7753Usually this means the macro was only invoked conditionally." "$LINENO" 5
7754fi
7755if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
7756 as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
7757Usually this means the macro was only invoked conditionally." "$LINENO" 5
7758fi
7759if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
7760 as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
7761Usually this means the macro was only invoked conditionally." "$LINENO" 5
7762fi
0a6f1bf2
AM
7763if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
7764 as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
7765Usually this means the macro was only invoked conditionally." "$LINENO" 5
7766fi
bae7f79e 7767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
7768 as_fn_error "conditional \"AMDEP\" was never defined.
7769Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
7770fi
7771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
7772 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7773Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
7774fi
7775if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
81ecdfbb
RW
7776 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7777Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e 7778fi
81ecdfbb 7779
537b5f51 7780if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
81ecdfbb
RW
7781 as_fn_error "conditional \"NATIVE_LINKER\" was never defined.
7782Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51
ILT
7783fi
7784if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
81ecdfbb
RW
7785 as_fn_error "conditional \"GCC\" was never defined.
7786Usually this means the macro was only invoked conditionally." "$LINENO" 5
537b5f51 7787fi
eb373049
ILT
7788if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
7789 as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
7790Usually this means the macro was only invoked conditionally." "$LINENO" 5
328c7c2f
ILT
7791fi
7792if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
7793 as_fn_error "conditional \"HAVE_STATIC\" was never defined.
7794Usually this means the macro was only invoked conditionally." "$LINENO" 5
eb373049 7795fi
63402fe4 7796if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
81ecdfbb
RW
7797 as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7798Usually this means the macro was only invoked conditionally." "$LINENO" 5
63402fe4 7799fi
8a5e3e08 7800if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
81ecdfbb
RW
7801 as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined.
7802Usually this means the macro was only invoked conditionally." "$LINENO" 5
8a5e3e08 7803fi
6eee141f 7804if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
81ecdfbb
RW
7805 as_fn_error "conditional \"TLS\" was never defined.
7806Usually this means the macro was only invoked conditionally." "$LINENO" 5
6eee141f 7807fi
097ec620 7808if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
81ecdfbb
RW
7809 as_fn_error "conditional \"STATIC_TLS\" was never defined.
7810Usually this means the macro was only invoked conditionally." "$LINENO" 5
097ec620 7811fi
155a0dd7 7812if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
81ecdfbb
RW
7813 as_fn_error "conditional \"OMP_SUPPORT\" was never defined.
7814Usually this means the macro was only invoked conditionally." "$LINENO" 5
155a0dd7 7815fi
c2b45e22 7816if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
81ecdfbb
RW
7817 as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined.
7818Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22
CC
7819fi
7820if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
81ecdfbb
RW
7821 as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined.
7822Usually this means the macro was only invoked conditionally." "$LINENO" 5
c2b45e22 7823fi
7223e9ca
ILT
7824if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
7825 as_fn_error "conditional \"IFUNC\" was never defined.
7826Usually this means the macro was only invoked conditionally." "$LINENO" 5
7827fi
ebb300b2
CC
7828if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
7829 as_fn_error "conditional \"IFUNC_STATIC\" was never defined.
7830Usually this means the macro was only invoked conditionally." "$LINENO" 5
7831fi
7fcd0256 7832if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
81ecdfbb
RW
7833 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
7834Usually this means the macro was only invoked conditionally." "$LINENO" 5
7fcd0256 7835fi
f1415016
CC
7836if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
7837 as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined.
7838Usually this means the macro was only invoked conditionally." "$LINENO" 5
7839fi
bae7f79e 7840if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
7841 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7842Usually this means the macro was only invoked conditionally." "$LINENO" 5
bae7f79e
ILT
7843fi
7844
7845: ${CONFIG_STATUS=./config.status}
81ecdfbb 7846ac_write_fail=0
bae7f79e
ILT
7847ac_clean_files_save=$ac_clean_files
7848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7850$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7851as_write_fail=0
7852cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bae7f79e
ILT
7853#! $SHELL
7854# Generated by $as_me.
7855# Run this file to recreate the current configuration.
7856# Compiler output produced by configure, useful for debugging
7857# configure, is in config.log if it exists.
7858
7859debug=false
7860ac_cs_recheck=false
7861ac_cs_silent=false
bae7f79e 7862
81ecdfbb
RW
7863SHELL=\${CONFIG_SHELL-$SHELL}
7864export SHELL
7865_ASEOF
7866cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7867## -------------------- ##
7868## M4sh Initialization. ##
7869## -------------------- ##
bae7f79e 7870
81ecdfbb
RW
7871# Be more Bourne compatible
7872DUALCASE=1; export DUALCASE # for MKS sh
7873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bae7f79e
ILT
7874 emulate sh
7875 NULLCMD=:
81ecdfbb 7876 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bae7f79e
ILT
7877 # is contrary to our usage. Disable this feature.
7878 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
7879 setopt NO_GLOB_SUBST
7880else
7881 case `(set -o) 2>/dev/null` in #(
7882 *posix*) :
7883 set -o posix ;; #(
7884 *) :
7885 ;;
7886esac
bae7f79e 7887fi
bae7f79e 7888
81ecdfbb
RW
7889
7890as_nl='
7891'
7892export as_nl
7893# Printing a long string crashes Solaris 7 /usr/bin/printf.
7894as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7896as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7897# Prefer a ksh shell builtin over an external printf program on Solaris,
7898# but without wasting forks for bash or zsh.
7899if test -z "$BASH_VERSION$ZSH_VERSION" \
7900 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7901 as_echo='print -r --'
7902 as_echo_n='print -rn --'
7903elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7904 as_echo='printf %s\n'
7905 as_echo_n='printf %s'
7906else
7907 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7908 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7909 as_echo_n='/usr/ucb/echo -n'
7910 else
7911 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7912 as_echo_n_body='eval
7913 arg=$1;
7914 case $arg in #(
7915 *"$as_nl"*)
7916 expr "X$arg" : "X\\(.*\\)$as_nl";
7917 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7918 esac;
7919 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7920 '
7921 export as_echo_n_body
7922 as_echo_n='sh -c $as_echo_n_body as_echo'
7923 fi
7924 export as_echo_body
7925 as_echo='sh -c $as_echo_body as_echo'
7926fi
7927
7928# The user is always right.
7929if test "${PATH_SEPARATOR+set}" != set; then
7930 PATH_SEPARATOR=:
7931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7933 PATH_SEPARATOR=';'
7934 }
bae7f79e
ILT
7935fi
7936
7937
81ecdfbb
RW
7938# IFS
7939# We need space, tab and new line, in precisely that order. Quoting is
7940# there to prevent editors from complaining about space-tab.
7941# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7942# splitting by setting IFS to empty value.)
7943IFS=" "" $as_nl"
7944
7945# Find who we are. Look in the path if we contain no directory separator.
7946case $0 in #((
7947 *[\\/]* ) as_myself=$0 ;;
7948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7954 done
7955IFS=$as_save_IFS
7956
7957 ;;
7958esac
7959# We did not find ourselves, most probably we were run as `sh COMMAND'
7960# in which case we are not to be found in the path.
7961if test "x$as_myself" = x; then
7962 as_myself=$0
7963fi
7964if test ! -f "$as_myself"; then
7965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7966 exit 1
7967fi
7968
7969# Unset variables that we do not need and which cause bugs (e.g. in
7970# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7971# suppresses any "Segmentation fault" message there. '((' could
7972# trigger a bug in pdksh 5.2.14.
7973for as_var in BASH_ENV ENV MAIL MAILPATH
7974do eval test x\${$as_var+set} = xset \
7975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7976done
bae7f79e
ILT
7977PS1='$ '
7978PS2='> '
7979PS4='+ '
7980
7981# NLS nuisances.
81ecdfbb
RW
7982LC_ALL=C
7983export LC_ALL
7984LANGUAGE=C
7985export LANGUAGE
7986
7987# CDPATH.
7988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7989
7990
7991# as_fn_error ERROR [LINENO LOG_FD]
7992# ---------------------------------
7993# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7994# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7995# script with status $?, using 1 if that was 0.
7996as_fn_error ()
7997{
7998 as_status=$?; test $as_status -eq 0 && as_status=1
7999 if test "$3"; then
8000 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bae7f79e 8002 fi
81ecdfbb
RW
8003 $as_echo "$as_me: error: $1" >&2
8004 as_fn_exit $as_status
8005} # as_fn_error
8006
8007
8008# as_fn_set_status STATUS
8009# -----------------------
8010# Set $? to STATUS, without forking.
8011as_fn_set_status ()
8012{
8013 return $1
8014} # as_fn_set_status
bae7f79e 8015
81ecdfbb
RW
8016# as_fn_exit STATUS
8017# -----------------
8018# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8019as_fn_exit ()
8020{
8021 set +e
8022 as_fn_set_status $1
8023 exit $1
8024} # as_fn_exit
8025
8026# as_fn_unset VAR
8027# ---------------
8028# Portably unset VAR.
8029as_fn_unset ()
8030{
8031 { eval $1=; unset $1;}
8032}
8033as_unset=as_fn_unset
8034# as_fn_append VAR VALUE
8035# ----------------------
8036# Append the text in VALUE to the end of the definition contained in VAR. Take
8037# advantage of any shell optimizations that allow amortized linear growth over
8038# repeated appends, instead of the typical quadratic growth present in naive
8039# implementations.
8040if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8041 eval 'as_fn_append ()
8042 {
8043 eval $1+=\$2
8044 }'
8045else
8046 as_fn_append ()
8047 {
8048 eval $1=\$$1\$2
8049 }
8050fi # as_fn_append
8051
8052# as_fn_arith ARG...
8053# ------------------
8054# Perform arithmetic evaluation on the ARGs, and store the result in the
8055# global $as_val. Take advantage of shells that can avoid forks. The arguments
8056# must be portable across $(()) and expr.
8057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8058 eval 'as_fn_arith ()
8059 {
8060 as_val=$(( $* ))
8061 }'
8062else
8063 as_fn_arith ()
8064 {
8065 as_val=`expr "$@" || test $? -eq 1`
8066 }
8067fi # as_fn_arith
8068
8069
8070if expr a : '\(a\)' >/dev/null 2>&1 &&
8071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bae7f79e
ILT
8072 as_expr=expr
8073else
8074 as_expr=false
8075fi
8076
81ecdfbb 8077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bae7f79e
ILT
8078 as_basename=basename
8079else
8080 as_basename=false
8081fi
8082
81ecdfbb
RW
8083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8084 as_dirname=dirname
8085else
8086 as_dirname=false
8087fi
bae7f79e 8088
81ecdfbb 8089as_me=`$as_basename -- "$0" ||
bae7f79e
ILT
8090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8091 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
8092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8093$as_echo X/"$0" |
8094 sed '/^.*\/\([^/][^/]*\)\/*$/{
8095 s//\1/
8096 q
8097 }
8098 /^X\/\(\/\/\)$/{
8099 s//\1/
8100 q
8101 }
8102 /^X\/\(\/\).*/{
8103 s//\1/
8104 q
8105 }
8106 s/.*/./; q'`
bae7f79e 8107
bae7f79e
ILT
8108# Avoid depending upon Character Ranges.
8109as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8111as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8112as_cr_digits='0123456789'
8113as_cr_alnum=$as_cr_Letters$as_cr_digits
8114
81ecdfbb
RW
8115ECHO_C= ECHO_N= ECHO_T=
8116case `echo -n x` in #(((((
8117-n*)
8118 case `echo 'xy\c'` in
8119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8120 xy) ECHO_C='\c';;
8121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8122 ECHO_T=' ';;
8123 esac;;
8124*)
8125 ECHO_N='-n';;
bae7f79e
ILT
8126esac
8127
81ecdfbb
RW
8128rm -f conf$$ conf$$.exe conf$$.file
8129if test -d conf$$.dir; then
8130 rm -f conf$$.dir/conf$$.file
bae7f79e 8131else
81ecdfbb
RW
8132 rm -f conf$$.dir
8133 mkdir conf$$.dir 2>/dev/null
bae7f79e 8134fi
81ecdfbb
RW
8135if (echo >conf$$.file) 2>/dev/null; then
8136 if ln -s conf$$.file conf$$ 2>/dev/null; then
bae7f79e 8137 as_ln_s='ln -s'
81ecdfbb
RW
8138 # ... but there are two gotchas:
8139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8141 # In both cases, we have to default to `cp -p'.
8142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8143 as_ln_s='cp -p'
8144 elif ln conf$$.file conf$$ 2>/dev/null; then
8145 as_ln_s=ln
8146 else
8147 as_ln_s='cp -p'
bae7f79e 8148 fi
bae7f79e
ILT
8149else
8150 as_ln_s='cp -p'
8151fi
81ecdfbb
RW
8152rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8153rmdir conf$$.dir 2>/dev/null
8154
8155
8156# as_fn_mkdir_p
8157# -------------
8158# Create "$as_dir" as a directory, including parents if necessary.
8159as_fn_mkdir_p ()
8160{
8161
8162 case $as_dir in #(
8163 -*) as_dir=./$as_dir;;
8164 esac
8165 test -d "$as_dir" || eval $as_mkdir_p || {
8166 as_dirs=
8167 while :; do
8168 case $as_dir in #(
8169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8170 *) as_qdir=$as_dir;;
8171 esac
8172 as_dirs="'$as_qdir' $as_dirs"
8173 as_dir=`$as_dirname -- "$as_dir" ||
8174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8175 X"$as_dir" : 'X\(//\)[^/]' \| \
8176 X"$as_dir" : 'X\(//\)$' \| \
8177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8178$as_echo X"$as_dir" |
8179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8180 s//\1/
8181 q
8182 }
8183 /^X\(\/\/\)[^/].*/{
8184 s//\1/
8185 q
8186 }
8187 /^X\(\/\/\)$/{
8188 s//\1/
8189 q
8190 }
8191 /^X\(\/\).*/{
8192 s//\1/
8193 q
8194 }
8195 s/.*/./; q'`
8196 test -d "$as_dir" && break
8197 done
8198 test -z "$as_dirs" || eval "mkdir $as_dirs"
8199 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8200
bae7f79e 8201
81ecdfbb 8202} # as_fn_mkdir_p
bae7f79e 8203if mkdir -p . 2>/dev/null; then
81ecdfbb 8204 as_mkdir_p='mkdir -p "$as_dir"'
bae7f79e
ILT
8205else
8206 test -d ./-p && rmdir ./-p
8207 as_mkdir_p=false
8208fi
8209
81ecdfbb
RW
8210if test -x / >/dev/null 2>&1; then
8211 as_test_x='test -x'
8212else
8213 if ls -dL / >/dev/null 2>&1; then
8214 as_ls_L_option=L
8215 else
8216 as_ls_L_option=
8217 fi
8218 as_test_x='
8219 eval sh -c '\''
8220 if test -d "$1"; then
8221 test -d "$1/.";
8222 else
8223 case $1 in #(
8224 -*)set "./$1";;
8225 esac;
8226 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8227 ???[sx]*):;;*)false;;esac;fi
8228 '\'' sh
8229 '
8230fi
8231as_executable_p=$as_test_x
bae7f79e
ILT
8232
8233# Sed expression to map a string onto a valid CPP name.
8234as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8235
8236# Sed expression to map a string onto a valid variable name.
8237as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8238
8239
bae7f79e 8240exec 6>&1
81ecdfbb
RW
8241## ----------------------------------- ##
8242## Main body of $CONFIG_STATUS script. ##
8243## ----------------------------------- ##
8244_ASEOF
8245test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
bae7f79e 8246
81ecdfbb
RW
8247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8248# Save the log message, to keep $0 and so on meaningful, and to
bae7f79e 8249# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8250# values after options handling.
8251ac_log="
8486ee48 8252This file was extended by gold $as_me 0.1, which was
81ecdfbb 8253generated by GNU Autoconf 2.64. Invocation command line was
bae7f79e
ILT
8254
8255 CONFIG_FILES = $CONFIG_FILES
8256 CONFIG_HEADERS = $CONFIG_HEADERS
8257 CONFIG_LINKS = $CONFIG_LINKS
8258 CONFIG_COMMANDS = $CONFIG_COMMANDS
8259 $ $0 $@
8260
81ecdfbb
RW
8261on `(hostname || uname -n) 2>/dev/null | sed 1q`
8262"
8263
bae7f79e
ILT
8264_ACEOF
8265
81ecdfbb
RW
8266case $ac_config_files in *"
8267"*) set x $ac_config_files; shift; ac_config_files=$*;;
8268esac
bae7f79e 8269
81ecdfbb
RW
8270case $ac_config_headers in *"
8271"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8272esac
bae7f79e 8273
bae7f79e 8274
81ecdfbb
RW
8275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8276# Files that config.status was made for.
8277config_files="$ac_config_files"
8278config_headers="$ac_config_headers"
8279config_commands="$ac_config_commands"
bae7f79e 8280
81ecdfbb 8281_ACEOF
bae7f79e 8282
81ecdfbb 8283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 8284ac_cs_usage="\
81ecdfbb
RW
8285\`$as_me' instantiates files and other configuration actions
8286from templates according to the current configuration. Unless the files
8287and actions are specified as TAGs, all are instantiated by default.
bae7f79e 8288
81ecdfbb 8289Usage: $0 [OPTION]... [TAG]...
bae7f79e
ILT
8290
8291 -h, --help print this help, then exit
81ecdfbb
RW
8292 -V, --version print version number and configuration settings, then exit
8293 -q, --quiet, --silent
8294 do not print progress messages
bae7f79e
ILT
8295 -d, --debug don't remove temporary files
8296 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
8297 --file=FILE[:TEMPLATE]
8298 instantiate the configuration file FILE
8299 --header=FILE[:TEMPLATE]
8300 instantiate the configuration header FILE
bae7f79e
ILT
8301
8302Configuration files:
8303$config_files
8304
8305Configuration headers:
8306$config_headers
8307
8308Configuration commands:
8309$config_commands
8310
81ecdfbb 8311Report bugs to the package provider."
bae7f79e 8312
81ecdfbb
RW
8313_ACEOF
8314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 8315ac_cs_version="\\
8486ee48 8316gold config.status 0.1
81ecdfbb
RW
8317configured by $0, generated by GNU Autoconf 2.64,
8318 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bae7f79e 8319
81ecdfbb 8320Copyright (C) 2009 Free Software Foundation, Inc.
bae7f79e
ILT
8321This config.status script is free software; the Free Software Foundation
8322gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
8323
8324ac_pwd='$ac_pwd'
8325srcdir='$srcdir'
8326INSTALL='$INSTALL'
8327MKDIR_P='$MKDIR_P'
8328AWK='$AWK'
8329test -n "\$AWK" || AWK=awk
bae7f79e
ILT
8330_ACEOF
8331
81ecdfbb
RW
8332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8333# The default lists apply if the user does not specify any file.
bae7f79e
ILT
8334ac_need_defaults=:
8335while test $# != 0
8336do
8337 case $1 in
8338 --*=*)
81ecdfbb
RW
8339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bae7f79e
ILT
8341 ac_shift=:
8342 ;;
81ecdfbb 8343 *)
bae7f79e
ILT
8344 ac_option=$1
8345 ac_optarg=$2
8346 ac_shift=shift
8347 ;;
bae7f79e
ILT
8348 esac
8349
8350 case $ac_option in
8351 # Handling of the options.
bae7f79e
ILT
8352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8353 ac_cs_recheck=: ;;
81ecdfbb
RW
8354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8355 $as_echo "$ac_cs_version"; exit ;;
8356 --debug | --debu | --deb | --de | --d | -d )
bae7f79e
ILT
8357 debug=: ;;
8358 --file | --fil | --fi | --f )
8359 $ac_shift
81ecdfbb
RW
8360 case $ac_optarg in
8361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8362 esac
8363 as_fn_append CONFIG_FILES " '$ac_optarg'"
bae7f79e
ILT
8364 ac_need_defaults=false;;
8365 --header | --heade | --head | --hea )
8366 $ac_shift
81ecdfbb
RW
8367 case $ac_optarg in
8368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8369 esac
8370 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bae7f79e 8371 ac_need_defaults=false;;
81ecdfbb
RW
8372 --he | --h)
8373 # Conflict between --help and --header
8374 as_fn_error "ambiguous option: \`$1'
8375Try \`$0 --help' for more information.";;
8376 --help | --hel | -h )
8377 $as_echo "$ac_cs_usage"; exit ;;
bae7f79e
ILT
8378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8380 ac_cs_silent=: ;;
8381
8382 # This is an error.
81ecdfbb
RW
8383 -*) as_fn_error "unrecognized option: \`$1'
8384Try \`$0 --help' for more information." ;;
bae7f79e 8385
81ecdfbb
RW
8386 *) as_fn_append ac_config_targets " $1"
8387 ac_need_defaults=false ;;
bae7f79e
ILT
8388
8389 esac
8390 shift
8391done
8392
8393ac_configure_extra_args=
8394
8395if $ac_cs_silent; then
8396 exec 6>/dev/null
8397 ac_configure_extra_args="$ac_configure_extra_args --silent"
8398fi
8399
8400_ACEOF
81ecdfbb 8401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 8402if \$ac_cs_recheck; then
81ecdfbb
RW
8403 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8404 shift
8405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8406 CONFIG_SHELL='$SHELL'
8407 export CONFIG_SHELL
8408 exec "\$@"
bae7f79e
ILT
8409fi
8410
8411_ACEOF
81ecdfbb
RW
8412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8413exec 5>>config.log
8414{
8415 echo
8416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8417## Running $as_me. ##
8418_ASBOX
8419 $as_echo "$ac_log"
8420} >&5
bae7f79e 8421
81ecdfbb
RW
8422_ACEOF
8423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bae7f79e 8424#
81ecdfbb 8425# INIT-COMMANDS
bae7f79e 8426#
bae7f79e
ILT
8427AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8428# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8429 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8430 # from automake.
8431 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8432 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8433 LINGUAS="${LINGUAS-%UNSET%}"
8434
8435
8436_ACEOF
8437
81ecdfbb 8438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e 8439
81ecdfbb 8440# Handling of arguments.
bae7f79e
ILT
8441for ac_config_target in $ac_config_targets
8442do
81ecdfbb
RW
8443 case $ac_config_target in
8444 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8446 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8447 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8448 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8449 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8450
8451 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
bae7f79e
ILT
8452 esac
8453done
8454
81ecdfbb 8455
bae7f79e
ILT
8456# If the user did not use the arguments to specify the items to instantiate,
8457# then the envvar interface is used. Set only those that are not.
8458# We use the long form for the default assignment because of an extremely
8459# bizarre bug on SunOS 4.1.3.
8460if $ac_need_defaults; then
8461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8464fi
8465
8466# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 8467# simply because there is no reason against having it here, and in addition,
bae7f79e 8468# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
8469# Hook for its removal unless debugging.
8470# Note that there is a small window in which the directory will not be cleaned:
8471# after its creation but before its name has been assigned to `$tmp'.
bae7f79e
ILT
8472$debug ||
8473{
81ecdfbb
RW
8474 tmp=
8475 trap 'exit_status=$?
8476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8477' 0
8478 trap 'as_fn_exit 1' 1 2 13 15
bae7f79e 8479}
bae7f79e
ILT
8480# Create a (secure) tmp directory for tmp files.
8481
8482{
81ecdfbb 8483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bae7f79e
ILT
8484 test -n "$tmp" && test -d "$tmp"
8485} ||
8486{
81ecdfbb
RW
8487 tmp=./conf$$-$RANDOM
8488 (umask 077 && mkdir "$tmp")
8489} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8490
8491# Set up the scripts for CONFIG_FILES section.
8492# No need to generate them if there are no CONFIG_FILES.
8493# This happens for instance with `./config.status config.h'.
8494if test -n "$CONFIG_FILES"; then
8495
8496
8497ac_cr=`echo X | tr X '\015'`
8498# On cygwin, bash can eat \r inside `` if the user requested igncr.
8499# But we know of no other shell where ac_cr would be empty at this
8500# point, so we can use a bashism as a fallback.
8501if test "x$ac_cr" = x; then
8502 eval ac_cr=\$\'\\r\'
8503fi
8504ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8505if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8506 ac_cs_awk_cr='\r'
8507else
8508 ac_cs_awk_cr=$ac_cr
8509fi
8510
8511echo 'BEGIN {' >"$tmp/subs1.awk" &&
8512_ACEOF
8513
8514
8515{
8516 echo "cat >conf$$subs.awk <<_ACEOF" &&
8517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8518 echo "_ACEOF"
8519} >conf$$subs.sh ||
8520 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8521ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8522ac_delim='%!_!# '
8523for ac_last_try in false false false false false :; do
8524 . ./conf$$subs.sh ||
8525 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8526
8527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8528 if test $ac_delim_n = $ac_delim_num; then
8529 break
8530 elif $ac_last_try; then
8531 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8532 else
8533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8534 fi
8535done
8536rm -f conf$$subs.sh
8537
8538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8539cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8540_ACEOF
8541sed -n '
8542h
8543s/^/S["/; s/!.*/"]=/
8544p
8545g
8546s/^[^!]*!//
8547:repl
8548t repl
8549s/'"$ac_delim"'$//
8550t delim
8551:nl
8552h
8553s/\(.\{148\}\).*/\1/
8554t more1
8555s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8556p
8557n
8558b repl
8559:more1
8560s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8561p
8562g
8563s/.\{148\}//
8564t nl
8565:delim
8566h
8567s/\(.\{148\}\).*/\1/
8568t more2
8569s/["\\]/\\&/g; s/^/"/; s/$/"/
8570p
8571b
8572:more2
8573s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8574p
8575g
8576s/.\{148\}//
8577t delim
8578' <conf$$subs.awk | sed '
8579/^[^""]/{
8580 N
8581 s/\n//
8582}
8583' >>$CONFIG_STATUS || ac_write_fail=1
8584rm -f conf$$subs.awk
8585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8586_ACAWK
8587cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8588 for (key in S) S_is_set[key] = 1
8589 FS = "\a"
8590
8591}
bae7f79e 8592{
81ecdfbb
RW
8593 line = $ 0
8594 nfields = split(line, field, "@")
8595 substed = 0
8596 len = length(field[1])
8597 for (i = 2; i < nfields; i++) {
8598 key = field[i]
8599 keylen = length(key)
8600 if (S_is_set[key]) {
8601 value = S[key]
8602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8603 len += length(value) + length(field[++i])
8604 substed = 1
8605 } else
8606 len += 1 + keylen
8607 }
8608
8609 print line
bae7f79e
ILT
8610}
8611
81ecdfbb
RW
8612_ACAWK
8613_ACEOF
8614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8615if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8617else
8618 cat
8619fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8620 || as_fn_error "could not setup config files machinery" "$LINENO" 5
bae7f79e
ILT
8621_ACEOF
8622
81ecdfbb
RW
8623# VPATH may cause trouble with some makes, so we remove $(srcdir),
8624# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8625# trailing colons and then remove the whole line if VPATH becomes empty
8626# (actually we leave an empty line to preserve line numbers).
8627if test "x$srcdir" = x.; then
8628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8629s/:*\$(srcdir):*/:/
8630s/:*\${srcdir}:*/:/
8631s/:*@srcdir@:*/:/
8632s/^\([^=]*=[ ]*\):*/\1/
8633s/:*$//
8634s/^[^=]*=[ ]*$//
8635}'
8636fi
bae7f79e 8637
81ecdfbb
RW
8638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8639fi # test -n "$CONFIG_FILES"
bae7f79e 8640
81ecdfbb
RW
8641# Set up the scripts for CONFIG_HEADERS section.
8642# No need to generate them if there are no CONFIG_HEADERS.
8643# This happens for instance with `./config.status Makefile'.
8644if test -n "$CONFIG_HEADERS"; then
8645cat >"$tmp/defines.awk" <<\_ACAWK ||
8646BEGIN {
bae7f79e
ILT
8647_ACEOF
8648
81ecdfbb
RW
8649# Transform confdefs.h into an awk script `defines.awk', embedded as
8650# here-document in config.status, that substitutes the proper values into
8651# config.h.in to produce config.h.
8652
8653# Create a delimiter string that does not exist in confdefs.h, to ease
8654# handling of long lines.
8655ac_delim='%!_!# '
8656for ac_last_try in false false :; do
8657 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8658 if test -z "$ac_t"; then
8659 break
8660 elif $ac_last_try; then
8661 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8662 else
8663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
bae7f79e 8664 fi
81ecdfbb 8665done
bae7f79e 8666
81ecdfbb
RW
8667# For the awk script, D is an array of macro values keyed by name,
8668# likewise P contains macro parameters if any. Preserve backslash
8669# newline sequences.
8670
8671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8672sed -n '
8673s/.\{148\}/&'"$ac_delim"'/g
8674t rset
8675:rset
8676s/^[ ]*#[ ]*define[ ][ ]*/ /
8677t def
8678d
8679:def
8680s/\\$//
8681t bsnl
8682s/["\\]/\\&/g
8683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8684D["\1"]=" \3"/p
8685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8686d
8687:bsnl
8688s/["\\]/\\&/g
8689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8690D["\1"]=" \3\\\\\\n"\\/p
8691t cont
8692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8693t cont
8694d
8695:cont
8696n
8697s/.\{148\}/&'"$ac_delim"'/g
8698t clear
8699:clear
8700s/\\$//
8701t bsnlc
8702s/["\\]/\\&/g; s/^/"/; s/$/"/p
8703d
8704:bsnlc
8705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8706b cont
8707' <confdefs.h | sed '
8708s/'"$ac_delim"'/"\\\
8709"/g' >>$CONFIG_STATUS || ac_write_fail=1
8710
8711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8712 for (key in D) D_is_set[key] = 1
8713 FS = "\a"
8714}
8715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8716 line = \$ 0
8717 split(line, arg, " ")
8718 if (arg[1] == "#") {
8719 defundef = arg[2]
8720 mac1 = arg[3]
8721 } else {
8722 defundef = substr(arg[1], 2)
8723 mac1 = arg[2]
8724 }
8725 split(mac1, mac2, "(") #)
8726 macro = mac2[1]
8727 prefix = substr(line, 1, index(line, defundef) - 1)
8728 if (D_is_set[macro]) {
8729 # Preserve the white space surrounding the "#".
8730 print prefix "define", macro P[macro] D[macro]
8731 next
8732 } else {
8733 # Replace #undef with comments. This is necessary, for example,
8734 # in the case of _POSIX_SOURCE, which is predefined and required
8735 # on some systems where configure will not decide to define it.
8736 if (defundef == "undef") {
8737 print "/*", prefix defundef, macro, "*/"
8738 next
8739 }
8740 }
8741}
8742{ print }
8743_ACAWK
bae7f79e 8744_ACEOF
81ecdfbb
RW
8745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8746 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8747fi # test -n "$CONFIG_HEADERS"
8748
8749
8750eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8751shift
8752for ac_tag
8753do
8754 case $ac_tag in
8755 :[FHLC]) ac_mode=$ac_tag; continue;;
8756 esac
8757 case $ac_mode$ac_tag in
8758 :[FHL]*:*);;
8759 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8760 :[FH]-) ac_tag=-:-;;
8761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8762 esac
8763 ac_save_IFS=$IFS
8764 IFS=:
8765 set x $ac_tag
8766 IFS=$ac_save_IFS
8767 shift
8768 ac_file=$1
8769 shift
8770
8771 case $ac_mode in
8772 :L) ac_source=$1;;
8773 :[FH])
8774 ac_file_inputs=
8775 for ac_f
8776 do
8777 case $ac_f in
8778 -) ac_f="$tmp/stdin";;
8779 *) # Look for the file first in the build tree, then in the source tree
8780 # (if the path is not absolute). The absolute path cannot be DOS-style,
8781 # because $ac_f cannot contain `:'.
8782 test -f "$ac_f" ||
8783 case $ac_f in
8784 [\\/$]*) false;;
8785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8786 esac ||
8787 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8788 esac
8789 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8790 as_fn_append ac_file_inputs " '$ac_f'"
8791 done
8792
8793 # Let's still pretend it is `configure' which instantiates (i.e., don't
8794 # use $as_me), people would be surprised to read:
8795 # /* config.h. Generated by config.status. */
8796 configure_input='Generated from '`
8797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8798 `' by configure.'
8799 if test x"$ac_file" != x-; then
8800 configure_input="$ac_file. $configure_input"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8802$as_echo "$as_me: creating $ac_file" >&6;}
8803 fi
8804 # Neutralize special characters interpreted by sed in replacement strings.
8805 case $configure_input in #(
8806 *\&* | *\|* | *\\* )
8807 ac_sed_conf_input=`$as_echo "$configure_input" |
8808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8809 *) ac_sed_conf_input=$configure_input;;
8810 esac
8811
8812 case $ac_tag in
8813 *:-:* | *:-) cat >"$tmp/stdin" \
8814 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8815 esac
8816 ;;
bae7f79e
ILT
8817 esac
8818
81ecdfbb 8819 ac_dir=`$as_dirname -- "$ac_file" ||
bae7f79e
ILT
8820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8821 X"$ac_file" : 'X\(//\)[^/]' \| \
8822 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8824$as_echo X"$ac_file" |
8825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8826 s//\1/
8827 q
8828 }
8829 /^X\(\/\/\)[^/].*/{
8830 s//\1/
8831 q
8832 }
8833 /^X\(\/\/\)$/{
8834 s//\1/
8835 q
8836 }
8837 /^X\(\/\).*/{
8838 s//\1/
8839 q
8840 }
8841 s/.*/./; q'`
8842 as_dir="$ac_dir"; as_fn_mkdir_p
bae7f79e
ILT
8843 ac_builddir=.
8844
81ecdfbb
RW
8845case "$ac_dir" in
8846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8847*)
8848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8849 # A ".." for each directory in $ac_dir_suffix.
8850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8851 case $ac_top_builddir_sub in
8852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8854 esac ;;
8855esac
8856ac_abs_top_builddir=$ac_pwd
8857ac_abs_builddir=$ac_pwd$ac_dir_suffix
8858# for backward compatibility:
8859ac_top_builddir=$ac_top_build_prefix
bae7f79e
ILT
8860
8861case $srcdir in
81ecdfbb 8862 .) # We are building in place.
bae7f79e 8863 ac_srcdir=.
81ecdfbb
RW
8864 ac_top_srcdir=$ac_top_builddir_sub
8865 ac_abs_top_srcdir=$ac_pwd ;;
8866 [\\/]* | ?:[\\/]* ) # Absolute name.
bae7f79e 8867 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8868 ac_top_srcdir=$srcdir
8869 ac_abs_top_srcdir=$srcdir ;;
8870 *) # Relative name.
8871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8872 ac_top_srcdir=$ac_top_build_prefix$srcdir
8873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bae7f79e 8874esac
81ecdfbb 8875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bae7f79e 8876
bae7f79e 8877
81ecdfbb
RW
8878 case $ac_mode in
8879 :F)
8880 #
8881 # CONFIG_FILE
8882 #
bae7f79e
ILT
8883
8884 case $INSTALL in
8885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 8886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bae7f79e 8887 esac
81ecdfbb
RW
8888 ac_MKDIR_P=$MKDIR_P
8889 case $MKDIR_P in
8890 [\\/$]* | ?:[\\/]* ) ;;
8891 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8892 esac
8893_ACEOF
bae7f79e 8894
81ecdfbb
RW
8895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8896# If the template does not know about datarootdir, expand it.
8897# FIXME: This hack should be removed a few years after 2.60.
8898ac_datarootdir_hack=; ac_datarootdir_seen=
8899ac_sed_dataroot='
8900/datarootdir/ {
8901 p
8902 q
8903}
8904/@datadir@/p
8905/@docdir@/p
8906/@infodir@/p
8907/@localedir@/p
8908/@mandir@/p'
8909case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8910*datarootdir*) ac_datarootdir_seen=yes;;
8911*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8913$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8914_ACEOF
8915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8916 ac_datarootdir_hack='
8917 s&@datadir@&$datadir&g
8918 s&@docdir@&$docdir&g
8919 s&@infodir@&$infodir&g
8920 s&@localedir@&$localedir&g
8921 s&@mandir@&$mandir&g
8922 s&\\\${datarootdir}&$datarootdir&g' ;;
8923esac
bae7f79e 8924_ACEOF
81ecdfbb
RW
8925
8926# Neutralize VPATH when `$srcdir' = `.'.
8927# Shell code in configure.ac might set extrasub.
8928# FIXME: do we really want to maintain this feature?
8929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8930ac_sed_extra="$ac_vpsub
bae7f79e
ILT
8931$extrasub
8932_ACEOF
81ecdfbb 8933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bae7f79e
ILT
8934:t
8935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
8936s|@configure_input@|$ac_sed_conf_input|;t t
8937s&@top_builddir@&$ac_top_builddir_sub&;t t
8938s&@top_build_prefix@&$ac_top_build_prefix&;t t
8939s&@srcdir@&$ac_srcdir&;t t
8940s&@abs_srcdir@&$ac_abs_srcdir&;t t
8941s&@top_srcdir@&$ac_top_srcdir&;t t
8942s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8943s&@builddir@&$ac_builddir&;t t
8944s&@abs_builddir@&$ac_abs_builddir&;t t
8945s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8946s&@INSTALL@&$ac_INSTALL&;t t
8947s&@MKDIR_P@&$ac_MKDIR_P&;t t
8948$ac_datarootdir_hack
8949"
8950eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8951 || as_fn_error "could not create $ac_file" "$LINENO" 5
8952
8953test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8954 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8957which seems to be undefined. Please make sure it is defined." >&5
8958$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8959which seems to be undefined. Please make sure it is defined." >&2;}
8960
8961 rm -f "$tmp/stdin"
bae7f79e 8962 case $ac_file in
81ecdfbb
RW
8963 -) cat "$tmp/out" && rm -f "$tmp/out";;
8964 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8965 esac \
8966 || as_fn_error "could not create $ac_file" "$LINENO" 5
8967 ;;
8968 :H)
8969 #
8970 # CONFIG_HEADER
8971 #
bae7f79e 8972 if test x"$ac_file" != x-; then
81ecdfbb
RW
8973 {
8974 $as_echo "/* $configure_input */" \
8975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8976 } >"$tmp/config.h" \
8977 || as_fn_error "could not create $ac_file" "$LINENO" 5
8978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8980$as_echo "$as_me: $ac_file is unchanged" >&6;}
bae7f79e 8981 else
81ecdfbb
RW
8982 rm -f "$ac_file"
8983 mv "$tmp/config.h" "$ac_file" \
8984 || as_fn_error "could not create $ac_file" "$LINENO" 5
bae7f79e
ILT
8985 fi
8986 else
81ecdfbb
RW
8987 $as_echo "/* $configure_input */" \
8988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8989 || as_fn_error "could not create -" "$LINENO" 5
bae7f79e 8990 fi
81ecdfbb
RW
8991# Compute "$ac_file"'s index in $config_headers.
8992_am_arg="$ac_file"
bae7f79e
ILT
8993_am_stamp_count=1
8994for _am_header in $config_headers :; do
8995 case $_am_header in
81ecdfbb 8996 $_am_arg | $_am_arg:* )
bae7f79e
ILT
8997 break ;;
8998 * )
8999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9000 esac
9001done
81ecdfbb
RW
9002echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9003$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9004 X"$_am_arg" : 'X\(//\)[^/]' \| \
9005 X"$_am_arg" : 'X\(//\)$' \| \
9006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9007$as_echo X"$_am_arg" |
9008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9009 s//\1/
9010 q
9011 }
9012 /^X\(\/\/\)[^/].*/{
9013 s//\1/
9014 q
9015 }
9016 /^X\(\/\/\)$/{
9017 s//\1/
9018 q
9019 }
9020 /^X\(\/\).*/{
9021 s//\1/
9022 q
9023 }
9024 s/.*/./; q'`/stamp-h$_am_stamp_count
9025 ;;
bae7f79e 9026
81ecdfbb
RW
9027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9028$as_echo "$as_me: executing $ac_file commands" >&6;}
9029 ;;
9030 esac
bae7f79e
ILT
9031
9032
81ecdfbb
RW
9033 case $ac_file$ac_mode in
9034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9035 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9036 # are listed without --file. Let's play safe and only enable the eval
9037 # if we detect the quoting.
9038 case $CONFIG_FILES in
9039 *\'*) eval set x "$CONFIG_FILES" ;;
9040 *) set x $CONFIG_FILES ;;
9041 esac
9042 shift
9043 for mf
9044 do
9045 # Strip MF so we end up with the name of the file.
9046 mf=`echo "$mf" | sed -e 's/:.*$//'`
9047 # Check whether this is an Automake generated Makefile or not.
9048 # We used to match only the files named `Makefile.in', but
9049 # some people rename them; so instead we look at the file content.
9050 # Grep'ing the first line is not enough: some people post-process
9051 # each Makefile.in and add a new line on top of each file to say so.
9052 # Grep'ing the whole file is not good either: AIX grep has a line
9053 # limit of 2048, but all sed's we know have understand at least 4000.
9054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9055 dirpart=`$as_dirname -- "$mf" ||
bae7f79e
ILT
9056$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9057 X"$mf" : 'X\(//\)[^/]' \| \
9058 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
9059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9060$as_echo X"$mf" |
9061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9062 s//\1/
9063 q
9064 }
9065 /^X\(\/\/\)[^/].*/{
9066 s//\1/
9067 q
9068 }
9069 /^X\(\/\/\)$/{
9070 s//\1/
9071 q
9072 }
9073 /^X\(\/\).*/{
9074 s//\1/
9075 q
9076 }
9077 s/.*/./; q'`
9078 else
9079 continue
9080 fi
9081 # Extract the definition of DEPDIR, am__include, and am__quote
9082 # from the Makefile without running `make'.
9083 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9084 test -z "$DEPDIR" && continue
9085 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9086 test -z "am__include" && continue
9087 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9088 # When using ansi2knr, U may be empty or an underscore; expand it
9089 U=`sed -n 's/^U = //p' < "$mf"`
9090 # Find all dependency output files, they are included files with
9091 # $(DEPDIR) in their names. We invoke sed twice because it is the
9092 # simplest approach to changing $(DEPDIR) to its actual value in the
9093 # expansion.
9094 for file in `sed -n "
9095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9097 # Make sure the directory exists.
9098 test -f "$dirpart/$file" && continue
9099 fdir=`$as_dirname -- "$file" ||
bae7f79e
ILT
9100$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9101 X"$file" : 'X\(//\)[^/]' \| \
9102 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
9103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9104$as_echo X"$file" |
9105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9106 s//\1/
9107 q
9108 }
9109 /^X\(\/\/\)[^/].*/{
9110 s//\1/
9111 q
9112 }
9113 /^X\(\/\/\)$/{
9114 s//\1/
9115 q
9116 }
9117 /^X\(\/\).*/{
9118 s//\1/
9119 q
9120 }
9121 s/.*/./; q'`
9122 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9123 # echo "creating $dirpart/$file"
9124 echo '# dummy' > "$dirpart/$file"
bae7f79e 9125 done
bae7f79e 9126 done
81ecdfbb 9127}
bae7f79e 9128 ;;
81ecdfbb 9129 "default-1":C)
bae7f79e
ILT
9130 for ac_file in $CONFIG_FILES; do
9131 # Support "outfile[:infile[:infile...]]"
9132 case "$ac_file" in
9133 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9134 esac
9135 # PO directories have a Makefile.in generated from Makefile.in.in.
9136 case "$ac_file" in */Makefile.in)
9137 # Adjust a relative srcdir.
9138 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
c7791212 9139 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
bae7f79e
ILT
9140 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9141 # In autoconf-2.13 it is called $ac_given_srcdir.
9142 # In autoconf-2.50 it is called $srcdir.
9143 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9144 case "$ac_given_srcdir" in
9145 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9146 /*) top_srcdir="$ac_given_srcdir" ;;
9147 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9148 esac
9149 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9150 rm -f "$ac_dir/POTFILES"
9151 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9152 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9153 POMAKEFILEDEPS="POTFILES.in"
9154 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9155 # on $ac_dir but don't depend on user-specified configuration
9156 # parameters.
9157 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9158 # The LINGUAS file contains the set of available languages.
9159 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9160 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9161 fi
9162 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9163 # Hide the ALL_LINGUAS assigment from automake.
9164 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9165 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9166 else
9167 # The set of available languages was given in configure.in.
9168 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9169 fi
9170 case "$ac_given_srcdir" in
9171 .) srcdirpre= ;;
9172 *) srcdirpre='$(srcdir)/' ;;
9173 esac
9174 POFILES=
9175 GMOFILES=
9176 UPDATEPOFILES=
9177 DUMMYPOFILES=
9178 for lang in $ALL_LINGUAS; do
9179 POFILES="$POFILES $srcdirpre$lang.po"
9180 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9181 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9182 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9183 done
9184 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9185 # environment variable.
9186 INST_LINGUAS=
9187 if test -n "$ALL_LINGUAS"; then
9188 for presentlang in $ALL_LINGUAS; do
9189 useit=no
9190 if test "%UNSET%" != "$LINGUAS"; then
9191 desiredlanguages="$LINGUAS"
9192 else
9193 desiredlanguages="$ALL_LINGUAS"
9194 fi
9195 for desiredlang in $desiredlanguages; do
9196 # Use the presentlang catalog if desiredlang is
9197 # a. equal to presentlang, or
9198 # b. a variant of presentlang (because in this case,
9199 # presentlang can be used as a fallback for messages
9200 # which are not translated in the desiredlang catalog).
9201 case "$desiredlang" in
9202 "$presentlang"*) useit=yes;;
9203 esac
9204 done
9205 if test $useit = yes; then
9206 INST_LINGUAS="$INST_LINGUAS $presentlang"
9207 fi
9208 done
9209 fi
9210 CATALOGS=
9211 if test -n "$INST_LINGUAS"; then
9212 for lang in $INST_LINGUAS; do
9213 CATALOGS="$CATALOGS $lang.gmo"
9214 done
9215 fi
9216 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9217 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9218 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9219 if test -f "$f"; then
9220 case "$f" in
9221 *.orig | *.bak | *~) ;;
9222 *) cat "$f" >> "$ac_dir/Makefile" ;;
9223 esac
9224 fi
9225 done
9226 fi
9227 ;;
9228 esac
9229 done ;;
81ecdfbb 9230
bae7f79e 9231 esac
81ecdfbb 9232done # for ac_tag
bae7f79e 9233
bae7f79e 9234
81ecdfbb 9235as_fn_exit 0
bae7f79e 9236_ACEOF
bae7f79e
ILT
9237ac_clean_files=$ac_clean_files_save
9238
81ecdfbb
RW
9239test $ac_write_fail = 0 ||
9240 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9241
bae7f79e
ILT
9242
9243# configure is writing to config.log, and then calls config.status.
9244# config.status does its own redirection, appending to config.log.
9245# Unfortunately, on DOS this fails, as config.log is still kept open
9246# by configure, so config.status won't be able to write to it; its
9247# output is simply discarded. So we exec the FD to /dev/null,
9248# effectively closing config.log, so it can be properly (re)opened and
9249# appended to by config.status. When coming back to configure, we
9250# need to make the FD available again.
9251if test "$no_create" != yes; then
9252 ac_cs_success=:
9253 ac_config_status_args=
9254 test "$silent" = yes &&
9255 ac_config_status_args="$ac_config_status_args --quiet"
9256 exec 5>/dev/null
9257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9258 exec 5>>config.log
9259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9260 # would make configure fail if this is the last instruction.
81ecdfbb
RW
9261 $ac_cs_success || as_fn_exit $?
9262fi
9263if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9265$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bae7f79e
ILT
9266fi
9267
This page took 0.861491 seconds and 4 git commands to generate.