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