]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/igen/configure
sim: drop unused SIM_AC_OPTION_PACKAGES
[thirdparty/binutils-gdb.git] / sim / igen / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
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.
b7026657 8#
b7026657
AC
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## -------------------- ##
b7026657 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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
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
b7026657 31fi
c906108c 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'
b7026657 50else
81ecdfbb
RW
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 }
b7026657 79fi
c906108c
SS
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
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 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
b7026657 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."
b7026657 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."
b7026657 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
263
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
c906108c 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 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
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
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'`
b7026657 410
b7026657
AC
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
c906108c 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 |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 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; }
b7026657
AC
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"
b7026657
AC
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';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 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'
b7026657 483 fi
b7026657
AC
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
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 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
c906108c 519
b7026657
AC
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'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
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`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="table.h"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593RANLIB
594AR
595LIBIBERTY_LIB
596RANLIB_FOR_BUILD
597CFLAGS_FOR_BUILD
598CC_FOR_BUILD
599AR_FLAGS_FOR_BUILD
600AR_FOR_BUILD
601EGREP
602GREP
603CPP
604target_os
605target_vendor
606target_cpu
607target
608host_os
609host_vendor
610host_cpu
611host
612build_os
613build_vendor
614build_cpu
615build
616OBJEXT
617EXEEXT
618ac_ct_CC
619CPPFLAGS
620LDFLAGS
621CFLAGS
622CC
623INSTALL_DATA
624INSTALL_SCRIPT
625INSTALL_PROGRAM
6ffe910a
MF
626WERROR_CFLAGS
627WARN_CFLAGS
628sim_xor_endian
6ffe910a
MF
629sim_smp
630sim_reserved_bits
6ffe910a
MF
631sim_inline
632sim_hw
633sim_hw_objs
634sim_hw_cflags
635sim_default_model
636sim_scache
637sim_float
6ffe910a
MF
638sim_endian
639sim_bitsize
640sim_assert
641sim_alignment
642sim_environment
81ecdfbb
RW
643target_alias
644host_alias
645build_alias
646LIBS
647ECHO_T
648ECHO_N
649ECHO_C
650DEFS
651mandir
652localedir
653libdir
654psdir
655pdfdir
656dvidir
657htmldir
658infodir
659docdir
660oldincludedir
661includedir
662localstatedir
663sharedstatedir
664sysconfdir
665datadir
666datarootdir
667libexecdir
668sbindir
669bindir
670program_transform_name
671prefix
672exec_prefix
673PACKAGE_URL
674PACKAGE_BUGREPORT
675PACKAGE_STRING
676PACKAGE_VERSION
677PACKAGE_TARNAME
678PACKAGE_NAME
679PATH_SEPARATOR
6ffe910a 680SHELL'
b7026657 681ac_subst_files=''
81ecdfbb
RW
682ac_user_opts='
683enable_option_checking
2232061b 684enable_werror
81ecdfbb
RW
685enable_build_warnings
686enable_sim_build_warnings
687'
688 ac_precious_vars='build_alias
689host_alias
690target_alias
691CC
692CFLAGS
693LDFLAGS
694LIBS
695CPPFLAGS
696CPP'
697
c906108c
SS
698
699# Initialize some variables set by options.
b7026657
AC
700ac_init_help=
701ac_init_version=false
81ecdfbb
RW
702ac_unrecognized_opts=
703ac_unrecognized_sep=
c906108c
SS
704# The variables have the same names as the options, with
705# dashes changed to underlines.
b7026657 706cache_file=/dev/null
c906108c 707exec_prefix=NONE
c906108c 708no_create=
c906108c
SS
709no_recursion=
710prefix=NONE
711program_prefix=NONE
712program_suffix=NONE
713program_transform_name=s,x,x,
714silent=
715site=
716srcdir=
c906108c
SS
717verbose=
718x_includes=NONE
719x_libraries=NONE
b7026657
AC
720
721# Installation directory options.
722# These are left unexpanded so users can "make install exec_prefix=/foo"
723# and all the variables that are supposed to be based on exec_prefix
724# by default will actually change.
725# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 726# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
727bindir='${exec_prefix}/bin'
728sbindir='${exec_prefix}/sbin'
729libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
730datarootdir='${prefix}/share'
731datadir='${datarootdir}'
c906108c
SS
732sysconfdir='${prefix}/etc'
733sharedstatedir='${prefix}/com'
734localstatedir='${prefix}/var'
c906108c
SS
735includedir='${prefix}/include'
736oldincludedir='/usr/include'
81ecdfbb
RW
737docdir='${datarootdir}/doc/${PACKAGE}'
738infodir='${datarootdir}/info'
739htmldir='${docdir}'
740dvidir='${docdir}'
741pdfdir='${docdir}'
742psdir='${docdir}'
743libdir='${exec_prefix}/lib'
744localedir='${datarootdir}/locale'
745mandir='${datarootdir}/man'
c906108c 746
c906108c 747ac_prev=
81ecdfbb 748ac_dashdash=
c906108c
SS
749for ac_option
750do
c906108c
SS
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
81ecdfbb 753 eval $ac_prev=\$ac_option
c906108c
SS
754 ac_prev=
755 continue
756 fi
757
81ecdfbb
RW
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
c906108c
SS
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
81ecdfbb
RW
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
c906108c
SS
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 772 bindir=$ac_optarg ;;
c906108c
SS
773
774 -build | --build | --buil | --bui | --bu)
b7026657 775 ac_prev=build_alias ;;
c906108c 776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 777 build_alias=$ac_optarg ;;
c906108c
SS
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
c906108c 788
81ecdfbb 789 -datadir | --datadir | --datadi | --datad)
c906108c 790 ac_prev=datadir ;;
81ecdfbb 791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 792 datadir=$ac_optarg ;;
c906108c 793
81ecdfbb
RW
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
c906108c 801 -disable-* | --disable-*)
81ecdfbb 802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 803 # Reject names that are not valid shell variable names.
81ecdfbb
RW
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
809 *"
810"enable_$ac_useropt"
811"*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
816
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
821
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
c906108c
SS
826
827 -enable-* | --enable-*)
81ecdfbb 828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 829 # Reject names that are not valid shell variable names.
81ecdfbb
RW
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
835 *"
836"enable_$ac_useropt"
837"*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
c906108c 840 esac
81ecdfbb 841 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
842
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
b7026657 850 exec_prefix=$ac_optarg ;;
c906108c
SS
851
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
855
b7026657
AC
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
c906108c
SS
862
863 -host | --host | --hos | --ho)
b7026657 864 ac_prev=host_alias ;;
c906108c 865 -host=* | --host=* | --hos=* | --ho=*)
b7026657 866 host_alias=$ac_optarg ;;
c906108c 867
81ecdfbb
RW
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
873
c906108c
SS
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 879 includedir=$ac_optarg ;;
c906108c
SS
880
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 884 infodir=$ac_optarg ;;
c906108c
SS
885
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 889 libdir=$ac_optarg ;;
c906108c
SS
890
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
b7026657 896 libexecdir=$ac_optarg ;;
c906108c 897
81ecdfbb
RW
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
902
c906108c 903 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 904 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 908 localstatedir=$ac_optarg ;;
c906108c
SS
909
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 913 mandir=$ac_optarg ;;
c906108c
SS
914
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
918
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 920 | --no-cr | --no-c | -n)
c906108c
SS
921 no_create=yes ;;
922
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
926
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 934 oldincludedir=$ac_optarg ;;
c906108c
SS
935
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 939 prefix=$ac_optarg ;;
c906108c
SS
940
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 946 program_prefix=$ac_optarg ;;
c906108c
SS
947
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 953 program_suffix=$ac_optarg ;;
c906108c
SS
954
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 970 program_transform_name=$ac_optarg ;;
c906108c 971
81ecdfbb
RW
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
976
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
981
c906108c
SS
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
985
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
b7026657 990 sbindir=$ac_optarg ;;
c906108c
SS
991
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
b7026657 1001 sharedstatedir=$ac_optarg ;;
c906108c
SS
1002
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
b7026657 1006 site=$ac_optarg ;;
eb2d80b4 1007
c906108c
SS
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1011 srcdir=$ac_optarg ;;
c906108c
SS
1012
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1018 sysconfdir=$ac_optarg ;;
c906108c
SS
1019
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1021 ac_prev=target_alias ;;
c906108c 1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1023 target_alias=$ac_optarg ;;
c906108c
SS
1024
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1027
b7026657
AC
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
c906108c
SS
1030
1031 -with-* | --with-*)
81ecdfbb 1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1033 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040"with_$ac_useropt"
1041"*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
c906108c 1044 esac
81ecdfbb 1045 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1046
1047 -without-* | --without-*)
81ecdfbb 1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1049 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056"with_$ac_useropt"
1057"*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=no ;;
c906108c
SS
1062
1063 --x)
1064 # Obsolete; use --with-x.
1065 with_x=yes ;;
1066
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1072 x_includes=$ac_optarg ;;
c906108c
SS
1073
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1079 x_libraries=$ac_optarg ;;
c906108c 1080
81ecdfbb
RW
1081 -*) as_fn_error "unrecognized option: \`$ac_option'
1082Try \`$0 --help' for more information."
c906108c
SS
1083 ;;
1084
b7026657
AC
1085 *=*)
1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1088 case $ac_envvar in #(
1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1091 esac
1092 eval $ac_envvar=\$ac_optarg
b7026657
AC
1093 export $ac_envvar ;;
1094
c906108c 1095 *)
b7026657 1096 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1100 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1101 ;;
1102
1103 esac
1104done
1105
1106if test -n "$ac_prev"; then
b7026657 1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1108 as_fn_error "missing argument to $ac_option"
c906108c 1109fi
c906108c 1110
81ecdfbb
RW
1111if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1113 no) ;;
1114 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1116 esac
81ecdfbb 1117fi
c906108c 1118
81ecdfbb
RW
1119# Check all directory arguments for consistency.
1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
c906108c 1124do
81ecdfbb
RW
1125 eval ac_val=\$$ac_var
1126 # Remove trailing slashes.
1127 case $ac_val in
1128 */ )
1129 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\$ac_val;;
1131 esac
1132 # Be sure to have absolute directory names.
b7026657 1133 case $ac_val in
81ecdfbb
RW
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1136 esac
81ecdfbb 1137 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1138done
1139
b7026657
AC
1140# There might be people who depend on the old broken behavior: `$host'
1141# used to hold the argument of --host etc.
1142# FIXME: To remove some day.
1143build=$build_alias
1144host=$host_alias
1145target=$target_alias
1146
1147# FIXME: To remove some day.
1148if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
81ecdfbb 1151 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1155 fi
1156fi
c906108c 1157
b7026657
AC
1158ac_tool_prefix=
1159test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160
1161test "$silent" = yes && exec 6>/dev/null
c906108c 1162
c906108c 1163
81ecdfbb
RW
1164ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165ac_ls_di=`ls -di .` &&
1166ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 as_fn_error "working directory cannot be determined"
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 as_fn_error "pwd does not report name of working directory"
1170
1171
c906108c
SS
1172# Find the source files, if location was not specified.
1173if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
81ecdfbb
RW
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$as_myself" ||
1177$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$as_myself" : 'X\(//\)[^/]' \| \
1179 X"$as_myself" : 'X\(//\)$' \| \
1180 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1181$as_echo X"$as_myself" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\).*/{
1195 s//\1/
1196 q
1197 }
1198 s/.*/./; q'`
c906108c 1199 srcdir=$ac_confdir
81ecdfbb 1200 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1201 srcdir=..
1202 fi
1203else
1204 ac_srcdir_defaulted=no
1205fi
81ecdfbb
RW
1206if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1209fi
1210ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211ac_abs_confdir=`(
1212 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1213 pwd)`
1214# When building in place, set srcdir=.
1215if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217fi
1218# Remove unnecessary trailing slashes from srcdir.
1219# Double slashes in file names in object file debugging info
1220# mess up M-x gdb in Emacs.
1221case $srcdir in
1222*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223esac
1224for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229done
c906108c 1230
b7026657
AC
1231#
1232# Report the --help message.
1233#
1234if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238\`configure' configures this package to adapt to many kinds of systems.
1239
1240Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245Defaults for the options are specified in brackets.
1246
1247Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
b7026657
AC
1258Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1260 [$ac_default_prefix]
b7026657 1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1262 [PREFIX]
b7026657
AC
1263
1264By default, \`make install' will install all the files in
1265\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267for instance \`--prefix=\$HOME'.
1268
1269For better control, use the options below.
1270
1271Fine tuning of the installation directories:
81ecdfbb
RW
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1291_ACEOF
1292
1293 cat <<\_ACEOF
1294
1295Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299
1300System types:
1301 --build=BUILD configure for building on BUILD [guessed]
1302 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303 --target=TARGET configure for building compilers for TARGET [HOST]
1304_ACEOF
c906108c 1305fi
c906108c 1306
b7026657
AC
1307if test -n "$ac_init_help"; then
1308
1309 cat <<\_ACEOF
1310
1311Optional Features:
81ecdfbb 1312 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2232061b
MF
1315 --enable-werror treat compile warnings as errors
1316 --enable-build-warnings enable build-time compiler warnings if gcc is used
1317 --enable-sim-build-warnings
1318 enable SIM specific build-time compiler warnings if
1319 gcc is used
b7026657
AC
1320
1321Some influential environment variables:
1322 CC C compiler command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
81ecdfbb
RW
1326 LIBS libraries to pass to the linker, e.g. -l<library>
1327 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
b7026657
AC
1329 CPP C preprocessor
1330
1331Use these variables to override the choices made by `configure' or to help
1332it to find libraries and programs with nonstandard names/locations.
1333
81ecdfbb 1334Report bugs to the package provider.
b7026657 1335_ACEOF
81ecdfbb 1336ac_status=$?
c906108c
SS
1337fi
1338
b7026657
AC
1339if test "$ac_init_help" = "recursive"; then
1340 # If there are subdirs, report their specific --help.
b7026657 1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1342 test -d "$ac_dir" ||
1343 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1344 continue
b7026657
AC
1345 ac_builddir=.
1346
81ecdfbb
RW
1347case "$ac_dir" in
1348.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349*)
1350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1351 # A ".." for each directory in $ac_dir_suffix.
1352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1353 case $ac_top_builddir_sub in
1354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1356 esac ;;
1357esac
1358ac_abs_top_builddir=$ac_pwd
1359ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360# for backward compatibility:
1361ac_top_builddir=$ac_top_build_prefix
c906108c 1362
b7026657 1363case $srcdir in
81ecdfbb 1364 .) # We are building in place.
b7026657 1365 ac_srcdir=.
81ecdfbb
RW
1366 ac_top_srcdir=$ac_top_builddir_sub
1367 ac_abs_top_srcdir=$ac_pwd ;;
1368 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1369 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1370 ac_top_srcdir=$srcdir
1371 ac_abs_top_srcdir=$srcdir ;;
1372 *) # Relative name.
1373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374 ac_top_srcdir=$ac_top_build_prefix$srcdir
1375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1376esac
81ecdfbb
RW
1377ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
1379 cd "$ac_dir" || { ac_status=$?; continue; }
1380 # Check for guested configure.
1381 if test -f "$ac_srcdir/configure.gnu"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384 elif test -f "$ac_srcdir/configure"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1387 else
81ecdfbb
RW
1388 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389 fi || ac_status=$?
1390 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1391 done
c906108c 1392fi
c906108c 1393
81ecdfbb 1394test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1395if $ac_init_version; then
1396 cat <<\_ACEOF
81ecdfbb
RW
1397configure
1398generated by GNU Autoconf 2.64
c906108c 1399
81ecdfbb 1400Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1401This configure script is free software; the Free Software Foundation
1402gives unlimited permission to copy, distribute and modify it.
1403_ACEOF
81ecdfbb 1404 exit
c906108c 1405fi
b7026657 1406
81ecdfbb
RW
1407## ------------------------ ##
1408## Autoconf initialization. ##
1409## ------------------------ ##
b7026657 1410
81ecdfbb
RW
1411# ac_fn_c_try_compile LINENO
1412# --------------------------
1413# Try to compile conftest.$ac_ext, and return whether this succeeded.
1414ac_fn_c_try_compile ()
b7026657 1415{
81ecdfbb
RW
1416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1417 rm -f conftest.$ac_objext
1418 if { { ac_try="$ac_compile"
1419case "(($ac_try" in
1420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1421 *) ac_try_echo=$ac_try;;
1422esac
1423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1424$as_echo "$ac_try_echo"; } >&5
1425 (eval "$ac_compile") 2>conftest.err
1426 ac_status=$?
1427 if test -s conftest.err; then
1428 grep -v '^ *+' conftest.err >conftest.er1
1429 cat conftest.er1 >&5
1430 mv -f conftest.er1 conftest.err
1431 fi
1432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1433 test $ac_status = 0; } && {
1434 test -z "$ac_c_werror_flag" ||
1435 test ! -s conftest.err
1436 } && test -s conftest.$ac_objext; then :
1437 ac_retval=0
1438else
1439 $as_echo "$as_me: failed program was:" >&5
1440sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1441
81ecdfbb
RW
1442 ac_retval=1
1443fi
1444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1445 return $ac_retval
b7026657 1446
81ecdfbb 1447} # ac_fn_c_try_compile
b7026657 1448
81ecdfbb
RW
1449# ac_fn_c_try_cpp LINENO
1450# ----------------------
1451# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1452ac_fn_c_try_cpp ()
1453{
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 if { { ac_try="$ac_cpp conftest.$ac_ext"
1456case "(($ac_try" in
1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1459esac
1460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461$as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1463 ac_status=$?
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1468 fi
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } >/dev/null && {
1471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 }; then :
1474 ac_retval=0
1475else
1476 $as_echo "$as_me: failed program was:" >&5
1477sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1478
81ecdfbb
RW
1479 ac_retval=1
1480fi
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1482 return $ac_retval
b7026657 1483
81ecdfbb
RW
1484} # ac_fn_c_try_cpp
1485
1486# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1487# -------------------------------------------------------
1488# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1489# the include files in INCLUDES and setting the cache variable VAR
1490# accordingly.
1491ac_fn_c_check_header_mongrel ()
1492{
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1496$as_echo_n "checking for $2... " >&6; }
1497if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1498 $as_echo_n "(cached) " >&6
1499fi
1500eval ac_res=\$$3
1501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1502$as_echo "$ac_res" >&6; }
1503else
1504 # Is the header compilable?
1505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1506$as_echo_n "checking $2 usability... " >&6; }
1507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508/* end confdefs.h. */
1509$4
1510#include <$2>
1511_ACEOF
1512if ac_fn_c_try_compile "$LINENO"; then :
1513 ac_header_compiler=yes
1514else
1515 ac_header_compiler=no
1516fi
1517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1519$as_echo "$ac_header_compiler" >&6; }
1520
1521# Is the header present?
1522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1523$as_echo_n "checking $2 presence... " >&6; }
1524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525/* end confdefs.h. */
1526#include <$2>
1527_ACEOF
1528if ac_fn_c_try_cpp "$LINENO"; then :
1529 ac_header_preproc=yes
1530else
1531 ac_header_preproc=no
1532fi
1533rm -f conftest.err conftest.$ac_ext
1534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1535$as_echo "$ac_header_preproc" >&6; }
1536
1537# So? What about this header?
1538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1539 yes:no: )
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1541$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1543$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1544 ;;
1545 no:yes:* )
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1547$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1549$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1551$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1553$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1555$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1556 ;;
1557esac
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559$as_echo_n "checking for $2... " >&6; }
1560if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561 $as_echo_n "(cached) " >&6
1562else
1563 eval "$3=\$ac_header_compiler"
1564fi
1565eval ac_res=\$$3
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567$as_echo "$ac_res" >&6; }
1568fi
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570
1571} # ac_fn_c_check_header_mongrel
1572
1573# ac_fn_c_try_run LINENO
1574# ----------------------
1575# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576# that executables *can* be run.
1577ac_fn_c_try_run ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_link"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>&5
1588 ac_status=$?
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591 { { case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_try") 2>&5
1598 ac_status=$?
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; }; }; then :
1601 ac_retval=0
1602else
1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=$ac_status
1608fi
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1612
1613} # ac_fn_c_try_run
1614
1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616# -------------------------------------------------------
1617# Tests whether HEADER exists and can be compiled using the include files in
1618# INCLUDES, setting the cache variable VAR accordingly.
1619ac_fn_c_check_header_compile ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }
1624if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 $as_echo_n "(cached) " >&6
1626else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h. */
1629$4
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634else
1635 eval "$3=no"
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638fi
1639eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643
1644} # ac_fn_c_check_header_compile
1645
1646# ac_fn_c_try_link LINENO
1647# -----------------------
1648# Try to link conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_link ()
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 $as_test_x conftest$ac_exeext
1674 }; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 return $ac_retval
1689
1690} # ac_fn_c_try_link
1691cat >config.log <<_ACEOF
1692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
1695It was created by $as_me, which was
1696generated by GNU Autoconf 2.64. Invocation command line was
1697
1698 $ $0 $@
1699
1700_ACEOF
1701exec 5>>config.log
1702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725_ASUNAME
1726
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 $as_echo "PATH: $as_dir"
1733 done
1734IFS=$as_save_IFS
1735
1736} >&5
1737
1738cat >&5 <<_ACEOF
1739
1740
1741## ----------- ##
1742## Core tests. ##
1743## ----------- ##
b7026657
AC
1744
1745_ACEOF
1746
1747
1748# Keep a trace of the command line.
1749# Strip out --no-create and --no-recursion so they do not pile up.
1750# Strip out --silent because we don't want to record it for future runs.
1751# Also quote any args containing shell meta-characters.
1752# Make two passes to allow for proper duplicate-argument suppression.
1753ac_configure_args=
1754ac_configure_args0=
1755ac_configure_args1=
b7026657
AC
1756ac_must_keep_next=false
1757for ac_pass in 1 2
1758do
1759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
81ecdfbb
RW
1766 *\'*)
1767 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1768 esac
1769 case $ac_pass in
81ecdfbb 1770 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1771 2)
81ecdfbb 1772 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1775 else
1776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
1787 fi
81ecdfbb 1788 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1789 ;;
1790 esac
1791 done
1792done
81ecdfbb
RW
1793{ ac_configure_args0=; unset ac_configure_args0;}
1794{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1795
1796# When interrupted or exit'd, cleanup temporary files, and complete
1797# config.log. We remove comments because anyway the quotes in there
1798# would cause problems or look ugly.
81ecdfbb
RW
1799# WARNING: Use '\'' to represent an apostrophe within the trap.
1800# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1801trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
1805
1806 cat <<\_ASBOX
1807## ---------------- ##
1808## Cache variables. ##
1809## ---------------- ##
1810_ASBOX
1811 echo
1812 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1813(
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1816 case $ac_val in #(
1817 *${as_nl}*)
1818 case $ac_var in #(
1819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1820$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1821 esac
1822 case $ac_var in #(
1823 _ | IFS | as_nl) ;; #(
1824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1825 *) { eval $ac_var=; unset $ac_var;} ;;
1826 esac ;;
1827 esac
1828 done
b7026657 1829 (set) 2>&1 |
81ecdfbb
RW
1830 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831 *${as_nl}ac_space=\ *)
b7026657 1832 sed -n \
81ecdfbb
RW
1833 "s/'\''/'\''\\\\'\'''\''/g;
1834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835 ;; #(
b7026657 1836 *)
81ecdfbb 1837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1838 ;;
81ecdfbb
RW
1839 esac |
1840 sort
1841)
b7026657
AC
1842 echo
1843
1844 cat <<\_ASBOX
1845## ----------------- ##
1846## Output variables. ##
1847## ----------------- ##
1848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_vars
1851 do
81ecdfbb
RW
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1857 done | sort
1858 echo
1859
1860 if test -n "$ac_subst_files"; then
1861 cat <<\_ASBOX
81ecdfbb
RW
1862## ------------------- ##
1863## File substitutions. ##
1864## ------------------- ##
b7026657
AC
1865_ASBOX
1866 echo
1867 for ac_var in $ac_subst_files
1868 do
81ecdfbb
RW
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1874 done | sort
1875 echo
1876 fi
1877
1878 if test -s confdefs.h; then
1879 cat <<\_ASBOX
1880## ----------- ##
1881## confdefs.h. ##
1882## ----------- ##
1883_ASBOX
1884 echo
81ecdfbb 1885 cat confdefs.h
b7026657
AC
1886 echo
1887 fi
1888 test "$ac_signal" != 0 &&
81ecdfbb
RW
1889 $as_echo "$as_me: caught signal $ac_signal"
1890 $as_echo "$as_me: exit $exit_status"
b7026657 1891 } >&5
81ecdfbb
RW
1892 rm -f core *.core core.conftest.* &&
1893 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1894 exit $exit_status
81ecdfbb 1895' 0
b7026657 1896for ac_signal in 1 2 13 15; do
81ecdfbb 1897 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1898done
1899ac_signal=0
1900
1901# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1902rm -f -r conftest* confdefs.h
1903
1904$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1905
1906# Predefined preprocessor variables.
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_NAME "$PACKAGE_NAME"
1910_ACEOF
1911
b7026657
AC
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914_ACEOF
1915
b7026657
AC
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_VERSION "$PACKAGE_VERSION"
1918_ACEOF
1919
b7026657
AC
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
b7026657
AC
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1926_ACEOF
1927
81ecdfbb
RW
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_URL "$PACKAGE_URL"
1930_ACEOF
1931
b7026657
AC
1932
1933# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1934# Prefer an explicitly selected file to automatically selected ones.
1935ac_site_file1=NONE
1936ac_site_file2=NONE
1937if test -n "$CONFIG_SITE"; then
1938 ac_site_file1=$CONFIG_SITE
1939elif test "x$prefix" != xNONE; then
1940 ac_site_file1=$prefix/share/config.site
1941 ac_site_file2=$prefix/etc/config.site
1942else
1943 ac_site_file1=$ac_default_prefix/share/config.site
1944 ac_site_file2=$ac_default_prefix/etc/config.site
b7026657 1945fi
81ecdfbb
RW
1946for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1947do
1948 test "x$ac_site_file" = xNONE && continue
b7026657 1949 if test -r "$ac_site_file"; then
81ecdfbb
RW
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1951$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
1952 sed 's/^/| /' "$ac_site_file" >&5
1953 . "$ac_site_file"
1954 fi
1955done
1956
1957if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
81ecdfbb
RW
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1962$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1963 case $cache_file in
81ecdfbb
RW
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
b7026657
AC
1966 esac
1967 fi
1968else
81ecdfbb
RW
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1970$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1971 >$cache_file
1972fi
1973
1974# Check that the precious variables saved in the cache have kept the same
1975# value.
1976ac_cache_corrupted=false
81ecdfbb 1977for ac_var in $ac_precious_vars; do
b7026657
AC
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1982 case $ac_old_set,$ac_new_set in
1983 set,)
81ecdfbb
RW
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1986 ac_cache_corrupted=: ;;
1987 ,set)
81ecdfbb
RW
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1989$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1990 ac_cache_corrupted=: ;;
1991 ,);;
1992 *)
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1994 # differences in whitespace do not lead to failure.
1995 ac_old_val_w=`echo x $ac_old_val`
1996 ac_new_val_w=`echo x $ac_new_val`
1997 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1999$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2000 ac_cache_corrupted=:
2001 else
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2003$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2004 eval $ac_var=\$ac_old_val
2005 fi
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2007$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2009$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2010 fi;;
2011 esac
2012 # Pass precious variables to config.status.
2013 if test "$ac_new_set" = set; then
2014 case $ac_new_val in
81ecdfbb 2015 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2016 *) ac_arg=$ac_var=$ac_new_val ;;
2017 esac
2018 case " $ac_configure_args " in
2019 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2020 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2021 esac
2022 fi
2023done
2024if $ac_cache_corrupted; then
81ecdfbb
RW
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2028$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2030fi
81ecdfbb
RW
2031## -------------------- ##
2032## Main body of script. ##
2033## -------------------- ##
b7026657
AC
2034
2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040
6ffe910a
MF
2041
2042# This file contains common code used by all simulators.
2043#
2044# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2045# directory. It is intended to be invoked before any target specific stuff.
2046# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2047# It is intended to be invoked last.
2048#
306f4178 2049# The simulator's configure.ac should look like:
6ffe910a
MF
2050#
2051# dnl Process this file with autoconf to produce a configure script.
2052# AC_PREREQ(2.64)dnl
2053# AC_INIT(Makefile.in)
2054# sinclude(../common/aclocal.m4)
2055#
2056# SIM_AC_COMMON
2057#
2058# ... target specific stuff ...
2059#
2060# SIM_AC_OUTPUT
2061
2062# Include global overrides and fixes for Autoconf.
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089# _AC_CHECK_DECL_BODY
2090# -------------------
2091# Shell function body for AC_CHECK_DECL.
2092# _AC_CHECK_DECL_BODY
2093
2094# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2095# INCLUDES)
2096# -------------------------------------------------------------
2097# Helper to AC_CHECK_DECLS, which generates the check for a single
2098# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2099# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
6bb11ab3
L
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
6bb11ab3
L
2111# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2112#
2113# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2114# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2115# Written by Gordon Matzigkeit, 1996
2116#
2117# This file is free software; the Free Software Foundation gives
2118# unlimited permission to copy and/or distribute it, with or without
2119# modifications, as long as this notice is preserved.
2120
2121
2122
2123# serial 56 LT_INIT
2124
2125
2126# LT_PREREQ(VERSION)
2127# ------------------
2128# Complain and exit if this libtool version is less that VERSION.
2129
2130
2131
2132# _LT_CHECK_BUILDDIR
2133# ------------------
2134# Complain if the absolute build directory name contains unusual characters
2135
2136
2137
2138# LT_INIT([OPTIONS])
2139# ------------------
2140# LT_INIT
2141
2142# Old names:
2143# This is what autoupdate's m4 run will expand. It fires
2144# the warning (with _au_warn_XXX), outputs it into the
2145# updated configure.ac (with AC_DIAGNOSE), and then outputs
2146# the replacement expansion.
2147
2148
2149# This is an auxiliary macro that is also run when
2150# autoupdate runs m4. It simply calls m4_warning, but
2151# we need a wrapper so that each warning is emitted only
2152# once. We break the quoting in m4_warning's argument in
2153# order to expand this macro's arguments, not AU_DEFUN's.
2154
2155
2156# Finally, this is the expansion that is picked up by
2157# autoconf. It tells the user to run autoupdate, and
2158# then outputs the replacement expansion. We do not care
2159# about autoupdate's warning because that contains
2160# information on what to do *after* running autoupdate.
2161
2162# This is what autoupdate's m4 run will expand. It fires
2163# the warning (with _au_warn_XXX), outputs it into the
2164# updated configure.ac (with AC_DIAGNOSE), and then outputs
2165# the replacement expansion.
2166
2167
2168# This is an auxiliary macro that is also run when
2169# autoupdate runs m4. It simply calls m4_warning, but
2170# we need a wrapper so that each warning is emitted only
2171# once. We break the quoting in m4_warning's argument in
2172# order to expand this macro's arguments, not AU_DEFUN's.
2173
2174
2175# Finally, this is the expansion that is picked up by
2176# autoconf. It tells the user to run autoupdate, and
2177# then outputs the replacement expansion. We do not care
2178# about autoupdate's warning because that contains
2179# information on what to do *after* running autoupdate.
2180
2181
2182
2183# _LT_CC_BASENAME(CC)
2184# -------------------
2185# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2186
2187
2188
2189# _LT_FILEUTILS_DEFAULTS
2190# ----------------------
2191# It is okay to use these file commands and assume they have been set
2192# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2193# _LT_FILEUTILS_DEFAULTS
2194
2195
2196# _LT_SETUP
2197# ---------
2198# _LT_SETUP
2199
2200
2201# _LT_PREPARE_SED_QUOTE_VARS
2202# --------------------------
2203# Define a few sed substitution that help us do robust quoting.
2204
2205
2206# _LT_PROG_LTMAIN
2207# ---------------
2208# Note that this code is called both from `configure', and `config.status'
2209# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2210# `config.status' has no value for ac_aux_dir unless we are using Automake,
2211# so we pass a copy along to make sure it has a sensible value anyway.
2212# _LT_PROG_LTMAIN
2213
2214
2215## ------------------------------------- ##
2216## Accumulate code for creating libtool. ##
2217## ------------------------------------- ##
2218
2219# So that we can recreate a full libtool script including additional
2220# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2221# in macros and then make a single call at the end using the `libtool'
2222# label.
2223
2224
2225# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2226# ----------------------------------------
2227# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2228
2229
2230# Initialize.
2231
2232
2233
2234# _LT_CONFIG_LIBTOOL([COMMANDS])
2235# ------------------------------
2236# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2237
2238
2239# Initialize.
2240
2241
2242
2243# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2244# -----------------------------------------------------
2245
2246
2247
2248# _LT_FORMAT_COMMENT([COMMENT])
2249# -----------------------------
2250# Add leading comment marks to the start of each line, and a trailing
2251# full-stop to the whole comment if one is not present already.
2252
2253
2254
2255
2256## ------------------------ ##
2257## FIXME: Eliminate VARNAME ##
2258## ------------------------ ##
2259
2260
2261# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2262# -------------------------------------------------------------------
2263# CONFIGNAME is the name given to the value in the libtool script.
2264# VARNAME is the (base) name used in the configure script.
2265# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2266# VARNAME. Any other value will be used directly.
2267
2268
2269
2270# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2271# --------------------------------------------------------
2272
2273
2274
2275# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2276# ------------------------------------------------
2277
2278
2279
2280# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2281# ---------------------------------------------------------
2282
2283
2284
2285# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2286# --------------------------------------------------
2287
2288
2289
2290# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2291# ---------------------------------------------------
2292
2293
2294
2295# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2296# ---------------------------------------------------
2297
2298
2299
2300
2301# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2302# ------------------------------------------------
2303
2304
2305
2306
2307# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2308# ------------------------------------
2309# Quote a variable value, and forward it to `config.status' so that its
2310# declaration there will have the same value as in `configure'. VARNAME
2311# must have a single quote delimited value for this to work.
2312
2313
2314
2315# _LT_CONFIG_STATUS_DECLARATIONS
2316# ------------------------------
2317# We delimit libtool config variables with single quotes, so when
2318# we write them to config.status, we have to be sure to quote all
2319# embedded single quotes properly. In configure, this macro expands
2320# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2321#
2322# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2323
2324
2325
2326# _LT_LIBTOOL_TAGS
2327# ----------------
2328# Output comment and list of tags supported by the script
2329
2330
2331
2332# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2333# -----------------------------------
2334# Extract the dictionary values for VARNAME (optionally with TAG) and
2335# expand to a commented shell variable setting:
2336#
2337# # Some comment about what VAR is for.
2338# visible_name=$lt_internal_name
2339
2340
2341
2342# _LT_LIBTOOL_CONFIG_VARS
2343# -----------------------
2344# Produce commented declarations of non-tagged libtool config variables
2345# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2346# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2347# section) are produced by _LT_LIBTOOL_TAG_VARS.
2348
2349
2350
2351# _LT_LIBTOOL_TAG_VARS(TAG)
2352# -------------------------
2353
2354
2355
2356# _LT_TAGVAR(VARNAME, [TAGNAME])
2357# ------------------------------
2358
2359
2360
2361# _LT_CONFIG_COMMANDS
2362# -------------------
2363# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2364# variables for single and double quote escaping we saved from calls
2365# to _LT_DECL, we can put quote escaped variables declarations
2366# into `config.status', and then the shell code to quote escape them in
2367# for loops in `config.status'. Finally, any additional code accumulated
2368# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2369#_LT_CONFIG_COMMANDS
2370
2371
2372# Initialize.
2373
2374
2375# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2376# ------------------------------------
2377# Generate a child script FILE with all initialization necessary to
2378# reuse the environment learned by the parent script, and make the
2379# file executable. If COMMENT is supplied, it is inserted after the
2380# `#!' sequence but before initialization text begins. After this
2381# macro, additional text can be appended to FILE to form the body of
2382# the child script. The macro ends with non-zero status if the
2383# file could not be fully written (such as if the disk is full).
2384# _LT_GENERATED_FILE_INIT
2385
2386# LT_OUTPUT
2387# ---------
2388# This macro allows early generation of the libtool script (before
2389# AC_OUTPUT is called), incase it is used in configure for compilation
2390# tests.
2391# LT_OUTPUT
2392
2393
2394# _LT_CONFIG(TAG)
2395# ---------------
2396# If TAG is the built-in tag, create an initial libtool script with a
2397# default configuration from the untagged config vars. Otherwise add code
2398# to config.status for appending the configuration named by TAG from the
2399# matching tagged config vars.
2400# _LT_CONFIG
2401
2402
2403# LT_SUPPORTED_TAG(TAG)
2404# ---------------------
2405# Trace this macro to discover what tags are supported by the libtool
2406# --tag option, using:
2407# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2408
2409
2410
2411# C support is built-in for now
2412
2413
2414
2415
2416# LT_LANG(LANG)
2417# -------------
2418# Enable libtool support for the given language if not already enabled.
2419# LT_LANG
2420
2421
2422# _LT_LANG(LANGNAME)
2423# ------------------
2424# _LT_LANG
2425
2426
2427# _LT_LANG_DEFAULT_CONFIG
2428# -----------------------
2429# _LT_LANG_DEFAULT_CONFIG
2430
2431# Obsolete macros:
2432# This is what autoupdate's m4 run will expand. It fires
2433# the warning (with _au_warn_XXX), outputs it into the
2434# updated configure.ac (with AC_DIAGNOSE), and then outputs
2435# the replacement expansion.
2436
2437
2438# This is an auxiliary macro that is also run when
2439# autoupdate runs m4. It simply calls m4_warning, but
2440# we need a wrapper so that each warning is emitted only
2441# once. We break the quoting in m4_warning's argument in
2442# order to expand this macro's arguments, not AU_DEFUN's.
2443
2444
2445# Finally, this is the expansion that is picked up by
2446# autoconf. It tells the user to run autoupdate, and
2447# then outputs the replacement expansion. We do not care
2448# about autoupdate's warning because that contains
2449# information on what to do *after* running autoupdate.
2450
2451# This is what autoupdate's m4 run will expand. It fires
2452# the warning (with _au_warn_XXX), outputs it into the
2453# updated configure.ac (with AC_DIAGNOSE), and then outputs
2454# the replacement expansion.
2455
2456
2457# This is an auxiliary macro that is also run when
2458# autoupdate runs m4. It simply calls m4_warning, but
2459# we need a wrapper so that each warning is emitted only
2460# once. We break the quoting in m4_warning's argument in
2461# order to expand this macro's arguments, not AU_DEFUN's.
2462
2463
2464# Finally, this is the expansion that is picked up by
2465# autoconf. It tells the user to run autoupdate, and
2466# then outputs the replacement expansion. We do not care
2467# about autoupdate's warning because that contains
2468# information on what to do *after* running autoupdate.
2469
2470# This is what autoupdate's m4 run will expand. It fires
2471# the warning (with _au_warn_XXX), outputs it into the
2472# updated configure.ac (with AC_DIAGNOSE), and then outputs
2473# the replacement expansion.
2474
2475
2476# This is an auxiliary macro that is also run when
2477# autoupdate runs m4. It simply calls m4_warning, but
2478# we need a wrapper so that each warning is emitted only
2479# once. We break the quoting in m4_warning's argument in
2480# order to expand this macro's arguments, not AU_DEFUN's.
2481
2482
2483# Finally, this is the expansion that is picked up by
2484# autoconf. It tells the user to run autoupdate, and
2485# then outputs the replacement expansion. We do not care
2486# about autoupdate's warning because that contains
2487# information on what to do *after* running autoupdate.
2488
2489# This is what autoupdate's m4 run will expand. It fires
2490# the warning (with _au_warn_XXX), outputs it into the
2491# updated configure.ac (with AC_DIAGNOSE), and then outputs
2492# the replacement expansion.
2493
2494
2495# This is an auxiliary macro that is also run when
2496# autoupdate runs m4. It simply calls m4_warning, but
2497# we need a wrapper so that each warning is emitted only
2498# once. We break the quoting in m4_warning's argument in
2499# order to expand this macro's arguments, not AU_DEFUN's.
2500
2501
2502# Finally, this is the expansion that is picked up by
2503# autoconf. It tells the user to run autoupdate, and
2504# then outputs the replacement expansion. We do not care
2505# about autoupdate's warning because that contains
2506# information on what to do *after* running autoupdate.
2507
2508# This is what autoupdate's m4 run will expand. It fires
2509# the warning (with _au_warn_XXX), outputs it into the
2510# updated configure.ac (with AC_DIAGNOSE), and then outputs
2511# the replacement expansion.
2512
2513
2514# This is an auxiliary macro that is also run when
2515# autoupdate runs m4. It simply calls m4_warning, but
2516# we need a wrapper so that each warning is emitted only
2517# once. We break the quoting in m4_warning's argument in
2518# order to expand this macro's arguments, not AU_DEFUN's.
2519
2520
2521# Finally, this is the expansion that is picked up by
2522# autoconf. It tells the user to run autoupdate, and
2523# then outputs the replacement expansion. We do not care
2524# about autoupdate's warning because that contains
2525# information on what to do *after* running autoupdate.
2526
2527
2528
2529# _LT_TAG_COMPILER
2530# ----------------
2531# _LT_TAG_COMPILER
2532
2533
2534# _LT_COMPILER_BOILERPLATE
2535# ------------------------
2536# Check for compiler boilerplate output or warnings with
2537# the simple compiler test code.
2538# _LT_COMPILER_BOILERPLATE
2539
2540
2541# _LT_LINKER_BOILERPLATE
2542# ----------------------
2543# Check for linker boilerplate output or warnings with
2544# the simple link test code.
2545# _LT_LINKER_BOILERPLATE
2546
2547# _LT_REQUIRED_DARWIN_CHECKS
2548# -------------------------
2549
2550
2551
2552# _LT_DARWIN_LINKER_FEATURES
2553# --------------------------
2554# Checks for linker and compiler features on darwin
2555
2556
2557# _LT_SYS_MODULE_PATH_AIX
2558# -----------------------
2559# Links a minimal program and checks the executable
2560# for the system default hardcoded library path. In most cases,
2561# this is /usr/lib:/lib, but when the MPI compilers are used
2562# the location of the communication and MPI libs are included too.
2563# If we don't find anything, use the default library path according
2564# to the aix ld manual.
2565# _LT_SYS_MODULE_PATH_AIX
2566
2567
2568# _LT_SHELL_INIT(ARG)
2569# -------------------
2570# _LT_SHELL_INIT
2571
2572
2573
2574# _LT_PROG_ECHO_BACKSLASH
2575# -----------------------
2576# Find how we can fake an echo command that does not interpret backslash.
2577# In particular, with Autoconf 2.60 or later we add some code to the start
2578# of the generated configure script which will find a shell with a builtin
2579# printf (which we can use as an echo command).
2580# _LT_PROG_ECHO_BACKSLASH
2581
2582
2583# _LT_ENABLE_LOCK
2584# ---------------
2585# _LT_ENABLE_LOCK
2586
2587
2588# _LT_CMD_OLD_ARCHIVE
2589# -------------------
2590# _LT_CMD_OLD_ARCHIVE
2591
2592
2593# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2594# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2595# ----------------------------------------------------------------
2596# Check whether the given compiler option works
2597# _LT_COMPILER_OPTION
2598
2599# Old name:
2600# This is what autoupdate's m4 run will expand. It fires
2601# the warning (with _au_warn_XXX), outputs it into the
2602# updated configure.ac (with AC_DIAGNOSE), and then outputs
2603# the replacement expansion.
2604
2605
2606# This is an auxiliary macro that is also run when
2607# autoupdate runs m4. It simply calls m4_warning, but
2608# we need a wrapper so that each warning is emitted only
2609# once. We break the quoting in m4_warning's argument in
2610# order to expand this macro's arguments, not AU_DEFUN's.
2611
2612
2613# Finally, this is the expansion that is picked up by
2614# autoconf. It tells the user to run autoupdate, and
2615# then outputs the replacement expansion. We do not care
2616# about autoupdate's warning because that contains
2617# information on what to do *after* running autoupdate.
2618
2619
2620
2621# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2622# [ACTION-SUCCESS], [ACTION-FAILURE])
2623# ----------------------------------------------------
2624# Check whether the given linker option works
2625# _LT_LINKER_OPTION
2626
2627# Old name:
2628# This is what autoupdate's m4 run will expand. It fires
2629# the warning (with _au_warn_XXX), outputs it into the
2630# updated configure.ac (with AC_DIAGNOSE), and then outputs
2631# the replacement expansion.
2632
2633
2634# This is an auxiliary macro that is also run when
2635# autoupdate runs m4. It simply calls m4_warning, but
2636# we need a wrapper so that each warning is emitted only
2637# once. We break the quoting in m4_warning's argument in
2638# order to expand this macro's arguments, not AU_DEFUN's.
2639
2640
2641# Finally, this is the expansion that is picked up by
2642# autoconf. It tells the user to run autoupdate, and
2643# then outputs the replacement expansion. We do not care
2644# about autoupdate's warning because that contains
2645# information on what to do *after* running autoupdate.
2646
2647
2648
2649# LT_CMD_MAX_LEN
2650#---------------
2651# LT_CMD_MAX_LEN
2652
2653# Old name:
2654# This is what autoupdate's m4 run will expand. It fires
2655# the warning (with _au_warn_XXX), outputs it into the
2656# updated configure.ac (with AC_DIAGNOSE), and then outputs
2657# the replacement expansion.
2658
2659
2660# This is an auxiliary macro that is also run when
2661# autoupdate runs m4. It simply calls m4_warning, but
2662# we need a wrapper so that each warning is emitted only
2663# once. We break the quoting in m4_warning's argument in
2664# order to expand this macro's arguments, not AU_DEFUN's.
2665
2666
2667# Finally, this is the expansion that is picked up by
2668# autoconf. It tells the user to run autoupdate, and
2669# then outputs the replacement expansion. We do not care
2670# about autoupdate's warning because that contains
2671# information on what to do *after* running autoupdate.
2672
2673
2674
2675# _LT_HEADER_DLFCN
2676# ----------------
2677# _LT_HEADER_DLFCN
2678
2679
2680# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2681# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2682# ----------------------------------------------------------------
2683# _LT_TRY_DLOPEN_SELF
2684
2685
2686# LT_SYS_DLOPEN_SELF
2687# ------------------
2688# LT_SYS_DLOPEN_SELF
2689
2690# Old name:
2691# This is what autoupdate's m4 run will expand. It fires
2692# the warning (with _au_warn_XXX), outputs it into the
2693# updated configure.ac (with AC_DIAGNOSE), and then outputs
2694# the replacement expansion.
2695
2696
2697# This is an auxiliary macro that is also run when
2698# autoupdate runs m4. It simply calls m4_warning, but
2699# we need a wrapper so that each warning is emitted only
2700# once. We break the quoting in m4_warning's argument in
2701# order to expand this macro's arguments, not AU_DEFUN's.
2702
2703
2704# Finally, this is the expansion that is picked up by
2705# autoconf. It tells the user to run autoupdate, and
2706# then outputs the replacement expansion. We do not care
2707# about autoupdate's warning because that contains
2708# information on what to do *after* running autoupdate.
2709
2710
2711
2712# _LT_COMPILER_C_O([TAGNAME])
2713# ---------------------------
2714# Check to see if options -c and -o are simultaneously supported by compiler.
2715# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2716# _LT_COMPILER_C_O
2717
2718
2719# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2720# ----------------------------------
2721# Check to see if we can do hard links to lock some files if needed
2722# _LT_COMPILER_FILE_LOCKS
2723
2724
2725# _LT_CHECK_OBJDIR
2726# ----------------
2727# _LT_CHECK_OBJDIR
2728
2729
2730# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2731# --------------------------------------
2732# Check hardcoding attributes.
2733# _LT_LINKER_HARDCODE_LIBPATH
2734
2735
2736# _LT_CMD_STRIPLIB
2737# ----------------
2738# _LT_CMD_STRIPLIB
2739
2740
2741# _LT_SYS_DYNAMIC_LINKER([TAG])
2742# -----------------------------
2743# PORTME Fill in your ld.so characteristics
2744# _LT_SYS_DYNAMIC_LINKER
2745
2746
2747# _LT_PATH_TOOL_PREFIX(TOOL)
2748# --------------------------
2749# find a file program which can recognize shared library
2750# _LT_PATH_TOOL_PREFIX
2751
2752# Old name:
2753# This is what autoupdate's m4 run will expand. It fires
2754# the warning (with _au_warn_XXX), outputs it into the
2755# updated configure.ac (with AC_DIAGNOSE), and then outputs
2756# the replacement expansion.
2757
2758
2759# This is an auxiliary macro that is also run when
2760# autoupdate runs m4. It simply calls m4_warning, but
2761# we need a wrapper so that each warning is emitted only
2762# once. We break the quoting in m4_warning's argument in
2763# order to expand this macro's arguments, not AU_DEFUN's.
2764
2765
2766# Finally, this is the expansion that is picked up by
2767# autoconf. It tells the user to run autoupdate, and
2768# then outputs the replacement expansion. We do not care
2769# about autoupdate's warning because that contains
2770# information on what to do *after* running autoupdate.
2771
2772
2773
2774# _LT_PATH_MAGIC
2775# --------------
2776# find a file program which can recognize a shared library
2777# _LT_PATH_MAGIC
2778
2779
2780# LT_PATH_LD
2781# ----------
2782# find the pathname to the GNU or non-GNU linker
2783# LT_PATH_LD
2784
2785# Old names:
2786# This is what autoupdate's m4 run will expand. It fires
2787# the warning (with _au_warn_XXX), outputs it into the
2788# updated configure.ac (with AC_DIAGNOSE), and then outputs
2789# the replacement expansion.
2790
2791
2792# This is an auxiliary macro that is also run when
2793# autoupdate runs m4. It simply calls m4_warning, but
2794# we need a wrapper so that each warning is emitted only
2795# once. We break the quoting in m4_warning's argument in
2796# order to expand this macro's arguments, not AU_DEFUN's.
2797
2798
2799# Finally, this is the expansion that is picked up by
2800# autoconf. It tells the user to run autoupdate, and
2801# then outputs the replacement expansion. We do not care
2802# about autoupdate's warning because that contains
2803# information on what to do *after* running autoupdate.
2804
2805# This is what autoupdate's m4 run will expand. It fires
2806# the warning (with _au_warn_XXX), outputs it into the
2807# updated configure.ac (with AC_DIAGNOSE), and then outputs
2808# the replacement expansion.
2809
2810
2811# This is an auxiliary macro that is also run when
2812# autoupdate runs m4. It simply calls m4_warning, but
2813# we need a wrapper so that each warning is emitted only
2814# once. We break the quoting in m4_warning's argument in
2815# order to expand this macro's arguments, not AU_DEFUN's.
2816
2817
2818# Finally, this is the expansion that is picked up by
2819# autoconf. It tells the user to run autoupdate, and
2820# then outputs the replacement expansion. We do not care
2821# about autoupdate's warning because that contains
2822# information on what to do *after* running autoupdate.
2823
2824
2825
2826# _LT_PATH_LD_GNU
2827#- --------------
2828# _LT_PATH_LD_GNU
2829
2830
2831# _LT_CMD_RELOAD
2832# --------------
2833# find reload flag for linker
2834# -- PORTME Some linkers may need a different reload flag.
2835# _LT_CMD_RELOAD
2836
2837
2838# _LT_CHECK_MAGIC_METHOD
2839# ----------------------
2840# how to check for library dependencies
2841# -- PORTME fill in with the dynamic library characteristics
2842# _LT_CHECK_MAGIC_METHOD
2843
2844
2845# LT_PATH_NM
2846# ----------
2847# find the pathname to a BSD- or MS-compatible name lister
2848# LT_PATH_NM
2849
2850# Old names:
2851# This is what autoupdate's m4 run will expand. It fires
2852# the warning (with _au_warn_XXX), outputs it into the
2853# updated configure.ac (with AC_DIAGNOSE), and then outputs
2854# the replacement expansion.
2855
2856
2857# This is an auxiliary macro that is also run when
2858# autoupdate runs m4. It simply calls m4_warning, but
2859# we need a wrapper so that each warning is emitted only
2860# once. We break the quoting in m4_warning's argument in
2861# order to expand this macro's arguments, not AU_DEFUN's.
2862
2863
2864# Finally, this is the expansion that is picked up by
2865# autoconf. It tells the user to run autoupdate, and
2866# then outputs the replacement expansion. We do not care
2867# about autoupdate's warning because that contains
2868# information on what to do *after* running autoupdate.
2869
2870# This is what autoupdate's m4 run will expand. It fires
2871# the warning (with _au_warn_XXX), outputs it into the
2872# updated configure.ac (with AC_DIAGNOSE), and then outputs
2873# the replacement expansion.
2874
2875
2876# This is an auxiliary macro that is also run when
2877# autoupdate runs m4. It simply calls m4_warning, but
2878# we need a wrapper so that each warning is emitted only
2879# once. We break the quoting in m4_warning's argument in
2880# order to expand this macro's arguments, not AU_DEFUN's.
2881
2882
2883# Finally, this is the expansion that is picked up by
2884# autoconf. It tells the user to run autoupdate, and
2885# then outputs the replacement expansion. We do not care
2886# about autoupdate's warning because that contains
2887# information on what to do *after* running autoupdate.
2888
2889
2890
2891# LT_LIB_M
2892# --------
2893# check for math library
2894# LT_LIB_M
2895
2896# Old name:
2897# This is what autoupdate's m4 run will expand. It fires
2898# the warning (with _au_warn_XXX), outputs it into the
2899# updated configure.ac (with AC_DIAGNOSE), and then outputs
2900# the replacement expansion.
2901
2902
2903# This is an auxiliary macro that is also run when
2904# autoupdate runs m4. It simply calls m4_warning, but
2905# we need a wrapper so that each warning is emitted only
2906# once. We break the quoting in m4_warning's argument in
2907# order to expand this macro's arguments, not AU_DEFUN's.
2908
2909
2910# Finally, this is the expansion that is picked up by
2911# autoconf. It tells the user to run autoupdate, and
2912# then outputs the replacement expansion. We do not care
2913# about autoupdate's warning because that contains
2914# information on what to do *after* running autoupdate.
2915
2916
2917
2918# _LT_COMPILER_NO_RTTI([TAGNAME])
2919# -------------------------------
2920# _LT_COMPILER_NO_RTTI
2921
2922
2923# _LT_CMD_GLOBAL_SYMBOLS
2924# ----------------------
2925 # _LT_CMD_GLOBAL_SYMBOLS
2926
2927
2928# _LT_COMPILER_PIC([TAGNAME])
2929# ---------------------------
2930# _LT_COMPILER_PIC
2931
2932
2933# _LT_LINKER_SHLIBS([TAGNAME])
2934# ----------------------------
2935# See if the linker supports building shared libraries.
2936# _LT_LINKER_SHLIBS
2937
2938
2939# _LT_LANG_C_CONFIG([TAG])
2940# ------------------------
2941# Ensure that the configuration variables for a C compiler are suitably
2942# defined. These variables are subsequently used by _LT_CONFIG to write
2943# the compiler configuration to `libtool'.
2944# _LT_LANG_C_CONFIG
2945
2946
2947# _LT_LANG_CXX_CONFIG([TAG])
2948# --------------------------
2949# Ensure that the configuration variables for a C++ compiler are suitably
2950# defined. These variables are subsequently used by _LT_CONFIG to write
2951# the compiler configuration to `libtool'.
2952# _LT_LANG_CXX_CONFIG
2953
2954
2955# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2956# ---------------------------------
2957# Figure out "hidden" library dependencies from verbose
2958# compiler output when linking a shared library.
2959# Parse the compiler output and extract the necessary
2960# objects, libraries and library flags.
2961# _LT_SYS_HIDDEN_LIBDEPS
2962
2963
2964# _LT_LANG_F77_CONFIG([TAG])
2965# --------------------------
2966# Ensure that the configuration variables for a Fortran 77 compiler are
2967# suitably defined. These variables are subsequently used by _LT_CONFIG
2968# to write the compiler configuration to `libtool'.
2969# _LT_LANG_F77_CONFIG
2970
2971
2972# _LT_LANG_FC_CONFIG([TAG])
2973# -------------------------
2974# Ensure that the configuration variables for a Fortran compiler are
2975# suitably defined. These variables are subsequently used by _LT_CONFIG
2976# to write the compiler configuration to `libtool'.
2977# _LT_LANG_FC_CONFIG
2978
2979
2980# _LT_LANG_GCJ_CONFIG([TAG])
2981# --------------------------
2982# Ensure that the configuration variables for the GNU Java Compiler compiler
2983# are suitably defined. These variables are subsequently used by _LT_CONFIG
2984# to write the compiler configuration to `libtool'.
2985# _LT_LANG_GCJ_CONFIG
2986
2987
2988# _LT_LANG_RC_CONFIG([TAG])
2989# -------------------------
2990# Ensure that the configuration variables for the Windows resource compiler
2991# are suitably defined. These variables are subsequently used by _LT_CONFIG
2992# to write the compiler configuration to `libtool'.
2993# _LT_LANG_RC_CONFIG
2994
2995
2996# LT_PROG_GCJ
2997# -----------
2998
2999
3000# Old name:
3001# This is what autoupdate's m4 run will expand. It fires
3002# the warning (with _au_warn_XXX), outputs it into the
3003# updated configure.ac (with AC_DIAGNOSE), and then outputs
3004# the replacement expansion.
3005
3006
3007# This is an auxiliary macro that is also run when
3008# autoupdate runs m4. It simply calls m4_warning, but
3009# we need a wrapper so that each warning is emitted only
3010# once. We break the quoting in m4_warning's argument in
3011# order to expand this macro's arguments, not AU_DEFUN's.
3012
3013
3014# Finally, this is the expansion that is picked up by
3015# autoconf. It tells the user to run autoupdate, and
3016# then outputs the replacement expansion. We do not care
3017# about autoupdate's warning because that contains
3018# information on what to do *after* running autoupdate.
3019
3020
3021
3022# LT_PROG_RC
3023# ----------
3024
3025
3026# Old name:
3027# This is what autoupdate's m4 run will expand. It fires
3028# the warning (with _au_warn_XXX), outputs it into the
3029# updated configure.ac (with AC_DIAGNOSE), and then outputs
3030# the replacement expansion.
3031
3032
3033# This is an auxiliary macro that is also run when
3034# autoupdate runs m4. It simply calls m4_warning, but
3035# we need a wrapper so that each warning is emitted only
3036# once. We break the quoting in m4_warning's argument in
3037# order to expand this macro's arguments, not AU_DEFUN's.
3038
3039
3040# Finally, this is the expansion that is picked up by
3041# autoconf. It tells the user to run autoupdate, and
3042# then outputs the replacement expansion. We do not care
3043# about autoupdate's warning because that contains
3044# information on what to do *after* running autoupdate.
3045
3046
3047
3048# _LT_DECL_EGREP
3049# --------------
3050# If we don't have a new enough Autoconf to choose the best grep
3051# available, choose the one first in the user's PATH.
3052
3053
3054
3055# _LT_DECL_OBJDUMP
3056# --------------
3057# If we don't have a new enough Autoconf to choose the best objdump
3058# available, choose the one first in the user's PATH.
3059
3060
3061
3062# _LT_DECL_SED
3063# ------------
3064# Check for a fully-functional sed program, that truncates
3065# as few characters as possible. Prefer GNU sed if found.
3066# _LT_DECL_SED
3067
3068#m4_ifndef
3069
3070# Old name:
3071# This is what autoupdate's m4 run will expand. It fires
3072# the warning (with _au_warn_XXX), outputs it into the
3073# updated configure.ac (with AC_DIAGNOSE), and then outputs
3074# the replacement expansion.
3075
3076
3077# This is an auxiliary macro that is also run when
3078# autoupdate runs m4. It simply calls m4_warning, but
3079# we need a wrapper so that each warning is emitted only
3080# once. We break the quoting in m4_warning's argument in
3081# order to expand this macro's arguments, not AU_DEFUN's.
3082
3083
3084# Finally, this is the expansion that is picked up by
3085# autoconf. It tells the user to run autoupdate, and
3086# then outputs the replacement expansion. We do not care
3087# about autoupdate's warning because that contains
3088# information on what to do *after* running autoupdate.
3089
3090
3091
3092# _LT_CHECK_SHELL_FEATURES
3093# ------------------------
3094# Find out whether the shell is Bourne or XSI compatible,
3095# or has some other useful features.
3096# _LT_CHECK_SHELL_FEATURES
3097
3098
3099# _LT_PROG_XSI_SHELLFNS
3100# ---------------------
3101# Bourne and XSI compatible variants of some useful shell functions.
3102
3103
3104# Helper functions for option handling. -*- Autoconf -*-
3105#
3106# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3107# Inc.
3108# Written by Gary V. Vaughan, 2004
3109#
3110# This file is free software; the Free Software Foundation gives
3111# unlimited permission to copy and/or distribute it, with or without
3112# modifications, as long as this notice is preserved.
3113
3114# serial 6 ltoptions.m4
3115
3116# This is to help aclocal find these macros, as it can't see m4_define.
3117
3118
3119
3120# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3121# ------------------------------------------
3122
3123
3124
3125# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3126# ---------------------------------------
3127# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3128# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3129# saved as a flag.
3130
3131
3132
3133# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3134# ------------------------------------------------------------
3135# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3136
3137
3138
3139# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3140# -------------------------------------------------------
3141# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3142# are set.
3143
3144
3145
3146# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3147# ----------------------------------------
3148# OPTION-LIST is a space-separated list of Libtool options associated
3149# with MACRO-NAME. If any OPTION has a matching handler declared with
3150# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3151# the unknown option and exit.
3152# _LT_SET_OPTIONS
3153
3154
3155## --------------------------------- ##
3156## Macros to handle LT_INIT options. ##
3157## --------------------------------- ##
3158
3159# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3160# -----------------------------------------
3161
3162
3163
3164# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3165# -----------------------------------------------
3166# LT_OPTION_DEFINE
3167
3168
3169# dlopen
3170# ------
3171
3172
3173# This is what autoupdate's m4 run will expand. It fires
3174# the warning (with _au_warn_XXX), outputs it into the
3175# updated configure.ac (with AC_DIAGNOSE), and then outputs
3176# the replacement expansion.
3177
3178
3179# This is an auxiliary macro that is also run when
3180# autoupdate runs m4. It simply calls m4_warning, but
3181# we need a wrapper so that each warning is emitted only
3182# once. We break the quoting in m4_warning's argument in
3183# order to expand this macro's arguments, not AU_DEFUN's.
3184
3185
3186# Finally, this is the expansion that is picked up by
3187# autoconf. It tells the user to run autoupdate, and
3188# then outputs the replacement expansion. We do not care
3189# about autoupdate's warning because that contains
3190# information on what to do *after* running autoupdate.
3191
3192
3193
3194
3195# win32-dll
3196# ---------
3197# Declare package support for building win32 dll's.
3198# win32-dll
3199
3200# This is what autoupdate's m4 run will expand. It fires
3201# the warning (with _au_warn_XXX), outputs it into the
3202# updated configure.ac (with AC_DIAGNOSE), and then outputs
3203# the replacement expansion.
3204
3205
3206# This is an auxiliary macro that is also run when
3207# autoupdate runs m4. It simply calls m4_warning, but
3208# we need a wrapper so that each warning is emitted only
3209# once. We break the quoting in m4_warning's argument in
3210# order to expand this macro's arguments, not AU_DEFUN's.
3211
3212
3213# Finally, this is the expansion that is picked up by
3214# autoconf. It tells the user to run autoupdate, and
3215# then outputs the replacement expansion. We do not care
3216# about autoupdate's warning because that contains
3217# information on what to do *after* running autoupdate.
3218
3219
3220
3221
3222# _LT_ENABLE_SHARED([DEFAULT])
3223# ----------------------------
3224# implement the --enable-shared flag, and supports the `shared' and
3225# `disable-shared' LT_INIT options.
3226# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3227# _LT_ENABLE_SHARED
3228
3229
3230
3231
3232# Old names:
3233
3234
3235
3236
3237# This is what autoupdate's m4 run will expand. It fires
3238# the warning (with _au_warn_XXX), outputs it into the
3239# updated configure.ac (with AC_DIAGNOSE), and then outputs
3240# the replacement expansion.
3241
3242
3243# This is an auxiliary macro that is also run when
3244# autoupdate runs m4. It simply calls m4_warning, but
3245# we need a wrapper so that each warning is emitted only
3246# once. We break the quoting in m4_warning's argument in
3247# order to expand this macro's arguments, not AU_DEFUN's.
3248
3249
3250# Finally, this is the expansion that is picked up by
3251# autoconf. It tells the user to run autoupdate, and
3252# then outputs the replacement expansion. We do not care
3253# about autoupdate's warning because that contains
3254# information on what to do *after* running autoupdate.
3255
3256# This is what autoupdate's m4 run will expand. It fires
3257# the warning (with _au_warn_XXX), outputs it into the
3258# updated configure.ac (with AC_DIAGNOSE), and then outputs
3259# the replacement expansion.
3260
3261
3262# This is an auxiliary macro that is also run when
3263# autoupdate runs m4. It simply calls m4_warning, but
3264# we need a wrapper so that each warning is emitted only
3265# once. We break the quoting in m4_warning's argument in
3266# order to expand this macro's arguments, not AU_DEFUN's.
3267
3268
3269# Finally, this is the expansion that is picked up by
3270# autoconf. It tells the user to run autoupdate, and
3271# then outputs the replacement expansion. We do not care
3272# about autoupdate's warning because that contains
3273# information on what to do *after* running autoupdate.
3274
3275
3276
3277
3278
3279# _LT_ENABLE_STATIC([DEFAULT])
3280# ----------------------------
3281# implement the --enable-static flag, and support the `static' and
3282# `disable-static' LT_INIT options.
3283# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3284# _LT_ENABLE_STATIC
3285
3286
3287
3288
3289# Old names:
3290
3291
3292
3293
3294# This is what autoupdate's m4 run will expand. It fires
3295# the warning (with _au_warn_XXX), outputs it into the
3296# updated configure.ac (with AC_DIAGNOSE), and then outputs
3297# the replacement expansion.
3298
3299
3300# This is an auxiliary macro that is also run when
3301# autoupdate runs m4. It simply calls m4_warning, but
3302# we need a wrapper so that each warning is emitted only
3303# once. We break the quoting in m4_warning's argument in
3304# order to expand this macro's arguments, not AU_DEFUN's.
3305
3306
3307# Finally, this is the expansion that is picked up by
3308# autoconf. It tells the user to run autoupdate, and
3309# then outputs the replacement expansion. We do not care
3310# about autoupdate's warning because that contains
3311# information on what to do *after* running autoupdate.
3312
3313# This is what autoupdate's m4 run will expand. It fires
3314# the warning (with _au_warn_XXX), outputs it into the
3315# updated configure.ac (with AC_DIAGNOSE), and then outputs
3316# the replacement expansion.
3317
3318
3319# This is an auxiliary macro that is also run when
3320# autoupdate runs m4. It simply calls m4_warning, but
3321# we need a wrapper so that each warning is emitted only
3322# once. We break the quoting in m4_warning's argument in
3323# order to expand this macro's arguments, not AU_DEFUN's.
3324
3325
3326# Finally, this is the expansion that is picked up by
3327# autoconf. It tells the user to run autoupdate, and
3328# then outputs the replacement expansion. We do not care
3329# about autoupdate's warning because that contains
3330# information on what to do *after* running autoupdate.
3331
3332
3333
3334
3335
3336# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3337# ----------------------------------
3338# implement the --enable-fast-install flag, and support the `fast-install'
3339# and `disable-fast-install' LT_INIT options.
3340# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3341# _LT_ENABLE_FAST_INSTALL
3342
3343
3344
3345
3346# Old names:
3347# This is what autoupdate's m4 run will expand. It fires
3348# the warning (with _au_warn_XXX), outputs it into the
3349# updated configure.ac (with AC_DIAGNOSE), and then outputs
3350# the replacement expansion.
3351
3352
3353# This is an auxiliary macro that is also run when
3354# autoupdate runs m4. It simply calls m4_warning, but
3355# we need a wrapper so that each warning is emitted only
3356# once. We break the quoting in m4_warning's argument in
3357# order to expand this macro's arguments, not AU_DEFUN's.
3358
3359
3360# Finally, this is the expansion that is picked up by
3361# autoconf. It tells the user to run autoupdate, and
3362# then outputs the replacement expansion. We do not care
3363# about autoupdate's warning because that contains
3364# information on what to do *after* running autoupdate.
3365
3366
3367# This is what autoupdate's m4 run will expand. It fires
3368# the warning (with _au_warn_XXX), outputs it into the
3369# updated configure.ac (with AC_DIAGNOSE), and then outputs
3370# the replacement expansion.
3371
3372
3373# This is an auxiliary macro that is also run when
3374# autoupdate runs m4. It simply calls m4_warning, but
3375# we need a wrapper so that each warning is emitted only
3376# once. We break the quoting in m4_warning's argument in
3377# order to expand this macro's arguments, not AU_DEFUN's.
3378
3379
3380# Finally, this is the expansion that is picked up by
3381# autoconf. It tells the user to run autoupdate, and
3382# then outputs the replacement expansion. We do not care
3383# about autoupdate's warning because that contains
3384# information on what to do *after* running autoupdate.
3385
3386
3387
3388
3389# _LT_WITH_PIC([MODE])
3390# --------------------
3391# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3392# LT_INIT options.
3393# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3394# _LT_WITH_PIC
3395
3396
3397
3398
3399# Old name:
3400# This is what autoupdate's m4 run will expand. It fires
3401# the warning (with _au_warn_XXX), outputs it into the
3402# updated configure.ac (with AC_DIAGNOSE), and then outputs
3403# the replacement expansion.
3404
3405
3406# This is an auxiliary macro that is also run when
3407# autoupdate runs m4. It simply calls m4_warning, but
3408# we need a wrapper so that each warning is emitted only
3409# once. We break the quoting in m4_warning's argument in
3410# order to expand this macro's arguments, not AU_DEFUN's.
3411
3412
3413# Finally, this is the expansion that is picked up by
3414# autoconf. It tells the user to run autoupdate, and
3415# then outputs the replacement expansion. We do not care
3416# about autoupdate's warning because that contains
3417# information on what to do *after* running autoupdate.
3418
3419
3420
3421## ----------------- ##
3422## LTDL_INIT Options ##
3423## ----------------- ##
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3435#
3436# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3437# Written by Gary V. Vaughan, 2004
3438#
3439# This file is free software; the Free Software Foundation gives
3440# unlimited permission to copy and/or distribute it, with or without
3441# modifications, as long as this notice is preserved.
3442
3443# serial 6 ltsugar.m4
3444
3445# This is to help aclocal find these macros, as it can't see m4_define.
3446
3447
3448
3449# lt_join(SEP, ARG1, [ARG2...])
3450# -----------------------------
3451# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3452# associated separator.
3453# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3454# versions in m4sugar had bugs.
3455
3456
3457
3458
3459# lt_car(LIST)
3460# lt_cdr(LIST)
3461# ------------
3462# Manipulate m4 lists.
3463# These macros are necessary as long as will still need to support
3464# Autoconf-2.59 which quotes differently.
3465
3466
3467
3468
3469
3470# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3471# ------------------------------------------
3472# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3473# Note that neither SEPARATOR nor STRING are expanded; they are appended
3474# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3475# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3476# than defined and empty).
3477#
3478# This macro is needed until we can rely on Autoconf 2.62, since earlier
3479# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3480
3481
3482
3483
3484# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3485# ----------------------------------------------------------
3486# Produce a SEP delimited list of all paired combinations of elements of
3487# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3488# has the form PREFIXmINFIXSUFFIXn.
3489# Needed until we can rely on m4_combine added in Autoconf 2.62.
3490
3491
3492
3493# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3494# -----------------------------------------------------------------------
3495# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3496# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3497
3498
3499
3500# lt_dict_add(DICT, KEY, VALUE)
3501# -----------------------------
3502
3503
3504
3505# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3506# --------------------------------------------
3507
3508
3509
3510# lt_dict_fetch(DICT, KEY, [SUBKEY])
3511# ----------------------------------
3512
3513
3514
3515# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3516# -----------------------------------------------------------------
3517
3518
3519
3520# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3521# --------------------------------------------------------------
3522
3523
3524# ltversion.m4 -- version numbers -*- Autoconf -*-
3525#
3526# Copyright (C) 2004 Free Software Foundation, Inc.
3527# Written by Scott James Remnant, 2004
3528#
3529# This file is free software; the Free Software Foundation gives
3530# unlimited permission to copy and/or distribute it, with or without
3531# modifications, as long as this notice is preserved.
3532
3533# Generated from ltversion.in.
3534
3535# serial 3134 ltversion.m4
3536# This file is part of GNU Libtool
3537
3538
3539
3540
3541
3542
3543# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3544#
3545# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3546# Written by Scott James Remnant, 2004.
3547#
3548# This file is free software; the Free Software Foundation gives
3549# unlimited permission to copy and/or distribute it, with or without
3550# modifications, as long as this notice is preserved.
3551
3552# serial 4 lt~obsolete.m4
3553
3554# These exist entirely to fool aclocal when bootstrapping libtool.
3555#
3556# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3557# which have later been changed to m4_define as they aren't part of the
3558# exported API, or moved to Autoconf or Automake where they belong.
3559#
3560# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3561# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3562# using a macro with the same name in our local m4/libtool.m4 it'll
3563# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3564# and doesn't know about Autoconf macros at all.)
3565#
3566# So we provide this file, which has a silly filename so it's always
3567# included after everything else. This provides aclocal with the
3568# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3569# because those macros already exist, or will be overwritten later.
3570# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3571#
3572# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3573# Yes, that means every name once taken will need to remain here until
3574# we give up compatibility with versions before 1.7, at which point
3575# we need to keep only those names which we still refer to.
3576
3577# This is to help aclocal find these macros, as it can't see m4_define.
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
6ffe910a
MF
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
2232061b
MF
3642## -*- Autoconf -*-
3643
3644# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3645# Free Software Foundation, Inc.
3646#
3647# This file is free software; the Free Software Foundation
3648# gives unlimited permission to copy and/or distribute it,
3649# with or without modifications, as long as this notice is preserved.
3650
3651# serial 8
3652
3653# Based on depend.m4 from automake 1.9, modified for standalone use in
3654# an environment where GNU make is required.
3655
3656# ZW_PROG_COMPILER_DEPENDENCIES
3657# -----------------------------
3658# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3659# sets fooDEPMODE accordingly. Cache-variable compatible with
3660# original; not side-effect compatible. As the users of this macro
3661# may require accurate dependencies for correct builds, it does *not*
3662# honor --disable-dependency-checking, and failure to detect a usable
3663# method is an error. depcomp is assumed to be located in
3664# $ac_aux_dir.
3665#
3666# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3667
3668
3669
3670# AM_SET_DEPDIR
3671# -------------
3672# Choose a directory name for dependency files.
3673
3674
3675# ZW_CREATE_DEPDIR
3676# ----------------
3677# As AM_SET_DEPDIR, but also create the directory at config.status time.
3678
3679
6ffe910a
MF
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
6ffe910a
MF
3719
3720
3721
3722
3723
6ffe910a
MF
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
6ffe910a
MF
3743
3744
3745
3746
3747
3748# intl sister-directory configuration rules.
3749#
3750
3751# The idea behind this macro is that there's no need to repeat all the
3752# autoconf probes done by the intl directory - it's already done them
3753# for us. In fact, there's no need even to look at the cache for the
3754# answers. All we need to do is nab a few pieces of information.
3755# The intl directory is set up to make this easy, by generating a
3756# small file which can be sourced as a shell script; then we produce
3757# the necessary substitutions and definitions for this directory.
3758
3759
3760
3761# Autoconf M4 include file defining utility macros for complex Canadian
3762# cross builds.
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772####
3773# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3774# or AC_INIT.
3775# These demand that AC_CANONICAL_SYSTEM be called beforehand.
3776
3777####
3778# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3779# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3780
3781
3782####
3783# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3784# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3785
3786
3787
3788# Backported from Autoconf 2.5x; can go away when and if
3789# we switch. Put the OS path separator in $PATH_SEPARATOR.
3790
3791
3792
3793
3794# ACX_HAVE_GCC_FOR_TARGET
3795# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3796
3797
3798# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3799# Searching for installed target binutils. We need to take extra care,
3800# else we may find the wrong assembler, linker, etc., and lose.
3801#
3802# First try --with-build-time-tools, if specified.
3803#
3804# For build != host, we ask the installed GCC for the name of the tool it
3805# uses, and accept it if it is an absolute path. This is because the
3806# only good choice for a compiler is the same GCC version that is being
3807# installed (or we couldn't make target libraries), and we assume that
3808# on the host system we'll have not only the same GCC version, but also
3809# the same binutils version.
3810#
3811# For build == host, search the same directories that the installed
3812# compiler will search. We used to do this for the assembler, linker,
3813# and nm only; for simplicity of configuration, however, we extend this
3814# criterion to tools (such as ar and ranlib) that are never invoked by
3815# the compiler, to avoid mismatches.
3816#
3817# Also note we have to check MD_EXEC_PREFIX before checking the user's path
3818# if build == target. This makes the most sense only when bootstrapping,
3819# but we also do so when build != host. In this case, we hope that the
3820# build and host systems will have similar contents of MD_EXEC_PREFIX.
3821#
3822# If we do not find a suitable binary, then try the user's path.
3823
3824
3825###
3826# AC_PROG_CPP_WERROR
3827# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3828# triggers warnings from the preprocessor. Will be in autoconf 2.58.
3829# For now, using this also overrides header checks to use only the
3830# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3831# bit harder from here).
3832# Eventually autoconf will default to checking headers with the compiler
3833# instead, and we'll have to do this differently.
3834
3835# AC_PROG_CPP_WERROR
3836
3837# Test for GNAT.
2232061b
MF
3838# We require the gnatbind & gnatmake programs, as well as a compiler driver
3839# that understands Ada. We use the user's CC setting, already found, and
3840# possibly add $1 to the command-line parameters.
6ffe910a
MF
3841#
3842# Sets the shell variable have_gnat to yes or no as appropriate, and
3843# substitutes GNATBIND and GNATMAKE.
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
b7026657
AC
3864
3865
b7026657
AC
3866
3867
3868
3869ac_aux_dir=
81ecdfbb
RW
3870for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3871 for ac_t in install-sh install.sh shtool; do
3872 if test -f "$ac_dir/$ac_t"; then
3873 ac_aux_dir=$ac_dir
3874 ac_install_sh="$ac_aux_dir/$ac_t -c"
3875 break 2
3876 fi
3877 done
b7026657
AC
3878done
3879if test -z "$ac_aux_dir"; then
81ecdfbb 3880 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 3881fi
81ecdfbb
RW
3882
3883# These three variables are undocumented and unsupported,
3884# and are intended to be withdrawn in a future Autoconf release.
3885# They can cause serious problems if a builder's source tree is in a directory
3886# whose full name contains unusual characters.
3887ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3888ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3889ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3890
b7026657
AC
3891
3892# Find a good install program. We prefer a C program (faster),
3893# so one script is as good as another. But avoid the broken or
3894# incompatible versions:
3895# SysV /etc/install, /usr/sbin/install
3896# SunOS /usr/etc/install
3897# IRIX /sbin/install
3898# AIX /bin/install
3899# AmigaOS /C/install, which installs bootblocks on floppy discs
3900# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3901# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3902# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3903# OS/2's system install, which has a completely different semantic
3904# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3905# Reject install programs that cannot install multiple files.
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3907$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 3908if test -z "$INSTALL"; then
81ecdfbb
RW
3909if test "${ac_cv_path_install+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
b7026657
AC
3911else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3917 # Account for people who put trailing slashes in PATH elements.
3918case $as_dir/ in #((
3919 ./ | .// | /[cC]/* | \
b7026657 3920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
3922 /usr/ucb/* ) ;;
3923 *)
3924 # OSF1 and SCO ODT 3.0 have their own names for install.
3925 # Don't use installbsd from OSF since it installs stuff as root
3926 # by default.
3927 for ac_prog in ginstall scoinst install; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3929 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b7026657
AC
3930 if test $ac_prog = install &&
3931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # AIX install. It has an incompatible calling convention.
3933 :
3934 elif test $ac_prog = install &&
3935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3936 # program-specific install script used by HP pwplus--don't use.
3937 :
3938 else
81ecdfbb
RW
3939 rm -rf conftest.one conftest.two conftest.dir
3940 echo one > conftest.one
3941 echo two > conftest.two
3942 mkdir conftest.dir
3943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3944 test -s conftest.one && test -s conftest.two &&
3945 test -s conftest.dir/conftest.one &&
3946 test -s conftest.dir/conftest.two
3947 then
3948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3949 break 3
3950 fi
b7026657
AC
3951 fi
3952 fi
3953 done
3954 done
3955 ;;
3956esac
b7026657 3957
81ecdfbb
RW
3958 done
3959IFS=$as_save_IFS
3960
3961rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
3962
3963fi
3964 if test "${ac_cv_path_install+set}" = set; then
3965 INSTALL=$ac_cv_path_install
3966 else
81ecdfbb
RW
3967 # As a last resort, use the slow shell script. Don't cache a
3968 # value for INSTALL within a source directory, because that will
b7026657 3969 # break other packages using the cache if that directory is
81ecdfbb 3970 # removed, or if the value is a relative name.
b7026657
AC
3971 INSTALL=$ac_install_sh
3972 fi
3973fi
81ecdfbb
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3975$as_echo "$INSTALL" >&6; }
b7026657
AC
3976
3977# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3978# It thinks the first close brace ends the variable substitution.
c906108c
SS
3979test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3980
b7026657 3981test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cd0fc7c3 3982
c906108c
SS
3983test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3984
b7026657
AC
3985ac_ext=c
3986ac_cpp='$CPP $CPPFLAGS'
3987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
3995if test "${ac_cv_prog_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
b7026657
AC
3997else
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4000else
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4010 break 2
4011 fi
4012done
81ecdfbb
RW
4013 done
4014IFS=$as_save_IFS
b7026657
AC
4015
4016fi
4017fi
4018CC=$ac_cv_prog_CC
4019if test -n "$CC"; then
81ecdfbb
RW
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021$as_echo "$CC" >&6; }
b7026657 4022else
81ecdfbb
RW
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
b7026657
AC
4025fi
4026
81ecdfbb 4027
b7026657
AC
4028fi
4029if test -z "$ac_cv_prog_CC"; then
4030 ac_ct_CC=$CC
4031 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 4032set dummy gcc; ac_word=$2
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
b7026657
AC
4037else
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4048 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
b7026657
AC
4055
4056fi
4057fi
4058ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061$as_echo "$ac_ct_CC" >&6; }
b7026657 4062else
81ecdfbb
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
b7026657
AC
4065fi
4066
81ecdfbb
RW
4067 if test "x$ac_ct_CC" = x; then
4068 CC=""
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071yes:)
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074ac_tool_warned=yes ;;
4075esac
4076 CC=$ac_ct_CC
4077 fi
b7026657
AC
4078else
4079 CC="$ac_cv_prog_CC"
4080fi
4081
4082if test -z "$CC"; then
81ecdfbb
RW
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4085set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if test "${ac_cv_prog_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
c906108c
SS
4090else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093else
b7026657
AC
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4101 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4103 break 2
4104 fi
4105done
81ecdfbb
RW
4106 done
4107IFS=$as_save_IFS
b7026657 4108
c906108c
SS
4109fi
4110fi
b7026657 4111CC=$ac_cv_prog_CC
c906108c 4112if test -n "$CC"; then
81ecdfbb
RW
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114$as_echo "$CC" >&6; }
b7026657 4115else
81ecdfbb
RW
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117$as_echo "no" >&6; }
b7026657
AC
4118fi
4119
c906108c 4120
81ecdfbb 4121 fi
b7026657 4122fi
c906108c
SS
4123if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125set dummy cc; ac_word=$2
81ecdfbb
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if test "${ac_cv_prog_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
c906108c
SS
4130else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
c906108c 4134 ac_prog_rejected=no
b7026657
AC
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected=yes
4144 continue
4145 fi
4146 ac_cv_prog_CC="cc"
81ecdfbb 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4148 break 2
4149 fi
4150done
81ecdfbb
RW
4151 done
4152IFS=$as_save_IFS
b7026657 4153
c906108c
SS
4154if test $ac_prog_rejected = yes; then
4155 # We found a bogon in the path, so make sure we never use it.
4156 set dummy $ac_cv_prog_CC
4157 shift
b7026657 4158 if test $# != 0; then
c906108c
SS
4159 # We chose a different compiler from the bogus one.
4160 # However, it has the same basename, so the bogon will be chosen
4161 # first if we set CC to just the basename; use the full file name.
4162 shift
b7026657 4163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4164 fi
4165fi
4166fi
4167fi
b7026657 4168CC=$ac_cv_prog_CC
c906108c 4169if test -n "$CC"; then
81ecdfbb
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171$as_echo "$CC" >&6; }
c906108c 4172else
81ecdfbb
RW
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
c906108c
SS
4175fi
4176
81ecdfbb 4177
b7026657
AC
4178fi
4179if test -z "$CC"; then
4180 if test -n "$ac_tool_prefix"; then
81ecdfbb 4181 for ac_prog in cl.exe
b7026657
AC
4182 do
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186$as_echo_n "checking for $ac_word... " >&6; }
4187if test "${ac_cv_prog_CC+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
c906108c
SS
4189else
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC="$CC" # Let the user override the test.
4192else
b7026657
AC
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4202 break 2
4203 fi
4204done
81ecdfbb
RW
4205 done
4206IFS=$as_save_IFS
b7026657 4207
c906108c
SS
4208fi
4209fi
b7026657 4210CC=$ac_cv_prog_CC
c906108c 4211if test -n "$CC"; then
81ecdfbb
RW
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213$as_echo "$CC" >&6; }
c906108c 4214else
81ecdfbb
RW
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
c906108c 4217fi
b7026657 4218
81ecdfbb 4219
b7026657
AC
4220 test -n "$CC" && break
4221 done
4222fi
4223if test -z "$CC"; then
4224 ac_ct_CC=$CC
81ecdfbb 4225 for ac_prog in cl.exe
b7026657
AC
4226do
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
4231if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
b7026657
AC
4233else
4234 if test -n "$ac_ct_CC"; then
4235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4244 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657 4246 break 2
c906108c 4247 fi
b7026657 4248done
81ecdfbb
RW
4249 done
4250IFS=$as_save_IFS
b7026657
AC
4251
4252fi
4253fi
4254ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257$as_echo "$ac_ct_CC" >&6; }
b7026657 4258else
81ecdfbb
RW
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
c906108c
SS
4261fi
4262
81ecdfbb 4263
b7026657
AC
4264 test -n "$ac_ct_CC" && break
4265done
c906108c 4266
81ecdfbb
RW
4267 if test "x$ac_ct_CC" = x; then
4268 CC=""
4269 else
4270 case $cross_compiling:$ac_tool_warned in
4271yes:)
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274ac_tool_warned=yes ;;
4275esac
4276 CC=$ac_ct_CC
4277 fi
b7026657
AC
4278fi
4279
4280fi
4281
4282
81ecdfbb
RW
4283test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285as_fn_error "no acceptable C compiler found in \$PATH
4286See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
4287
4288# Provide some information about the compiler.
81ecdfbb
RW
4289$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4290set X $ac_compile
4291ac_compiler=$2
4292for ac_option in --version -v -V -qversion; do
4293 { { ac_try="$ac_compiler $ac_option >&5"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4301 ac_status=$?
81ecdfbb
RW
4302 if test -s conftest.err; then
4303 sed '10a\
4304... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4307 rm -f conftest.er1 conftest.err
4308 fi
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4311done
b7026657 4312
81ecdfbb 4313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4314/* end confdefs.h. */
4315
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324ac_clean_files_save=$ac_clean_files
81ecdfbb 4325ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b7026657
AC
4326# Try to create an executable without -o first, disregard a.out.
4327# It will help us diagnose broken compilers, and finding out an intuition
4328# of exeext.
81ecdfbb
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4330$as_echo_n "checking for C compiler default output file name... " >&6; }
4331ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4332
4333# The possible output files:
4334ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4335
4336ac_rmfiles=
4337for ac_file in $ac_files
4338do
4339 case $ac_file in
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4341 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4342 esac
4343done
4344rm -f $ac_rmfiles
4345
4346if { { ac_try="$ac_link_default"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_link_default") 2>&5
b7026657 4354 ac_status=$?
81ecdfbb
RW
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4358# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4359# in a Makefile. We should not override ac_cv_exeext if it was cached,
4360# so that the user can short-circuit this test for compilers unknown to
4361# Autoconf.
4362for ac_file in $ac_files ''
b7026657
AC
4363do
4364 test -f "$ac_file" || continue
4365 case $ac_file in
81ecdfbb 4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4367 ;;
4368 [ab].out )
4369 # We found the default executable, but exeext='' is most
4370 # certainly right.
4371 break;;
4372 *.* )
81ecdfbb
RW
4373 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4374 then :; else
4375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376 fi
4377 # We set ac_cv_exeext here because the later test for it is not
4378 # safe: cross compilers may not add the suffix if given an `-o'
4379 # argument, so we may need to know it at that point already.
4380 # Even if this section looks crufty: it has the advantage of
4381 # actually working.
b7026657
AC
4382 break;;
4383 * )
4384 break;;
4385 esac
4386done
81ecdfbb
RW
4387test "$ac_cv_exeext" = no && ac_cv_exeext=
4388
b7026657 4389else
81ecdfbb
RW
4390 ac_file=''
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4393$as_echo "$ac_file" >&6; }
4394if test -z "$ac_file"; then :
4395 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
81ecdfbb
RW
4398{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400{ as_fn_set_status 77
4401as_fn_error "C compiler cannot create executables
4402See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 4403fi
b7026657 4404ac_exeext=$ac_cv_exeext
b7026657 4405
81ecdfbb 4406# Check that the compiler produces executables we can run. If not, either
b7026657 4407# the compiler is broken, or we cross compile.
81ecdfbb
RW
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4409$as_echo_n "checking whether the C compiler works... " >&6; }
b7026657
AC
4410# If not cross compiling, check that we can run a simple program.
4411if test "$cross_compiling" != yes; then
4412 if { ac_try='./$ac_file'
81ecdfbb
RW
4413 { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418$as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
b7026657 4420 ac_status=$?
81ecdfbb
RW
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; }; then
b7026657 4423 cross_compiling=no
c906108c 4424 else
b7026657
AC
4425 if test "$cross_compiling" = maybe; then
4426 cross_compiling=yes
4427 else
81ecdfbb
RW
4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430as_fn_error "cannot run C compiled programs.
b7026657 4431If you meant to cross compile, use \`--host'.
81ecdfbb 4432See \`config.log' for more details." "$LINENO" 5; }
b7026657 4433 fi
c906108c 4434 fi
c906108c 4435fi
81ecdfbb
RW
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437$as_echo "yes" >&6; }
b7026657 4438
81ecdfbb 4439rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b7026657 4440ac_clean_files=$ac_clean_files_save
81ecdfbb 4441# Check that the compiler produces executables we can run. If not, either
b7026657 4442# the compiler is broken, or we cross compile.
81ecdfbb
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4444$as_echo_n "checking whether we are cross compiling... " >&6; }
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4446$as_echo "$cross_compiling" >&6; }
4447
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4449$as_echo_n "checking for suffix of executables... " >&6; }
4450if { { ac_try="$ac_link"
4451case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456$as_echo "$ac_try_echo"; } >&5
4457 (eval "$ac_link") 2>&5
b7026657 4458 ac_status=$?
81ecdfbb
RW
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }; then :
b7026657
AC
4461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4462# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4463# work properly (i.e., refer to `conftest.exe'), while it won't with
4464# `rm'.
4465for ac_file in conftest.exe conftest conftest.*; do
4466 test -f "$ac_file" || continue
4467 case $ac_file in
81ecdfbb 4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4470 break;;
4471 * ) break;;
4472 esac
4473done
c906108c 4474else
81ecdfbb
RW
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477as_fn_error "cannot compute suffix of executables: cannot compile and link
4478See \`config.log' for more details." "$LINENO" 5; }
c906108c 4479fi
b7026657 4480rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4482$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
4483
4484rm -f conftest.$ac_ext
4485EXEEXT=$ac_cv_exeext
4486ac_exeext=$EXEEXT
81ecdfbb
RW
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4488$as_echo_n "checking for suffix of object files... " >&6; }
4489if test "${ac_cv_objext+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
b7026657 4491else
81ecdfbb 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4493/* end confdefs.h. */
4494
4495int
4496main ()
4497{
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.o conftest.obj
81ecdfbb
RW
4504if { { ac_try="$ac_compile"
4505case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508esac
4509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510$as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_compile") 2>&5
b7026657 4512 ac_status=$?
81ecdfbb
RW
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; then :
4515 for ac_file in conftest.o conftest.obj conftest.*; do
4516 test -f "$ac_file" || continue;
b7026657 4517 case $ac_file in
81ecdfbb 4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4520 break;;
4521 esac
4522done
4523else
81ecdfbb 4524 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
81ecdfbb
RW
4527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529as_fn_error "cannot compute suffix of object files: cannot compile
4530See \`config.log' for more details." "$LINENO" 5; }
c906108c 4531fi
b7026657
AC
4532rm -f conftest.$ac_cv_objext conftest.$ac_ext
4533fi
81ecdfbb
RW
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4535$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4536OBJEXT=$ac_cv_objext
4537ac_objext=$OBJEXT
81ecdfbb
RW
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4540if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
b7026657 4542else
81ecdfbb 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4544/* end confdefs.h. */
4545
4546int
4547main ()
4548{
4549#ifndef __GNUC__
4550 choke me
4551#endif
c906108c 4552
b7026657
AC
4553 ;
4554 return 0;
4555}
4556_ACEOF
81ecdfbb 4557if ac_fn_c_try_compile "$LINENO"; then :
b7026657 4558 ac_compiler_gnu=yes
c906108c 4559else
81ecdfbb 4560 ac_compiler_gnu=no
c906108c 4561fi
81ecdfbb 4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4563ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 4564
b7026657 4565fi
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4567$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4568if test $ac_compiler_gnu = yes; then
4569 GCC=yes
4570else
4571 GCC=
4572fi
b7026657
AC
4573ac_test_CFLAGS=${CFLAGS+set}
4574ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4576$as_echo_n "checking whether $CC accepts -g... " >&6; }
4577if test "${ac_cv_prog_cc_g+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
c906108c 4579else
81ecdfbb
RW
4580 ac_save_c_werror_flag=$ac_c_werror_flag
4581 ac_c_werror_flag=yes
4582 ac_cv_prog_cc_g=no
4583 CFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4585/* end confdefs.h. */
4586
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
81ecdfbb 4595if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4596 ac_cv_prog_cc_g=yes
4597else
81ecdfbb
RW
4598 CFLAGS=""
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
c906108c 4601
81ecdfbb
RW
4602int
4603main ()
4604{
4605
4606 ;
4607 return 0;
4608}
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611
4612else
4613 ac_c_werror_flag=$ac_save_c_werror_flag
4614 CFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
4617
4618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_g=yes
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630fi
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637$as_echo "$ac_cv_prog_cc_g" >&6; }
4638if test "$ac_test_CFLAGS" = set; then
4639 CFLAGS=$ac_save_CFLAGS
4640elif test $ac_cv_prog_cc_g = yes; then
4641 if test "$GCC" = yes; then
4642 CFLAGS="-g -O2"
4643 else
c906108c
SS
4644 CFLAGS="-g"
4645 fi
4646else
4647 if test "$GCC" = yes; then
4648 CFLAGS="-O2"
4649 else
4650 CFLAGS=
4651 fi
4652fi
81ecdfbb
RW
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4655if test "${ac_cv_prog_cc_c89+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
b7026657 4657else
81ecdfbb 4658 ac_cv_prog_cc_c89=no
b7026657 4659ac_save_CC=$CC
81ecdfbb 4660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4661/* end confdefs.h. */
4662#include <stdarg.h>
4663#include <stdio.h>
4664#include <sys/types.h>
4665#include <sys/stat.h>
4666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4667struct buf { int x; };
4668FILE * (*rcsopen) (struct buf *, struct stat *, int);
4669static char *e (p, i)
4670 char **p;
4671 int i;
4672{
4673 return p[i];
4674}
4675static char *f (char * (*g) (char **, int), char **p, ...)
4676{
4677 char *s;
4678 va_list v;
4679 va_start (v,p);
4680 s = g (p, va_arg (v,int));
4681 va_end (v);
4682 return s;
4683}
4684
4685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4686 function prototypes and stuff, but not '\xHH' hex character constants.
4687 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4688 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
4689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4690 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4691 that's true only with -std. */
b7026657
AC
4692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4693
81ecdfbb
RW
4694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4695 inside strings and character constants. */
4696#define FOO(x) 'x'
4697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4698
b7026657
AC
4699int test (int i, double x);
4700struct s1 {int (*f) (int a);};
4701struct s2 {int (*f) (double a);};
4702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4703int argc;
4704char **argv;
4705int
4706main ()
4707{
4708return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4709 ;
4710 return 0;
4711}
4712_ACEOF
81ecdfbb
RW
4713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
4715do
4716 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4717 if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_cv_prog_cc_c89=$ac_arg
b7026657 4719fi
81ecdfbb
RW
4720rm -f core conftest.err conftest.$ac_objext
4721 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 4722done
81ecdfbb 4723rm -f conftest.$ac_ext
b7026657
AC
4724CC=$ac_save_CC
4725
4726fi
81ecdfbb
RW
4727# AC_CACHE_VAL
4728case "x$ac_cv_prog_cc_c89" in
4729 x)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4731$as_echo "none needed" >&6; } ;;
4732 xno)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4734$as_echo "unsupported" >&6; } ;;
b7026657 4735 *)
81ecdfbb
RW
4736 CC="$CC $ac_cv_prog_cc_c89"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4738$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 4739esac
81ecdfbb 4740if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657
AC
4741
4742fi
b7026657 4743
b7026657
AC
4744ac_ext=c
4745ac_cpp='$CPP $CPPFLAGS'
4746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4748ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749
c906108c
SS
4750
4751
4752
2232061b
MF
4753# Check whether --enable-werror was given.
4754if test "${enable_werror+set}" = set; then :
4755 enableval=$enable_werror; case "${enableval}" in
4756 yes | y) ERROR_ON_WARNING="yes" ;;
4757 no | n) ERROR_ON_WARNING="no" ;;
4758 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4759 esac
4760fi
4761
4762
4763# Enable -Werror by default when using gcc
4764if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4765 ERROR_ON_WARNING=yes
4766fi
4767
4768WERROR_CFLAGS=""
4769if test "${ERROR_ON_WARNING}" = yes ; then
4770# NOTE: Disabled in the sim dir due to most sims generating warnings.
4771# WERROR_CFLAGS="-Werror"
4772 true
4773fi
4774
2232061b 4775build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 4776-Wpointer-sign \
2232061b 4777-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
4778-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4779-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4780-Wold-style-declaration -Wold-style-definition"
2232061b
MF
4781
4782# Enable -Wno-format by default when using gcc on mingw since many
4783# GCC versions complain about %I64.
4784case "${host}" in
4785 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 4786 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
4787esac
4788
81ecdfbb
RW
4789# Check whether --enable-build-warnings was given.
4790if test "${enable_build_warnings+set}" = set; then :
4791 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
4792 yes) ;;
4793 no) build_warnings="-w";;
4794 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4795 build_warnings="${build_warnings} ${t}";;
4796 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4797 build_warnings="${t} ${build_warnings}";;
4798 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4799esac
4800if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4801 echo "Setting compiler warning flags = $build_warnings" 6>&1
4802fi
81ecdfbb
RW
4803fi
4804# Check whether --enable-sim-build-warnings was given.
4805if test "${enable_sim_build_warnings+set}" = set; then :
4806 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
4807 yes) ;;
4808 no) build_warnings="-w";;
4809 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4810 build_warnings="${build_warnings} ${t}";;
c906108c 4811 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4812 build_warnings="${t} ${build_warnings}";;
4813 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4814esac
4815if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4816 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4817fi
81ecdfbb
RW
4818fi
4819WARN_CFLAGS=""
d4f3574e
SS
4820if test "x${build_warnings}" != x -a "x$GCC" = xyes
4821then
81ecdfbb
RW
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4823$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
4824 # Separate out the -Werror flag as some files just cannot be
4825 # compiled with it enabled.
4826 for w in ${build_warnings}; do
4827 case $w in
4828 -Werr*) WERROR_CFLAGS=-Werror ;;
4829 *) # Check that GCC accepts it
4830 saved_CFLAGS="$CFLAGS"
4831 CFLAGS="$CFLAGS $w"
81ecdfbb 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4833/* end confdefs.h. */
4834
4835int
4836main ()
4837{
4838
4839 ;
4840 return 0;
4841}
4842_ACEOF
81ecdfbb 4843if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 4844 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 4845fi
81ecdfbb 4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4847 CFLAGS="$saved_CFLAGS"
4848 esac
4849 done
2232061b
MF
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4851$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
4852fi
4853
4854
4855# Put a plausible default for CC_FOR_BUILD in Makefile.
4856if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4857 AR_FOR_BUILD='$(AR)'
4858 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4859 CC_FOR_BUILD='$(CC)'
4860 CFLAGS_FOR_BUILD='$(CFLAGS)'
4861 RANLIB_FOR_BUILD='$(RANLIB)'
4862 LIBIBERTY_LIB=../../libiberty/libiberty.a
4863else
4864 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4865 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4866 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4867 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4868 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4869 LIBIBERTY_LIB=
4870fi
4871
4872
c906108c 4873# Make sure we can run config.sub.
81ecdfbb
RW
4874$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4875 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4878$as_echo_n "checking build system type... " >&6; }
4879if test "${ac_cv_build+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
b7026657 4881else
81ecdfbb
RW
4882 ac_build_alias=$build_alias
4883test "x$ac_build_alias" = x &&
4884 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4885test "x$ac_build_alias" = x &&
4886 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4887ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4888 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4889
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4892$as_echo "$ac_cv_build" >&6; }
4893case $ac_cv_build in
4894*-*-*) ;;
4895*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4896esac
b7026657 4897build=$ac_cv_build
81ecdfbb
RW
4898ac_save_IFS=$IFS; IFS='-'
4899set x $ac_cv_build
4900shift
4901build_cpu=$1
4902build_vendor=$2
4903shift; shift
4904# Remember, the first character of IFS is used to create $*,
4905# except with old shells:
4906build_os=$*
4907IFS=$ac_save_IFS
4908case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4909
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4912$as_echo_n "checking host system type... " >&6; }
4913if test "${ac_cv_host+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
b7026657 4915else
81ecdfbb
RW
4916 if test "x$host_alias" = x; then
4917 ac_cv_host=$ac_cv_build
4918else
4919 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4920 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4921fi
c906108c 4922
b7026657 4923fi
81ecdfbb
RW
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4925$as_echo "$ac_cv_host" >&6; }
4926case $ac_cv_host in
4927*-*-*) ;;
4928*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4929esac
b7026657 4930host=$ac_cv_host
81ecdfbb
RW
4931ac_save_IFS=$IFS; IFS='-'
4932set x $ac_cv_host
4933shift
4934host_cpu=$1
4935host_vendor=$2
4936shift; shift
4937# Remember, the first character of IFS is used to create $*,
4938# except with old shells:
4939host_os=$*
4940IFS=$ac_save_IFS
4941case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4945$as_echo_n "checking target system type... " >&6; }
4946if test "${ac_cv_target+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if test "x$target_alias" = x; then
4950 ac_cv_target=$ac_cv_host
b7026657 4951else
81ecdfbb
RW
4952 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4953 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4954fi
c906108c 4955
b7026657 4956fi
81ecdfbb
RW
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4958$as_echo "$ac_cv_target" >&6; }
4959case $ac_cv_target in
4960*-*-*) ;;
4961*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4962esac
b7026657 4963target=$ac_cv_target
81ecdfbb
RW
4964ac_save_IFS=$IFS; IFS='-'
4965set x $ac_cv_target
4966shift
4967target_cpu=$1
4968target_vendor=$2
4969shift; shift
4970# Remember, the first character of IFS is used to create $*,
4971# except with old shells:
4972target_os=$*
4973IFS=$ac_save_IFS
4974case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 4975
c906108c 4976
b7026657
AC
4977# The aliases save the names the user supplied, while $host etc.
4978# will get canonicalized.
4979test -n "$target_alias" &&
c906108c
SS
4980 test "$program_prefix$program_suffix$program_transform_name" = \
4981 NONENONEs,x,x, &&
4982 program_prefix=${target_alias}-
81ecdfbb 4983
c906108c 4984test "$program_prefix" != NONE &&
81ecdfbb 4985 program_transform_name="s&^&$program_prefix&;$program_transform_name"
c906108c
SS
4986# Use a double $ so make ignores it.
4987test "$program_suffix" != NONE &&
81ecdfbb
RW
4988 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4989# Double any \ or $.
b7026657 4990# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
4991ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4992program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
c906108c
SS
4993
4994
4995. ${srcdir}/../../bfd/configure.host
4996
81ecdfbb 4997ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
4998
4999
b7026657
AC
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5006$as_echo_n "checking how to run the C preprocessor... " >&6; }
c906108c
SS
5007# On Suns, sometimes $CPP names a directory.
5008if test -n "$CPP" && test -d "$CPP"; then
5009 CPP=
5010fi
5011if test -z "$CPP"; then
81ecdfbb
RW
5012 if test "${ac_cv_prog_CPP+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
c906108c 5014else
b7026657
AC
5015 # Double quotes because CPP needs to be expanded
5016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5017 do
5018 ac_preproc_ok=false
5019for ac_c_preproc_warn_flag in '' yes
5020do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
c906108c 5025 # On the NeXT, cc -E runs the code through the compiler's parser,
b7026657 5026 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5028/* end confdefs.h. */
5029#ifdef __STDC__
5030# include <limits.h>
5031#else
5032# include <assert.h>
5033#endif
5034 Syntax error
5035_ACEOF
81ecdfbb 5036if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5037
81ecdfbb 5038else
b7026657
AC
5039 # Broken: fails on valid input.
5040continue
5041fi
5042rm -f conftest.err conftest.$ac_ext
5043
81ecdfbb 5044 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5045 # can be detected and how.
81ecdfbb 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5047/* end confdefs.h. */
5048#include <ac_nonexistent.h>
5049_ACEOF
81ecdfbb 5050if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5051 # Broken: success on invalid input.
5052continue
5053else
b7026657
AC
5054 # Passes both tests.
5055ac_preproc_ok=:
5056break
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059
5060done
5061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062rm -f conftest.err conftest.$ac_ext
81ecdfbb 5063if $ac_preproc_ok; then :
b7026657
AC
5064 break
5065fi
5066
5067 done
5068 ac_cv_prog_CPP=$CPP
5069
5070fi
5071 CPP=$ac_cv_prog_CPP
5072else
5073 ac_cv_prog_CPP=$CPP
5074fi
81ecdfbb
RW
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5076$as_echo "$CPP" >&6; }
b7026657
AC
5077ac_preproc_ok=false
5078for ac_c_preproc_warn_flag in '' yes
5079do
5080 # Use a header file that comes with gcc, so configuring glibc
5081 # with a fresh cross-compiler works.
5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083 # <limits.h> exists even on freestanding compilers.
5084 # On the NeXT, cc -E runs the code through the compiler's parser,
5085 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5087/* end confdefs.h. */
5088#ifdef __STDC__
5089# include <limits.h>
5090#else
5091# include <assert.h>
5092#endif
5093 Syntax error
5094_ACEOF
81ecdfbb 5095if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5096
81ecdfbb 5097else
b7026657
AC
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
81ecdfbb 5103 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5104 # can be detected and how.
81ecdfbb 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5106/* end confdefs.h. */
5107#include <ac_nonexistent.h>
5108_ACEOF
81ecdfbb 5109if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5110 # Broken: success on invalid input.
5111continue
5112else
b7026657
AC
5113 # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5122if $ac_preproc_ok; then :
5123
c906108c 5124else
81ecdfbb
RW
5125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127as_fn_error "C preprocessor \"$CPP\" fails sanity check
5128See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
5129fi
5130
5131ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137
81ecdfbb
RW
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5139$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5140if test "${ac_cv_path_GREP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
b7026657 5142else
81ecdfbb
RW
5143 if test -z "$GREP"; then
5144 ac_path_GREP_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in grep ggrep; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5154 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5155# Check for GNU ac_path_GREP and select it if it is found.
5156 # Check for GNU $ac_path_GREP
5157case `"$ac_path_GREP" --version 2>&1` in
5158*GNU*)
5159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5160*)
5161 ac_count=0
5162 $as_echo_n 0123456789 >"conftest.in"
5163 while :
5164 do
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo 'GREP' >> "conftest.nl"
5169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_GREP="$ac_path_GREP"
5175 ac_path_GREP_max=$ac_count
b7026657 5176 fi
81ecdfbb
RW
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181esac
5182
5183 $ac_path_GREP_found && break 3
5184 done
5185 done
5186 done
5187IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_GREP"; then
5189 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5190 fi
5191else
5192 ac_cv_path_GREP=$GREP
5193fi
5194
b7026657 5195fi
81ecdfbb
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5197$as_echo "$ac_cv_path_GREP" >&6; }
5198 GREP="$ac_cv_path_GREP"
b7026657
AC
5199
5200
81ecdfbb
RW
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5202$as_echo_n "checking for egrep... " >&6; }
5203if test "${ac_cv_path_EGREP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
b7026657 5205else
81ecdfbb
RW
5206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5207 then ac_cv_path_EGREP="$GREP -E"
5208 else
5209 if test -z "$EGREP"; then
5210 ac_path_EGREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in egrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5221# Check for GNU ac_path_EGREP and select it if it is found.
5222 # Check for GNU $ac_path_EGREP
5223case `"$ac_path_EGREP" --version 2>&1` in
5224*GNU*)
5225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5226*)
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5230 do
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'EGREP' >> "conftest.nl"
5235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_EGREP="$ac_path_EGREP"
5241 ac_path_EGREP_max=$ac_count
5242 fi
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247esac
5248
5249 $ac_path_EGREP_found && break 3
5250 done
5251 done
5252 done
5253IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_EGREP"; then
5255 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256 fi
5257else
5258 ac_cv_path_EGREP=$EGREP
5259fi
5260
5261 fi
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5264$as_echo "$ac_cv_path_EGREP" >&6; }
5265 EGREP="$ac_cv_path_EGREP"
5266
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5269$as_echo_n "checking for ANSI C header files... " >&6; }
5270if test "${ac_cv_header_stdc+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272else
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5274/* end confdefs.h. */
5275#include <stdlib.h>
5276#include <stdarg.h>
5277#include <string.h>
5278#include <float.h>
5279
5280int
5281main ()
5282{
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
81ecdfbb 5288if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5289 ac_cv_header_stdc=yes
5290else
81ecdfbb 5291 ac_cv_header_stdc=no
b7026657 5292fi
81ecdfbb 5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
5294
5295if test $ac_cv_header_stdc = yes; then
5296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5298/* end confdefs.h. */
5299#include <string.h>
5300
5301_ACEOF
5302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5303 $EGREP "memchr" >/dev/null 2>&1; then :
5304
c906108c 5305else
b7026657 5306 ac_cv_header_stdc=no
c906108c
SS
5307fi
5308rm -f conftest*
b7026657 5309
c906108c 5310fi
b7026657
AC
5311
5312if test $ac_cv_header_stdc = yes; then
5313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5315/* end confdefs.h. */
5316#include <stdlib.h>
5317
5318_ACEOF
5319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5320 $EGREP "free" >/dev/null 2>&1; then :
5321
b7026657
AC
5322else
5323 ac_cv_header_stdc=no
c906108c
SS
5324fi
5325rm -f conftest*
b7026657 5326
c906108c 5327fi
b7026657
AC
5328
5329if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5331 if test "$cross_compiling" = yes; then :
b7026657 5332 :
c906108c 5333else
81ecdfbb 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5335/* end confdefs.h. */
5336#include <ctype.h>
81ecdfbb 5337#include <stdlib.h>
b7026657
AC
5338#if ((' ' & 0x0FF) == 0x020)
5339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341#else
5342# define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347#endif
5348
5349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350int
5351main ()
5352{
5353 int i;
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5357 return 2;
5358 return 0;
b7026657
AC
5359}
5360_ACEOF
81ecdfbb 5361if ac_fn_c_try_run "$LINENO"; then :
b7026657 5362
81ecdfbb
RW
5363else
5364 ac_cv_header_stdc=no
b7026657 5365fi
81ecdfbb
RW
5366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5367 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5368fi
81ecdfbb 5369
b7026657
AC
5370fi
5371fi
81ecdfbb
RW
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5373$as_echo "$ac_cv_header_stdc" >&6; }
b7026657
AC
5374if test $ac_cv_header_stdc = yes; then
5375
81ecdfbb 5376$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5377
c906108c 5378fi
c906108c 5379
b7026657 5380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
5381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5382 inttypes.h stdint.h unistd.h
5383do :
5384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5386"
5387eval as_val=\$$as_ac_Header
5388 if test "x$as_val" = x""yes; then :
5389 cat >>confdefs.h <<_ACEOF
5390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391_ACEOF
b7026657 5392
81ecdfbb 5393fi
b7026657 5394
81ecdfbb 5395done
b7026657
AC
5396
5397
81ecdfbb
RW
5398for ac_header in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
5399do :
5400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5402eval as_val=\$$as_ac_Header
5403 if test "x$as_val" = x""yes; then :
5404 cat >>confdefs.h <<_ACEOF
5405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406_ACEOF
b7026657 5407
81ecdfbb 5408fi
b7026657 5409
81ecdfbb 5410done
b7026657 5411
81ecdfbb
RW
5412ac_header_dirent=no
5413for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5414 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5416$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5418 $as_echo_n "(cached) " >&6
b7026657 5419else
81ecdfbb 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5421/* end confdefs.h. */
81ecdfbb
RW
5422#include <sys/types.h>
5423#include <$ac_hdr>
b7026657 5424
81ecdfbb
RW
5425int
5426main ()
5427{
5428if ((DIR *) 0)
5429return 0;
5430 ;
5431 return 0;
5432}
b7026657 5433_ACEOF
81ecdfbb 5434if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5435 eval "$as_ac_Header=yes"
5436else
81ecdfbb 5437 eval "$as_ac_Header=no"
c906108c 5438fi
81ecdfbb 5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 5440fi
81ecdfbb
RW
5441eval ac_res=\$$as_ac_Header
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5443$as_echo "$ac_res" >&6; }
5444eval as_val=\$$as_ac_Header
5445 if test "x$as_val" = x""yes; then :
b7026657 5446 cat >>confdefs.h <<_ACEOF
81ecdfbb 5447#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b7026657
AC
5448_ACEOF
5449
81ecdfbb 5450ac_header_dirent=$ac_hdr; break
c906108c 5451fi
b7026657 5452
c906108c
SS
5453done
5454# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5455if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5457$as_echo_n "checking for library containing opendir... " >&6; }
5458if test "${ac_cv_search_opendir+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
b7026657
AC
5460else
5461 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5463/* end confdefs.h. */
5464
81ecdfbb
RW
5465/* Override any GCC internal prototype to avoid an error.
5466 Use char because int might match the return type of a GCC
5467 builtin and then its argument prototype would still apply. */
b7026657
AC
5468#ifdef __cplusplus
5469extern "C"
5470#endif
b7026657
AC
5471char opendir ();
5472int
5473main ()
5474{
81ecdfbb 5475return opendir ();
b7026657
AC
5476 ;
5477 return 0;
5478}
5479_ACEOF
81ecdfbb
RW
5480for ac_lib in '' dir; do
5481 if test -z "$ac_lib"; then
5482 ac_res="none required"
5483 else
5484 ac_res=-l$ac_lib
b7026657 5485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5486 fi
5487 if ac_fn_c_try_link "$LINENO"; then :
5488 ac_cv_search_opendir=$ac_res
5489fi
5490rm -f core conftest.err conftest.$ac_objext \
5491 conftest$ac_exeext
5492 if test "${ac_cv_search_opendir+set}" = set; then :
5493 break
5494fi
5495done
5496if test "${ac_cv_search_opendir+set}" = set; then :
b7026657 5497
c906108c 5498else
81ecdfbb 5499 ac_cv_search_opendir=no
b7026657 5500fi
81ecdfbb 5501rm conftest.$ac_ext
b7026657
AC
5502LIBS=$ac_func_search_save_LIBS
5503fi
81ecdfbb
RW
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5505$as_echo "$ac_cv_search_opendir" >&6; }
5506ac_res=$ac_cv_search_opendir
5507if test "$ac_res" != no; then :
5508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 5509
c906108c
SS
5510fi
5511
5512else
81ecdfbb
RW
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5514$as_echo_n "checking for library containing opendir... " >&6; }
5515if test "${ac_cv_search_opendir+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
c906108c 5517else
b7026657 5518 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5520/* end confdefs.h. */
5521
81ecdfbb
RW
5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
b7026657
AC
5525#ifdef __cplusplus
5526extern "C"
5527#endif
b7026657
AC
5528char opendir ();
5529int
5530main ()
5531{
81ecdfbb 5532return opendir ();
b7026657
AC
5533 ;
5534 return 0;
5535}
5536_ACEOF
81ecdfbb
RW
5537for ac_lib in '' x; do
5538 if test -z "$ac_lib"; then
5539 ac_res="none required"
5540 else
5541 ac_res=-l$ac_lib
b7026657 5542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5543 fi
5544 if ac_fn_c_try_link "$LINENO"; then :
5545 ac_cv_search_opendir=$ac_res
5546fi
5547rm -f core conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext
5549 if test "${ac_cv_search_opendir+set}" = set; then :
5550 break
5551fi
5552done
5553if test "${ac_cv_search_opendir+set}" = set; then :
b7026657 5554
c906108c 5555else
81ecdfbb 5556 ac_cv_search_opendir=no
b7026657 5557fi
81ecdfbb 5558rm conftest.$ac_ext
b7026657 5559LIBS=$ac_func_search_save_LIBS
c906108c 5560fi
81ecdfbb
RW
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5562$as_echo "$ac_cv_search_opendir" >&6; }
5563ac_res=$ac_cv_search_opendir
5564if test "$ac_res" != no; then :
5565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c
SS
5566
5567fi
5568
b7026657 5569fi
c906108c
SS
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
b7026657
AC
5580
5581if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5583set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
5586if test "${ac_cv_prog_RANLIB+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
c906108c
SS
5588else
5589 if test -n "$RANLIB"; then
5590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5591else
b7026657
AC
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 5599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5601 break 2
5602 fi
5603done
81ecdfbb
RW
5604 done
5605IFS=$as_save_IFS
b7026657 5606
c906108c
SS
5607fi
5608fi
b7026657 5609RANLIB=$ac_cv_prog_RANLIB
c906108c 5610if test -n "$RANLIB"; then
81ecdfbb
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5612$as_echo "$RANLIB" >&6; }
b7026657 5613else
81ecdfbb
RW
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615$as_echo "no" >&6; }
b7026657
AC
5616fi
5617
81ecdfbb 5618
b7026657
AC
5619fi
5620if test -z "$ac_cv_prog_RANLIB"; then
5621 ac_ct_RANLIB=$RANLIB
5622 # Extract the first word of "ranlib", so it can be a program name with args.
5623set dummy ranlib; ac_word=$2
81ecdfbb
RW
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
b7026657
AC
5628else
5629 if test -n "$ac_ct_RANLIB"; then
5630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 5639 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5641 break 2
5642 fi
5643done
81ecdfbb
RW
5644 done
5645IFS=$as_save_IFS
b7026657 5646
b7026657
AC
5647fi
5648fi
5649ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5650if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5652$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 5653else
81ecdfbb
RW
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
b7026657
AC
5656fi
5657
81ecdfbb
RW
5658 if test "x$ac_ct_RANLIB" = x; then
5659 RANLIB=":"
5660 else
5661 case $cross_compiling:$ac_tool_warned in
5662yes:)
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667 RANLIB=$ac_ct_RANLIB
5668 fi
c906108c 5669else
b7026657 5670 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
5671fi
5672
5673
81ecdfbb
RW
5674ac_config_files="$ac_config_files Makefile"
5675
5676ac_config_commands="$ac_config_commands default"
5677
b7026657 5678cat >confcache <<\_ACEOF
c906108c
SS
5679# This file is a shell script that caches the results of configure
5680# tests run on this system so they can be shared between configure
b7026657
AC
5681# scripts and configure runs, see configure's option --config-cache.
5682# It is not useful on other systems. If it contains results you don't
5683# want to keep, you may remove or edit it.
c906108c 5684#
b7026657
AC
5685# config.status only pays attention to the cache file if you give it
5686# the --recheck option to rerun configure.
c906108c 5687#
b7026657
AC
5688# `ac_cv_env_foo' variables (set or unset) will be overridden when
5689# loading this file, other *unset* `ac_cv_foo' will be assigned the
5690# following values.
5691
5692_ACEOF
5693
c906108c
SS
5694# The following way of writing the cache mishandles newlines in values,
5695# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5696# So, we kill variables containing newlines.
c906108c
SS
5697# Ultrix sh set writes to stderr and can't be redirected directly,
5698# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5699(
5700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5701 eval ac_val=\$$ac_var
5702 case $ac_val in #(
5703 *${as_nl}*)
5704 case $ac_var in #(
5705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5707 esac
5708 case $ac_var in #(
5709 _ | IFS | as_nl) ;; #(
5710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5711 *) { eval $ac_var=; unset $ac_var;} ;;
5712 esac ;;
5713 esac
5714 done
5715
b7026657 5716 (set) 2>&1 |
81ecdfbb
RW
5717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5718 *${as_nl}ac_space=\ *)
5719 # `set' does not quote correctly, so add quotes: double-quote
5720 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5721 sed -n \
5722 "s/'/'\\\\''/g;
5723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5724 ;; #(
b7026657
AC
5725 *)
5726 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5728 ;;
81ecdfbb
RW
5729 esac |
5730 sort
5731) |
b7026657 5732 sed '
81ecdfbb 5733 /^ac_cv_env_/b end
b7026657 5734 t clear
81ecdfbb 5735 :clear
b7026657
AC
5736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5737 t end
81ecdfbb
RW
5738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5739 :end' >>confcache
5740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5741 if test -w "$cache_file"; then
5742 test "x$cache_file" != "x/dev/null" &&
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5744$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 5745 cat confcache >$cache_file
c906108c 5746 else
81ecdfbb
RW
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5748$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5749 fi
5750fi
5751rm -f confcache
5752
c906108c
SS
5753test "x$prefix" = xNONE && prefix=$ac_default_prefix
5754# Let make expand exec_prefix.
5755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5756
c906108c
SS
5757DEFS=-DHAVE_CONFIG_H
5758
b7026657
AC
5759ac_libobjs=
5760ac_ltlibobjs=
5761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5762 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5766 # will be set to the directory where LIBOBJS objects are built.
5767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5769done
5770LIBOBJS=$ac_libobjs
c906108c 5771
b7026657
AC
5772LTLIBOBJS=$ac_ltlibobjs
5773
5774
5775
5776: ${CONFIG_STATUS=./config.status}
81ecdfbb 5777ac_write_fail=0
b7026657
AC
5778ac_clean_files_save=$ac_clean_files
5779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5781$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5782as_write_fail=0
5783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5784#! $SHELL
5785# Generated by $as_me.
c906108c 5786# Run this file to recreate the current configuration.
c906108c 5787# Compiler output produced by configure, useful for debugging
b7026657
AC
5788# configure, is in config.log if it exists.
5789
5790debug=false
5791ac_cs_recheck=false
5792ac_cs_silent=false
b7026657 5793
81ecdfbb
RW
5794SHELL=\${CONFIG_SHELL-$SHELL}
5795export SHELL
5796_ASEOF
5797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5798## -------------------- ##
5799## M4sh Initialization. ##
5800## -------------------- ##
5801
5802# Be more Bourne compatible
5803DUALCASE=1; export DUALCASE # for MKS sh
5804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5805 emulate sh
5806 NULLCMD=:
81ecdfbb 5807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5808 # is contrary to our usage. Disable this feature.
5809 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5810 setopt NO_GLOB_SUBST
5811else
5812 case `(set -o) 2>/dev/null` in #(
5813 *posix*) :
5814 set -o posix ;; #(
5815 *) :
5816 ;;
5817esac
b7026657 5818fi
c906108c 5819
81ecdfbb
RW
5820
5821as_nl='
5822'
5823export as_nl
5824# Printing a long string crashes Solaris 7 /usr/bin/printf.
5825as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5826as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5828# Prefer a ksh shell builtin over an external printf program on Solaris,
5829# but without wasting forks for bash or zsh.
5830if test -z "$BASH_VERSION$ZSH_VERSION" \
5831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5832 as_echo='print -r --'
5833 as_echo_n='print -rn --'
5834elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5835 as_echo='printf %s\n'
5836 as_echo_n='printf %s'
b7026657 5837else
81ecdfbb
RW
5838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5840 as_echo_n='/usr/ucb/echo -n'
5841 else
5842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5843 as_echo_n_body='eval
5844 arg=$1;
5845 case $arg in #(
5846 *"$as_nl"*)
5847 expr "X$arg" : "X\\(.*\\)$as_nl";
5848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5849 esac;
5850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5851 '
5852 export as_echo_n_body
5853 as_echo_n='sh -c $as_echo_n_body as_echo'
5854 fi
5855 export as_echo_body
5856 as_echo='sh -c $as_echo_body as_echo'
5857fi
5858
5859# The user is always right.
5860if test "${PATH_SEPARATOR+set}" != set; then
5861 PATH_SEPARATOR=:
5862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5864 PATH_SEPARATOR=';'
5865 }
b7026657
AC
5866fi
5867
5868
81ecdfbb
RW
5869# IFS
5870# We need space, tab and new line, in precisely that order. Quoting is
5871# there to prevent editors from complaining about space-tab.
5872# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5873# splitting by setting IFS to empty value.)
5874IFS=" "" $as_nl"
5875
5876# Find who we are. Look in the path if we contain no directory separator.
5877case $0 in #((
5878 *[\\/]* ) as_myself=$0 ;;
5879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5885 done
5886IFS=$as_save_IFS
5887
5888 ;;
5889esac
5890# We did not find ourselves, most probably we were run as `sh COMMAND'
5891# in which case we are not to be found in the path.
5892if test "x$as_myself" = x; then
5893 as_myself=$0
5894fi
5895if test ! -f "$as_myself"; then
5896 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5897 exit 1
5898fi
5899
5900# Unset variables that we do not need and which cause bugs (e.g. in
5901# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5902# suppresses any "Segmentation fault" message there. '((' could
5903# trigger a bug in pdksh 5.2.14.
5904for as_var in BASH_ENV ENV MAIL MAILPATH
5905do eval test x\${$as_var+set} = xset \
5906 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5907done
b7026657
AC
5908PS1='$ '
5909PS2='> '
5910PS4='+ '
5911
5912# NLS nuisances.
81ecdfbb
RW
5913LC_ALL=C
5914export LC_ALL
5915LANGUAGE=C
5916export LANGUAGE
5917
5918# CDPATH.
5919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5920
5921
5922# as_fn_error ERROR [LINENO LOG_FD]
5923# ---------------------------------
5924# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5925# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5926# script with status $?, using 1 if that was 0.
5927as_fn_error ()
5928{
5929 as_status=$?; test $as_status -eq 0 && as_status=1
5930 if test "$3"; then
5931 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5932 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 5933 fi
81ecdfbb
RW
5934 $as_echo "$as_me: error: $1" >&2
5935 as_fn_exit $as_status
5936} # as_fn_error
5937
5938
5939# as_fn_set_status STATUS
5940# -----------------------
5941# Set $? to STATUS, without forking.
5942as_fn_set_status ()
5943{
5944 return $1
5945} # as_fn_set_status
5946
5947# as_fn_exit STATUS
5948# -----------------
5949# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5950as_fn_exit ()
5951{
5952 set +e
5953 as_fn_set_status $1
5954 exit $1
5955} # as_fn_exit
5956
5957# as_fn_unset VAR
5958# ---------------
5959# Portably unset VAR.
5960as_fn_unset ()
5961{
5962 { eval $1=; unset $1;}
5963}
5964as_unset=as_fn_unset
5965# as_fn_append VAR VALUE
5966# ----------------------
5967# Append the text in VALUE to the end of the definition contained in VAR. Take
5968# advantage of any shell optimizations that allow amortized linear growth over
5969# repeated appends, instead of the typical quadratic growth present in naive
5970# implementations.
5971if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5972 eval 'as_fn_append ()
5973 {
5974 eval $1+=\$2
5975 }'
5976else
5977 as_fn_append ()
5978 {
5979 eval $1=\$$1\$2
5980 }
5981fi # as_fn_append
5982
5983# as_fn_arith ARG...
5984# ------------------
5985# Perform arithmetic evaluation on the ARGs, and store the result in the
5986# global $as_val. Take advantage of shells that can avoid forks. The arguments
5987# must be portable across $(()) and expr.
5988if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5989 eval 'as_fn_arith ()
5990 {
5991 as_val=$(( $* ))
5992 }'
5993else
5994 as_fn_arith ()
5995 {
5996 as_val=`expr "$@" || test $? -eq 1`
5997 }
5998fi # as_fn_arith
5999
c906108c 6000
81ecdfbb
RW
6001if expr a : '\(a\)' >/dev/null 2>&1 &&
6002 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
6003 as_expr=expr
6004else
6005 as_expr=false
6006fi
c906108c 6007
81ecdfbb 6008if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6009 as_basename=basename
6010else
6011 as_basename=false
6012fi
c906108c 6013
81ecdfbb
RW
6014if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6015 as_dirname=dirname
6016else
6017 as_dirname=false
6018fi
c906108c 6019
81ecdfbb 6020as_me=`$as_basename -- "$0" ||
b7026657
AC
6021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6022 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6023 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6024$as_echo X/"$0" |
6025 sed '/^.*\/\([^/][^/]*\)\/*$/{
6026 s//\1/
6027 q
6028 }
6029 /^X\/\(\/\/\)$/{
6030 s//\1/
6031 q
6032 }
6033 /^X\/\(\/\).*/{
6034 s//\1/
6035 q
6036 }
6037 s/.*/./; q'`
b7026657 6038
b7026657
AC
6039# Avoid depending upon Character Ranges.
6040as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6041as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6042as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6043as_cr_digits='0123456789'
6044as_cr_alnum=$as_cr_Letters$as_cr_digits
6045
81ecdfbb
RW
6046ECHO_C= ECHO_N= ECHO_T=
6047case `echo -n x` in #(((((
6048-n*)
6049 case `echo 'xy\c'` in
6050 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6051 xy) ECHO_C='\c';;
6052 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6053 ECHO_T=' ';;
6054 esac;;
6055*)
6056 ECHO_N='-n';;
b7026657
AC
6057esac
6058
81ecdfbb
RW
6059rm -f conf$$ conf$$.exe conf$$.file
6060if test -d conf$$.dir; then
6061 rm -f conf$$.dir/conf$$.file
b7026657 6062else
81ecdfbb
RW
6063 rm -f conf$$.dir
6064 mkdir conf$$.dir 2>/dev/null
b7026657 6065fi
81ecdfbb
RW
6066if (echo >conf$$.file) 2>/dev/null; then
6067 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6068 as_ln_s='ln -s'
81ecdfbb
RW
6069 # ... but there are two gotchas:
6070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6072 # In both cases, we have to default to `cp -p'.
6073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6074 as_ln_s='cp -p'
6075 elif ln conf$$.file conf$$ 2>/dev/null; then
6076 as_ln_s=ln
6077 else
6078 as_ln_s='cp -p'
c906108c 6079 fi
b7026657
AC
6080else
6081 as_ln_s='cp -p'
6082fi
81ecdfbb
RW
6083rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6084rmdir conf$$.dir 2>/dev/null
6085
6086
6087# as_fn_mkdir_p
6088# -------------
6089# Create "$as_dir" as a directory, including parents if necessary.
6090as_fn_mkdir_p ()
6091{
6092
6093 case $as_dir in #(
6094 -*) as_dir=./$as_dir;;
6095 esac
6096 test -d "$as_dir" || eval $as_mkdir_p || {
6097 as_dirs=
6098 while :; do
6099 case $as_dir in #(
6100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6101 *) as_qdir=$as_dir;;
6102 esac
6103 as_dirs="'$as_qdir' $as_dirs"
6104 as_dir=`$as_dirname -- "$as_dir" ||
6105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6106 X"$as_dir" : 'X\(//\)[^/]' \| \
6107 X"$as_dir" : 'X\(//\)$' \| \
6108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6109$as_echo X"$as_dir" |
6110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6111 s//\1/
6112 q
6113 }
6114 /^X\(\/\/\)[^/].*/{
6115 s//\1/
6116 q
6117 }
6118 /^X\(\/\/\)$/{
6119 s//\1/
6120 q
6121 }
6122 /^X\(\/\).*/{
6123 s//\1/
6124 q
6125 }
6126 s/.*/./; q'`
6127 test -d "$as_dir" && break
6128 done
6129 test -z "$as_dirs" || eval "mkdir $as_dirs"
6130 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
b7026657 6131
81ecdfbb
RW
6132
6133} # as_fn_mkdir_p
b7026657 6134if mkdir -p . 2>/dev/null; then
81ecdfbb 6135 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
6136else
6137 test -d ./-p && rmdir ./-p
6138 as_mkdir_p=false
6139fi
6140
81ecdfbb
RW
6141if test -x / >/dev/null 2>&1; then
6142 as_test_x='test -x'
6143else
6144 if ls -dL / >/dev/null 2>&1; then
6145 as_ls_L_option=L
6146 else
6147 as_ls_L_option=
6148 fi
6149 as_test_x='
6150 eval sh -c '\''
6151 if test -d "$1"; then
6152 test -d "$1/.";
6153 else
6154 case $1 in #(
6155 -*)set "./$1";;
6156 esac;
6157 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6158 ???[sx]*):;;*)false;;esac;fi
6159 '\'' sh
6160 '
6161fi
6162as_executable_p=$as_test_x
b7026657
AC
6163
6164# Sed expression to map a string onto a valid CPP name.
6165as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6166
6167# Sed expression to map a string onto a valid variable name.
6168as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6169
6170
b7026657 6171exec 6>&1
81ecdfbb
RW
6172## ----------------------------------- ##
6173## Main body of $CONFIG_STATUS script. ##
6174## ----------------------------------- ##
6175_ASEOF
6176test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6177
6178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6179# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6180# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6181# values after options handling.
6182ac_log="
b7026657 6183This file was extended by $as_me, which was
81ecdfbb 6184generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
6185
6186 CONFIG_FILES = $CONFIG_FILES
6187 CONFIG_HEADERS = $CONFIG_HEADERS
6188 CONFIG_LINKS = $CONFIG_LINKS
6189 CONFIG_COMMANDS = $CONFIG_COMMANDS
6190 $ $0 $@
6191
81ecdfbb
RW
6192on `(hostname || uname -n) 2>/dev/null | sed 1q`
6193"
6194
b7026657
AC
6195_ACEOF
6196
81ecdfbb
RW
6197case $ac_config_files in *"
6198"*) set x $ac_config_files; shift; ac_config_files=$*;;
6199esac
b7026657 6200
81ecdfbb
RW
6201case $ac_config_headers in *"
6202"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6203esac
b7026657 6204
b7026657 6205
81ecdfbb
RW
6206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6207# Files that config.status was made for.
6208config_files="$ac_config_files"
6209config_headers="$ac_config_headers"
6210config_commands="$ac_config_commands"
b7026657 6211
81ecdfbb 6212_ACEOF
b7026657 6213
81ecdfbb 6214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6215ac_cs_usage="\
81ecdfbb
RW
6216\`$as_me' instantiates files and other configuration actions
6217from templates according to the current configuration. Unless the files
6218and actions are specified as TAGs, all are instantiated by default.
b7026657 6219
81ecdfbb 6220Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6221
6222 -h, --help print this help, then exit
81ecdfbb
RW
6223 -V, --version print version number and configuration settings, then exit
6224 -q, --quiet, --silent
6225 do not print progress messages
b7026657
AC
6226 -d, --debug don't remove temporary files
6227 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6228 --file=FILE[:TEMPLATE]
6229 instantiate the configuration file FILE
6230 --header=FILE[:TEMPLATE]
6231 instantiate the configuration header FILE
b7026657
AC
6232
6233Configuration files:
6234$config_files
6235
6236Configuration headers:
6237$config_headers
6238
6239Configuration commands:
6240$config_commands
6241
81ecdfbb 6242Report bugs to the package provider."
b7026657 6243
81ecdfbb
RW
6244_ACEOF
6245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
6246ac_cs_version="\\
6247config.status
81ecdfbb
RW
6248configured by $0, generated by GNU Autoconf 2.64,
6249 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 6250
81ecdfbb 6251Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
6252This config.status script is free software; the Free Software Foundation
6253gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6254
6255ac_pwd='$ac_pwd'
6256srcdir='$srcdir'
6257INSTALL='$INSTALL'
6258test -n "\$AWK" || AWK=awk
b7026657
AC
6259_ACEOF
6260
81ecdfbb
RW
6261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6262# The default lists apply if the user does not specify any file.
b7026657
AC
6263ac_need_defaults=:
6264while test $# != 0
6265do
6266 case $1 in
6267 --*=*)
81ecdfbb
RW
6268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
6270 ac_shift=:
6271 ;;
81ecdfbb 6272 *)
b7026657
AC
6273 ac_option=$1
6274 ac_optarg=$2
6275 ac_shift=shift
6276 ;;
b7026657
AC
6277 esac
6278
6279 case $ac_option in
6280 # Handling of the options.
b7026657
AC
6281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6282 ac_cs_recheck=: ;;
81ecdfbb
RW
6283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6284 $as_echo "$ac_cs_version"; exit ;;
6285 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6286 debug=: ;;
6287 --file | --fil | --fi | --f )
6288 $ac_shift
81ecdfbb
RW
6289 case $ac_optarg in
6290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6291 esac
6292 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6293 ac_need_defaults=false;;
6294 --header | --heade | --head | --hea )
6295 $ac_shift
81ecdfbb
RW
6296 case $ac_optarg in
6297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6298 esac
6299 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6300 ac_need_defaults=false;;
81ecdfbb
RW
6301 --he | --h)
6302 # Conflict between --help and --header
6303 as_fn_error "ambiguous option: \`$1'
6304Try \`$0 --help' for more information.";;
6305 --help | --hel | -h )
6306 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6309 ac_cs_silent=: ;;
6310
6311 # This is an error.
81ecdfbb
RW
6312 -*) as_fn_error "unrecognized option: \`$1'
6313Try \`$0 --help' for more information." ;;
b7026657 6314
81ecdfbb
RW
6315 *) as_fn_append ac_config_targets " $1"
6316 ac_need_defaults=false ;;
b7026657
AC
6317
6318 esac
6319 shift
c906108c 6320done
b7026657
AC
6321
6322ac_configure_extra_args=
6323
6324if $ac_cs_silent; then
6325 exec 6>/dev/null
6326 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 6327fi
c906108c 6328
b7026657 6329_ACEOF
81ecdfbb 6330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6331if \$ac_cs_recheck; then
81ecdfbb
RW
6332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6333 shift
6334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6335 CONFIG_SHELL='$SHELL'
6336 export CONFIG_SHELL
6337 exec "\$@"
b7026657 6338fi
c906108c 6339
b7026657 6340_ACEOF
81ecdfbb
RW
6341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6342exec 5>>config.log
6343{
6344 echo
6345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6346## Running $as_me. ##
6347_ASBOX
6348 $as_echo "$ac_log"
6349} >&5
b7026657 6350
81ecdfbb
RW
6351_ACEOF
6352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6353_ACEOF
b7026657 6354
81ecdfbb 6355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6356
81ecdfbb 6357# Handling of arguments.
b7026657
AC
6358for ac_config_target in $ac_config_targets
6359do
81ecdfbb
RW
6360 case $ac_config_target in
6361 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6363 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6364
6365 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 6366 esac
b7026657
AC
6367done
6368
81ecdfbb 6369
b7026657
AC
6370# If the user did not use the arguments to specify the items to instantiate,
6371# then the envvar interface is used. Set only those that are not.
6372# We use the long form for the default assignment because of an extremely
6373# bizarre bug on SunOS 4.1.3.
6374if $ac_need_defaults; then
6375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6376 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6377 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6378fi
c906108c 6379
b7026657 6380# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6381# simply because there is no reason against having it here, and in addition,
b7026657 6382# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6383# Hook for its removal unless debugging.
6384# Note that there is a small window in which the directory will not be cleaned:
6385# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6386$debug ||
6387{
81ecdfbb
RW
6388 tmp=
6389 trap 'exit_status=$?
6390 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6391' 0
6392 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6393}
b7026657
AC
6394# Create a (secure) tmp directory for tmp files.
6395
6396{
81ecdfbb 6397 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
6398 test -n "$tmp" && test -d "$tmp"
6399} ||
6400{
81ecdfbb
RW
6401 tmp=./conf$$-$RANDOM
6402 (umask 077 && mkdir "$tmp")
6403} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6404
6405# Set up the scripts for CONFIG_FILES section.
6406# No need to generate them if there are no CONFIG_FILES.
6407# This happens for instance with `./config.status config.h'.
6408if test -n "$CONFIG_FILES"; then
6409
6410
6411ac_cr=`echo X | tr X '\015'`
6412# On cygwin, bash can eat \r inside `` if the user requested igncr.
6413# But we know of no other shell where ac_cr would be empty at this
6414# point, so we can use a bashism as a fallback.
6415if test "x$ac_cr" = x; then
6416 eval ac_cr=\$\'\\r\'
6417fi
6418ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6419if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6420 ac_cs_awk_cr='\r'
6421else
6422 ac_cs_awk_cr=$ac_cr
6423fi
6424
6425echo 'BEGIN {' >"$tmp/subs1.awk" &&
6426_ACEOF
6427
6428
b7026657 6429{
81ecdfbb
RW
6430 echo "cat >conf$$subs.awk <<_ACEOF" &&
6431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6432 echo "_ACEOF"
6433} >conf$$subs.sh ||
6434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6435ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6436ac_delim='%!_!# '
6437for ac_last_try in false false false false false :; do
6438 . ./conf$$subs.sh ||
6439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6440
6441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6442 if test $ac_delim_n = $ac_delim_num; then
6443 break
6444 elif $ac_last_try; then
6445 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6446 else
6447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6448 fi
6449done
6450rm -f conf$$subs.sh
b7026657 6451
81ecdfbb
RW
6452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6453cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
b7026657 6454_ACEOF
81ecdfbb
RW
6455sed -n '
6456h
6457s/^/S["/; s/!.*/"]=/
6458p
6459g
6460s/^[^!]*!//
6461:repl
6462t repl
6463s/'"$ac_delim"'$//
6464t delim
6465:nl
6466h
6467s/\(.\{148\}\).*/\1/
6468t more1
6469s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6470p
6471n
6472b repl
6473:more1
6474s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6475p
6476g
6477s/.\{148\}//
6478t nl
6479:delim
6480h
6481s/\(.\{148\}\).*/\1/
6482t more2
6483s/["\\]/\\&/g; s/^/"/; s/$/"/
6484p
6485b
6486:more2
6487s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6488p
6489g
6490s/.\{148\}//
6491t delim
6492' <conf$$subs.awk | sed '
6493/^[^""]/{
6494 N
6495 s/\n//
6496}
6497' >>$CONFIG_STATUS || ac_write_fail=1
6498rm -f conf$$subs.awk
6499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6500_ACAWK
6501cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6502 for (key in S) S_is_set[key] = 1
6503 FS = "\a"
b7026657 6504
81ecdfbb
RW
6505}
6506{
6507 line = $ 0
6508 nfields = split(line, field, "@")
6509 substed = 0
6510 len = length(field[1])
6511 for (i = 2; i < nfields; i++) {
6512 key = field[i]
6513 keylen = length(key)
6514 if (S_is_set[key]) {
6515 value = S[key]
6516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6517 len += length(value) + length(field[++i])
6518 substed = 1
6519 } else
6520 len += 1 + keylen
6521 }
6522
6523 print line
6524}
c906108c 6525
81ecdfbb
RW
6526_ACAWK
6527_ACEOF
6528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6529if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6531else
6532 cat
6533fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6534 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6535_ACEOF
b7026657 6536
81ecdfbb
RW
6537# VPATH may cause trouble with some makes, so we remove $(srcdir),
6538# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6539# trailing colons and then remove the whole line if VPATH becomes empty
6540# (actually we leave an empty line to preserve line numbers).
6541if test "x$srcdir" = x.; then
6542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6543s/:*\$(srcdir):*/:/
6544s/:*\${srcdir}:*/:/
6545s/:*@srcdir@:*/:/
6546s/^\([^=]*=[ ]*\):*/\1/
6547s/:*$//
6548s/^[^=]*=[ ]*$//
6549}'
6550fi
6551
6552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6553fi # test -n "$CONFIG_FILES"
b7026657 6554
81ecdfbb
RW
6555# Set up the scripts for CONFIG_HEADERS section.
6556# No need to generate them if there are no CONFIG_HEADERS.
6557# This happens for instance with `./config.status Makefile'.
6558if test -n "$CONFIG_HEADERS"; then
6559cat >"$tmp/defines.awk" <<\_ACAWK ||
6560BEGIN {
b7026657
AC
6561_ACEOF
6562
81ecdfbb
RW
6563# Transform confdefs.h into an awk script `defines.awk', embedded as
6564# here-document in config.status, that substitutes the proper values into
6565# config.h.in to produce config.h.
6566
6567# Create a delimiter string that does not exist in confdefs.h, to ease
6568# handling of long lines.
6569ac_delim='%!_!# '
6570for ac_last_try in false false :; do
6571 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6572 if test -z "$ac_t"; then
6573 break
6574 elif $ac_last_try; then
6575 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6576 else
6577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 6578 fi
81ecdfbb 6579done
c906108c 6580
81ecdfbb
RW
6581# For the awk script, D is an array of macro values keyed by name,
6582# likewise P contains macro parameters if any. Preserve backslash
6583# newline sequences.
6584
6585ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6586sed -n '
6587s/.\{148\}/&'"$ac_delim"'/g
6588t rset
6589:rset
6590s/^[ ]*#[ ]*define[ ][ ]*/ /
6591t def
6592d
6593:def
6594s/\\$//
6595t bsnl
6596s/["\\]/\\&/g
6597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6598D["\1"]=" \3"/p
6599s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6600d
6601:bsnl
6602s/["\\]/\\&/g
6603s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6604D["\1"]=" \3\\\\\\n"\\/p
6605t cont
6606s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6607t cont
6608d
6609:cont
6610n
6611s/.\{148\}/&'"$ac_delim"'/g
6612t clear
6613:clear
6614s/\\$//
6615t bsnlc
6616s/["\\]/\\&/g; s/^/"/; s/$/"/p
6617d
6618:bsnlc
6619s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6620b cont
6621' <confdefs.h | sed '
6622s/'"$ac_delim"'/"\\\
6623"/g' >>$CONFIG_STATUS || ac_write_fail=1
6624
6625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 for (key in D) D_is_set[key] = 1
6627 FS = "\a"
6628}
6629/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6630 line = \$ 0
6631 split(line, arg, " ")
6632 if (arg[1] == "#") {
6633 defundef = arg[2]
6634 mac1 = arg[3]
6635 } else {
6636 defundef = substr(arg[1], 2)
6637 mac1 = arg[2]
6638 }
6639 split(mac1, mac2, "(") #)
6640 macro = mac2[1]
6641 prefix = substr(line, 1, index(line, defundef) - 1)
6642 if (D_is_set[macro]) {
6643 # Preserve the white space surrounding the "#".
6644 print prefix "define", macro P[macro] D[macro]
6645 next
6646 } else {
6647 # Replace #undef with comments. This is necessary, for example,
6648 # in the case of _POSIX_SOURCE, which is predefined and required
6649 # on some systems where configure will not decide to define it.
6650 if (defundef == "undef") {
6651 print "/*", prefix defundef, macro, "*/"
6652 next
6653 }
6654 }
6655}
6656{ print }
6657_ACAWK
b7026657 6658_ACEOF
81ecdfbb
RW
6659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6660 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6661fi # test -n "$CONFIG_HEADERS"
6662
6663
6664eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6665shift
6666for ac_tag
6667do
6668 case $ac_tag in
6669 :[FHLC]) ac_mode=$ac_tag; continue;;
6670 esac
6671 case $ac_mode$ac_tag in
6672 :[FHL]*:*);;
6673 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6674 :[FH]-) ac_tag=-:-;;
6675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6676 esac
6677 ac_save_IFS=$IFS
6678 IFS=:
6679 set x $ac_tag
6680 IFS=$ac_save_IFS
6681 shift
6682 ac_file=$1
6683 shift
6684
6685 case $ac_mode in
6686 :L) ac_source=$1;;
6687 :[FH])
6688 ac_file_inputs=
6689 for ac_f
6690 do
6691 case $ac_f in
6692 -) ac_f="$tmp/stdin";;
6693 *) # Look for the file first in the build tree, then in the source tree
6694 # (if the path is not absolute). The absolute path cannot be DOS-style,
6695 # because $ac_f cannot contain `:'.
6696 test -f "$ac_f" ||
6697 case $ac_f in
6698 [\\/$]*) false;;
6699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6700 esac ||
6701 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6702 esac
6703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6704 as_fn_append ac_file_inputs " '$ac_f'"
6705 done
6706
6707 # Let's still pretend it is `configure' which instantiates (i.e., don't
6708 # use $as_me), people would be surprised to read:
6709 # /* config.h. Generated by config.status. */
6710 configure_input='Generated from '`
6711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6712 `' by configure.'
6713 if test x"$ac_file" != x-; then
6714 configure_input="$ac_file. $configure_input"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6716$as_echo "$as_me: creating $ac_file" >&6;}
6717 fi
6718 # Neutralize special characters interpreted by sed in replacement strings.
6719 case $configure_input in #(
6720 *\&* | *\|* | *\\* )
6721 ac_sed_conf_input=`$as_echo "$configure_input" |
6722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6723 *) ac_sed_conf_input=$configure_input;;
6724 esac
6725
6726 case $ac_tag in
6727 *:-:* | *:-) cat >"$tmp/stdin" \
6728 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6729 esac
6730 ;;
c906108c
SS
6731 esac
6732
81ecdfbb 6733 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6735 X"$ac_file" : 'X\(//\)[^/]' \| \
6736 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6738$as_echo X"$ac_file" |
6739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6740 s//\1/
6741 q
6742 }
6743 /^X\(\/\/\)[^/].*/{
6744 s//\1/
6745 q
6746 }
6747 /^X\(\/\/\)$/{
6748 s//\1/
6749 q
6750 }
6751 /^X\(\/\).*/{
6752 s//\1/
6753 q
6754 }
6755 s/.*/./; q'`
6756 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6757 ac_builddir=.
6758
81ecdfbb
RW
6759case "$ac_dir" in
6760.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6761*)
6762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6763 # A ".." for each directory in $ac_dir_suffix.
6764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6765 case $ac_top_builddir_sub in
6766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6768 esac ;;
6769esac
6770ac_abs_top_builddir=$ac_pwd
6771ac_abs_builddir=$ac_pwd$ac_dir_suffix
6772# for backward compatibility:
6773ac_top_builddir=$ac_top_build_prefix
b7026657
AC
6774
6775case $srcdir in
81ecdfbb 6776 .) # We are building in place.
b7026657 6777 ac_srcdir=.
81ecdfbb
RW
6778 ac_top_srcdir=$ac_top_builddir_sub
6779 ac_abs_top_srcdir=$ac_pwd ;;
6780 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6781 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6782 ac_top_srcdir=$srcdir
6783 ac_abs_top_srcdir=$srcdir ;;
6784 *) # Relative name.
6785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6786 ac_top_srcdir=$ac_top_build_prefix$srcdir
6787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6788esac
81ecdfbb 6789ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6790
b7026657 6791
81ecdfbb
RW
6792 case $ac_mode in
6793 :F)
6794 #
6795 # CONFIG_FILE
6796 #
b7026657
AC
6797
6798 case $INSTALL in
6799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6801 esac
81ecdfbb 6802_ACEOF
c906108c 6803
81ecdfbb
RW
6804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6805# If the template does not know about datarootdir, expand it.
6806# FIXME: This hack should be removed a few years after 2.60.
6807ac_datarootdir_hack=; ac_datarootdir_seen=
6808ac_sed_dataroot='
6809/datarootdir/ {
6810 p
6811 q
6812}
6813/@datadir@/p
6814/@docdir@/p
6815/@infodir@/p
6816/@localedir@/p
6817/@mandir@/p'
6818case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6819*datarootdir*) ac_datarootdir_seen=yes;;
6820*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6822$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6823_ACEOF
6824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6825 ac_datarootdir_hack='
6826 s&@datadir@&$datadir&g
6827 s&@docdir@&$docdir&g
6828 s&@infodir@&$infodir&g
6829 s&@localedir@&$localedir&g
6830 s&@mandir@&$mandir&g
6831 s&\\\${datarootdir}&$datarootdir&g' ;;
6832esac
b7026657 6833_ACEOF
81ecdfbb
RW
6834
6835# Neutralize VPATH when `$srcdir' = `.'.
6836# Shell code in configure.ac might set extrasub.
6837# FIXME: do we really want to maintain this feature?
6838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6839ac_sed_extra="$ac_vpsub
b7026657
AC
6840$extrasub
6841_ACEOF
81ecdfbb 6842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6843:t
6844/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6845s|@configure_input@|$ac_sed_conf_input|;t t
6846s&@top_builddir@&$ac_top_builddir_sub&;t t
6847s&@top_build_prefix@&$ac_top_build_prefix&;t t
6848s&@srcdir@&$ac_srcdir&;t t
6849s&@abs_srcdir@&$ac_abs_srcdir&;t t
6850s&@top_srcdir@&$ac_top_srcdir&;t t
6851s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6852s&@builddir@&$ac_builddir&;t t
6853s&@abs_builddir@&$ac_abs_builddir&;t t
6854s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6855s&@INSTALL@&$ac_INSTALL&;t t
6856$ac_datarootdir_hack
6857"
6858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6859 || as_fn_error "could not create $ac_file" "$LINENO" 5
6860
6861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6865which seems to be undefined. Please make sure it is defined." >&5
6866$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6867which seems to be undefined. Please make sure it is defined." >&2;}
6868
6869 rm -f "$tmp/stdin"
b7026657 6870 case $ac_file in
81ecdfbb
RW
6871 -) cat "$tmp/out" && rm -f "$tmp/out";;
6872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6873 esac \
6874 || as_fn_error "could not create $ac_file" "$LINENO" 5
6875 ;;
6876 :H)
6877 #
6878 # CONFIG_HEADER
6879 #
b7026657 6880 if test x"$ac_file" != x-; then
81ecdfbb
RW
6881 {
6882 $as_echo "/* $configure_input */" \
6883 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6884 } >"$tmp/config.h" \
6885 || as_fn_error "could not create $ac_file" "$LINENO" 5
6886 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6888$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 6889 else
81ecdfbb
RW
6890 rm -f "$ac_file"
6891 mv "$tmp/config.h" "$ac_file" \
6892 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 6893 fi
b7026657 6894 else
81ecdfbb
RW
6895 $as_echo "/* $configure_input */" \
6896 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6897 || as_fn_error "could not create -" "$LINENO" 5
c906108c 6898 fi
81ecdfbb 6899 ;;
b7026657 6900
81ecdfbb
RW
6901 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6902$as_echo "$as_me: executing $ac_file commands" >&6;}
6903 ;;
6904 esac
b7026657 6905
b7026657 6906
81ecdfbb
RW
6907 case $ac_file$ac_mode in
6908 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 6909
b7026657 6910 esac
81ecdfbb 6911done # for ac_tag
c906108c 6912
b7026657 6913
81ecdfbb 6914as_fn_exit 0
b7026657 6915_ACEOF
b7026657
AC
6916ac_clean_files=$ac_clean_files_save
6917
81ecdfbb
RW
6918test $ac_write_fail = 0 ||
6919 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6920
b7026657
AC
6921
6922# configure is writing to config.log, and then calls config.status.
6923# config.status does its own redirection, appending to config.log.
6924# Unfortunately, on DOS this fails, as config.log is still kept open
6925# by configure, so config.status won't be able to write to it; its
6926# output is simply discarded. So we exec the FD to /dev/null,
6927# effectively closing config.log, so it can be properly (re)opened and
6928# appended to by config.status. When coming back to configure, we
6929# need to make the FD available again.
6930if test "$no_create" != yes; then
6931 ac_cs_success=:
6932 ac_config_status_args=
6933 test "$silent" = yes &&
6934 ac_config_status_args="$ac_config_status_args --quiet"
6935 exec 5>/dev/null
6936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6937 exec 5>>config.log
6938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6939 # would make configure fail if this is the last instruction.
81ecdfbb
RW
6940 $ac_cs_success || as_fn_exit $?
6941fi
6942if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6944$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 6945fi
c906108c 6946