Remove use of alloca.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for gas 2.26.51.
81ecdfbb
RW
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.
252b5132
RH
8#
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## -------------------- ##
13b2be9c 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 :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
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
13b2be9c
DJ
31fi
32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
13b2be9c
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
13b2be9c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13b2be9c 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
13b2be9c 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
13b2be9c 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
13b2be9c 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
13b2be9c 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
13b2be9c 418
13b2be9c
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
13b2be9c 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
13b2be9c 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
13b2be9c 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 444 t loop
81ecdfbb 445 s/-\n.*//
13b2be9c 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
13b2be9c
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
13b2be9c
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
13b2be9c
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
13b2be9c 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
13b2be9c 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
13b2be9c 491 fi
13b2be9c
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 500else
ab509236 501 test -d ./-p && rmdir ./-p
13b2be9c
DJ
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
13b2be9c
DJ
527
528# Sed expression to map a string onto a valid CPP name.
ab509236 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
530
531# Sed expression to map a string onto a valid variable name.
ab509236 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
13b2be9c
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
13b2be9c
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
13b2be9c 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
13b2be9c
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
13b2be9c
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='gas'
558PACKAGE_TARNAME='gas'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='gas 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
13b2be9c
DJ
563
564ac_unique_file="as.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
13b2be9c
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
13b2be9c
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13b2be9c
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
13b2be9c
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
13b2be9c 592# include <inttypes.h>
13b2be9c 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
13b2be9c
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
0138187e 605zlibinc
543b7933 606zlibdir
81ecdfbb
RW
607LIBM
608ALLOCA
609GENINSRC_NEVER_FALSE
610GENINSRC_NEVER_TRUE
611MAINT
612MAINTAINER_MODE_FALSE
613MAINTAINER_MODE_TRUE
614MSGMERGE
615MSGFMT
616MKINSTALLDIRS
617CATOBJEXT
618GENCAT
619INSTOBJEXT
620DATADIRNAME
621CATALOGS
622POSUB
623GMSGFMT
624XGETTEXT
625INCINTL
626LIBINTL_DEP
627LIBINTL
628USE_NLS
629LEXLIB
630LEX_OUTPUT_ROOT
631LEX
632YFLAGS
633YACC
634OPCODES_LIB
635atof
636install_tooldir
637te_file
638obj_format
639target_cpu_type
640extra_objects
641cgen_cpu_prefix
642GDBINIT
643NO_WERROR
644WARN_CFLAGS
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
81ecdfbb
RW
650RANLIB
651AR
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703target_os
704target_vendor
705target_cpu
706target
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
13b2be9c 753ac_subst_files=''
81ecdfbb
RW
754ac_user_opts='
755enable_option_checking
756enable_dependency_tracking
81ecdfbb
RW
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
b879806f
AM
763enable_plugins
764enable_largefile
81ecdfbb
RW
765enable_targets
766enable_checking
6c3bc0f8 767enable_compressed_debug_sections
0cb4071e 768enable_x86_relax_relocations
b8871f35 769enable_elf_stt_common
81ecdfbb
RW
770enable_werror
771enable_build_warnings
772enable_nls
773enable_maintainer_mode
0138187e 774with_system_zlib
81ecdfbb
RW
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785YACC
786YFLAGS'
787
252b5132
RH
788
789# Initialize some variables set by options.
13b2be9c
DJ
790ac_init_help=
791ac_init_version=false
81ecdfbb
RW
792ac_unrecognized_opts=
793ac_unrecognized_sep=
252b5132
RH
794# The variables have the same names as the options, with
795# dashes changed to underlines.
13b2be9c 796cache_file=/dev/null
252b5132 797exec_prefix=NONE
252b5132 798no_create=
252b5132
RH
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
252b5132
RH
807verbose=
808x_includes=NONE
809x_libraries=NONE
13b2be9c
DJ
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 816# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
252b5132
RH
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
252b5132
RH
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
2e98a7bd 827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
252b5132 836
252b5132 837ac_prev=
81ecdfbb 838ac_dashdash=
252b5132
RH
839for ac_option
840do
252b5132
RH
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
81ecdfbb 843 eval $ac_prev=\$ac_option
252b5132
RH
844 ac_prev=
845 continue
846 fi
847
81ecdfbb
RW
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
252b5132
RH
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
81ecdfbb
RW
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
252b5132
RH
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 862 bindir=$ac_optarg ;;
252b5132
RH
863
864 -build | --build | --buil | --bui | --bu)
13b2be9c 865 ac_prev=build_alias ;;
252b5132 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 867 build_alias=$ac_optarg ;;
252b5132
RH
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
252b5132 878
81ecdfbb 879 -datadir | --datadir | --datadi | --datad)
252b5132 880 ac_prev=datadir ;;
81ecdfbb 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 882 datadir=$ac_optarg ;;
252b5132 883
81ecdfbb
RW
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
252b5132 891 -disable-* | --disable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 893 # Reject names that are not valid shell variable names.
81ecdfbb
RW
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
252b5132
RH
916
917 -enable-* | --enable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 919 # Reject names that are not valid shell variable names.
81ecdfbb
RW
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
252b5132 930 esac
81ecdfbb 931 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
13b2be9c 940 exec_prefix=$ac_optarg ;;
252b5132
RH
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
13b2be9c
DJ
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
252b5132
RH
952
953 -host | --host | --hos | --ho)
13b2be9c 954 ac_prev=host_alias ;;
252b5132 955 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 956 host_alias=$ac_optarg ;;
252b5132 957
81ecdfbb
RW
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
252b5132
RH
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 969 includedir=$ac_optarg ;;
252b5132
RH
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 974 infodir=$ac_optarg ;;
252b5132
RH
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 979 libdir=$ac_optarg ;;
252b5132
RH
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
13b2be9c 986 libexecdir=$ac_optarg ;;
252b5132 987
81ecdfbb
RW
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
252b5132 993 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 994 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 998 localstatedir=$ac_optarg ;;
252b5132
RH
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1003 mandir=$ac_optarg ;;
252b5132
RH
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1010 | --no-cr | --no-c | -n)
252b5132
RH
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1024 oldincludedir=$ac_optarg ;;
252b5132
RH
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1029 prefix=$ac_optarg ;;
252b5132
RH
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1036 program_prefix=$ac_optarg ;;
252b5132
RH
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1043 program_suffix=$ac_optarg ;;
252b5132
RH
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1060 program_transform_name=$ac_optarg ;;
252b5132 1061
81ecdfbb
RW
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
252b5132
RH
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
13b2be9c 1080 sbindir=$ac_optarg ;;
252b5132
RH
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
13b2be9c 1091 sharedstatedir=$ac_optarg ;;
252b5132
RH
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
13b2be9c 1096 site=$ac_optarg ;;
76bff705 1097
252b5132
RH
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1101 srcdir=$ac_optarg ;;
252b5132
RH
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1108 sysconfdir=$ac_optarg ;;
252b5132
RH
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1111 ac_prev=target_alias ;;
252b5132 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1113 target_alias=$ac_optarg ;;
252b5132
RH
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
13b2be9c
DJ
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
252b5132
RH
1120
1121 -with-* | --with-*)
81ecdfbb 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1123 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
252b5132 1134 esac
81ecdfbb 1135 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1136
1137 -without-* | --without-*)
81ecdfbb 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1139 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
252b5132
RH
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1162 x_includes=$ac_optarg ;;
252b5132
RH
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1169 x_libraries=$ac_optarg ;;
252b5132 1170
81ecdfbb
RW
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information."
252b5132
RH
1173 ;;
1174
13b2be9c
DJ
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1183 export $ac_envvar ;;
1184
252b5132 1185 *)
13b2be9c 1186 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
13b2be9c 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1198 as_fn_error "missing argument to $ac_option"
c8615825 1199fi
c8615825 1200
81ecdfbb
RW
1201if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1206 esac
81ecdfbb 1207fi
252b5132 1208
81ecdfbb
RW
1209# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
252b5132 1214do
81ecdfbb
RW
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
13b2be9c 1223 case $ac_val in
81ecdfbb
RW
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1226 esac
81ecdfbb 1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1228done
1229
13b2be9c
DJ
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
81ecdfbb 1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
9b2b7d69 1247
13b2be9c
DJ
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
252b5132 1252
252b5132 1253
81ecdfbb
RW
1254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1260
1261
252b5132
RH
1262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
81ecdfbb
RW
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271$as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
252b5132 1289 srcdir=$ac_confdir
81ecdfbb 1290 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1291 srcdir=..
1292 fi
1293else
1294 ac_srcdir_defaulted=no
1295fi
81ecdfbb
RW
1296if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299fi
1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
d6d788bd 1320
13b2be9c
DJ
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
d8bd95ef 1328\`configure' configures gas 2.26.51 to adapt to many kinds of systems.
9b2b7d69 1329
13b2be9c 1330Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1331
13b2be9c
DJ
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1334
13b2be9c 1335Defaults for the options are specified in brackets.
9b2b7d69 1336
13b2be9c
DJ
1337Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
13b2be9c
DJ
1348Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1350 [$ac_default_prefix]
13b2be9c 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1352 [PREFIX]
9b2b7d69 1353
13b2be9c
DJ
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
9b2b7d69 1358
13b2be9c 1359For better control, use the options below.
9b2b7d69 1360
13b2be9c 1361Fine tuning of the installation directories:
81ecdfbb
RW
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1381_ACEOF
9b2b7d69 1382
13b2be9c 1383 cat <<\_ACEOF
9b2b7d69 1384
13b2be9c
DJ
1385Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1389
13b2be9c
DJ
1390System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394_ACEOF
9b2b7d69 1395fi
9b2b7d69 1396
13b2be9c 1397if test -n "$ac_init_help"; then
2e98a7bd 1398 case $ac_init_help in
d8bd95ef 1399 short | recursive ) echo "Configuration of gas 2.26.51:";;
2e98a7bd 1400 esac
13b2be9c 1401 cat <<\_ACEOF
9b2b7d69 1402
13b2be9c 1403Optional Features:
81ecdfbb 1404 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
13b2be9c 1413 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1414 --enable-plugins Enable support for plugins
1415 --disable-largefile omit support for large files
241a6c40 1416 --enable-targets alternative target configurations besides the primary
c43a438d 1417 --enable-checking enable run-time checks
4894d80b 1418 --enable-compressed-debug-sections={all,gas,none}
27ba7c94 1419 compress debug sections by default
0cb4071e
L
1420 --enable-x86-relax-relocations
1421 generate x86 relax relocations by default
b8871f35
L
1422 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1423 default
241a6c40
AM
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1426 --disable-nls do not use Native Language Support
ab509236
L
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
9b2b7d69 1429
13b2be9c
DJ
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0138187e 1436 --with-system-zlib use installed libz
9b2b7d69 1437
13b2be9c
DJ
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
81ecdfbb
RW
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
13b2be9c 1446 CPP C preprocessor
81ecdfbb
RW
1447 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1448 the first program found out of: `bison -y', `byacc', `yacc'.
1449 YFLAGS The list of arguments that will be passed by default to $YACC.
1450 This script will default YFLAGS to the empty string to avoid a
1451 default value of `-d' given by some make applications.
13b2be9c
DJ
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
81ecdfbb 1456Report bugs to the package provider.
13b2be9c 1457_ACEOF
81ecdfbb 1458ac_status=$?
9b2b7d69 1459fi
9b2b7d69 1460
13b2be9c
DJ
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
13b2be9c 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
13b2be9c
DJ
1467 ac_builddir=.
1468
81ecdfbb
RW
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1484
13b2be9c 1485case $srcdir in
81ecdfbb 1486 .) # We are building in place.
13b2be9c 1487 ac_srcdir=.
81ecdfbb
RW
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1491 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1498esac
81ecdfbb
RW
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1509 else
81ecdfbb
RW
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1513 done
1514fi
6840198f 1515
81ecdfbb 1516test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1517if $ac_init_version; then
1518 cat <<\_ACEOF
d8bd95ef 1519gas configure 2.26.51
81ecdfbb 1520generated by GNU Autoconf 2.64
c8615825 1521
81ecdfbb 1522Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
81ecdfbb 1526 exit
13b2be9c 1527fi
c8615825 1528
81ecdfbb
RW
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
c8615825 1532
81ecdfbb
RW
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
13b2be9c 1537{
81ecdfbb
RW
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1563
81ecdfbb
RW
1564 ac_retval=1
1565fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
13b2be9c 1568
81ecdfbb 1569} # ac_fn_c_try_compile
13b2be9c 1570
81ecdfbb
RW
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657# the include files in INCLUDES and setting the cache variable VAR
1658# accordingly.
1659ac_fn_c_check_header_mongrel ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664$as_echo_n "checking for $2... " >&6; }
1665if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666 $as_echo_n "(cached) " >&6
1667fi
1668eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670$as_echo "$ac_res" >&6; }
1671else
1672 # Is the header compilable?
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674$as_echo_n "checking $2 usability... " >&6; }
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_header_compiler=yes
1682else
1683 ac_header_compiler=no
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687$as_echo "$ac_header_compiler" >&6; }
1688
1689# Is the header present?
1690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691$as_echo_n "checking $2 presence... " >&6; }
1692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694#include <$2>
1695_ACEOF
1696if ac_fn_c_try_cpp "$LINENO"; then :
1697 ac_header_preproc=yes
1698else
1699 ac_header_preproc=no
1700fi
1701rm -f conftest.err conftest.$ac_ext
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703$as_echo "$ac_header_preproc" >&6; }
1704
1705# So? What about this header?
1706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707 yes:no: )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ;;
1713 no:yes:* )
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1717$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1721$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 ;;
1725esac
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730else
1731 eval "$3=\$ac_header_compiler"
1732fi
1733eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736fi
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739} # ac_fn_c_check_header_mongrel
1740
1741# ac_fn_c_try_run LINENO
1742# ----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744# that executables *can* be run.
1745ac_fn_c_try_run ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=$ac_status
1776fi
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781} # ac_fn_c_try_run
1782
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1794else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802else
1803 eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_check_func LINENO FUNC VAR
1815# ----------------------------------
1816# Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829#define $2 innocuous_$2
1830
1831/* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
1841
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main ()
1860{
1861return $2 ();
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} # ac_fn_c_check_func
1880
1881# ac_fn_c_check_decl LINENO SYMBOL VAR
1882# ------------------------------------
1883# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1884ac_fn_c_check_decl ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1887 as_decl_name=`echo $2|sed 's/ *(.*//'`
1888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1890$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1891if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897int
1898main ()
1899{
360cfc9c
AM
1900#ifndef $as_decl_name
1901#ifdef __cplusplus
1902 (void) $as_decl_use;
1903#else
1904 (void) $as_decl_name;
1905#endif
81ecdfbb
RW
1906#endif
1907
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914else
1915 eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924} # ac_fn_c_check_decl
1925cat >config.log <<_ACEOF
1926This file contains any messages produced by compilers while
1927running configure, to aid debugging if configure makes a mistake.
1928
d8bd95ef 1929It was created by gas $as_me 2.26.51, which was
81ecdfbb
RW
1930generated by GNU Autoconf 2.64. Invocation command line was
1931
1932 $ $0 $@
1933
1934_ACEOF
1935exec 5>>config.log
1936{
1937cat <<_ASUNAME
1938## --------- ##
1939## Platform. ##
1940## --------- ##
1941
1942hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1950
1951/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1952/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1954/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1955/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958
1959_ASUNAME
1960
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1966 $as_echo "PATH: $as_dir"
1967 done
1968IFS=$as_save_IFS
9b2b7d69 1969
13b2be9c 1970} >&5
6840198f 1971
13b2be9c 1972cat >&5 <<_ACEOF
c8615825 1973
9b2b7d69 1974
13b2be9c
DJ
1975## ----------- ##
1976## Core tests. ##
1977## ----------- ##
87ccc1b0 1978
13b2be9c 1979_ACEOF
9b2b7d69 1980
13b2be9c
DJ
1981
1982# Keep a trace of the command line.
1983# Strip out --no-create and --no-recursion so they do not pile up.
1984# Strip out --silent because we don't want to record it for future runs.
1985# Also quote any args containing shell meta-characters.
1986# Make two passes to allow for proper duplicate-argument suppression.
1987ac_configure_args=
1988ac_configure_args0=
1989ac_configure_args1=
13b2be9c
DJ
1990ac_must_keep_next=false
1991for ac_pass in 1 2
1992do
1993 for ac_arg
1994 do
1995 case $ac_arg in
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
1999 continue ;;
81ecdfbb
RW
2000 *\'*)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2002 esac
2003 case $ac_pass in
81ecdfbb 2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2005 2)
81ecdfbb 2006 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2007 if test $ac_must_keep_next = true; then
ab509236 2008 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2009 else
ab509236
L
2010 case $ac_arg in
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017 esac
2018 ;;
2019 -* ) ac_must_keep_next=true ;;
2020 esac
13b2be9c 2021 fi
81ecdfbb 2022 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2023 ;;
2024 esac
2025 done
13b2be9c 2026done
81ecdfbb
RW
2027{ ac_configure_args0=; unset ac_configure_args0;}
2028{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2029
2030# When interrupted or exit'd, cleanup temporary files, and complete
2031# config.log. We remove comments because anyway the quotes in there
2032# would cause problems or look ugly.
81ecdfbb
RW
2033# WARNING: Use '\'' to represent an apostrophe within the trap.
2034# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2035trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2037 {
2038 echo
2039
2040 cat <<\_ASBOX
2041## ---------------- ##
2042## Cache variables. ##
2043## ---------------- ##
2044_ASBOX
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2047(
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
13b2be9c 2063 (set) 2>&1 |
81ecdfbb
RW
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
13b2be9c 2066 sed -n \
81ecdfbb
RW
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
13b2be9c 2070 *)
81ecdfbb 2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2072 ;;
81ecdfbb
RW
2073 esac |
2074 sort
2075)
13b2be9c
DJ
2076 echo
2077
2078 cat <<\_ASBOX
2079## ----------------- ##
2080## Output variables. ##
2081## ----------------- ##
2082_ASBOX
2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
81ecdfbb
RW
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
2095 cat <<\_ASBOX
81ecdfbb
RW
2096## ------------------- ##
2097## File substitutions. ##
2098## ------------------- ##
13b2be9c
DJ
2099_ASBOX
2100 echo
2101 for ac_var in $ac_subst_files
2102 do
81ecdfbb
RW
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2108 done | sort
2109 echo
2110 fi
2111
2112 if test -s confdefs.h; then
2113 cat <<\_ASBOX
2114## ----------- ##
2115## confdefs.h. ##
2116## ----------- ##
2117_ASBOX
2118 echo
81ecdfbb 2119 cat confdefs.h
13b2be9c
DJ
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
81ecdfbb
RW
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
13b2be9c 2125 } >&5
81ecdfbb
RW
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2128 exit $exit_status
81ecdfbb 2129' 0
13b2be9c 2130for ac_signal in 1 2 13 15; do
81ecdfbb 2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2132done
2133ac_signal=0
2134
2135# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2136rm -f -r conftest* confdefs.h
2137
2138$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2139
2140# Predefined preprocessor variables.
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_NAME "$PACKAGE_NAME"
2144_ACEOF
2145
13b2be9c
DJ
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148_ACEOF
2149
13b2be9c
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_VERSION "$PACKAGE_VERSION"
2152_ACEOF
2153
13b2be9c
DJ
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_STRING "$PACKAGE_STRING"
2156_ACEOF
2157
13b2be9c
DJ
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160_ACEOF
2161
81ecdfbb
RW
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_URL "$PACKAGE_URL"
2164_ACEOF
2165
13b2be9c
DJ
2166
2167# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2168# Prefer an explicitly selected file to automatically selected ones.
2169ac_site_file1=NONE
2170ac_site_file2=NONE
2171if test -n "$CONFIG_SITE"; then
2172 ac_site_file1=$CONFIG_SITE
2173elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2179fi
2180for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181do
2182 test "x$ac_site_file" = xNONE && continue
13b2be9c 2183 if test -r "$ac_site_file"; then
81ecdfbb
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file"
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special
2193 # files actually), so we avoid doing that.
2194 if test -f "$cache_file"; then
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2197 case $cache_file in
81ecdfbb
RW
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
13b2be9c
DJ
2200 esac
2201 fi
2202else
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
81ecdfbb 2211for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2216 case $ac_old_set,$ac_new_set in
2217 set,)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2220 ac_cache_corrupted=: ;;
2221 ,set)
81ecdfbb
RW
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
81ecdfbb 2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2264fi
81ecdfbb
RW
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
13b2be9c
DJ
2268
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
13b2be9c 2277
da594c4a 2278
13b2be9c
DJ
2279
2280
2281ac_aux_dir=
81ecdfbb
RW
2282for ac_dir in .. "$srcdir"/..; do
2283 for ac_t in install-sh install.sh shtool; do
2284 if test -f "$ac_dir/$ac_t"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/$ac_t -c"
2287 break 2
2288 fi
2289 done
13b2be9c
DJ
2290done
2291if test -z "$ac_aux_dir"; then
81ecdfbb 2292 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2293fi
81ecdfbb
RW
2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
13b2be9c
DJ
2303
2304# Make sure we can run config.sub.
81ecdfbb
RW
2305$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309$as_echo_n "checking build system type... " >&6; }
2310if test "${ac_cv_build+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2312else
2313 ac_build_alias=$build_alias
2314test "x$ac_build_alias" = x &&
2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316test "x$ac_build_alias" = x &&
2317 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2318ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320
2321fi
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323$as_echo "$ac_cv_build" >&6; }
2324case $ac_cv_build in
2325*-*-*) ;;
2326*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2327esac
13b2be9c 2328build=$ac_cv_build
81ecdfbb
RW
2329ac_save_IFS=$IFS; IFS='-'
2330set x $ac_cv_build
2331shift
2332build_cpu=$1
2333build_vendor=$2
2334shift; shift
2335# Remember, the first character of IFS is used to create $*,
2336# except with old shells:
2337build_os=$*
2338IFS=$ac_save_IFS
2339case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2340
2341
81ecdfbb
RW
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343$as_echo_n "checking host system type... " >&6; }
2344if test "${ac_cv_host+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
13b2be9c 2346else
81ecdfbb
RW
2347 if test "x$host_alias" = x; then
2348 ac_cv_host=$ac_cv_build
2349else
2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352fi
13b2be9c
DJ
2353
2354fi
81ecdfbb
RW
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356$as_echo "$ac_cv_host" >&6; }
2357case $ac_cv_host in
2358*-*-*) ;;
2359*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2360esac
13b2be9c 2361host=$ac_cv_host
81ecdfbb
RW
2362ac_save_IFS=$IFS; IFS='-'
2363set x $ac_cv_host
2364shift
2365host_cpu=$1
2366host_vendor=$2
2367shift; shift
2368# Remember, the first character of IFS is used to create $*,
2369# except with old shells:
2370host_os=$*
2371IFS=$ac_save_IFS
2372case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2373
2374
81ecdfbb
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376$as_echo_n "checking target system type... " >&6; }
2377if test "${ac_cv_target+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
13b2be9c 2382else
81ecdfbb
RW
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2385fi
13b2be9c
DJ
2386
2387fi
81ecdfbb
RW
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389$as_echo "$ac_cv_target" >&6; }
2390case $ac_cv_target in
2391*-*-*) ;;
2392*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2393esac
13b2be9c 2394target=$ac_cv_target
81ecdfbb
RW
2395ac_save_IFS=$IFS; IFS='-'
2396set x $ac_cv_target
2397shift
2398target_cpu=$1
2399target_vendor=$2
2400shift; shift
2401# Remember, the first character of IFS is used to create $*,
2402# except with old shells:
2403target_os=$*
2404IFS=$ac_save_IFS
2405case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2406
2407
2408# The aliases save the names the user supplied, while $host etc.
2409# will get canonicalized.
2410test -n "$target_alias" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2412 NONENONEs,x,x, &&
2413 program_prefix=${target_alias}-
2414ac_ext=c
2415ac_cpp='$CPP $CPPFLAGS'
2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423$as_echo_n "checking for $ac_word... " >&6; }
2424if test "${ac_cv_prog_CC+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2426else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2439 break 2
2440 fi
2441done
81ecdfbb
RW
2442 done
2443IFS=$as_save_IFS
13b2be9c
DJ
2444
2445fi
2446fi
2447CC=$ac_cv_prog_CC
2448if test -n "$CC"; then
81ecdfbb
RW
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450$as_echo "$CC" >&6; }
13b2be9c 2451else
81ecdfbb
RW
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453$as_echo "no" >&6; }
13b2be9c
DJ
2454fi
2455
81ecdfbb 2456
13b2be9c
DJ
2457fi
2458if test -z "$ac_cv_prog_CC"; then
2459 ac_ct_CC=$CC
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461set dummy gcc; ac_word=$2
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2466else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2477 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2479 break 2
2480 fi
2481done
81ecdfbb
RW
2482 done
2483IFS=$as_save_IFS
13b2be9c
DJ
2484
2485fi
2486fi
2487ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2491else
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
13b2be9c
DJ
2494fi
2495
81ecdfbb
RW
2496 if test "x$ac_ct_CC" = x; then
2497 CC=""
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500yes:)
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503ac_tool_warned=yes ;;
2504esac
2505 CC=$ac_ct_CC
2506 fi
13b2be9c
DJ
2507else
2508 CC="$ac_cv_prog_CC"
2509fi
2510
2511if test -z "$CC"; then
81ecdfbb
RW
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2514set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2530 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2532 break 2
2533 fi
2534done
81ecdfbb
RW
2535 done
2536IFS=$as_save_IFS
13b2be9c
DJ
2537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543$as_echo "$CC" >&6; }
13b2be9c 2544else
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
13b2be9c
DJ
2547fi
2548
13b2be9c 2549
81ecdfbb 2550 fi
13b2be9c
DJ
2551fi
2552if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554set dummy cc; ac_word=$2
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2559else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563 ac_prog_rejected=no
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2573 continue
2574 fi
2575 ac_cv_prog_CC="cc"
81ecdfbb 2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2577 break 2
2578 fi
2579done
81ecdfbb
RW
2580 done
2581IFS=$as_save_IFS
2582
13b2be9c
DJ
2583if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2586 shift
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2591 shift
2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 fi
2594fi
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600$as_echo "$CC" >&6; }
13b2be9c 2601else
81ecdfbb
RW
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
13b2be9c
DJ
2604fi
2605
81ecdfbb 2606
13b2be9c
DJ
2607fi
2608if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
81ecdfbb 2610 for ac_prog in cl.exe
13b2be9c
DJ
2611 do
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2618else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2631 break 2
2632 fi
2633done
81ecdfbb
RW
2634 done
2635IFS=$as_save_IFS
13b2be9c
DJ
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
81ecdfbb
RW
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642$as_echo "$CC" >&6; }
13b2be9c 2643else
81ecdfbb
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
13b2be9c
DJ
2646fi
2647
81ecdfbb 2648
13b2be9c
DJ
2649 test -n "$CC" && break
2650 done
2651fi
2652if test -z "$CC"; then
2653 ac_ct_CC=$CC
81ecdfbb 2654 for ac_prog in cl.exe
13b2be9c
DJ
2655do
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2662else
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2673 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2675 break 2
2676 fi
2677done
81ecdfbb
RW
2678 done
2679IFS=$as_save_IFS
13b2be9c
DJ
2680
2681fi
2682fi
2683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2687else
81ecdfbb
RW
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
13b2be9c
DJ
2690fi
2691
81ecdfbb 2692
13b2be9c
DJ
2693 test -n "$ac_ct_CC" && break
2694done
2695
81ecdfbb
RW
2696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705 CC=$ac_ct_CC
2706 fi
13b2be9c
DJ
2707fi
2708
2709fi
2710
2711
81ecdfbb
RW
2712test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714as_fn_error "no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2716
2717# Provide some information about the compiler.
81ecdfbb
RW
2718$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2719set X $ac_compile
2720ac_compiler=$2
2721for ac_option in --version -v -V -qversion; do
2722 { { ac_try="$ac_compiler $ac_option >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728$as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2730 ac_status=$?
81ecdfbb
RW
2731 if test -s conftest.err; then
2732 sed '10a\
2733... rest of stderr output deleted ...
2734 10q' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 rm -f conftest.er1 conftest.err
2737 fi
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; }
2740done
13b2be9c 2741
81ecdfbb 2742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2743/* end confdefs.h. */
2744
2745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
81ecdfbb 2754ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
81ecdfbb
RW
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2759$as_echo_n "checking for C compiler default output file name... " >&6; }
2760ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761
2762# The possible output files:
2763ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2764
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { { ac_try="$ac_link_default"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link_default") 2>&5
2783 ac_status=$?
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788# in a Makefile. We should not override ac_cv_exeext if it was cached,
2789# so that the user can short-circuit this test for compilers unknown to
2790# Autoconf.
2791for ac_file in $ac_files ''
13b2be9c
DJ
2792do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
81ecdfbb 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2796 ;;
13b2be9c 2797 [ab].out )
ab509236
L
2798 # We found the default executable, but exeext='' is most
2799 # certainly right.
2800 break;;
13b2be9c 2801 *.* )
81ecdfbb
RW
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 then :; else
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 fi
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2810 # actually working.
ab509236 2811 break;;
13b2be9c 2812 * )
ab509236 2813 break;;
13b2be9c
DJ
2814 esac
2815done
81ecdfbb
RW
2816test "$ac_cv_exeext" = no && ac_cv_exeext=
2817
13b2be9c 2818else
81ecdfbb
RW
2819 ac_file=''
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822$as_echo "$ac_file" >&6; }
2823if test -z "$ac_file"; then :
2824 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
81ecdfbb
RW
2827{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829{ as_fn_set_status 77
2830as_fn_error "C compiler cannot create executables
2831See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2832fi
13b2be9c 2833ac_exeext=$ac_cv_exeext
13b2be9c 2834
81ecdfbb 2835# Check that the compiler produces executables we can run. If not, either
13b2be9c 2836# the compiler is broken, or we cross compile.
81ecdfbb
RW
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2838$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2839# If not cross compiling, check that we can run a simple program.
2840if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
81ecdfbb
RW
2842 { { case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847$as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_try") 2>&5
13b2be9c 2849 ac_status=$?
81ecdfbb
RW
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; }; then
13b2be9c
DJ
2852 cross_compiling=no
2853 else
2854 if test "$cross_compiling" = maybe; then
2855 cross_compiling=yes
2856 else
81ecdfbb
RW
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859as_fn_error "cannot run C compiled programs.
13b2be9c 2860If you meant to cross compile, use \`--host'.
81ecdfbb 2861See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2862 fi
2863 fi
2864fi
81ecdfbb
RW
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866$as_echo "yes" >&6; }
13b2be9c 2867
81ecdfbb 2868rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2869ac_clean_files=$ac_clean_files_save
81ecdfbb 2870# Check that the compiler produces executables we can run. If not, either
13b2be9c 2871# the compiler is broken, or we cross compile.
81ecdfbb
RW
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2873$as_echo_n "checking whether we are cross compiling... " >&6; }
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2875$as_echo "$cross_compiling" >&6; }
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878$as_echo_n "checking for suffix of executables... " >&6; }
2879if { { ac_try="$ac_link"
2880case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885$as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
13b2be9c 2887 ac_status=$?
81ecdfbb
RW
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
13b2be9c
DJ
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
2894for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
81ecdfbb 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2899 break;;
13b2be9c
DJ
2900 * ) break;;
2901 esac
2902done
2903else
81ecdfbb
RW
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906as_fn_error "cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2908fi
13b2be9c 2909rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
81ecdfbb
RW
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917$as_echo_n "checking for suffix of object files... " >&6; }
2918if test "${ac_cv_objext+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
13b2be9c 2920else
81ecdfbb 2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.o conftest.obj
81ecdfbb
RW
2933if { { ac_try="$ac_compile"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compile") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
13b2be9c 2946 case $ac_file in
81ecdfbb 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 break;;
2950 esac
2951done
2952else
81ecdfbb 2953 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
81ecdfbb
RW
2956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error "cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2960fi
13b2be9c
DJ
2961rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962fi
81ecdfbb
RW
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2965OBJEXT=$ac_cv_objext
2966ac_objext=$OBJEXT
81ecdfbb
RW
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
13b2be9c 2971else
81ecdfbb 2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2973/* end confdefs.h. */
2974
2975int
2976main ()
2977{
2978#ifndef __GNUC__
2979 choke me
2980#endif
2981
2982 ;
2983 return 0;
2984}
2985_ACEOF
81ecdfbb 2986if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2987 ac_compiler_gnu=yes
2988else
81ecdfbb 2989 ac_compiler_gnu=no
13b2be9c 2990fi
81ecdfbb 2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2992ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994fi
81ecdfbb
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997if test $ac_compiler_gnu = yes; then
2998 GCC=yes
2999else
3000 GCC=
3001fi
13b2be9c
DJ
3002ac_test_CFLAGS=${CFLAGS+set}
3003ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005$as_echo_n "checking whether $CC accepts -g... " >&6; }
3006if test "${ac_cv_prog_cc_g+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 ac_save_c_werror_flag=$ac_c_werror_flag
3010 ac_c_werror_flag=yes
3011 ac_cv_prog_cc_g=no
3012 CFLAGS="-g"
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
81ecdfbb 3024if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3025 ac_cv_prog_cc_g=yes
3026else
81ecdfbb
RW
3027 CFLAGS=""
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h. */
13b2be9c 3030
81ecdfbb
RW
3031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039if ac_fn_c_try_compile "$LINENO"; then :
3040
3041else
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3043 CFLAGS="-g"
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046
3047int
3048main ()
3049{
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055if ac_fn_c_try_compile "$LINENO"; then :
3056 ac_cv_prog_cc_g=yes
3057fi
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3059fi
81ecdfbb 3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3061fi
81ecdfbb
RW
3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3064fi
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3067if test "$ac_test_CFLAGS" = set; then
3068 CFLAGS=$ac_save_CFLAGS
3069elif test $ac_cv_prog_cc_g = yes; then
3070 if test "$GCC" = yes; then
3071 CFLAGS="-g -O2"
3072 else
3073 CFLAGS="-g"
3074 fi
3075else
3076 if test "$GCC" = yes; then
3077 CFLAGS="-O2"
3078 else
3079 CFLAGS=
3080 fi
3081fi
81ecdfbb
RW
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084if test "${ac_cv_prog_cc_c89+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
13b2be9c 3086else
81ecdfbb 3087 ac_cv_prog_cc_c89=no
13b2be9c 3088ac_save_CC=$CC
81ecdfbb 3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3090/* end confdefs.h. */
3091#include <stdarg.h>
3092#include <stdio.h>
3093#include <sys/types.h>
3094#include <sys/stat.h>
3095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096struct buf { int x; };
3097FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098static char *e (p, i)
3099 char **p;
3100 int i;
3101{
3102 return p[i];
3103}
3104static char *f (char * (*g) (char **, int), char **p, ...)
3105{
3106 char *s;
3107 va_list v;
3108 va_start (v,p);
3109 s = g (p, va_arg (v,int));
3110 va_end (v);
3111 return s;
3112}
ab509236
L
3113
3114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3117 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3120 that's true only with -std. */
ab509236
L
3121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122
81ecdfbb
RW
3123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3125#define FOO(x) 'x'
3126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127
13b2be9c
DJ
3128int test (int i, double x);
3129struct s1 {int (*f) (int a);};
3130struct s2 {int (*f) (double a);};
3131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132int argc;
3133char **argv;
3134int
3135main ()
3136{
3137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 ;
3139 return 0;
3140}
3141_ACEOF
81ecdfbb
RW
3142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3144do
3145 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3146 if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3148fi
81ecdfbb
RW
3149rm -f core conftest.err conftest.$ac_objext
3150 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3151done
81ecdfbb 3152rm -f conftest.$ac_ext
13b2be9c
DJ
3153CC=$ac_save_CC
3154
3155fi
81ecdfbb
RW
3156# AC_CACHE_VAL
3157case "x$ac_cv_prog_cc_c89" in
3158 x)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160$as_echo "none needed" >&6; } ;;
3161 xno)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163$as_echo "unsupported" >&6; } ;;
13b2be9c 3164 *)
81ecdfbb
RW
3165 CC="$CC $ac_cv_prog_cc_c89"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3168esac
81ecdfbb 3169if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3170
13b2be9c
DJ
3171fi
3172
13b2be9c
DJ
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3181$as_echo_n "checking for library containing strerror... " >&6; }
3182if test "${ac_cv_search_strerror+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
13b2be9c 3184else
ab509236 3185 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3187/* end confdefs.h. */
3188
81ecdfbb
RW
3189/* Override any GCC internal prototype to avoid an error.
3190 Use char because int might match the return type of a GCC
3191 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3192#ifdef __cplusplus
3193extern "C"
3194#endif
13b2be9c
DJ
3195char strerror ();
3196int
3197main ()
3198{
81ecdfbb 3199return strerror ();
13b2be9c
DJ
3200 ;
3201 return 0;
3202}
3203_ACEOF
81ecdfbb
RW
3204for ac_lib in '' cposix; do
3205 if test -z "$ac_lib"; then
3206 ac_res="none required"
3207 else
3208 ac_res=-l$ac_lib
ab509236 3209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3210 fi
3211 if ac_fn_c_try_link "$LINENO"; then :
3212 ac_cv_search_strerror=$ac_res
3213fi
3214rm -f core conftest.err conftest.$ac_objext \
3215 conftest$ac_exeext
3216 if test "${ac_cv_search_strerror+set}" = set; then :
3217 break
3218fi
3219done
3220if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3221
ab509236 3222else
81ecdfbb 3223 ac_cv_search_strerror=no
13b2be9c 3224fi
81ecdfbb 3225rm conftest.$ac_ext
ab509236
L
3226LIBS=$ac_func_search_save_LIBS
3227fi
81ecdfbb
RW
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3229$as_echo "$ac_cv_search_strerror" >&6; }
3230ac_res=$ac_cv_search_strerror
3231if test "$ac_res" != no; then :
3232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3233
ab509236 3234fi
13b2be9c
DJ
3235
3236
81ecdfbb
RW
3237am__api_version='1.11'
3238
13b2be9c
DJ
3239# Find a good install program. We prefer a C program (faster),
3240# so one script is as good as another. But avoid the broken or
3241# incompatible versions:
3242# SysV /etc/install, /usr/sbin/install
3243# SunOS /usr/etc/install
3244# IRIX /sbin/install
3245# AIX /bin/install
3246# AmigaOS /C/install, which installs bootblocks on floppy discs
3247# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3250# OS/2's system install, which has a completely different semantic
13b2be9c 3251# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3252# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3254$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3255if test -z "$INSTALL"; then
81ecdfbb
RW
3256if test "${ac_cv_path_install+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3258else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3264 # Account for people who put trailing slashes in PATH elements.
3265case $as_dir/ in #((
3266 ./ | .// | /[cC]/* | \
13b2be9c 3267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3269 /usr/ucb/* ) ;;
3270 *)
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3273 # by default.
3274 for ac_prog in ginstall scoinst install; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3277 if test $ac_prog = install &&
3278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279 # AIX install. It has an incompatible calling convention.
3280 :
3281 elif test $ac_prog = install &&
3282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # program-specific install script used by HP pwplus--don't use.
3284 :
3285 else
58c85be7
RW
3286 rm -rf conftest.one conftest.two conftest.dir
3287 echo one > conftest.one
3288 echo two > conftest.two
3289 mkdir conftest.dir
3290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291 test -s conftest.one && test -s conftest.two &&
3292 test -s conftest.dir/conftest.one &&
3293 test -s conftest.dir/conftest.two
3294 then
3295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3296 break 3
3297 fi
ab509236
L
3298 fi
3299 fi
13b2be9c
DJ
3300 done
3301 done
3302 ;;
3303esac
81ecdfbb
RW
3304
3305 done
3306IFS=$as_save_IFS
13b2be9c 3307
58c85be7 3308rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3309
3310fi
3311 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3312 INSTALL=$ac_cv_path_install
252b5132 3313 else
58c85be7
RW
3314 # As a last resort, use the slow shell script. Don't cache a
3315 # value for INSTALL within a source directory, because that will
252b5132 3316 # break other packages using the cache if that directory is
58c85be7 3317 # removed, or if the value is a relative name.
13b2be9c 3318 INSTALL=$ac_install_sh
252b5132
RH
3319 fi
3320fi
81ecdfbb
RW
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322$as_echo "$INSTALL" >&6; }
252b5132
RH
3323
3324# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325# It thinks the first close brace ends the variable substitution.
3326test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
13b2be9c 3328test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3329
3330test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
81ecdfbb
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3334# Just in case
3335sleep 1
13b2be9c 3336echo timestamp > conftest.file
81ecdfbb
RW
3337# Reject unsafe characters in $srcdir or the absolute working directory
3338# name. Accept space and tab only in the latter.
3339am_lf='
3340'
3341case `pwd` in
3342 *[\\\"\#\$\&\'\`$am_lf]*)
3343 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3344esac
3345case $srcdir in
3346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3347 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3348esac
3349
252b5132
RH
3350# Do `set' in a subshell so we don't clobber the current shell's
3351# arguments. Must try -L first in case configure is actually a
3352# symlink; some systems play weird games with the mod time of symlinks
3353# (eg FreeBSD returns the mod time of the symlink's containing
3354# directory).
3355if (
81ecdfbb 3356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3357 if test "$*" = "X"; then
3358 # -L didn't work.
81ecdfbb 3359 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3360 fi
13b2be9c
DJ
3361 rm -f conftest.file
3362 if test "$*" != "X $srcdir/configure conftest.file" \
3363 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3364
3365 # If neither matched, then we have a broken ls. This can happen
3366 # if, for instance, CONFIG_SHELL is bash and it inherits a
3367 # broken ls alias from the environment. This has actually
3368 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3369 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3370alias in your environment" "$LINENO" 5
252b5132
RH
3371 fi
3372
13b2be9c
DJ
3373 test "$2" = conftest.file
3374 )
3375then
3376 # Ok.
3377 :
3378else
81ecdfbb
RW
3379 as_fn_error "newly created file is older than distributed files!
3380Check your system clock" "$LINENO" 5
13b2be9c 3381fi
81ecdfbb
RW
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
13b2be9c 3384test "$program_prefix" != NONE &&
81ecdfbb 3385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3386# Use a double $ so make ignores it.
3387test "$program_suffix" != NONE &&
81ecdfbb
RW
3388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389# Double any \ or $.
13b2be9c 3390# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3391ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3393
13b2be9c
DJ
3394# expand $ac_aux_dir to an absolute path
3395am_aux_dir=`cd $ac_aux_dir && pwd`
3396
81ecdfbb
RW
3397if test x"${MISSING+set}" != xset; then
3398 case $am_aux_dir in
3399 *\ * | *\ *)
3400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3401 *)
3402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3403 esac
3404fi
13b2be9c
DJ
3405# Use eval to expand $SHELL
3406if eval "$MISSING --run true"; then
3407 am_missing_run="$MISSING --run "
3408else
3409 am_missing_run=
81ecdfbb
RW
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3411$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3412fi
3413
81ecdfbb
RW
3414if test x"${install_sh}" != xset; then
3415 case $am_aux_dir in
3416 *\ * | *\ *)
3417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3418 *)
3419 install_sh="\${SHELL} $am_aux_dir/install-sh"
3420 esac
3421fi
3422
3423# Installed binaries are usually stripped using `strip' when the user
3424# run `make install-strip'. However `strip' might not be the right
3425# tool to use in cross-compilation environments, therefore Automake
3426# will honor the `STRIP' environment variable to overrule this program.
3427if test "$cross_compiling" != no; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3430set dummy ${ac_tool_prefix}strip; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if test "${ac_cv_prog_STRIP+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
13b2be9c 3435else
81ecdfbb
RW
3436 if test -n "$STRIP"; then
3437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3448 break 2
3449 fi
3450done
81ecdfbb
RW
3451 done
3452IFS=$as_save_IFS
13b2be9c
DJ
3453
3454fi
3455fi
81ecdfbb
RW
3456STRIP=$ac_cv_prog_STRIP
3457if test -n "$STRIP"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3459$as_echo "$STRIP" >&6; }
13b2be9c 3460else
81ecdfbb
RW
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
13b2be9c
DJ
3463fi
3464
13b2be9c 3465
81ecdfbb
RW
3466fi
3467if test -z "$ac_cv_prog_STRIP"; then
3468 ac_ct_STRIP=$STRIP
3469 # Extract the first word of "strip", so it can be a program name with args.
3470set dummy strip; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
13b2be9c 3475else
81ecdfbb
RW
3476 if test -n "$ac_ct_STRIP"; then
3477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3478else
81ecdfbb
RW
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_ac_ct_STRIP="strip"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3497if test -n "$ac_ct_STRIP"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3499$as_echo "$ac_ct_STRIP" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505 if test "x$ac_ct_STRIP" = x; then
3506 STRIP=":"
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509yes:)
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512ac_tool_warned=yes ;;
3513esac
3514 STRIP=$ac_ct_STRIP
3515 fi
3516else
3517 STRIP="$ac_cv_prog_STRIP"
3518fi
3519
3520fi
3521INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3522
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3524$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3525if test -z "$MKDIR_P"; then
3526 if test "${ac_cv_path_mkdir+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in mkdir gmkdir; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3538 'mkdir (GNU coreutils) '* | \
3539 'mkdir (coreutils) '* | \
3540 'mkdir (fileutils) '4.1*)
3541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3542 break 3;;
3543 esac
3544 done
3545 done
3546 done
3547IFS=$as_save_IFS
3548
3549fi
3550
3551 if test "${ac_cv_path_mkdir+set}" = set; then
3552 MKDIR_P="$ac_cv_path_mkdir -p"
3553 else
3554 # As a last resort, use the slow shell script. Don't cache a
3555 # value for MKDIR_P within a source directory, because that will
3556 # break other packages using the cache if that directory is
3557 # removed, or if the value is a relative name.
3558 test -d ./--version && rmdir ./--version
3559 MKDIR_P="$ac_install_sh -d"
3560 fi
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3563$as_echo "$MKDIR_P" >&6; }
3564
3565mkdir_p="$MKDIR_P"
3566case $mkdir_p in
3567 [\\/$]* | ?:[\\/]*) ;;
3568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3569esac
3570
3571for ac_prog in gawk mawk nawk awk
3572do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574set dummy $ac_prog; ac_word=$2
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
3577if test "${ac_cv_prog_AWK+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 if test -n "$AWK"; then
3581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594done
3595 done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600AWK=$ac_cv_prog_AWK
3601if test -n "$AWK"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603$as_echo "$AWK" >&6; }
3604else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606$as_echo "no" >&6; }
13b2be9c 3607fi
81ecdfbb
RW
3608
3609
3610 test -n "$AWK" && break
3611done
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3615set x ${MAKE-make}
3616ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 cat >conftest.make <<\_ACEOF
3621SHELL = /bin/sh
3622all:
3623 @echo '@@@%%%=$(MAKE)=@@@%%%'
3624_ACEOF
3625# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3626case `${MAKE-make} -f conftest.make 2>/dev/null` in
3627 *@@@%%%=?*=@@@%%%*)
3628 eval ac_cv_prog_make_${ac_make}_set=yes;;
3629 *)
3630 eval ac_cv_prog_make_${ac_make}_set=no;;
3631esac
13b2be9c
DJ
3632rm -f conftest.make
3633fi
81ecdfbb
RW
3634if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636$as_echo "yes" >&6; }
13b2be9c
DJ
3637 SET_MAKE=
3638else
81ecdfbb
RW
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
13b2be9c
DJ
3641 SET_MAKE="MAKE=${MAKE-make}"
3642fi
3643
3644rm -rf .tst 2>/dev/null
3645mkdir .tst 2>/dev/null
3646if test -d .tst; then
3647 am__leading_dot=.
3648else
3649 am__leading_dot=_
3650fi
3651rmdir .tst 2>/dev/null
3652
3653DEPDIR="${am__leading_dot}deps"
3654
81ecdfbb 3655ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3656
3657
3658am_make=${MAKE-make}
3659cat > confinc << 'END'
3660am__doit:
81ecdfbb 3661 @echo this is the am__doit target
13b2be9c
DJ
3662.PHONY: am__doit
3663END
3664# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3667am__include="#"
3668am__quote=
3669_am_result=none
3670# First try GNU make style include.
3671echo "include confinc" > confmf
81ecdfbb
RW
3672# Ignore all kinds of additional output from `make'.
3673case `$am_make -s -f confmf 2> /dev/null` in #(
3674*the\ am__doit\ target*)
3675 am__include=include
3676 am__quote=
3677 _am_result=GNU
3678 ;;
3679esac
13b2be9c
DJ
3680# Now try BSD make style include.
3681if test "$am__include" = "#"; then
3682 echo '.include "confinc"' > confmf
81ecdfbb
RW
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685 am__include=.include
3686 am__quote="\""
3687 _am_result=BSD
3688 ;;
3689 esac
13b2be9c
DJ
3690fi
3691
3692
81ecdfbb
RW
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3695rm -f confinc confmf
3696
81ecdfbb
RW
3697# Check whether --enable-dependency-tracking was given.
3698if test "${enable_dependency_tracking+set}" = set; then :
3699 enableval=$enable_dependency_tracking;
3700fi
13b2be9c 3701
13b2be9c
DJ
3702if test "x$enable_dependency_tracking" != xno; then
3703 am_depcomp="$ac_aux_dir/depcomp"
3704 AMDEPBACKSLASH='\'
3705fi
81ecdfbb 3706 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3712fi
3713
3714
81ecdfbb
RW
3715if test "`cd $srcdir && pwd`" != "`pwd`"; then
3716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3717 # is not polluted with repeated "-I."
3718 am__isrc=' -I$(srcdir)'
3719 # test to see if srcdir already configured
3720 if test -f $srcdir/config.status; then
3721 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3722 fi
13b2be9c
DJ
3723fi
3724
3725# test whether we have cygpath
3726if test -z "$CYGPATH_W"; then
3727 if (cygpath --version) >/dev/null 2>/dev/null; then
3728 CYGPATH_W='cygpath -w'
3729 else
3730 CYGPATH_W=echo
3731 fi
3732fi
3733
3734
3735# Define the identity of the package.
2e98a7bd 3736 PACKAGE='gas'
d8bd95ef 3737 VERSION='2.26.51'
13b2be9c
DJ
3738
3739
3740cat >>confdefs.h <<_ACEOF
3741#define PACKAGE "$PACKAGE"
3742_ACEOF
3743
3744
3745cat >>confdefs.h <<_ACEOF
3746#define VERSION "$VERSION"
3747_ACEOF
3748
3749# Some tools Automake needs.
3750
3751ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3752
3753
3754AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3755
3756
3757AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3758
3759
3760AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3761
3762
3763MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3764
13b2be9c
DJ
3765# We need awk for the "check" target. The system "awk" is bad on
3766# some platforms.
8ea2b00f
AM
3767# Always define AMTAR for backward compatibility.
3768
3769AMTAR=${AMTAR-"${am_missing_run}tar"}
3770
3771am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3772
3773
252b5132 3774
d6d788bd 3775
13b2be9c 3776depcc="$CC" am_compiler_list=
d6d788bd 3777
81ecdfbb
RW
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779$as_echo_n "checking dependency style of $depcc... " >&6; }
3780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
252b5132 3782else
13b2be9c
DJ
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3788 # in D'.
3789 mkdir conftest.dir
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3793 cd conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3799 # directory.
3800 mkdir sub
252b5132 3801
13b2be9c
DJ
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805 fi
81ecdfbb
RW
3806 am__universal=false
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809 esac
3810
13b2be9c
DJ
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3815 #
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3819 : > sub/conftest.c
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
13b2be9c
DJ
3825 done
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
81ecdfbb
RW
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
13b2be9c 3834 case $depmode in
81ecdfbb
RW
3835 gcc)
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3838 ;;
13b2be9c
DJ
3839 nosideeffect)
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3843 continue
3844 else
3845 break
3846 fi
3847 ;;
81ecdfbb
RW
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3853 am__minus_obj=
3854 ;;
13b2be9c
DJ
3855 none) break ;;
3856 esac
13b2be9c 3857 if depmode=$depmode \
81ecdfbb 3858 source=sub/conftest.c object=$am__obj \
13b2be9c 3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3861 >/dev/null 2>conftest.err &&
81ecdfbb 3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3875 am_cv_CC_dependencies_compiler_type=$depmode
3876 break
3877 fi
3878 fi
3879 done
252b5132 3880
13b2be9c
DJ
3881 cd ..
3882 rm -rf conftest.dir
252b5132 3883else
13b2be9c 3884 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3885fi
3886
252b5132 3887fi
81ecdfbb
RW
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3890CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3891
81ecdfbb 3892 if
13b2be9c
DJ
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_TRUE=
3896 am__fastdepCC_FALSE='#'
252b5132 3897else
13b2be9c
DJ
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
252b5132
RH
3900fi
3901
d6d788bd
L
3902
3903
13b2be9c 3904
ce2cded5
L
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
252b5132 3917else
ce2cded5
L
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3920else
ce2cded5
L
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3930 break 2
3931 fi
3932done
81ecdfbb
RW
3933 done
3934IFS=$as_save_IFS
d7040cdb 3935
ce2cded5
L
3936fi
3937fi
3938CC=$ac_cv_prog_CC
3939if test -n "$CC"; then
81ecdfbb
RW
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941$as_echo "$CC" >&6; }
bedf545c 3942else
81ecdfbb
RW
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
ce2cded5 3945fi
d7040cdb 3946
81ecdfbb 3947
ce2cded5
L
3948fi
3949if test -z "$ac_cv_prog_CC"; then
3950 ac_ct_CC=$CC
3951 # Extract the first word of "gcc", so it can be a program name with args.
3952set dummy gcc; ac_word=$2
81ecdfbb
RW
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
d7040cdb 3957else
ce2cded5
L
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960else
d7040cdb
SE
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3968 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3970 break 2
d7040cdb 3971 fi
ce2cded5 3972done
81ecdfbb
RW
3973 done
3974IFS=$as_save_IFS
d7040cdb 3975
ce2cded5
L
3976fi
3977fi
3978ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3982else
81ecdfbb
RW
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
d7040cdb
SE
3985fi
3986
81ecdfbb
RW
3987 if test "x$ac_ct_CC" = x; then
3988 CC=""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994ac_tool_warned=yes ;;
3995esac
3996 CC=$ac_ct_CC
3997 fi
ce2cded5
L
3998else
3999 CC="$ac_cv_prog_CC"
4000fi
d7040cdb 4001
ce2cded5 4002if test -z "$CC"; then
81ecdfbb
RW
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4005set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if test "${ac_cv_prog_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
d7040cdb 4010else
ce2cded5
L
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4013else
ce2cded5
L
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4021 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4023 break 2
4024 fi
4025done
81ecdfbb
RW
4026 done
4027IFS=$as_save_IFS
d7040cdb 4028
252b5132
RH
4029fi
4030fi
ce2cded5
L
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
81ecdfbb
RW
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
ce2cded5 4035else
81ecdfbb
RW
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
d7040cdb 4038fi
f9c19112 4039
ce2cded5 4040
81ecdfbb 4041 fi
ce2cded5
L
4042fi
4043if test -z "$CC"; then
4044 # Extract the first word of "cc", so it can be a program name with args.
4045set dummy cc; ac_word=$2
81ecdfbb
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
ce2cded5
L
4050else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053else
4054 ac_prog_rejected=no
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4063 ac_prog_rejected=yes
4064 continue
4065 fi
4066 ac_cv_prog_CC="cc"
81ecdfbb 4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4068 break 2
4069 fi
4070done
81ecdfbb
RW
4071 done
4072IFS=$as_save_IFS
ce2cded5
L
4073
4074if test $ac_prog_rejected = yes; then
4075 # We found a bogon in the path, so make sure we never use it.
4076 set dummy $ac_cv_prog_CC
4077 shift
4078 if test $# != 0; then
4079 # We chose a different compiler from the bogus one.
4080 # However, it has the same basename, so the bogon will be chosen
4081 # first if we set CC to just the basename; use the full file name.
4082 shift
4083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4084 fi
4085fi
4086fi
4087fi
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
ce2cded5 4092else
81ecdfbb
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
ce2cded5
L
4095fi
4096
81ecdfbb 4097
ce2cded5
L
4098fi
4099if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
81ecdfbb 4101 for ac_prog in cl.exe
ce2cded5
L
4102 do
4103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106$as_echo_n "checking for $ac_word... " >&6; }
4107if test "${ac_cv_prog_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
ce2cded5
L
4109else
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112else
4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4122 break 2
4123 fi
4124done
81ecdfbb
RW
4125 done
4126IFS=$as_save_IFS
ce2cded5
L
4127
4128fi
4129fi
4130CC=$ac_cv_prog_CC
4131if test -n "$CC"; then
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133$as_echo "$CC" >&6; }
ce2cded5 4134else
81ecdfbb
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
ce2cded5
L
4137fi
4138
81ecdfbb 4139
ce2cded5 4140 test -n "$CC" && break
d7040cdb
SE
4141 done
4142fi
ce2cded5
L
4143if test -z "$CC"; then
4144 ac_ct_CC=$CC
81ecdfbb 4145 for ac_prog in cl.exe
d7040cdb
SE
4146do
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150$as_echo_n "checking for $ac_word... " >&6; }
4151if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
d7040cdb 4153else
ce2cded5
L
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4164 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4166 break 2
ac48eca1 4167 fi
d7040cdb 4168done
81ecdfbb
RW
4169 done
4170IFS=$as_save_IFS
ac48eca1 4171
d7040cdb
SE
4172fi
4173fi
ce2cded5
L
4174ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4178else
81ecdfbb
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
d7040cdb 4181fi
ac48eca1 4182
81ecdfbb 4183
ce2cded5 4184 test -n "$ac_ct_CC" && break
d7040cdb 4185done
ac48eca1 4186
81ecdfbb
RW
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196 CC=$ac_ct_CC
4197 fi
d7040cdb 4198fi
ac48eca1 4199
d7040cdb 4200fi
ac48eca1 4201
ac48eca1 4202
81ecdfbb
RW
4203test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205as_fn_error "no acceptable C compiler found in \$PATH
4206See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4207
ce2cded5 4208# Provide some information about the compiler.
81ecdfbb
RW
4209$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4210set X $ac_compile
4211ac_compiler=$2
4212for ac_option in --version -v -V -qversion; do
4213 { { ac_try="$ac_compiler $ac_option >&5"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219$as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4221 ac_status=$?
81ecdfbb
RW
4222 if test -s conftest.err; then
4223 sed '10a\
4224... rest of stderr output deleted ...
4225 10q' conftest.err >conftest.er1
4226 cat conftest.er1 >&5
4227 rm -f conftest.er1 conftest.err
4228 fi
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231done
ac48eca1 4232
81ecdfbb
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
d7040cdb 4237else
81ecdfbb 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4239/* end confdefs.h. */
c8615825 4240
ce2cded5
L
4241int
4242main ()
4243{
4244#ifndef __GNUC__
4245 choke me
4246#endif
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
81ecdfbb 4252if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4253 ac_compiler_gnu=yes
d7040cdb 4254else
81ecdfbb 4255 ac_compiler_gnu=no
d7040cdb 4256fi
81ecdfbb 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4258ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4259
ce2cded5 4260fi
81ecdfbb
RW
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263if test $ac_compiler_gnu = yes; then
4264 GCC=yes
4265else
4266 GCC=
4267fi
ce2cded5
L
4268ac_test_CFLAGS=${CFLAGS+set}
4269ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271$as_echo_n "checking whether $CC accepts -g... " >&6; }
4272if test "${ac_cv_prog_cc_g+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 ac_save_c_werror_flag=$ac_c_werror_flag
4276 ac_c_werror_flag=yes
4277 ac_cv_prog_cc_g=no
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4280/* end confdefs.h. */
d7040cdb 4281
ce2cded5
L
4282int
4283main ()
4284{
d7040cdb 4285
ce2cded5
L
4286 ;
4287 return 0;
4288}
4289_ACEOF
81ecdfbb 4290if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4291 ac_cv_prog_cc_g=yes
4292else
81ecdfbb
RW
4293 CFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_compile "$LINENO"; then :
4306
4307else
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h. */
d70c5fc7 4312
81ecdfbb
RW
4313int
4314main ()
4315{
4316
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_prog_cc_g=yes
4323fi
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4325fi
81ecdfbb 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4327fi
81ecdfbb
RW
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4333if test "$ac_test_CFLAGS" = set; then
4334 CFLAGS=$ac_save_CFLAGS
4335elif test $ac_cv_prog_cc_g = yes; then
4336 if test "$GCC" = yes; then
4337 CFLAGS="-g -O2"
4338 else
4339 CFLAGS="-g"
4340 fi
ac48eca1 4341else
ce2cded5
L
4342 if test "$GCC" = yes; then
4343 CFLAGS="-O2"
4344 else
4345 CFLAGS=
4346 fi
ac48eca1 4347fi
81ecdfbb
RW
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350if test "${ac_cv_prog_cc_c89+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
ac48eca1 4352else
81ecdfbb 4353 ac_cv_prog_cc_c89=no
ce2cded5 4354ac_save_CC=$CC
81ecdfbb 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4356/* end confdefs.h. */
4357#include <stdarg.h>
4358#include <stdio.h>
4359#include <sys/types.h>
4360#include <sys/stat.h>
4361/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4362struct buf { int x; };
4363FILE * (*rcsopen) (struct buf *, struct stat *, int);
4364static char *e (p, i)
4365 char **p;
4366 int i;
4367{
4368 return p[i];
4369}
4370static char *f (char * (*g) (char **, int), char **p, ...)
4371{
4372 char *s;
4373 va_list v;
4374 va_start (v,p);
4375 s = g (p, va_arg (v,int));
4376 va_end (v);
4377 return s;
4378}
4379
4380/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4381 function prototypes and stuff, but not '\xHH' hex character constants.
4382 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4383 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4385 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4386 that's true only with -std. */
ce2cded5
L
4387int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4388
81ecdfbb
RW
4389/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4390 inside strings and character constants. */
4391#define FOO(x) 'x'
4392int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4393
ce2cded5
L
4394int test (int i, double x);
4395struct s1 {int (*f) (int a);};
4396struct s2 {int (*f) (double a);};
4397int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398int argc;
4399char **argv;
4400int
4401main ()
4402{
4403return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4404 ;
4405 return 0;
4406}
4407_ACEOF
81ecdfbb
RW
4408for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4410do
4411 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4414fi
81ecdfbb
RW
4415rm -f core conftest.err conftest.$ac_objext
4416 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4417done
81ecdfbb 4418rm -f conftest.$ac_ext
ce2cded5
L
4419CC=$ac_save_CC
4420
4421fi
81ecdfbb
RW
4422# AC_CACHE_VAL
4423case "x$ac_cv_prog_cc_c89" in
4424 x)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426$as_echo "none needed" >&6; } ;;
4427 xno)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429$as_echo "unsupported" >&6; } ;;
ce2cded5 4430 *)
81ecdfbb
RW
4431 CC="$CC $ac_cv_prog_cc_c89"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4433$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4434esac
81ecdfbb 4435if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4436
ce2cded5 4437fi
d7040cdb 4438
ce2cded5
L
4439ac_ext=c
4440ac_cpp='$CPP $CPPFLAGS'
4441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4444
7357c5b6
AM
4445ac_ext=c
4446ac_cpp='$CPP $CPPFLAGS'
4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4451$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4452# On Suns, sometimes $CPP names a directory.
4453if test -n "$CPP" && test -d "$CPP"; then
4454 CPP=
4455fi
4456if test -z "$CPP"; then
81ecdfbb
RW
4457 if test "${ac_cv_prog_CPP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
7357c5b6
AM
4459else
4460 # Double quotes because CPP needs to be expanded
4461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 do
4463 ac_preproc_ok=false
4464for ac_c_preproc_warn_flag in '' yes
4465do
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4473/* end confdefs.h. */
4474#ifdef __STDC__
4475# include <limits.h>
4476#else
4477# include <assert.h>
4478#endif
4479 Syntax error
4480_ACEOF
81ecdfbb 4481if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4482
81ecdfbb 4483else
7357c5b6
AM
4484 # Broken: fails on valid input.
4485continue
4486fi
4487rm -f conftest.err conftest.$ac_ext
d7040cdb 4488
81ecdfbb 4489 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4490 # can be detected and how.
81ecdfbb 4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4492/* end confdefs.h. */
4493#include <ac_nonexistent.h>
4494_ACEOF
81ecdfbb 4495if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4496 # Broken: success on invalid input.
4497continue
4498else
7357c5b6
AM
4499 # Passes both tests.
4500ac_preproc_ok=:
4501break
4502fi
4503rm -f conftest.err conftest.$ac_ext
d7040cdb 4504
7357c5b6
AM
4505done
4506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507rm -f conftest.err conftest.$ac_ext
81ecdfbb 4508if $ac_preproc_ok; then :
7357c5b6
AM
4509 break
4510fi
d7040cdb 4511
7357c5b6
AM
4512 done
4513 ac_cv_prog_CPP=$CPP
d7040cdb 4514
7357c5b6
AM
4515fi
4516 CPP=$ac_cv_prog_CPP
4517else
4518 ac_cv_prog_CPP=$CPP
4519fi
81ecdfbb
RW
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4521$as_echo "$CPP" >&6; }
7357c5b6
AM
4522ac_preproc_ok=false
4523for ac_c_preproc_warn_flag in '' yes
4524do
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4532/* end confdefs.h. */
4533#ifdef __STDC__
4534# include <limits.h>
4535#else
4536# include <assert.h>
4537#endif
4538 Syntax error
4539_ACEOF
81ecdfbb 4540if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4541
81ecdfbb 4542else
7357c5b6
AM
4543 # Broken: fails on valid input.
4544continue
4545fi
4546rm -f conftest.err conftest.$ac_ext
d7040cdb 4547
81ecdfbb 4548 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4549 # can be detected and how.
81ecdfbb 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4551/* end confdefs.h. */
4552#include <ac_nonexistent.h>
4553_ACEOF
81ecdfbb 4554if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4555 # Broken: success on invalid input.
4556continue
4557else
7357c5b6
AM
4558 # Passes both tests.
4559ac_preproc_ok=:
4560break
4561fi
4562rm -f conftest.err conftest.$ac_ext
d7040cdb 4563
7357c5b6
AM
4564done
4565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4567if $ac_preproc_ok; then :
4568
7357c5b6 4569else
81ecdfbb
RW
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572as_fn_error "C preprocessor \"$CPP\" fails sanity check
4573See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4574fi
ac48eca1 4575
7357c5b6
AM
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4581
ac48eca1 4582
81ecdfbb
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585if test "${ac_cv_path_GREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
7357c5b6 4587else
81ecdfbb
RW
4588 if test -z "$GREP"; then
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600# Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602case `"$ac_path_GREP" --version 2>&1` in
4603*GNU*)
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605*)
4606 ac_count=0
4607 $as_echo_n 0123456789 >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
7357c5b6 4621 fi
81ecdfbb
RW
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626esac
4627
4628 $ac_path_GREP_found && break 3
4629 done
4630 done
4631 done
4632IFS=$as_save_IFS
4633 if test -z "$ac_cv_path_GREP"; then
4634 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 fi
4636else
4637 ac_cv_path_GREP=$GREP
7357c5b6 4638fi
81ecdfbb
RW
4639
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642$as_echo "$ac_cv_path_GREP" >&6; }
4643 GREP="$ac_cv_path_GREP"
ac48eca1 4644
d7040cdb 4645
81ecdfbb
RW
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647$as_echo_n "checking for egrep... " >&6; }
4648if test "${ac_cv_path_EGREP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
7357c5b6 4650else
81ecdfbb
RW
4651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652 then ac_cv_path_EGREP="$GREP -E"
4653 else
4654 if test -z "$EGREP"; then
4655 ac_path_EGREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in egrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4666# Check for GNU ac_path_EGREP and select it if it is found.
4667 # Check for GNU $ac_path_EGREP
4668case `"$ac_path_EGREP" --version 2>&1` in
4669*GNU*)
4670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671*)
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4675 do
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'EGREP' >> "conftest.nl"
4680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_EGREP="$ac_path_EGREP"
4686 ac_path_EGREP_max=$ac_count
4687 fi
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692esac
4693
4694 $ac_path_EGREP_found && break 3
4695 done
4696 done
4697 done
4698IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_EGREP"; then
4700 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 fi
4702else
4703 ac_cv_path_EGREP=$EGREP
4704fi
4705
4706 fi
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709$as_echo "$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4711
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714$as_echo_n "checking for ANSI C header files... " >&6; }
4715if test "${ac_cv_header_stdc+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4719/* end confdefs.h. */
4720#include <stdlib.h>
4721#include <stdarg.h>
4722#include <string.h>
4723#include <float.h>
d7040cdb 4724
7357c5b6
AM
4725int
4726main ()
4727{
d7040cdb 4728
7357c5b6
AM
4729 ;
4730 return 0;
4731}
4732_ACEOF
81ecdfbb 4733if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4734 ac_cv_header_stdc=yes
4735else
81ecdfbb 4736 ac_cv_header_stdc=no
7357c5b6 4737fi
81ecdfbb 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4739
7357c5b6
AM
4740if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4743/* end confdefs.h. */
4744#include <string.h>
d7040cdb 4745
7357c5b6
AM
4746_ACEOF
4747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4748 $EGREP "memchr" >/dev/null 2>&1; then :
4749
ce2cded5 4750else
7357c5b6
AM
4751 ac_cv_header_stdc=no
4752fi
4753rm -f conftest*
d7040cdb 4754
7357c5b6 4755fi
d7040cdb 4756
7357c5b6
AM
4757if test $ac_cv_header_stdc = yes; then
4758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4760/* end confdefs.h. */
4761#include <stdlib.h>
ac48eca1 4762
7357c5b6
AM
4763_ACEOF
4764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4765 $EGREP "free" >/dev/null 2>&1; then :
4766
7357c5b6
AM
4767else
4768 ac_cv_header_stdc=no
4769fi
4770rm -f conftest*
d7040cdb 4771
7357c5b6 4772fi
d7040cdb 4773
7357c5b6
AM
4774if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4776 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4777 :
4778else
81ecdfbb 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4780/* end confdefs.h. */
4781#include <ctype.h>
81ecdfbb 4782#include <stdlib.h>
7357c5b6
AM
4783#if ((' ' & 0x0FF) == 0x020)
4784# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786#else
4787# define ISLOWER(c) \
4788 (('a' <= (c) && (c) <= 'i') \
4789 || ('j' <= (c) && (c) <= 'r') \
4790 || ('s' <= (c) && (c) <= 'z'))
4791# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792#endif
d7040cdb 4793
7357c5b6
AM
4794#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4795int
4796main ()
4797{
4798 int i;
4799 for (i = 0; i < 256; i++)
4800 if (XOR (islower (i), ISLOWER (i))
4801 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4802 return 2;
4803 return 0;
7357c5b6
AM
4804}
4805_ACEOF
81ecdfbb 4806if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4807
81ecdfbb
RW
4808else
4809 ac_cv_header_stdc=no
7357c5b6 4810fi
81ecdfbb
RW
4811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4813fi
81ecdfbb 4814
7357c5b6
AM
4815fi
4816fi
81ecdfbb
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4819if test $ac_cv_header_stdc = yes; then
d7040cdb 4820
81ecdfbb 4821$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4822
7357c5b6 4823fi
d7040cdb 4824
7357c5b6 4825# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4826for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4827 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4828do :
4829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4831"
4832eval as_val=\$$as_ac_Header
4833 if test "x$as_val" = x""yes; then :
7357c5b6 4834 cat >>confdefs.h <<_ACEOF
81ecdfbb 4835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4836_ACEOF
ce2cded5 4837
7357c5b6 4838fi
ce2cded5 4839
7357c5b6 4840done
ce2cded5
L
4841
4842
4843
81ecdfbb
RW
4844 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4845if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4846 MINIX=yes
4847else
4848 MINIX=
4849fi
d7040cdb
SE
4850
4851
7357c5b6 4852 if test "$MINIX" = yes; then
d7040cdb 4853
81ecdfbb 4854$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4855
4856
81ecdfbb 4857$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4858
4859
81ecdfbb 4860$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4861
7357c5b6 4862 fi
d7040cdb
SE
4863
4864
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4866$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4867if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
ac48eca1 4869else
81ecdfbb 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4871/* end confdefs.h. */
ac48eca1 4872
7357c5b6
AM
4873# define __EXTENSIONS__ 1
4874 $ac_includes_default
4875int
4876main ()
4877{
13b2be9c 4878
7357c5b6
AM
4879 ;
4880 return 0;
4881}
4882_ACEOF
81ecdfbb 4883if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4884 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4885else
81ecdfbb 4886 ac_cv_safe_to_define___extensions__=no
d6d788bd 4887fi
81ecdfbb 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4889fi
81ecdfbb
RW
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4892 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4893 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4894
81ecdfbb 4895 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4896
81ecdfbb 4897 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4898
81ecdfbb 4899 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4900
81ecdfbb 4901 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4902
a74801ba 4903
d053aef8 4904
81ecdfbb 4905
da2f07f1 4906
718a6fd8
SE
4907case `pwd` in
4908 *\ * | *\ *)
81ecdfbb
RW
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4911esac
13b2be9c 4912
252b5132 4913
7357c5b6 4914
f2c621e4
AS
4915macro_version='2.2.7a'
4916macro_revision='1.3134'
7357c5b6
AM
4917
4918
4919
4920
4921
4922
7357c5b6
AM
4923
4924
4925
4926
4927
4928
4929
718a6fd8 4930ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4931
3725885a
RW
4932# Backslashify metacharacters that are still active within
4933# double-quoted strings.
4934sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4935
4936# Same as above, but do not quote variable references.
4937double_quote_subst='s/\(["`\\]\)/\\\1/g'
4938
4939# Sed substitution to delay expansion of an escaped shell variable in a
4940# double_quote_subst'ed string.
4941delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4942
4943# Sed substitution to delay expansion of an escaped single quote.
4944delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4945
4946# Sed substitution to avoid accidental globbing in evaled expressions
4947no_glob_subst='s/\*/\\\*/g'
4948
4949ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4950ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4951ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4954$as_echo_n "checking how to print strings... " >&6; }
4955# Test print first, because it will be a builtin if present.
f2c621e4 4956if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4958 ECHO='print -r --'
4959elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4960 ECHO='printf %s\n'
4961else
4962 # Use this function as a fallback that always works.
4963 func_fallback_echo ()
4964 {
4965 eval 'cat <<_LTECHO_EOF
4966$1
4967_LTECHO_EOF'
4968 }
4969 ECHO='func_fallback_echo'
4970fi
4971
4972# func_echo_all arg...
4973# Invoke $ECHO with all args, space-separated.
4974func_echo_all ()
4975{
4976 $ECHO ""
4977}
4978
4979case "$ECHO" in
4980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4981$as_echo "printf" >&6; } ;;
4982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4983$as_echo "print -r" >&6; } ;;
4984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4985$as_echo "cat" >&6; } ;;
4986esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
81ecdfbb
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003if test "${ac_cv_path_SED+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007 for ac_i in 1 2 3 4 5 6 7; do
5008 ac_script="$ac_script$as_nl$ac_script"
5009 done
5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011 { ac_script=; unset ac_script;}
5012 if test -z "$SED"; then
5013 ac_path_SED_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
81ecdfbb 5020 for ac_prog in sed gsed; do
7357c5b6 5021 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5022 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5024# Check for GNU ac_path_SED and select it if it is found.
5025 # Check for GNU $ac_path_SED
5026case `"$ac_path_SED" --version 2>&1` in
5027*GNU*)
5028 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5029*)
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5033 do
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo '' >> "conftest.nl"
5038 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_SED_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_SED="$ac_path_SED"
5044 ac_path_SED_max=$ac_count
5045 fi
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050esac
5051
5052 $ac_path_SED_found && break 3
7357c5b6
AM
5053 done
5054 done
81ecdfbb 5055 done
7357c5b6 5056IFS=$as_save_IFS
81ecdfbb
RW
5057 if test -z "$ac_cv_path_SED"; then
5058 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5059 fi
81ecdfbb
RW
5060else
5061 ac_cv_path_SED=$SED
7357c5b6
AM
5062fi
5063
81ecdfbb
RW
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066$as_echo "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5068 rm -f conftest.sed
7357c5b6
AM
5069
5070test -z "$SED" && SED=sed
5071Xsed="$SED -e 1s/^X//"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
81ecdfbb
RW
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5084$as_echo_n "checking for fgrep... " >&6; }
5085if test "${ac_cv_path_FGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
7357c5b6 5087else
81ecdfbb
RW
5088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5089 then ac_cv_path_FGREP="$GREP -F"
5090 else
5091 if test -z "$FGREP"; then
5092 ac_path_FGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in fgrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5103# Check for GNU ac_path_FGREP and select it if it is found.
5104 # Check for GNU $ac_path_FGREP
5105case `"$ac_path_FGREP" --version 2>&1` in
5106*GNU*)
5107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5108*)
5109 ac_count=0
5110 $as_echo_n 0123456789 >"conftest.in"
5111 while :
5112 do
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'FGREP' >> "conftest.nl"
5117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_FGREP="$ac_path_FGREP"
5123 ac_path_FGREP_max=$ac_count
7357c5b6 5124 fi
81ecdfbb
RW
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5127 done
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129esac
5130
5131 $ac_path_FGREP_found && break 3
5132 done
5133 done
5134 done
5135IFS=$as_save_IFS
5136 if test -z "$ac_cv_path_FGREP"; then
5137 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138 fi
5139else
5140 ac_cv_path_FGREP=$FGREP
7357c5b6 5141fi
81ecdfbb
RW
5142
5143 fi
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5146$as_echo "$ac_cv_path_FGREP" >&6; }
5147 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5148
5149
5150test -z "$GREP" && GREP=grep
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
81ecdfbb
RW
5170# Check whether --with-gnu-ld was given.
5171if test "${with_gnu_ld+set}" = set; then :
5172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5173else
5174 with_gnu_ld=no
81ecdfbb
RW
5175fi
5176
ce2cded5
L
5177ac_prog=ld
5178if test "$GCC" = yes; then
5179 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5181$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5182 case $host in
5183 *-*-mingw*)
5184 # gcc leaves a trailing carriage return which upsets mingw
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186 *)
5187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5188 esac
5189 case $ac_prog in
5190 # Accept absolute paths.
5191 [\\/]* | ?:[\\/]*)
5192 re_direlt='/[^/][^/]*/\.\./'
5193 # Canonicalize the pathname of ld
5194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5197 done
5198 test -z "$LD" && LD="$ac_prog"
5199 ;;
5200 "")
5201 # If it fails, then pretend we aren't using GCC.
5202 ac_prog=ld
5203 ;;
5204 *)
5205 # If it is relative, then search for the first ld in PATH.
5206 with_gnu_ld=unknown
5207 ;;
5208 esac
5209elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5211$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5212else
81ecdfbb
RW
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5214$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5215fi
81ecdfbb
RW
5216if test "${lt_cv_path_LD+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
ce2cded5
L
5218else
5219 if test -z "$LD"; then
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH; do
5222 IFS="$lt_save_ifs"
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 lt_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some variants of GNU ld only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break
5232 ;;
5233 *)
5234 test "$with_gnu_ld" != yes && break
5235 ;;
5236 esac
5237 fi
5238 done
5239 IFS="$lt_save_ifs"
5240else
5241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5242fi
5243fi
5244
5245LD="$lt_cv_path_LD"
5246if test -n "$LD"; then
81ecdfbb
RW
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248$as_echo "$LD" >&6; }
ce2cded5 5249else
81ecdfbb
RW
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
ce2cded5 5252fi
81ecdfbb
RW
5253test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5256if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
ce2cded5
L
5258else
5259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260case `$LD -v 2>&1 </dev/null` in
5261*GNU* | *'with BFD'*)
5262 lt_cv_prog_gnu_ld=yes
5263 ;;
5264*)
5265 lt_cv_prog_gnu_ld=no
5266 ;;
5267esac
5268fi
81ecdfbb
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5271with_gnu_ld=$lt_cv_prog_gnu_ld
5272
5273
5274
5275
5276
5277
5278
5279
5280
81ecdfbb
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283if test "${lt_cv_path_NM+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
ce2cded5
L
5285else
5286 if test -n "$NM"; then
5287 # Let the user override the test.
5288 lt_cv_path_NM="$NM"
5289else
5290 lt_nm_to_check="${ac_tool_prefix}nm"
5291 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5292 lt_nm_to_check="$lt_nm_to_check nm"
5293 fi
5294 for lt_tmp_nm in $lt_nm_to_check; do
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5297 IFS="$lt_save_ifs"
5298 test -z "$ac_dir" && ac_dir=.
5299 tmp_nm="$ac_dir/$lt_tmp_nm"
5300 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301 # Check to see if the nm accepts a BSD-compat flag.
5302 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303 # nm: unknown option "B" ignored
5304 # Tru64's nm complains that /dev/null is an invalid object file
5305 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306 */dev/null* | *'Invalid file or object type'*)
5307 lt_cv_path_NM="$tmp_nm -B"
5308 break
5309 ;;
5310 *)
5311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5312 */dev/null*)
5313 lt_cv_path_NM="$tmp_nm -p"
5314 break
5315 ;;
5316 *)
5317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318 continue # so that we can try to find one that supports BSD flags
5319 ;;
5320 esac
5321 ;;
5322 esac
5323 fi
5324 done
5325 IFS="$lt_save_ifs"
5326 done
5327 : ${lt_cv_path_NM=no}
5328fi
5329fi
81ecdfbb
RW
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5331$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5332if test "$lt_cv_path_NM" != "no"; then
5333 NM="$lt_cv_path_NM"
5334else
5335 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5336 if test -n "$DUMPBIN"; then :
5337 # Let the user override the test.
5338 else
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
d7040cdb 5348else
ce2cded5
L
5349 if test -n "$DUMPBIN"; then
5350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5361 break 2
d70c5fc7 5362 fi
d7040cdb 5363done
81ecdfbb
RW
5364 done
5365IFS=$as_save_IFS
d70c5fc7 5366
d7040cdb
SE
5367fi
5368fi
ce2cded5
L
5369DUMPBIN=$ac_cv_prog_DUMPBIN
5370if test -n "$DUMPBIN"; then
81ecdfbb
RW
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5372$as_echo "$DUMPBIN" >&6; }
bedf545c 5373else
81ecdfbb
RW
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
d7040cdb 5376fi
13b2be9c 5377
81ecdfbb 5378
ce2cded5
L
5379 test -n "$DUMPBIN" && break
5380 done
5381fi
5382if test -z "$DUMPBIN"; then
5383 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5384 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5385do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389$as_echo_n "checking for $ac_word... " >&6; }
5390if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
d7040cdb 5392else
ce2cded5
L
5393 if test -n "$ac_ct_DUMPBIN"; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5395else
5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5403 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5405 break 2
5406 fi
5407done
81ecdfbb
RW
5408 done
5409IFS=$as_save_IFS
ce2cded5
L
5410
5411fi
5412fi
5413ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5414if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5416$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5417else
81ecdfbb
RW
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }
d7040cdb
SE
5420fi
5421
81ecdfbb 5422
ce2cded5
L
5423 test -n "$ac_ct_DUMPBIN" && break
5424done
13b2be9c 5425
81ecdfbb
RW
5426 if test "x$ac_ct_DUMPBIN" = x; then
5427 DUMPBIN=":"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433ac_tool_warned=yes ;;
5434esac
5435 DUMPBIN=$ac_ct_DUMPBIN
5436 fi
ce2cded5 5437fi
13b2be9c 5438
3725885a
RW
5439 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5440 *COFF*)
5441 DUMPBIN="$DUMPBIN -symbols"
5442 ;;
5443 *)
5444 DUMPBIN=:
5445 ;;
5446 esac
5447 fi
bedf545c 5448
ce2cded5
L
5449 if test "$DUMPBIN" != ":"; then
5450 NM="$DUMPBIN"
5451 fi
5452fi
5453test -z "$NM" && NM=nm
6840198f 5454
13b2be9c 5455
ac48eca1 5456
d7040cdb 5457
ce2cded5
L
5458
5459
81ecdfbb
RW
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5461$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5462if test "${lt_cv_nm_interface+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
ce2cded5
L
5464else
5465 lt_cv_nm_interface="BSD nm"
5466 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5468 (eval "$ac_compile" 2>conftest.err)
5469 cat conftest.err >&5
3725885a 5470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5472 cat conftest.err >&5
3725885a 5473 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5474 cat conftest.out >&5
5475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5476 lt_cv_nm_interface="MS dumpbin"
5477 fi
5478 rm -f conftest*
5479fi
81ecdfbb
RW
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5481$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5482
81ecdfbb
RW
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5484$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5485LN_S=$as_ln_s
5486if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488$as_echo "yes" >&6; }
ce2cded5 5489else
81ecdfbb
RW
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5491$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5492fi
5493
5494# find the maximum length of command line arguments
81ecdfbb
RW
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5496$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5497if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
ce2cded5
L
5499else
5500 i=0
5501 teststring="ABCD"
5502
5503 case $build_os in
5504 msdosdjgpp*)
5505 # On DJGPP, this test can blow up pretty badly due to problems in libc
5506 # (any single argument exceeding 2000 bytes causes a buffer overrun
5507 # during glob expansion). Even if it were fixed, the result of this
5508 # check would be larger than it should be.
5509 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5510 ;;
5511
5512 gnu*)
5513 # Under GNU Hurd, this test is not required because there is
5514 # no limit to the length of command line arguments.
5515 # Libtool will interpret -1 as no limit whatsoever
5516 lt_cv_sys_max_cmd_len=-1;
5517 ;;
5518
718a6fd8 5519 cygwin* | mingw* | cegcc*)
ce2cded5
L
5520 # On Win9x/ME, this test blows up -- it succeeds, but takes
5521 # about 5 minutes as the teststring grows exponentially.
5522 # Worse, since 9x/ME are not pre-emptively multitasking,
5523 # you end up with a "frozen" computer, even though with patience
5524 # the test eventually succeeds (with a max line length of 256k).
5525 # Instead, let's just punt: use the minimum linelength reported by
5526 # all of the supported platforms: 8192 (on NT/2K/XP).
5527 lt_cv_sys_max_cmd_len=8192;
5528 ;;
5529
3725885a
RW
5530 mint*)
5531 # On MiNT this can take a long time and run out of memory.
5532 lt_cv_sys_max_cmd_len=8192;
5533 ;;
5534
ce2cded5
L
5535 amigaos*)
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5539 ;;
5540
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547 else
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5549 fi
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553 ;;
5554
5555 interix*)
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5558 ;;
5559
5560 osf*)
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5566 #
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570 esac
5571 fi
5572 ;;
5573 sco3.2v5*)
5574 lt_cv_sys_max_cmd_len=102400
5575 ;;
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5580 else
5581 lt_cv_sys_max_cmd_len=32768
5582 fi
d7040cdb
SE
5583 ;;
5584 *)
718a6fd8
SE
5585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 else
5590 # Make teststring a little bigger before we do anything with it.
5591 # a 1K string should be a reasonable start.
5592 for i in 1 2 3 4 5 6 7 8 ; do
5593 teststring=$teststring$teststring
5594 done
5595 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5596 # If test is not a shell built-in, we'll probably end up computing a
5597 # maximum length that is only half of the actual maximum length, but
5598 # we can't tell.
3725885a
RW
5599 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5600 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5601 test $i != 17 # 1/2 MB should be enough
5602 do
5603 i=`expr $i + 1`
5604 teststring=$teststring$teststring
5605 done
5606 # Only check the string length outside the loop.
5607 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5608 teststring=
5609 # Add a significant safety factor because C++ compilers can tack on
5610 # massive amounts of additional arguments before passing them to the
5611 # linker. It appears as though 1/2 is a usable value.
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5613 fi
d7040cdb
SE
5614 ;;
5615 esac
252b5132 5616
ce2cded5 5617fi
d6d788bd 5618
ce2cded5 5619if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5621$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5622else
81ecdfbb
RW
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5624$as_echo "none" >&6; }
ce2cded5
L
5625fi
5626max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5627
d6d788bd 5628
13b2be9c 5629
13b2be9c 5630
bedf545c 5631
252b5132 5632
ce2cded5
L
5633: ${CP="cp -f"}
5634: ${MV="mv -f"}
5635: ${RM="rm -f"}
d6d788bd 5636
81ecdfbb
RW
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5638$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5639# Try some XSI features
5640xsi_shell=no
5641( _lt_dummy="a/b/c"
f2c621e4
AS
5642 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5643 = c,a/b,, \
718a6fd8
SE
5644 && eval 'test $(( 1 + 1 )) -eq 2 \
5645 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5646 && xsi_shell=yes
81ecdfbb
RW
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5648$as_echo "$xsi_shell" >&6; }
bedf545c 5649
bedf545c 5650
81ecdfbb
RW
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5652$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5653lt_shell_append=no
5654( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5655 >/dev/null 2>&1 \
5656 && lt_shell_append=yes
81ecdfbb
RW
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5658$as_echo "$lt_shell_append" >&6; }
252b5132 5659
d6d788bd 5660
ce2cded5
L
5661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662 lt_unset=unset
5663else
5664 lt_unset=false
5665fi
13b2be9c
DJ
5666
5667
5668
5669
d6d788bd 5670
ce2cded5
L
5671# test EBCDIC or ASCII
5672case `echo X|tr X '\101'` in
5673 A) # ASCII based system
5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675 lt_SP2NL='tr \040 \012'
5676 lt_NL2SP='tr \015\012 \040\040'
5677 ;;
5678 *) # EBCDIC based system
5679 lt_SP2NL='tr \100 \n'
5680 lt_NL2SP='tr \r\n \100\100'
5681 ;;
5682esac
c43a438d 5683
c43a438d 5684
c43a438d 5685
252b5132 5686
ad22bfe8 5687
1ad12f97 5688
1ad12f97 5689
9e9b66a9 5690
1ad12f97 5691
81ecdfbb
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5693$as_echo_n "checking for $LD option to reload object files... " >&6; }
5694if test "${lt_cv_ld_reload_flag+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
ce2cded5
L
5696else
5697 lt_cv_ld_reload_flag='-r'
5698fi
81ecdfbb
RW
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5700$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5701reload_flag=$lt_cv_ld_reload_flag
5702case $reload_flag in
5703"" | " "*) ;;
5704*) reload_flag=" $reload_flag" ;;
5705esac
5706reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707case $host_os in
5708 darwin*)
5709 if test "$GCC" = yes; then
5710 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5711 else
5712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713 fi
5714 ;;
5715esac
a541e3ce 5716
9e9b66a9 5717
a2d91340 5718
d6d788bd 5719
9e9b66a9
AM
5720
5721
5722
d6d788bd 5723
252b5132 5724
718a6fd8
SE
5725if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5727set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
718a6fd8
SE
5732else
5733 if test -n "$OBJDUMP"; then
5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5745 break 2
5746 fi
5747done
81ecdfbb
RW
5748 done
5749IFS=$as_save_IFS
718a6fd8
SE
5750
5751fi
5752fi
5753OBJDUMP=$ac_cv_prog_OBJDUMP
5754if test -n "$OBJDUMP"; then
81ecdfbb
RW
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5756$as_echo "$OBJDUMP" >&6; }
718a6fd8 5757else
81ecdfbb
RW
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
718a6fd8
SE
5760fi
5761
81ecdfbb 5762
718a6fd8
SE
5763fi
5764if test -z "$ac_cv_prog_OBJDUMP"; then
5765 ac_ct_OBJDUMP=$OBJDUMP
5766 # Extract the first word of "objdump", so it can be a program name with args.
5767set dummy objdump; ac_word=$2
81ecdfbb
RW
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
718a6fd8
SE
5772else
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5785 break 2
5786 fi
5787done
81ecdfbb
RW
5788 done
5789IFS=$as_save_IFS
718a6fd8 5790
718a6fd8
SE
5791fi
5792fi
5793ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5794if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5796$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5797else
81ecdfbb
RW
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
718a6fd8
SE
5800fi
5801
81ecdfbb
RW
5802 if test "x$ac_ct_OBJDUMP" = x; then
5803 OBJDUMP="false"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806yes:)
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809ac_tool_warned=yes ;;
5810esac
5811 OBJDUMP=$ac_ct_OBJDUMP
5812 fi
718a6fd8
SE
5813else
5814 OBJDUMP="$ac_cv_prog_OBJDUMP"
5815fi
5816
5817test -z "$OBJDUMP" && OBJDUMP=objdump
5818
5819
5820
5821
5822
5823
5824
5825
13b2be9c 5826
81ecdfbb
RW
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5828$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5829if test "${lt_cv_deplibs_check_method+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
d7040cdb 5831else
ce2cded5
L
5832 lt_cv_file_magic_cmd='$MAGIC_CMD'
5833lt_cv_file_magic_test_file=
5834lt_cv_deplibs_check_method='unknown'
5835# Need to set the preceding variable on all platforms that support
5836# interlibrary dependencies.
5837# 'none' -- dependencies not supported.
5838# `unknown' -- same as none, but documents that we really don't know.
5839# 'pass_all' -- all dependencies passed with no checks.
5840# 'test_compile' -- check by making test program.
5841# 'file_magic [[regex]]' -- check by looking for files in library path
5842# which responds to the $file_magic_cmd with a given extended regex.
5843# If you have `file' or equivalent on your system and you're not sure
5844# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5845
ce2cded5 5846case $host_os in
50e7d84b 5847aix[4-9]*)
ce2cded5
L
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
d7040cdb 5850
ce2cded5
L
5851beos*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
d7040cdb 5854
ce2cded5
L
5855bsdi[45]*)
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5857 lt_cv_file_magic_cmd='/usr/bin/file -L'
5858 lt_cv_file_magic_test_file=/shlib/libc.so
5859 ;;
d7040cdb 5860
ce2cded5
L
5861cygwin*)
5862 # func_win32_libid is a shell function defined in ltmain.sh
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5865 ;;
ce2cded5
L
5866
5867mingw* | pw32*)
5868 # Base MSYS/MinGW do not provide the 'file' command needed by
5869 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5870 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5871 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5872 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874 lt_cv_file_magic_cmd='func_win32_libid'
5875 else
f2c621e4 5876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 fi
d7040cdb 5879 ;;
ce2cded5 5880
3725885a 5881cegcc*)
718a6fd8
SE
5882 # use the weaker test based on 'objdump'. See mingw*.
5883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5885 ;;
5886
ce2cded5
L
5887darwin* | rhapsody*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891freebsd* | dragonfly*)
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893 case $host_cpu in
5894 i*86 )
5895 # Not sure whether the presence of OpenBSD here was a mistake.
5896 # Let's accept both of them until this is cleared up.
5897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900 ;;
5901 esac
5902 else
5903 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5904 fi
5905 ;;
ce2cded5
L
5906
5907gnu*)
5908 lt_cv_deplibs_check_method=pass_all
d7040cdb 5909 ;;
ce2cded5 5910
3725885a
RW
5911haiku*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
ce2cded5
L
5915hpux10.20* | hpux11*)
5916 lt_cv_file_magic_cmd=/usr/bin/file
5917 case $host_cpu in
5918 ia64*)
5919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5921 ;;
5922 hppa*64*)
3725885a 5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
ce2cded5
L
5924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5925 ;;
5926 *)
3725885a 5927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
5928 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5929 ;;
5930 esac
d7040cdb 5931 ;;
ce2cded5
L
5932
5933interix[3-9]*)
5934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5936 ;;
ce2cded5
L
5937
5938irix5* | irix6* | nonstopux*)
5939 case $LD in
5940 *-32|*"-32 ") libmagic=32-bit;;
5941 *-n32|*"-n32 ") libmagic=N32;;
5942 *-64|*"-64 ") libmagic=64-bit;;
5943 *) libmagic=never-match;;
5944 esac
5945 lt_cv_deplibs_check_method=pass_all
d7040cdb 5946 ;;
ce2cded5
L
5947
5948# This must be Linux ELF.
58e24671 5949linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 5950 lt_cv_deplibs_check_method=pass_all
d7040cdb 5951 ;;
ce2cded5
L
5952
5953netbsd*)
5954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5956 else
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958 fi
d7040cdb 5959 ;;
ce2cded5
L
5960
5961newos6*)
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5965 ;;
76a27922 5966
ce2cded5
L
5967*nto* | *qnx*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
d6d788bd 5970
ce2cded5
L
5971openbsd*)
5972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5974 else
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976 fi
5977 ;;
44f2f9d2 5978
ce2cded5
L
5979osf3* | osf4* | osf5*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
44f2f9d2 5982
ce2cded5
L
5983rdos*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987solaris*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995sysv4 | sysv4.3*)
5996 case $host_vendor in
5997 motorola)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6000 ;;
6001 ncr)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004 sequent)
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6007 ;;
6008 sni)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6011 lt_cv_file_magic_test_file=/lib/libc.so
6012 ;;
6013 siemens)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016 pc)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019 esac
6020 ;;
6021
6022tpf*)
6023 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6024 ;;
6025esac
6026
ce2cded5 6027fi
81ecdfbb
RW
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6029$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6030file_magic_cmd=$lt_cv_file_magic_cmd
6031deplibs_check_method=$lt_cv_deplibs_check_method
6032test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6033
d7040cdb 6034
d7040cdb 6035
d7040cdb 6036
d7040cdb 6037
44f2f9d2 6038
d7040cdb 6039
d7040cdb 6040
d7040cdb 6041
d7040cdb 6042
44f2f9d2 6043
d7040cdb 6044
ce2cded5 6045if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
ce2cded5
L
6052else
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6065 break 2
d7040cdb
SE
6066 fi
6067done
81ecdfbb
RW
6068 done
6069IFS=$as_save_IFS
44f2f9d2 6070
ce2cded5
L
6071fi
6072fi
6073AR=$ac_cv_prog_AR
6074if test -n "$AR"; then
81ecdfbb
RW
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076$as_echo "$AR" >&6; }
ce2cded5 6077else
81ecdfbb
RW
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
44f2f9d2 6080fi
d7040cdb 6081
81ecdfbb 6082
d7040cdb 6083fi
f2c621e4 6084if test -z "$ac_cv_prog_AR"; then
ce2cded5 6085 ac_ct_AR=$AR
f2c621e4
AS
6086 # Extract the first word of "ar", so it can be a program name with args.
6087set dummy ar; ac_word=$2
81ecdfbb
RW
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
44f2f9d2 6092else
ce2cded5
L
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6103 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6105 break 2
6106 fi
6107done
81ecdfbb
RW
6108 done
6109IFS=$as_save_IFS
ce2cded5 6110
ce2cded5
L
6111fi
6112fi
6113ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6117else
81ecdfbb
RW
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
d7040cdb 6120fi
44f2f9d2 6121
81ecdfbb
RW
6122 if test "x$ac_ct_AR" = x; then
6123 AR="false"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126yes:)
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129ac_tool_warned=yes ;;
6130esac
6131 AR=$ac_ct_AR
6132 fi
df7b86aa 6133else
f2c621e4
AS
6134 AR="$ac_cv_prog_AR"
6135fi
df7b86aa 6136
f2c621e4
AS
6137test -z "$AR" && AR=ar
6138test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6139
df7b86aa 6140
df7b86aa 6141
df7b86aa 6142
df7b86aa
NC
6143
6144
6145
6146
6147
6148
d7040cdb 6149
ce2cded5
L
6150if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if test "${ac_cv_prog_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
ce2cded5
L
6157else
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6170 break 2
6171 fi
6172done
81ecdfbb
RW
6173 done
6174IFS=$as_save_IFS
d7040cdb 6175
ce2cded5
L
6176fi
6177fi
6178STRIP=$ac_cv_prog_STRIP
6179if test -n "$STRIP"; then
81ecdfbb
RW
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181$as_echo "$STRIP" >&6; }
ce2cded5 6182else
81ecdfbb
RW
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
ce2cded5 6185fi
d7040cdb 6186
81ecdfbb 6187
ce2cded5
L
6188fi
6189if test -z "$ac_cv_prog_STRIP"; then
6190 ac_ct_STRIP=$STRIP
6191 # Extract the first word of "strip", so it can be a program name with args.
6192set dummy strip; ac_word=$2
81ecdfbb
RW
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
ce2cded5
L
6197else
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6208 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6210 break 2
6211 fi
6212done
81ecdfbb
RW
6213 done
6214IFS=$as_save_IFS
d7040cdb 6215
ce2cded5
L
6216fi
6217fi
6218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6222else
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
ce2cded5 6225fi
d7040cdb 6226
81ecdfbb
RW
6227 if test "x$ac_ct_STRIP" = x; then
6228 STRIP=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 STRIP=$ac_ct_STRIP
6237 fi
ce2cded5
L
6238else
6239 STRIP="$ac_cv_prog_STRIP"
6240fi
d7040cdb 6241
ce2cded5 6242test -z "$STRIP" && STRIP=:
d7040cdb 6243
d7040cdb 6244
d7040cdb 6245
d7040cdb 6246
d7040cdb 6247
d7040cdb 6248
ce2cded5
L
6249if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if test "${ac_cv_prog_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
44f2f9d2 6256else
ce2cded5
L
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6269 break 2
6270 fi
6271done
81ecdfbb
RW
6272 done
6273IFS=$as_save_IFS
44f2f9d2 6274
d7040cdb 6275fi
44f2f9d2 6276fi
ce2cded5
L
6277RANLIB=$ac_cv_prog_RANLIB
6278if test -n "$RANLIB"; then
81ecdfbb
RW
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280$as_echo "$RANLIB" >&6; }
ce2cded5 6281else
81ecdfbb
RW
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
ce2cded5 6284fi
d7040cdb 6285
81ecdfbb 6286
d7040cdb 6287fi
ce2cded5
L
6288if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291set dummy ranlib; ac_word=$2
81ecdfbb
RW
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
6294if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
44f2f9d2 6296else
ce2cded5
L
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
d7040cdb 6302do
ce2cded5
L
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6309 break 2
d7040cdb 6310 fi
ce2cded5 6311done
81ecdfbb
RW
6312 done
6313IFS=$as_save_IFS
ce2cded5 6314
d7040cdb 6315fi
ce2cded5
L
6316fi
6317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6321else
81ecdfbb
RW
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
44f2f9d2 6324fi
44f2f9d2 6325
81ecdfbb
RW
6326 if test "x$ac_ct_RANLIB" = x; then
6327 RANLIB=":"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330yes:)
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333ac_tool_warned=yes ;;
6334esac
6335 RANLIB=$ac_ct_RANLIB
6336 fi
d7040cdb 6337else
ce2cded5 6338 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6339fi
252b5132 6340
ce2cded5 6341test -z "$RANLIB" && RANLIB=:
252b5132 6342
252b5132 6343
ae57792d 6344
252b5132 6345
13b2be9c 6346
14ee9f48 6347
ce2cded5 6348# Determine commands to create old-style static archives.
718a6fd8 6349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6350old_postinstall_cmds='chmod 644 $oldlib'
6351old_postuninstall_cmds=
14ee9f48 6352
ce2cded5
L
6353if test -n "$RANLIB"; then
6354 case $host_os in
6355 openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6363fi
14ee9f48 6364
3725885a
RW
6365case $host_os in
6366 darwin*)
6367 lock_old_archive_extraction=yes ;;
6368 *)
6369 lock_old_archive_extraction=no ;;
6370esac
6371
6372
6373
6374
6375
6376
f8fc3443 6377
f8fc3443 6378
252b5132 6379
85fbca6a 6380
85fbca6a 6381
13b2be9c 6382
13b2be9c 6383
d7040cdb 6384
d7040cdb
SE
6385
6386
6387
252b5132 6388
93fbbb04 6389
93fbbb04 6390
d70c5fc7 6391
e0001a05 6392
252b5132 6393
252b5132 6394
252b5132 6395
252b5132 6396
252b5132 6397
3bcbcc3d 6398
252b5132 6399
252b5132 6400
252b5132 6401
15886821 6402
252b5132 6403
252b5132 6404
13b2be9c
DJ
6405
6406
252b5132 6407
252b5132 6408
d6d788bd 6409
ce2cded5
L
6410# If no C compiler was specified, use CC.
6411LTCC=${LTCC-"$CC"}
252b5132 6412
ce2cded5
L
6413# If no C compiler flags were specified, use CFLAGS.
6414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6415
ce2cded5
L
6416# Allow CC to be a program name with arguments.
6417compiler=$CC
252b5132 6418
252b5132 6419
ce2cded5 6420# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
ce2cded5 6425else
252b5132 6426
ce2cded5
L
6427# These are sane defaults that work on at least a few old systems.
6428# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6429
ce2cded5
L
6430# Character class describing NM global symbol codes.
6431symcode='[BCDEGRST]'
252b5132 6432
ce2cded5
L
6433# Regexp to match symbols that can be accessed directly from C.
6434sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6435
ce2cded5
L
6436# Define system-specific variables.
6437case $host_os in
6438aix*)
6439 symcode='[BCDT]'
6440 ;;
718a6fd8 6441cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6442 symcode='[ABCDGISTW]'
6443 ;;
6444hpux*)
6445 if test "$host_cpu" = ia64; then
6446 symcode='[ABCDEGRST]'
6447 fi
6448 ;;
6449irix* | nonstopux*)
6450 symcode='[BCDEGRST]'
6451 ;;
6452osf*)
6453 symcode='[BCDEGQRST]'
6454 ;;
6455solaris*)
6456 symcode='[BDRT]'
6457 ;;
6458sco3.2v5*)
6459 symcode='[DT]'
6460 ;;
6461sysv4.2uw2*)
6462 symcode='[DT]'
6463 ;;
6464sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465 symcode='[ABDT]'
6466 ;;
6467sysv4)
6468 symcode='[DFNSTU]'
6469 ;;
6470esac
6471
6472# If we're using GNU nm, then use its standard symbol codes.
6473case `$NM -V 2>&1` in
6474*GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6476esac
252b5132 6477
ce2cded5
L
6478# Transform an extracted symbol line into a proper C declaration.
6479# Some systems (esp. on ia64) link data and code symbols differently,
6480# so use this general approach.
6481lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6482
ce2cded5 6483# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6484lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6485lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6486
7357c5b6
AM
6487# Handle CRLF in mingw tool chain
6488opt_cr=
6489case $build_os in
6490mingw*)
6491 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492 ;;
6493esac
d7040cdb 6494
7357c5b6
AM
6495# Try without a prefix underscore, then with it.
6496for ac_symprfx in "" "_"; do
d7040cdb 6497
7357c5b6
AM
6498 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6500
7357c5b6
AM
6501 # Write the raw and C identifiers.
6502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503 # Fake it for dumpbin and say T for any non-static function
6504 # and D for any global variable.
6505 # Also find C++ and __fastcall symbols from MSVC++,
6506 # which start with @ or ?.
6507 lt_cv_sys_global_symbol_pipe="$AWK '"\
6508" {last_section=section; section=\$ 3};"\
6509" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510" \$ 0!~/External *\|/{next};"\
6511" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512" {if(hide[section]) next};"\
6513" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517" ' prfx=^$ac_symprfx"
6518 else
6519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6520 fi
d7040cdb 6521
7357c5b6
AM
6522 # Check to see that the pipe works correctly.
6523 pipe_works=no
d7040cdb 6524
7357c5b6
AM
6525 rm -f conftest*
6526 cat > conftest.$ac_ext <<_LT_EOF
6527#ifdef __cplusplus
6528extern "C" {
6529#endif
6530char nm_test_var;
6531void nm_test_func(void);
6532void nm_test_func(void){}
6533#ifdef __cplusplus
ce2cded5 6534}
7357c5b6
AM
6535#endif
6536int main(){nm_test_var='a';nm_test_func();return(0);}
6537_LT_EOF
6538
81ecdfbb 6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6540 (eval $ac_compile) 2>&5
ce2cded5 6541 ac_status=$?
81ecdfbb
RW
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
7357c5b6
AM
6544 # Now try to grab the symbols.
6545 nlist=conftest.nm
3725885a
RW
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6548 ac_status=$?
81ecdfbb
RW
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6551 # Try sorting and uniquifying the output.
6552 if sort "$nlist" | uniq > "$nlist"T; then
6553 mv -f "$nlist"T "$nlist"
6554 else
6555 rm -f "$nlist"T
6556 fi
13b2be9c 6557
7357c5b6
AM
6558 # Make sure that we snagged all the symbols we need.
6559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6561 cat <<_LT_EOF > conftest.$ac_ext
6562#ifdef __cplusplus
6563extern "C" {
6564#endif
13b2be9c 6565
7357c5b6
AM
6566_LT_EOF
6567 # Now generate the symbol file.
6568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6569
7357c5b6 6570 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6571
7357c5b6 6572/* The mapping between symbol names and symbols. */
f2c621e4 6573const struct {
7357c5b6
AM
6574 const char *name;
6575 void *address;
6576}
6577lt__PROGRAM__LTX_preloaded_symbols[] =
6578{
6579 { "@PROGRAM@", (void *) 0 },
6580_LT_EOF
6581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582 cat <<\_LT_EOF >> conftest.$ac_ext
6583 {0, (void *) 0}
6584};
d7040cdb 6585
7357c5b6
AM
6586/* This works around a problem in FreeBSD linker */
6587#ifdef FREEBSD_WORKAROUND
6588static const void *lt_preloaded_setup() {
6589 return lt__PROGRAM__LTX_preloaded_symbols;
6590}
ce2cded5 6591#endif
d7040cdb 6592
7357c5b6 6593#ifdef __cplusplus
ce2cded5 6594}
7357c5b6
AM
6595#endif
6596_LT_EOF
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
81ecdfbb
RW
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6608 pipe_works=yes
6609 fi
f2c621e4
AS
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6614 fi
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6617 fi
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 fi
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 fi
718a6fd8 6625 rm -rf conftest* conftst*
7357c5b6
AM
6626
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6632 fi
6633done
d7040cdb 6634
ce2cded5 6635fi
7357c5b6
AM
6636
6637if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6639fi
7357c5b6 6640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642$as_echo "failed" >&6; }
7357c5b6 6643else
81ecdfbb
RW
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645$as_echo "ok" >&6; }
ce2cded5 6646fi
d7040cdb 6647
df7b86aa
NC
6648
6649
6650
d7040cdb 6651
d7040cdb 6652
d7040cdb 6653
d7040cdb 6654
d7040cdb 6655
d7040cdb 6656
d7040cdb 6657
d7040cdb 6658
d7040cdb 6659
d7040cdb 6660
d7040cdb 6661
7357c5b6
AM
6662
6663
718a6fd8
SE
6664
6665
6666
7357c5b6
AM
6667
6668
81ecdfbb
RW
6669# Check whether --enable-libtool-lock was given.
6670if test "${enable_libtool_lock+set}" = set; then :
6671 enableval=$enable_libtool_lock;
6672fi
7357c5b6 6673
7357c5b6
AM
6674test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6675
6676# Some flags need to be propagated to the compiler or linker for good
6677# libtool support.
6678case $host in
6679ia64-*-hpux*)
6680 # Find out which ABI we are using.
6681 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6683 (eval $ac_compile) 2>&5
6684 ac_status=$?
81ecdfbb
RW
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; then
7357c5b6
AM
6687 case `/usr/bin/file conftest.$ac_objext` in
6688 *ELF-32*)
6689 HPUX_IA64_MODE="32"
6690 ;;
6691 *ELF-64*)
6692 HPUX_IA64_MODE="64"
6693 ;;
6694 esac
6695 fi
6696 rm -rf conftest*
6697 ;;
6698*-*-irix6*)
6699 # Find out which ABI we are using.
3725885a 6700 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6702 (eval $ac_compile) 2>&5
6703 ac_status=$?
81ecdfbb
RW
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
7357c5b6
AM
6706 if test "$lt_cv_prog_gnu_ld" = yes; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6708 *32-bit*)
6709 LD="${LD-ld} -melf32bsmip"
6710 ;;
6711 *N32*)
6712 LD="${LD-ld} -melf32bmipn32"
6713 ;;
6714 *64-bit*)
6715 LD="${LD-ld} -melf64bmip"
6716 ;;
6717 esac
6718 else
6719 case `/usr/bin/file conftest.$ac_objext` in
6720 *32-bit*)
6721 LD="${LD-ld} -32"
6722 ;;
6723 *N32*)
6724 LD="${LD-ld} -n32"
6725 ;;
6726 *64-bit*)
6727 LD="${LD-ld} -64"
6728 ;;
6729 esac
6730 fi
6731 fi
6732 rm -rf conftest*
6733 ;;
6734
cc9afea3 6735x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6736s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6737 # Find out which ABI we are using.
6738 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
81ecdfbb
RW
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
7357c5b6
AM
6744 case `/usr/bin/file conftest.o` in
6745 *32-bit*)
6746 case $host in
6747 x86_64-*kfreebsd*-gnu)
6748 LD="${LD-ld} -m elf_i386_fbsd"
6749 ;;
6750 x86_64-*linux*)
6d2920c8
L
6751 case `/usr/bin/file conftest.o` in
6752 *x86-64*)
6753 LD="${LD-ld} -m elf32_x86_64"
6754 ;;
6755 *)
6756 LD="${LD-ld} -m elf_i386"
6757 ;;
6758 esac
7357c5b6 6759 ;;
cc9afea3
AM
6760 powerpc64le-*linux*)
6761 LD="${LD-ld} -m elf32lppclinux"
6762 ;;
6763 powerpc64-*linux*)
7357c5b6
AM
6764 LD="${LD-ld} -m elf32ppclinux"
6765 ;;
6766 s390x-*linux*)
6767 LD="${LD-ld} -m elf_s390"
6768 ;;
6769 sparc64-*linux*)
6770 LD="${LD-ld} -m elf32_sparc"
6771 ;;
6772 esac
6773 ;;
6774 *64-bit*)
6775 case $host in
6776 x86_64-*kfreebsd*-gnu)
6777 LD="${LD-ld} -m elf_x86_64_fbsd"
6778 ;;
6779 x86_64-*linux*)
6780 LD="${LD-ld} -m elf_x86_64"
6781 ;;
cc9afea3
AM
6782 powerpcle-*linux*)
6783 LD="${LD-ld} -m elf64lppc"
6784 ;;
6785 powerpc-*linux*)
7357c5b6
AM
6786 LD="${LD-ld} -m elf64ppc"
6787 ;;
6788 s390*-*linux*|s390*-*tpf*)
6789 LD="${LD-ld} -m elf64_s390"
6790 ;;
6791 sparc*-*linux*)
6792 LD="${LD-ld} -m elf64_sparc"
6793 ;;
6794 esac
6795 ;;
6796 esac
6797 fi
6798 rm -rf conftest*
6799 ;;
6800
6801*-*-sco3.2v5*)
6802 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6803 SAVE_CFLAGS="$CFLAGS"
6804 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6806$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6807if test "${lt_cv_cc_needs_belf+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
ce2cded5 6809else
7357c5b6
AM
6810 ac_ext=c
6811ac_cpp='$CPP $CPPFLAGS'
6812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
81ecdfbb 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 6817/* end confdefs.h. */
d7040cdb 6818
7357c5b6
AM
6819int
6820main ()
6821{
6822
6823 ;
6824 return 0;
6825}
ce2cded5 6826_ACEOF
81ecdfbb 6827if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6828 lt_cv_cc_needs_belf=yes
ce2cded5 6829else
81ecdfbb 6830 lt_cv_cc_needs_belf=no
ce2cded5 6831fi
81ecdfbb
RW
6832rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6834 ac_ext=c
6835ac_cpp='$CPP $CPPFLAGS'
6836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6839
ce2cded5 6840fi
81ecdfbb
RW
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6842$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6845 CFLAGS="$SAVE_CFLAGS"
6846 fi
6847 ;;
6848sparc*-*solaris*)
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
81ecdfbb
RW
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
7357c5b6
AM
6856 case `/usr/bin/file conftest.o` in
6857 *64-bit*)
6858 case $lt_cv_prog_gnu_ld in
6859 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6860 *)
6861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862 LD="${LD-ld} -64"
6863 fi
6864 ;;
7357c5b6
AM
6865 esac
6866 ;;
6867 esac
6868 fi
6869 rm -rf conftest*
6870 ;;
6871esac
d7040cdb 6872
df7b86aa
NC
6873need_locks="$enable_libtool_lock"
6874
718a6fd8
SE
6875
6876 case $host_os in
6877 rhapsody* | darwin*)
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
718a6fd8
SE
6885else
6886 if test -n "$DSYMUTIL"; then
6887 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6898 break 2
6899 fi
6900done
81ecdfbb
RW
6901 done
6902IFS=$as_save_IFS
718a6fd8
SE
6903
6904fi
6905fi
6906DSYMUTIL=$ac_cv_prog_DSYMUTIL
6907if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6909$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6910else
81ecdfbb
RW
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
718a6fd8
SE
6913fi
6914
81ecdfbb 6915
718a6fd8
SE
6916fi
6917if test -z "$ac_cv_prog_DSYMUTIL"; then
6918 ac_ct_DSYMUTIL=$DSYMUTIL
6919 # Extract the first word of "dsymutil", so it can be a program name with args.
6920set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922$as_echo_n "checking for $ac_word... " >&6; }
6923if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
718a6fd8
SE
6925else
6926 if test -n "$ac_ct_DSYMUTIL"; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6936 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6938 break 2
6939 fi
6940done
81ecdfbb
RW
6941 done
6942IFS=$as_save_IFS
718a6fd8 6943
718a6fd8
SE
6944fi
6945fi
6946ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6947if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6949$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6950else
81ecdfbb
RW
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
718a6fd8
SE
6953fi
6954
81ecdfbb
RW
6955 if test "x$ac_ct_DSYMUTIL" = x; then
6956 DSYMUTIL=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959yes:)
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962ac_tool_warned=yes ;;
6963esac
6964 DSYMUTIL=$ac_ct_DSYMUTIL
6965 fi
718a6fd8
SE
6966else
6967 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6968fi
6969
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6972set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
718a6fd8
SE
6977else
6978 if test -n "$NMEDIT"; then
6979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6988 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6990 break 2
6991 fi
6992done
81ecdfbb
RW
6993 done
6994IFS=$as_save_IFS
718a6fd8
SE
6995
6996fi
6997fi
6998NMEDIT=$ac_cv_prog_NMEDIT
6999if test -n "$NMEDIT"; then
81ecdfbb
RW
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7001$as_echo "$NMEDIT" >&6; }
718a6fd8 7002else
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
718a6fd8
SE
7005fi
7006
81ecdfbb 7007
718a6fd8
SE
7008fi
7009if test -z "$ac_cv_prog_NMEDIT"; then
7010 ac_ct_NMEDIT=$NMEDIT
7011 # Extract the first word of "nmedit", so it can be a program name with args.
7012set dummy nmedit; ac_word=$2
81ecdfbb
RW
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014$as_echo_n "checking for $ac_word... " >&6; }
7015if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
718a6fd8
SE
7017else
7018 if test -n "$ac_ct_NMEDIT"; then
7019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7030 break 2
7031 fi
7032done
81ecdfbb
RW
7033 done
7034IFS=$as_save_IFS
718a6fd8 7035
718a6fd8
SE
7036fi
7037fi
7038ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7041$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7042else
81ecdfbb
RW
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
718a6fd8
SE
7045fi
7046
81ecdfbb
RW
7047 if test "x$ac_ct_NMEDIT" = x; then
7048 NMEDIT=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051yes:)
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054ac_tool_warned=yes ;;
7055esac
7056 NMEDIT=$ac_ct_NMEDIT
7057 fi
718a6fd8
SE
7058else
7059 NMEDIT="$ac_cv_prog_NMEDIT"
7060fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if test "${ac_cv_prog_LIPO+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
718a6fd8
SE
7069else
7070 if test -n "$LIPO"; then
7071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7082 break 2
7083 fi
7084done
81ecdfbb
RW
7085 done
7086IFS=$as_save_IFS
718a6fd8
SE
7087
7088fi
7089fi
7090LIPO=$ac_cv_prog_LIPO
7091if test -n "$LIPO"; then
81ecdfbb
RW
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7093$as_echo "$LIPO" >&6; }
718a6fd8 7094else
81ecdfbb
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
718a6fd8
SE
7097fi
7098
81ecdfbb 7099
718a6fd8
SE
7100fi
7101if test -z "$ac_cv_prog_LIPO"; then
7102 ac_ct_LIPO=$LIPO
7103 # Extract the first word of "lipo", so it can be a program name with args.
7104set dummy lipo; ac_word=$2
81ecdfbb
RW
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
718a6fd8
SE
7109else
7110 if test -n "$ac_ct_LIPO"; then
7111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7120 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7122 break 2
7123 fi
7124done
81ecdfbb
RW
7125 done
7126IFS=$as_save_IFS
718a6fd8 7127
718a6fd8
SE
7128fi
7129fi
7130ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7131if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7133$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7134else
81ecdfbb
RW
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
718a6fd8
SE
7137fi
7138
81ecdfbb
RW
7139 if test "x$ac_ct_LIPO" = x; then
7140 LIPO=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146ac_tool_warned=yes ;;
7147esac
7148 LIPO=$ac_ct_LIPO
7149 fi
718a6fd8
SE
7150else
7151 LIPO="$ac_cv_prog_LIPO"
7152fi
7153
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7156set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158$as_echo_n "checking for $ac_word... " >&6; }
7159if test "${ac_cv_prog_OTOOL+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
718a6fd8
SE
7161else
7162 if test -n "$OTOOL"; then
7163 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7174 break 2
7175 fi
7176done
81ecdfbb
RW
7177 done
7178IFS=$as_save_IFS
718a6fd8
SE
7179
7180fi
7181fi
7182OTOOL=$ac_cv_prog_OTOOL
7183if test -n "$OTOOL"; then
81ecdfbb
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7185$as_echo "$OTOOL" >&6; }
718a6fd8 7186else
81ecdfbb
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
718a6fd8
SE
7189fi
7190
81ecdfbb 7191
718a6fd8
SE
7192fi
7193if test -z "$ac_cv_prog_OTOOL"; then
7194 ac_ct_OTOOL=$OTOOL
7195 # Extract the first word of "otool", so it can be a program name with args.
7196set dummy otool; ac_word=$2
81ecdfbb
RW
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198$as_echo_n "checking for $ac_word... " >&6; }
7199if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
718a6fd8
SE
7201else
7202 if test -n "$ac_ct_OTOOL"; then
7203 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7212 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7214 break 2
7215 fi
7216done
81ecdfbb
RW
7217 done
7218IFS=$as_save_IFS
718a6fd8 7219
718a6fd8
SE
7220fi
7221fi
7222ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7223if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7225$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7226else
81ecdfbb
RW
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
718a6fd8
SE
7229fi
7230
81ecdfbb
RW
7231 if test "x$ac_ct_OTOOL" = x; then
7232 OTOOL=":"
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235yes:)
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238ac_tool_warned=yes ;;
7239esac
7240 OTOOL=$ac_ct_OTOOL
7241 fi
718a6fd8
SE
7242else
7243 OTOOL="$ac_cv_prog_OTOOL"
7244fi
7245
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7248set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
7251if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
718a6fd8
SE
7253else
7254 if test -n "$OTOOL64"; then
7255 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7264 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7266 break 2
7267 fi
7268done
81ecdfbb
RW
7269 done
7270IFS=$as_save_IFS
718a6fd8
SE
7271
7272fi
7273fi
7274OTOOL64=$ac_cv_prog_OTOOL64
7275if test -n "$OTOOL64"; then
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7277$as_echo "$OTOOL64" >&6; }
718a6fd8 7278else
81ecdfbb
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280$as_echo "no" >&6; }
718a6fd8
SE
7281fi
7282
81ecdfbb 7283
718a6fd8
SE
7284fi
7285if test -z "$ac_cv_prog_OTOOL64"; then
7286 ac_ct_OTOOL64=$OTOOL64
7287 # Extract the first word of "otool64", so it can be a program name with args.
7288set dummy otool64; ac_word=$2
81ecdfbb
RW
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
718a6fd8
SE
7293else
7294 if test -n "$ac_ct_OTOOL64"; then
7295 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7304 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7306 break 2
7307 fi
7308done
81ecdfbb
RW
7309 done
7310IFS=$as_save_IFS
718a6fd8 7311
718a6fd8
SE
7312fi
7313fi
7314ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7315if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7317$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7318else
81ecdfbb
RW
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
718a6fd8
SE
7321fi
7322
81ecdfbb
RW
7323 if test "x$ac_ct_OTOOL64" = x; then
7324 OTOOL64=":"
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327yes:)
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330ac_tool_warned=yes ;;
7331esac
7332 OTOOL64=$ac_ct_OTOOL64
7333 fi
718a6fd8
SE
7334else
7335 OTOOL64="$ac_cv_prog_OTOOL64"
7336fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
81ecdfbb
RW
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7365$as_echo_n "checking for -single_module linker flag... " >&6; }
7366if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
718a6fd8
SE
7368else
7369 lt_cv_apple_cc_single_mod=no
7370 if test -z "${LT_MULTI_MODULE}"; then
7371 # By default we will add the -single_module flag. You can override
7372 # by either setting the environment variable LT_MULTI_MODULE
7373 # non-empty at configure time, or by adding -multi_module to the
7374 # link flags.
7375 rm -rf libconftest.dylib*
7376 echo "int foo(void){return 1;}" > conftest.c
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378-dynamiclib -Wl,-single_module conftest.c" >&5
7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7381 _lt_result=$?
7382 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7383 lt_cv_apple_cc_single_mod=yes
7384 else
7385 cat conftest.err >&5
7386 fi
7387 rm -rf libconftest.dylib*
7388 rm -f conftest.*
7389 fi
7390fi
81ecdfbb
RW
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7394$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
718a6fd8
SE
7397else
7398 lt_cv_ld_exported_symbols_list=no
7399 save_LDFLAGS=$LDFLAGS
7400 echo "_main" > conftest.sym
7401 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7403/* end confdefs.h. */
7404
7405int
7406main ()
7407{
7408
7409 ;
7410 return 0;
7411}
7412_ACEOF
81ecdfbb 7413if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7414 lt_cv_ld_exported_symbols_list=yes
7415else
81ecdfbb 7416 lt_cv_ld_exported_symbols_list=no
718a6fd8 7417fi
81ecdfbb
RW
7418rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7420 LDFLAGS="$save_LDFLAGS"
7421
7422fi
81ecdfbb
RW
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7424$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7426$as_echo_n "checking for -force_load linker flag... " >&6; }
7427if test "${lt_cv_ld_force_load+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429else
7430 lt_cv_ld_force_load=no
7431 cat > conftest.c << _LT_EOF
7432int forced_loaded() { return 2;}
7433_LT_EOF
7434 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7435 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7436 echo "$AR cru libconftest.a conftest.o" >&5
7437 $AR cru libconftest.a conftest.o 2>&5
7438 cat > conftest.c << _LT_EOF
7439int main() { return 0;}
7440_LT_EOF
7441 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7442 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7443 _lt_result=$?
7444 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7445 lt_cv_ld_force_load=yes
7446 else
7447 cat conftest.err >&5
7448 fi
7449 rm -f conftest.err libconftest.a conftest conftest.c
7450 rm -rf conftest.dSYM
7451
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7454$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7455 case $host_os in
7456 rhapsody* | darwin1.[012])
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7458 darwin1.*)
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 darwin*) # darwin 5.x on
7461 # if running on 10.5 or later, the deployment target defaults
7462 # to the OS version, if on x86, and 10.4, the deployment
7463 # target defaults to 10.4. Don't you love it?
7464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7467 10.[012][,.]*)
718a6fd8
SE
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469 10.*)
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471 esac
7472 ;;
7473 esac
7474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7475 _lt_dar_single_mod='$single_module'
7476 fi
7477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7479 else
7480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7481 fi
3725885a 7482 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7483 _lt_dsymutil='~$DSYMUTIL $lib || :'
7484 else
7485 _lt_dsymutil=
7486 fi
7487 ;;
7488 esac
7489
718a6fd8 7490for ac_header in dlfcn.h
81ecdfbb
RW
7491do :
7492 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7493"
7494if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7495 cat >>confdefs.h <<_ACEOF
81ecdfbb 7496#define HAVE_DLFCN_H 1
718a6fd8
SE
7497_ACEOF
7498
7499fi
7500
7501done
7502
7503
7504
3725885a
RW
7505
7506
718a6fd8
SE
7507# Set options
7508
7509
7510
7511 enable_dlopen=no
7512
7513
7514 enable_win32_dll=no
7515
7516
81ecdfbb
RW
7517 # Check whether --enable-shared was given.
7518if test "${enable_shared+set}" = set; then :
7519 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7520 case $enableval in
7521 yes) enable_shared=yes ;;
7522 no) enable_shared=no ;;
7523 *)
7524 enable_shared=no
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7528 IFS="$lt_save_ifs"
7529 if test "X$pkg" = "X$p"; then
7530 enable_shared=yes
7531 fi
7532 done
7533 IFS="$lt_save_ifs"
7534 ;;
7535 esac
7536else
7537 enable_shared=yes
81ecdfbb
RW
7538fi
7539
718a6fd8
SE
7540
7541
7542
7543
7544
7545
7546
7547
81ecdfbb
RW
7548 # Check whether --enable-static was given.
7549if test "${enable_static+set}" = set; then :
7550 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7551 case $enableval in
7552 yes) enable_static=yes ;;
7553 no) enable_static=no ;;
7554 *)
7555 enable_static=no
7556 # Look at the argument we got. We use all the common list separators.
7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558 for pkg in $enableval; do
7559 IFS="$lt_save_ifs"
7560 if test "X$pkg" = "X$p"; then
7561 enable_static=yes
7562 fi
7563 done
7564 IFS="$lt_save_ifs"
7565 ;;
7566 esac
7567else
7568 enable_static=yes
81ecdfbb
RW
7569fi
7570
718a6fd8
SE
7571
7572
d7040cdb 7573
d7040cdb 7574
718a6fd8
SE
7575
7576
7577
7578
7579
81ecdfbb
RW
7580# Check whether --with-pic was given.
7581if test "${with_pic+set}" = set; then :
7582 withval=$with_pic; pic_mode="$withval"
ce2cded5 7583else
718a6fd8 7584 pic_mode=default
81ecdfbb
RW
7585fi
7586
d7040cdb 7587
718a6fd8
SE
7588test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
81ecdfbb
RW
7596 # Check whether --enable-fast-install was given.
7597if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7599 case $enableval in
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7602 *)
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7607 IFS="$lt_save_ifs"
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7610 fi
7611 done
7612 IFS="$lt_save_ifs"
7613 ;;
7614 esac
ce2cded5 7615else
718a6fd8 7616 enable_fast_install=yes
81ecdfbb
RW
7617fi
7618
718a6fd8
SE
7619
7620
7621
7622
d7040cdb 7623
d7040cdb 7624
d7040cdb 7625
d7040cdb 7626
d7040cdb 7627
d7040cdb 7628
ce2cded5
L
7629# This can be used to rebuild libtool when needed
7630LIBTOOL_DEPS="$ltmain"
d7040cdb 7631
ce2cded5
L
7632# Always use our own libtool.
7633LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7634
d7040cdb 7635
d7040cdb 7636
d7040cdb
SE
7637
7638
7639
7640
7641
7642
d7040cdb 7643
d7040cdb 7644
ab509236 7645
ab509236 7646
d7040cdb
SE
7647
7648
7649
7650
7651
13b2be9c 7652
13b2be9c 7653
13b2be9c 7654
13b2be9c 7655
d7040cdb 7656
3725885a 7657
d7040cdb
SE
7658
7659
ce2cded5 7660test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7661
7662
d7040cdb 7663
d7040cdb 7664
d7040cdb
SE
7665
7666
7667
7668
7669
7670
ce2cded5
L
7671
7672
7673
7674
7675if test -n "${ZSH_VERSION+set}" ; then
7676 setopt NO_GLOB_SUBST
7677fi
7678
81ecdfbb
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7680$as_echo_n "checking for objdir... " >&6; }
7681if test "${lt_cv_objdir+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
d7040cdb 7683else
ce2cded5
L
7684 rm -f .libs 2>/dev/null
7685mkdir .libs 2>/dev/null
7686if test -d .libs; then
7687 lt_cv_objdir=.libs
7688else
7689 # MS-DOS does not allow filenames that begin with a dot.
7690 lt_cv_objdir=_libs
d7040cdb 7691fi
ce2cded5
L
7692rmdir .libs 2>/dev/null
7693fi
81ecdfbb
RW
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7695$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7696objdir=$lt_cv_objdir
d7040cdb
SE
7697
7698
7699
7700
d7040cdb 7701
ce2cded5
L
7702cat >>confdefs.h <<_ACEOF
7703#define LT_OBJDIR "$lt_cv_objdir/"
7704_ACEOF
d7040cdb
SE
7705
7706
7707
7708
ce2cded5
L
7709case $host_os in
7710aix3*)
7711 # AIX sometimes has problems with the GCC collect2 program. For some
7712 # reason, if we set the COLLECT_NAMES environment variable, the problems
7713 # vanish in a puff of smoke.
7714 if test "X${COLLECT_NAMES+set}" != Xset; then
7715 COLLECT_NAMES=
7716 export COLLECT_NAMES
7717 fi
7718 ;;
7719esac
d7040cdb 7720
ce2cded5
L
7721# Global variables:
7722ofile=libtool
7723can_build_shared=yes
d7040cdb 7724
ce2cded5
L
7725# All known linkers require a `.a' archive for static linking (except MSVC,
7726# which needs '.lib').
7727libext=a
d7040cdb 7728
ce2cded5 7729with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7730
ce2cded5
L
7731old_CC="$CC"
7732old_CFLAGS="$CFLAGS"
d7040cdb 7733
ce2cded5
L
7734# Set sane defaults for various variables
7735test -z "$CC" && CC=cc
7736test -z "$LTCC" && LTCC=$CC
7737test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738test -z "$LD" && LD=ld
7739test -z "$ac_objext" && ac_objext=o
7740
7741for cc_temp in $compiler""; do
7742 case $cc_temp in
7743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745 \-*) ;;
7746 *) break;;
7747 esac
7748done
3725885a 7749cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7750
7751
7752# Only perform the check for file, if the check method requires it
7753test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754case $deplibs_check_method in
7755file_magic*)
7756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7758$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7759if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
ce2cded5
L
7761else
7762 case $MAGIC_CMD in
7763[\\/*] | ?:[\\/]*)
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765 ;;
7766*)
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7771 IFS="$lt_save_ifs"
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/${ac_tool_prefix}file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7777 "file_magic "*)
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7782 :
d7040cdb 7783 else
ce2cded5 7784 cat <<_LT_EOF 1>&2
d7040cdb 7785
ce2cded5
L
7786*** Warning: the command libtool uses to detect shared libraries,
7787*** $file_magic_cmd, produces output that libtool cannot recognize.
7788*** The result is that libtool may fail to recognize shared libraries
7789*** as such. This will affect the creation of libtool libraries that
7790*** depend on shared libraries, but programs linked with such libtool
7791*** libraries will work regardless of this problem. Nevertheless, you
7792*** may want to report the problem to your system manager and/or to
7793*** bug-libtool@gnu.org
d7040cdb 7794
ce2cded5
L
7795_LT_EOF
7796 fi ;;
7797 esac
d7040cdb 7798 fi
ce2cded5 7799 break
d7040cdb 7800 fi
ce2cded5
L
7801 done
7802 IFS="$lt_save_ifs"
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
7804 ;;
7805esac
7806fi
d7040cdb 7807
ce2cded5
L
7808MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7812else
81ecdfbb
RW
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
ce2cded5 7815fi
d7040cdb 7816
d7040cdb 7817
d7040cdb 7818
d7040cdb 7819
d7040cdb 7820
ce2cded5
L
7821if test -z "$lt_cv_path_MAGIC_CMD"; then
7822 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7824$as_echo_n "checking for file... " >&6; }
7825if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
ce2cded5
L
7827else
7828 case $MAGIC_CMD in
7829[\\/*] | ?:[\\/]*)
7830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831 ;;
7832*)
7833 lt_save_MAGIC_CMD="$MAGIC_CMD"
7834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836 for ac_dir in $ac_dummy; do
7837 IFS="$lt_save_ifs"
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/file; then
7840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841 if test -n "$file_magic_test_file"; then
7842 case $deplibs_check_method in
7843 "file_magic "*)
7844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847 $EGREP "$file_magic_regex" > /dev/null; then
7848 :
d7040cdb 7849 else
ce2cded5
L
7850 cat <<_LT_EOF 1>&2
7851
7852*** Warning: the command libtool uses to detect shared libraries,
7853*** $file_magic_cmd, produces output that libtool cannot recognize.
7854*** The result is that libtool may fail to recognize shared libraries
7855*** as such. This will affect the creation of libtool libraries that
7856*** depend on shared libraries, but programs linked with such libtool
7857*** libraries will work regardless of this problem. Nevertheless, you
7858*** may want to report the problem to your system manager and/or to
7859*** bug-libtool@gnu.org
7860
7861_LT_EOF
7862 fi ;;
d7040cdb 7863 esac
d7040cdb 7864 fi
ce2cded5
L
7865 break
7866 fi
7867 done
7868 IFS="$lt_save_ifs"
7869 MAGIC_CMD="$lt_save_MAGIC_CMD"
7870 ;;
7871esac
7872fi
d7040cdb 7873
ce2cded5
L
7874MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7877$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7878else
81ecdfbb
RW
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
ce2cded5 7881fi
d7040cdb 7882
d7040cdb 7883
ce2cded5
L
7884 else
7885 MAGIC_CMD=:
7886 fi
d7040cdb 7887fi
d7040cdb 7888
ce2cded5
L
7889 fi
7890 ;;
7891esac
d7040cdb 7892
ce2cded5 7893# Use C for the default configuration in the libtool script
d7040cdb 7894
ce2cded5
L
7895lt_save_CC="$CC"
7896ac_ext=c
7897ac_cpp='$CPP $CPPFLAGS'
7898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7901
d7040cdb 7902
ce2cded5
L
7903# Source file extension for C test sources.
7904ac_ext=c
d7040cdb 7905
ce2cded5
L
7906# Object file extension for compiled C test sources.
7907objext=o
7908objext=$objext
d7040cdb 7909
ce2cded5
L
7910# Code to be used in simple compile tests
7911lt_simple_compile_test_code="int some_variable = 0;"
7912
7913# Code to be used in simple link tests
7914lt_simple_link_test_code='int main(){return(0);}'
7915
7916
7917
7918
7919
7920
7921
7922# If no C compiler was specified, use CC.
7923LTCC=${LTCC-"$CC"}
7924
7925# If no C compiler flags were specified, use CFLAGS.
7926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928# Allow CC to be a program name with arguments.
7929compiler=$CC
7930
7931# Save the default compiler, since it gets overwritten when the other
7932# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933compiler_DEFAULT=$CC
7934
7935# save warnings/boilerplate of simple test code
7936ac_outfile=conftest.$ac_objext
7937echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939_lt_compiler_boilerplate=`cat conftest.err`
7940$RM conftest*
7941
7942ac_outfile=conftest.$ac_objext
7943echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7946$RM -r conftest*
ce2cded5
L
7947
7948
f2c621e4
AS
7949## CAVEAT EMPTOR:
7950## There is no encapsulation within the following macros, do not change
7951## the running order or otherwise move them around unless you know exactly
7952## what you are doing...
ce2cded5
L
7953if test -n "$compiler"; then
7954
7955lt_prog_compiler_no_builtin_flag=
7956
7957if test "$GCC" = yes; then
3725885a
RW
7958 case $cc_basename in
7959 nvcc*)
7960 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7961 *)
7962 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7963 esac
ce2cded5 7964
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
ce2cded5
L
7969else
7970 lt_cv_prog_compiler_rtti_exceptions=no
7971 ac_outfile=conftest.$ac_objext
7972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973 lt_compiler_flag="-fno-rtti -fno-exceptions"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 # The option is referenced via a variable to avoid confusing sed.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
3725885a 7983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7984 (eval "$lt_compile" 2>conftest.err)
7985 ac_status=$?
7986 cat conftest.err >&5
3725885a 7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7988 if (exit $ac_status) && test -s "$ac_outfile"; then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings other than the usual output.
3725885a 7991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_rtti_exceptions=yes
7995 fi
7996 fi
7997 $RM conftest*
7998
7999fi
81ecdfbb
RW
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8002
8003if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005else
8006 :
8007fi
8008
8009fi
8010
8011
8012
8013
8014
8015
8016 lt_prog_compiler_wl=
8017lt_prog_compiler_pic=
8018lt_prog_compiler_static=
8019
f2c621e4
AS
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8021$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8022
8023 if test "$GCC" = yes; then
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_static='-static'
8026
8027 case $host_os in
8028 aix*)
8029 # All AIX code is PIC.
8030 if test "$host_cpu" = ia64; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static='-Bstatic'
8033 fi
6c9c0a50 8034 lt_prog_compiler_pic='-fPIC'
ce2cded5 8035 ;;
d7040cdb
SE
8036
8037 amigaos*)
718a6fd8
SE
8038 case $host_cpu in
8039 powerpc)
8040 # see comment about AmigaOS4 .so support
8041 lt_prog_compiler_pic='-fPIC'
8042 ;;
8043 m68k)
8044 # FIXME: we need at least 68020 code to build shared libraries, but
8045 # adding the `-m68020' flag to GCC prevents building anything better,
8046 # like `-m68040'.
8047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048 ;;
8049 esac
d7040cdb
SE
8050 ;;
8051
ce2cded5
L
8052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053 # PIC is the default for these OSes.
d7040cdb
SE
8054 ;;
8055
718a6fd8 8056 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8057 # This hack is so that the source file can tell whether it is being
8058 # built for inclusion in a dll (and should export symbols for example).
8059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060 # (--disable-auto-import) libraries
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8062 ;;
8063
8064 darwin* | rhapsody*)
ce2cded5
L
8065 # PIC is the default on this platform
8066 # Common symbols not allowed in MH_DYLIB files
8067 lt_prog_compiler_pic='-fno-common'
8068 ;;
8069
3725885a
RW
8070 haiku*)
8071 # PIC is the default for Haiku.
8072 # The "-static" flag exists, but is broken.
8073 lt_prog_compiler_static=
8074 ;;
8075
ce2cded5 8076 hpux*)
718a6fd8
SE
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
ce2cded5 8080 case $host_cpu in
718a6fd8 8081 hppa*64*)
ce2cded5 8082 # +Z the default
d7040cdb 8083 ;;
ce2cded5
L
8084 *)
8085 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8086 ;;
8087 esac
ce2cded5 8088 ;;
d7040cdb 8089
ce2cded5
L
8090 interix[3-9]*)
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8093 ;;
8094
ce2cded5
L
8095 msdosdjgpp*)
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8099 enable_shared=no
d7040cdb
SE
8100 ;;
8101
ce2cded5
L
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8106 ;;
8107
ce2cded5
L
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8111 fi
d7040cdb
SE
8112 ;;
8113
ce2cded5
L
8114 *)
8115 lt_prog_compiler_pic='-fPIC'
d7040cdb 8116 ;;
ce2cded5 8117 esac
3725885a
RW
8118
8119 case $cc_basename in
8120 nvcc*) # Cuda Compiler Driver 2.2
8121 lt_prog_compiler_wl='-Xlinker '
8122 lt_prog_compiler_pic='-Xcompiler -fPIC'
8123 ;;
8124 esac
ce2cded5
L
8125 else
8126 # PORTME Check for flag to pass linker flags through the system compiler.
8127 case $host_os in
8128 aix*)
8129 lt_prog_compiler_wl='-Wl,'
8130 if test "$host_cpu" = ia64; then
8131 # AIX 5 now supports IA64 processor
8132 lt_prog_compiler_static='-Bstatic'
d7040cdb 8133 else
ce2cded5 8134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8135 fi
ce2cded5 8136 ;;
d7040cdb 8137
718a6fd8 8138 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8142 ;;
8143
ce2cded5
L
8144 hpux9* | hpux10* | hpux11*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8147 # not for PA HP-UX.
8148 case $host_cpu in
8149 hppa*64*|ia64*)
8150 # +Z the default
8151 ;;
8152 *)
8153 lt_prog_compiler_pic='+Z'
8154 ;;
8155 esac
8156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8157 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8158 ;;
8159
ce2cded5
L
8160 irix5* | irix6* | nonstopux*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # PIC (with -KPIC) is the default.
8163 lt_prog_compiler_static='-non_shared'
8164 ;;
d7040cdb 8165
58e24671 8166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8167 case $cc_basename in
718a6fd8
SE
8168 # old Intel for x86_64 which still supported -KPIC.
8169 ecc*)
ce2cded5
L
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
718a6fd8
SE
8174 # icc used to be incompatible with GCC.
8175 # ICC 10 doesn't accept -KPIC any more.
8176 icc* | ifort*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-fPIC'
8179 lt_prog_compiler_static='-static'
8180 ;;
8181 # Lahey Fortran 8.1.
8182 lf95*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='--shared'
8185 lt_prog_compiler_static='--static'
8186 ;;
3725885a 8187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8188 # Portland Group compilers (*not* the Pentium gcc compiler,
8189 # which looks to be a dead project)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-fpic'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194 ccc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # All Alpha code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8198 ;;
3725885a
RW
8199 xl* | bgxl* | bgf* | mpixl*)
8200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-qpic'
8203 lt_prog_compiler_static='-qstaticlink'
8204 ;;
ce2cded5
L
8205 *)
8206 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8207 *Sun\ F* | *Sun*Fortran*)
8208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
3725885a 8211 lt_prog_compiler_wl=''
d7040cdb 8212 ;;
3725885a
RW
8213 *Sun\ C*)
8214 # Sun C 5.9
ce2cded5
L
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
3725885a 8217 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8218 ;;
8219 esac
ce2cded5
L
8220 ;;
8221 esac
d7040cdb
SE
8222 ;;
8223
ce2cded5
L
8224 newsos6)
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8227 ;;
8228
ce2cded5
L
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8233 ;;
8234
ce2cded5
L
8235 osf3* | osf4* | osf5*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # All OSF/1 code is PIC.
8238 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8239 ;;
8240
ce2cded5
L
8241 rdos*)
8242 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8243 ;;
8244
8245 solaris*)
ce2cded5
L
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 case $cc_basename in
f2c621e4 8249 f77* | f90* | f95*)
ce2cded5 8250 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8251 *)
ce2cded5 8252 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8253 esac
d7040cdb
SE
8254 ;;
8255
8256 sunos4*)
ce2cded5
L
8257 lt_prog_compiler_wl='-Qoption ld '
8258 lt_prog_compiler_pic='-PIC'
8259 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8260 ;;
8261
ce2cded5
L
8262 sysv4 | sysv4.2uw2* | sysv4.3*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8266 ;;
8267
8268 sysv4*MP*)
ce2cded5
L
8269 if test -d /usr/nec ;then
8270 lt_prog_compiler_pic='-Kconform_pic'
8271 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8272 fi
8273 ;;
8274
ce2cded5
L
8275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8279 ;;
8280
ce2cded5
L
8281 unicos*)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8284 ;;
8285
8286 uts4*)
ce2cded5
L
8287 lt_prog_compiler_pic='-pic'
8288 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8289 ;;
8290
8291 *)
ce2cded5 8292 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8293 ;;
8294 esac
d7040cdb
SE
8295 fi
8296
ce2cded5
L
8297case $host_os in
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8299 *djgpp*)
8300 lt_prog_compiler_pic=
8301 ;;
8302 *)
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 ;;
8305esac
f2c621e4
AS
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8307$as_echo "$lt_prog_compiler_pic" >&6; }
8308
8309
8310
8311
d7040cdb
SE
8312
8313
8314#
ce2cded5 8315# Check to make sure the PIC flag actually works.
d7040cdb 8316#
ce2cded5 8317if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
ce2cded5 8322else
718a6fd8 8323 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 # The option is referenced via a variable to avoid confusing sed.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
3725885a 8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8337 (eval "$lt_compile" 2>conftest.err)
8338 ac_status=$?
8339 cat conftest.err >&5
3725885a 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8341 if (exit $ac_status) && test -s "$ac_outfile"; then
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings other than the usual output.
3725885a 8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8347 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8348 fi
8349 fi
8350 $RM conftest*
d7040cdb 8351
ce2cded5 8352fi
81ecdfbb
RW
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8355
718a6fd8 8356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8357 case $lt_prog_compiler_pic in
8358 "" | " "*) ;;
8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8360 esac
8361else
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_can_build_shared=no
8364fi
d7040cdb 8365
ce2cded5 8366fi
d7040cdb
SE
8367
8368
8369
8370
8371
8372
ce2cded5
L
8373#
8374# Check to make sure the static flag actually works.
8375#
8376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
ce2cded5 8381else
718a6fd8 8382 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8383 save_LDFLAGS="$LDFLAGS"
8384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387 # The linker can only warn and ignore the option if not recognized
8388 # So say no if there are warnings
8389 if test -s conftest.err; then
8390 # Append any errors to the config.log.
8391 cat conftest.err 1>&5
3725885a 8392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8395 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8396 fi
8397 else
718a6fd8 8398 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8399 fi
8400 fi
718a6fd8 8401 $RM -r conftest*
ce2cded5 8402 LDFLAGS="$save_LDFLAGS"
d7040cdb 8403
ce2cded5 8404fi
81ecdfbb
RW
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8407
718a6fd8 8408if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8409 :
8410else
8411 lt_prog_compiler_static=
8412fi
d7040cdb
SE
8413
8414
8415
8416
8417
8418
8419
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
ce2cded5
L
8424else
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8427 mkdir conftest
8428 cd conftest
8429 mkdir out
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8431
ce2cded5
L
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
3725885a 8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8442 (eval "$lt_compile" 2>out/conftest.err)
8443 ac_status=$?
8444 cat out/conftest.err >&5
3725885a 8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447 then
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
3725885a 8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8454 fi
8455 fi
8456 chmod u+w . 2>&5
8457 $RM conftest*
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8462 cd ..
8463 $RM -r conftest
8464 $RM conftest*
d7040cdb 8465
ce2cded5 8466fi
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8469
8470
8471
8472
8473
8474
81ecdfbb
RW
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
ce2cded5
L
8479else
8480 lt_cv_prog_compiler_c_o=no
8481 $RM -r conftest 2>/dev/null
8482 mkdir conftest
8483 cd conftest
8484 mkdir out
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8486
ce2cded5
L
8487 lt_compiler_flag="-o out/conftest2.$ac_objext"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
3725885a 8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8497 (eval "$lt_compile" 2>out/conftest.err)
8498 ac_status=$?
8499 cat out/conftest.err >&5
3725885a 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8502 then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
3725885a 8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_c_o=yes
8509 fi
8510 fi
8511 chmod u+w . 2>&5
8512 $RM conftest*
8513 # SGI C++ compiler will create directory out/ii_files/ for
8514 # template instantiation
8515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516 $RM out/* && rmdir out
8517 cd ..
8518 $RM -r conftest
8519 $RM conftest*
d7040cdb 8520
ce2cded5 8521fi
81ecdfbb
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8524
8525
8526
8527
ce2cded5
L
8528hard_links="nottested"
8529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8533 hard_links=yes
8534 $RM conftest*
8535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536 touch conftest.a
8537 ln conftest.a conftest.b 2>&5 || hard_links=no
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540$as_echo "$hard_links" >&6; }
ce2cded5 8541 if test "$hard_links" = no; then
81ecdfbb
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8544 need_locks=warn
8545 fi
8546else
8547 need_locks=no
8548fi
d7040cdb
SE
8549
8550
8551
8552
8553
8554
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8557
ce2cded5
L
8558 runpath_var=
8559 allow_undefined_flag=
8560 always_export_symbols=no
8561 archive_cmds=
8562 archive_expsym_cmds=
8563 compiler_needs_object=no
8564 enable_shared_with_static_runtimes=no
8565 export_dynamic_flag_spec=
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567 hardcode_automatic=no
8568 hardcode_direct=no
8569 hardcode_direct_absolute=no
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld=
8572 hardcode_libdir_separator=
8573 hardcode_minus_L=no
8574 hardcode_shlibpath_var=unsupported
8575 inherit_rpath=no
8576 link_all_deplibs=unknown
8577 module_cmds=
8578 module_expsym_cmds=
8579 old_archive_from_new_cmds=
8580 old_archive_from_expsyms_cmds=
8581 thread_safe_flag_spec=
8582 whole_archive_flag_spec=
8583 # include_expsyms should be a list of space-separated symbols to be *always*
8584 # included in the symbol list
8585 include_expsyms=
8586 # exclude_expsyms can be an extended regexp of symbols to exclude
8587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589 # as well as any symbol that contains `d'.
718a6fd8 8590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592 # platforms (ab)use it in PIC code, but their linkers get confused if
8593 # the symbol is explicitly referenced. Since portable code cannot
8594 # rely on this symbol name, it's probably fine to never include it in
8595 # preloaded symbol tables.
718a6fd8 8596 # Exclude shared library initialization/finalization symbols.
ce2cded5 8597 extract_expsyms_cmds=
d7040cdb 8598
ce2cded5 8599 case $host_os in
718a6fd8 8600 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602 # When not using gcc, we currently assume that we are using
8603 # Microsoft Visual C++.
8604 if test "$GCC" != yes; then
8605 with_gnu_ld=no
8606 fi
8607 ;;
8608 interix*)
8609 # we just hope/assume this is gcc and not c89 (= MSVC++)
8610 with_gnu_ld=yes
8611 ;;
8612 openbsd*)
8613 with_gnu_ld=no
8614 ;;
8615 esac
d7040cdb 8616
ce2cded5 8617 ld_shlibs=yes
3725885a
RW
8618
8619 # On some targets, GNU ld is compatible enough with the native linker
8620 # that we're better off using the native interface for both.
8621 lt_use_gnu_ld_interface=no
ce2cded5 8622 if test "$with_gnu_ld" = yes; then
3725885a
RW
8623 case $host_os in
8624 aix*)
8625 # The AIX port of GNU ld has always aspired to compatibility
8626 # with the native linker. However, as the warning in the GNU ld
8627 # block says, versions before 2.19.5* couldn't really create working
8628 # shared libraries, regardless of the interface used.
8629 case `$LD -v 2>&1` in
8630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8633 *)
8634 lt_use_gnu_ld_interface=yes
8635 ;;
8636 esac
8637 ;;
8638 *)
8639 lt_use_gnu_ld_interface=yes
8640 ;;
8641 esac
8642 fi
8643
8644 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8645 # If archive_cmds runs LD, not CC, wlarc should be empty
8646 wlarc='${wl}'
d7040cdb 8647
ce2cded5
L
8648 # Set some defaults for GNU ld with shared library support. These
8649 # are reset later if shared libraries are not supported. Putting them
8650 # here allows them to be overridden if necessary.
8651 runpath_var=LD_RUN_PATH
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 export_dynamic_flag_spec='${wl}--export-dynamic'
8654 # ancient GNU ld didn't support --whole-archive et. al.
8655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657 else
8658 whole_archive_flag_spec=
8659 fi
8660 supports_anon_versioning=no
8661 case `$LD -v 2>&1` in
3725885a 8662 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666 *\ 2.11.*) ;; # other 2.11 versions
8667 *) supports_anon_versioning=yes ;;
8668 esac
d7040cdb 8669
ce2cded5
L
8670 # See if GNU ld supports shared libraries.
8671 case $host_os in
50e7d84b 8672 aix[3-9]*)
ce2cded5
L
8673 # On AIX/PPC, the GNU linker is very broken
8674 if test "$host_cpu" != ia64; then
8675 ld_shlibs=no
8676 cat <<_LT_EOF 1>&2
d7040cdb 8677
3725885a 8678*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8679*** to be unable to reliably create shared libraries on AIX.
8680*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8681*** really care for shared libraries, you may want to install binutils
8682*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8683*** You will then need to restart the configuration process.
d7040cdb 8684
ce2cded5
L
8685_LT_EOF
8686 fi
8687 ;;
d7040cdb 8688
ce2cded5 8689 amigaos*)
718a6fd8
SE
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8695 ;;
8696 m68k)
8697 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 ;;
8701 esac
ce2cded5 8702 ;;
d7040cdb 8703
ce2cded5
L
8704 beos*)
8705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706 allow_undefined_flag=unsupported
8707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708 # support --undefined. This deserves some investigation. FIXME
8709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 else
8711 ld_shlibs=no
8712 fi
8713 ;;
d7040cdb 8714
718a6fd8 8715 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717 # as there is no search path for DLLs.
8718 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8719 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8720 allow_undefined_flag=unsupported
8721 always_export_symbols=no
8722 enable_shared_with_static_runtimes=yes
f2c621e4 8723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8724
ce2cded5
L
8725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 # If the export-symbols file already is a .def file (1st line
8728 # is EXPORTS), use it as is; otherwise, prepend...
8729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730 cp $export_symbols $output_objdir/$soname.def;
8731 else
8732 echo EXPORTS > $output_objdir/$soname.def;
8733 cat $export_symbols >> $output_objdir/$soname.def;
8734 fi~
8735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736 else
8737 ld_shlibs=no
8738 fi
8739 ;;
d7040cdb 8740
3725885a
RW
8741 haiku*)
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 link_all_deplibs=yes
8744 ;;
8745
ce2cded5
L
8746 interix[3-9]*)
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 export_dynamic_flag_spec='${wl}-E'
8751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752 # Instead, shared libraries are loaded at an image base (0x10000000 by
8753 # default) and relocated if they conflict, which is a slow very memory
8754 # consuming and fragmenting process. To avoid this, we pick a random,
8755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8759 ;;
d7040cdb 8760
58e24671 8761 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8762 tmp_diet=no
8763 if test "$host_os" = linux-dietlibc; then
8764 case $cc_basename in
8765 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8766 esac
8767 fi
8768 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769 && test "$tmp_diet" = no
8770 then
6e733cce 8771 tmp_addflag=' $pic_flag'
718a6fd8 8772 tmp_sharedflag='-shared'
ce2cded5
L
8773 case $cc_basename,$host_cpu in
8774 pgcc*) # Portland Group C compiler
3725885a 8775 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8776 tmp_addflag=' $pic_flag'
8777 ;;
3725885a
RW
8778 pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group f77 and f90 compilers
8780 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8781 tmp_addflag=' $pic_flag -Mnomain' ;;
8782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8783 tmp_addflag=' -i_dynamic' ;;
8784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8785 tmp_addflag=' -i_dynamic -nofor_main' ;;
8786 ifc* | ifort*) # Intel Fortran compiler
8787 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8788 lf95*) # Lahey Fortran 8.1
8789 whole_archive_flag_spec=
8790 tmp_sharedflag='--shared' ;;
3725885a 8791 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8792 tmp_sharedflag='-qmkshrobj'
8793 tmp_addflag= ;;
3725885a
RW
8794 nvcc*) # Cuda Compiler Driver 2.2
8795 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8796 compiler_needs_object=yes
8797 ;;
ce2cded5
L
8798 esac
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ C*) # Sun C 5.9
3725885a 8801 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
8802 compiler_needs_object=yes
8803 tmp_sharedflag='-G' ;;
8804 *Sun\ F*) # Sun Fortran 8.3
8805 tmp_sharedflag='-G' ;;
ce2cded5
L
8806 esac
8807 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8808
ce2cded5
L
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814 fi
718a6fd8
SE
8815
8816 case $cc_basename in
3725885a 8817 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820 hardcode_libdir_flag_spec=
8821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8822 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8823 if test "x$supports_anon_versioning" = xyes; then
8824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8826 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8827 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8828 fi
8829 ;;
8830 esac
ce2cded5
L
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
d7040cdb 8835
ce2cded5
L
8836 netbsd*)
8837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8839 wlarc=
8840 else
f2c621e4
AS
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8843 fi
8844 ;;
d7040cdb 8845
ce2cded5
L
8846 solaris*)
8847 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8848 ld_shlibs=no
8849 cat <<_LT_EOF 1>&2
d7040cdb 8850
ce2cded5
L
8851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8852*** create shared libraries on Solaris systems. Therefore, libtool
8853*** is disabling shared libraries support. We urge you to upgrade GNU
8854*** binutils to release 2.9.1 or newer. Another option is to modify
8855*** your PATH or compiler configuration so that the native linker is
8856*** used, and then restart.
d7040cdb 8857
ce2cded5
L
8858_LT_EOF
8859 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
d7040cdb 8866
ce2cded5
L
8867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8868 case `$LD -v 2>&1` in
8869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8870 ld_shlibs=no
8871 cat <<_LT_EOF 1>&2
d7040cdb 8872
ce2cded5
L
8873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8874*** reliably create shared libraries on SCO systems. Therefore, libtool
8875*** is disabling shared libraries support. We urge you to upgrade GNU
8876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8877*** your PATH or compiler configuration so that the native linker is
8878*** used, and then restart.
d7040cdb 8879
ce2cded5
L
8880_LT_EOF
8881 ;;
8882 *)
8883 # For security reasons, it is highly recommended that you always
8884 # use absolute paths for naming shared libraries, and exclude the
8885 # DT_RUNPATH tag from executables and libraries. But doing so
8886 # requires that you compile everything twice, which is a pain.
8887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891 else
8892 ld_shlibs=no
8893 fi
8894 ;;
8895 esac
8896 ;;
d7040cdb 8897
ce2cded5
L
8898 sunos4*)
8899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900 wlarc=
8901 hardcode_direct=yes
8902 hardcode_shlibpath_var=no
8903 ;;
d7040cdb 8904
ce2cded5
L
8905 *)
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8909 else
8910 ld_shlibs=no
8911 fi
8912 ;;
8913 esac
d7040cdb 8914
ce2cded5
L
8915 if test "$ld_shlibs" = no; then
8916 runpath_var=
8917 hardcode_libdir_flag_spec=
8918 export_dynamic_flag_spec=
8919 whole_archive_flag_spec=
8920 fi
8921 else
8922 # PORTME fill in a description of your system's linker (not GNU ld)
8923 case $host_os in
8924 aix3*)
8925 allow_undefined_flag=unsupported
8926 always_export_symbols=yes
8927 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8928 # Note: this linker hardcodes the directories in LIBPATH if there
8929 # are no directories specified by -L.
8930 hardcode_minus_L=yes
8931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932 # Neither direct hardcoding nor static linking is supported with a
8933 # broken collect2.
8934 hardcode_direct=unsupported
8935 fi
8936 ;;
d7040cdb 8937
50e7d84b 8938 aix[4-9]*)
ce2cded5
L
8939 if test "$host_cpu" = ia64; then
8940 # On IA64, the linker does run time linking by default, so we don't
8941 # have to do anything special.
8942 aix_use_runtimelinking=no
8943 exp_sym_flag='-Bexport'
8944 no_entry_flag=""
8945 else
8946 # If we're using GNU nm, then we don't want the "-C" option.
8947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8948 # Also, AIX nm treats weak defined symbols like other global
8949 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8951 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5 8952 else
5c14705f 8953 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
8954 fi
8955 aix_use_runtimelinking=no
d7040cdb 8956
ce2cded5
L
8957 # Test if we are trying to use run time linking or normal
8958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8959 # need to do runtime linking.
50e7d84b 8960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8961 for ld_flag in $LDFLAGS; do
8962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8963 aix_use_runtimelinking=yes
8964 break
8965 fi
8966 done
8967 ;;
8968 esac
d7040cdb 8969
ce2cded5
L
8970 exp_sym_flag='-bexport'
8971 no_entry_flag='-bnoentry'
8972 fi
d7040cdb 8973
ce2cded5
L
8974 # When large executables or shared objects are built, AIX ld can
8975 # have problems creating the table of contents. If linking a library
8976 # or program results in "error TOC overflow" add -mminimal-toc to
8977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8979
ce2cded5
L
8980 archive_cmds=''
8981 hardcode_direct=yes
8982 hardcode_direct_absolute=yes
8983 hardcode_libdir_separator=':'
8984 link_all_deplibs=yes
8985 file_list_spec='${wl}-f,'
d7040cdb 8986
ce2cded5
L
8987 if test "$GCC" = yes; then
8988 case $host_os in aix4.[012]|aix4.[012].*)
8989 # We only want to do this on AIX 4.2 and lower, the check
8990 # below for broken collect2 doesn't work under 4.3+
8991 collect2name=`${CC} -print-prog-name=collect2`
8992 if test -f "$collect2name" &&
8993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8994 then
8995 # We have reworked collect2
8996 :
8997 else
8998 # We have old collect2
8999 hardcode_direct=unsupported
9000 # It fails to find uninstalled libraries when the uninstalled
9001 # path is not listed in the libpath. Setting hardcode_minus_L
9002 # to unsupported forces relinking
9003 hardcode_minus_L=yes
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_libdir_separator=
9006 fi
9007 ;;
9008 esac
9009 shared_flag='-shared'
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag="$shared_flag "'${wl}-G'
9012 fi
9013 else
9014 # not using gcc
9015 if test "$host_cpu" = ia64; then
9016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017 # chokes on -Wl,-G. The following line is correct:
9018 shared_flag='-G'
9019 else
9020 if test "$aix_use_runtimelinking" = yes; then
9021 shared_flag='${wl}-G'
9022 else
9023 shared_flag='${wl}-bM:SRE'
9024 fi
9025 fi
9026 fi
d7040cdb 9027
718a6fd8 9028 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9029 # It seems that -bexpall does not export symbols beginning with
9030 # underscore (_), so it is better to generate a list of symbols to export.
9031 always_export_symbols=yes
9032 if test "$aix_use_runtimelinking" = yes; then
9033 # Warning - without using the other runtime loading flags (-brtl),
9034 # -berok will link without error, but may produce a broken library.
9035 allow_undefined_flag='-berok'
9036 # Determine the default libpath from the value encoded in an
9037 # empty executable.
f2c621e4 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9039/* end confdefs.h. */
d7040cdb 9040
ce2cded5
L
9041int
9042main ()
9043{
d7040cdb 9044
ce2cded5
L
9045 ;
9046 return 0;
9047}
9048_ACEOF
81ecdfbb 9049if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9050
f2c621e4
AS
9051lt_aix_libpath_sed='
9052 /Import File Strings/,/^$/ {
9053 /^0/ {
9054 s/^0 *\(.*\)$/\1/
9055 p
9056 }
9057 }'
9058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059# Check for a 64-bit object if we didn't find anything.
9060if test -z "$aix_libpath"; then
9061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062fi
ce2cded5 9063fi
81ecdfbb
RW
9064rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9067
ce2cded5 9068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9069 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ce2cded5
L
9070 else
9071 if test "$host_cpu" = ia64; then
9072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073 allow_undefined_flag="-z nodefs"
9074 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9075 else
9076 # Determine the default libpath from the value encoded in an
9077 # empty executable.
f2c621e4 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9079/* end confdefs.h. */
d7040cdb 9080
ce2cded5
L
9081int
9082main ()
9083{
d7040cdb 9084
ce2cded5
L
9085 ;
9086 return 0;
9087}
9088_ACEOF
81ecdfbb 9089if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9090
f2c621e4
AS
9091lt_aix_libpath_sed='
9092 /Import File Strings/,/^$/ {
9093 /^0/ {
9094 s/^0 *\(.*\)$/\1/
9095 p
9096 }
9097 }'
9098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099# Check for a 64-bit object if we didn't find anything.
9100if test -z "$aix_libpath"; then
9101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102fi
ce2cded5 9103fi
81ecdfbb
RW
9104rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9107
ce2cded5
L
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116 else
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9119 fi
ce2cded5
L
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9123 fi
9124 fi
9125 ;;
d7040cdb 9126
ce2cded5 9127 amigaos*)
718a6fd8
SE
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9133 ;;
9134 m68k)
9135 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9138 ;;
9139 esac
ce2cded5 9140 ;;
d7040cdb 9141
ce2cded5
L
9142 bsdi[45]*)
9143 export_dynamic_flag_spec=-rdynamic
9144 ;;
d7040cdb 9145
718a6fd8 9146 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
f2c621e4
AS
9151 hardcode_libdir_flag_spec=' '
9152 allow_undefined_flag=unsupported
9153 # Tell ltmain to make .lib files, not .a files.
9154 libext=lib
9155 # Tell ltmain to make .dll files, not .so files.
9156 shrext_cmds=".dll"
9157 # FIXME: Setting linknames here is a bad hack.
9158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159 # The linker will automatically build a .lib file if we build a DLL.
9160 old_archive_from_new_cmds='true'
9161 # FIXME: Should let the user specify the lib program.
9162 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163 fix_srcfile_path='`cygpath -w "$srcfile"`'
9164 enable_shared_with_static_runtimes=yes
ce2cded5 9165 ;;
d7040cdb 9166
ce2cded5 9167 darwin* | rhapsody*)
d7040cdb 9168
718a6fd8
SE
9169
9170 archive_cmds_need_lc=no
9171 hardcode_direct=no
9172 hardcode_automatic=yes
9173 hardcode_shlibpath_var=unsupported
3725885a
RW
9174 if test "$lt_cv_ld_force_load" = "yes"; then
9175 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9176 else
9177 whole_archive_flag_spec=''
9178 fi
718a6fd8
SE
9179 link_all_deplibs=yes
9180 allow_undefined_flag="$_lt_dar_allow_undefined"
9181 case $cc_basename in
9182 ifort*) _lt_dar_can_shared=yes ;;
9183 *) _lt_dar_can_shared=$GCC ;;
9184 esac
9185 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9186 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9189 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9190 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9191
9192 else
9193 ld_shlibs=no
9194 fi
9195
ce2cded5 9196 ;;
d7040cdb 9197
ce2cded5
L
9198 dgux*)
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_shlibpath_var=no
9202 ;;
d7040cdb 9203
ce2cded5
L
9204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9205 # support. Future versions do this automatically, but an explicit c++rt0.o
9206 # does not break anything, and helps significantly (at the cost of a little
9207 # extra space).
9208 freebsd2.2*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9210 hardcode_libdir_flag_spec='-R$libdir'
9211 hardcode_direct=yes
9212 hardcode_shlibpath_var=no
9213 ;;
d7040cdb 9214
ce2cded5 9215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9216 freebsd2.*)
ce2cded5
L
9217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9218 hardcode_direct=yes
9219 hardcode_minus_L=yes
9220 hardcode_shlibpath_var=no
9221 ;;
d7040cdb 9222
ce2cded5
L
9223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9224 freebsd* | dragonfly*)
f2c621e4 9225 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9226 hardcode_libdir_flag_spec='-R$libdir'
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 ;;
d7040cdb 9230
ce2cded5
L
9231 hpux9*)
9232 if test "$GCC" = yes; then
f2c621e4 9233 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
ce2cded5
L
9234 else
9235 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9236 fi
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator=:
9239 hardcode_direct=yes
d7040cdb 9240
ce2cded5
L
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9244 export_dynamic_flag_spec='${wl}-E'
9245 ;;
d7040cdb 9246
ce2cded5 9247 hpux10*)
3725885a 9248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9250 else
9251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252 fi
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_flag_spec_ld='+b $libdir'
9256 hardcode_libdir_separator=:
9257 hardcode_direct=yes
9258 hardcode_direct_absolute=yes
9259 export_dynamic_flag_spec='${wl}-E'
9260 # hardcode_minus_L: Not really in the search PATH,
9261 # but as the default location of the library.
9262 hardcode_minus_L=yes
9263 fi
9264 ;;
d7040cdb 9265
ce2cded5 9266 hpux11*)
3725885a 9267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9268 case $host_cpu in
9269 hppa*64*)
9270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 ;;
9272 ia64*)
f2c621e4 9273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9274 ;;
9275 *)
f2c621e4 9276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9277 ;;
9278 esac
9279 else
9280 case $host_cpu in
9281 hppa*64*)
9282 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 ;;
9284 ia64*)
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286 ;;
9287 *)
3725885a
RW
9288
9289 # Older versions of the 11.00 compiler do not understand -b yet
9290 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9292$as_echo_n "checking if $CC understands -b... " >&6; }
9293if test "${lt_cv_prog_compiler__b+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295else
9296 lt_cv_prog_compiler__b=no
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -b"
9299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9301 # The linker can only warn and ignore the option if not recognized
9302 # So say no if there are warnings
9303 if test -s conftest.err; then
9304 # Append any errors to the config.log.
9305 cat conftest.err 1>&5
9306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308 if diff conftest.exp conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler__b=yes
9310 fi
9311 else
9312 lt_cv_prog_compiler__b=yes
9313 fi
9314 fi
9315 $RM -r conftest*
9316 LDFLAGS="$save_LDFLAGS"
9317
9318fi
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9320$as_echo "$lt_cv_prog_compiler__b" >&6; }
9321
9322if test x"$lt_cv_prog_compiler__b" = xyes; then
9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324else
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326fi
9327
ce2cded5
L
9328 ;;
9329 esac
9330 fi
9331 if test "$with_gnu_ld" = no; then
9332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9333 hardcode_libdir_separator=:
d7040cdb 9334
ce2cded5
L
9335 case $host_cpu in
9336 hppa*64*|ia64*)
9337 hardcode_direct=no
9338 hardcode_shlibpath_var=no
9339 ;;
9340 *)
9341 hardcode_direct=yes
9342 hardcode_direct_absolute=yes
9343 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9344
ce2cded5
L
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9348 ;;
9349 esac
9350 fi
9351 ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354 if test "$GCC" = yes; then
f2c621e4 9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9356 # Try to use the -exported_symbol ld option, if it does not
9357 # work, assume that -exports_file does not work either and
9358 # implicitly export all symbols.
f2c621e4
AS
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9362/* end confdefs.h. */
f2c621e4 9363int foo(void) {}
ce2cded5 9364_ACEOF
81ecdfbb 9365if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9367
d7040cdb 9368fi
81ecdfbb
RW
9369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9371 LDFLAGS="$save_LDFLAGS"
ce2cded5 9372 else
3725885a
RW
9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ce2cded5
L
9375 fi
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 inherit_rpath=yes
9380 link_all_deplibs=yes
9381 ;;
d7040cdb 9382
ce2cded5
L
9383 netbsd*)
9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9386 else
9387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9388 fi
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
d7040cdb 9393
ce2cded5
L
9394 newsos6)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=yes
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_shlibpath_var=no
9400 ;;
d7040cdb 9401
ce2cded5
L
9402 *nto* | *qnx*)
9403 ;;
d7040cdb 9404
ce2cded5 9405 openbsd*)
718a6fd8
SE
9406 if test -f /usr/libexec/ld.so; then
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9409 hardcode_direct_absolute=yes
9410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9414 export_dynamic_flag_spec='${wl}-E'
9415 else
9416 case $host_os in
9417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='-R$libdir'
9420 ;;
9421 *)
9422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424 ;;
9425 esac
9426 fi
9427 else
9428 ld_shlibs=no
d7040cdb
SE
9429 fi
9430 ;;
d7040cdb 9431
ce2cded5
L
9432 os2*)
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_minus_L=yes
9435 allow_undefined_flag=unsupported
3725885a 9436 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
ce2cded5
L
9437 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9438 ;;
d7040cdb 9439
ce2cded5
L
9440 osf3*)
9441 if test "$GCC" = yes; then
9442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9443 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9444 else
9445 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5
L
9447 fi
9448 archive_cmds_need_lc='no'
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 hardcode_libdir_separator=:
9451 ;;
d7040cdb 9452
ce2cded5
L
9453 osf4* | osf5*) # as osf3* with the addition of -msym flag
9454 if test "$GCC" = yes; then
9455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458 else
9459 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5 9461 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
3725885a 9462 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9463
ce2cded5
L
9464 # Both c and cxx compiler support -rpath directly
9465 hardcode_libdir_flag_spec='-rpath $libdir'
9466 fi
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_separator=:
9469 ;;
d7040cdb 9470
ce2cded5
L
9471 solaris*)
9472 no_undefined_flag=' -z defs'
9473 if test "$GCC" = yes; then
9474 wlarc='${wl}'
f2c621e4 9475 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9477 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ce2cded5
L
9478 else
9479 case `$CC -V 2>&1` in
9480 *"Compilers 5.0"*)
9481 wlarc=''
9482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9485 ;;
9486 *)
9487 wlarc='${wl}'
9488 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9490 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9491 ;;
9492 esac
9493 fi
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_shlibpath_var=no
9496 case $host_os in
9497 solaris2.[0-5] | solaris2.[0-5].*) ;;
9498 *)
9499 # The compiler driver will combine and reorder linker options,
9500 # but understands `-z linker_flag'. GCC discards it without `$wl',
9501 # but is careful enough not to reorder.
9502 # Supported since Solaris 2.6 (maybe 2.5.1?)
9503 if test "$GCC" = yes; then
9504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9505 else
9506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9507 fi
9508 ;;
9509 esac
9510 link_all_deplibs=yes
d7040cdb 9511 ;;
ce2cded5
L
9512
9513 sunos4*)
9514 if test "x$host_vendor" = xsequent; then
9515 # Use $CC to link under sequent, because it throws in some extra .o
9516 # files that make .init and .fini sections work.
9517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9518 else
ce2cded5 9519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9520 fi
ce2cded5
L
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_direct=yes
9523 hardcode_minus_L=yes
9524 hardcode_shlibpath_var=no
d7040cdb 9525 ;;
ce2cded5
L
9526
9527 sysv4)
9528 case $host_vendor in
9529 sni)
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes # is this really true???
9532 ;;
9533 siemens)
9534 ## LD is ld it makes a PLAMLIB
9535 ## CC just makes a GrossModule.
9536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9537 reload_cmds='$CC -r -o $output$reload_objs'
9538 hardcode_direct=no
9539 ;;
9540 motorola)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9543 ;;
9544 esac
9545 runpath_var='LD_RUN_PATH'
9546 hardcode_shlibpath_var=no
d7040cdb 9547 ;;
d7040cdb 9548
ce2cded5
L
9549 sysv4.3*)
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 export_dynamic_flag_spec='-Bexport'
9553 ;;
d7040cdb 9554
ce2cded5
L
9555 sysv4*MP*)
9556 if test -d /usr/nec; then
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_shlibpath_var=no
9559 runpath_var=LD_RUN_PATH
9560 hardcode_runpath_var=yes
9561 ld_shlibs=yes
9562 fi
9563 ;;
d7040cdb 9564
ce2cded5
L
9565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9566 no_undefined_flag='${wl}-z,text'
9567 archive_cmds_need_lc=no
9568 hardcode_shlibpath_var=no
9569 runpath_var='LD_RUN_PATH'
d7040cdb 9570
ce2cded5
L
9571 if test "$GCC" = yes; then
9572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 else
9575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 fi
9578 ;;
d7040cdb 9579
ce2cded5
L
9580 sysv5* | sco3.2v5* | sco5v6*)
9581 # Note: We can NOT use -z defs as we might desire, because we do not
9582 # link with -lc, and that would cause any symbols used from libc to
9583 # always be unresolved, which means just about no library would
9584 # ever link correctly. If we're not using GNU ld we use -z text
9585 # though, which does catch some bad symbols but isn't as heavy-handed
9586 # as -z defs.
9587 no_undefined_flag='${wl}-z,text'
9588 allow_undefined_flag='${wl}-z,nodefs'
9589 archive_cmds_need_lc=no
9590 hardcode_shlibpath_var=no
9591 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9592 hardcode_libdir_separator=':'
9593 link_all_deplibs=yes
9594 export_dynamic_flag_spec='${wl}-Bexport'
9595 runpath_var='LD_RUN_PATH'
d7040cdb 9596
ce2cded5
L
9597 if test "$GCC" = yes; then
9598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 else
9601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 fi
d7040cdb 9604 ;;
d7040cdb 9605
ce2cded5
L
9606 uts4*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9610 ;;
d7040cdb 9611
ce2cded5
L
9612 *)
9613 ld_shlibs=no
9614 ;;
9615 esac
9616
9617 if test x$host_vendor = xsni; then
9618 case $host in
9619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9620 export_dynamic_flag_spec='${wl}-Blargedynsym'
9621 ;;
9622 esac
d7040cdb 9623 fi
ce2cded5 9624 fi
d7040cdb 9625
81ecdfbb
RW
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9627$as_echo "$ld_shlibs" >&6; }
ce2cded5 9628test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9629
ce2cded5 9630with_gnu_ld=$with_gnu_ld
d7040cdb 9631
d7040cdb 9632
d7040cdb 9633
d7040cdb 9634
d7040cdb 9635
d7040cdb 9636
d7040cdb 9637
d7040cdb 9638
d7040cdb 9639
d7040cdb 9640
d7040cdb 9641
d7040cdb 9642
d7040cdb 9643
d7040cdb 9644
d7040cdb 9645
ce2cded5
L
9646#
9647# Do we need to explicitly link libc?
9648#
9649case "x$archive_cmds_need_lc" in
9650x|xyes)
9651 # Assume -lc should be added
9652 archive_cmds_need_lc=yes
d7040cdb 9653
ce2cded5
L
9654 if test "$enable_shared" = yes && test "$GCC" = yes; then
9655 case $archive_cmds in
9656 *'~'*)
9657 # FIXME: we may have to deal with multi-command sequences.
9658 ;;
9659 '$CC '*)
9660 # Test whether the compiler implicitly links with -lc since on some
9661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9662 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9664$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9665if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
39144654
RW
9667else
9668 $RM conftest*
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9670
81ecdfbb 9671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9672 (eval $ac_compile) 2>&5
9673 ac_status=$?
81ecdfbb
RW
9674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9676 soname=conftest
9677 lib=conftest
9678 libobjs=conftest.$ac_objext
9679 deplibs=
9680 wl=$lt_prog_compiler_wl
9681 pic_flag=$lt_prog_compiler_pic
9682 compiler_flags=-v
9683 linker_flags=-v
9684 verstring=
9685 output_objdir=.
9686 libname=conftest
9687 lt_save_allow_undefined_flag=$allow_undefined_flag
9688 allow_undefined_flag=
81ecdfbb 9689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9691 ac_status=$?
81ecdfbb
RW
9692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693 test $ac_status = 0; }
39144654
RW
9694 then
9695 lt_cv_archive_cmds_need_lc=no
9696 else
9697 lt_cv_archive_cmds_need_lc=yes
9698 fi
9699 allow_undefined_flag=$lt_save_allow_undefined_flag
9700 else
9701 cat conftest.err 1>&5
9702 fi
9703 $RM conftest*
9704
9705fi
81ecdfbb
RW
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9707$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9708 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9709 ;;
9710 esac
d7040cdb 9711 fi
d7040cdb 9712 ;;
ce2cded5 9713esac
d7040cdb 9714
d7040cdb 9715
d7040cdb 9716
d7040cdb 9717
d7040cdb 9718
d7040cdb 9719
d7040cdb 9720
d7040cdb
SE
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
d7040cdb 9808
d7040cdb 9809
d7040cdb
SE
9810
9811
9812
9813
9814
9815
d7040cdb 9816
d7040cdb 9817
d7040cdb 9818
d7040cdb 9819
d7040cdb 9820
d7040cdb 9821
d7040cdb 9822
d7040cdb 9823
d7040cdb 9824
d7040cdb 9825
d7040cdb 9826
d7040cdb 9827
d7040cdb 9828
d7040cdb 9829
d7040cdb 9830
d7040cdb 9831
d7040cdb 9832
d7040cdb 9833
d7040cdb 9834
d7040cdb 9835
d7040cdb 9836
d7040cdb 9837
d7040cdb 9838
ce2cded5
L
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
81ecdfbb
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9872$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9873
9874if test "$GCC" = yes; then
ce2cded5
L
9875 case $host_os in
9876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9877 *) lt_awk_arg="/^libraries:/" ;;
9878 esac
3725885a
RW
9879 case $host_os in
9880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9881 *) lt_sed_strip_eq="s,=/,/,g" ;;
9882 esac
9883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9884 case $lt_search_path_spec in
9885 *\;*)
ce2cded5
L
9886 # if the path contains ";" then we assume it to be the separator
9887 # otherwise default to the standard path separator (i.e. ":") - it is
9888 # assumed that no part of a normal pathname contains ";" but that should
9889 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9891 ;;
9892 *)
9893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9894 ;;
9895 esac
ce2cded5
L
9896 # Ok, now we have the path, separated by spaces, we can step through it
9897 # and add multilib dir if necessary.
9898 lt_tmp_lt_search_path_spec=
9899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9900 for lt_sys_path in $lt_search_path_spec; do
9901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9903 else
9904 test -d "$lt_sys_path" && \
9905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9906 fi
9907 done
3725885a 9908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9909BEGIN {RS=" "; FS="/|\n";} {
9910 lt_foo="";
9911 lt_count=0;
9912 for (lt_i = NF; lt_i > 0; lt_i--) {
9913 if ($lt_i != "" && $lt_i != ".") {
9914 if ($lt_i == "..") {
9915 lt_count++;
9916 } else {
9917 if (lt_count == 0) {
9918 lt_foo="/" $lt_i lt_foo;
9919 } else {
9920 lt_count--;
9921 }
9922 }
9923 }
9924 }
9925 if (lt_foo != "") { lt_freq[lt_foo]++; }
9926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9927}'`
3725885a
RW
9928 # AWK program above erroneously prepends '/' to C:/dos/paths
9929 # for these hosts.
9930 case $host_os in
9931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9933 esac
9934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9935else
ce2cded5
L
9936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9937fi
9938library_names_spec=
9939libname_spec='lib$name'
9940soname_spec=
9941shrext_cmds=".so"
9942postinstall_cmds=
9943postuninstall_cmds=
9944finish_cmds=
9945finish_eval=
9946shlibpath_var=
9947shlibpath_overrides_runpath=unknown
9948version_type=none
9949dynamic_linker="$host_os ld.so"
9950sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951need_lib_prefix=unknown
9952hardcode_into_libs=no
9953
9954# when you set need_version to no, make sure it does not cause -set_version
9955# flags to be left without arguments
9956need_version=unknown
9957
9958case $host_os in
9959aix3*)
9960 version_type=linux
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9962 shlibpath_var=LIBPATH
9963
9964 # AIX 3 has no versioning support, so we append a major version to the name.
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 ;;
9967
50e7d84b 9968aix[4-9]*)
ce2cded5
L
9969 version_type=linux
9970 need_lib_prefix=no
9971 need_version=no
9972 hardcode_into_libs=yes
9973 if test "$host_cpu" = ia64; then
9974 # AIX 5 supports IA64
9975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 else
9978 # With GCC up to 2.95.x, collect2 would create an import file
9979 # for dependence libraries. The import file would start with
9980 # the line `#! .'. This would cause the generated library to
9981 # depend on `.', always an invalid library. This was fixed in
9982 # development snapshots of GCC prior to 3.0.
9983 case $host_os in
9984 aix4 | aix4.[01] | aix4.[01].*)
9985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9986 echo ' yes '
9987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9988 :
9989 else
9990 can_build_shared=no
9991 fi
9992 ;;
9993 esac
9994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9995 # soname into executable. Probably we can add versioning support to
9996 # collect2, so additional links can be useful in future.
9997 if test "$aix_use_runtimelinking" = yes; then
9998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9999 # instead of lib<name>.a to let people know that these are not
10000 # typical AIX shared libraries.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 else
10003 # We preserve .a as extension for shared libraries through AIX4.2
10004 # and later when we are not doing run time linking.
10005 library_names_spec='${libname}${release}.a $libname.a'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 fi
10008 shlibpath_var=LIBPATH
10009 fi
10010 ;;
10011
10012amigaos*)
718a6fd8
SE
10013 case $host_cpu in
10014 powerpc)
10015 # Since July 2007 AmigaOS4 officially supports .so libraries.
10016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 ;;
10019 m68k)
ce2cded5
L
10020 library_names_spec='$libname.ixlibrary $libname.a'
10021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
718a6fd8
SE
10023 ;;
10024 esac
ce2cded5
L
10025 ;;
10026
10027beos*)
10028 library_names_spec='${libname}${shared_ext}'
10029 dynamic_linker="$host_os ld.so"
10030 shlibpath_var=LIBRARY_PATH
10031 ;;
10032
10033bsdi[45]*)
10034 version_type=linux
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10042 # the default ld.so.conf also contains /usr/contrib/lib and
10043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10044 # libtool to hard-code these into programs
10045 ;;
10046
718a6fd8 10047cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10048 version_type=windows
10049 shrext_cmds=".dll"
10050 need_version=no
10051 need_lib_prefix=no
10052
f2c621e4
AS
10053 case $GCC,$host_os in
10054 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10055 library_names_spec='$libname.dll.a'
10056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057 postinstall_cmds='base_file=`basename \${file}`~
10058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059 dldir=$destdir/`dirname \$dlpath`~
10060 test -d \$dldir || mkdir -p \$dldir~
10061 $install_prog $dir/$dlname \$dldir/$dlname~
10062 chmod a+x \$dldir/$dlname~
10063 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10065 fi'
10066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067 dlpath=$dir/\$dldll~
10068 $RM \$dlpath'
10069 shlibpath_overrides_runpath=yes
10070
10071 case $host_os in
10072 cygwin*)
10073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10075
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10077 ;;
718a6fd8 10078 mingw* | cegcc*)
ce2cded5
L
10079 # MinGW DLLs use traditional 'lib' prefix
10080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10081 ;;
10082 pw32*)
10083 # pw32 DLLs use 'pw' prefix rather than 'lib'
10084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085 ;;
10086 esac
10087 ;;
10088
10089 *)
10090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10091 ;;
10092 esac
f2c621e4 10093 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10094 # FIXME: first we should search . and the directory the executable is in
10095 shlibpath_var=PATH
10096 ;;
10097
10098darwin* | rhapsody*)
10099 dynamic_linker="$host_os dyld"
10100 version_type=darwin
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104 soname_spec='${libname}${release}${major}$shared_ext'
10105 shlibpath_overrides_runpath=yes
10106 shlibpath_var=DYLD_LIBRARY_PATH
10107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10108
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10111 ;;
10112
10113dgux*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 ;;
10121
ce2cded5
L
10122freebsd* | dragonfly*)
10123 # DragonFly does not have aout. When/if they implement a new
10124 # versioning mechanism, adjust this.
10125 if test -x /usr/bin/objformat; then
10126 objformat=`/usr/bin/objformat`
10127 else
10128 case $host_os in
6d2920c8 10129 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10130 *) objformat=elf ;;
10131 esac
10132 fi
10133 version_type=freebsd-$objformat
10134 case $version_type in
10135 freebsd-elf*)
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137 need_version=no
10138 need_lib_prefix=no
10139 ;;
10140 freebsd-*)
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142 need_version=yes
10143 ;;
10144 esac
10145 shlibpath_var=LD_LIBRARY_PATH
10146 case $host_os in
6d2920c8 10147 freebsd2.*)
ce2cded5
L
10148 shlibpath_overrides_runpath=yes
10149 ;;
10150 freebsd3.[01]* | freebsdelf3.[01]*)
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 ;;
10159 *) # from 4.6 on, and DragonFly
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10162 ;;
10163 esac
10164 ;;
10165
10166gnu*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 hardcode_into_libs=yes
10174 ;;
10175
3725885a
RW
10176haiku*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 dynamic_linker="$host_os runtime_loader"
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
f2c621e4 10185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10186 hardcode_into_libs=yes
10187 ;;
10188
ce2cded5
L
10189hpux9* | hpux10* | hpux11*)
10190 # Give a soname corresponding to the major version so that dld.sl refuses to
10191 # link against other versions.
10192 version_type=sunos
10193 need_lib_prefix=no
10194 need_version=no
10195 case $host_cpu in
10196 ia64*)
10197 shrext_cmds='.so'
10198 hardcode_into_libs=yes
10199 dynamic_linker="$host_os dld.so"
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 if test "X$HPUX_IA64_MODE" = X32; then
10205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206 else
10207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208 fi
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210 ;;
10211 hppa*64*)
10212 shrext_cmds='.sl'
10213 hardcode_into_libs=yes
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
10222 *)
10223 shrext_cmds='.sl'
10224 dynamic_linker="$host_os dld.sl"
10225 shlibpath_var=SHLIB_PATH
10226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 ;;
10230 esac
3725885a 10231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10232 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10233 # or fails outright, so override atomically:
10234 install_override_mode=555
ce2cded5
L
10235 ;;
10236
10237interix[3-9]*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 ;;
10248
10249irix5* | irix6* | nonstopux*)
10250 case $host_os in
10251 nonstopux*) version_type=nonstopux ;;
10252 *)
10253 if test "$lt_cv_prog_gnu_ld" = yes; then
10254 version_type=linux
10255 else
10256 version_type=irix
10257 fi ;;
10258 esac
10259 need_lib_prefix=no
10260 need_version=no
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 case $host_os in
10264 irix5* | nonstopux*)
10265 libsuff= shlibsuff=
10266 ;;
10267 *)
10268 case $LD in # libtool.m4 will add one of these switches to LD
10269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270 libsuff= shlibsuff= libmagic=32-bit;;
10271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272 libsuff=32 shlibsuff=N32 libmagic=N32;;
10273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275 *) libsuff= shlibsuff= libmagic=never-match;;
10276 esac
10277 ;;
10278 esac
10279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283 hardcode_into_libs=yes
10284 ;;
d7040cdb 10285
ce2cded5
L
10286# No shared lib support for Linux oldld, aout, or coff.
10287linux*oldld* | linux*aout* | linux*coff*)
10288 dynamic_linker=no
10289 ;;
10290
10291# This must be Linux ELF.
58e24671 10292linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
39144654 10301
ce2cded5 10302 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10303 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
39144654
RW
10305else
10306 lt_cv_shlibpath_overrides_runpath=no
10307 save_LDFLAGS=$LDFLAGS
10308 save_libdir=$libdir
10309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10312/* end confdefs.h. */
10313
d7040cdb
SE
10314int
10315main ()
10316{
ce2cded5 10317
d7040cdb
SE
10318 ;
10319 return 0;
10320}
10321_ACEOF
81ecdfbb
RW
10322if ac_fn_c_try_link "$LINENO"; then :
10323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10324 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10325fi
ce2cded5 10326fi
81ecdfbb
RW
10327rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10329 LDFLAGS=$save_LDFLAGS
10330 libdir=$save_libdir
10331
10332fi
10333
10334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10335
10336 # This implies no fast_install, which is unacceptable.
10337 # Some rework will be needed to allow for fast_install
10338 # before this can be enabled.
10339 hardcode_into_libs=yes
10340
10341 # Append ld.so.conf contents to the search path
10342 if test -f /etc/ld.so.conf; then
3725885a 10343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
f2c621e4 10344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10345 fi
10346
10347 # We used to test for /lib/ld.so.1 and disable shared libraries on
10348 # powerpc, because MkLinux only supported shared libraries with the
10349 # GNU dynamic linker. Since this was broken with cross compilers,
10350 # most powerpc-linux boxes support dynamic linking these days and
10351 # people can always --disable-shared, the test was removed, and we
10352 # assume the GNU/Linux dynamic linker is in use.
10353 dynamic_linker='GNU/Linux ld.so'
10354 ;;
10355
10356netbsd*)
10357 version_type=sunos
10358 need_lib_prefix=no
10359 need_version=no
10360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363 dynamic_linker='NetBSD (a.out) ld.so'
10364 else
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='NetBSD ld.elf_so'
10368 fi
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 ;;
10373
10374newsos6)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 ;;
10380
10381*nto* | *qnx*)
10382 version_type=qnx
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 dynamic_linker='ldqnx.so'
10391 ;;
10392
10393openbsd*)
10394 version_type=sunos
10395 sys_lib_dlsearch_path_spec="/usr/lib"
10396 need_lib_prefix=no
10397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10398 case $host_os in
10399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10400 *) need_version=no ;;
10401 esac
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406 case $host_os in
10407 openbsd2.[89] | openbsd2.[89].*)
10408 shlibpath_overrides_runpath=no
10409 ;;
10410 *)
10411 shlibpath_overrides_runpath=yes
10412 ;;
10413 esac
10414 else
10415 shlibpath_overrides_runpath=yes
10416 fi
10417 ;;
10418
10419os2*)
10420 libname_spec='$name'
10421 shrext_cmds=".dll"
10422 need_lib_prefix=no
10423 library_names_spec='$libname${shared_ext} $libname.a'
10424 dynamic_linker='OS/2 ld.exe'
10425 shlibpath_var=LIBPATH
10426 ;;
10427
10428osf3* | osf4* | osf5*)
10429 version_type=osf
10430 need_lib_prefix=no
10431 need_version=no
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437 ;;
10438
10439rdos*)
10440 dynamic_linker=no
10441 ;;
10442
10443solaris*)
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 # ldd complains unless libraries are executable
10453 postinstall_cmds='chmod +x $lib'
10454 ;;
10455
10456sunos4*)
10457 version_type=sunos
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 if test "$with_gnu_ld" = yes; then
10463 need_lib_prefix=no
10464 fi
10465 need_version=yes
10466 ;;
10467
10468sysv4 | sysv4.3*)
10469 version_type=linux
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_vendor in
10474 sni)
10475 shlibpath_overrides_runpath=no
10476 need_lib_prefix=no
10477 runpath_var=LD_RUN_PATH
10478 ;;
10479 siemens)
10480 need_lib_prefix=no
10481 ;;
10482 motorola)
10483 need_lib_prefix=no
10484 need_version=no
10485 shlibpath_overrides_runpath=no
10486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487 ;;
10488 esac
10489 ;;
10490
10491sysv4*MP*)
10492 if test -d /usr/nec ;then
10493 version_type=linux
10494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495 soname_spec='$libname${shared_ext}.$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 fi
10498 ;;
10499
10500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501 version_type=freebsd-elf
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 if test "$with_gnu_ld" = yes; then
10510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511 else
10512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513 case $host_os in
10514 sco3.2v5*)
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516 ;;
10517 esac
10518 fi
10519 sys_lib_dlsearch_path_spec='/usr/lib'
10520 ;;
10521
10522tpf*)
10523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
718a6fd8 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530 hardcode_into_libs=yes
10531 ;;
d7040cdb 10532
ce2cded5
L
10533uts4*)
10534 version_type=linux
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 ;;
d7040cdb 10539
ce2cded5
L
10540*)
10541 dynamic_linker=no
10542 ;;
10543esac
81ecdfbb
RW
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10546test "$dynamic_linker" = no && can_build_shared=no
10547
10548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549if test "$GCC" = yes; then
10550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10551fi
d7040cdb 10552
718a6fd8
SE
10553if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10555fi
10556if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558fi
10559
d7040cdb 10560
d7040cdb
SE
10561
10562
d7040cdb
SE
10563
10564
d7040cdb
SE
10565
10566
d7040cdb
SE
10567
10568
d7040cdb
SE
10569
10570
d7040cdb 10571
d7040cdb 10572
d7040cdb 10573
d7040cdb 10574
d7040cdb 10575
d7040cdb 10576
d7040cdb 10577
d7040cdb 10578
d7040cdb 10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb
SE
10585
10586
d7040cdb 10587
d7040cdb 10588
d7040cdb 10589
d7040cdb 10590
d7040cdb 10591
d7040cdb 10592
d7040cdb 10593
d7040cdb 10594
d7040cdb 10595
d7040cdb
SE
10596
10597
d7040cdb 10598
d7040cdb 10599
d7040cdb 10600
d7040cdb
SE
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
d7040cdb
SE
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
d7040cdb 10630
d7040cdb 10631
d7040cdb 10632
d7040cdb 10633
d7040cdb
SE
10634
10635
10636
10637
ce2cded5
L
10638
10639
3725885a
RW
10640
10641
10642
10643
10644
ce2cded5
L
10645
10646
10647
10648
10649
10650
81ecdfbb
RW
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10653hardcode_action=
10654if test -n "$hardcode_libdir_flag_spec" ||
10655 test -n "$runpath_var" ||
10656 test "X$hardcode_automatic" = "Xyes" ; then
10657
10658 # We can hardcode non-existent directories.
10659 if test "$hardcode_direct" != no &&
10660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661 # have to relink, otherwise we might link with an installed library
10662 # when we should be linking with a yet-to-be-installed one
10663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664 test "$hardcode_minus_L" != no; then
10665 # Linking always hardcodes the temporary library directory.
10666 hardcode_action=relink
10667 else
10668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669 hardcode_action=immediate
10670 fi
10671else
10672 # We cannot hardcode anything, or else we can only hardcode existing
10673 # directories.
10674 hardcode_action=unsupported
10675fi
81ecdfbb
RW
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10678
10679if test "$hardcode_action" = relink ||
10680 test "$inherit_rpath" = yes; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
d7040cdb 10687fi
d7040cdb 10688
d7040cdb
SE
10689
10690
10691
10692
10693
ce2cded5
L
10694 if test "x$enable_dlopen" != xyes; then
10695 enable_dlopen=unknown
10696 enable_dlopen_self=unknown
10697 enable_dlopen_self_static=unknown
10698else
10699 lt_cv_dlopen=no
10700 lt_cv_dlopen_libs=
10701
10702 case $host_os in
10703 beos*)
10704 lt_cv_dlopen="load_add_on"
10705 lt_cv_dlopen_libs=
10706 lt_cv_dlopen_self=yes
10707 ;;
d7040cdb 10708
718a6fd8 10709 mingw* | pw32* | cegcc*)
ce2cded5
L
10710 lt_cv_dlopen="LoadLibrary"
10711 lt_cv_dlopen_libs=
10712 ;;
d7040cdb 10713
ce2cded5
L
10714 cygwin*)
10715 lt_cv_dlopen="dlopen"
10716 lt_cv_dlopen_libs=
10717 ;;
d7040cdb 10718
ce2cded5
L
10719 darwin*)
10720 # if libdl is installed we need to link against it
81ecdfbb
RW
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
ce2cded5
L
10725else
10726 ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl $LIBS"
81ecdfbb 10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10729/* end confdefs.h. */
d7040cdb 10730
81ecdfbb
RW
10731/* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
ce2cded5
L
10734#ifdef __cplusplus
10735extern "C"
10736#endif
ce2cded5
L
10737char dlopen ();
10738int
10739main ()
10740{
81ecdfbb 10741return dlopen ();
ce2cded5
L
10742 ;
10743 return 0;
10744}
10745_ACEOF
81ecdfbb 10746if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10747 ac_cv_lib_dl_dlopen=yes
10748else
81ecdfbb 10749 ac_cv_lib_dl_dlopen=no
ce2cded5 10750fi
81ecdfbb
RW
10751rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10753LIBS=$ac_check_lib_save_LIBS
10754fi
81ecdfbb
RW
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759else
d7040cdb 10760
ce2cded5
L
10761 lt_cv_dlopen="dyld"
10762 lt_cv_dlopen_libs=
10763 lt_cv_dlopen_self=yes
d7040cdb 10764
ce2cded5 10765fi
d7040cdb 10766
ce2cded5 10767 ;;
d7040cdb 10768
ce2cded5 10769 *)
81ecdfbb
RW
10770 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10772 lt_cv_dlopen="shl_load"
10773else
81ecdfbb
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775$as_echo_n "checking for shl_load in -ldld... " >&6; }
10776if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
ce2cded5
L
10778else
10779 ac_check_lib_save_LIBS=$LIBS
10780LIBS="-ldld $LIBS"
81ecdfbb 10781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10782/* end confdefs.h. */
d7040cdb 10783
81ecdfbb
RW
10784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
ce2cded5
L
10787#ifdef __cplusplus
10788extern "C"
10789#endif
ce2cded5
L
10790char shl_load ();
10791int
10792main ()
10793{
81ecdfbb 10794return shl_load ();
ce2cded5
L
10795 ;
10796 return 0;
10797}
d7040cdb 10798_ACEOF
81ecdfbb 10799if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10800 ac_cv_lib_dld_shl_load=yes
10801else
81ecdfbb 10802 ac_cv_lib_dld_shl_load=no
d7040cdb 10803fi
81ecdfbb
RW
10804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10806LIBS=$ac_check_lib_save_LIBS
10807fi
81ecdfbb
RW
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10812else
81ecdfbb
RW
10813 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10815 lt_cv_dlopen="dlopen"
10816else
81ecdfbb
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818$as_echo_n "checking for dlopen in -ldl... " >&6; }
10819if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
d7040cdb 10821else
ce2cded5
L
10822 ac_check_lib_save_LIBS=$LIBS
10823LIBS="-ldl $LIBS"
81ecdfbb 10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10825/* end confdefs.h. */
d7040cdb 10826
81ecdfbb
RW
10827/* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
ce2cded5
L
10830#ifdef __cplusplus
10831extern "C"
10832#endif
ce2cded5 10833char dlopen ();
d7040cdb
SE
10834int
10835main ()
10836{
81ecdfbb 10837return dlopen ();
d7040cdb
SE
10838 ;
10839 return 0;
10840}
10841_ACEOF
81ecdfbb 10842if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10843 ac_cv_lib_dl_dlopen=yes
10844else
81ecdfbb 10845 ac_cv_lib_dl_dlopen=no
ce2cded5 10846fi
81ecdfbb
RW
10847rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10849LIBS=$ac_check_lib_save_LIBS
10850fi
81ecdfbb
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855else
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
ce2cded5
L
10860else
10861 ac_check_lib_save_LIBS=$LIBS
10862LIBS="-lsvld $LIBS"
81ecdfbb 10863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10864/* end confdefs.h. */
d7040cdb 10865
81ecdfbb
RW
10866/* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
ce2cded5
L
10869#ifdef __cplusplus
10870extern "C"
10871#endif
ce2cded5 10872char dlopen ();
d7040cdb
SE
10873int
10874main ()
10875{
81ecdfbb 10876return dlopen ();
d7040cdb
SE
10877 ;
10878 return 0;
10879}
10880_ACEOF
81ecdfbb 10881if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10882 ac_cv_lib_svld_dlopen=yes
d7040cdb 10883else
81ecdfbb 10884 ac_cv_lib_svld_dlopen=no
d7040cdb 10885fi
81ecdfbb
RW
10886rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10888LIBS=$ac_check_lib_save_LIBS
10889fi
81ecdfbb
RW
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894else
81ecdfbb
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896$as_echo_n "checking for dld_link in -ldld... " >&6; }
10897if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
d7040cdb 10899else
ce2cded5
L
10900 ac_check_lib_save_LIBS=$LIBS
10901LIBS="-ldld $LIBS"
81ecdfbb 10902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10903/* end confdefs.h. */
ce2cded5 10904
81ecdfbb
RW
10905/* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
ce2cded5
L
10908#ifdef __cplusplus
10909extern "C"
10910#endif
ce2cded5 10911char dld_link ();
d7040cdb
SE
10912int
10913main ()
10914{
81ecdfbb 10915return dld_link ();
d7040cdb
SE
10916 ;
10917 return 0;
10918}
10919_ACEOF
81ecdfbb 10920if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10921 ac_cv_lib_dld_dld_link=yes
10922else
81ecdfbb 10923 ac_cv_lib_dld_dld_link=no
d7040cdb 10924fi
81ecdfbb
RW
10925rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10927LIBS=$ac_check_lib_save_LIBS
10928fi
81ecdfbb
RW
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950 ;;
10951 esac
10952
10953 if test "x$lt_cv_dlopen" != xno; then
10954 enable_dlopen=yes
d7040cdb 10955 else
ce2cded5 10956 enable_dlopen=no
d7040cdb 10957 fi
ce2cded5
L
10958
10959 case $lt_cv_dlopen in
10960 dlopen)
10961 save_CPPFLAGS="$CPPFLAGS"
10962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10963
10964 save_LDFLAGS="$LDFLAGS"
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10966
10967 save_LIBS="$LIBS"
10968 LIBS="$lt_cv_dlopen_libs $LIBS"
10969
81ecdfbb
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972if test "${lt_cv_dlopen_self+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
d7040cdb 10974else
ce2cded5
L
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self=cross
10977else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
b8871f35 10981#line 10981 "configure"
ce2cded5
L
10982#include "confdefs.h"
10983
10984#if HAVE_DLFCN_H
10985#include <dlfcn.h>
10986#endif
10987
10988#include <stdio.h>
10989
10990#ifdef RTLD_GLOBAL
10991# define LT_DLGLOBAL RTLD_GLOBAL
10992#else
10993# ifdef DL_GLOBAL
10994# define LT_DLGLOBAL DL_GLOBAL
10995# else
10996# define LT_DLGLOBAL 0
10997# endif
10998#endif
10999
11000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002#ifndef LT_DLLAZY_OR_NOW
11003# ifdef RTLD_LAZY
11004# define LT_DLLAZY_OR_NOW RTLD_LAZY
11005# else
11006# ifdef DL_LAZY
11007# define LT_DLLAZY_OR_NOW DL_LAZY
11008# else
11009# ifdef RTLD_NOW
11010# define LT_DLLAZY_OR_NOW RTLD_NOW
11011# else
11012# ifdef DL_NOW
11013# define LT_DLLAZY_OR_NOW DL_NOW
11014# else
11015# define LT_DLLAZY_OR_NOW 0
11016# endif
11017# endif
11018# endif
11019# endif
11020#endif
11021
3725885a
RW
11022/* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11025void fnord () __attribute__((visibility("default")));
3725885a
RW
11026#endif
11027
f2c621e4 11028void fnord () { int i=42; }
ce2cded5
L
11029int main ()
11030{
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11033
11034 if (self)
11035 {
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11037 else
11038 {
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11041 }
ce2cded5
L
11042 /* dlclose (self); */
11043 }
11044 else
11045 puts (dlerror ());
11046
718a6fd8 11047 return status;
ce2cded5
L
11048}
11049_LT_EOF
81ecdfbb 11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
81ecdfbb
RW
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11055 (./conftest; exit; ) >&5 2>/dev/null
11056 lt_status=$?
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061 esac
11062 else :
11063 # compilation failed
11064 lt_cv_dlopen_self=no
11065 fi
11066fi
11067rm -fr conftest*
11068
d7040cdb
SE
11069
11070fi
81ecdfbb
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11073
11074 if test "x$lt_cv_dlopen_self" = xyes; then
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
d7040cdb 11080else
ce2cded5
L
11081 if test "$cross_compiling" = yes; then :
11082 lt_cv_dlopen_self_static=cross
11083else
11084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085 lt_status=$lt_dlunknown
11086 cat > conftest.$ac_ext <<_LT_EOF
b8871f35 11087#line 11087 "configure"
ce2cded5
L
11088#include "confdefs.h"
11089
11090#if HAVE_DLFCN_H
11091#include <dlfcn.h>
11092#endif
11093
11094#include <stdio.h>
11095
11096#ifdef RTLD_GLOBAL
11097# define LT_DLGLOBAL RTLD_GLOBAL
11098#else
11099# ifdef DL_GLOBAL
11100# define LT_DLGLOBAL DL_GLOBAL
11101# else
11102# define LT_DLGLOBAL 0
11103# endif
11104#endif
11105
11106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107 find out it does not work in some platform. */
11108#ifndef LT_DLLAZY_OR_NOW
11109# ifdef RTLD_LAZY
11110# define LT_DLLAZY_OR_NOW RTLD_LAZY
11111# else
11112# ifdef DL_LAZY
11113# define LT_DLLAZY_OR_NOW DL_LAZY
11114# else
11115# ifdef RTLD_NOW
11116# define LT_DLLAZY_OR_NOW RTLD_NOW
11117# else
11118# ifdef DL_NOW
11119# define LT_DLLAZY_OR_NOW DL_NOW
11120# else
11121# define LT_DLLAZY_OR_NOW 0
11122# endif
11123# endif
11124# endif
11125# endif
11126#endif
11127
3725885a
RW
11128/* When -fvisbility=hidden is used, assume the code has been annotated
11129 correspondingly for the symbols needed. */
11130#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11131void fnord () __attribute__((visibility("default")));
3725885a
RW
11132#endif
11133
f2c621e4 11134void fnord () { int i=42; }
ce2cded5 11135int main ()
d7040cdb 11136{
ce2cded5
L
11137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138 int status = $lt_dlunknown;
11139
11140 if (self)
11141 {
11142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11143 else
11144 {
11145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146 else puts (dlerror ());
11147 }
ce2cded5
L
11148 /* dlclose (self); */
11149 }
11150 else
11151 puts (dlerror ());
11152
718a6fd8 11153 return status;
d7040cdb 11154}
ce2cded5 11155_LT_EOF
81ecdfbb 11156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11157 (eval $ac_link) 2>&5
11158 ac_status=$?
81ecdfbb
RW
11159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11161 (./conftest; exit; ) >&5 2>/dev/null
11162 lt_status=$?
11163 case x$lt_status in
11164 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11167 esac
11168 else :
11169 # compilation failed
11170 lt_cv_dlopen_self_static=no
11171 fi
d7040cdb 11172fi
ce2cded5
L
11173rm -fr conftest*
11174
11175
d7040cdb 11176fi
81ecdfbb
RW
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11179 fi
11180
11181 CPPFLAGS="$save_CPPFLAGS"
11182 LDFLAGS="$save_LDFLAGS"
11183 LIBS="$save_LIBS"
11184 ;;
11185 esac
11186
11187 case $lt_cv_dlopen_self in
11188 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189 *) enable_dlopen_self=unknown ;;
11190 esac
11191
11192 case $lt_cv_dlopen_self_static in
11193 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194 *) enable_dlopen_self_static=unknown ;;
11195 esac
d7040cdb 11196fi
d7040cdb 11197
d7040cdb
SE
11198
11199
d7040cdb 11200
d7040cdb 11201
ce2cded5
L
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214striplib=
11215old_striplib=
81ecdfbb
RW
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11218if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222$as_echo "yes" >&6; }
ce2cded5
L
11223else
11224# FIXME - insert some real tests, host_os isn't really good enough
11225 case $host_os in
11226 darwin*)
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 old_striplib="$STRIP -S"
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231$as_echo "yes" >&6; }
ce2cded5 11232 else
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
d7040cdb 11235 fi
ce2cded5
L
11236 ;;
11237 *)
81ecdfbb
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239$as_echo "no" >&6; }
ce2cded5 11240 ;;
d7040cdb 11241 esac
d7040cdb
SE
11242fi
11243
d7040cdb 11244
d7040cdb 11245
d7040cdb 11246
d7040cdb 11247
d7040cdb 11248
d7040cdb 11249
d7040cdb 11250
d7040cdb 11251
d7040cdb 11252
d7040cdb 11253
d7040cdb 11254
ce2cded5 11255 # Report which library types will actually be built
81ecdfbb
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259$as_echo "$can_build_shared" >&6; }
d7040cdb 11260
81ecdfbb
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11263 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11264
ce2cded5
L
11265 # On AIX, shared libraries and static libraries use the same namespace, and
11266 # are all built from PIC.
11267 case $host_os in
11268 aix3*)
11269 test "$enable_shared" = yes && enable_static=no
11270 if test -n "$RANLIB"; then
11271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272 postinstall_cmds='$RANLIB $lib'
11273 fi
11274 ;;
d7040cdb 11275
50e7d84b 11276 aix[4-9]*)
ce2cded5
L
11277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278 test "$enable_shared" = yes && enable_static=no
11279 fi
11280 ;;
11281 esac
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283$as_echo "$enable_shared" >&6; }
ce2cded5 11284
81ecdfbb
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11287 # Make sure either enable_shared or enable_static is yes.
11288 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290$as_echo "$enable_static" >&6; }
d7040cdb 11291
d7040cdb 11292
d7040cdb 11293
d7040cdb 11294
ce2cded5
L
11295fi
11296ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11301
ce2cded5 11302CC="$lt_save_CC"
d7040cdb 11303
d7040cdb 11304
d7040cdb 11305
d7040cdb 11306
d7040cdb 11307
d7040cdb 11308
d7040cdb 11309
d7040cdb 11310
d7040cdb 11311
d7040cdb
SE
11312
11313
d7040cdb
SE
11314
11315
81ecdfbb 11316 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11317
11318
d7040cdb 11319
d7040cdb 11320
ce2cded5 11321# Only expand once:
d7040cdb 11322
d7040cdb 11323
d7040cdb 11324
b879806f
AM
11325# The tests for host and target for $enable_largefile require
11326# canonical names.
11327
11328
11329
11330# As the $enable_largefile decision depends on --enable-plugins we must set it
11331# even in directories otherwise not depending on the $plugins option.
11332
11333
11334 maybe_plugins=no
11335 for ac_header in dlfcn.h
11336do :
11337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11338"
11339if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341#define HAVE_DLFCN_H 1
11342_ACEOF
11343 maybe_plugins=yes
11344fi
11345
11346done
11347
11348 for ac_header in windows.h
11349do :
11350 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11351"
11352if test "x$ac_cv_header_windows_h" = x""yes; then :
11353 cat >>confdefs.h <<_ACEOF
11354#define HAVE_WINDOWS_H 1
11355_ACEOF
11356 maybe_plugins=yes
11357fi
11358
11359done
11360
11361
11362 # Check whether --enable-plugins was given.
11363if test "${enable_plugins+set}" = set; then :
11364 enableval=$enable_plugins; case "${enableval}" in
11365 no) plugins=no ;;
11366 *) plugins=yes
11367 if test "$maybe_plugins" != "yes" ; then
11368 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11369 fi ;;
11370 esac
11371else
11372 plugins=$maybe_plugins
11373
11374fi
11375
2974be62
AM
11376 if test "$plugins" = "yes"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11378$as_echo_n "checking for library containing dlopen... " >&6; }
11379if test "${ac_cv_search_dlopen+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 ac_func_search_save_LIBS=$LIBS
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h. */
11385
11386/* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389#ifdef __cplusplus
11390extern "C"
11391#endif
11392char dlopen ();
11393int
11394main ()
11395{
11396return dlopen ();
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401for ac_lib in '' dl; do
11402 if test -z "$ac_lib"; then
11403 ac_res="none required"
11404 else
11405 ac_res=-l$ac_lib
11406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11407 fi
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_search_dlopen=$ac_res
11410fi
11411rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext
11413 if test "${ac_cv_search_dlopen+set}" = set; then :
11414 break
11415fi
11416done
11417if test "${ac_cv_search_dlopen+set}" = set; then :
11418
11419else
11420 ac_cv_search_dlopen=no
11421fi
11422rm conftest.$ac_ext
11423LIBS=$ac_func_search_save_LIBS
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11426$as_echo "$ac_cv_search_dlopen" >&6; }
11427ac_res=$ac_cv_search_dlopen
11428if test "$ac_res" != no; then :
11429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11430
11431fi
11432
11433 fi
b879806f
AM
11434
11435
11436case "${host}" in
11437 sparc-*-solaris*|i[3-7]86-*-solaris*)
11438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11439 # are mutually exclusive; and without procfs support, the bfd/ elf module
11440 # cannot provide certain routines such as elfcore_write_prpsinfo
11441 # or elfcore_write_prstatus. So unless the user explicitly requested
11442 # large-file support through the --enable-largefile switch, disable
11443 # large-file support in favor of procfs support.
11444 test "${target}" = "${host}" -a "x$plugins" = xno \
11445 && : ${enable_largefile="no"}
11446 ;;
11447esac
11448
11449# Check whether --enable-largefile was given.
11450if test "${enable_largefile+set}" = set; then :
11451 enableval=$enable_largefile;
11452fi
11453
11454if test "$enable_largefile" != no; then
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11457$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11458if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460else
11461 ac_cv_sys_largefile_CC=no
11462 if test "$GCC" != yes; then
11463 ac_save_CC=$CC
11464 while :; do
11465 # IRIX 6.2 and later do not support large files by default,
11466 # so use the C compiler's -n32 option if that helps.
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h. */
11469#include <sys/types.h>
11470 /* Check that off_t can represent 2**63 - 1 correctly.
11471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472 since some C++ compilers masquerading as C compilers
11473 incorrectly reject 9223372036854775807. */
11474#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476 && LARGE_OFF_T % 2147483647 == 1)
11477 ? 1 : -1];
11478int
11479main ()
11480{
11481
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486 if ac_fn_c_try_compile "$LINENO"; then :
11487 break
11488fi
11489rm -f core conftest.err conftest.$ac_objext
11490 CC="$CC -n32"
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_sys_largefile_CC=' -n32'; break
11493fi
11494rm -f core conftest.err conftest.$ac_objext
11495 break
11496 done
11497 CC=$ac_save_CC
11498 rm -f conftest.$ac_ext
11499 fi
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11502$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11503 if test "$ac_cv_sys_largefile_CC" != no; then
11504 CC=$CC$ac_cv_sys_largefile_CC
11505 fi
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11508$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11509if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511else
11512 while :; do
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h. */
11515#include <sys/types.h>
11516 /* Check that off_t can represent 2**63 - 1 correctly.
11517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518 since some C++ compilers masquerading as C compilers
11519 incorrectly reject 9223372036854775807. */
11520#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522 && LARGE_OFF_T % 2147483647 == 1)
11523 ? 1 : -1];
11524int
11525main ()
11526{
11527
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532if ac_fn_c_try_compile "$LINENO"; then :
11533 ac_cv_sys_file_offset_bits=no; break
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h. */
11538#define _FILE_OFFSET_BITS 64
11539#include <sys/types.h>
11540 /* Check that off_t can represent 2**63 - 1 correctly.
11541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11542 since some C++ compilers masquerading as C compilers
11543 incorrectly reject 9223372036854775807. */
11544#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11546 && LARGE_OFF_T % 2147483647 == 1)
11547 ? 1 : -1];
11548int
11549main ()
11550{
11551
11552 ;
11553 return 0;
11554}
11555_ACEOF
11556if ac_fn_c_try_compile "$LINENO"; then :
11557 ac_cv_sys_file_offset_bits=64; break
11558fi
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 ac_cv_sys_file_offset_bits=unknown
11561 break
11562done
11563fi
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11565$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11566case $ac_cv_sys_file_offset_bits in #(
11567 no | unknown) ;;
11568 *)
11569cat >>confdefs.h <<_ACEOF
11570#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11571_ACEOF
11572;;
11573esac
11574rm -rf conftest*
11575 if test $ac_cv_sys_file_offset_bits = unknown; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11577$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11578if test "${ac_cv_sys_large_files+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 while :; do
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584#include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587 since some C++ compilers masquerading as C compilers
11588 incorrectly reject 9223372036854775807. */
11589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591 && LARGE_OFF_T % 2147483647 == 1)
11592 ? 1 : -1];
11593int
11594main ()
11595{
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_sys_large_files=no; break
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606/* end confdefs.h. */
11607#define _LARGE_FILES 1
11608#include <sys/types.h>
11609 /* Check that off_t can represent 2**63 - 1 correctly.
11610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11611 since some C++ compilers masquerading as C compilers
11612 incorrectly reject 9223372036854775807. */
11613#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11615 && LARGE_OFF_T % 2147483647 == 1)
11616 ? 1 : -1];
11617int
11618main ()
11619{
11620
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_compile "$LINENO"; then :
11626 ac_cv_sys_large_files=1; break
11627fi
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 ac_cv_sys_large_files=unknown
11630 break
11631done
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11634$as_echo "$ac_cv_sys_large_files" >&6; }
11635case $ac_cv_sys_large_files in #(
11636 no | unknown) ;;
11637 *)
11638cat >>confdefs.h <<_ACEOF
11639#define _LARGE_FILES $ac_cv_sys_large_files
11640_ACEOF
11641;;
11642esac
11643rm -rf conftest*
11644 fi
11645fi
11646
11647
11648
81ecdfbb
RW
11649# Check whether --enable-targets was given.
11650if test "${enable_targets+set}" = set; then :
11651 enableval=$enable_targets; case "${enableval}" in
11652 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11653 ;;
11654 no) enable_targets= ;;
11655 *) enable_targets=$enableval ;;
11656esac
81ecdfbb
RW
11657fi
11658
ce2cded5
L
11659ac_checking=yes
11660if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11661 ac_checking=
11662fi
81ecdfbb
RW
11663# Check whether --enable-checking was given.
11664if test "${enable_checking+set}" = set; then :
11665 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11666 no|none) ac_checking= ;;
11667 *) ac_checking=yes ;;
11668esac
81ecdfbb
RW
11669fi
11670if test x$ac_checking != x ; then
d7040cdb 11671
81ecdfbb 11672$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11673
ce2cded5 11674fi
d7040cdb 11675
6c3bc0f8
NC
11676# PR gas/19109
11677# Decide the default method for compressing debug sections.
11678ac_default_compressed_debug_sections=unset
11679# Provide a configure time option to override our default.
11680# Check whether --enable-compressed_debug_sections was given.
11681if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 11682 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 11683 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 11684 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
11685 *) ac_default_compressed_debug_sections=unset ;;
11686esac
11687fi
11688
0cb4071e
L
11689# PR gas/19520
11690# Decide if x86 assembler should generate relax relocations.
11691ac_default_x86_relax_relocations=unset
11692# Provide a configure time option to override our default.
11693# Check whether --enable-x86_relax_relocations was given.
11694if test "${enable_x86_relax_relocations+set}" = set; then :
11695 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11696 no) ac_default_x86_relax_relocations=0 ;;
11697esac
11698fi
11699
b8871f35
L
11700# Decide if ELF assembler should generate common symbols with the
11701# STT_COMMON type.
11702ac_default_elf_stt_common=unset
11703# Provide a configure time option to override our default.
11704# Check whether --enable-elf_stt_common was given.
11705if test "${enable_elf_stt_common+set}" = set; then :
11706 enableval=$enable_elf_stt_common; case "${enableval}" in
11707 yes) ac_default_elf_stt_common=1 ;;
11708esac
11709fi
11710
ce2cded5 11711using_cgen=no
d7040cdb 11712
d7040cdb 11713
270c9937
JB
11714# Set the 'development' global.
11715. $srcdir/../bfd/development.sh
11716
397841b5
AM
11717GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719/* end confdefs.h. */
11720__GNUC__
11721_ACEOF
11722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11723 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11724
11725else
11726 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11727fi
11728rm -f conftest*
11729
d7040cdb 11730
81ecdfbb
RW
11731# Check whether --enable-werror was given.
11732if test "${enable_werror+set}" = set; then :
11733 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11734 yes | y) ERROR_ON_WARNING="yes" ;;
11735 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11736 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11737 esac
81ecdfbb
RW
11738fi
11739
d7040cdb 11740
397841b5 11741# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11742case "${host}" in
11743 *-*-mingw32*)
11744 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11745 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11746 fi
11747 ;;
11748 *) ;;
11749esac
11750
270c9937
JB
11751# Enable -Werror by default when using gcc. Turn it off for releases.
11752if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
11753 ERROR_ON_WARNING=yes
11754fi
11755
11756NO_WERROR=
11757if test "${ERROR_ON_WARNING}" = yes ; then
e1fa0163 11758 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror -Wstack-usage=262144"
ce2cded5
L
11759 NO_WERROR="-Wno-error"
11760fi
11761
11762if test "${GCC}" = yes ; then
11763 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11764fi
11765
81ecdfbb
RW
11766# Check whether --enable-build-warnings was given.
11767if test "${enable_build_warnings+set}" = set; then :
11768 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11769 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11770 no) if test "${GCC}" = yes ; then
11771 WARN_CFLAGS="-w"
11772 fi;;
11773 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11774 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11775 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11776 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11777 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11778esac
81ecdfbb
RW
11779fi
11780
d7040cdb 11781
ce2cded5
L
11782if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11783 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11784fi
d7040cdb 11785
d7040cdb 11786
d7040cdb 11787
d7040cdb 11788
d7040cdb 11789
ce2cded5 11790# Generate a header file
81ecdfbb 11791ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11792
d7040cdb 11793
df7b86aa
NC
11794# PR 14072
11795
11796
ce2cded5
L
11797# If we are on a DOS filesystem, we must use gdb.ini rather than
11798# .gdbinit.
11799case "${host}" in
11800 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11801 GDBINIT="gdb.ini"
81ecdfbb 11802 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11803
ce2cded5
L
11804 ;;
11805 *)
11806 GDBINIT=".gdbinit"
81ecdfbb 11807 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11808
ce2cded5
L
11809 ;;
11810esac
d7040cdb 11811
d7040cdb 11812
ce2cded5 11813#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11815$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11816if test "${ac_cv_c_bigendian+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818else
11819 ac_cv_c_bigendian=unknown
11820 # See if we're dealing with a universal compiler.
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822/* end confdefs.h. */
11823#ifndef __APPLE_CC__
11824 not a universal capable compiler
11825 #endif
11826 typedef int dummy;
11827
11828_ACEOF
11829if ac_fn_c_try_compile "$LINENO"; then :
11830
11831 # Check for potential -arch flags. It is not universal unless
11832 # there are at least two -arch flags with different values.
11833 ac_arch=
11834 ac_prev=
11835 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11836 if test -n "$ac_prev"; then
11837 case $ac_word in
11838 i?86 | x86_64 | ppc | ppc64)
11839 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11840 ac_arch=$ac_word
11841 else
11842 ac_cv_c_bigendian=universal
11843 break
11844 fi
11845 ;;
11846 esac
11847 ac_prev=
11848 elif test "x$ac_word" = "x-arch"; then
11849 ac_prev=arch
11850 fi
11851 done
11852fi
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 if test $ac_cv_c_bigendian = unknown; then
11855 # See if sys/param.h defines the BYTE_ORDER macro.
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11857/* end confdefs.h. */
11858#include <sys/types.h>
81ecdfbb 11859 #include <sys/param.h>
d7040cdb 11860
ce2cded5
L
11861int
11862main ()
11863{
81ecdfbb
RW
11864#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11865 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11866 && LITTLE_ENDIAN)
11867 bogus endian macros
11868 #endif
d7040cdb 11869
ce2cded5
L
11870 ;
11871 return 0;
11872}
11873_ACEOF
81ecdfbb 11874if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11875 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11877/* end confdefs.h. */
11878#include <sys/types.h>
81ecdfbb 11879 #include <sys/param.h>
d7040cdb 11880
ce2cded5
L
11881int
11882main ()
11883{
11884#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11885 not big endian
11886 #endif
d7040cdb 11887
ce2cded5
L
11888 ;
11889 return 0;
11890}
11891_ACEOF
81ecdfbb 11892if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11893 ac_cv_c_bigendian=yes
11894else
81ecdfbb 11895 ac_cv_c_bigendian=no
ce2cded5 11896fi
81ecdfbb
RW
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898fi
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901 if test $ac_cv_c_bigendian = unknown; then
11902 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904/* end confdefs.h. */
11905#include <limits.h>
d7040cdb 11906
81ecdfbb
RW
11907int
11908main ()
11909{
11910#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11911 bogus endian macros
11912 #endif
11913
11914 ;
11915 return 0;
11916}
ce2cded5 11917_ACEOF
81ecdfbb
RW
11918if ac_fn_c_try_compile "$LINENO"; then :
11919 # It does; now see whether it defined to _BIG_ENDIAN or not.
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11921/* end confdefs.h. */
81ecdfbb
RW
11922#include <limits.h>
11923
ce2cded5
L
11924int
11925main ()
11926{
81ecdfbb
RW
11927#ifndef _BIG_ENDIAN
11928 not big endian
11929 #endif
11930
ce2cded5
L
11931 ;
11932 return 0;
11933}
11934_ACEOF
81ecdfbb 11935if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11936 ac_cv_c_bigendian=yes
81ecdfbb
RW
11937else
11938 ac_cv_c_bigendian=no
d7040cdb 11939fi
81ecdfbb 11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11941fi
81ecdfbb
RW
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 fi
11944 if test $ac_cv_c_bigendian = unknown; then
11945 # Compile a test program.
11946 if test "$cross_compiling" = yes; then :
11947 # Try to guess by grepping values from an object file.
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949/* end confdefs.h. */
11950short int ascii_mm[] =
11951 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11952 short int ascii_ii[] =
11953 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11954 int use_ascii (int i) {
11955 return ascii_mm[i] + ascii_ii[i];
11956 }
11957 short int ebcdic_ii[] =
11958 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11959 short int ebcdic_mm[] =
11960 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11961 int use_ebcdic (int i) {
11962 return ebcdic_mm[i] + ebcdic_ii[i];
11963 }
11964 extern int foo;
d7040cdb 11965
81ecdfbb
RW
11966int
11967main ()
11968{
11969return use_ascii (foo) == use_ebcdic (foo);
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974if ac_fn_c_try_compile "$LINENO"; then :
11975 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11976 ac_cv_c_bigendian=yes
11977 fi
11978 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11979 if test "$ac_cv_c_bigendian" = unknown; then
11980 ac_cv_c_bigendian=no
11981 else
11982 # finding both strings is unlikely to happen, but who knows?
11983 ac_cv_c_bigendian=unknown
11984 fi
11985 fi
ce2cded5 11986fi
81ecdfbb 11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11988else
81ecdfbb 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11990/* end confdefs.h. */
81ecdfbb 11991$ac_includes_default
ce2cded5
L
11992int
11993main ()
11994{
81ecdfbb
RW
11995
11996 /* Are we little or big endian? From Harbison&Steele. */
11997 union
11998 {
11999 long int l;
12000 char c[sizeof (long int)];
12001 } u;
12002 u.l = 1;
12003 return u.c[sizeof (long int) - 1] == 1;
12004
12005 ;
12006 return 0;
ce2cded5 12007}
d7040cdb 12008_ACEOF
81ecdfbb 12009if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12010 ac_cv_c_bigendian=no
12011else
81ecdfbb 12012 ac_cv_c_bigendian=yes
d7040cdb 12013fi
81ecdfbb
RW
12014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12015 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12016fi
81ecdfbb
RW
12017
12018 fi
ce2cded5 12019fi
81ecdfbb
RW
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12021$as_echo "$ac_cv_c_bigendian" >&6; }
12022 case $ac_cv_c_bigendian in #(
12023 yes)
12024 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12025;; #(
12026 no)
12027 ;; #(
12028 universal)
d7040cdb 12029
81ecdfbb
RW
12030$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12031
12032 ;; #(
12033 *)
12034 as_fn_error "unknown endianness
12035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12036 esac
d7040cdb 12037
d7040cdb 12038
ce2cded5 12039te_file=generic
d7040cdb 12040
ce2cded5
L
12041# Makefile target for installing gas in $(tooldir)/bin.
12042install_tooldir=install-exec-tooldir
d7040cdb 12043
ce2cded5
L
12044canon_targets=""
12045all_targets=no
12046if test -n "$enable_targets" ; then
12047 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12048 if test $t = "all"; then
12049 all_targets=yes
12050 continue
12051 fi
12052 result=`$ac_config_sub $t 2>/dev/null`
12053 if test -n "$result" ; then
12054 canon_targets="$canon_targets $result"
12055# else
12056# # Permit "all", etc. We don't support it yet though.
12057# canon_targets="$canon_targets $t"
12058 fi
12059 done
12060 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12061_gas_uniq_newlist=""
12062for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12063 case $_gas_uniq_i in
12064 _gas_uniq_dummy) ;;
12065 *) case " $_gas_uniq_newlist " in
12066 *" $_gas_uniq_i "*) ;;
12067 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12068 esac ;;
12069 esac
12070done
ce2cded5 12071canon_targets=$_gas_uniq_newlist
d7040cdb 12072
ce2cded5
L
12073fi
12074
12075emulations=""
12076
12077for this_target in $target $canon_targets ; do
12078
12079 targ=${this_target}
12080 . ${srcdir}/configure.tgt
12081
12082 case ${target_cpu} in
12083 crisv32)
12084
12085cat >>confdefs.h <<_ACEOF
12086#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12087_ACEOF
ce2cded5
L
12088
12089 ;;
12090 esac
12091
12092 if test ${this_target} = $target ; then
12093 target_cpu_type=${cpu_type}
12094 elif test ${target_cpu_type} != ${cpu_type} ; then
12095 continue
12096 fi
12097
12098 generic_target=${cpu_type}-${target_vendor}-${target_os}
12099 case ${generic_target} in
12100 i386-*-sco3.2v5*)
12101 if test ${this_target} = $target; then
12102
81ecdfbb 12103$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12104
12105 fi
12106 ;;
12107
12108 i386-*-msdosdjgpp* \
12109 | i386-*-go32* \
12110 | i386-go32-rtems*)
12111
81ecdfbb 12112$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12113
12114 ;;
12115
0cb4071e
L
12116 i386-*-solaris2 \
12117 | x86_64-*-solaris2 \
12118 | i386-*-solaris2.[0-9] \
12119 | i386-*-solaris2.1[01] \
12120 | x86_64-*-solaris2.1[01])
12121 if test ${this_target} = $target \
12122 && test ${ac_default_x86_relax_relocations} = unset; then
12123 ac_default_x86_relax_relocations=0
12124 fi
12125 ;;
12126
ce2cded5 12127 i860-*-*)
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12129$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12130 ;;
12131
7ba29e2a
NC
12132 microblaze*)
12133 ;;
12134
e5231592 12135 ppc-*-aix[5-9].*)
ce2cded5 12136
81ecdfbb 12137$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12138
ce2cded5
L
12139 ;;
12140 ppc-*-solaris*)
12141 if test ${this_target} = $target; then
12142
81ecdfbb 12143$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12144
12145 fi
12146 if test x${endian} = xbig; then
81ecdfbb 12147 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12148 fi
12149 ;;
12150
12151 sh*-*-symbianelf*)
12152
81ecdfbb 12153$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12154
12155 ;;
d7040cdb 12156 esac
d7040cdb 12157
ce2cded5
L
12158 if test ${this_target} = $target ; then
12159 endian_def=
12160 if test x${endian} = xbig; then
12161 endian_def=1
12162 elif test x${endian} = xlittle; then
12163 endian_def=0
12164 fi
12165 if test x${endian_def} != x; then
12166
12167cat >>confdefs.h <<_ACEOF
12168#define TARGET_BYTES_BIG_ENDIAN $endian_def
12169_ACEOF
12170
12171 fi
12172 fi
12173
12174# Other random stuff.
12175
12176 case ${cpu_type} in
12177 mips)
12178 # Set mips_cpu to the name of the default CPU.
12179 case ${target_cpu} in
12180 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12181 mips_cpu=from-abi
12182 ;;
12183 mipsisa32 | mipsisa32el)
12184 mips_cpu=mips32
12185 ;;
12186 mipsisa32r2 | mipsisa32r2el)
12187 mips_cpu=mips32r2
12188 ;;
ae52f483
AB
12189 mipsisa32r3 | mipsisa32r3el)
12190 mips_cpu=mips32r3
12191 ;;
12192 mipsisa32r5 | mipsisa32r5el)
12193 mips_cpu=mips32r5
12194 ;;
7361da2c
AB
12195 mipsisa32r6 | mipsisa32r6el)
12196 mips_cpu=mips32r6
12197 ;;
ce2cded5
L
12198 mipsisa64 | mipsisa64el)
12199 mips_cpu=mips64
12200 ;;
12201 mipsisa64r2 | mipsisa64r2el)
12202 mips_cpu=mips64r2
12203 ;;
ae52f483
AB
12204 mipsisa64r3 | mipsisa64r3el)
12205 mips_cpu=mips64r3
12206 ;;
12207 mipsisa64r5 | mipsisa64r5el)
12208 mips_cpu=mips64r5
12209 ;;
7361da2c
AB
12210 mipsisa64r6 | mipsisa64r6el)
12211 mips_cpu=mips64r6
12212 ;;
ce2cded5
L
12213 mipstx39 | mipstx39el)
12214 mips_cpu=r3900
12215 ;;
12216 mips64vr | mips64vrel)
12217 mips_cpu=vr4100
12218 ;;
12219 mipsisa32r2* | mipsisa64r2*)
12220 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12221 ;;
7361da2c
AB
12222 mipsisa32r6* | mipsisa64r6*)
12223 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12224 ;;
ce2cded5
L
12225 mips64* | mipsisa64* | mipsisa32*)
12226 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12227 ;;
e407c74b
NC
12228 mips*)
12229 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12230 ;;
ce2cded5 12231 *)
81ecdfbb 12232 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12233 ;;
12234 esac
12235 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12236 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12237 case ${target} in
12238 *-*-irix*)
12239 use_e_mips_abi_o32=0
12240 ;;
12241 *)
12242 use_e_mips_abi_o32=1
12243 ;;
12244 esac
12245 # Decide whether to generate 32-bit or 64-bit code by default.
12246 # Used to resolve -march=from-abi when an embedded ABI is selected.
12247 case ${target} in
12248 mips64*-*-* | mipsisa64*-*-*)
12249 mips_default_64bit=1
12250 ;;
12251 *)
12252 mips_default_64bit=0
12253 ;;
12254 esac
12255 # Decide which ABI to target by default.
12256 case ${target} in
aeffff67 12257 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12258 mips_default_abi=N32_ABI
12259 ;;
aeffff67 12260 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12261 mips_default_abi=O32_ABI
12262 ;;
12263 mips64*-openbsd*)
12264 mips_default_abi=N64_ABI
12265 ;;
12266 *)
12267 mips_default_abi=NO_ABI
12268 ;;
12269 esac
12270
12271cat >>confdefs.h <<_ACEOF
12272#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12273_ACEOF
d7040cdb
SE
12274
12275
12276cat >>confdefs.h <<_ACEOF
ce2cded5 12277#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12278_ACEOF
12279
12280
12281cat >>confdefs.h <<_ACEOF
ce2cded5 12282#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12283_ACEOF
12284
12285
ce2cded5
L
12286cat >>confdefs.h <<_ACEOF
12287#define MIPS_DEFAULT_ABI $mips_default_abi
12288_ACEOF
d7040cdb 12289
ce2cded5
L
12290 ;;
12291 esac
d7040cdb 12292
ce2cded5
L
12293 # Do we need the opcodes library?
12294 case ${cpu_type} in
12295 vax | tic30)
12296 ;;
d7040cdb 12297
ce2cded5
L
12298 *)
12299 need_opcodes=yes
d7040cdb 12300
ce2cded5
L
12301 case "${enable_shared}" in
12302 yes) shared_opcodes=true ;;
12303 *opcodes*) shared_opcodes=true ;;
12304 *) shared_opcodes=false ;;
12305 esac
12306 ;;
12307 esac
d7040cdb 12308
ce2cded5
L
12309 # Any other special object files needed ?
12310 case ${cpu_type} in
d7040cdb 12311
ce2cded5
L
12312 bfin)
12313 echo ${extra_objects} | grep -s "bfin-parse.o"
12314 if test $? -ne 0 ; then
12315 extra_objects="$extra_objects bfin-parse.o"
12316 fi
d7040cdb 12317
df7b86aa 12318 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12319 if test $? -ne 0 ; then
df7b86aa 12320 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12321 fi
12322 ;;
d7040cdb 12323
73589c9d 12324 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12325 using_cgen=yes
12326 ;;
d7040cdb 12327
ce2cded5
L
12328 m32c)
12329 using_cgen=yes
12330 ;;
12331 frv)
12332 using_cgen=yes
12333 ;;
12334 m68k)
12335 case ${extra_objects} in
12336 *m68k-parse.o*) ;;
12337 *) extra_objects="$extra_objects m68k-parse.o" ;;
12338 esac
12339 ;;
d7040cdb 12340
ce2cded5
L
12341 mep)
12342 using_cgen=yes
12343 ;;
d7040cdb 12344
ce2cded5
L
12345 mips)
12346 echo ${extra_objects} | grep -s "itbl-parse.o"
12347 if test $? -ne 0 ; then
12348 extra_objects="$extra_objects itbl-parse.o"
12349 fi
d7040cdb 12350
df7b86aa 12351 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12352 if test $? -ne 0 ; then
df7b86aa 12353 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12354 fi
d7040cdb 12355
ce2cded5
L
12356 echo ${extra_objects} | grep -s "itbl-ops.o"
12357 if test $? -ne 0 ; then
12358 extra_objects="$extra_objects itbl-ops.o"
12359 fi
12360 ;;
d7040cdb 12361
ce2cded5
L
12362 mt)
12363 using_cgen=yes
12364 ;;
d7040cdb 12365
35c08157
KLC
12366 nds32)
12367 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12368 # based on arch_name.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12370$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12371 if test "x${with_arch}" != x; then
12372 case ${with_arch} in
12373 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12374
12375cat >>confdefs.h <<_ACEOF
12376#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12377_ACEOF
12378
12379 ;;
12380 *)
12381 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12382 ;;
12383 esac
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12386$as_echo "$with_arch" >&6; }
12387
12388 # Decide features one by one.
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12390$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12391 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12392
12393$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12394
12395 else
12396
12397$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12398
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12401$as_echo "$enable_dx_regs" >&6; }
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12404$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12405 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12406
12407$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12408
12409 else
12410
12411$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12415$as_echo "$enable_perf_ext" >&6; }
12416
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12418$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12419 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12420
12421$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12422
12423 else
12424
12425$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12426
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12429$as_echo "$enable_perf_ext2" >&6; }
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12432$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12433 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12434
12435$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12436
12437 else
12438
12439$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12443$as_echo "$enable_string_ext" >&6; }
12444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12446$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12447 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12448
12449$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12450
12451 else
12452
12453$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12457$as_echo "$enable_audio_ext" >&6; }
12458 ;;
12459
ce2cded5
L
12460 i386 | s390 | sparc)
12461 if test $this_target = $target ; then
d7040cdb
SE
12462
12463cat >>confdefs.h <<_ACEOF
ce2cded5 12464#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12465_ACEOF
12466
ce2cded5
L
12467 fi
12468 ;;
d7040cdb 12469
99c513f6
DD
12470 rl78)
12471 echo ${extra_objects} | grep -s "rl78-parse.o"
12472 if test $? -ne 0 ; then
12473 extra_objects="$extra_objects rl78-parse.o"
12474 fi
12475 ;;
12476
c7927a3c
NC
12477 rx)
12478 echo ${extra_objects} | grep -s "rx-parse.o"
12479 if test $? -ne 0 ; then
12480 extra_objects="$extra_objects rx-parse.o"
12481 fi
12482 ;;
12483
ce2cded5
L
12484 xstormy16)
12485 using_cgen=yes
12486 ;;
d7040cdb 12487
ce2cded5
L
12488 xc16x)
12489 using_cgen=yes
12490 ;;
d7040cdb 12491
ce2cded5
L
12492 xtensa)
12493 echo ${extra_objects} | grep -s "xtensa-relax.o"
12494 if test $? -ne 0 ; then
12495 extra_objects="$extra_objects xtensa-relax.o"
12496 fi
12497 ;;
d7040cdb 12498
ce2cded5
L
12499 *)
12500 ;;
12501 esac
d7040cdb 12502
ce2cded5
L
12503 if test $using_cgen = yes ; then
12504 case "x${extra_objects}" in
12505 *cgen.o*) ;;
12506 *) extra_objects="$extra_objects cgen.o" ;;
12507 esac
12508 fi
d7040cdb 12509
ce2cded5 12510# See if we really can support this configuration with the emulation code.
d7040cdb 12511
ce2cded5
L
12512 if test $this_target = $target ; then
12513 obj_format=$fmt
12514 te_file=$em
12515 fi
d7040cdb 12516
b11d79f2
TG
12517 case ${te_file} in
12518 vms) extra_objects="$extra_objects te-vms.o" ;;
12519 esac
12520
ce2cded5 12521# From target name and format, produce a list of supported emulations.
d7040cdb 12522
ce2cded5 12523 case ${generic_target}-${fmt} in
e8044f35 12524 mips-*-*-*) case "$endian" in
ce2cded5
L
12525 big) emulation="mipsbelf mipslelf mipself" ;;
12526 *) emulation="mipslelf mipsbelf mipself" ;;
12527 esac ;;
ce2cded5
L
12528 # i386-pc-pe-coff != i386-pc-coff.
12529 i386-*-pe-coff) ;;
12530 # Uncommenting the next line will turn on support for i386 AOUT
12531 # for the default linux configuration
12532 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12533 #
12534 i386-*-aout) emulation="i386aout" ;;
12535 i386-*-coff) emulation="i386coff" ;;
12536 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12537
ce2cded5
L
12538 # Always all formats. The first stated emulation becomes the default.
12539 cris-*-*aout*) emulation="crisaout criself" ;;
12540 cris-*-*) emulation="criself crisaout" ;;
12541 esac
13b2be9c 12542
ce2cded5 12543 emulations="$emulations $emulation"
13b2be9c 12544
13b2be9c 12545done
13b2be9c 12546
0cb4071e
L
12547if test ${ac_default_x86_relax_relocations} = unset; then
12548 ac_default_x86_relax_relocations=1
12549fi
12550
12551cat >>confdefs.h <<_ACEOF
12552#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12553_ACEOF
12554
12555
b8871f35
L
12556if test ${ac_default_elf_stt_common} = unset; then
12557 ac_default_elf_stt_common=0
12558fi
12559
12560cat >>confdefs.h <<_ACEOF
12561#define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12562_ACEOF
12563
12564
348ef89a 12565if test x$ac_default_compressed_debug_sections = xyes ; then
e12fe555
NC
12566
12567$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12568
6c3bc0f8 12569fi
e12fe555 12570
ce2cded5
L
12571# Turn on all targets if possible
12572if test ${all_targets} = "yes"; then
12573 case ${target_cpu_type} in
12574 i386)
12575 case ${obj_format} in
12576 aout)
12577 emulations="$emulations i386coff i386elf"
12578 ;;
12579 coff)
12580 emulations="$emulations i386aout i386elf"
12581 ;;
12582 elf)
12583 emulations="$emulations i386aout i386coff"
12584 ;;
12585 esac
12586 ;;
12587 x86_64)
12588 case ${obj_format} in
12589 aout)
12590 emulations="$emulations i386coff i386elf"
12591 ;;
12592 coff)
12593 emulations="$emulations i386aout i386elf"
12594 ;;
12595 elf)
12596 emulations="$emulations i386aout i386coff"
12597 ;;
12598 esac
12599 ;;
12600 esac
13b2be9c 12601fi
c8615825 12602
39871c07
AM
12603# PE code has way too many macros tweaking behaviour
12604case ${te_file} in
12605 pe*) emulations="" ;;
12606esac
12607
ce2cded5
L
12608# Assign floating point type. Most processors with FP support
12609# IEEE FP. On those that don't support FP at all, usually IEEE
12610# is emulated.
12611case ${target_cpu} in
12612 vax | pdp11 ) atof=vax ;;
12613 *) atof=ieee ;;
12614esac
c8615825 12615
ce2cded5 12616case "${obj_format}" in
81ecdfbb 12617 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12618esac
13b2be9c 12619
ce2cded5
L
12620# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12621cgen_cpu_prefix=""
12622if test $using_cgen = yes ; then
12623 case ${target_cpu} in
73589c9d
CS
12624 or1knd)
12625 cgen_cpu_prefix=or1k ;;
ce2cded5
L
12626 *) cgen_cpu_prefix=${target_cpu} ;;
12627 esac
c8615825 12628
c8615825 12629
81ecdfbb 12630$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12631
d7040cdb 12632fi
13b2be9c 12633
ce2cded5
L
12634
12635if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12636 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12637fi
ce2cded5
L
12638
12639if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12640 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12641fi
12642
ce2cded5
L
12643# Some COFF configurations want these random other flags set.
12644case ${obj_format} in
12645 coff)
12646 case ${target_cpu_type} in
12647 i386)
81ecdfbb 12648$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12649 ;;
12650 m68k)
81ecdfbb 12651$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12652 ;;
12653 m88k)
81ecdfbb 12654$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12655 ;;
12656 x86_64)
81ecdfbb 12657$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12658 ;;
12659 esac
12660 ;;
12661esac
12662
12663# Getting this done right is going to be a bitch. Each configuration specified
12664# with --enable-targets=... should be checked for environment, format, cpu
12665# setting.
12666#
12667# For each configuration, the necessary object file support code must be linked
12668# in. This might be only one, it might be up to four. The necessary emulation
12669# code needs to be provided, too.
12670#
12671# And then there's "--enable-targets=all"....
12672#
e8044f35 12673# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
12674
12675formats="${obj_format}"
12676emfiles=""
12677EMULATIONS=""
12678_gas_uniq_list="$emulations"
12679_gas_uniq_newlist=""
12680for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12681 case $_gas_uniq_i in
12682 _gas_uniq_dummy) ;;
12683 *) case " $_gas_uniq_newlist " in
12684 *" $_gas_uniq_i "*) ;;
12685 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12686 esac ;;
12687 esac
12688done
12689emulations=$_gas_uniq_newlist
12690
12691for em in . $emulations ; do
12692 case $em in
12693 .) continue ;;
12694 mipsbelf | mipslelf | mipself)
12695 fmt=elf file=mipself ;;
ce2cded5
L
12696 *coff)
12697 fmt=coff file=$em ;;
12698 *aout)
12699 fmt=aout file=$em ;;
12700 *elf)
12701 fmt=elf file=$em ;;
12702 esac
12703 formats="$formats $fmt"
12704 emfiles="$emfiles e-$file.o"
12705 EMULATIONS="$EMULATIONS &$em,"
12706done
12707_gas_uniq_list="$formats"
12708_gas_uniq_newlist=""
12709for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12710 case $_gas_uniq_i in
12711 _gas_uniq_dummy) ;;
12712 *) case " $_gas_uniq_newlist " in
12713 *" $_gas_uniq_i "*) ;;
12714 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12715 esac ;;
12716 esac
13b2be9c 12717done
ce2cded5 12718formats=$_gas_uniq_newlist
13b2be9c 12719
ce2cded5
L
12720_gas_uniq_list="$emfiles"
12721_gas_uniq_newlist=""
12722for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12723 case $_gas_uniq_i in
12724 _gas_uniq_dummy) ;;
12725 *) case " $_gas_uniq_newlist " in
12726 *" $_gas_uniq_i "*) ;;
12727 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12728 esac ;;
12729 esac
12730done
12731emfiles=$_gas_uniq_newlist
d7040cdb 12732
ce2cded5
L
12733if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12734 for fmt in $formats ; do
12735 case $fmt in
12736 aout)
81ecdfbb 12737$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12738 ;;
12739 bout)
81ecdfbb 12740$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12741 ;;
12742 coff)
81ecdfbb 12743$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12744 ;;
12745 ecoff)
81ecdfbb 12746$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12747 ;;
12748 elf)
81ecdfbb 12749$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12750 ;;
12751 generic)
81ecdfbb 12752$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12753 ;;
12754 som)
81ecdfbb 12755$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12756 ;;
12757 esac
12758 extra_objects="$extra_objects obj-$fmt.o"
12759 done
12760 obj_format=multi
13b2be9c 12761fi
ce2cded5
L
12762if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12763 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 12764 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
12765 # moment. If only one emulation is specified, then don't define
12766 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12767 case "${obj_format}${emfiles}" in
e8044f35 12768 multi* | *mipself*)
ce2cded5 12769 extra_objects="$extra_objects $emfiles"
d7040cdb 12770
81ecdfbb 12771$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12772 ;;
12773 esac
12774fi
d7040cdb 12775
13b2be9c 12776
ce2cded5
L
12777cat >>confdefs.h <<_ACEOF
12778#define EMULATIONS $EMULATIONS
13b2be9c 12779_ACEOF
d7040cdb 12780
d7040cdb 12781
ce2cded5
L
12782cat >>confdefs.h <<_ACEOF
12783#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12784_ACEOF
d7040cdb 12785
d7040cdb 12786
ce2cded5 12787reject_dev_configs=yes
252b5132 12788
ce2cded5
L
12789case ${reject_dev_configs}-${dev} in
12790 yes-yes) # Oops.
81ecdfbb 12791 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12792 ;;
d7040cdb
SE
12793esac
12794
13b2be9c 12795
ce2cded5
L
12796
12797
12798
12799
12800
12801# do we need the opcodes library?
12802case "${need_opcodes}" in
12803yes)
12804 OPCODES_LIB=../opcodes/libopcodes.la
12805 ;;
12806esac
12807
12808
12809
12810
12811cat >>confdefs.h <<_ACEOF
12812#define TARGET_ALIAS "${target_alias}"
d7040cdb 12813_ACEOF
20e95c23 12814
20e95c23 12815
ce2cded5
L
12816cat >>confdefs.h <<_ACEOF
12817#define TARGET_CANONICAL "${target}"
12818_ACEOF
20e95c23 12819
d6d788bd 12820
ce2cded5
L
12821cat >>confdefs.h <<_ACEOF
12822#define TARGET_CPU "${target_cpu}"
12823_ACEOF
20e95c23 12824
ce2cded5
L
12825
12826cat >>confdefs.h <<_ACEOF
12827#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12828_ACEOF
12829
12830
ce2cded5
L
12831cat >>confdefs.h <<_ACEOF
12832#define TARGET_OS "${target_os}"
12833_ACEOF
12834
0efedc4c 12835
d7040cdb
SE
12836for ac_prog in 'bison -y' byacc
12837do
12838 # Extract the first word of "$ac_prog", so it can be a program name with args.
12839set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841$as_echo_n "checking for $ac_word... " >&6; }
12842if test "${ac_cv_prog_YACC+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
20e95c23 12844else
d7040cdb
SE
12845 if test -n "$YACC"; then
12846 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12847else
d7040cdb
SE
12848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849for as_dir in $PATH
12850do
12851 IFS=$as_save_IFS
12852 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12855 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12857 break 2
20e95c23 12858 fi
d7040cdb 12859done
81ecdfbb
RW
12860 done
12861IFS=$as_save_IFS
20e95c23 12862
d7040cdb
SE
12863fi
12864fi
12865YACC=$ac_cv_prog_YACC
12866if test -n "$YACC"; then
81ecdfbb
RW
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12868$as_echo "$YACC" >&6; }
d7040cdb 12869else
81ecdfbb
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
d7040cdb 12872fi
20e95c23 12873
81ecdfbb 12874
d7040cdb
SE
12875 test -n "$YACC" && break
12876done
12877test -n "$YACC" || YACC="yacc"
20e95c23 12878
d7040cdb
SE
12879for ac_prog in flex lex
12880do
12881 # Extract the first word of "$ac_prog", so it can be a program name with args.
12882set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884$as_echo_n "checking for $ac_word... " >&6; }
12885if test "${ac_cv_prog_LEX+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
d6d788bd 12887else
d7040cdb
SE
12888 if test -n "$LEX"; then
12889 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12890else
12891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892for as_dir in $PATH
12893do
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12898 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12900 break 2
12901 fi
12902done
81ecdfbb
RW
12903 done
12904IFS=$as_save_IFS
20e95c23 12905
d7040cdb
SE
12906fi
12907fi
12908LEX=$ac_cv_prog_LEX
12909if test -n "$LEX"; then
81ecdfbb
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12911$as_echo "$LEX" >&6; }
20e95c23 12912else
81ecdfbb
RW
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
13b2be9c
DJ
12915fi
12916
81ecdfbb 12917
d7040cdb
SE
12918 test -n "$LEX" && break
12919done
12920test -n "$LEX" || LEX=":"
20e95c23 12921
3d961d0d
AM
12922case "$LEX" in
12923 :|*"missing "*) ;;
12924 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12925%%
12926a { ECHO; }
12927b { REJECT; }
12928c { yymore (); }
12929d { yyless (1); }
12930e { yyless (input () != 0); }
12931f { unput (yytext[0]); }
12932. { BEGIN INITIAL; }
12933%%
12934#ifdef YYTEXT_POINTER
12935extern char *yytext;
d7040cdb 12936#endif
d7040cdb 12937int
81ecdfbb 12938main (void)
d7040cdb 12939{
81ecdfbb 12940 return ! yylex () + ! yywrap ();
d7040cdb
SE
12941}
12942_ACEOF
81ecdfbb
RW
12943{ { ac_try="$LEX conftest.l"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12949$as_echo "$ac_try_echo"; } >&5
12950 (eval "$LEX conftest.l") 2>&5
d7040cdb 12951 ac_status=$?
81ecdfbb
RW
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953 test $ac_status = 0; }
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12955$as_echo_n "checking lex output file root... " >&6; }
12956if test "${ac_cv_prog_lex_root+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
d7040cdb 12958else
d5fbea21 12959
81ecdfbb
RW
12960if test -f lex.yy.c; then
12961 ac_cv_prog_lex_root=lex.yy
12962elif test -f lexyy.c; then
12963 ac_cv_prog_lex_root=lexyy
12964else
12965 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12966fi
d7040cdb 12967fi
81ecdfbb
RW
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12969$as_echo "$ac_cv_prog_lex_root" >&6; }
12970LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12971
81ecdfbb
RW
12972if test -z "${LEXLIB+set}"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12974$as_echo_n "checking lex library... " >&6; }
12975if test "${ac_cv_lib_lex+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
d7040cdb 12977else
d7040cdb 12978
81ecdfbb
RW
12979 ac_save_LIBS=$LIBS
12980 ac_cv_lib_lex='none needed'
12981 for ac_lib in '' -lfl -ll; do
12982 LIBS="$ac_lib $ac_save_LIBS"
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h. */
12985`cat $LEX_OUTPUT_ROOT.c`
12986_ACEOF
12987if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_lib_lex=$ac_lib
d7040cdb 12989fi
81ecdfbb
RW
12990rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 test "$ac_cv_lib_lex" != 'none needed' && break
12993 done
12994 LIBS=$ac_save_LIBS
d7040cdb
SE
12995
12996fi
81ecdfbb
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12998$as_echo "$ac_cv_lib_lex" >&6; }
12999 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13000fi
13001
13b2be9c 13002
81ecdfbb
RW
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13004$as_echo_n "checking whether yytext is a pointer... " >&6; }
13005if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
d7040cdb
SE
13007else
13008 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13009# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13010# not all implementations provide the %pointer and %array declarations.
13011ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13012ac_save_LIBS=$LIBS
81ecdfbb
RW
13013LIBS="$LEXLIB $ac_save_LIBS"
13014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h. */
13016#define YYTEXT_POINTER 1
d7040cdb 13017`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13018_ACEOF
81ecdfbb 13019if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13020 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13021fi
81ecdfbb
RW
13022rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13024LIBS=$ac_save_LIBS
252b5132 13025
9b2b7d69 13026fi
81ecdfbb
RW
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13028$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13029if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13030
81ecdfbb 13031$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13032
d6d788bd 13033fi
81ecdfbb 13034rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
13035 ;;
13036esac
d7040cdb
SE
13037if test "$LEX" = :; then
13038 LEX=${am_missing_run}flex
13039fi
13040
f8c2a965 13041ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
d7040cdb
SE
13042# If we haven't got the data from the intl directory,
13043# assume NLS is disabled.
13044USE_NLS=no
13045LIBINTL=
13046LIBINTL_DEP=
13047INCINTL=
13048XGETTEXT=
13049GMSGFMT=
13050POSUB=
13051
13052if test -f ../intl/config.intl; then
13053 . ../intl/config.intl
13054fi
81ecdfbb
RW
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13056$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13057if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059$as_echo "no" >&6; }
d7040cdb 13060else
81ecdfbb
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062$as_echo "yes" >&6; }
d7040cdb 13063
81ecdfbb 13064$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13065
13066
81ecdfbb
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13068$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13069 # Look for .po and .gmo files in the source directory.
13070 CATALOGS=
13071 XLINGUAS=
13072 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13073 # If there aren't any .gmo files the shell will give us the
13074 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13075 # weeded out.
13076 case "$cat" in *\**)
13077 continue;;
13078 esac
13079 # The quadruple backslash is collapsed to a double backslash
13080 # by the backticks, then collapsed again by the double quotes,
13081 # leaving us with one backslash in the sed expression (right
13082 # before the dot that mustn't act as a wildcard).
13083 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13084 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13085 # The user is allowed to set LINGUAS to a list of languages to
13086 # install catalogs for. If it's empty that means "all of them."
13087 if test "x$LINGUAS" = x; then
13088 CATALOGS="$CATALOGS $cat"
13089 XLINGUAS="$XLINGUAS $lang"
13090 else
13091 case "$LINGUAS" in *$lang*)
13092 CATALOGS="$CATALOGS $cat"
13093 XLINGUAS="$XLINGUAS $lang"
13094 ;;
13095 esac
13096 fi
13097 done
13098 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13100$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13101
13102
13103 DATADIRNAME=share
13104
13105 INSTOBJEXT=.mo
13106
13107 GENCAT=gencat
13108
13109 CATOBJEXT=.gmo
13110
13111fi
13112
13113 MKINSTALLDIRS=
13114 if test -n "$ac_aux_dir"; then
13115 case "$ac_aux_dir" in
13116 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13117 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13118 esac
13119 fi
13120 if test -z "$MKINSTALLDIRS"; then
13121 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13122 fi
13123
13124
13125
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13127$as_echo_n "checking whether NLS is requested... " >&6; }
13128 # Check whether --enable-nls was given.
13129if test "${enable_nls+set}" = set; then :
13130 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13131else
13132 USE_NLS=yes
81ecdfbb
RW
13133fi
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13136$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13137
13138
13139
13140
13141
13142
13143# Prepare PATH_SEPARATOR.
13144# The user is always right.
13145if test "${PATH_SEPARATOR+set}" != set; then
13146 echo "#! /bin/sh" >conf$$.sh
13147 echo "exit 0" >>conf$$.sh
13148 chmod +x conf$$.sh
13149 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13150 PATH_SEPARATOR=';'
13b2be9c 13151 else
d7040cdb 13152 PATH_SEPARATOR=:
13b2be9c 13153 fi
d7040cdb 13154 rm -f conf$$.sh
252b5132 13155fi
13b2be9c 13156
d7040cdb
SE
13157# Find out how to test for executable files. Don't use a zero-byte file,
13158# as systems may use methods other than mode bits to determine executability.
13159cat >conf$$.file <<_ASEOF
13160#! /bin/sh
13161exit 0
13162_ASEOF
13163chmod +x conf$$.file
13164if test -x conf$$.file >/dev/null 2>&1; then
13165 ac_executable_p="test -x"
13166else
13167 ac_executable_p="test -f"
13b2be9c 13168fi
d7040cdb 13169rm -f conf$$.file
13b2be9c 13170
d7040cdb
SE
13171# Extract the first word of "msgfmt", so it can be a program name with args.
13172set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174$as_echo_n "checking for $ac_word... " >&6; }
13175if test "${ac_cv_path_MSGFMT+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
252b5132 13177else
d7040cdb
SE
13178 case "$MSGFMT" in
13179 [\\/]* | ?:[\\/]*)
13180 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13181 ;;
13182 *)
13183 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13184 for ac_dir in $PATH; do
13185 IFS="$ac_save_IFS"
13186 test -z "$ac_dir" && ac_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13189 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13190 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13191 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13192 break 2
13193 fi
13194 fi
13195 done
13196 done
13197 IFS="$ac_save_IFS"
13198 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13199 ;;
13200esac
252b5132 13201fi
d7040cdb
SE
13202MSGFMT="$ac_cv_path_MSGFMT"
13203if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13205$as_echo "$MSGFMT" >&6; }
252b5132 13206else
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208$as_echo "no" >&6; }
252b5132 13209fi
252b5132 13210
d7040cdb
SE
13211 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13212set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
13215if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13b2be9c 13217else
d7040cdb
SE
13218 case $GMSGFMT in
13219 [\\/]* | ?:[\\/]*)
13220 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13221 ;;
13222 *)
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13230 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13232 break 2
13233 fi
13234done
81ecdfbb
RW
13235 done
13236IFS=$as_save_IFS
252b5132 13237
d7040cdb
SE
13238 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13239 ;;
13240esac
13241fi
13242GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13243if test -n "$GMSGFMT"; then
81ecdfbb
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13245$as_echo "$GMSGFMT" >&6; }
ac48eca1 13246else
81ecdfbb
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248$as_echo "no" >&6; }
6840198f 13249fi
6840198f 13250
13b2be9c 13251
20e95c23 13252
81ecdfbb 13253
d7040cdb
SE
13254# Prepare PATH_SEPARATOR.
13255# The user is always right.
13256if test "${PATH_SEPARATOR+set}" != set; then
13257 echo "#! /bin/sh" >conf$$.sh
13258 echo "exit 0" >>conf$$.sh
13259 chmod +x conf$$.sh
13260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13261 PATH_SEPARATOR=';'
13262 else
13263 PATH_SEPARATOR=:
13264 fi
13265 rm -f conf$$.sh
13266fi
20e95c23 13267
d7040cdb
SE
13268# Find out how to test for executable files. Don't use a zero-byte file,
13269# as systems may use methods other than mode bits to determine executability.
13270cat >conf$$.file <<_ASEOF
13271#! /bin/sh
13272exit 0
13273_ASEOF
13274chmod +x conf$$.file
13275if test -x conf$$.file >/dev/null 2>&1; then
13276 ac_executable_p="test -x"
13b2be9c 13277else
d7040cdb 13278 ac_executable_p="test -f"
13b2be9c 13279fi
d7040cdb 13280rm -f conf$$.file
20e95c23 13281
d7040cdb
SE
13282# Extract the first word of "xgettext", so it can be a program name with args.
13283set dummy xgettext; ac_word=$2
81ecdfbb
RW
13284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285$as_echo_n "checking for $ac_word... " >&6; }
13286if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
252b5132 13288else
d7040cdb
SE
13289 case "$XGETTEXT" in
13290 [\\/]* | ?:[\\/]*)
13291 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13292 ;;
13293 *)
13294 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13295 for ac_dir in $PATH; do
13296 IFS="$ac_save_IFS"
13297 test -z "$ac_dir" && ac_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13300 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13301 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13302 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13303 break 2
13304 fi
13305 fi
13306 done
13307 done
13308 IFS="$ac_save_IFS"
13309 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13310 ;;
13311esac
13b2be9c 13312fi
d7040cdb
SE
13313XGETTEXT="$ac_cv_path_XGETTEXT"
13314if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13316$as_echo "$XGETTEXT" >&6; }
d7040cdb 13317else
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13b2be9c 13320fi
13b2be9c 13321
d7040cdb 13322 rm -f messages.po
20e95c23 13323
13b2be9c 13324
d7040cdb
SE
13325# Prepare PATH_SEPARATOR.
13326# The user is always right.
13327if test "${PATH_SEPARATOR+set}" != set; then
13328 echo "#! /bin/sh" >conf$$.sh
13329 echo "exit 0" >>conf$$.sh
13330 chmod +x conf$$.sh
13331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13332 PATH_SEPARATOR=';'
13333 else
13334 PATH_SEPARATOR=:
13335 fi
13336 rm -f conf$$.sh
252b5132 13337fi
20e95c23 13338
d7040cdb
SE
13339# Find out how to test for executable files. Don't use a zero-byte file,
13340# as systems may use methods other than mode bits to determine executability.
13341cat >conf$$.file <<_ASEOF
13342#! /bin/sh
13343exit 0
13344_ASEOF
13345chmod +x conf$$.file
13346if test -x conf$$.file >/dev/null 2>&1; then
13347 ac_executable_p="test -x"
252b5132 13348else
d7040cdb
SE
13349 ac_executable_p="test -f"
13350fi
13351rm -f conf$$.file
20e95c23 13352
d7040cdb
SE
13353# Extract the first word of "msgmerge", so it can be a program name with args.
13354set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356$as_echo_n "checking for $ac_word... " >&6; }
13357if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
20e95c23 13359else
d7040cdb
SE
13360 case "$MSGMERGE" in
13361 [\\/]* | ?:[\\/]*)
13362 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13363 ;;
13364 *)
13365 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13366 for ac_dir in $PATH; do
13367 IFS="$ac_save_IFS"
13368 test -z "$ac_dir" && ac_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13371 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13372 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13373 break 2
13374 fi
13375 fi
13376 done
13377 done
13378 IFS="$ac_save_IFS"
13379 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13380 ;;
13381esac
20e95c23 13382fi
d7040cdb
SE
13383MSGMERGE="$ac_cv_path_MSGMERGE"
13384if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13386$as_echo "$MSGMERGE" >&6; }
d7040cdb 13387else
81ecdfbb
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
20e95c23 13390fi
252b5132 13391
252b5132 13392
d7040cdb
SE
13393 if test "$GMSGFMT" != ":"; then
13394 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13395 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13396 : ;
13397 else
13398 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13400$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13401 GMSGFMT=":"
13402 fi
13403 fi
13b2be9c 13404
d7040cdb
SE
13405 if test "$XGETTEXT" != ":"; then
13406 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13407 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13408 : ;
13409 else
81ecdfbb
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13411$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13412 XGETTEXT=":"
13413 fi
13414 rm -f messages.po
13415 fi
252b5132 13416
81ecdfbb 13417 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13418
13b2be9c 13419
81ecdfbb
RW
13420
13421
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13423$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13424 # Check whether --enable-maintainer-mode was given.
13425if test "${enable_maintainer_mode+set}" = set; then :
13426 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13427else
81ecdfbb 13428 USE_MAINTAINER_MODE=no
13b2be9c 13429fi
13b2be9c 13430
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13432$as_echo "$USE_MAINTAINER_MODE" >&6; }
13433 if test $USE_MAINTAINER_MODE = yes; then
13434 MAINTAINER_MODE_TRUE=
13435 MAINTAINER_MODE_FALSE='#'
13436else
13437 MAINTAINER_MODE_TRUE='#'
13438 MAINTAINER_MODE_FALSE=
13b2be9c 13439fi
13b2be9c 13440
81ecdfbb
RW
13441 MAINT=$MAINTAINER_MODE_TRUE
13442
13443
13444 if false; then
13445 GENINSRC_NEVER_TRUE=
13446 GENINSRC_NEVER_FALSE='#'
13b2be9c 13447else
81ecdfbb
RW
13448 GENINSRC_NEVER_TRUE='#'
13449 GENINSRC_NEVER_FALSE=
252b5132 13450fi
13b2be9c 13451
81ecdfbb
RW
13452
13453
58797674 13454for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
81ecdfbb
RW
13455do :
13456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13458eval as_val=\$$as_ac_Header
13459 if test "x$as_val" = x""yes; then :
13b2be9c 13460 cat >>confdefs.h <<_ACEOF
81ecdfbb 13461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13462_ACEOF
13463
252b5132 13464fi
13b2be9c 13465
252b5132
RH
13466done
13467
df7b86aa
NC
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13469$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13470if test "${gcc_cv_header_string+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13472else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h. */
13475#include <string.h>
13476#include <strings.h>
13477int
13478main ()
13479{
13480
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485if ac_fn_c_try_compile "$LINENO"; then :
13486 gcc_cv_header_string=yes
13487else
13488 gcc_cv_header_string=no
13489fi
13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13493$as_echo "$gcc_cv_header_string" >&6; }
13494if test $gcc_cv_header_string = yes; then
13495
13496$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13497
13498fi
13499
d6d788bd 13500
252b5132
RH
13501# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13502# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13504$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13505if test "${host}" = "${target}"; then
13506 cross_gas=no
13507else
13508 cross_gas=yes
13b2be9c 13509
81ecdfbb 13510$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13511
13512fi
81ecdfbb
RW
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13514$as_echo "$cross_gas" >&6; }
252b5132
RH
13515
13516# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13517# for constant arguments. Useless!
81ecdfbb
RW
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13519$as_echo_n "checking for working alloca.h... " >&6; }
13520if test "${ac_cv_working_alloca_h+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13b2be9c 13522else
81ecdfbb 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13524/* end confdefs.h. */
252b5132 13525#include <alloca.h>
13b2be9c
DJ
13526int
13527main ()
13528{
13529char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13530 if (p) return 0;
13b2be9c
DJ
13531 ;
13532 return 0;
13533}
13534_ACEOF
81ecdfbb 13535if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13536 ac_cv_working_alloca_h=yes
13537else
81ecdfbb 13538 ac_cv_working_alloca_h=no
13b2be9c 13539fi
81ecdfbb
RW
13540rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13542fi
81ecdfbb
RW
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13544$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13545if test $ac_cv_working_alloca_h = yes; then
13546
81ecdfbb 13547$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13548
13549fi
13550
81ecdfbb
RW
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13552$as_echo_n "checking for alloca... " >&6; }
13553if test "${ac_cv_func_alloca_works+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
252b5132 13555else
81ecdfbb 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13557/* end confdefs.h. */
252b5132
RH
13558#ifdef __GNUC__
13559# define alloca __builtin_alloca
13560#else
13561# ifdef _MSC_VER
13562# include <malloc.h>
13563# define alloca _alloca
13564# else
81ecdfbb 13565# ifdef HAVE_ALLOCA_H
252b5132
RH
13566# include <alloca.h>
13567# else
13568# ifdef _AIX
13569 #pragma alloca
13570# else
13571# ifndef alloca /* predefined by HP cc +Olibcalls */
13572char *alloca ();
13573# endif
13574# endif
13575# endif
13576# endif
13577#endif
13578
13b2be9c
DJ
13579int
13580main ()
13581{
13582char *p = (char *) alloca (1);
81ecdfbb 13583 if (p) return 0;
13b2be9c
DJ
13584 ;
13585 return 0;
13586}
13587_ACEOF
81ecdfbb 13588if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13589 ac_cv_func_alloca_works=yes
13590else
81ecdfbb 13591 ac_cv_func_alloca_works=no
252b5132 13592fi
81ecdfbb
RW
13593rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
252b5132 13595fi
81ecdfbb
RW
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13597$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13598
252b5132 13599if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13600
81ecdfbb 13601$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13602
13b2be9c 13603else
c8615825 13604 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13605# that cause trouble. Some versions do not even contain alloca or
13606# contain a buggy version. If you still want to use their alloca,
13607# use ar to extract alloca.o from them instead of compiling alloca.c.
13608
81ecdfbb 13609ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13610
81ecdfbb 13611$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13612
d6d788bd 13613
81ecdfbb
RW
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13615$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13616if test "${ac_cv_os_cray+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
252b5132 13618else
81ecdfbb 13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13620/* end confdefs.h. */
81ecdfbb 13621#if defined CRAY && ! defined CRAY2
252b5132
RH
13622webecray
13623#else
13624wenotbecray
13625#endif
13626
13b2be9c 13627_ACEOF
252b5132 13628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13629 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13630 ac_cv_os_cray=yes
13631else
252b5132
RH
13632 ac_cv_os_cray=no
13633fi
13634rm -f conftest*
13635
13636fi
81ecdfbb
RW
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13638$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13639if test $ac_cv_os_cray = yes; then
13b2be9c 13640 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13642ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13643eval as_val=\$$as_ac_var
13644 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13645
13646cat >>confdefs.h <<_ACEOF
252b5132 13647#define CRAY_STACKSEG_END $ac_func
13b2be9c 13648_ACEOF
252b5132 13649
13b2be9c 13650 break
252b5132
RH
13651fi
13652
13b2be9c 13653 done
252b5132
RH
13654fi
13655
81ecdfbb
RW
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13657$as_echo_n "checking stack direction for C alloca... " >&6; }
13658if test "${ac_cv_c_stack_direction+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
252b5132 13660else
81ecdfbb 13661 if test "$cross_compiling" = yes; then :
252b5132
RH
13662 ac_cv_c_stack_direction=0
13663else
81ecdfbb 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13665/* end confdefs.h. */
81ecdfbb 13666$ac_includes_default
13b2be9c 13667int
252b5132
RH
13668find_stack_direction ()
13669{
13670 static char *addr = 0;
13671 auto char dummy;
13672 if (addr == 0)
13673 {
13674 addr = &dummy;
13675 return find_stack_direction ();
13676 }
13677 else
13678 return (&dummy > addr) ? 1 : -1;
13679}
13b2be9c
DJ
13680
13681int
252b5132
RH
13682main ()
13683{
81ecdfbb 13684 return find_stack_direction () < 0;
252b5132 13685}
13b2be9c 13686_ACEOF
81ecdfbb 13687if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13688 ac_cv_c_stack_direction=1
13689else
81ecdfbb 13690 ac_cv_c_stack_direction=-1
252b5132 13691fi
81ecdfbb
RW
13692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13693 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13694fi
252b5132 13695
81ecdfbb
RW
13696fi
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13698$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13699cat >>confdefs.h <<_ACEOF
252b5132 13700#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13701_ACEOF
13702
252b5132
RH
13703
13704fi
13705
81ecdfbb
RW
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13707$as_echo_n "checking for inline... " >&6; }
13708if test "${ac_cv_c_inline+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
252b5132
RH
13710else
13711 ac_cv_c_inline=no
13712for ac_kw in inline __inline__ __inline; do
81ecdfbb 13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13714/* end confdefs.h. */
13715#ifndef __cplusplus
13716typedef int foo_t;
13717static $ac_kw foo_t static_foo () {return 0; }
13718$ac_kw foo_t foo () {return 0; }
13719#endif
252b5132 13720
13b2be9c 13721_ACEOF
81ecdfbb
RW
13722if ac_fn_c_try_compile "$LINENO"; then :
13723 ac_cv_c_inline=$ac_kw
252b5132 13724fi
81ecdfbb
RW
13725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726 test "$ac_cv_c_inline" != no && break
252b5132
RH
13727done
13728
13729fi
81ecdfbb
RW
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13731$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13732
13b2be9c 13733case $ac_cv_c_inline in
252b5132 13734 inline | yes) ;;
ab509236
L
13735 *)
13736 case $ac_cv_c_inline in
13737 no) ac_val=;;
13738 *) ac_val=$ac_cv_c_inline;;
13739 esac
13740 cat >>confdefs.h <<_ACEOF
13741#ifndef __cplusplus
13742#define inline $ac_val
13743#endif
13b2be9c 13744_ACEOF
ab509236 13745 ;;
252b5132
RH
13746esac
13747
6840198f 13748
d6d788bd 13749# VMS doesn't have unlink.
252b5132 13750for ac_func in unlink remove
81ecdfbb
RW
13751do :
13752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13754eval as_val=\$$as_ac_var
13755 if test "x$as_val" = x""yes; then :
13b2be9c 13756 cat >>confdefs.h <<_ACEOF
81ecdfbb 13757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13758_ACEOF
252b5132 13759 break
252b5132
RH
13760fi
13761done
13762
4b0296ce 13763for ac_func in sbrk setlocale
81ecdfbb 13764do :
a574142b
AM
13765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13766ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13767eval as_val=\$$as_ac_var
13768 if test "x$as_val" = x""yes; then :
13b2be9c 13769 cat >>confdefs.h <<_ACEOF
a574142b 13770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13771_ACEOF
252b5132 13772
252b5132
RH
13773fi
13774done
13775
d6d788bd 13776
44350750
NC
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13779$as_echo_n "checking for LC_MESSAGES... " >&6; }
13780if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13782else
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h. */
13785#include <locale.h>
13786int
13787main ()
13788{
13789return LC_MESSAGES
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_link "$LINENO"; then :
13795 am_cv_val_LC_MESSAGES=yes
13796else
13797 am_cv_val_LC_MESSAGES=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13803$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13804 if test $am_cv_val_LC_MESSAGES = yes; then
13805
13806$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13807
13808 fi
13809
13810
39bec121
TW
13811# do we need the math library?
13812case "${need_libm}" in
13b2be9c 13813yes)
39bec121 13814 LIBM=
f9c19112 13815case $host in
3725885a 13816*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13817 # These system don't have libm, or don't need it
39bec121
TW
13818 ;;
13819*-ncr-sysv4.3*)
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13821$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13822if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
39bec121 13824else
13b2be9c 13825 ac_check_lib_save_LIBS=$LIBS
39bec121 13826LIBS="-lmw $LIBS"
81ecdfbb 13827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13828/* end confdefs.h. */
13829
81ecdfbb
RW
13830/* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13833#ifdef __cplusplus
13834extern "C"
13835#endif
13b2be9c
DJ
13836char _mwvalidcheckl ();
13837int
13838main ()
13839{
81ecdfbb 13840return _mwvalidcheckl ();
13b2be9c
DJ
13841 ;
13842 return 0;
13843}
13844_ACEOF
81ecdfbb 13845if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13846 ac_cv_lib_mw__mwvalidcheckl=yes
13847else
81ecdfbb 13848 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13849fi
81ecdfbb
RW
13850rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13852LIBS=$ac_check_lib_save_LIBS
13853fi
81ecdfbb
RW
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13855$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13856if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13857 LIBM="-lmw"
39bec121
TW
13858fi
13859
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13861$as_echo_n "checking for cos in -lm... " >&6; }
13862if test "${ac_cv_lib_m_cos+set}" = set; then :
13863 $as_echo_n "(cached) " >&6
39bec121 13864else
13b2be9c 13865 ac_check_lib_save_LIBS=$LIBS
39bec121 13866LIBS="-lm $LIBS"
81ecdfbb 13867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13868/* end confdefs.h. */
39bec121 13869
81ecdfbb
RW
13870/* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13873#ifdef __cplusplus
13874extern "C"
13875#endif
d7040cdb 13876char cos ();
13b2be9c
DJ
13877int
13878main ()
13879{
81ecdfbb 13880return cos ();
13b2be9c
DJ
13881 ;
13882 return 0;
13883}
13884_ACEOF
81ecdfbb 13885if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13886 ac_cv_lib_m_cos=yes
13b2be9c 13887else
81ecdfbb 13888 ac_cv_lib_m_cos=no
13b2be9c 13889fi
81ecdfbb
RW
13890rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13892LIBS=$ac_check_lib_save_LIBS
13893fi
81ecdfbb
RW
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13895$as_echo "$ac_cv_lib_m_cos" >&6; }
13896if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13897 LIBM="$LIBM -lm"
39bec121
TW
13898fi
13899
13900 ;;
13901*)
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13903$as_echo_n "checking for cos in -lm... " >&6; }
13904if test "${ac_cv_lib_m_cos+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
39bec121 13906else
13b2be9c 13907 ac_check_lib_save_LIBS=$LIBS
39bec121 13908LIBS="-lm $LIBS"
81ecdfbb 13909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13910/* end confdefs.h. */
39bec121 13911
81ecdfbb
RW
13912/* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13915#ifdef __cplusplus
13916extern "C"
13917#endif
d7040cdb 13918char cos ();
13b2be9c
DJ
13919int
13920main ()
13921{
81ecdfbb 13922return cos ();
13b2be9c
DJ
13923 ;
13924 return 0;
13925}
13926_ACEOF
81ecdfbb 13927if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13928 ac_cv_lib_m_cos=yes
13b2be9c 13929else
81ecdfbb 13930 ac_cv_lib_m_cos=no
13b2be9c 13931fi
81ecdfbb
RW
13932rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13934LIBS=$ac_check_lib_save_LIBS
13935fi
81ecdfbb
RW
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13937$as_echo "$ac_cv_lib_m_cos" >&6; }
13938if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13939 LIBM="-lm"
39bec121
TW
13940fi
13941
13942 ;;
13943esac
13944
13b2be9c 13945
d7040cdb 13946
39bec121
TW
13947 ;;
13948esac
13949
252b5132
RH
13950# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13951# enough, but on some of those systems, the assert macro relies on requoting
13952# working properly!
81ecdfbb
RW
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13954$as_echo_n "checking for working assert macro... " >&6; }
13955if test "${gas_cv_assert_ok+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13b2be9c 13957else
81ecdfbb 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13959/* end confdefs.h. */
252b5132
RH
13960#include <assert.h>
13961#include <stdio.h>
13b2be9c
DJ
13962int
13963main ()
13964{
252b5132
RH
13965
13966/* check for requoting problems */
13967static int a, b, c, d;
13968static char *s;
13969assert (!strcmp(s, "foo bar baz quux"));
13970/* check for newline handling */
13971assert (a == b
13972 || c == d);
13973
13b2be9c
DJ
13974 ;
13975 return 0;
81ecdfbb
RW
13976}
13977_ACEOF
13978if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13979 gas_cv_assert_ok=yes
13980else
81ecdfbb 13981 gas_cv_assert_ok=no
252b5132 13982fi
81ecdfbb
RW
13983rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
252b5132 13985fi
81ecdfbb
RW
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13987$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 13988test $gas_cv_assert_ok = yes ||
81ecdfbb 13989$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 13990
d6d788bd
L
13991
13992
252b5132
RH
13993# On some systems, the system header files may not declare malloc, realloc,
13994# and free. There are places where gas needs these functions to have been
13995# declared -- such as when taking their addresses.
13996gas_test_headers="
13997#ifdef HAVE_MEMORY_H
13998#include <memory.h>
13999#endif
14000#ifdef HAVE_STRING_H
14001#include <string.h>
14002#else
14003#ifdef HAVE_STRINGS_H
14004#include <strings.h>
14005#endif
14006#endif
14007#ifdef HAVE_STDLIB_H
14008#include <stdlib.h>
14009#endif
14010#ifdef HAVE_UNISTD_H
14011#include <unistd.h>
14012#endif
14013"
14014
e8a38df5
AL
14015# Does errno.h declare errno, or do we have to add a separate declaration
14016# for it?
14017
81ecdfbb
RW
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14019$as_echo_n "checking whether declaration is required for errno... " >&6; }
14020if test "${gas_cv_decl_needed_errno+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
e8a38df5 14022else
81ecdfbb 14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14024/* end confdefs.h. */
14025
14026#ifdef HAVE_ERRNO_H
14027#include <errno.h>
14028#endif
14029
14030int
14031main ()
14032{
14033
14034typedef int f;
14035f x;
14036x = (f) errno;
14037
14038 ;
14039 return 0;
14040}
14041_ACEOF
81ecdfbb 14042if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14043 gas_cv_decl_needed_errno=no
14044else
81ecdfbb 14045 gas_cv_decl_needed_errno=yes
e8a38df5 14046fi
81ecdfbb
RW
14047rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14049fi
81ecdfbb
RW
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14051$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14052if test $gas_cv_decl_needed_errno = yes; then
14053
81ecdfbb 14054$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14055
14056fi
14057
14058
81ecdfbb
RW
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14060$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14061if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
56f36663 14063else
81ecdfbb 14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14065/* end confdefs.h. */
14066#include <unistd.h>
14067int
14068main ()
14069{
14070extern int getopt (int, char *const*, const char *);
14071 ;
14072 return 0;
14073}
14074_ACEOF
81ecdfbb 14075if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14076 gas_cv_decl_getopt_unistd_h=yes
14077else
81ecdfbb 14078 gas_cv_decl_getopt_unistd_h=no
56f36663 14079fi
81ecdfbb 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14081fi
14082
81ecdfbb
RW
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14084$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14085if test $gas_cv_decl_getopt_unistd_h = yes; then
14086
81ecdfbb 14087$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14088
14089fi
14090
e8a38df5 14091
81ecdfbb
RW
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14093$as_echo_n "checking whether declaration is required for environ... " >&6; }
14094if test "${gas_cv_decl_needed_environ+set}" = set; then :
14095 $as_echo_n "(cached) " >&6
13b2be9c 14096else
81ecdfbb 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14098/* end confdefs.h. */
252b5132 14099$gas_test_headers
13b2be9c
DJ
14100int
14101main ()
14102{
252b5132 14103
e8a38df5 14104typedef char **f;
252b5132 14105f x;
e8a38df5 14106x = (f) environ;
252b5132 14107
13b2be9c
DJ
14108 ;
14109 return 0;
14110}
14111_ACEOF
81ecdfbb 14112if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14113 gas_cv_decl_needed_environ=no
252b5132 14114else
81ecdfbb 14115 gas_cv_decl_needed_environ=yes
252b5132 14116fi
81ecdfbb
RW
14117rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
252b5132 14119fi
81ecdfbb
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14121$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14122if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14123
81ecdfbb 14124$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14125
14126fi
14127
14128
81ecdfbb
RW
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14130$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14131if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
13b2be9c 14133else
81ecdfbb 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14135/* end confdefs.h. */
14136$gas_test_headers
14137int
14138main ()
14139{
14140
e8a38df5 14141typedef int (*f)(int);
13b2be9c 14142f x;
e8a38df5 14143x = (f) ffs;
13b2be9c
DJ
14144
14145 ;
14146 return 0;
14147}
14148_ACEOF
81ecdfbb 14149if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14150 gas_cv_decl_needed_ffs=no
13b2be9c 14151else
81ecdfbb 14152 gas_cv_decl_needed_ffs=yes
13b2be9c 14153fi
81ecdfbb
RW
14154rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14156fi
81ecdfbb
RW
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14158$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14159if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14160
81ecdfbb 14161$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14162
14163fi
14164
14165
81ecdfbb
RW
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14167$as_echo_n "checking whether declaration is required for free... " >&6; }
14168if test "${gas_cv_decl_needed_free+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
13b2be9c 14170else
81ecdfbb 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14172/* end confdefs.h. */
14173$gas_test_headers
14174int
14175main ()
14176{
14177
14178typedef void (*f)();
14179f x;
14180x = (f) free;
14181
14182 ;
14183 return 0;
14184}
14185_ACEOF
81ecdfbb 14186if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14187 gas_cv_decl_needed_free=no
14188else
81ecdfbb 14189 gas_cv_decl_needed_free=yes
13b2be9c 14190fi
81ecdfbb
RW
14191rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14193fi
81ecdfbb
RW
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14195$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14196if test $gas_cv_decl_needed_free = yes; then
14197
81ecdfbb 14198$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14199
14200fi
14201
14202
81ecdfbb
RW
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14204$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14205if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
13b2be9c 14207else
81ecdfbb 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14209/* end confdefs.h. */
14210$gas_test_headers
14211int
14212main ()
14213{
14214
14215typedef char *(*f)();
14216f x;
e8a38df5 14217x = (f) malloc;
13b2be9c
DJ
14218
14219 ;
14220 return 0;
14221}
14222_ACEOF
81ecdfbb 14223if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14224 gas_cv_decl_needed_malloc=no
13b2be9c 14225else
81ecdfbb 14226 gas_cv_decl_needed_malloc=yes
13b2be9c 14227fi
81ecdfbb
RW
14228rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14230fi
81ecdfbb
RW
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14232$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14233if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14234
81ecdfbb 14235$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14236
14237fi
14238
14239
81ecdfbb
RW
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14241$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14242if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
13b2be9c 14244else
81ecdfbb 14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14246/* end confdefs.h. */
14247$gas_test_headers
14248int
14249main ()
14250{
14251
e8a38df5 14252typedef char *(*f)();
13b2be9c 14253f x;
e8a38df5 14254x = (f) sbrk;
13b2be9c
DJ
14255
14256 ;
14257 return 0;
14258}
14259_ACEOF
81ecdfbb 14260if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14261 gas_cv_decl_needed_sbrk=no
13b2be9c 14262else
81ecdfbb 14263 gas_cv_decl_needed_sbrk=yes
13b2be9c 14264fi
81ecdfbb
RW
14265rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14267fi
81ecdfbb
RW
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14269$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14270if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14271
81ecdfbb 14272$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14273
14274fi
14275
14276
81ecdfbb
RW
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14278$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14279if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
13b2be9c 14281else
81ecdfbb 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14283/* end confdefs.h. */
e8a38df5 14284$gas_test_headers
13b2be9c
DJ
14285int
14286main ()
14287{
14288
e8a38df5 14289typedef char *(*f)();
13b2be9c 14290f x;
e8a38df5 14291x = (f) strstr;
13b2be9c
DJ
14292
14293 ;
14294 return 0;
14295}
14296_ACEOF
81ecdfbb 14297if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14298 gas_cv_decl_needed_strstr=no
13b2be9c 14299else
81ecdfbb 14300 gas_cv_decl_needed_strstr=yes
13b2be9c 14301fi
81ecdfbb
RW
14302rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14304fi
81ecdfbb
RW
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14306$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14307if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14308
81ecdfbb 14309$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14310
14311fi
14312
14313
4b0296ce
AM
14314ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14315if test "x$ac_cv_have_decl_free" = x""yes; then :
14316 ac_have_decl=1
14317else
14318 ac_have_decl=0
14319fi
14320
14321cat >>confdefs.h <<_ACEOF
14322#define HAVE_DECL_FREE $ac_have_decl
14323_ACEOF
14324ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14325if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14326 ac_have_decl=1
14327else
14328 ac_have_decl=0
14329fi
14330
14331cat >>confdefs.h <<_ACEOF
14332#define HAVE_DECL_GETENV $ac_have_decl
14333_ACEOF
14334ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14335if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14336 ac_have_decl=1
14337else
14338 ac_have_decl=0
14339fi
14340
14341cat >>confdefs.h <<_ACEOF
14342#define HAVE_DECL_MALLOC $ac_have_decl
14343_ACEOF
0175442d
L
14344ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14345if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14346 ac_have_decl=1
14347else
14348 ac_have_decl=0
14349fi
14350
14351cat >>confdefs.h <<_ACEOF
14352#define HAVE_DECL_MEMPCPY $ac_have_decl
14353_ACEOF
4b0296ce
AM
14354ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14355if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14356 ac_have_decl=1
14357else
14358 ac_have_decl=0
14359fi
14360
14361cat >>confdefs.h <<_ACEOF
14362#define HAVE_DECL_REALLOC $ac_have_decl
14363_ACEOF
14364ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14365if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14366 ac_have_decl=1
14367else
14368 ac_have_decl=0
14369fi
14370
14371cat >>confdefs.h <<_ACEOF
14372#define HAVE_DECL_STPCPY $ac_have_decl
14373_ACEOF
14374ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14375if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14376 ac_have_decl=1
14377else
14378 ac_have_decl=0
14379fi
0175442d 14380
4b0296ce
AM
14381cat >>confdefs.h <<_ACEOF
14382#define HAVE_DECL_STRSTR $ac_have_decl
14383_ACEOF
81ecdfbb
RW
14384ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14385if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14386 ac_have_decl=1
6d74f28b 14387else
81ecdfbb 14388 ac_have_decl=0
6d74f28b 14389fi
6d74f28b
EB
14390
14391cat >>confdefs.h <<_ACEOF
81ecdfbb 14392#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 14393_ACEOF
2a7f4fa9
NC
14394ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14395if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14396 ac_have_decl=1
14397else
14398 ac_have_decl=0
14399fi
14400
14401cat >>confdefs.h <<_ACEOF
14402#define HAVE_DECL_ASPRINTF $ac_have_decl
14403_ACEOF
6d74f28b
EB
14404
14405
13b2be9c 14406
c973bc5c
NC
14407case "${host}" in
14408*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14409
81ecdfbb 14410$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14411 ;;
14412esac
14413
543b7933
L
14414# Link in zlib if we can. This allows us to write compressed debug sections.
14415
14416 # Use the system's zlib library.
39f3de7c
L
14417 zlibdir="-L\$(top_builddir)/../zlib"
14418 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14419
0138187e
L
14420# Check whether --with-system-zlib was given.
14421if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14422 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14423 zlibdir=
14424 zlibinc=
14425 fi
0acf065b 14426
0acf065b 14427fi
0acf065b 14428
0acf065b
CC
14429
14430
543b7933
L
14431
14432
b11d79f2
TG
14433# Support for VMS timestamps via cross compile
14434
14435if test "$ac_cv_header_time_h" = yes; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14437$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14438 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14440else
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h. */
14443
14444#define _BSD_SOURCE 1
14445#include <time.h>
14446int
14447main ()
14448{
14449struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14450 ;
14451 return 0;
14452}
14453_ACEOF
14454if ac_fn_c_try_compile "$LINENO"; then :
14455 gas_cv_have_time_type_member_tm_gmtoff=yes
14456else
14457 gas_cv_have_time_type_member_tm_gmtoff=no
14458
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461fi
14462
14463 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14464
14465$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14466
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14469$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14470
14471fi
14472
14473if test "$ac_cv_header_sys_stat_h" = yes; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14475$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14476 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14478else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h. */
14481
14482#define _BSD_SOURCE 1
14483#include <sys/stat.h>
14484int
14485main ()
14486{
14487struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14488 ;
14489 return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_compile "$LINENO"; then :
14493 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14494else
14495 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14496
14497fi
14498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499fi
14500
14501 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14502
14503$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14507$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14510$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14511 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14513else
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h. */
14516
14517#define _BSD_SOURCE 1
14518#include <sys/stat.h>
14519int
14520main ()
14521{
14522struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527if ac_fn_c_try_compile "$LINENO"; then :
14528 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14529else
14530 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14531
14532fi
14533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534fi
14535
14536 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14537
14538$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14539
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14542$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14543
14544fi
14545
14546
c973bc5c 14547
13b2be9c 14548
108a6f8e
CD
14549
14550
14551
14552
31dd3154 14553
81ecdfbb 14554ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14555
81ecdfbb 14556ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14557
14558
14559cat >confcache <<\_ACEOF
14560# This file is a shell script that caches the results of configure
14561# tests run on this system so they can be shared between configure
14562# scripts and configure runs, see configure's option --config-cache.
14563# It is not useful on other systems. If it contains results you don't
14564# want to keep, you may remove or edit it.
14565#
14566# config.status only pays attention to the cache file if you give it
14567# the --recheck option to rerun configure.
14568#
14569# `ac_cv_env_foo' variables (set or unset) will be overridden when
14570# loading this file, other *unset* `ac_cv_foo' will be assigned the
14571# following values.
14572
14573_ACEOF
14574
14575# The following way of writing the cache mishandles newlines in values,
14576# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14577# So, we kill variables containing newlines.
13b2be9c
DJ
14578# Ultrix sh set writes to stderr and can't be redirected directly,
14579# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14580(
14581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14582 eval ac_val=\$$ac_var
14583 case $ac_val in #(
14584 *${as_nl}*)
14585 case $ac_var in #(
14586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14587$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14588 esac
14589 case $ac_var in #(
14590 _ | IFS | as_nl) ;; #(
14591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14592 *) { eval $ac_var=; unset $ac_var;} ;;
14593 esac ;;
14594 esac
14595 done
14596
13b2be9c 14597 (set) 2>&1 |
81ecdfbb
RW
14598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14599 *${as_nl}ac_space=\ *)
14600 # `set' does not quote correctly, so add quotes: double-quote
14601 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14602 sed -n \
ab509236
L
14603 "s/'/'\\\\''/g;
14604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14605 ;; #(
13b2be9c
DJ
14606 *)
14607 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14609 ;;
81ecdfbb
RW
14610 esac |
14611 sort
14612) |
13b2be9c 14613 sed '
81ecdfbb 14614 /^ac_cv_env_/b end
13b2be9c 14615 t clear
81ecdfbb 14616 :clear
13b2be9c
DJ
14617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14618 t end
81ecdfbb
RW
14619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14620 :end' >>confcache
14621if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14622 if test -w "$cache_file"; then
14623 test "x$cache_file" != "x/dev/null" &&
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14625$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14626 cat confcache >$cache_file
14627 else
81ecdfbb
RW
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14629$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14630 fi
14631fi
14632rm -f confcache
14633
14634test "x$prefix" = xNONE && prefix=$ac_default_prefix
14635# Let make expand exec_prefix.
14636test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14637
13b2be9c
DJ
14638DEFS=-DHAVE_CONFIG_H
14639
14640ac_libobjs=
14641ac_ltlibobjs=
14642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14647 # will be set to the directory where LIBOBJS objects are built.
14648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14650done
14651LIBOBJS=$ac_libobjs
14652
14653LTLIBOBJS=$ac_ltlibobjs
14654
14655
14656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14657 as_fn_error "conditional \"AMDEP\" was never defined.
14658Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14659fi
14660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14661 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14662Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663fi
14664 if test -n "$EXEEXT"; then
14665 am__EXEEXT_TRUE=
14666 am__EXEEXT_FALSE='#'
14667else
14668 am__EXEEXT_TRUE='#'
14669 am__EXEEXT_FALSE=
13b2be9c 14670fi
81ecdfbb
RW
14671
14672
13b2be9c 14673if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14674 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14675Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14676fi
d5fbea21 14677if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14678 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14679Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14680fi
13b2be9c
DJ
14681
14682: ${CONFIG_STATUS=./config.status}
81ecdfbb 14683ac_write_fail=0
13b2be9c
DJ
14684ac_clean_files_save=$ac_clean_files
14685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14688as_write_fail=0
14689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14690#! $SHELL
14691# Generated by $as_me.
14692# Run this file to recreate the current configuration.
14693# Compiler output produced by configure, useful for debugging
14694# configure, is in config.log if it exists.
14695
14696debug=false
14697ac_cs_recheck=false
14698ac_cs_silent=false
13b2be9c 14699
81ecdfbb
RW
14700SHELL=\${CONFIG_SHELL-$SHELL}
14701export SHELL
14702_ASEOF
14703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14704## -------------------- ##
14705## M4sh Initialization. ##
14706## -------------------- ##
13b2be9c 14707
81ecdfbb
RW
14708# Be more Bourne compatible
14709DUALCASE=1; export DUALCASE # for MKS sh
14710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14711 emulate sh
14712 NULLCMD=:
81ecdfbb 14713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14714 # is contrary to our usage. Disable this feature.
14715 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14716 setopt NO_GLOB_SUBST
14717else
14718 case `(set -o) 2>/dev/null` in #(
14719 *posix*) :
14720 set -o posix ;; #(
14721 *) :
14722 ;;
14723esac
13b2be9c
DJ
14724fi
14725
81ecdfbb
RW
14726
14727as_nl='
14728'
14729export as_nl
14730# Printing a long string crashes Solaris 7 /usr/bin/printf.
14731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14734# Prefer a ksh shell builtin over an external printf program on Solaris,
14735# but without wasting forks for bash or zsh.
14736if test -z "$BASH_VERSION$ZSH_VERSION" \
14737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14738 as_echo='print -r --'
14739 as_echo_n='print -rn --'
14740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14741 as_echo='printf %s\n'
14742 as_echo_n='printf %s'
14743else
14744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14746 as_echo_n='/usr/ucb/echo -n'
14747 else
14748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14749 as_echo_n_body='eval
14750 arg=$1;
14751 case $arg in #(
14752 *"$as_nl"*)
14753 expr "X$arg" : "X\\(.*\\)$as_nl";
14754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14755 esac;
14756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14757 '
14758 export as_echo_n_body
14759 as_echo_n='sh -c $as_echo_n_body as_echo'
14760 fi
14761 export as_echo_body
14762 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14763fi
14764
81ecdfbb
RW
14765# The user is always right.
14766if test "${PATH_SEPARATOR+set}" != set; then
14767 PATH_SEPARATOR=:
14768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14770 PATH_SEPARATOR=';'
14771 }
14772fi
14773
14774
14775# IFS
14776# We need space, tab and new line, in precisely that order. Quoting is
14777# there to prevent editors from complaining about space-tab.
14778# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14779# splitting by setting IFS to empty value.)
14780IFS=" "" $as_nl"
14781
14782# Find who we are. Look in the path if we contain no directory separator.
14783case $0 in #((
14784 *[\\/]* ) as_myself=$0 ;;
14785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786for as_dir in $PATH
14787do
14788 IFS=$as_save_IFS
14789 test -z "$as_dir" && as_dir=.
14790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14791 done
14792IFS=$as_save_IFS
14793
14794 ;;
14795esac
14796# We did not find ourselves, most probably we were run as `sh COMMAND'
14797# in which case we are not to be found in the path.
14798if test "x$as_myself" = x; then
14799 as_myself=$0
14800fi
14801if test ! -f "$as_myself"; then
14802 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14803 exit 1
14804fi
13b2be9c 14805
81ecdfbb
RW
14806# Unset variables that we do not need and which cause bugs (e.g. in
14807# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14808# suppresses any "Segmentation fault" message there. '((' could
14809# trigger a bug in pdksh 5.2.14.
14810for as_var in BASH_ENV ENV MAIL MAILPATH
14811do eval test x\${$as_var+set} = xset \
14812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14813done
13b2be9c
DJ
14814PS1='$ '
14815PS2='> '
14816PS4='+ '
14817
14818# NLS nuisances.
81ecdfbb
RW
14819LC_ALL=C
14820export LC_ALL
14821LANGUAGE=C
14822export LANGUAGE
14823
14824# CDPATH.
14825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14826
14827
14828# as_fn_error ERROR [LINENO LOG_FD]
14829# ---------------------------------
14830# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14831# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14832# script with status $?, using 1 if that was 0.
14833as_fn_error ()
14834{
14835 as_status=$?; test $as_status -eq 0 && as_status=1
14836 if test "$3"; then
14837 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14838 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14839 fi
81ecdfbb
RW
14840 $as_echo "$as_me: error: $1" >&2
14841 as_fn_exit $as_status
14842} # as_fn_error
14843
14844
14845# as_fn_set_status STATUS
14846# -----------------------
14847# Set $? to STATUS, without forking.
14848as_fn_set_status ()
14849{
14850 return $1
14851} # as_fn_set_status
14852
14853# as_fn_exit STATUS
14854# -----------------
14855# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14856as_fn_exit ()
14857{
14858 set +e
14859 as_fn_set_status $1
14860 exit $1
14861} # as_fn_exit
14862
14863# as_fn_unset VAR
14864# ---------------
14865# Portably unset VAR.
14866as_fn_unset ()
14867{
14868 { eval $1=; unset $1;}
14869}
14870as_unset=as_fn_unset
14871# as_fn_append VAR VALUE
14872# ----------------------
14873# Append the text in VALUE to the end of the definition contained in VAR. Take
14874# advantage of any shell optimizations that allow amortized linear growth over
14875# repeated appends, instead of the typical quadratic growth present in naive
14876# implementations.
14877if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14878 eval 'as_fn_append ()
14879 {
14880 eval $1+=\$2
14881 }'
14882else
14883 as_fn_append ()
14884 {
14885 eval $1=\$$1\$2
14886 }
14887fi # as_fn_append
14888
14889# as_fn_arith ARG...
14890# ------------------
14891# Perform arithmetic evaluation on the ARGs, and store the result in the
14892# global $as_val. Take advantage of shells that can avoid forks. The arguments
14893# must be portable across $(()) and expr.
14894if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14895 eval 'as_fn_arith ()
14896 {
14897 as_val=$(( $* ))
14898 }'
14899else
14900 as_fn_arith ()
14901 {
14902 as_val=`expr "$@" || test $? -eq 1`
14903 }
14904fi # as_fn_arith
14905
13b2be9c 14906
81ecdfbb
RW
14907if expr a : '\(a\)' >/dev/null 2>&1 &&
14908 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14909 as_expr=expr
14910else
14911 as_expr=false
14912fi
14913
81ecdfbb 14914if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14915 as_basename=basename
14916else
14917 as_basename=false
14918fi
14919
81ecdfbb
RW
14920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14921 as_dirname=dirname
14922else
14923 as_dirname=false
14924fi
13b2be9c 14925
81ecdfbb 14926as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14928 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14929 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14930$as_echo X/"$0" |
14931 sed '/^.*\/\([^/][^/]*\)\/*$/{
14932 s//\1/
14933 q
14934 }
14935 /^X\/\(\/\/\)$/{
14936 s//\1/
14937 q
14938 }
14939 /^X\/\(\/\).*/{
14940 s//\1/
14941 q
14942 }
14943 s/.*/./; q'`
13b2be9c 14944
13b2be9c
DJ
14945# Avoid depending upon Character Ranges.
14946as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14948as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14949as_cr_digits='0123456789'
14950as_cr_alnum=$as_cr_Letters$as_cr_digits
14951
81ecdfbb
RW
14952ECHO_C= ECHO_N= ECHO_T=
14953case `echo -n x` in #(((((
14954-n*)
14955 case `echo 'xy\c'` in
14956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14957 xy) ECHO_C='\c';;
14958 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14959 ECHO_T=' ';;
14960 esac;;
14961*)
14962 ECHO_N='-n';;
13b2be9c 14963esac
252b5132 14964
81ecdfbb
RW
14965rm -f conf$$ conf$$.exe conf$$.file
14966if test -d conf$$.dir; then
14967 rm -f conf$$.dir/conf$$.file
252b5132 14968else
81ecdfbb
RW
14969 rm -f conf$$.dir
14970 mkdir conf$$.dir 2>/dev/null
252b5132 14971fi
81ecdfbb
RW
14972if (echo >conf$$.file) 2>/dev/null; then
14973 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14974 as_ln_s='ln -s'
81ecdfbb
RW
14975 # ... but there are two gotchas:
14976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14978 # In both cases, we have to default to `cp -p'.
14979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14980 as_ln_s='cp -p'
14981 elif ln conf$$.file conf$$ 2>/dev/null; then
14982 as_ln_s=ln
14983 else
14984 as_ln_s='cp -p'
13b2be9c 14985 fi
13b2be9c
DJ
14986else
14987 as_ln_s='cp -p'
252b5132 14988fi
81ecdfbb
RW
14989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14990rmdir conf$$.dir 2>/dev/null
252b5132 14991
81ecdfbb
RW
14992
14993# as_fn_mkdir_p
14994# -------------
14995# Create "$as_dir" as a directory, including parents if necessary.
14996as_fn_mkdir_p ()
14997{
14998
14999 case $as_dir in #(
15000 -*) as_dir=./$as_dir;;
15001 esac
15002 test -d "$as_dir" || eval $as_mkdir_p || {
15003 as_dirs=
15004 while :; do
15005 case $as_dir in #(
15006 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15007 *) as_qdir=$as_dir;;
15008 esac
15009 as_dirs="'$as_qdir' $as_dirs"
15010 as_dir=`$as_dirname -- "$as_dir" ||
15011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012 X"$as_dir" : 'X\(//\)[^/]' \| \
15013 X"$as_dir" : 'X\(//\)$' \| \
15014 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15015$as_echo X"$as_dir" |
15016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\/\)[^/].*/{
15021 s//\1/
15022 q
15023 }
15024 /^X\(\/\/\)$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\).*/{
15029 s//\1/
15030 q
15031 }
15032 s/.*/./; q'`
15033 test -d "$as_dir" && break
15034 done
15035 test -z "$as_dirs" || eval "mkdir $as_dirs"
15036 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15037
15038
15039} # as_fn_mkdir_p
13b2be9c 15040if mkdir -p . 2>/dev/null; then
81ecdfbb 15041 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15042else
ab509236 15043 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15044 as_mkdir_p=false
15045fi
81ecdfbb
RW
15046
15047if test -x / >/dev/null 2>&1; then
15048 as_test_x='test -x'
15049else
15050 if ls -dL / >/dev/null 2>&1; then
15051 as_ls_L_option=L
15052 else
15053 as_ls_L_option=
15054 fi
15055 as_test_x='
15056 eval sh -c '\''
15057 if test -d "$1"; then
15058 test -d "$1/.";
15059 else
15060 case $1 in #(
15061 -*)set "./$1";;
15062 esac;
15063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15064 ???[sx]*):;;*)false;;esac;fi
15065 '\'' sh
15066 '
15067fi
15068as_executable_p=$as_test_x
252b5132 15069
13b2be9c 15070# Sed expression to map a string onto a valid CPP name.
ab509236 15071as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15072
13b2be9c 15073# Sed expression to map a string onto a valid variable name.
ab509236 15074as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15075
d6d788bd 15076
13b2be9c 15077exec 6>&1
81ecdfbb
RW
15078## ----------------------------------- ##
15079## Main body of $CONFIG_STATUS script. ##
15080## ----------------------------------- ##
15081_ASEOF
15082test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15083
81ecdfbb
RW
15084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15085# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15086# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15087# values after options handling.
15088ac_log="
d8bd95ef 15089This file was extended by gas $as_me 2.26.51, which was
81ecdfbb 15090generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15091
13b2be9c
DJ
15092 CONFIG_FILES = $CONFIG_FILES
15093 CONFIG_HEADERS = $CONFIG_HEADERS
15094 CONFIG_LINKS = $CONFIG_LINKS
15095 CONFIG_COMMANDS = $CONFIG_COMMANDS
15096 $ $0 $@
252b5132 15097
81ecdfbb
RW
15098on `(hostname || uname -n) 2>/dev/null | sed 1q`
15099"
15100
13b2be9c 15101_ACEOF
252b5132 15102
81ecdfbb
RW
15103case $ac_config_files in *"
15104"*) set x $ac_config_files; shift; ac_config_files=$*;;
15105esac
13b2be9c 15106
81ecdfbb
RW
15107case $ac_config_headers in *"
15108"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15109esac
252b5132 15110
252b5132 15111
81ecdfbb
RW
15112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113# Files that config.status was made for.
15114config_files="$ac_config_files"
15115config_headers="$ac_config_headers"
15116config_commands="$ac_config_commands"
d6d788bd 15117
81ecdfbb 15118_ACEOF
252b5132 15119
81ecdfbb 15120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15121ac_cs_usage="\
81ecdfbb
RW
15122\`$as_me' instantiates files and other configuration actions
15123from templates according to the current configuration. Unless the files
15124and actions are specified as TAGs, all are instantiated by default.
252b5132 15125
81ecdfbb 15126Usage: $0 [OPTION]... [TAG]...
252b5132 15127
13b2be9c 15128 -h, --help print this help, then exit
81ecdfbb
RW
15129 -V, --version print version number and configuration settings, then exit
15130 -q, --quiet, --silent
15131 do not print progress messages
13b2be9c
DJ
15132 -d, --debug don't remove temporary files
15133 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15134 --file=FILE[:TEMPLATE]
15135 instantiate the configuration file FILE
15136 --header=FILE[:TEMPLATE]
15137 instantiate the configuration header FILE
252b5132 15138
13b2be9c
DJ
15139Configuration files:
15140$config_files
252b5132 15141
13b2be9c
DJ
15142Configuration headers:
15143$config_headers
252b5132 15144
13b2be9c
DJ
15145Configuration commands:
15146$config_commands
252b5132 15147
81ecdfbb 15148Report bugs to the package provider."
d6d788bd 15149
81ecdfbb
RW
15150_ACEOF
15151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15152ac_cs_version="\\
d8bd95ef 15153gas config.status 2.26.51
81ecdfbb
RW
15154configured by $0, generated by GNU Autoconf 2.64,
15155 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15156
81ecdfbb 15157Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15158This config.status script is free software; the Free Software Foundation
15159gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15160
15161ac_pwd='$ac_pwd'
15162srcdir='$srcdir'
15163INSTALL='$INSTALL'
15164MKDIR_P='$MKDIR_P'
15165AWK='$AWK'
15166test -n "\$AWK" || AWK=awk
13b2be9c 15167_ACEOF
d6d788bd 15168
81ecdfbb
RW
15169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15171ac_need_defaults=:
15172while test $# != 0
15173do
15174 case $1 in
15175 --*=*)
81ecdfbb
RW
15176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15178 ac_shift=:
c8615825 15179 ;;
81ecdfbb 15180 *)
13b2be9c
DJ
15181 ac_option=$1
15182 ac_optarg=$2
15183 ac_shift=shift
c8615825 15184 ;;
13b2be9c 15185 esac
252b5132 15186
13b2be9c
DJ
15187 case $ac_option in
15188 # Handling of the options.
13b2be9c
DJ
15189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15190 ac_cs_recheck=: ;;
81ecdfbb
RW
15191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15192 $as_echo "$ac_cs_version"; exit ;;
15193 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15194 debug=: ;;
15195 --file | --fil | --fi | --f )
15196 $ac_shift
81ecdfbb
RW
15197 case $ac_optarg in
15198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15199 esac
15200 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15201 ac_need_defaults=false;;
15202 --header | --heade | --head | --hea )
15203 $ac_shift
81ecdfbb
RW
15204 case $ac_optarg in
15205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15206 esac
15207 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15208 ac_need_defaults=false;;
81ecdfbb
RW
15209 --he | --h)
15210 # Conflict between --help and --header
15211 as_fn_error "ambiguous option: \`$1'
15212Try \`$0 --help' for more information.";;
15213 --help | --hel | -h )
15214 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15217 ac_cs_silent=: ;;
c8615825 15218
13b2be9c 15219 # This is an error.
81ecdfbb
RW
15220 -*) as_fn_error "unrecognized option: \`$1'
15221Try \`$0 --help' for more information." ;;
252b5132 15222
81ecdfbb
RW
15223 *) as_fn_append ac_config_targets " $1"
15224 ac_need_defaults=false ;;
252b5132 15225
13b2be9c
DJ
15226 esac
15227 shift
15228done
252b5132 15229
13b2be9c 15230ac_configure_extra_args=
d6d788bd 15231
13b2be9c
DJ
15232if $ac_cs_silent; then
15233 exec 6>/dev/null
15234 ac_configure_extra_args="$ac_configure_extra_args --silent"
15235fi
9b2b7d69 15236
13b2be9c 15237_ACEOF
81ecdfbb 15238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15239if \$ac_cs_recheck; then
81ecdfbb
RW
15240 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15241 shift
15242 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15243 CONFIG_SHELL='$SHELL'
15244 export CONFIG_SHELL
15245 exec "\$@"
13b2be9c
DJ
15246fi
15247
15248_ACEOF
81ecdfbb
RW
15249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250exec 5>>config.log
15251{
15252 echo
15253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15254## Running $as_me. ##
15255_ASBOX
15256 $as_echo "$ac_log"
15257} >&5
13b2be9c 15258
81ecdfbb
RW
15259_ACEOF
15260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15261#
81ecdfbb 15262# INIT-COMMANDS
9b2b7d69 15263#
13b2be9c 15264AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15265
15266
15267# The HP-UX ksh and POSIX shell print the target directory to stdout
15268# if CDPATH is set.
15269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271sed_quote_subst='$sed_quote_subst'
15272double_quote_subst='$double_quote_subst'
15273delay_variable_subst='$delay_variable_subst'
3725885a
RW
15274macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15275macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15276enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15277enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15278pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15279enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15280SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15281ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15282host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15283host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15284host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15285build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15286build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15287build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15288SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15289Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15290GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15291EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15292FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15293LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15294NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15295LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15296max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15297ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15298exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15299lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15300lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15301lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15304OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15305deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15306file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15307AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15308AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15309STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15310RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15311old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15312old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15313old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15314lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15315CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15316CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15317compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15318GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15319lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15320lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15321lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15322lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15323objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15324MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15325lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15326lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15327lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15328lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15329lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15330need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15331DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15332NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15333LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15334OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15335OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15336libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15337shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15338extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15339archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15340enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15341export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15342whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15343compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15344old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15345old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15346archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15347archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15348module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15349module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15350with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15351allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15352no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15353hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15354hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15355hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15356hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15357hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15358hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15359hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15360hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15361inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15362link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15363fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15364always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15365export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15366exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15367include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15368prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15369file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15370variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15371need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15372need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15373version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15374runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15375shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15376shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15377libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15378library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15379soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15380install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15381postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15382postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15383finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15384finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15385hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15386sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15387sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15388hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15389enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15390enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15391enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15392old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15393striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15394
15395LTCC='$LTCC'
15396LTCFLAGS='$LTCFLAGS'
15397compiler='$compiler_DEFAULT'
15398
3725885a
RW
15399# A function that is used when there is no print builtin or printf.
15400func_fallback_echo ()
15401{
15402 eval 'cat <<_LTECHO_EOF
15403\$1
15404_LTECHO_EOF'
15405}
15406
d7040cdb 15407# Quote evaled strings.
3725885a
RW
15408for var in SHELL \
15409ECHO \
15410SED \
d7040cdb
SE
15411GREP \
15412EGREP \
15413FGREP \
15414LD \
15415NM \
15416LN_S \
15417lt_SP2NL \
15418lt_NL2SP \
15419reload_flag \
718a6fd8 15420OBJDUMP \
d7040cdb
SE
15421deplibs_check_method \
15422file_magic_cmd \
15423AR \
15424AR_FLAGS \
15425STRIP \
15426RANLIB \
15427CC \
15428CFLAGS \
15429compiler \
15430lt_cv_sys_global_symbol_pipe \
15431lt_cv_sys_global_symbol_to_cdecl \
15432lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15433lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15434lt_prog_compiler_no_builtin_flag \
df7b86aa 15435lt_prog_compiler_wl \
f2c621e4 15436lt_prog_compiler_pic \
d7040cdb
SE
15437lt_prog_compiler_static \
15438lt_cv_prog_compiler_c_o \
15439need_locks \
718a6fd8
SE
15440DSYMUTIL \
15441NMEDIT \
15442LIPO \
15443OTOOL \
15444OTOOL64 \
d7040cdb
SE
15445shrext_cmds \
15446export_dynamic_flag_spec \
15447whole_archive_flag_spec \
15448compiler_needs_object \
15449with_gnu_ld \
15450allow_undefined_flag \
15451no_undefined_flag \
15452hardcode_libdir_flag_spec \
15453hardcode_libdir_flag_spec_ld \
15454hardcode_libdir_separator \
f2c621e4 15455fix_srcfile_path \
d7040cdb
SE
15456exclude_expsyms \
15457include_expsyms \
15458file_list_spec \
15459variables_saved_for_relink \
15460libname_spec \
15461library_names_spec \
15462soname_spec \
3725885a 15463install_override_mode \
d7040cdb
SE
15464finish_eval \
15465old_striplib \
15466striplib; do
3725885a 15467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15468 *[\\\\\\\`\\"\\\$]*)
3725885a 15469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15470 ;;
15471 *)
15472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15473 ;;
15474 esac
15475done
15476
15477# Double-quote double-evaled strings.
15478for var in reload_cmds \
15479old_postinstall_cmds \
15480old_postuninstall_cmds \
15481old_archive_cmds \
15482extract_expsyms_cmds \
15483old_archive_from_new_cmds \
15484old_archive_from_expsyms_cmds \
15485archive_cmds \
15486archive_expsym_cmds \
15487module_cmds \
15488module_expsym_cmds \
15489export_symbols_cmds \
15490prelink_cmds \
15491postinstall_cmds \
15492postuninstall_cmds \
15493finish_cmds \
15494sys_lib_search_path_spec \
15495sys_lib_dlsearch_path_spec; do
3725885a 15496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15497 *[\\\\\\\`\\"\\\$]*)
3725885a 15498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15499 ;;
15500 *)
15501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15502 ;;
15503 esac
15504done
15505
d7040cdb
SE
15506ac_aux_dir='$ac_aux_dir'
15507xsi_shell='$xsi_shell'
15508lt_shell_append='$lt_shell_append'
15509
15510# See if we are running on zsh, and set the options which allow our
15511# commands through without removal of \ escapes INIT.
15512if test -n "\${ZSH_VERSION+set}" ; then
15513 setopt NO_GLOB_SUBST
15514fi
15515
15516
15517 PACKAGE='$PACKAGE'
15518 VERSION='$VERSION'
15519 TIMESTAMP='$TIMESTAMP'
15520 RM='$RM'
15521 ofile='$ofile'
15522
15523
15524
20e95c23
DJ
15525# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15526 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15527 # from automake.
15528 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15529 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15530 LINGUAS="${LINGUAS-%UNSET%}"
15531
13b2be9c
DJ
15532target_cpu_type=${target_cpu_type}
15533 cgen_cpu_prefix=${cgen_cpu_prefix}
15534 obj_format=${obj_format}
15535 te_file=${te_file}
15536
15537_ACEOF
15538
81ecdfbb 15539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15540
81ecdfbb 15541# Handling of arguments.
13b2be9c 15542for ac_config_target in $ac_config_targets
9b2b7d69 15543do
81ecdfbb
RW
15544 case $ac_config_target in
15545 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15546 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15547 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15548 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15549 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15550 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15551 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15552 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15553 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15554 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15555
15556 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15557 esac
15558done
15559
81ecdfbb 15560
13b2be9c
DJ
15561# If the user did not use the arguments to specify the items to instantiate,
15562# then the envvar interface is used. Set only those that are not.
15563# We use the long form for the default assignment because of an extremely
15564# bizarre bug on SunOS 4.1.3.
15565if $ac_need_defaults; then
15566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15568 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15569fi
15570
15571# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15572# simply because there is no reason against having it here, and in addition,
13b2be9c 15573# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15574# Hook for its removal unless debugging.
15575# Note that there is a small window in which the directory will not be cleaned:
15576# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15577$debug ||
15578{
81ecdfbb
RW
15579 tmp=
15580 trap 'exit_status=$?
15581 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15582' 0
15583 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15584}
13b2be9c 15585# Create a (secure) tmp directory for tmp files.
9b2b7d69 15586
13b2be9c 15587{
81ecdfbb 15588 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15589 test -n "$tmp" && test -d "$tmp"
15590} ||
15591{
81ecdfbb
RW
15592 tmp=./conf$$-$RANDOM
15593 (umask 077 && mkdir "$tmp")
15594} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15595
15596# Set up the scripts for CONFIG_FILES section.
15597# No need to generate them if there are no CONFIG_FILES.
15598# This happens for instance with `./config.status config.h'.
15599if test -n "$CONFIG_FILES"; then
15600
15601
15602ac_cr=`echo X | tr X '\015'`
15603# On cygwin, bash can eat \r inside `` if the user requested igncr.
15604# But we know of no other shell where ac_cr would be empty at this
15605# point, so we can use a bashism as a fallback.
15606if test "x$ac_cr" = x; then
15607 eval ac_cr=\$\'\\r\'
15608fi
15609ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15610if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15611 ac_cs_awk_cr='\r'
15612else
15613 ac_cs_awk_cr=$ac_cr
15614fi
15615
15616echo 'BEGIN {' >"$tmp/subs1.awk" &&
15617_ACEOF
15618
15619
15620{
15621 echo "cat >conf$$subs.awk <<_ACEOF" &&
15622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15623 echo "_ACEOF"
15624} >conf$$subs.sh ||
15625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15626ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15627ac_delim='%!_!# '
15628for ac_last_try in false false false false false :; do
15629 . ./conf$$subs.sh ||
15630 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15631
15632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15633 if test $ac_delim_n = $ac_delim_num; then
15634 break
15635 elif $ac_last_try; then
15636 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15637 else
15638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15639 fi
15640done
15641rm -f conf$$subs.sh
15642
15643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15644cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15645_ACEOF
15646sed -n '
15647h
15648s/^/S["/; s/!.*/"]=/
15649p
15650g
15651s/^[^!]*!//
15652:repl
15653t repl
15654s/'"$ac_delim"'$//
15655t delim
15656:nl
15657h
15658s/\(.\{148\}\).*/\1/
15659t more1
15660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15661p
15662n
15663b repl
15664:more1
15665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15666p
15667g
15668s/.\{148\}//
15669t nl
15670:delim
15671h
15672s/\(.\{148\}\).*/\1/
15673t more2
15674s/["\\]/\\&/g; s/^/"/; s/$/"/
15675p
15676b
15677:more2
15678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15679p
15680g
15681s/.\{148\}//
15682t delim
15683' <conf$$subs.awk | sed '
15684/^[^""]/{
15685 N
15686 s/\n//
15687}
15688' >>$CONFIG_STATUS || ac_write_fail=1
15689rm -f conf$$subs.awk
15690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691_ACAWK
15692cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15693 for (key in S) S_is_set[key] = 1
15694 FS = "\a"
15695
15696}
13b2be9c 15697{
81ecdfbb
RW
15698 line = $ 0
15699 nfields = split(line, field, "@")
15700 substed = 0
15701 len = length(field[1])
15702 for (i = 2; i < nfields; i++) {
15703 key = field[i]
15704 keylen = length(key)
15705 if (S_is_set[key]) {
15706 value = S[key]
15707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15708 len += length(value) + length(field[++i])
15709 substed = 1
15710 } else
15711 len += 1 + keylen
15712 }
15713
15714 print line
13b2be9c 15715}
9b2b7d69 15716
81ecdfbb
RW
15717_ACAWK
15718_ACEOF
15719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15720if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15721 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15722else
15723 cat
15724fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15725 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15726_ACEOF
15727
81ecdfbb
RW
15728# VPATH may cause trouble with some makes, so we remove $(srcdir),
15729# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15730# trailing colons and then remove the whole line if VPATH becomes empty
15731# (actually we leave an empty line to preserve line numbers).
15732if test "x$srcdir" = x.; then
15733 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15734s/:*\$(srcdir):*/:/
15735s/:*\${srcdir}:*/:/
15736s/:*@srcdir@:*/:/
15737s/^\([^=]*=[ ]*\):*/\1/
15738s/:*$//
15739s/^[^=]*=[ ]*$//
15740}'
15741fi
15742
15743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744fi # test -n "$CONFIG_FILES"
13b2be9c 15745
81ecdfbb
RW
15746# Set up the scripts for CONFIG_HEADERS section.
15747# No need to generate them if there are no CONFIG_HEADERS.
15748# This happens for instance with `./config.status Makefile'.
15749if test -n "$CONFIG_HEADERS"; then
15750cat >"$tmp/defines.awk" <<\_ACAWK ||
15751BEGIN {
15752_ACEOF
13b2be9c 15753
81ecdfbb
RW
15754# Transform confdefs.h into an awk script `defines.awk', embedded as
15755# here-document in config.status, that substitutes the proper values into
15756# config.h.in to produce config.h.
9b2b7d69 15757
81ecdfbb
RW
15758# Create a delimiter string that does not exist in confdefs.h, to ease
15759# handling of long lines.
15760ac_delim='%!_!# '
15761for ac_last_try in false false :; do
15762 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15763 if test -z "$ac_t"; then
15764 break
15765 elif $ac_last_try; then
15766 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15767 else
15768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15769 fi
15770done
15771
15772# For the awk script, D is an array of macro values keyed by name,
15773# likewise P contains macro parameters if any. Preserve backslash
15774# newline sequences.
15775
15776ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15777sed -n '
15778s/.\{148\}/&'"$ac_delim"'/g
15779t rset
15780:rset
15781s/^[ ]*#[ ]*define[ ][ ]*/ /
15782t def
15783d
15784:def
15785s/\\$//
15786t bsnl
15787s/["\\]/\\&/g
15788s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15789D["\1"]=" \3"/p
15790s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15791d
15792:bsnl
15793s/["\\]/\\&/g
15794s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15795D["\1"]=" \3\\\\\\n"\\/p
15796t cont
15797s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15798t cont
15799d
15800:cont
15801n
15802s/.\{148\}/&'"$ac_delim"'/g
15803t clear
15804:clear
15805s/\\$//
15806t bsnlc
15807s/["\\]/\\&/g; s/^/"/; s/$/"/p
15808d
15809:bsnlc
15810s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15811b cont
15812' <confdefs.h | sed '
15813s/'"$ac_delim"'/"\\\
15814"/g' >>$CONFIG_STATUS || ac_write_fail=1
15815
15816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817 for (key in D) D_is_set[key] = 1
15818 FS = "\a"
15819}
15820/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15821 line = \$ 0
15822 split(line, arg, " ")
15823 if (arg[1] == "#") {
15824 defundef = arg[2]
15825 mac1 = arg[3]
15826 } else {
15827 defundef = substr(arg[1], 2)
15828 mac1 = arg[2]
15829 }
15830 split(mac1, mac2, "(") #)
15831 macro = mac2[1]
15832 prefix = substr(line, 1, index(line, defundef) - 1)
15833 if (D_is_set[macro]) {
15834 # Preserve the white space surrounding the "#".
15835 print prefix "define", macro P[macro] D[macro]
15836 next
15837 } else {
15838 # Replace #undef with comments. This is necessary, for example,
15839 # in the case of _POSIX_SOURCE, which is predefined and required
15840 # on some systems where configure will not decide to define it.
15841 if (defundef == "undef") {
15842 print "/*", prefix defundef, macro, "*/"
15843 next
15844 }
15845 }
15846}
15847{ print }
15848_ACAWK
13b2be9c 15849_ACEOF
81ecdfbb
RW
15850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15852fi # test -n "$CONFIG_HEADERS"
13b2be9c 15853
81ecdfbb
RW
15854
15855eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15856shift
15857for ac_tag
15858do
15859 case $ac_tag in
15860 :[FHLC]) ac_mode=$ac_tag; continue;;
15861 esac
15862 case $ac_mode$ac_tag in
15863 :[FHL]*:*);;
15864 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15865 :[FH]-) ac_tag=-:-;;
15866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15867 esac
15868 ac_save_IFS=$IFS
15869 IFS=:
15870 set x $ac_tag
15871 IFS=$ac_save_IFS
15872 shift
15873 ac_file=$1
15874 shift
15875
15876 case $ac_mode in
15877 :L) ac_source=$1;;
15878 :[FH])
15879 ac_file_inputs=
15880 for ac_f
15881 do
15882 case $ac_f in
15883 -) ac_f="$tmp/stdin";;
15884 *) # Look for the file first in the build tree, then in the source tree
15885 # (if the path is not absolute). The absolute path cannot be DOS-style,
15886 # because $ac_f cannot contain `:'.
15887 test -f "$ac_f" ||
15888 case $ac_f in
15889 [\\/$]*) false;;
15890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15891 esac ||
15892 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15893 esac
15894 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15895 as_fn_append ac_file_inputs " '$ac_f'"
15896 done
15897
15898 # Let's still pretend it is `configure' which instantiates (i.e., don't
15899 # use $as_me), people would be surprised to read:
15900 # /* config.h. Generated by config.status. */
15901 configure_input='Generated from '`
15902 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15903 `' by configure.'
15904 if test x"$ac_file" != x-; then
15905 configure_input="$ac_file. $configure_input"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15907$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15908 fi
81ecdfbb
RW
15909 # Neutralize special characters interpreted by sed in replacement strings.
15910 case $configure_input in #(
15911 *\&* | *\|* | *\\* )
15912 ac_sed_conf_input=`$as_echo "$configure_input" |
15913 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15914 *) ac_sed_conf_input=$configure_input;;
15915 esac
252b5132 15916
81ecdfbb
RW
15917 case $ac_tag in
15918 *:-:* | *:-) cat >"$tmp/stdin" \
15919 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15920 esac
15921 ;;
252b5132 15922 esac
9b2b7d69 15923
81ecdfbb 15924 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15926 X"$ac_file" : 'X\(//\)[^/]' \| \
15927 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15928 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15929$as_echo X"$ac_file" |
15930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15931 s//\1/
15932 q
15933 }
15934 /^X\(\/\/\)[^/].*/{
15935 s//\1/
15936 q
15937 }
15938 /^X\(\/\/\)$/{
15939 s//\1/
15940 q
15941 }
15942 /^X\(\/\).*/{
15943 s//\1/
15944 q
15945 }
15946 s/.*/./; q'`
15947 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15948 ac_builddir=.
15949
81ecdfbb
RW
15950case "$ac_dir" in
15951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15952*)
15953 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15954 # A ".." for each directory in $ac_dir_suffix.
15955 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15956 case $ac_top_builddir_sub in
15957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15959 esac ;;
15960esac
15961ac_abs_top_builddir=$ac_pwd
15962ac_abs_builddir=$ac_pwd$ac_dir_suffix
15963# for backward compatibility:
15964ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15965
13b2be9c 15966case $srcdir in
81ecdfbb 15967 .) # We are building in place.
13b2be9c 15968 ac_srcdir=.
81ecdfbb
RW
15969 ac_top_srcdir=$ac_top_builddir_sub
15970 ac_abs_top_srcdir=$ac_pwd ;;
15971 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15972 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15973 ac_top_srcdir=$srcdir
15974 ac_abs_top_srcdir=$srcdir ;;
15975 *) # Relative name.
15976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15977 ac_top_srcdir=$ac_top_build_prefix$srcdir
15978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15979esac
81ecdfbb 15980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15981
252b5132 15982
81ecdfbb
RW
15983 case $ac_mode in
15984 :F)
15985 #
15986 # CONFIG_FILE
15987 #
9b2b7d69 15988
13b2be9c
DJ
15989 case $INSTALL in
15990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15992 esac
15993 ac_MKDIR_P=$MKDIR_P
15994 case $MKDIR_P in
15995 [\\/$]* | ?:[\\/]* ) ;;
15996 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 15997 esac
81ecdfbb 15998_ACEOF
9b2b7d69 15999
81ecdfbb
RW
16000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001# If the template does not know about datarootdir, expand it.
16002# FIXME: This hack should be removed a few years after 2.60.
16003ac_datarootdir_hack=; ac_datarootdir_seen=
16004ac_sed_dataroot='
16005/datarootdir/ {
16006 p
16007 q
16008}
16009/@datadir@/p
16010/@docdir@/p
16011/@infodir@/p
16012/@localedir@/p
16013/@mandir@/p'
16014case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16015*datarootdir*) ac_datarootdir_seen=yes;;
16016*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16018$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16019_ACEOF
16020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 ac_datarootdir_hack='
16022 s&@datadir@&$datadir&g
16023 s&@docdir@&$docdir&g
16024 s&@infodir@&$infodir&g
16025 s&@localedir@&$localedir&g
16026 s&@mandir@&$mandir&g
16027 s&\\\${datarootdir}&$datarootdir&g' ;;
16028esac
13b2be9c 16029_ACEOF
81ecdfbb
RW
16030
16031# Neutralize VPATH when `$srcdir' = `.'.
16032# Shell code in configure.ac might set extrasub.
16033# FIXME: do we really want to maintain this feature?
16034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16035ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16036$extrasub
16037_ACEOF
81ecdfbb 16038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16039:t
16040/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16041s|@configure_input@|$ac_sed_conf_input|;t t
16042s&@top_builddir@&$ac_top_builddir_sub&;t t
16043s&@top_build_prefix@&$ac_top_build_prefix&;t t
16044s&@srcdir@&$ac_srcdir&;t t
16045s&@abs_srcdir@&$ac_abs_srcdir&;t t
16046s&@top_srcdir@&$ac_top_srcdir&;t t
16047s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16048s&@builddir@&$ac_builddir&;t t
16049s&@abs_builddir@&$ac_abs_builddir&;t t
16050s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16051s&@INSTALL@&$ac_INSTALL&;t t
16052s&@MKDIR_P@&$ac_MKDIR_P&;t t
16053$ac_datarootdir_hack
16054"
16055eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16056 || as_fn_error "could not create $ac_file" "$LINENO" 5
16057
16058test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16062which seems to be undefined. Please make sure it is defined." >&5
16063$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16064which seems to be undefined. Please make sure it is defined." >&2;}
16065
16066 rm -f "$tmp/stdin"
13b2be9c 16067 case $ac_file in
81ecdfbb
RW
16068 -) cat "$tmp/out" && rm -f "$tmp/out";;
16069 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16070 esac \
16071 || as_fn_error "could not create $ac_file" "$LINENO" 5
16072 ;;
16073 :H)
16074 #
16075 # CONFIG_HEADER
16076 #
13b2be9c 16077 if test x"$ac_file" != x-; then
81ecdfbb
RW
16078 {
16079 $as_echo "/* $configure_input */" \
16080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16081 } >"$tmp/config.h" \
16082 || as_fn_error "could not create $ac_file" "$LINENO" 5
16083 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16085$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16086 else
81ecdfbb
RW
16087 rm -f "$ac_file"
16088 mv "$tmp/config.h" "$ac_file" \
16089 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16090 fi
13b2be9c 16091 else
81ecdfbb
RW
16092 $as_echo "/* $configure_input */" \
16093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16094 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16095 fi
81ecdfbb
RW
16096# Compute "$ac_file"'s index in $config_headers.
16097_am_arg="$ac_file"
13b2be9c
DJ
16098_am_stamp_count=1
16099for _am_header in $config_headers :; do
16100 case $_am_header in
81ecdfbb 16101 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16102 break ;;
16103 * )
16104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16105 esac
16106done
81ecdfbb
RW
16107echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16108$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16109 X"$_am_arg" : 'X\(//\)[^/]' \| \
16110 X"$_am_arg" : 'X\(//\)$' \| \
16111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16112$as_echo X"$_am_arg" |
16113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16114 s//\1/
16115 q
16116 }
16117 /^X\(\/\/\)[^/].*/{
16118 s//\1/
16119 q
16120 }
16121 /^X\(\/\/\)$/{
16122 s//\1/
16123 q
16124 }
16125 /^X\(\/\).*/{
16126 s//\1/
16127 q
16128 }
16129 s/.*/./; q'`/stamp-h$_am_stamp_count
16130 ;;
ab509236 16131
81ecdfbb
RW
16132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16133$as_echo "$as_me: executing $ac_file commands" >&6;}
16134 ;;
16135 esac
13b2be9c
DJ
16136
16137
81ecdfbb
RW
16138 case $ac_file$ac_mode in
16139 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16140 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16141 # are listed without --file. Let's play safe and only enable the eval
16142 # if we detect the quoting.
16143 case $CONFIG_FILES in
16144 *\'*) eval set x "$CONFIG_FILES" ;;
16145 *) set x $CONFIG_FILES ;;
16146 esac
16147 shift
16148 for mf
16149 do
16150 # Strip MF so we end up with the name of the file.
16151 mf=`echo "$mf" | sed -e 's/:.*$//'`
16152 # Check whether this is an Automake generated Makefile or not.
16153 # We used to match only the files named `Makefile.in', but
16154 # some people rename them; so instead we look at the file content.
16155 # Grep'ing the first line is not enough: some people post-process
16156 # each Makefile.in and add a new line on top of each file to say so.
16157 # Grep'ing the whole file is not good either: AIX grep has a line
16158 # limit of 2048, but all sed's we know have understand at least 4000.
16159 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16160 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16161$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16162 X"$mf" : 'X\(//\)[^/]' \| \
16163 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16164 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16165$as_echo X"$mf" |
16166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16167 s//\1/
16168 q
16169 }
16170 /^X\(\/\/\)[^/].*/{
16171 s//\1/
16172 q
16173 }
16174 /^X\(\/\/\)$/{
16175 s//\1/
16176 q
16177 }
16178 /^X\(\/\).*/{
16179 s//\1/
16180 q
16181 }
16182 s/.*/./; q'`
16183 else
16184 continue
16185 fi
16186 # Extract the definition of DEPDIR, am__include, and am__quote
16187 # from the Makefile without running `make'.
16188 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16189 test -z "$DEPDIR" && continue
16190 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16191 test -z "am__include" && continue
16192 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16193 # When using ansi2knr, U may be empty or an underscore; expand it
16194 U=`sed -n 's/^U = //p' < "$mf"`
16195 # Find all dependency output files, they are included files with
16196 # $(DEPDIR) in their names. We invoke sed twice because it is the
16197 # simplest approach to changing $(DEPDIR) to its actual value in the
16198 # expansion.
16199 for file in `sed -n "
16200 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16201 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16202 # Make sure the directory exists.
16203 test -f "$dirpart/$file" && continue
16204 fdir=`$as_dirname -- "$file" ||
13b2be9c 16205$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16206 X"$file" : 'X\(//\)[^/]' \| \
16207 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16208 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16209$as_echo X"$file" |
16210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16211 s//\1/
16212 q
16213 }
16214 /^X\(\/\/\)[^/].*/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\/\)$/{
16219 s//\1/
16220 q
16221 }
16222 /^X\(\/\).*/{
16223 s//\1/
16224 q
16225 }
16226 s/.*/./; q'`
16227 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16228 # echo "creating $dirpart/$file"
16229 echo '# dummy' > "$dirpart/$file"
13b2be9c 16230 done
13b2be9c 16231 done
81ecdfbb 16232}
d7040cdb 16233 ;;
81ecdfbb 16234 "libtool":C)
d7040cdb
SE
16235
16236 # See if we are running on zsh, and set the options which allow our
16237 # commands through without removal of \ escapes.
16238 if test -n "${ZSH_VERSION+set}" ; then
16239 setopt NO_GLOB_SUBST
16240 fi
16241
16242 cfgfile="${ofile}T"
16243 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16244 $RM "$cfgfile"
16245
16246 cat <<_LT_EOF >> "$cfgfile"
16247#! $SHELL
16248
16249# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16250# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16252# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16253#
718a6fd8 16254# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16255# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16256# Written by Gordon Matzigkeit, 1996
d7040cdb 16257#
718a6fd8 16258# This file is part of GNU Libtool.
d7040cdb 16259#
718a6fd8
SE
16260# GNU Libtool is free software; you can redistribute it and/or
16261# modify it under the terms of the GNU General Public License as
16262# published by the Free Software Foundation; either version 2 of
16263# the License, or (at your option) any later version.
d7040cdb 16264#
718a6fd8
SE
16265# As a special exception to the GNU General Public License,
16266# if you distribute this file as part of a program or library that
16267# is built using GNU Libtool, you may include this file under the
16268# same distribution terms that you use for the rest of that program.
d7040cdb 16269#
718a6fd8
SE
16270# GNU Libtool is distributed in the hope that it will be useful,
16271# but WITHOUT ANY WARRANTY; without even the implied warranty of
16272# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16273# GNU General Public License for more details.
d7040cdb 16274#
718a6fd8
SE
16275# You should have received a copy of the GNU General Public License
16276# along with GNU Libtool; see the file COPYING. If not, a copy
16277# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16278# obtained by writing to the Free Software Foundation, Inc.,
16279# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16280
16281
16282# The names of the tagged configurations supported by this script.
16283available_tags=""
16284
16285# ### BEGIN LIBTOOL CONFIG
16286
16287# Which release of libtool.m4 was used?
16288macro_version=$macro_version
16289macro_revision=$macro_revision
16290
16291# Whether or not to build shared libraries.
16292build_libtool_libs=$enable_shared
16293
16294# Whether or not to build static libraries.
16295build_old_libs=$enable_static
16296
16297# What type of objects to build.
16298pic_mode=$pic_mode
16299
16300# Whether or not to optimize for fast installation.
16301fast_install=$enable_fast_install
16302
3725885a
RW
16303# Shell to use when invoking shell scripts.
16304SHELL=$lt_SHELL
16305
16306# An echo program that protects backslashes.
16307ECHO=$lt_ECHO
16308
d7040cdb
SE
16309# The host system.
16310host_alias=$host_alias
16311host=$host
16312host_os=$host_os
16313
16314# The build system.
16315build_alias=$build_alias
16316build=$build
16317build_os=$build_os
16318
16319# A sed program that does not truncate output.
16320SED=$lt_SED
16321
16322# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16323Xsed="\$SED -e 1s/^X//"
16324
16325# A grep program that handles long lines.
16326GREP=$lt_GREP
16327
16328# An ERE matcher.
16329EGREP=$lt_EGREP
16330
16331# A literal string matcher.
16332FGREP=$lt_FGREP
16333
16334# A BSD- or MS-compatible name lister.
16335NM=$lt_NM
16336
16337# Whether we need soft or hard links.
16338LN_S=$lt_LN_S
16339
16340# What is the maximum length of a command?
16341max_cmd_len=$max_cmd_len
16342
16343# Object file suffix (normally "o").
16344objext=$ac_objext
16345
16346# Executable file suffix (normally "").
16347exeext=$exeext
16348
16349# whether the shell understands "unset".
16350lt_unset=$lt_unset
16351
16352# turn spaces into newlines.
16353SP2NL=$lt_lt_SP2NL
16354
16355# turn newlines into spaces.
16356NL2SP=$lt_lt_NL2SP
16357
718a6fd8
SE
16358# An object symbol dumper.
16359OBJDUMP=$lt_OBJDUMP
16360
d7040cdb
SE
16361# Method to check whether dependent libraries are shared objects.
16362deplibs_check_method=$lt_deplibs_check_method
16363
f2c621e4 16364# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16365file_magic_cmd=$lt_file_magic_cmd
16366
16367# The archiver.
16368AR=$lt_AR
16369AR_FLAGS=$lt_AR_FLAGS
16370
16371# A symbol stripping program.
16372STRIP=$lt_STRIP
16373
16374# Commands used to install an old-style archive.
16375RANLIB=$lt_RANLIB
16376old_postinstall_cmds=$lt_old_postinstall_cmds
16377old_postuninstall_cmds=$lt_old_postuninstall_cmds
16378
3725885a
RW
16379# Whether to use a lock for old archive extraction.
16380lock_old_archive_extraction=$lock_old_archive_extraction
16381
d7040cdb
SE
16382# A C compiler.
16383LTCC=$lt_CC
16384
16385# LTCC compiler flags.
16386LTCFLAGS=$lt_CFLAGS
16387
16388# Take the output of nm and produce a listing of raw symbols and C names.
16389global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16390
16391# Transform the output of nm in a proper C declaration.
16392global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16393
16394# Transform the output of nm in a C name address pair.
16395global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16396
718a6fd8
SE
16397# Transform the output of nm in a C name address pair when lib prefix is needed.
16398global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16399
d7040cdb
SE
16400# The name of the directory that contains temporary libtool files.
16401objdir=$objdir
16402
d7040cdb
SE
16403# Used to examine libraries when file_magic_cmd begins with "file".
16404MAGIC_CMD=$MAGIC_CMD
16405
16406# Must we lock files when doing compilation?
16407need_locks=$lt_need_locks
16408
718a6fd8
SE
16409# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16410DSYMUTIL=$lt_DSYMUTIL
16411
16412# Tool to change global to local symbols on Mac OS X.
16413NMEDIT=$lt_NMEDIT
16414
16415# Tool to manipulate fat objects and archives on Mac OS X.
16416LIPO=$lt_LIPO
16417
16418# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16419OTOOL=$lt_OTOOL
16420
16421# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16422OTOOL64=$lt_OTOOL64
16423
d7040cdb
SE
16424# Old archive suffix (normally "a").
16425libext=$libext
16426
16427# Shared library suffix (normally ".so").
16428shrext_cmds=$lt_shrext_cmds
16429
16430# The commands to extract the exported symbol list from a shared archive.
16431extract_expsyms_cmds=$lt_extract_expsyms_cmds
16432
16433# Variables whose values should be saved in libtool wrapper scripts and
16434# restored at link time.
16435variables_saved_for_relink=$lt_variables_saved_for_relink
16436
16437# Do we need the "lib" prefix for modules?
16438need_lib_prefix=$need_lib_prefix
16439
16440# Do we need a version for libraries?
16441need_version=$need_version
16442
16443# Library versioning type.
16444version_type=$version_type
16445
16446# Shared library runtime path variable.
16447runpath_var=$runpath_var
16448
16449# Shared library path variable.
16450shlibpath_var=$shlibpath_var
16451
16452# Is shlibpath searched before the hard-coded library search path?
16453shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16454
16455# Format of library name prefix.
16456libname_spec=$lt_libname_spec
16457
16458# List of archive names. First name is the real one, the rest are links.
16459# The last name is the one that the linker finds with -lNAME
16460library_names_spec=$lt_library_names_spec
16461
16462# The coded name of the library, if different from the real name.
16463soname_spec=$lt_soname_spec
16464
3725885a
RW
16465# Permission mode override for installation of shared libraries.
16466install_override_mode=$lt_install_override_mode
16467
d7040cdb
SE
16468# Command to use after installation of a shared archive.
16469postinstall_cmds=$lt_postinstall_cmds
16470
16471# Command to use after uninstallation of a shared archive.
16472postuninstall_cmds=$lt_postuninstall_cmds
16473
16474# Commands used to finish a libtool library installation in a directory.
16475finish_cmds=$lt_finish_cmds
16476
16477# As "finish_cmds", except a single script fragment to be evaled but
16478# not shown.
16479finish_eval=$lt_finish_eval
16480
16481# Whether we should hardcode library paths into libraries.
16482hardcode_into_libs=$hardcode_into_libs
16483
16484# Compile-time system search path for libraries.
16485sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16486
16487# Run-time system search path for libraries.
16488sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16489
16490# Whether dlopen is supported.
16491dlopen_support=$enable_dlopen
16492
16493# Whether dlopen of programs is supported.
16494dlopen_self=$enable_dlopen_self
16495
16496# Whether dlopen of statically linked programs is supported.
16497dlopen_self_static=$enable_dlopen_self_static
16498
16499# Commands to strip libraries.
16500old_striplib=$lt_old_striplib
16501striplib=$lt_striplib
16502
16503
16504# The linker used to build libraries.
16505LD=$lt_LD
16506
3725885a
RW
16507# How to create reloadable object files.
16508reload_flag=$lt_reload_flag
16509reload_cmds=$lt_reload_cmds
16510
d7040cdb
SE
16511# Commands used to build an old-style archive.
16512old_archive_cmds=$lt_old_archive_cmds
16513
16514# A language specific compiler.
16515CC=$lt_compiler
16516
16517# Is the compiler the GNU compiler?
16518with_gcc=$GCC
16519
16520# Compiler flag to turn off builtin functions.
16521no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16522
df7b86aa
NC
16523# How to pass a linker flag through the compiler.
16524wl=$lt_lt_prog_compiler_wl
16525
f2c621e4
AS
16526# Additional compiler flags for building library objects.
16527pic_flag=$lt_lt_prog_compiler_pic
16528
d7040cdb
SE
16529# Compiler flag to prevent dynamic linking.
16530link_static_flag=$lt_lt_prog_compiler_static
16531
16532# Does compiler simultaneously support -c and -o options?
16533compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16534
16535# Whether or not to add -lc for building shared libraries.
16536build_libtool_need_lc=$archive_cmds_need_lc
16537
16538# Whether or not to disallow shared libs when runtime libs are static.
16539allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16540
16541# Compiler flag to allow reflexive dlopens.
16542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16543
16544# Compiler flag to generate shared objects directly from archives.
16545whole_archive_flag_spec=$lt_whole_archive_flag_spec
16546
16547# Whether the compiler copes with passing no objects directly.
16548compiler_needs_object=$lt_compiler_needs_object
16549
16550# Create an old-style archive from a shared archive.
16551old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16552
16553# Create a temporary old-style archive to link instead of a shared archive.
16554old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16555
16556# Commands used to build a shared archive.
16557archive_cmds=$lt_archive_cmds
16558archive_expsym_cmds=$lt_archive_expsym_cmds
16559
16560# Commands used to build a loadable module if different from building
16561# a shared archive.
16562module_cmds=$lt_module_cmds
16563module_expsym_cmds=$lt_module_expsym_cmds
16564
16565# Whether we are building with GNU ld or not.
16566with_gnu_ld=$lt_with_gnu_ld
16567
16568# Flag that allows shared libraries with undefined symbols to be built.
16569allow_undefined_flag=$lt_allow_undefined_flag
16570
16571# Flag that enforces no undefined symbols.
16572no_undefined_flag=$lt_no_undefined_flag
16573
16574# Flag to hardcode \$libdir into a binary during linking.
16575# This must work even if \$libdir does not exist
16576hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16577
16578# If ld is used when linking, flag to hardcode \$libdir into a binary
16579# during linking. This must work even if \$libdir does not exist.
16580hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16581
16582# Whether we need a single "-rpath" flag with a separated argument.
16583hardcode_libdir_separator=$lt_hardcode_libdir_separator
16584
16585# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16586# DIR into the resulting binary.
16587hardcode_direct=$hardcode_direct
16588
16589# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16590# DIR into the resulting binary and the resulting library dependency is
16591# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16592# library is relocated.
16593hardcode_direct_absolute=$hardcode_direct_absolute
16594
16595# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16596# into the resulting binary.
16597hardcode_minus_L=$hardcode_minus_L
16598
16599# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16600# into the resulting binary.
16601hardcode_shlibpath_var=$hardcode_shlibpath_var
16602
16603# Set to "yes" if building a shared library automatically hardcodes DIR
16604# into the library and all subsequent libraries and executables linked
16605# against it.
16606hardcode_automatic=$hardcode_automatic
16607
16608# Set to yes if linker adds runtime paths of dependent libraries
16609# to runtime path list.
16610inherit_rpath=$inherit_rpath
16611
16612# Whether libtool must link a program against all its dependency libraries.
16613link_all_deplibs=$link_all_deplibs
16614
f2c621e4
AS
16615# Fix the shell variable \$srcfile for the compiler.
16616fix_srcfile_path=$lt_fix_srcfile_path
16617
d7040cdb
SE
16618# Set to "yes" if exported symbols are required.
16619always_export_symbols=$always_export_symbols
16620
16621# The commands to list exported symbols.
16622export_symbols_cmds=$lt_export_symbols_cmds
16623
16624# Symbols that should not be listed in the preloaded symbols.
16625exclude_expsyms=$lt_exclude_expsyms
16626
16627# Symbols that must always be exported.
16628include_expsyms=$lt_include_expsyms
16629
16630# Commands necessary for linking programs (against libraries) with templates.
16631prelink_cmds=$lt_prelink_cmds
16632
16633# Specify filename containing input files.
16634file_list_spec=$lt_file_list_spec
16635
16636# How to hardcode a shared library path into an executable.
16637hardcode_action=$hardcode_action
16638
16639# ### END LIBTOOL CONFIG
16640
16641_LT_EOF
16642
16643 case $host_os in
16644 aix3*)
16645 cat <<\_LT_EOF >> "$cfgfile"
16646# AIX sometimes has problems with the GCC collect2 program. For some
16647# reason, if we set the COLLECT_NAMES environment variable, the problems
16648# vanish in a puff of smoke.
16649if test "X${COLLECT_NAMES+set}" != Xset; then
16650 COLLECT_NAMES=
16651 export COLLECT_NAMES
16652fi
16653_LT_EOF
16654 ;;
16655 esac
16656
16657
16658ltmain="$ac_aux_dir/ltmain.sh"
16659
16660
16661 # We use sed instead of cat because bash on DJGPP gets confused if
16662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16663 # text mode, it properly converts lines to CR/LF. This bash problem
16664 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16665 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16666 || (rm -f "$cfgfile"; exit 1)
16667
16668 case $xsi_shell in
16669 yes)
16670 cat << \_LT_EOF >> "$cfgfile"
16671
16672# func_dirname file append nondir_replacement
16673# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16674# otherwise set result to NONDIR_REPLACEMENT.
16675func_dirname ()
16676{
16677 case ${1} in
16678 */*) func_dirname_result="${1%/*}${2}" ;;
16679 * ) func_dirname_result="${3}" ;;
16680 esac
16681}
16682
16683# func_basename file
16684func_basename ()
16685{
16686 func_basename_result="${1##*/}"
16687}
16688
16689# func_dirname_and_basename file append nondir_replacement
16690# perform func_basename and func_dirname in a single function
16691# call:
16692# dirname: Compute the dirname of FILE. If nonempty,
16693# add APPEND to the result, otherwise set result
16694# to NONDIR_REPLACEMENT.
16695# value returned in "$func_dirname_result"
16696# basename: Compute filename of FILE.
16697# value retuned in "$func_basename_result"
16698# Implementation must be kept synchronized with func_dirname
16699# and func_basename. For efficiency, we do not delegate to
16700# those functions but instead duplicate the functionality here.
16701func_dirname_and_basename ()
16702{
16703 case ${1} in
16704 */*) func_dirname_result="${1%/*}${2}" ;;
16705 * ) func_dirname_result="${3}" ;;
16706 esac
16707 func_basename_result="${1##*/}"
16708}
16709
16710# func_stripname prefix suffix name
16711# strip PREFIX and SUFFIX off of NAME.
16712# PREFIX and SUFFIX must not contain globbing or regex special
16713# characters, hashes, percent signs, but SUFFIX may contain a leading
16714# dot (in which case that matches only a dot).
16715func_stripname ()
16716{
16717 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16718 # positional parameters, so assign one to ordinary parameter first.
16719 func_stripname_result=${3}
16720 func_stripname_result=${func_stripname_result#"${1}"}
16721 func_stripname_result=${func_stripname_result%"${2}"}
16722}
16723
16724# func_opt_split
16725func_opt_split ()
16726{
16727 func_opt_split_opt=${1%%=*}
16728 func_opt_split_arg=${1#*=}
16729}
16730
16731# func_lo2o object
16732func_lo2o ()
16733{
16734 case ${1} in
16735 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16736 *) func_lo2o_result=${1} ;;
16737 esac
16738}
16739
16740# func_xform libobj-or-source
16741func_xform ()
16742{
16743 func_xform_result=${1%.*}.lo
16744}
16745
16746# func_arith arithmetic-term...
16747func_arith ()
16748{
16749 func_arith_result=$(( $* ))
16750}
16751
16752# func_len string
16753# STRING may not start with a hyphen.
16754func_len ()
16755{
16756 func_len_result=${#1}
16757}
16758
16759_LT_EOF
16760 ;;
16761 *) # Bourne compatible functions.
16762 cat << \_LT_EOF >> "$cfgfile"
16763
16764# func_dirname file append nondir_replacement
16765# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16766# otherwise set result to NONDIR_REPLACEMENT.
16767func_dirname ()
16768{
16769 # Extract subdirectory from the argument.
16770 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16771 if test "X$func_dirname_result" = "X${1}"; then
16772 func_dirname_result="${3}"
16773 else
16774 func_dirname_result="$func_dirname_result${2}"
16775 fi
16776}
16777
16778# func_basename file
16779func_basename ()
16780{
16781 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16782}
16783
16784
16785# func_stripname prefix suffix name
16786# strip PREFIX and SUFFIX off of NAME.
16787# PREFIX and SUFFIX must not contain globbing or regex special
16788# characters, hashes, percent signs, but SUFFIX may contain a leading
16789# dot (in which case that matches only a dot).
16790# func_strip_suffix prefix name
16791func_stripname ()
16792{
16793 case ${2} in
16794 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16795 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16796 esac
16797}
16798
16799# sed scripts:
16800my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16801my_sed_long_arg='1s/^-[^=]*=//'
16802
16803# func_opt_split
16804func_opt_split ()
16805{
16806 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16807 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16808}
16809
16810# func_lo2o object
16811func_lo2o ()
16812{
16813 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16814}
16815
16816# func_xform libobj-or-source
16817func_xform ()
16818{
16819 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16820}
16821
16822# func_arith arithmetic-term...
16823func_arith ()
16824{
16825 func_arith_result=`expr "$@"`
16826}
16827
16828# func_len string
16829# STRING may not start with a hyphen.
16830func_len ()
16831{
16832 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16833}
16834
16835_LT_EOF
16836esac
16837
16838case $lt_shell_append in
16839 yes)
16840 cat << \_LT_EOF >> "$cfgfile"
16841
16842# func_append var value
16843# Append VALUE to the end of shell variable VAR.
16844func_append ()
16845{
16846 eval "$1+=\$2"
16847}
16848_LT_EOF
16849 ;;
16850 *)
16851 cat << \_LT_EOF >> "$cfgfile"
16852
16853# func_append var value
16854# Append VALUE to the end of shell variable VAR.
16855func_append ()
16856{
16857 eval "$1=\$$1\$2"
16858}
16859
16860_LT_EOF
16861 ;;
16862 esac
16863
16864
16865 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16866 || (rm -f "$cfgfile"; exit 1)
16867
16868 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16869 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16870 chmod +x "$ofile"
16871
13b2be9c 16872 ;;
81ecdfbb 16873 "default-1":C)
20e95c23
DJ
16874 for ac_file in $CONFIG_FILES; do
16875 # Support "outfile[:infile[:infile...]]"
16876 case "$ac_file" in
16877 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16878 esac
16879 # PO directories have a Makefile.in generated from Makefile.in.in.
16880 case "$ac_file" in */Makefile.in)
16881 # Adjust a relative srcdir.
16882 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16883 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16884 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16885 # In autoconf-2.13 it is called $ac_given_srcdir.
16886 # In autoconf-2.50 it is called $srcdir.
16887 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16888 case "$ac_given_srcdir" in
16889 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16890 /*) top_srcdir="$ac_given_srcdir" ;;
16891 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16892 esac
16893 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16894 rm -f "$ac_dir/POTFILES"
16895 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16896 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16897 POMAKEFILEDEPS="POTFILES.in"
16898 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16899 # on $ac_dir but don't depend on user-specified configuration
16900 # parameters.
16901 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16902 # The LINGUAS file contains the set of available languages.
16903 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16904 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
16905 fi
16906 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16907 # Hide the ALL_LINGUAS assigment from automake.
16908 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16909 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16910 else
37a42ee9 16911 # The set of available languages was given in configure.ac.
20e95c23
DJ
16912 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16913 fi
16914 case "$ac_given_srcdir" in
16915 .) srcdirpre= ;;
16916 *) srcdirpre='$(srcdir)/' ;;
16917 esac
16918 POFILES=
16919 GMOFILES=
16920 UPDATEPOFILES=
16921 DUMMYPOFILES=
16922 for lang in $ALL_LINGUAS; do
16923 POFILES="$POFILES $srcdirpre$lang.po"
16924 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16925 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16926 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16927 done
16928 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16929 # environment variable.
16930 INST_LINGUAS=
16931 if test -n "$ALL_LINGUAS"; then
16932 for presentlang in $ALL_LINGUAS; do
16933 useit=no
16934 if test "%UNSET%" != "$LINGUAS"; then
16935 desiredlanguages="$LINGUAS"
16936 else
16937 desiredlanguages="$ALL_LINGUAS"
16938 fi
16939 for desiredlang in $desiredlanguages; do
16940 # Use the presentlang catalog if desiredlang is
16941 # a. equal to presentlang, or
16942 # b. a variant of presentlang (because in this case,
16943 # presentlang can be used as a fallback for messages
16944 # which are not translated in the desiredlang catalog).
16945 case "$desiredlang" in
16946 "$presentlang"*) useit=yes;;
16947 esac
16948 done
16949 if test $useit = yes; then
16950 INST_LINGUAS="$INST_LINGUAS $presentlang"
16951 fi
16952 done
16953 fi
16954 CATALOGS=
16955 if test -n "$INST_LINGUAS"; then
16956 for lang in $INST_LINGUAS; do
16957 CATALOGS="$CATALOGS $lang.gmo"
16958 done
16959 fi
16960 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16961 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16962 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16963 if test -f "$f"; then
16964 case "$f" in
16965 *.orig | *.bak | *~) ;;
16966 *) cat "$f" >> "$ac_dir/Makefile" ;;
16967 esac
16968 fi
16969 done
16970 fi
16971 ;;
16972 esac
16973 done ;;
81ecdfbb 16974 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16975 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16976 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16977 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16978 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16979 if test "x$cgen_cpu_prefix" != x ; then
16980 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16981 fi ;;
81ecdfbb 16982
13b2be9c 16983 esac
81ecdfbb 16984done # for ac_tag
13b2be9c 16985
13b2be9c 16986
81ecdfbb 16987as_fn_exit 0
13b2be9c 16988_ACEOF
13b2be9c
DJ
16989ac_clean_files=$ac_clean_files_save
16990
81ecdfbb
RW
16991test $ac_write_fail = 0 ||
16992 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16993
13b2be9c
DJ
16994
16995# configure is writing to config.log, and then calls config.status.
16996# config.status does its own redirection, appending to config.log.
16997# Unfortunately, on DOS this fails, as config.log is still kept open
16998# by configure, so config.status won't be able to write to it; its
16999# output is simply discarded. So we exec the FD to /dev/null,
17000# effectively closing config.log, so it can be properly (re)opened and
17001# appended to by config.status. When coming back to configure, we
17002# need to make the FD available again.
17003if test "$no_create" != yes; then
17004 ac_cs_success=:
17005 ac_config_status_args=
17006 test "$silent" = yes &&
17007 ac_config_status_args="$ac_config_status_args --quiet"
17008 exec 5>/dev/null
17009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17010 exec 5>>config.log
17011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17012 # would make configure fail if this is the last instruction.
81ecdfbb
RW
17013 $ac_cs_success || as_fn_exit $?
17014fi
17015if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17017$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17018fi
252b5132 17019
This page took 1.894288 seconds and 4 git commands to generate.