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