]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
Sync from git Libtool and regenerate.
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
5213506e 3# Generated by GNU Autoconf 2.64 for libffi 3.0.8.
3ed8e5b6
AT
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
63e5e3e0 6#
5213506e
RW
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
63e5e3e0
AG
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
3ed8e5b6 16
5213506e
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
20 emulate sh
21 NULLCMD=:
5213506e 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
3ed8e5b6 33fi
3ed8e5b6 34
5213506e
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
3ed8e5b6
AT
81fi
82
83
5213506e
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
3ed8e5b6
AT
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
5213506e
RW
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
43e02a8a
RW
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
182test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3ed8e5b6 194do
5213506e
RW
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
3ed8e5b6 238 else
5213506e
RW
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240$0: http://gcc.gnu.org/bugs.html about your system,
241$0: including any error possibly output before this
242$0: message. Then install a modern shell, or manually run
243$0: the script under such a shell if you do have one."
3ed8e5b6 244 fi
5213506e
RW
245 exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263 { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272 return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280 set +e
281 as_fn_set_status $1
282 exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382} # as_fn_error
3ed8e5b6 383
5213506e
RW
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
386 as_expr=expr
387else
388 as_expr=false
389fi
390
5213506e 391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
392 as_basename=basename
393else
394 as_basename=false
395fi
396
5213506e
RW
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399else
400 as_dirname=false
401fi
3ed8e5b6 402
5213506e 403as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
5213506e
RW
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
3ed8e5b6 421
3ed8e5b6
AT
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
428
3ed8e5b6 429
5213506e
RW
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
3ed8e5b6 439 sed '
5213506e
RW
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
3ed8e5b6 444 N
5213506e
RW
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3ed8e5b6 447 t loop
5213506e 448 s/-\n.*//
3ed8e5b6 449 ' >$as_me.lineno &&
5213506e
RW
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
3ed8e5b6
AT
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
3ed8e5b6
AT
457 # Exit status is that of the last command.
458 exit
459}
460
5213506e
RW
461ECHO_C= ECHO_N= ECHO_T=
462case `echo -n x` in #(((((
463-n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470*)
471 ECHO_N='-n';;
3ed8e5b6
AT
472esac
473
5213506e
RW
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
3ed8e5b6 477else
5213506e
RW
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 480fi
5213506e
RW
481if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 483 as_ln_s='ln -s'
5213506e
RW
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
3ed8e5b6 494 fi
3ed8e5b6
AT
495else
496 as_ln_s='cp -p'
497fi
5213506e
RW
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
3ed8e5b6
AT
500
501if mkdir -p . 2>/dev/null; then
5213506e 502 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
503else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506fi
507
5213506e
RW
508if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528fi
529as_executable_p=$as_test_x
3ed8e5b6
AT
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
1cf3d07d
SE
537SHELL=${CONFIG_SHELL-/bin/sh}
538
1cf3d07d 539
5213506e
RW
540exec 7<&0 </dev/null 6>&1
541
3ed8e5b6
AT
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 546
3ed8e5b6
AT
547#
548# Initializations.
549#
63e5e3e0 550ac_default_prefix=/usr/local
5213506e 551ac_clean_files=
3ed8e5b6 552ac_config_libobj_dir=.
5213506e 553LIBOBJS=
3ed8e5b6
AT
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
3ed8e5b6
AT
558
559# Identity of this package.
560PACKAGE_NAME='libffi'
561PACKAGE_TARNAME='libffi'
b7b857bb
AH
562PACKAGE_VERSION='3.0.8'
563PACKAGE_STRING='libffi 3.0.8'
3ed8e5b6 564PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
5213506e 565PACKAGE_URL=''
3ed8e5b6 566
c9b93377
JB
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
5213506e 570#ifdef HAVE_SYS_TYPES_H
c9b93377
JB
571# include <sys/types.h>
572#endif
5213506e 573#ifdef HAVE_SYS_STAT_H
c9b93377
JB
574# include <sys/stat.h>
575#endif
5213506e 576#ifdef STDC_HEADERS
c9b93377
JB
577# include <stdlib.h>
578# include <stddef.h>
579#else
5213506e 580# ifdef HAVE_STDLIB_H
c9b93377
JB
581# include <stdlib.h>
582# endif
583#endif
5213506e
RW
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
c9b93377
JB
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
5213506e 590#ifdef HAVE_STRINGS_H
c9b93377
JB
591# include <strings.h>
592#endif
5213506e 593#ifdef HAVE_INTTYPES_H
c9b93377 594# include <inttypes.h>
c9b93377 595#endif
5213506e
RW
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
c9b93377
JB
600# include <unistd.h>
601#endif"
602
5213506e
RW
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607toolexeclibdir
608toolexecdir
609TARGETDIR
610TARGET
611HAVE_LONG_DOUBLE
612ALLOCA
613PA64_HPUX_FALSE
614PA64_HPUX_TRUE
615PA_HPUX_FALSE
616PA_HPUX_TRUE
617PA_LINUX_FALSE
618PA_LINUX_TRUE
619SH64_FALSE
620SH64_TRUE
621SH_FALSE
622SH_TRUE
623X86_64_FALSE
624X86_64_TRUE
625S390_FALSE
626S390_TRUE
627FRV_FALSE
628FRV_TRUE
629LIBFFI_CRIS_FALSE
630LIBFFI_CRIS_TRUE
631ARM_FALSE
632ARM_TRUE
633POWERPC_FREEBSD_FALSE
634POWERPC_FREEBSD_TRUE
635POWERPC_DARWIN_FALSE
636POWERPC_DARWIN_TRUE
637POWERPC_AIX_FALSE
638POWERPC_AIX_TRUE
639POWERPC_FALSE
640POWERPC_TRUE
641M68K_FALSE
642M68K_TRUE
643M32R_FALSE
644M32R_TRUE
645IA64_FALSE
646IA64_TRUE
647ALPHA_FALSE
648ALPHA_TRUE
649X86_DARWIN_FALSE
650X86_DARWIN_TRUE
651X86_WIN64_FALSE
652X86_WIN64_TRUE
653X86_WIN32_FALSE
654X86_WIN32_TRUE
655X86_FREEBSD_FALSE
656X86_FREEBSD_TRUE
657X86_FALSE
658X86_TRUE
659SPARC_FALSE
660SPARC_TRUE
661MIPS_FALSE
662MIPS_TRUE
663AM_RUNTESTFLAGS
664TESTSUBDIR_FALSE
665TESTSUBDIR_TRUE
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669CPP
670OTOOL64
671OTOOL
672LIPO
673NMEDIT
674DSYMUTIL
5213506e
RW
675RANLIB
676AR
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684EGREP
685GREP
686SED
687LIBTOOL
688am__fastdepCCAS_FALSE
689am__fastdepCCAS_TRUE
690CCASDEPMODE
691CCASFLAGS
692CCAS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_os
733target_vendor
734target_cpu
735target
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744multi_basedir
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
3ed8e5b6 783ac_subst_files=''
5213506e
RW
784ac_user_opts='
785enable_option_checking
786enable_multilib
787enable_dependency_tracking
788enable_shared
789enable_static
790with_pic
791enable_fast_install
792with_gnu_ld
793enable_libtool_lock
794enable_maintainer_mode
795enable_debug
796enable_structs
797enable_raw_api
798enable_purify_safety
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CCAS
804CCASFLAGS
805CPP
806CPPFLAGS'
807
63e5e3e0
AG
808
809# Initialize some variables set by options.
3ed8e5b6
AT
810ac_init_help=
811ac_init_version=false
5213506e
RW
812ac_unrecognized_opts=
813ac_unrecognized_sep=
63e5e3e0
AG
814# The variables have the same names as the options, with
815# dashes changed to underlines.
3ed8e5b6 816cache_file=/dev/null
63e5e3e0 817exec_prefix=NONE
63e5e3e0 818no_create=
63e5e3e0
AG
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
63e5e3e0
AG
827verbose=
828x_includes=NONE
829x_libraries=NONE
3ed8e5b6
AT
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 836# (The list follows the same order as the GNU Coding Standards.)
63e5e3e0
AG
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
5213506e
RW
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
63e5e3e0
AG
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
63e5e3e0
AG
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
5213506e
RW
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
63e5e3e0 856
63e5e3e0 857ac_prev=
5213506e 858ac_dashdash=
63e5e3e0
AG
859for ac_option
860do
63e5e3e0
AG
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
5213506e 863 eval $ac_prev=\$ac_option
63e5e3e0
AG
864 ac_prev=
865 continue
866 fi
867
5213506e
RW
868 case $ac_option in
869 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *) ac_optarg=yes ;;
871 esac
63e5e3e0
AG
872
873 # Accept the important Cygnus configure options, so we can diagnose typos.
874
5213506e
RW
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
63e5e3e0
AG
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 882 bindir=$ac_optarg ;;
63e5e3e0
AG
883
884 -build | --build | --buil | --bui | --bu)
3ed8e5b6 885 ac_prev=build_alias ;;
63e5e3e0 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 887 build_alias=$ac_optarg ;;
63e5e3e0
AG
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
63e5e3e0 898
5213506e 899 -datadir | --datadir | --datadi | --datad)
63e5e3e0 900 ac_prev=datadir ;;
5213506e 901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3ed8e5b6 902 datadir=$ac_optarg ;;
63e5e3e0 903
5213506e
RW
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
63e5e3e0 911 -disable-* | --disable-*)
5213506e 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 913 # Reject names that are not valid shell variable names.
5213506e
RW
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
63e5e3e0
AG
936
937 -enable-* | --enable-*)
5213506e 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 939 # Reject names that are not valid shell variable names.
5213506e
RW
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946"enable_$ac_useropt"
947"*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
63e5e3e0 950 esac
5213506e 951 eval enable_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 960 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
3ed8e5b6
AT
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
63e5e3e0
AG
972
973 -host | --host | --hos | --ho)
3ed8e5b6 974 ac_prev=host_alias ;;
63e5e3e0 975 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 976 host_alias=$ac_optarg ;;
63e5e3e0 977
5213506e
RW
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
63e5e3e0
AG
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 989 includedir=$ac_optarg ;;
63e5e3e0
AG
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 994 infodir=$ac_optarg ;;
63e5e3e0
AG
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 999 libdir=$ac_optarg ;;
63e5e3e0
AG
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 1006 libexecdir=$ac_optarg ;;
63e5e3e0 1007
5213506e
RW
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
63e5e3e0 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1014 | --localstate | --localstat | --localsta | --localst | --locals)
63e5e3e0
AG
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3ed8e5b6 1018 localstatedir=$ac_optarg ;;
63e5e3e0
AG
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 1023 mandir=$ac_optarg ;;
63e5e3e0
AG
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 1030 | --no-cr | --no-c | -n)
63e5e3e0
AG
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 1044 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 1049 prefix=$ac_optarg ;;
63e5e3e0
AG
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 1056 program_prefix=$ac_optarg ;;
63e5e3e0
AG
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 1063 program_suffix=$ac_optarg ;;
63e5e3e0
AG
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 1080 program_transform_name=$ac_optarg ;;
63e5e3e0 1081
5213506e
RW
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
63e5e3e0
AG
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
3ed8e5b6 1100 sbindir=$ac_optarg ;;
63e5e3e0
AG
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
3ed8e5b6 1111 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
3ed8e5b6 1116 site=$ac_optarg ;;
63e5e3e0
AG
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 1121 srcdir=$ac_optarg ;;
63e5e3e0
AG
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 1128 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 1131 ac_prev=target_alias ;;
63e5e3e0 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 1133 target_alias=$ac_optarg ;;
63e5e3e0
AG
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
3ed8e5b6
AT
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
63e5e3e0
AG
1140
1141 -with-* | --with-*)
5213506e 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 1143 # Reject names that are not valid shell variable names.
5213506e
RW
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
63e5e3e0 1154 esac
5213506e 1155 eval with_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1156
1157 -without-* | --without-*)
5213506e 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 1159 # Reject names that are not valid shell variable names.
5213506e
RW
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166"with_$ac_useropt"
1167"*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
63e5e3e0
AG
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 1182 x_includes=$ac_optarg ;;
63e5e3e0
AG
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 1189 x_libraries=$ac_optarg ;;
63e5e3e0 1190
5213506e
RW
1191 -*) as_fn_error "unrecognized option: \`$ac_option'
1192Try \`$0 --help' for more information."
63e5e3e0
AG
1193 ;;
1194
3ed8e5b6
AT
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
5213506e
RW
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
3ed8e5b6
AT
1203 export $ac_envvar ;;
1204
63e5e3e0 1205 *)
3ed8e5b6 1206 # FIXME: should be removed in autoconf 3.0.
5213506e 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3ed8e5b6 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3ed8e5b6 1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
1211 ;;
1212
1213 esac
1214done
1215
1216if test -n "$ac_prev"; then
3ed8e5b6 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1218 as_fn_error "missing argument to $ac_option"
63e5e3e0 1219fi
63e5e3e0 1220
5213506e
RW
1221if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3ed8e5b6 1226 esac
5213506e 1227fi
63e5e3e0 1228
5213506e
RW
1229# Check all directory arguments for consistency.
1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
63e5e3e0 1234do
5213506e
RW
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
3ed8e5b6 1243 case $ac_val in
5213506e
RW
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
63e5e3e0 1246 esac
5213506e 1247 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
63e5e3e0
AG
1248done
1249
3ed8e5b6
AT
1250# There might be people who depend on the old broken behavior: `$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
5213506e 1261 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3ed8e5b6
AT
1262 If a cross compiler is detected then cross compile mode will be used." >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266fi
63e5e3e0 1267
3ed8e5b6
AT
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
63e5e3e0 1272
63e5e3e0 1273
5213506e
RW
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error "working directory cannot be determined"
1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error "pwd does not report name of working directory"
1280
1281
63e5e3e0
AG
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
5213506e
RW
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291$as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
63e5e3e0 1309 srcdir=$ac_confdir
5213506e 1310 if test ! -r "$srcdir/$ac_unique_file"; then
63e5e3e0
AG
1311 srcdir=..
1312 fi
1313else
1314 ac_srcdir_defaulted=no
1315fi
5213506e
RW
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1323 pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
63e5e3e0 1340
3ed8e5b6
AT
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
b7b857bb 1348\`configure' configures libffi 3.0.8 to adapt to many kinds of systems.
63e5e3e0 1349
3ed8e5b6
AT
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
3ed8e5b6
AT
1368Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1370 [$ac_default_prefix]
3ed8e5b6 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1372 [PREFIX]
3ed8e5b6
AT
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
5213506e
RW
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
3ed8e5b6
AT
1401_ACEOF
1402
1403 cat <<\_ACEOF
1404
1405Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418 case $ac_init_help in
b7b857bb 1419 short | recursive ) echo "Configuration of libffi 3.0.8:";;
3ed8e5b6
AT
1420 esac
1421 cat <<\_ACEOF
1422
1423Optional Features:
5213506e 1424 --disable-option-checking ignore unrecognized --enable/--with options
3ed8e5b6
AT
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1427 --enable-multilib build many library versions (default)
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
3ed8e5b6 1434 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1437 --enable-debug debugging mode
1438 --disable-structs omit code for struct support
1439 --disable-raw-api make the raw api unavailable
1440 --enable-purify-safety purify-safe mode
1441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1445 --with-pic try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1448
1449Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
5213506e
RW
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
076e5443
PB
1457 CCAS assembler compiler command (defaults to CC)
1458 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1459 CPP C preprocessor
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <http://gcc.gnu.org/bugs.html>.
1465_ACEOF
5213506e 1466ac_status=$?
63e5e3e0
AG
1467fi
1468
3ed8e5b6
AT
1469if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
3ed8e5b6 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
3ed8e5b6
AT
1475 ac_builddir=.
1476
5213506e
RW
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
63e5e3e0 1492
3ed8e5b6 1493case $srcdir in
5213506e 1494 .) # We are building in place.
3ed8e5b6 1495 ac_srcdir=.
5213506e
RW
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 1499 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 1506esac
5213506e
RW
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
3ed8e5b6 1517 else
5213506e
RW
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
3ed8e5b6 1521 done
675cdab3
BM
1522fi
1523
5213506e 1524test -n "$ac_init_help" && exit $ac_status
3ed8e5b6
AT
1525if $ac_init_version; then
1526 cat <<\_ACEOF
b7b857bb 1527libffi configure 3.0.8
5213506e 1528generated by GNU Autoconf 2.64
675cdab3 1529
5213506e 1530Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
5213506e 1534 exit
675cdab3
BM
1535fi
1536
5213506e
RW
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
63e5e3e0 1540
5213506e
RW
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
3ed8e5b6 1545{
5213506e
RW
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568else
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1571
5213506e
RW
1572 ac_retval=1
1573fi
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
3ed8e5b6 1576
5213506e 1577} # ac_fn_c_try_compile
3ed8e5b6 1578
5213506e
RW
1579# ac_fn_c_try_link LINENO
1580# -----------------------
1581# Try to link conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_link ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest$ac_exeext
1586 if { { ac_try="$ac_link"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest$ac_exeext && {
1605 test "$cross_compiling" = yes ||
1606 $as_test_x conftest$ac_exeext
1607 }; then :
1608 ac_retval=0
1609else
1610 $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1612
5213506e
RW
1613 ac_retval=1
1614fi
1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617 # interfere with the next link command; also delete a directory that is
1618 # left behind by Apple's compiler. We do this before executing the actions.
1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621 return $ac_retval
3ed8e5b6 1622
5213506e
RW
1623} # ac_fn_c_try_link
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
1634if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1635 $as_echo_n "(cached) " >&6
1636else
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643 eval "$3=yes"
1644else
1645 eval "$3=no"
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648fi
1649eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653
1654} # ac_fn_c_check_header_compile
1655
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } >/dev/null && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 return $ac_retval
1690
1691} # ac_fn_c_try_cpp
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 $as_echo_n "(cached) " >&6
1745else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1756
1757#ifdef __STDC__
1758# include <limits.h>
1759#else
1760# include <assert.h>
1761#endif
1762
1763#undef $2
1764
1765/* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768#ifdef __cplusplus
1769extern "C"
1770#endif
1771char $2 ();
1772/* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775#if defined __stub_$2 || defined __stub___$2
1776choke me
1777#endif
1778
1779int
1780main ()
1781{
1782return $2 ();
1783 ;
1784 return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_link "$LINENO"; then :
1788 eval "$3=yes"
1789else
1790 eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
1800} # ac_fn_c_check_func
1801
1802# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803# -------------------------------------------------------
1804# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805# the include files in INCLUDES and setting the cache variable VAR
1806# accordingly.
1807ac_fn_c_check_header_mongrel ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815fi
1816eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819else
1820 # Is the header compilable?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822$as_echo_n "checking $2 usability... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825$4
1826#include <$2>
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1830else
1831 ac_header_compiler=no
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835$as_echo "$ac_header_compiler" >&6; }
1836
1837# Is the header present?
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839$as_echo_n "checking $2 presence... " >&6; }
1840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h. */
1842#include <$2>
1843_ACEOF
1844if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1846else
1847 ac_header_preproc=no
1848fi
1849rm -f conftest.err conftest.$ac_ext
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851$as_echo "$ac_header_preproc" >&6; }
1852
1853# So? What about this header?
1854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 yes:no: )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861 no:yes:* )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872( cat <<\_ASBOX
1873## ------------------------------------------- ##
1874## Report this to http://gcc.gnu.org/bugs.html ##
1875## ------------------------------------------- ##
1876_ASBOX
1877 ) | sed "s/^/$as_me: WARNING: /" >&2
1878 ;;
1879esac
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884else
1885 eval "$3=\$ac_header_compiler"
1886fi
1887eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890fi
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
1893} # ac_fn_c_check_header_mongrel
1894
1895# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1896# --------------------------------------------
1897# Tries to find the compile-time value of EXPR in a program that includes
1898# INCLUDES, setting VAR accordingly. Returns whether the value could be
1899# computed
1900ac_fn_c_compute_int ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if test "$cross_compiling" = yes; then
1904 # Depending upon the size, compute the lo and hi bounds.
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908int
1909main ()
1910{
1911static int test_array [1 - 2 * !(($2) >= 0)];
1912test_array [0] = 0
1913
1914 ;
1915 return 0;
1916}
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"; then :
1919 ac_lo=0 ac_mid=0
1920 while :; do
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$4
1924int
1925main ()
1926{
1927static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1928test_array [0] = 0
1929
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_hi=$ac_mid; break
1936else
1937 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1938 if test $ac_lo -le $ac_mid; then
1939 ac_lo= ac_hi=
1940 break
1941 fi
1942 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 done
1946else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
1953static int test_array [1 - 2 * !(($2) < 0)];
1954test_array [0] = 0
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_hi=-1 ac_mid=-1
1962 while :; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966int
1967main ()
1968{
1969static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970test_array [0] = 0
1971
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_lo=$ac_mid; break
1978else
1979 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1980 if test $ac_mid -le $ac_hi; then
1981 ac_lo= ac_hi=
1982 break
1983 fi
1984 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 done
1988else
1989 ac_lo= ac_hi=
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994# Binary search between lo and hi bounds.
1995while test "x$ac_lo" != "x$ac_hi"; do
1996 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000int
2001main ()
2002{
2003static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004test_array [0] = 0
2005
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid
2012else
2013 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 2016done
5213506e
RW
2017case $ac_lo in #((
2018?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2019'') ac_retval=1 ;;
2020esac
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025static long int longval () { return $2; }
2026static unsigned long int ulongval () { return $2; }
2027#include <stdio.h>
2028#include <stdlib.h>
2029int
2030main ()
2031{
2032
2033 FILE *f = fopen ("conftest.val", "w");
2034 if (! f)
2035 return 1;
2036 if (($2) < 0)
2037 {
2038 long int i = longval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%ld", i);
2042 }
2043 else
2044 {
2045 unsigned long int i = ulongval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%lu", i);
2049 }
2050 /* Do not output a trailing newline, as this causes \r\n confusion
2051 on some platforms. */
2052 return ferror (f) || fclose (f) != 0;
2053
2054 ;
2055 return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_run "$LINENO"; then :
2059 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2060else
2061 ac_retval=1
2062fi
2063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2064 conftest.$ac_objext conftest.beam conftest.$ac_ext
2065rm -f conftest.val
2066
2067 fi
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 return $ac_retval
2070
2071} # ac_fn_c_compute_int
2072cat >config.log <<_ACEOF
2073This file contains any messages produced by compilers while
2074running configure, to aid debugging if configure makes a mistake.
2075
2076It was created by libffi $as_me 3.0.8, which was
2077generated by GNU Autoconf 2.64. Invocation command line was
2078
2079 $ $0 $@
2080
2081_ACEOF
2082exec 5>>config.log
2083{
2084cat <<_ASUNAME
2085## --------- ##
2086## Platform. ##
2087## --------- ##
2088
2089hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2090uname -m = `(uname -m) 2>/dev/null || echo unknown`
2091uname -r = `(uname -r) 2>/dev/null || echo unknown`
2092uname -s = `(uname -s) 2>/dev/null || echo unknown`
2093uname -v = `(uname -v) 2>/dev/null || echo unknown`
2094
2095/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2096/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2097
2098/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2099/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2100/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2101/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2102/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2103/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2104/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2105
2106_ASUNAME
2107
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 $as_echo "PATH: $as_dir"
2114 done
2115IFS=$as_save_IFS
63e5e3e0 2116
3ed8e5b6 2117} >&5
63e5e3e0 2118
3ed8e5b6 2119cat >&5 <<_ACEOF
63e5e3e0 2120
6706f116 2121
3ed8e5b6
AT
2122## ----------- ##
2123## Core tests. ##
2124## ----------- ##
3c18f2d1 2125
3ed8e5b6 2126_ACEOF
3c18f2d1 2127
3c18f2d1 2128
3ed8e5b6
AT
2129# Keep a trace of the command line.
2130# Strip out --no-create and --no-recursion so they do not pile up.
2131# Strip out --silent because we don't want to record it for future runs.
2132# Also quote any args containing shell meta-characters.
2133# Make two passes to allow for proper duplicate-argument suppression.
2134ac_configure_args=
2135ac_configure_args0=
2136ac_configure_args1=
3ed8e5b6
AT
2137ac_must_keep_next=false
2138for ac_pass in 1 2
2139do
2140 for ac_arg
2141 do
2142 case $ac_arg in
2143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145 | -silent | --silent | --silen | --sile | --sil)
2146 continue ;;
5213506e
RW
2147 *\'*)
2148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2149 esac
2150 case $ac_pass in
5213506e 2151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3ed8e5b6 2152 2)
5213506e 2153 as_fn_append ac_configure_args1 " '$ac_arg'"
3ed8e5b6
AT
2154 if test $ac_must_keep_next = true; then
2155 ac_must_keep_next=false # Got value, back to normal.
2156 else
2157 case $ac_arg in
2158 *=* | --config-cache | -C | -disable-* | --disable-* \
2159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161 | -with-* | --with-* | -without-* | --without-* | --x)
2162 case "$ac_configure_args0 " in
2163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 esac
2165 ;;
2166 -* ) ac_must_keep_next=true ;;
2167 esac
2168 fi
5213506e 2169 as_fn_append ac_configure_args " '$ac_arg'"
3ed8e5b6
AT
2170 ;;
2171 esac
2172 done
63e5e3e0 2173done
5213506e
RW
2174{ ac_configure_args0=; unset ac_configure_args0;}
2175{ ac_configure_args1=; unset ac_configure_args1;}
3ed8e5b6
AT
2176
2177# When interrupted or exit'd, cleanup temporary files, and complete
2178# config.log. We remove comments because anyway the quotes in there
2179# would cause problems or look ugly.
5213506e
RW
2180# WARNING: Use '\'' to represent an apostrophe within the trap.
2181# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3ed8e5b6
AT
2182trap 'exit_status=$?
2183 # Save into config.log some information that might help in debugging.
2184 {
2185 echo
2186
2187 cat <<\_ASBOX
2188## ---------------- ##
2189## Cache variables. ##
2190## ---------------- ##
2191_ASBOX
2192 echo
2193 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2194(
2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in #(
2198 *${as_nl}*)
2199 case $ac_var in #(
2200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202 esac
2203 case $ac_var in #(
2204 _ | IFS | as_nl) ;; #(
2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206 *) { eval $ac_var=; unset $ac_var;} ;;
2207 esac ;;
2208 esac
2209 done
3ed8e5b6 2210 (set) 2>&1 |
5213506e
RW
2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212 *${as_nl}ac_space=\ *)
3ed8e5b6 2213 sed -n \
5213506e
RW
2214 "s/'\''/'\''\\\\'\'''\''/g;
2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216 ;; #(
3ed8e5b6 2217 *)
5213506e 2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 2219 ;;
5213506e
RW
2220 esac |
2221 sort
2222)
3ed8e5b6
AT
2223 echo
2224
2225 cat <<\_ASBOX
2226## ----------------- ##
2227## Output variables. ##
2228## ----------------- ##
2229_ASBOX
2230 echo
2231 for ac_var in $ac_subst_vars
2232 do
5213506e
RW
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2238 done | sort
2239 echo
2240
2241 if test -n "$ac_subst_files"; then
2242 cat <<\_ASBOX
5213506e
RW
2243## ------------------- ##
2244## File substitutions. ##
2245## ------------------- ##
3ed8e5b6
AT
2246_ASBOX
2247 echo
2248 for ac_var in $ac_subst_files
2249 do
5213506e
RW
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2255 done | sort
2256 echo
2257 fi
63e5e3e0 2258
3ed8e5b6
AT
2259 if test -s confdefs.h; then
2260 cat <<\_ASBOX
2261## ----------- ##
2262## confdefs.h. ##
2263## ----------- ##
2264_ASBOX
2265 echo
5213506e 2266 cat confdefs.h
3ed8e5b6
AT
2267 echo
2268 fi
2269 test "$ac_signal" != 0 &&
5213506e
RW
2270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
3ed8e5b6 2272 } >&5
5213506e
RW
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3ed8e5b6 2275 exit $exit_status
5213506e 2276' 0
3ed8e5b6 2277for ac_signal in 1 2 13 15; do
5213506e 2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3ed8e5b6
AT
2279done
2280ac_signal=0
63e5e3e0 2281
3ed8e5b6 2282# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2283rm -f -r conftest* confdefs.h
2284
2285$as_echo "/* confdefs.h */" > confdefs.h
6bee5372 2286
3ed8e5b6 2287# Predefined preprocessor variables.
bbf3057b 2288
3ed8e5b6
AT
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_NAME "$PACKAGE_NAME"
2291_ACEOF
bbf3057b 2292
3ed8e5b6
AT
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295_ACEOF
63e5e3e0 2296
3ed8e5b6
AT
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_VERSION "$PACKAGE_VERSION"
2299_ACEOF
63e5e3e0 2300
3ed8e5b6
AT
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_STRING "$PACKAGE_STRING"
2303_ACEOF
bbf3057b 2304
3ed8e5b6
AT
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307_ACEOF
2308
5213506e
RW
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_URL "$PACKAGE_URL"
2311_ACEOF
2312
3ed8e5b6
AT
2313
2314# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2315# Prefer an explicitly selected file to automatically selected ones.
2316ac_site_file1=NONE
2317ac_site_file2=NONE
2318if test -n "$CONFIG_SITE"; then
2319 ac_site_file1=$CONFIG_SITE
2320elif test "x$prefix" != xNONE; then
2321 ac_site_file1=$prefix/share/config.site
2322 ac_site_file2=$prefix/etc/config.site
2323else
2324 ac_site_file1=$ac_default_prefix/share/config.site
2325 ac_site_file2=$ac_default_prefix/etc/config.site
2326fi
2327for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328do
2329 test "x$ac_site_file" = xNONE && continue
3ed8e5b6 2330 if test -r "$ac_site_file"; then
5213506e
RW
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2332$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3ed8e5b6
AT
2333 sed 's/^/| /' "$ac_site_file" >&5
2334 . "$ac_site_file"
2335 fi
2336done
2337
2338if test -r "$cache_file"; then
2339 # Some versions of bash will fail to source /dev/null (special
2340 # files actually), so we avoid doing that.
2341 if test -f "$cache_file"; then
5213506e
RW
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2343$as_echo "$as_me: loading cache $cache_file" >&6;}
3ed8e5b6 2344 case $cache_file in
5213506e
RW
2345 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2346 *) . "./$cache_file";;
3ed8e5b6
AT
2347 esac
2348 fi
2349else
5213506e
RW
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2351$as_echo "$as_me: creating cache $cache_file" >&6;}
3ed8e5b6
AT
2352 >$cache_file
2353fi
2354
2355# Check that the precious variables saved in the cache have kept the same
2356# value.
2357ac_cache_corrupted=false
5213506e 2358for ac_var in $ac_precious_vars; do
3ed8e5b6
AT
2359 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2360 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2361 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2362 eval ac_new_val=\$ac_env_${ac_var}_value
3ed8e5b6
AT
2363 case $ac_old_set,$ac_new_set in
2364 set,)
5213506e
RW
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2366$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3ed8e5b6
AT
2367 ac_cache_corrupted=: ;;
2368 ,set)
5213506e
RW
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2370$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3ed8e5b6
AT
2371 ac_cache_corrupted=: ;;
2372 ,);;
2373 *)
2374 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2375 # differences in whitespace do not lead to failure.
2376 ac_old_val_w=`echo x $ac_old_val`
2377 ac_new_val_w=`echo x $ac_new_val`
2378 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2380$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2381 ac_cache_corrupted=:
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2384$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2385 eval $ac_var=\$ac_old_val
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2388$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2390$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
2391 fi;;
2392 esac
2393 # Pass precious variables to config.status.
2394 if test "$ac_new_set" = set; then
2395 case $ac_new_val in
5213506e 2396 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2397 *) ac_arg=$ac_var=$ac_new_val ;;
2398 esac
2399 case " $ac_configure_args " in
2400 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2401 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3ed8e5b6
AT
2402 esac
2403 fi
2404done
2405if $ac_cache_corrupted; then
5213506e
RW
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2409$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2410 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3ed8e5b6 2411fi
5213506e
RW
2412## -------------------- ##
2413## Main body of script. ##
2414## -------------------- ##
3ed8e5b6
AT
2415
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421
2422
2423
2424
2425
5213506e 2426ac_config_headers="$ac_config_headers fficonfig.h"
3ed8e5b6
AT
2427
2428
2429# Default to --enable-multilib
5213506e
RW
2430# Check whether --enable-multilib was given.
2431if test "${enable_multilib+set}" = set; then :
2432 enableval=$enable_multilib; case "$enableval" in
3ed8e5b6
AT
2433 yes) multilib=yes ;;
2434 no) multilib=no ;;
5213506e 2435 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3ed8e5b6
AT
2436 esac
2437else
2438 multilib=yes
5213506e
RW
2439fi
2440
3ed8e5b6
AT
2441
2442# We may get other options which we leave undocumented:
2443# --with-target-subdir, --with-multisrctop, --with-multisubdir
2444# See config-ml.in if you want the gory details.
2445
2446if test "$srcdir" = "."; then
2447 if test "$with_target_subdir" != "."; then
2448 multi_basedir="$srcdir/$with_multisrctop../.."
2449 else
2450 multi_basedir="$srcdir/$with_multisrctop.."
2451 fi
2452else
2453 multi_basedir="$srcdir/.."
2454fi
2455
2456
8a489465
JH
2457# Even if the default multilib is not a cross compilation,
2458# it may be that some of the other multilibs are.
2459if test $cross_compiling = no && test $multilib = yes \
2460 && test "x${with_multisubdir}" != x ; then
2461 cross_compiling=maybe
2462fi
2463
5213506e 2464ac_config_commands="$ac_config_commands default-1"
3ed8e5b6 2465
3ed8e5b6 2466
076e5443 2467ac_aux_dir=
5213506e
RW
2468for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2469 for ac_t in install-sh install.sh shtool; do
2470 if test -f "$ac_dir/$ac_t"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/$ac_t -c"
2473 break 2
2474 fi
2475 done
3ed8e5b6
AT
2476done
2477if test -z "$ac_aux_dir"; then
5213506e 2478 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3ed8e5b6 2479fi
5213506e
RW
2480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488
3ed8e5b6 2489
3ed8e5b6 2490# Make sure we can run config.sub.
5213506e
RW
2491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2492 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2493
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2495$as_echo_n "checking build system type... " >&6; }
2496if test "${ac_cv_build+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498else
2499 ac_build_alias=$build_alias
2500test "x$ac_build_alias" = x &&
2501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2502test "x$ac_build_alias" = x &&
2503 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2505 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2506
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2509$as_echo "$ac_cv_build" >&6; }
2510case $ac_cv_build in
2511*-*-*) ;;
2512*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2513esac
3ed8e5b6 2514build=$ac_cv_build
5213506e
RW
2515ac_save_IFS=$IFS; IFS='-'
2516set x $ac_cv_build
2517shift
2518build_cpu=$1
2519build_vendor=$2
2520shift; shift
2521# Remember, the first character of IFS is used to create $*,
2522# except with old shells:
2523build_os=$*
2524IFS=$ac_save_IFS
2525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2526
2527
5213506e
RW
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2529$as_echo_n "checking host system type... " >&6; }
2530if test "${ac_cv_host+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
3ed8e5b6 2532else
5213506e
RW
2533 if test "x$host_alias" = x; then
2534 ac_cv_host=$ac_cv_build
2535else
2536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2537 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2538fi
3ed8e5b6
AT
2539
2540fi
5213506e
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2542$as_echo "$ac_cv_host" >&6; }
2543case $ac_cv_host in
2544*-*-*) ;;
2545*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2546esac
3ed8e5b6 2547host=$ac_cv_host
5213506e
RW
2548ac_save_IFS=$IFS; IFS='-'
2549set x $ac_cv_host
2550shift
2551host_cpu=$1
2552host_vendor=$2
2553shift; shift
2554# Remember, the first character of IFS is used to create $*,
2555# except with old shells:
2556host_os=$*
2557IFS=$ac_save_IFS
2558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2559
2560
5213506e
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2562$as_echo_n "checking target system type... " >&6; }
2563if test "${ac_cv_target+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565else
2566 if test "x$target_alias" = x; then
2567 ac_cv_target=$ac_cv_host
3ed8e5b6 2568else
5213506e
RW
2569 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2570 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2571fi
3ed8e5b6
AT
2572
2573fi
5213506e
RW
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2575$as_echo "$ac_cv_target" >&6; }
2576case $ac_cv_target in
2577*-*-*) ;;
2578*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2579esac
3ed8e5b6 2580target=$ac_cv_target
5213506e
RW
2581ac_save_IFS=$IFS; IFS='-'
2582set x $ac_cv_target
2583shift
2584target_cpu=$1
2585target_vendor=$2
2586shift; shift
2587# Remember, the first character of IFS is used to create $*,
2588# except with old shells:
2589target_os=$*
2590IFS=$ac_save_IFS
2591case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2592
2593
2594# The aliases save the names the user supplied, while $host etc.
2595# will get canonicalized.
2596test -n "$target_alias" &&
bbf3057b
AT
2597 test "$program_prefix$program_suffix$program_transform_name" = \
2598 NONENONEs,x,x, &&
2599 program_prefix=${target_alias}-
5213506e 2600
3ed8e5b6
AT
2601target_alias=${target_alias-$host_alias}
2602
88d8c771
AG
2603. ${srcdir}/configure.host
2604
5213506e
RW
2605am__api_version='1.11'
2606
3ed8e5b6
AT
2607# Find a good install program. We prefer a C program (faster),
2608# so one script is as good as another. But avoid the broken or
2609# incompatible versions:
2610# SysV /etc/install, /usr/sbin/install
2611# SunOS /usr/etc/install
2612# IRIX /sbin/install
2613# AIX /bin/install
2614# AmigaOS /C/install, which installs bootblocks on floppy discs
2615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2616# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2618# OS/2's system install, which has a completely different semantic
2619# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2620# Reject install programs that cannot install multiple files.
5213506e
RW
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2622$as_echo_n "checking for a BSD-compatible install... " >&6; }
3ed8e5b6 2623if test -z "$INSTALL"; then
5213506e
RW
2624if test "${ac_cv_path_install+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2626else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
5213506e
RW
2632 # Account for people who put trailing slashes in PATH elements.
2633case $as_dir/ in #((
2634 ./ | .// | /[cC]/* | \
3ed8e5b6 2635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3ed8e5b6
AT
2637 /usr/ucb/* ) ;;
2638 *)
2639 # OSF1 and SCO ODT 3.0 have their own names for install.
2640 # Don't use installbsd from OSF since it installs stuff as root
2641 # by default.
2642 for ac_prog in ginstall scoinst install; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2644 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3ed8e5b6
AT
2645 if test $ac_prog = install &&
2646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647 # AIX install. It has an incompatible calling convention.
2648 :
2649 elif test $ac_prog = install &&
2650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # program-specific install script used by HP pwplus--don't use.
2652 :
2653 else
38d24731
RW
2654 rm -rf conftest.one conftest.two conftest.dir
2655 echo one > conftest.one
2656 echo two > conftest.two
2657 mkdir conftest.dir
2658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2659 test -s conftest.one && test -s conftest.two &&
2660 test -s conftest.dir/conftest.one &&
2661 test -s conftest.dir/conftest.two
2662 then
2663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2664 break 3
2665 fi
3ed8e5b6
AT
2666 fi
2667 fi
2668 done
2669 done
2670 ;;
2671esac
5213506e
RW
2672
2673 done
2674IFS=$as_save_IFS
3ed8e5b6 2675
38d24731 2676rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
2677
2678fi
2679 if test "${ac_cv_path_install+set}" = set; then
2680 INSTALL=$ac_cv_path_install
2681 else
38d24731
RW
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for INSTALL within a source directory, because that will
3ed8e5b6 2684 # break other packages using the cache if that directory is
38d24731 2685 # removed, or if the value is a relative name.
3ed8e5b6
AT
2686 INSTALL=$ac_install_sh
2687 fi
2688fi
5213506e
RW
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2690$as_echo "$INSTALL" >&6; }
3ed8e5b6
AT
2691
2692# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2693# It thinks the first close brace ends the variable substitution.
2694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695
2696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697
2698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2699
5213506e
RW
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2701$as_echo_n "checking whether build environment is sane... " >&6; }
3ed8e5b6
AT
2702# Just in case
2703sleep 1
2704echo timestamp > conftest.file
5213506e
RW
2705# Reject unsafe characters in $srcdir or the absolute working directory
2706# name. Accept space and tab only in the latter.
2707am_lf='
2708'
2709case `pwd` in
2710 *[\\\"\#\$\&\'\`$am_lf]*)
2711 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2712esac
2713case $srcdir in
2714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2715 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2716esac
2717
3ed8e5b6
AT
2718# Do `set' in a subshell so we don't clobber the current shell's
2719# arguments. Must try -L first in case configure is actually a
2720# symlink; some systems play weird games with the mod time of symlinks
2721# (eg FreeBSD returns the mod time of the symlink's containing
2722# directory).
2723if (
5213506e 2724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3ed8e5b6
AT
2725 if test "$*" = "X"; then
2726 # -L didn't work.
5213506e 2727 set X `ls -t "$srcdir/configure" conftest.file`
3ed8e5b6
AT
2728 fi
2729 rm -f conftest.file
2730 if test "$*" != "X $srcdir/configure conftest.file" \
2731 && test "$*" != "X conftest.file $srcdir/configure"; then
2732
2733 # If neither matched, then we have a broken ls. This can happen
2734 # if, for instance, CONFIG_SHELL is bash and it inherits a
2735 # broken ls alias from the environment. This has actually
2736 # happened. Such a system could not be considered "sane".
5213506e
RW
2737 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2738alias in your environment" "$LINENO" 5
3ed8e5b6
AT
2739 fi
2740
2741 test "$2" = conftest.file
2742 )
2743then
2744 # Ok.
2745 :
2746else
5213506e
RW
2747 as_fn_error "newly created file is older than distributed files!
2748Check your system clock" "$LINENO" 5
3ed8e5b6 2749fi
5213506e
RW
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2751$as_echo "yes" >&6; }
3ed8e5b6 2752test "$program_prefix" != NONE &&
5213506e 2753 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3ed8e5b6
AT
2754# Use a double $ so make ignores it.
2755test "$program_suffix" != NONE &&
5213506e
RW
2756 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2757# Double any \ or $.
3ed8e5b6 2758# By default was `s,x,x', remove it if useless.
5213506e
RW
2759ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2760program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3ed8e5b6 2761
3ed8e5b6
AT
2762# expand $ac_aux_dir to an absolute path
2763am_aux_dir=`cd $ac_aux_dir && pwd`
2764
5213506e
RW
2765if test x"${MISSING+set}" != xset; then
2766 case $am_aux_dir in
2767 *\ * | *\ *)
2768 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2769 *)
2770 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2771 esac
2772fi
3ed8e5b6
AT
2773# Use eval to expand $SHELL
2774if eval "$MISSING --run true"; then
2775 am_missing_run="$MISSING --run "
2776else
2777 am_missing_run=
5213506e
RW
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2779$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2780fi
2781
2782if test x"${install_sh}" != xset; then
2783 case $am_aux_dir in
2784 *\ * | *\ *)
2785 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2786 *)
2787 install_sh="\${SHELL} $am_aux_dir/install-sh"
2788 esac
2789fi
2790
2791# Installed binaries are usually stripped using `strip' when the user
2792# run `make install-strip'. However `strip' might not be the right
2793# tool to use in cross-compilation environments, therefore Automake
2794# will honor the `STRIP' environment variable to overrule this program.
2795if test "$cross_compiling" != no; then
2796 if test -n "$ac_tool_prefix"; then
2797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2798set dummy ${ac_tool_prefix}strip; ac_word=$2
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if test "${ac_cv_prog_STRIP+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2803else
2804 if test -n "$STRIP"; then
2805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818done
2819 done
2820IFS=$as_save_IFS
2821
2822fi
2823fi
2824STRIP=$ac_cv_prog_STRIP
2825if test -n "$STRIP"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2827$as_echo "$STRIP" >&6; }
2828else
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
2831fi
2832
2833
2834fi
2835if test -z "$ac_cv_prog_STRIP"; then
2836 ac_ct_STRIP=$STRIP
2837 # Extract the first word of "strip", so it can be a program name with args.
2838set dummy strip; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843else
2844 if test -n "$ac_ct_STRIP"; then
2845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_ac_ct_STRIP="strip"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859 done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2865if test -n "$ac_ct_STRIP"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2867$as_echo "$ac_ct_STRIP" >&6; }
2868else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873 if test "x$ac_ct_STRIP" = x; then
2874 STRIP=":"
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877yes:)
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880ac_tool_warned=yes ;;
2881esac
2882 STRIP=$ac_ct_STRIP
2883 fi
2884else
2885 STRIP="$ac_cv_prog_STRIP"
2886fi
2887
2888fi
2889INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2890
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2892$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2893if test -z "$MKDIR_P"; then
2894 if test "${ac_cv_path_mkdir+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2896else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_prog in mkdir gmkdir; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2905 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2906 'mkdir (GNU coreutils) '* | \
2907 'mkdir (coreutils) '* | \
2908 'mkdir (fileutils) '4.1*)
2909 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2910 break 3;;
2911 esac
2912 done
2913 done
076e5443 2914 done
5213506e
RW
2915IFS=$as_save_IFS
2916
2917fi
2918
2919 if test "${ac_cv_path_mkdir+set}" = set; then
2920 MKDIR_P="$ac_cv_path_mkdir -p"
076e5443 2921 else
5213506e
RW
2922 # As a last resort, use the slow shell script. Don't cache a
2923 # value for MKDIR_P within a source directory, because that will
2924 # break other packages using the cache if that directory is
2925 # removed, or if the value is a relative name.
2926 test -d ./--version && rmdir ./--version
2927 MKDIR_P="$ac_install_sh -d"
076e5443
PB
2928 fi
2929fi
5213506e
RW
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2931$as_echo "$MKDIR_P" >&6; }
2932
2933mkdir_p="$MKDIR_P"
2934case $mkdir_p in
2935 [\\/$]* | ?:[\\/]*) ;;
2936 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2937esac
076e5443 2938
3ed8e5b6
AT
2939for ac_prog in gawk mawk nawk awk
2940do
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
5213506e
RW
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_AWK+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2947else
2948 if test -n "$AWK"; then
2949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
5213506e
RW
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 2958 ac_cv_prog_AWK="$ac_prog"
5213506e 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
2960 break 2
2961 fi
2962done
5213506e
RW
2963 done
2964IFS=$as_save_IFS
3ed8e5b6
AT
2965
2966fi
2967fi
2968AWK=$ac_cv_prog_AWK
2969if test -n "$AWK"; then
5213506e
RW
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2971$as_echo "$AWK" >&6; }
3ed8e5b6 2972else
5213506e
RW
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
3ed8e5b6
AT
2975fi
2976
5213506e 2977
3ed8e5b6
AT
2978 test -n "$AWK" && break
2979done
2980
5213506e
RW
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2982$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2983set x ${MAKE-make}
2984ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2985if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2986 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2987else
2988 cat >conftest.make <<\_ACEOF
5213506e 2989SHELL = /bin/sh
3ed8e5b6 2990all:
5213506e 2991 @echo '@@@%%%=$(MAKE)=@@@%%%'
3ed8e5b6
AT
2992_ACEOF
2993# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
2994case `${MAKE-make} -f conftest.make 2>/dev/null` in
2995 *@@@%%%=?*=@@@%%%*)
2996 eval ac_cv_prog_make_${ac_make}_set=yes;;
2997 *)
2998 eval ac_cv_prog_make_${ac_make}_set=no;;
2999esac
3ed8e5b6
AT
3000rm -f conftest.make
3001fi
5213506e
RW
3002if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004$as_echo "yes" >&6; }
3ed8e5b6
AT
3005 SET_MAKE=
3006else
5213506e
RW
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3ed8e5b6
AT
3009 SET_MAKE="MAKE=${MAKE-make}"
3010fi
3011
3012rm -rf .tst 2>/dev/null
3013mkdir .tst 2>/dev/null
3014if test -d .tst; then
3015 am__leading_dot=.
3016else
3017 am__leading_dot=_
3018fi
3019rmdir .tst 2>/dev/null
3020
5213506e
RW
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 fi
3ed8e5b6
AT
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='libffi'
b7b857bb 3043 VERSION='3.0.8'
3ed8e5b6
AT
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3ed8e5b6
AT
3071# We need awk for the "check" target. The system "awk" is bad on
3072# some platforms.
b85e31b9
KC
3073# Always define AMTAR for backward compatibility.
3074
3075AMTAR=${AMTAR-"${am_missing_run}tar"}
3076
3077am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3078
3079
3ed8e5b6
AT
3080
3081
3082
3083
3084# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3085# We must force CC to /not/ be precious variables; otherwise
3086# the wrong, non-multilib-adjusted value will be used in multilibs.
3087# As a side effect, we have to subst CFLAGS ourselves.
3088
3089
3090
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
3101if test "${ac_cv_prog_CC+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3103else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
5213506e
RW
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3116 break 2
3117 fi
3118done
5213506e
RW
3119 done
3120IFS=$as_save_IFS
3ed8e5b6
AT
3121
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
5213506e
RW
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3ed8e5b6 3128else
5213506e
RW
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3ed8e5b6
AT
3131fi
3132
5213506e 3133
3ed8e5b6
AT
3134fi
3135if test -z "$ac_cv_prog_CC"; then
3136 ac_ct_CC=$CC
3137 # Extract the first word of "gcc", so it can be a program name with args.
3138set dummy gcc; ac_word=$2
5213506e
RW
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3143else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
5213506e
RW
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3154 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3156 break 2
3157 fi
3158done
5213506e
RW
3159 done
3160IFS=$as_save_IFS
3ed8e5b6
AT
3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if test -n "$ac_ct_CC"; then
5213506e
RW
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3168else
5213506e
RW
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3ed8e5b6
AT
3171fi
3172
5213506e
RW
3173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177yes:)
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180ac_tool_warned=yes ;;
3181esac
3182 CC=$ac_ct_CC
3183 fi
3ed8e5b6
AT
3184else
3185 CC="$ac_cv_prog_CC"
3186fi
3187
3188if test -z "$CC"; then
5213506e
RW
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3ed8e5b6 3191set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193$as_echo_n "checking for $ac_word... " >&6; }
3194if test "${ac_cv_prog_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
5213506e
RW
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3207 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3209 break 2
3210 fi
3211done
5213506e
RW
3212 done
3213IFS=$as_save_IFS
3ed8e5b6
AT
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
5213506e
RW
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220$as_echo "$CC" >&6; }
3ed8e5b6 3221else
5213506e
RW
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3ed8e5b6
AT
3224fi
3225
3ed8e5b6 3226
5213506e 3227 fi
3ed8e5b6
AT
3228fi
3229if test -z "$CC"; then
3230 # Extract the first word of "cc", so it can be a program name with args.
3231set dummy cc; ac_word=$2
5213506e
RW
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233$as_echo_n "checking for $ac_word... " >&6; }
3234if test "${ac_cv_prog_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3236else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239else
3240 ac_prog_rejected=no
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
5213506e
RW
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6
AT
3248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3249 ac_prog_rejected=yes
3250 continue
3251 fi
3252 ac_cv_prog_CC="cc"
5213506e 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3254 break 2
3255 fi
3256done
5213506e
RW
3257 done
3258IFS=$as_save_IFS
3ed8e5b6
AT
3259
3260if test $ac_prog_rejected = yes; then
3261 # We found a bogon in the path, so make sure we never use it.
3262 set dummy $ac_cv_prog_CC
3263 shift
3264 if test $# != 0; then
3265 # We chose a different compiler from the bogus one.
3266 # However, it has the same basename, so the bogon will be chosen
3267 # first if we set CC to just the basename; use the full file name.
3268 shift
3269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3270 fi
3271fi
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
5213506e
RW
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3ed8e5b6 3278else
5213506e
RW
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3ed8e5b6
AT
3281fi
3282
5213506e 3283
3ed8e5b6
AT
3284fi
3285if test -z "$CC"; then
3286 if test -n "$ac_tool_prefix"; then
5213506e 3287 for ac_prog in cl.exe
3ed8e5b6
AT
3288 do
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3295else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
5213506e
RW
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3308 break 2
3309 fi
3310done
5213506e
RW
3311 done
3312IFS=$as_save_IFS
3ed8e5b6
AT
3313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
5213506e
RW
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3ed8e5b6 3320else
5213506e
RW
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3ed8e5b6
AT
3323fi
3324
5213506e 3325
3ed8e5b6
AT
3326 test -n "$CC" && break
3327 done
3328fi
3329if test -z "$CC"; then
3330 ac_ct_CC=$CC
5213506e 3331 for ac_prog in cl.exe
3ed8e5b6
AT
3332do
3333 # Extract the first word of "$ac_prog", so it can be a program name with args.
3334set dummy $ac_prog; ac_word=$2
5213506e
RW
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3339else
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
5213506e
RW
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3350 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3352 break 2
3353 fi
3354done
5213506e
RW
3355 done
3356IFS=$as_save_IFS
3ed8e5b6
AT
3357
3358fi
3359fi
3360ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361if test -n "$ac_ct_CC"; then
5213506e
RW
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3363$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3364else
5213506e
RW
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3ed8e5b6
AT
3367fi
3368
5213506e 3369
3ed8e5b6
AT
3370 test -n "$ac_ct_CC" && break
3371done
3372
5213506e
RW
3373 if test "x$ac_ct_CC" = x; then
3374 CC=""
3375 else
3376 case $cross_compiling:$ac_tool_warned in
3377yes:)
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380ac_tool_warned=yes ;;
3381esac
3382 CC=$ac_ct_CC
3383 fi
3ed8e5b6
AT
3384fi
3385
3386fi
3387
3388
5213506e
RW
3389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error "no acceptable C compiler found in \$PATH
3392See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3393
3394# Provide some information about the compiler.
5213506e
RW
3395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3396set X $ac_compile
3397ac_compiler=$2
3398for ac_option in --version -v -V -qversion; do
3399 { { ac_try="$ac_compiler $ac_option >&5"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3ed8e5b6 3407 ac_status=$?
5213506e
RW
3408 if test -s conftest.err; then
3409 sed '10a\
3410... rest of stderr output deleted ...
3411 10q' conftest.err >conftest.er1
3412 cat conftest.er1 >&5
3413 rm -f conftest.er1 conftest.err
3414 fi
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }
3417done
3ed8e5b6 3418
5213506e 3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3420/* end confdefs.h. */
3421
3422int
3423main ()
3424{
3425
3426 ;
3427 return 0;
3428}
3429_ACEOF
3430ac_clean_files_save=$ac_clean_files
5213506e 3431ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3ed8e5b6
AT
3432# Try to create an executable without -o first, disregard a.out.
3433# It will help us diagnose broken compilers, and finding out an intuition
3434# of exeext.
5213506e
RW
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436$as_echo_n "checking for C compiler default output file name... " >&6; }
3437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3438
3439# The possible output files:
3440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3441
3442ac_rmfiles=
3443for ac_file in $ac_files
3444do
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3448 esac
3449done
3450rm -f $ac_rmfiles
3451
3452if { { ac_try="$ac_link_default"
3453case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link_default") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
3463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3464# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3465# in a Makefile. We should not override ac_cv_exeext if it was cached,
3466# so that the user can short-circuit this test for compilers unknown to
3467# Autoconf.
3468for ac_file in $ac_files ''
3ed8e5b6
AT
3469do
3470 test -f "$ac_file" || continue
3471 case $ac_file in
5213506e 3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3ed8e5b6
AT
3473 ;;
3474 [ab].out )
3475 # We found the default executable, but exeext='' is most
3476 # certainly right.
3477 break;;
3478 *.* )
5213506e
RW
3479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3480 then :; else
3481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 fi
3483 # We set ac_cv_exeext here because the later test for it is not
3484 # safe: cross compilers may not add the suffix if given an `-o'
3485 # argument, so we may need to know it at that point already.
3486 # Even if this section looks crufty: it has the advantage of
3487 # actually working.
3ed8e5b6
AT
3488 break;;
3489 * )
3490 break;;
3491 esac
3492done
5213506e
RW
3493test "$ac_cv_exeext" = no && ac_cv_exeext=
3494
3ed8e5b6 3495else
5213506e
RW
3496 ac_file=''
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499$as_echo "$ac_file" >&6; }
3500if test -z "$ac_file"; then :
3501 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
5213506e
RW
3504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506{ as_fn_set_status 77
3507as_fn_error "C compiler cannot create executables
3508See \`config.log' for more details." "$LINENO" 5; }; }
3ed8e5b6 3509fi
3ed8e5b6 3510ac_exeext=$ac_cv_exeext
3ed8e5b6 3511
5213506e 3512# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3513# the compiler is broken, or we cross compile.
5213506e
RW
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515$as_echo_n "checking whether the C compiler works... " >&6; }
3ed8e5b6
AT
3516# If not cross compiling, check that we can run a simple program.
3517if test "$cross_compiling" != yes; then
3518 if { ac_try='./$ac_file'
5213506e
RW
3519 { { case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524$as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_try") 2>&5
3ed8e5b6 3526 ac_status=$?
5213506e
RW
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; }; then
3ed8e5b6
AT
3529 cross_compiling=no
3530 else
3531 if test "$cross_compiling" = maybe; then
3532 cross_compiling=yes
3533 else
5213506e
RW
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536as_fn_error "cannot run C compiled programs.
3ed8e5b6 3537If you meant to cross compile, use \`--host'.
5213506e 3538See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3539 fi
3540 fi
3541fi
5213506e
RW
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543$as_echo "yes" >&6; }
3ed8e5b6 3544
5213506e 3545rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3ed8e5b6 3546ac_clean_files=$ac_clean_files_save
5213506e 3547# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3548# the compiler is broken, or we cross compile.
5213506e
RW
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550$as_echo_n "checking whether we are cross compiling... " >&6; }
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552$as_echo "$cross_compiling" >&6; }
3553
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555$as_echo_n "checking for suffix of executables... " >&6; }
3556if { { ac_try="$ac_link"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3ed8e5b6 3564 ac_status=$?
5213506e
RW
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3ed8e5b6
AT
3567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3568# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3569# work properly (i.e., refer to `conftest.exe'), while it won't with
3570# `rm'.
3571for ac_file in conftest.exe conftest conftest.*; do
3572 test -f "$ac_file" || continue
3573 case $ac_file in
5213506e 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3ed8e5b6 3575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3ed8e5b6
AT
3576 break;;
3577 * ) break;;
3578 esac
3579done
3580else
5213506e
RW
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583as_fn_error "cannot compute suffix of executables: cannot compile and link
3584See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3585fi
3ed8e5b6 3586rm -f conftest$ac_cv_exeext
5213506e
RW
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588$as_echo "$ac_cv_exeext" >&6; }
3ed8e5b6
AT
3589
3590rm -f conftest.$ac_ext
3591EXEEXT=$ac_cv_exeext
3592ac_exeext=$EXEEXT
5213506e
RW
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3594$as_echo_n "checking for suffix of object files... " >&6; }
3595if test "${ac_cv_objext+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3ed8e5b6 3597else
5213506e 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3599/* end confdefs.h. */
3600
3601int
3602main ()
3603{
3604
3605 ;
3606 return 0;
3607}
3608_ACEOF
3609rm -f conftest.o conftest.obj
5213506e
RW
3610if { { ac_try="$ac_compile"
3611case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_compile") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; then :
3621 for ac_file in conftest.o conftest.obj conftest.*; do
3622 test -f "$ac_file" || continue;
3ed8e5b6 3623 case $ac_file in
5213506e 3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3ed8e5b6
AT
3625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3626 break;;
3627 esac
3628done
3629else
5213506e 3630 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
5213506e
RW
3633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error "cannot compute suffix of object files: cannot compile
3636See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3637fi
3ed8e5b6
AT
3638rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639fi
5213506e
RW
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3641$as_echo "$ac_cv_objext" >&6; }
3ed8e5b6
AT
3642OBJEXT=$ac_cv_objext
3643ac_objext=$OBJEXT
5213506e
RW
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3645$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3646if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3ed8e5b6 3648else
5213506e 3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655#ifndef __GNUC__
3656 choke me
3657#endif
3658
3659 ;
3660 return 0;
3661}
3662_ACEOF
5213506e 3663if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3664 ac_compiler_gnu=yes
3665else
5213506e 3666 ac_compiler_gnu=no
3ed8e5b6 3667fi
5213506e 3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
3669ac_cv_c_compiler_gnu=$ac_compiler_gnu
3670
3671fi
5213506e
RW
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3673$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3674if test $ac_compiler_gnu = yes; then
3675 GCC=yes
3676else
3677 GCC=
3678fi
3ed8e5b6
AT
3679ac_test_CFLAGS=${CFLAGS+set}
3680ac_save_CFLAGS=$CFLAGS
5213506e
RW
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3682$as_echo_n "checking whether $CC accepts -g... " >&6; }
3683if test "${ac_cv_prog_cc_g+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685else
3686 ac_save_c_werror_flag=$ac_c_werror_flag
3687 ac_c_werror_flag=yes
3688 ac_cv_prog_cc_g=no
3689 CFLAGS="-g"
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3691/* end confdefs.h. */
3692
3693int
3694main ()
3695{
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
5213506e 3701if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3702 ac_cv_prog_cc_g=yes
3703else
5213506e
RW
3704 CFLAGS=""
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h. */
3707
3708int
3709main ()
3710{
3711
3712 ;
3713 return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717
3718else
3719 ac_c_werror_flag=$ac_save_c_werror_flag
3720 CFLAGS="-g"
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h. */
3ed8e5b6 3723
5213506e
RW
3724int
3725main ()
3726{
3727
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_g=yes
3734fi
3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3736fi
5213506e 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3738fi
5213506e
RW
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3743$as_echo "$ac_cv_prog_cc_g" >&6; }
3ed8e5b6
AT
3744if test "$ac_test_CFLAGS" = set; then
3745 CFLAGS=$ac_save_CFLAGS
3746elif test $ac_cv_prog_cc_g = yes; then
3747 if test "$GCC" = yes; then
3748 CFLAGS="-g -O2"
3749 else
3750 CFLAGS="-g"
3751 fi
3752else
3753 if test "$GCC" = yes; then
3754 CFLAGS="-O2"
3755 else
3756 CFLAGS=
3757 fi
3758fi
5213506e
RW
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3760$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3761if test "${ac_cv_prog_cc_c89+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3ed8e5b6 3763else
5213506e 3764 ac_cv_prog_cc_c89=no
3ed8e5b6 3765ac_save_CC=$CC
5213506e 3766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3767/* end confdefs.h. */
3768#include <stdarg.h>
3769#include <stdio.h>
3770#include <sys/types.h>
3771#include <sys/stat.h>
3772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3773struct buf { int x; };
3774FILE * (*rcsopen) (struct buf *, struct stat *, int);
3775static char *e (p, i)
3776 char **p;
3777 int i;
3778{
3779 return p[i];
3780}
3781static char *f (char * (*g) (char **, int), char **p, ...)
3782{
3783 char *s;
3784 va_list v;
3785 va_start (v,p);
3786 s = g (p, va_arg (v,int));
3787 va_end (v);
3788 return s;
3789}
3790
3791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3792 function prototypes and stuff, but not '\xHH' hex character constants.
3793 These don't provoke an error unfortunately, instead are silently treated
5213506e 3794 as 'x'. The following induces an error, until -std is added to get
3ed8e5b6
AT
3795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3796 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3797 that's true only with -std. */
3ed8e5b6
AT
3798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3799
5213506e
RW
3800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3801 inside strings and character constants. */
3802#define FOO(x) 'x'
3803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3804
3ed8e5b6
AT
3805int test (int i, double x);
3806struct s1 {int (*f) (int a);};
3807struct s2 {int (*f) (double a);};
3808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3809int argc;
3810char **argv;
3811int
3812main ()
3813{
3814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3815 ;
3816 return 0;
3817}
3818_ACEOF
5213506e
RW
3819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3ed8e5b6
AT
3821do
3822 CC="$ac_save_CC $ac_arg"
5213506e
RW
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824 ac_cv_prog_cc_c89=$ac_arg
3ed8e5b6 3825fi
5213506e
RW
3826rm -f core conftest.err conftest.$ac_objext
3827 test "x$ac_cv_prog_cc_c89" != "xno" && break
3ed8e5b6 3828done
5213506e 3829rm -f conftest.$ac_ext
3ed8e5b6
AT
3830CC=$ac_save_CC
3831
3832fi
5213506e
RW
3833# AC_CACHE_VAL
3834case "x$ac_cv_prog_cc_c89" in
3835 x)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837$as_echo "none needed" >&6; } ;;
3838 xno)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840$as_echo "unsupported" >&6; } ;;
3ed8e5b6 3841 *)
5213506e
RW
3842 CC="$CC $ac_cv_prog_cc_c89"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3ed8e5b6 3845esac
5213506e 3846if test "x$ac_cv_prog_cc_c89" != xno; then :
3ed8e5b6
AT
3847
3848fi
3ed8e5b6 3849
3ed8e5b6
AT
3850ac_ext=c
3851ac_cpp='$CPP $CPPFLAGS'
3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855DEPDIR="${am__leading_dot}deps"
3856
5213506e 3857ac_config_commands="$ac_config_commands depfiles"
3ed8e5b6
AT
3858
3859
3860am_make=${MAKE-make}
3861cat > confinc << 'END'
3862am__doit:
5213506e 3863 @echo this is the am__doit target
3ed8e5b6
AT
3864.PHONY: am__doit
3865END
3866# If we don't find an include directive, just comment out the code.
5213506e
RW
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3868$as_echo_n "checking for style of include used by $am_make... " >&6; }
3ed8e5b6
AT
3869am__include="#"
3870am__quote=
3871_am_result=none
3872# First try GNU make style include.
3873echo "include confinc" > confmf
5213506e
RW
3874# Ignore all kinds of additional output from `make'.
3875case `$am_make -s -f confmf 2> /dev/null` in #(
3876*the\ am__doit\ target*)
3877 am__include=include
3878 am__quote=
3879 _am_result=GNU
3880 ;;
3881esac
3ed8e5b6
AT
3882# Now try BSD make style include.
3883if test "$am__include" = "#"; then
3884 echo '.include "confinc"' > confmf
5213506e
RW
3885 case `$am_make -s -f confmf 2> /dev/null` in #(
3886 *the\ am__doit\ target*)
3887 am__include=.include
3888 am__quote="\""
3889 _am_result=BSD
3890 ;;
3891 esac
3ed8e5b6
AT
3892fi
3893
3894
5213506e
RW
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3896$as_echo "$_am_result" >&6; }
3ed8e5b6
AT
3897rm -f confinc confmf
3898
5213506e
RW
3899# Check whether --enable-dependency-tracking was given.
3900if test "${enable_dependency_tracking+set}" = set; then :
3901 enableval=$enable_dependency_tracking;
3902fi
3ed8e5b6 3903
3ed8e5b6
AT
3904if test "x$enable_dependency_tracking" != xno; then
3905 am_depcomp="$ac_aux_dir/depcomp"
3906 AMDEPBACKSLASH='\'
3907fi
5213506e 3908 if test "x$enable_dependency_tracking" != xno; then
3ed8e5b6
AT
3909 AMDEP_TRUE=
3910 AMDEP_FALSE='#'
3911else
3912 AMDEP_TRUE='#'
3913 AMDEP_FALSE=
3914fi
3915
3916
3917
3ed8e5b6
AT
3918depcc="$CC" am_compiler_list=
3919
5213506e
RW
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921$as_echo_n "checking dependency style of $depcc... " >&6; }
3922if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3924else
3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926 # We make a subdir and do the tests there. Otherwise we can end up
3927 # making bogus files that we don't know about and never remove. For
3928 # instance it was reported that on HP-UX the gcc test will end up
3929 # making a dummy file named `D' -- because `-MD' means `put the output
3930 # in D'.
3931 mkdir conftest.dir
3932 # Copy depcomp to subdir because otherwise we won't find it if we're
3933 # using a relative directory.
3934 cp "$am_depcomp" conftest.dir
3935 cd conftest.dir
3936 # We will build objects and dependencies in a subdirectory because
3937 # it helps to detect inapplicable dependency modes. For instance
3938 # both Tru64's cc and ICC support -MD to output dependencies as a
3939 # side effect of compilation, but ICC will put the dependencies in
3940 # the current directory while Tru64 will put them in the object
3941 # directory.
3942 mkdir sub
3943
3944 am_cv_CC_dependencies_compiler_type=none
3945 if test "$am_compiler_list" = ""; then
3946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3947 fi
5213506e
RW
3948 am__universal=false
3949 case " $depcc " in #(
3950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3951 esac
3952
3ed8e5b6
AT
3953 for depmode in $am_compiler_list; do
3954 # Setup a source with many dependencies, because some compilers
3955 # like to wrap large dependency lists on column 80 (with \), and
3956 # we should not choose a depcomp mode which is confused by this.
3957 #
3958 # We need to recreate these files for each test, as the compiler may
3959 # overwrite some of them when testing with obscure command lines.
3960 # This happens at least with the AIX C compiler.
3961 : > sub/conftest.c
3962 for i in 1 2 3 4 5 6; do
3963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3965 # Solaris 8's {/usr,}/bin/sh.
3966 touch sub/conftst$i.h
3ed8e5b6
AT
3967 done
3968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3969
5213506e
RW
3970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3971 # mode. It turns out that the SunPro C++ compiler does not properly
3972 # handle `-M -o', and we need to detect this. Also, some Intel
3973 # versions had trouble with output in subdirs
3974 am__obj=sub/conftest.${OBJEXT-o}
3975 am__minus_obj="-o $am__obj"
3ed8e5b6 3976 case $depmode in
5213506e
RW
3977 gcc)
3978 # This depmode causes a compiler race in universal mode.
3979 test "$am__universal" = false || continue
3980 ;;
3ed8e5b6
AT
3981 nosideeffect)
3982 # after this tag, mechanisms are not by side-effect, so they'll
3983 # only be used when explicitly requested
3984 if test "x$enable_dependency_tracking" = xyes; then
3985 continue
3986 else
3987 break
3988 fi
3989 ;;
5213506e
RW
3990 msvisualcpp | msvcmsys)
3991 # This compiler won't grok `-c -o', but also, the minuso test has
3992 # not run yet. These depmodes are late enough in the game, and
3993 # so weak that their functioning should not be impacted.
3994 am__obj=conftest.${OBJEXT-o}
3995 am__minus_obj=
3996 ;;
3ed8e5b6
AT
3997 none) break ;;
3998 esac
3ed8e5b6 3999 if depmode=$depmode \
5213506e 4000 source=sub/conftest.c object=$am__obj \
3ed8e5b6 4001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3ed8e5b6 4003 >/dev/null 2>conftest.err &&
5213506e 4004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6 4005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6
AT
4007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4008 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
4009 # or remarks (even with -Werror). So we grep stderr for any message
4010 # that says an option was ignored or not supported.
4011 # When given -MP, icc 7.0 and 7.1 complain thusly:
4012 # icc: Command line warning: ignoring option '-M'; no argument required
4013 # The diagnosis changed in icc 8.0:
4014 # icc: Command line remark: option '-MP' not supported
4015 if (grep 'ignoring option' conftest.err ||
4016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
4017 am_cv_CC_dependencies_compiler_type=$depmode
4018 break
4019 fi
4020 fi
4021 done
bbf3057b 4022
3ed8e5b6
AT
4023 cd ..
4024 rm -rf conftest.dir
4025else
4026 am_cv_CC_dependencies_compiler_type=none
4027fi
4028
4029fi
5213506e
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3ed8e5b6
AT
4032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4033
5213506e 4034 if
3ed8e5b6
AT
4035 test "x$enable_dependency_tracking" != xno \
4036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4037 am__fastdepCC_TRUE=
4038 am__fastdepCC_FALSE='#'
4039else
4040 am__fastdepCC_TRUE='#'
4041 am__fastdepCC_FALSE=
4042fi
4043
4044
4045
4046
4047
4048
4049# By default we simply use the C compiler to build assembly code.
4050
076e5443
PB
4051test "${CCAS+set}" = set || CCAS=$CC
4052test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4053
3ed8e5b6
AT
4054
4055
5213506e
RW
4056depcc="$CCAS" am_compiler_list=
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4059$as_echo_n "checking dependency style of $depcc... " >&6; }
4060if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
3ed8e5b6 4062else
5213506e
RW
4063 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4064 # We make a subdir and do the tests there. Otherwise we can end up
4065 # making bogus files that we don't know about and never remove. For
4066 # instance it was reported that on HP-UX the gcc test will end up
4067 # making a dummy file named `D' -- because `-MD' means `put the output
4068 # in D'.
4069 mkdir conftest.dir
4070 # Copy depcomp to subdir because otherwise we won't find it if we're
4071 # using a relative directory.
4072 cp "$am_depcomp" conftest.dir
4073 cd conftest.dir
4074 # We will build objects and dependencies in a subdirectory because
4075 # it helps to detect inapplicable dependency modes. For instance
4076 # both Tru64's cc and ICC support -MD to output dependencies as a
4077 # side effect of compilation, but ICC will put the dependencies in
4078 # the current directory while Tru64 will put them in the object
4079 # directory.
4080 mkdir sub
3ed8e5b6 4081
5213506e
RW
4082 am_cv_CCAS_dependencies_compiler_type=none
4083 if test "$am_compiler_list" = ""; then
4084 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4085 fi
4086 am__universal=false
3ed8e5b6 4087
5213506e
RW
4088
4089 for depmode in $am_compiler_list; do
4090 # Setup a source with many dependencies, because some compilers
4091 # like to wrap large dependency lists on column 80 (with \), and
4092 # we should not choose a depcomp mode which is confused by this.
4093 #
4094 # We need to recreate these files for each test, as the compiler may
4095 # overwrite some of them when testing with obscure command lines.
4096 # This happens at least with the AIX C compiler.
4097 : > sub/conftest.c
4098 for i in 1 2 3 4 5 6; do
4099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4101 # Solaris 8's {/usr,}/bin/sh.
4102 touch sub/conftst$i.h
4103 done
4104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4105
4106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4107 # mode. It turns out that the SunPro C++ compiler does not properly
4108 # handle `-M -o', and we need to detect this. Also, some Intel
4109 # versions had trouble with output in subdirs
4110 am__obj=sub/conftest.${OBJEXT-o}
4111 am__minus_obj="-o $am__obj"
4112 case $depmode in
4113 gcc)
4114 # This depmode causes a compiler race in universal mode.
4115 test "$am__universal" = false || continue
4116 ;;
4117 nosideeffect)
4118 # after this tag, mechanisms are not by side-effect, so they'll
4119 # only be used when explicitly requested
4120 if test "x$enable_dependency_tracking" = xyes; then
4121 continue
4122 else
4123 break
4124 fi
4125 ;;
4126 msvisualcpp | msvcmsys)
4127 # This compiler won't grok `-c -o', but also, the minuso test has
4128 # not run yet. These depmodes are late enough in the game, and
4129 # so weak that their functioning should not be impacted.
4130 am__obj=conftest.${OBJEXT-o}
4131 am__minus_obj=
4132 ;;
4133 none) break ;;
4134 esac
4135 if depmode=$depmode \
4136 source=sub/conftest.c object=$am__obj \
4137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4139 >/dev/null 2>conftest.err &&
4140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4144 # icc doesn't choke on unknown options, it will just issue warnings
4145 # or remarks (even with -Werror). So we grep stderr for any message
4146 # that says an option was ignored or not supported.
4147 # When given -MP, icc 7.0 and 7.1 complain thusly:
4148 # icc: Command line warning: ignoring option '-M'; no argument required
4149 # The diagnosis changed in icc 8.0:
4150 # icc: Command line remark: option '-MP' not supported
4151 if (grep 'ignoring option' conftest.err ||
4152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4153 am_cv_CCAS_dependencies_compiler_type=$depmode
4154 break
4155 fi
4156 fi
4157 done
4158
4159 cd ..
4160 rm -rf conftest.dir
4161else
4162 am_cv_CCAS_dependencies_compiler_type=none
4163fi
4164
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4167$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4168CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4169
4170 if
4171 test "x$enable_dependency_tracking" != xno \
4172 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4173 am__fastdepCCAS_TRUE=
4174 am__fastdepCCAS_FALSE='#'
4175else
4176 am__fastdepCCAS_TRUE='#'
4177 am__fastdepCCAS_FALSE=
4178fi
4179
4180
4181if test "x$CC" != xcc; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4183$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4184else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4186$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4187fi
4188set dummy $CC; ac_cc=`$as_echo "$2" |
4189 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4190if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195
4196int
4197main ()
4198{
4199
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204# Make sure it works both with $CC and with simple cc.
4205# We do the test twice because some compilers refuse to overwrite an
4206# existing .o file with -o, though they will create one.
4207ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4208rm -f conftest2.*
4209if { { case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214$as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_try") 2>&5
4216 ac_status=$?
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; } &&
4219 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224$as_echo "$ac_try_echo"; } >&5
4225 (eval "$ac_try") 2>&5
3ed8e5b6 4226 ac_status=$?
5213506e
RW
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; };
3ed8e5b6
AT
4229then
4230 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4231 if test "x$CC" != xcc; then
4232 # Test first that cc exists at all.
4233 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4234 { { case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; }; then
4244 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 rm -f conftest2.*
4246 if { { case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251$as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; } &&
4256 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
3ed8e5b6 4263 ac_status=$?
5213506e
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; };
3ed8e5b6
AT
4266 then
4267 # cc works too.
4268 :
4269 else
4270 # cc exists but doesn't like -o.
4271 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4272 fi
4273 fi
4274 fi
4275else
4276 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4277fi
5213506e 4278rm -f core conftest*
3ed8e5b6
AT
4279
4280fi
5213506e
RW
4281if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4283$as_echo "yes" >&6; }
3ed8e5b6 4284else
5213506e
RW
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286$as_echo "no" >&6; }
3ed8e5b6 4287
5213506e 4288$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3ed8e5b6
AT
4289
4290fi
4291
4292# FIXME: we rely on the cache variable name because
4293# there is no other way.
4294set dummy $CC
5213506e
RW
4295am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4296eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4297if test "$am_t" != yes; then
3ed8e5b6
AT
4298 # Losing compiler, so override with the script.
4299 # FIXME: It is wrong to rewrite CC.
4300 # But if we don't then we get into trouble of one sort or another.
4301 # A longer-term fix would be to have automake use am__CC in this case,
4302 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4303 CC="$am_aux_dir/compile $CC"
4304fi
63e5e3e0 4305
5213506e 4306
80c6c2cb
PG
4307case `pwd` in
4308 *\ * | *\ *)
5213506e
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4310$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
80c6c2cb 4311esac
1cf3d07d
SE
4312
4313
1cf3d07d 4314
43e02a8a
RW
4315macro_version='2.2.7a'
4316macro_revision='1.3134'
1cf3d07d
SE
4317
4318
4319
4320
4321
4322
63e5e3e0 4323
1cf3d07d
SE
4324
4325
4326
4327
4328
4329
80c6c2cb 4330ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4331
43e02a8a
RW
4332# Backslashify metacharacters that are still active within
4333# double-quoted strings.
4334sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4335
4336# Same as above, but do not quote variable references.
4337double_quote_subst='s/\(["`\\]\)/\\\1/g'
4338
4339# Sed substitution to delay expansion of an escaped shell variable in a
4340# double_quote_subst'ed string.
4341delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4342
4343# Sed substitution to delay expansion of an escaped single quote.
4344delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4345
4346# Sed substitution to avoid accidental globbing in evaled expressions
4347no_glob_subst='s/\*/\\\*/g'
4348
4349ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4350ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4351ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4354$as_echo_n "checking how to print strings... " >&6; }
4355# Test print first, because it will be a builtin if present.
4356if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4357 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4358 ECHO='print -r --'
4359elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4360 ECHO='printf %s\n'
4361else
4362 # Use this function as a fallback that always works.
4363 func_fallback_echo ()
4364 {
4365 eval 'cat <<_LTECHO_EOF
4366$1
4367_LTECHO_EOF'
4368 }
4369 ECHO='func_fallback_echo'
4370fi
4371
4372# func_echo_all arg...
4373# Invoke $ECHO with all args, space-separated.
4374func_echo_all ()
4375{
4376 $ECHO ""
4377}
4378
4379case "$ECHO" in
4380 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4381$as_echo "printf" >&6; } ;;
4382 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4383$as_echo "print -r" >&6; } ;;
4384 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4385$as_echo "cat" >&6; } ;;
4386esac
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
5213506e
RW
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4402$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4403if test "${ac_cv_path_SED+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405else
4406 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4407 for ac_i in 1 2 3 4 5 6 7; do
4408 ac_script="$ac_script$as_nl$ac_script"
4409 done
4410 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4411 { ac_script=; unset ac_script;}
4412 if test -z "$SED"; then
4413 ac_path_SED_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
5213506e 4420 for ac_prog in sed gsed; do
1cf3d07d 4421 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4422 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4423 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4424# Check for GNU ac_path_SED and select it if it is found.
4425 # Check for GNU $ac_path_SED
4426case `"$ac_path_SED" --version 2>&1` in
4427*GNU*)
4428 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4429*)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo '' >> "conftest.nl"
4438 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_SED_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_SED="$ac_path_SED"
4444 ac_path_SED_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452 $ac_path_SED_found && break 3
1cf3d07d
SE
4453 done
4454 done
5213506e 4455 done
1cf3d07d 4456IFS=$as_save_IFS
5213506e
RW
4457 if test -z "$ac_cv_path_SED"; then
4458 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4459 fi
5213506e
RW
4460else
4461 ac_cv_path_SED=$SED
1cf3d07d
SE
4462fi
4463
5213506e
RW
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4466$as_echo "$ac_cv_path_SED" >&6; }
4467 SED="$ac_cv_path_SED"
4468 rm -f conftest.sed
1cf3d07d
SE
4469
4470test -z "$SED" && SED=sed
4471Xsed="$SED -e 1s/^X//"
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
5213506e
RW
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4485if test "${ac_cv_path_GREP+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487else
4488 if test -z "$GREP"; then
4489 ac_path_GREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in grep ggrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4500# Check for GNU ac_path_GREP and select it if it is found.
4501 # Check for GNU $ac_path_GREP
4502case `"$ac_path_GREP" --version 2>&1` in
4503*GNU*)
4504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4505*)
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4509 do
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'GREP' >> "conftest.nl"
4514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_GREP="$ac_path_GREP"
4520 ac_path_GREP_max=$ac_count
4521 fi
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526esac
4527
4528 $ac_path_GREP_found && break 3
4529 done
4530 done
4531 done
4532IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_GREP"; then
4534 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 fi
4536else
4537 ac_cv_path_GREP=$GREP
4538fi
4539
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4542$as_echo "$ac_cv_path_GREP" >&6; }
4543 GREP="$ac_cv_path_GREP"
4544
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4547$as_echo_n "checking for egrep... " >&6; }
4548if test "${ac_cv_path_EGREP+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
1cf3d07d 4550else
5213506e
RW
4551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4552 then ac_cv_path_EGREP="$GREP -E"
4553 else
4554 if test -z "$EGREP"; then
4555 ac_path_EGREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in egrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4566# Check for GNU ac_path_EGREP and select it if it is found.
4567 # Check for GNU $ac_path_EGREP
4568case `"$ac_path_EGREP" --version 2>&1` in
4569*GNU*)
4570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4571*)
4572 ac_count=0
4573 $as_echo_n 0123456789 >"conftest.in"
4574 while :
4575 do
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'EGREP' >> "conftest.nl"
4580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 as_fn_arith $ac_count + 1 && ac_count=$as_val
4583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_EGREP="$ac_path_EGREP"
4586 ac_path_EGREP_max=$ac_count
1cf3d07d 4587 fi
5213506e
RW
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592esac
4593
4594 $ac_path_EGREP_found && break 3
4595 done
4596 done
4597 done
4598IFS=$as_save_IFS
4599 if test -z "$ac_cv_path_EGREP"; then
4600 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 fi
4602else
4603 ac_cv_path_EGREP=$EGREP
4604fi
4605
4606 fi
1cf3d07d 4607fi
5213506e
RW
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4609$as_echo "$ac_cv_path_EGREP" >&6; }
4610 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
4611
4612
5213506e
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4614$as_echo_n "checking for fgrep... " >&6; }
4615if test "${ac_cv_path_FGREP+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
1cf3d07d 4617else
5213506e
RW
4618 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4619 then ac_cv_path_FGREP="$GREP -F"
4620 else
4621 if test -z "$FGREP"; then
4622 ac_path_FGREP_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in fgrep; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4632 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4633# Check for GNU ac_path_FGREP and select it if it is found.
4634 # Check for GNU $ac_path_FGREP
4635case `"$ac_path_FGREP" --version 2>&1` in
4636*GNU*)
4637 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4638*)
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4642 do
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'FGREP' >> "conftest.nl"
4647 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_FGREP="$ac_path_FGREP"
4653 ac_path_FGREP_max=$ac_count
1cf3d07d 4654 fi
5213506e
RW
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659esac
4660
4661 $ac_path_FGREP_found && break 3
4662 done
4663 done
4664 done
4665IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_FGREP"; then
4667 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4668 fi
4669else
4670 ac_cv_path_FGREP=$FGREP
4671fi
4672
4673 fi
1cf3d07d 4674fi
5213506e
RW
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4676$as_echo "$ac_cv_path_FGREP" >&6; }
4677 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4678
4679
4680test -z "$GREP" && GREP=grep
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
5213506e
RW
4700# Check whether --with-gnu-ld was given.
4701if test "${with_gnu_ld+set}" = set; then :
4702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
63e5e3e0 4703else
675cdab3 4704 with_gnu_ld=no
5213506e
RW
4705fi
4706
63e5e3e0 4707ac_prog=ld
675cdab3 4708if test "$GCC" = yes; then
63e5e3e0 4709 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4711$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
4712 case $host in
4713 *-*-mingw*)
4714 # gcc leaves a trailing carriage return which upsets mingw
4715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4716 *)
4717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4718 esac
675cdab3 4719 case $ac_prog in
63e5e3e0 4720 # Accept absolute paths.
1cf3d07d 4721 [\\/]* | ?:[\\/]*)
63e5e3e0 4722 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4723 # Canonicalize the pathname of ld
4724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
4727 done
4728 test -z "$LD" && LD="$ac_prog"
4729 ;;
4730 "")
4731 # If it fails, then pretend we aren't using GCC.
4732 ac_prog=ld
4733 ;;
4734 *)
4735 # If it is relative, then search for the first ld in PATH.
4736 with_gnu_ld=unknown
4737 ;;
4738 esac
4739elif test "$with_gnu_ld" = yes; then
5213506e
RW
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4741$as_echo_n "checking for GNU ld... " >&6; }
63e5e3e0 4742else
5213506e
RW
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4744$as_echo_n "checking for non-GNU ld... " >&6; }
63e5e3e0 4745fi
5213506e
RW
4746if test "${lt_cv_path_LD+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4748else
4749 if test -z "$LD"; then
1cf3d07d 4750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 4751 for ac_dir in $PATH; do
1cf3d07d 4752 IFS="$lt_save_ifs"
63e5e3e0 4753 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 4754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 4755 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 4756 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4757 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 4758 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4760 *GNU* | *'with BFD'*)
63e5e3e0 4761 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4762 ;;
4763 *)
63e5e3e0 4764 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4765 ;;
4766 esac
63e5e3e0
AG
4767 fi
4768 done
1cf3d07d 4769 IFS="$lt_save_ifs"
63e5e3e0 4770else
675cdab3 4771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
4772fi
4773fi
4774
675cdab3 4775LD="$lt_cv_path_LD"
63e5e3e0 4776if test -n "$LD"; then
5213506e
RW
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4778$as_echo "$LD" >&6; }
63e5e3e0 4779else
5213506e
RW
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
63e5e3e0 4782fi
5213506e
RW
4783test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4785$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4786if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
63e5e3e0 4788else
1cf3d07d
SE
4789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4790case `$LD -v 2>&1 </dev/null` in
4791*GNU* | *'with BFD'*)
675cdab3 4792 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4793 ;;
4794*)
675cdab3 4795 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4796 ;;
4797esac
63e5e3e0 4798fi
5213506e
RW
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4800$as_echo "$lt_cv_prog_gnu_ld" >&6; }
675cdab3 4801with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 4802
63e5e3e0
AG
4803
4804
1cf3d07d
SE
4805
4806
4807
4808
4809
4810
5213506e
RW
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4812$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4813if test "${lt_cv_path_NM+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4815else
4816 if test -n "$NM"; then
4817 # Let the user override the test.
675cdab3 4818 lt_cv_path_NM="$NM"
63e5e3e0 4819else
1cf3d07d
SE
4820 lt_nm_to_check="${ac_tool_prefix}nm"
4821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4822 lt_nm_to_check="$lt_nm_to_check nm"
4823 fi
4824 for lt_tmp_nm in $lt_nm_to_check; do
4825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4827 IFS="$lt_save_ifs"
4828 test -z "$ac_dir" && ac_dir=.
4829 tmp_nm="$ac_dir/$lt_tmp_nm"
4830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4831 # Check to see if the nm accepts a BSD-compat flag.
4832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4833 # nm: unknown option "B" ignored
4834 # Tru64's nm complains that /dev/null is an invalid object file
4835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4836 */dev/null* | *'Invalid file or object type'*)
4837 lt_cv_path_NM="$tmp_nm -B"
4838 break
4839 ;;
4840 *)
4841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4842 */dev/null*)
4843 lt_cv_path_NM="$tmp_nm -p"
4844 break
4845 ;;
4846 *)
4847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4848 continue # so that we can try to find one that supports BSD flags
4849 ;;
4850 esac
4851 ;;
4852 esac
63e5e3e0 4853 fi
1cf3d07d
SE
4854 done
4855 IFS="$lt_save_ifs"
63e5e3e0 4856 done
1cf3d07d 4857 : ${lt_cv_path_NM=no}
63e5e3e0
AG
4858fi
4859fi
5213506e
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4861$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4862if test "$lt_cv_path_NM" != "no"; then
4863 NM="$lt_cv_path_NM"
63e5e3e0 4864else
1cf3d07d 4865 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4866 if test -n "$DUMPBIN"; then :
4867 # Let the user override the test.
4868 else
4869 if test -n "$ac_tool_prefix"; then
4870 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4871 do
4872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
2f7bf5b7 4878else
1cf3d07d
SE
4879 if test -n "$DUMPBIN"; then
4880 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
5213506e
RW
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4889 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4891 break 2
4892 fi
4893done
5213506e
RW
4894 done
4895IFS=$as_save_IFS
2f7bf5b7 4896
1cf3d07d
SE
4897fi
4898fi
4899DUMPBIN=$ac_cv_prog_DUMPBIN
4900if test -n "$DUMPBIN"; then
5213506e
RW
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4902$as_echo "$DUMPBIN" >&6; }
1cf3d07d 4903else
5213506e
RW
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
1cf3d07d 4906fi
675cdab3 4907
5213506e 4908
1cf3d07d
SE
4909 test -n "$DUMPBIN" && break
4910 done
4911fi
4912if test -z "$DUMPBIN"; then
4913 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 4914 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4915do
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917set dummy $ac_prog; ac_word=$2
5213506e
RW
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919$as_echo_n "checking for $ac_word... " >&6; }
4920if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4922else
4923 if test -n "$ac_ct_DUMPBIN"; then
4924 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
5213506e
RW
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 4935 break 2
2f7bf5b7 4936 fi
1cf3d07d 4937done
5213506e
RW
4938 done
4939IFS=$as_save_IFS
2f7bf5b7 4940
1cf3d07d
SE
4941fi
4942fi
4943ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4944if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4946$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 4947else
5213506e
RW
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
1cf3d07d 4950fi
2f7bf5b7 4951
5213506e 4952
1cf3d07d
SE
4953 test -n "$ac_ct_DUMPBIN" && break
4954done
2f7bf5b7 4955
5213506e
RW
4956 if test "x$ac_ct_DUMPBIN" = x; then
4957 DUMPBIN=":"
4958 else
4959 case $cross_compiling:$ac_tool_warned in
4960yes:)
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963ac_tool_warned=yes ;;
4964esac
4965 DUMPBIN=$ac_ct_DUMPBIN
4966 fi
1cf3d07d 4967fi
2f7bf5b7 4968
43e02a8a
RW
4969 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4970 *COFF*)
4971 DUMPBIN="$DUMPBIN -symbols"
4972 ;;
4973 *)
4974 DUMPBIN=:
4975 ;;
4976 esac
4977 fi
2f7bf5b7 4978
1cf3d07d
SE
4979 if test "$DUMPBIN" != ":"; then
4980 NM="$DUMPBIN"
2f7bf5b7 4981 fi
1cf3d07d
SE
4982fi
4983test -z "$NM" && NM=nm
2f7bf5b7 4984
2f7bf5b7 4985
2f7bf5b7 4986
2f7bf5b7 4987
33456445 4988
2f7bf5b7 4989
5213506e
RW
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4991$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4992if test "${lt_cv_nm_interface+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4994else
4995 lt_cv_nm_interface="BSD nm"
4996 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 4997 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
4998 (eval "$ac_compile" 2>conftest.err)
4999 cat conftest.err >&5
43e02a8a 5000 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5002 cat conftest.err >&5
43e02a8a 5003 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5004 cat conftest.out >&5
5005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5006 lt_cv_nm_interface="MS dumpbin"
5007 fi
5008 rm -f conftest*
2f7bf5b7 5009fi
5213506e
RW
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5011$as_echo "$lt_cv_nm_interface" >&6; }
2f7bf5b7 5012
5213506e
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5014$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5015LN_S=$as_ln_s
5016if test "$LN_S" = "ln -s"; then
5213506e
RW
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5018$as_echo "yes" >&6; }
1cf3d07d 5019else
5213506e
RW
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5021$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5022fi
2f7bf5b7 5023
6dab073b 5024# find the maximum length of command line arguments
5213506e
RW
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5026$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5027if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
6dab073b
MS
5029else
5030 i=0
5031 teststring="ABCD"
5032
5033 case $build_os in
5034 msdosdjgpp*)
5035 # On DJGPP, this test can blow up pretty badly due to problems in libc
5036 # (any single argument exceeding 2000 bytes causes a buffer overrun
5037 # during glob expansion). Even if it were fixed, the result of this
5038 # check would be larger than it should be.
5039 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5040 ;;
5041
1cf3d07d
SE
5042 gnu*)
5043 # Under GNU Hurd, this test is not required because there is
5044 # no limit to the length of command line arguments.
5045 # Libtool will interpret -1 as no limit whatsoever
5046 lt_cv_sys_max_cmd_len=-1;
5047 ;;
5048
80c6c2cb 5049 cygwin* | mingw* | cegcc*)
6dab073b
MS
5050 # On Win9x/ME, this test blows up -- it succeeds, but takes
5051 # about 5 minutes as the teststring grows exponentially.
5052 # Worse, since 9x/ME are not pre-emptively multitasking,
5053 # you end up with a "frozen" computer, even though with patience
5054 # the test eventually succeeds (with a max line length of 256k).
5055 # Instead, let's just punt: use the minimum linelength reported by
5056 # all of the supported platforms: 8192 (on NT/2K/XP).
5057 lt_cv_sys_max_cmd_len=8192;
5058 ;;
5059
43e02a8a
RW
5060 mint*)
5061 # On MiNT this can take a long time and run out of memory.
5062 lt_cv_sys_max_cmd_len=8192;
5063 ;;
5064
6dab073b
MS
5065 amigaos*)
5066 # On AmigaOS with pdksh, this test takes hours, literally.
5067 # So we just punt and use a minimum line length of 8192.
5068 lt_cv_sys_max_cmd_len=8192;
5069 ;;
5070
5071 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5072 # This has been around since 386BSD, at least. Likely further.
5073 if test -x /sbin/sysctl; then
5074 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5075 elif test -x /usr/sbin/sysctl; then
5076 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5077 else
1cf3d07d 5078 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5079 fi
5080 # And add a safety zone
5081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5083 ;;
1cf3d07d
SE
5084
5085 interix*)
5086 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5087 lt_cv_sys_max_cmd_len=196608
5088 ;;
5089
5090 osf*)
5091 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5092 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5093 # nice to cause kernel panics so lets avoid the loop below.
5094 # First set a reasonable default.
5095 lt_cv_sys_max_cmd_len=16384
5096 #
5097 if test -x /sbin/sysconfig; then
5098 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5099 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5100 esac
5101 fi
5102 ;;
5103 sco3.2v5*)
5104 lt_cv_sys_max_cmd_len=102400
5105 ;;
5106 sysv5* | sco5v6* | sysv4.2uw2*)
5107 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5108 if test -n "$kargmax"; then
5109 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5110 else
5111 lt_cv_sys_max_cmd_len=32768
5112 fi
5113 ;;
5114 *)
80c6c2cb
PG
5115 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5116 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5119 else
5120 # Make teststring a little bigger before we do anything with it.
5121 # a 1K string should be a reasonable start.
5122 for i in 1 2 3 4 5 6 7 8 ; do
5123 teststring=$teststring$teststring
5124 done
5125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5126 # If test is not a shell built-in, we'll probably end up computing a
5127 # maximum length that is only half of the actual maximum length, but
5128 # we can't tell.
43e02a8a
RW
5129 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5130 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5131 test $i != 17 # 1/2 MB should be enough
5132 do
5133 i=`expr $i + 1`
5134 teststring=$teststring$teststring
5135 done
5136 # Only check the string length outside the loop.
5137 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5138 teststring=
5139 # Add a significant safety factor because C++ compilers can tack on
5140 # massive amounts of additional arguments before passing them to the
5141 # linker. It appears as though 1/2 is a usable value.
5142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5143 fi
1cf3d07d 5144 ;;
6dab073b
MS
5145 esac
5146
5147fi
5148
1cf3d07d 5149if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5151$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5152else
5213506e
RW
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5154$as_echo "none" >&6; }
6dab073b 5155fi
1cf3d07d 5156max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5157
5158
2f7bf5b7 5159
2f7bf5b7 5160
2f7bf5b7 5161
1cf3d07d 5162
1cf3d07d
SE
5163: ${CP="cp -f"}
5164: ${MV="mv -f"}
5165: ${RM="rm -f"}
5166
5213506e
RW
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5168$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5169# Try some XSI features
5170xsi_shell=no
5171( _lt_dummy="a/b/c"
5172 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
5173 = c,a/b,, \
5174 && eval 'test $(( 1 + 1 )) -eq 2 \
5175 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5176 && xsi_shell=yes
5213506e
RW
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5178$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5179
5180
5213506e
RW
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5182$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5183lt_shell_append=no
5184( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5185 >/dev/null 2>&1 \
5186 && lt_shell_append=yes
5213506e
RW
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5188$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5189
5190
5191if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5192 lt_unset=unset
2f7bf5b7 5193else
1cf3d07d 5194 lt_unset=false
2f7bf5b7
AO
5195fi
5196
1cf3d07d
SE
5197
5198
5199
5200
5201# test EBCDIC or ASCII
5202case `echo X|tr X '\101'` in
5203 A) # ASCII based system
5204 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5205 lt_SP2NL='tr \040 \012'
5206 lt_NL2SP='tr \015\012 \040\040'
5207 ;;
5208 *) # EBCDIC based system
5209 lt_SP2NL='tr \100 \n'
5210 lt_NL2SP='tr \r\n \100\100'
5211 ;;
5212esac
5213
5214
5215
5216
5217
5218
5219
5220
5221
5213506e
RW
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5223$as_echo_n "checking for $LD option to reload object files... " >&6; }
5224if test "${lt_cv_ld_reload_flag+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
2f7bf5b7 5226else
1cf3d07d
SE
5227 lt_cv_ld_reload_flag='-r'
5228fi
5213506e
RW
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5230$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5231reload_flag=$lt_cv_ld_reload_flag
5232case $reload_flag in
5233"" | " "*) ;;
5234*) reload_flag=" $reload_flag" ;;
5235esac
5236reload_cmds='$LD$reload_flag -o $output$reload_objs'
5237case $host_os in
5238 darwin*)
5239 if test "$GCC" = yes; then
5240 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5241 else
5242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5243 fi
5244 ;;
5245esac
5246
5247
5248
5249
5250
5251
5252
5253
5254
80c6c2cb
PG
5255if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5257set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5262else
5263 if test -n "$OBJDUMP"; then
5264 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5213506e
RW
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5275 break 2
5276 fi
5277done
5213506e
RW
5278 done
5279IFS=$as_save_IFS
80c6c2cb
PG
5280
5281fi
5282fi
5283OBJDUMP=$ac_cv_prog_OBJDUMP
5284if test -n "$OBJDUMP"; then
5213506e
RW
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5286$as_echo "$OBJDUMP" >&6; }
80c6c2cb 5287else
5213506e
RW
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
80c6c2cb
PG
5290fi
5291
5213506e 5292
80c6c2cb
PG
5293fi
5294if test -z "$ac_cv_prog_OBJDUMP"; then
5295 ac_ct_OBJDUMP=$OBJDUMP
5296 # Extract the first word of "objdump", so it can be a program name with args.
5297set dummy objdump; ac_word=$2
5213506e
RW
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
5300if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5302else
5303 if test -n "$ac_ct_OBJDUMP"; then
5304 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5213506e
RW
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5313 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5315 break 2
5316 fi
5317done
5213506e
RW
5318 done
5319IFS=$as_save_IFS
80c6c2cb 5320
80c6c2cb
PG
5321fi
5322fi
5323ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5324if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5326$as_echo "$ac_ct_OBJDUMP" >&6; }
80c6c2cb 5327else
5213506e
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
80c6c2cb
PG
5330fi
5331
5213506e
RW
5332 if test "x$ac_ct_OBJDUMP" = x; then
5333 OBJDUMP="false"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339ac_tool_warned=yes ;;
5340esac
5341 OBJDUMP=$ac_ct_OBJDUMP
5342 fi
80c6c2cb
PG
5343else
5344 OBJDUMP="$ac_cv_prog_OBJDUMP"
5345fi
5346
5347test -z "$OBJDUMP" && OBJDUMP=objdump
5348
5349
5350
5351
5352
5353
5354
5355
1cf3d07d 5356
5213506e
RW
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5358$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5359if test "${lt_cv_deplibs_check_method+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5361else
5362 lt_cv_file_magic_cmd='$MAGIC_CMD'
5363lt_cv_file_magic_test_file=
5364lt_cv_deplibs_check_method='unknown'
5365# Need to set the preceding variable on all platforms that support
5366# interlibrary dependencies.
5367# 'none' -- dependencies not supported.
5368# `unknown' -- same as none, but documents that we really don't know.
5369# 'pass_all' -- all dependencies passed with no checks.
5370# 'test_compile' -- check by making test program.
5371# 'file_magic [[regex]]' -- check by looking for files in library path
5372# which responds to the $file_magic_cmd with a given extended regex.
5373# If you have `file' or equivalent on your system and you're not sure
5374# whether `pass_all' will *always* work, you probably want this one.
5375
5376case $host_os in
95d4f544 5377aix[4-9]*)
1cf3d07d
SE
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380
5381beos*)
5382 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5383 ;;
1cf3d07d
SE
5384
5385bsdi[45]*)
5386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5387 lt_cv_file_magic_cmd='/usr/bin/file -L'
5388 lt_cv_file_magic_test_file=/shlib/libc.so
5389 ;;
5390
5391cygwin*)
5392 # func_win32_libid is a shell function defined in ltmain.sh
5393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5394 lt_cv_file_magic_cmd='func_win32_libid'
5395 ;;
5396
5397mingw* | pw32*)
5398 # Base MSYS/MinGW do not provide the 'file' command needed by
5399 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5400 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5401 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5402 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5404 lt_cv_file_magic_cmd='func_win32_libid'
5405 else
5406 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5407 lt_cv_file_magic_cmd='$OBJDUMP -f'
5408 fi
5409 ;;
5410
43e02a8a 5411cegcc*)
80c6c2cb
PG
5412 # use the weaker test based on 'objdump'. See mingw*.
5413 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5414 lt_cv_file_magic_cmd='$OBJDUMP -f'
5415 ;;
5416
1cf3d07d
SE
5417darwin* | rhapsody*)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420
5421freebsd* | dragonfly*)
5422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5423 case $host_cpu in
5424 i*86 )
5425 # Not sure whether the presence of OpenBSD here was a mistake.
5426 # Let's accept both of them until this is cleared up.
5427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5428 lt_cv_file_magic_cmd=/usr/bin/file
5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5430 ;;
5431 esac
5432 else
5433 lt_cv_deplibs_check_method=pass_all
5434 fi
5435 ;;
5436
5437gnu*)
5438 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5439 ;;
1cf3d07d 5440
43e02a8a
RW
5441haiku*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
1cf3d07d
SE
5445hpux10.20* | hpux11*)
5446 lt_cv_file_magic_cmd=/usr/bin/file
5447 case $host_cpu in
5448 ia64*)
5449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5450 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5451 ;;
5452 hppa*64*)
43e02a8a 5453 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]'
1cf3d07d
SE
5454 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5455 ;;
2f7bf5b7 5456 *)
43e02a8a 5457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5458 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5459 ;;
5460 esac
5461 ;;
2f7bf5b7 5462
1cf3d07d
SE
5463interix[3-9]*)
5464 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5466 ;;
2f7bf5b7 5467
1cf3d07d
SE
5468irix5* | irix6* | nonstopux*)
5469 case $LD in
5470 *-32|*"-32 ") libmagic=32-bit;;
5471 *-n32|*"-n32 ") libmagic=N32;;
5472 *-64|*"-64 ") libmagic=64-bit;;
5473 *) libmagic=never-match;;
5474 esac
5475 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5476 ;;
2f7bf5b7 5477
1cf3d07d 5478# This must be Linux ELF.
7a9d3fe8 5479linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
2f7bf5b7 5482
1cf3d07d
SE
5483netbsd*)
5484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 5486 else
1cf3d07d 5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 5488 fi
1cf3d07d
SE
5489 ;;
5490
5491newos6*)
5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5493 lt_cv_file_magic_cmd=/usr/bin/file
5494 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5495 ;;
5496
5497*nto* | *qnx*)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
63e5e3e0 5500
1cf3d07d
SE
5501openbsd*)
5502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5504 else
5505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
5506 fi
5507 ;;
1cf3d07d
SE
5508
5509osf3* | osf4* | osf5*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513rdos*)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517solaris*)
5518 lt_cv_deplibs_check_method=pass_all
5519 ;;
5520
5521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524
5525sysv4 | sysv4.3*)
5526 case $host_vendor in
5527 motorola)
5528 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]'
5529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5530 ;;
5531 ncr)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534 sequent)
5535 lt_cv_file_magic_cmd='/bin/file'
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5537 ;;
5538 sni)
5539 lt_cv_file_magic_cmd='/bin/file'
5540 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5541 lt_cv_file_magic_test_file=/lib/libc.so
5542 ;;
5543 siemens)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546 pc)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549 esac
5550 ;;
5551
5552tpf*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
dc5de370
HB
5555esac
5556
1cf3d07d 5557fi
5213506e
RW
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5559$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5560file_magic_cmd=$lt_cv_file_magic_cmd
5561deplibs_check_method=$lt_cv_deplibs_check_method
5562test -z "$deplibs_check_method" && deplibs_check_method=unknown
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
3ed8e5b6 5575if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5577set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if test "${ac_cv_prog_AR+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
2f7bf5b7 5582else
1cf3d07d
SE
5583 if test -n "$AR"; then
5584 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 5585else
3ed8e5b6
AT
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5213506e
RW
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5593 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5595 break 2
5596 fi
5597done
5213506e
RW
5598 done
5599IFS=$as_save_IFS
3ed8e5b6 5600
2f7bf5b7
AO
5601fi
5602fi
1cf3d07d
SE
5603AR=$ac_cv_prog_AR
5604if test -n "$AR"; then
5213506e
RW
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5606$as_echo "$AR" >&6; }
2f7bf5b7 5607else
5213506e
RW
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
2f7bf5b7
AO
5610fi
5611
5213506e 5612
3ed8e5b6 5613fi
1cf3d07d
SE
5614if test -z "$ac_cv_prog_AR"; then
5615 ac_ct_AR=$AR
5616 # Extract the first word of "ar", so it can be a program name with args.
5617set dummy ar; ac_word=$2
5213506e
RW
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
2f7bf5b7 5622else
1cf3d07d
SE
5623 if test -n "$ac_ct_AR"; then
5624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 5625else
3ed8e5b6
AT
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5213506e
RW
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5633 ac_cv_prog_ac_ct_AR="ar"
5213506e 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5635 break 2
5636 fi
5637done
5213506e
RW
5638 done
5639IFS=$as_save_IFS
3ed8e5b6 5640
2f7bf5b7
AO
5641fi
5642fi
1cf3d07d
SE
5643ac_ct_AR=$ac_cv_prog_ac_ct_AR
5644if test -n "$ac_ct_AR"; then
5213506e
RW
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5646$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 5647else
5213506e
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
2f7bf5b7
AO
5650fi
5651
5213506e
RW
5652 if test "x$ac_ct_AR" = x; then
5653 AR="false"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656yes:)
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659ac_tool_warned=yes ;;
5660esac
5661 AR=$ac_ct_AR
5662 fi
2f7bf5b7 5663else
1cf3d07d 5664 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
5665fi
5666
1cf3d07d
SE
5667test -z "$AR" && AR=ar
5668test -z "$AR_FLAGS" && AR_FLAGS=cru
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
3ed8e5b6
AT
5680if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 5682set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if test "${ac_cv_prog_STRIP+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
5687else
5688 if test -n "$STRIP"; then
5689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5690else
3ed8e5b6
AT
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5213506e
RW
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5698 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5700 break 2
5701 fi
5702done
5213506e
RW
5703 done
5704IFS=$as_save_IFS
3ed8e5b6 5705
2f7bf5b7
AO
5706fi
5707fi
3ed8e5b6 5708STRIP=$ac_cv_prog_STRIP
2f7bf5b7 5709if test -n "$STRIP"; then
5213506e
RW
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5711$as_echo "$STRIP" >&6; }
2f7bf5b7 5712else
5213506e
RW
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
2f7bf5b7
AO
5715fi
5716
5213506e 5717
3ed8e5b6 5718fi
2f7bf5b7 5719if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 5720 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
5721 # Extract the first word of "strip", so it can be a program name with args.
5722set dummy strip; ac_word=$2
5213506e
RW
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
2f7bf5b7 5727else
3ed8e5b6
AT
5728 if test -n "$ac_ct_STRIP"; then
5729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 5730else
3ed8e5b6
AT
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5213506e
RW
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5738 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5740 break 2
5741 fi
5742done
5213506e
RW
5743 done
5744IFS=$as_save_IFS
3ed8e5b6 5745
2f7bf5b7
AO
5746fi
5747fi
3ed8e5b6
AT
5748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5749if test -n "$ac_ct_STRIP"; then
5213506e
RW
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5751$as_echo "$ac_ct_STRIP" >&6; }
675cdab3 5752else
5213506e
RW
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
675cdab3
BM
5755fi
5756
5213506e
RW
5757 if test "x$ac_ct_STRIP" = x; then
5758 STRIP=":"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764ac_tool_warned=yes ;;
5765esac
5766 STRIP=$ac_ct_STRIP
5767 fi
675cdab3 5768else
3ed8e5b6 5769 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
5770fi
5771
1cf3d07d 5772test -z "$STRIP" && STRIP=:
675cdab3 5773
675cdab3
BM
5774
5775
675cdab3 5776
675cdab3 5777
3ed8e5b6 5778
1cf3d07d
SE
5779if test -n "$ac_tool_prefix"; then
5780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783$as_echo_n "checking for $ac_word... " >&6; }
5784if test "${ac_cv_prog_RANLIB+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
675cdab3 5786else
1cf3d07d
SE
5787 if test -n "$RANLIB"; then
5788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5789else
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5213506e
RW
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5799 break 2
5800 fi
5801done
5213506e
RW
5802 done
5803IFS=$as_save_IFS
1cf3d07d
SE
5804
5805fi
5806fi
5807RANLIB=$ac_cv_prog_RANLIB
5808if test -n "$RANLIB"; then
5213506e
RW
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5810$as_echo "$RANLIB" >&6; }
1cf3d07d 5811else
5213506e
RW
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813$as_echo "no" >&6; }
1cf3d07d
SE
5814fi
5815
5213506e 5816
1cf3d07d
SE
5817fi
5818if test -z "$ac_cv_prog_RANLIB"; then
5819 ac_ct_RANLIB=$RANLIB
5820 # Extract the first word of "ranlib", so it can be a program name with args.
5821set dummy ranlib; ac_word=$2
5213506e
RW
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823$as_echo_n "checking for $ac_word... " >&6; }
5824if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5826else
5827 if test -n "$ac_ct_RANLIB"; then
5828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5213506e
RW
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5837 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5839 break 2
5840 fi
5841done
5213506e
RW
5842 done
5843IFS=$as_save_IFS
1cf3d07d 5844
1cf3d07d
SE
5845fi
5846fi
5847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5848if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5850$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5851else
5213506e
RW
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853$as_echo "no" >&6; }
1cf3d07d
SE
5854fi
5855
5213506e
RW
5856 if test "x$ac_ct_RANLIB" = x; then
5857 RANLIB=":"
5858 else
5859 case $cross_compiling:$ac_tool_warned in
5860yes:)
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863ac_tool_warned=yes ;;
5864esac
5865 RANLIB=$ac_ct_RANLIB
5866 fi
1cf3d07d
SE
5867else
5868 RANLIB="$ac_cv_prog_RANLIB"
5869fi
5870
5871test -z "$RANLIB" && RANLIB=:
5872
5873
5874
5875
5876
5877
5878# Determine commands to create old-style static archives.
80c6c2cb 5879old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5880old_postinstall_cmds='chmod 644 $oldlib'
5881old_postuninstall_cmds=
5882
5883if test -n "$RANLIB"; then
5884 case $host_os in
5885 openbsd*)
5886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5887 ;;
5888 *)
5889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5890 ;;
5891 esac
5892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5893fi
5894
43e02a8a
RW
5895case $host_os in
5896 darwin*)
5897 lock_old_archive_extraction=yes ;;
5898 *)
5899 lock_old_archive_extraction=no ;;
5900esac
5901
5902
5903
5904
5905
5906
1cf3d07d
SE
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940# If no C compiler was specified, use CC.
5941LTCC=${LTCC-"$CC"}
5942
5943# If no C compiler flags were specified, use CFLAGS.
5944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5945
5946# Allow CC to be a program name with arguments.
5947compiler=$CC
5948
5949
5950# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5952$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5953if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5955else
5956
5957# These are sane defaults that work on at least a few old systems.
5958# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5959
5960# Character class describing NM global symbol codes.
5961symcode='[BCDEGRST]'
5962
5963# Regexp to match symbols that can be accessed directly from C.
5964sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5965
5966# Define system-specific variables.
5967case $host_os in
5968aix*)
5969 symcode='[BCDT]'
5970 ;;
80c6c2cb 5971cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5972 symcode='[ABCDGISTW]'
5973 ;;
5974hpux*)
5975 if test "$host_cpu" = ia64; then
5976 symcode='[ABCDEGRST]'
5977 fi
5978 ;;
5979irix* | nonstopux*)
5980 symcode='[BCDEGRST]'
5981 ;;
5982osf*)
5983 symcode='[BCDEGQRST]'
5984 ;;
5985solaris*)
5986 symcode='[BDRT]'
5987 ;;
5988sco3.2v5*)
5989 symcode='[DT]'
5990 ;;
5991sysv4.2uw2*)
5992 symcode='[DT]'
5993 ;;
5994sysv5* | sco5v6* | unixware* | OpenUNIX*)
5995 symcode='[ABDT]'
5996 ;;
5997sysv4)
5998 symcode='[DFNSTU]'
5999 ;;
6000esac
6001
6002# If we're using GNU nm, then use its standard symbol codes.
6003case `$NM -V 2>&1` in
6004*GNU* | *'with BFD'*)
6005 symcode='[ABCDGIRSTW]' ;;
6006esac
6007
6008# Transform an extracted symbol line into a proper C declaration.
6009# Some systems (esp. on ia64) link data and code symbols differently,
6010# so use this general approach.
6011lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6012
6013# Transform an extracted symbol line into symbol name and symbol address
6014lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 6015lt_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'"
1cf3d07d
SE
6016
6017# Handle CRLF in mingw tool chain
6018opt_cr=
6019case $build_os in
6020mingw*)
6021 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6022 ;;
6023esac
6024
6025# Try without a prefix underscore, then with it.
6026for ac_symprfx in "" "_"; do
6027
6028 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6029 symxfrm="\\1 $ac_symprfx\\2 \\2"
6030
6031 # Write the raw and C identifiers.
6032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6033 # Fake it for dumpbin and say T for any non-static function
6034 # and D for any global variable.
6035 # Also find C++ and __fastcall symbols from MSVC++,
6036 # which start with @ or ?.
6037 lt_cv_sys_global_symbol_pipe="$AWK '"\
6038" {last_section=section; section=\$ 3};"\
6039" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6040" \$ 0!~/External *\|/{next};"\
6041" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6042" {if(hide[section]) next};"\
6043" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6044" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6045" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6046" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6047" ' prfx=^$ac_symprfx"
6048 else
6049 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6050 fi
6051
6052 # Check to see that the pipe works correctly.
6053 pipe_works=no
6054
6055 rm -f conftest*
6056 cat > conftest.$ac_ext <<_LT_EOF
6057#ifdef __cplusplus
6058extern "C" {
6059#endif
6060char nm_test_var;
6061void nm_test_func(void);
6062void nm_test_func(void){}
6063#ifdef __cplusplus
6064}
6065#endif
6066int main(){nm_test_var='a';nm_test_func();return(0);}
6067_LT_EOF
6068
5213506e 6069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6070 (eval $ac_compile) 2>&5
6071 ac_status=$?
5213506e
RW
6072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073 test $ac_status = 0; }; then
1cf3d07d
SE
6074 # Now try to grab the symbols.
6075 nlist=conftest.nm
43e02a8a
RW
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6077 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6078 ac_status=$?
5213506e
RW
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6081 # Try sorting and uniquifying the output.
6082 if sort "$nlist" | uniq > "$nlist"T; then
6083 mv -f "$nlist"T "$nlist"
6084 else
6085 rm -f "$nlist"T
6086 fi
6087
6088 # Make sure that we snagged all the symbols we need.
6089 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6090 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6091 cat <<_LT_EOF > conftest.$ac_ext
6092#ifdef __cplusplus
6093extern "C" {
6094#endif
6095
6096_LT_EOF
6097 # Now generate the symbol file.
6098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6099
6100 cat <<_LT_EOF >> conftest.$ac_ext
6101
6102/* The mapping between symbol names and symbols. */
6103const struct {
6104 const char *name;
6105 void *address;
6106}
6107lt__PROGRAM__LTX_preloaded_symbols[] =
6108{
6109 { "@PROGRAM@", (void *) 0 },
6110_LT_EOF
6111 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6112 cat <<\_LT_EOF >> conftest.$ac_ext
6113 {0, (void *) 0}
6114};
6115
6116/* This works around a problem in FreeBSD linker */
6117#ifdef FREEBSD_WORKAROUND
6118static const void *lt_preloaded_setup() {
6119 return lt__PROGRAM__LTX_preloaded_symbols;
6120}
6121#endif
6122
6123#ifdef __cplusplus
6124}
6125#endif
6126_LT_EOF
6127 # Now try linking the two files.
6128 mv conftest.$ac_objext conftstm.$ac_objext
6129 lt_save_LIBS="$LIBS"
6130 lt_save_CFLAGS="$CFLAGS"
6131 LIBS="conftstm.$ac_objext"
6132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6134 (eval $ac_link) 2>&5
6135 ac_status=$?
5213506e
RW
6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6138 pipe_works=yes
6139 fi
6140 LIBS="$lt_save_LIBS"
6141 CFLAGS="$lt_save_CFLAGS"
6142 else
6143 echo "cannot find nm_test_func in $nlist" >&5
6144 fi
6145 else
6146 echo "cannot find nm_test_var in $nlist" >&5
6147 fi
6148 else
6149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6150 fi
6151 else
6152 echo "$progname: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 fi
80c6c2cb 6155 rm -rf conftest* conftst*
1cf3d07d
SE
6156
6157 # Do not use the global_symbol_pipe unless it works.
6158 if test "$pipe_works" = yes; then
6159 break
6160 else
6161 lt_cv_sys_global_symbol_pipe=
6162 fi
6163done
6164
6165fi
6166
6167if test -z "$lt_cv_sys_global_symbol_pipe"; then
6168 lt_cv_sys_global_symbol_to_cdecl=
6169fi
6170if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6172$as_echo "failed" >&6; }
1cf3d07d 6173else
5213506e
RW
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6175$as_echo "ok" >&6; }
1cf3d07d
SE
6176fi
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
80c6c2cb
PG
6192
6193
6194
6195
6196
1cf3d07d
SE
6197
6198
6199
5213506e
RW
6200# Check whether --enable-libtool-lock was given.
6201if test "${enable_libtool_lock+set}" = set; then :
6202 enableval=$enable_libtool_lock;
6203fi
1cf3d07d 6204
1cf3d07d 6205test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
6206
6207# Some flags need to be propagated to the compiler or linker for good
6208# libtool support.
6209case $host in
1cf3d07d 6210ia64-*-hpux*)
675cdab3 6211 # Find out which ABI we are using.
1cf3d07d 6212 echo 'int i;' > conftest.$ac_ext
5213506e 6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3ed8e5b6
AT
6214 (eval $ac_compile) 2>&5
6215 ac_status=$?
5213506e
RW
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; }; then
675cdab3 6218 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6219 *ELF-32*)
6220 HPUX_IA64_MODE="32"
6221 ;;
6222 *ELF-64*)
6223 HPUX_IA64_MODE="64"
6224 ;;
3ed8e5b6 6225 esac
3ed8e5b6
AT
6226 fi
6227 rm -rf conftest*
6228 ;;
1cf3d07d
SE
6229*-*-irix6*)
6230 # Find out which ABI we are using.
43e02a8a 6231 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
5213506e
RW
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }; then
1cf3d07d
SE
6237 if test "$lt_cv_prog_gnu_ld" = yes; then
6238 case `/usr/bin/file conftest.$ac_objext` in
6239 *32-bit*)
6240 LD="${LD-ld} -melf32bsmip"
6241 ;;
6242 *N32*)
6243 LD="${LD-ld} -melf32bmipn32"
6244 ;;
6245 *64-bit*)
6246 LD="${LD-ld} -melf64bmip"
6247 ;;
6248 esac
6249 else
6250 case `/usr/bin/file conftest.$ac_objext` in
6251 *32-bit*)
6252 LD="${LD-ld} -32"
6253 ;;
6254 *N32*)
6255 LD="${LD-ld} -n32"
6256 ;;
6257 *64-bit*)
6258 LD="${LD-ld} -64"
6259 ;;
6260 esac
6261 fi
6262 fi
6263 rm -rf conftest*
6264 ;;
6265
6266x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6267s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6268 # Find out which ABI we are using.
6269 echo 'int i;' > conftest.$ac_ext
5213506e 6270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6271 (eval $ac_compile) 2>&5
6272 ac_status=$?
5213506e
RW
6273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6274 test $ac_status = 0; }; then
1cf3d07d
SE
6275 case `/usr/bin/file conftest.o` in
6276 *32-bit*)
6277 case $host in
6278 x86_64-*kfreebsd*-gnu)
6279 LD="${LD-ld} -m elf_i386_fbsd"
6280 ;;
6281 x86_64-*linux*)
6282 LD="${LD-ld} -m elf_i386"
6283 ;;
6284 ppc64-*linux*|powerpc64-*linux*)
6285 LD="${LD-ld} -m elf32ppclinux"
6286 ;;
6287 s390x-*linux*)
6288 LD="${LD-ld} -m elf_s390"
6289 ;;
6290 sparc64-*linux*)
6291 LD="${LD-ld} -m elf32_sparc"
6292 ;;
6293 esac
6294 ;;
6295 *64-bit*)
6296 case $host in
6297 x86_64-*kfreebsd*-gnu)
6298 LD="${LD-ld} -m elf_x86_64_fbsd"
6299 ;;
6300 x86_64-*linux*)
6301 LD="${LD-ld} -m elf_x86_64"
6302 ;;
6303 ppc*-*linux*|powerpc*-*linux*)
6304 LD="${LD-ld} -m elf64ppc"
6305 ;;
6306 s390*-*linux*|s390*-*tpf*)
6307 LD="${LD-ld} -m elf64_s390"
6308 ;;
6309 sparc*-*linux*)
6310 LD="${LD-ld} -m elf64_sparc"
6311 ;;
6312 esac
6313 ;;
6314 esac
6315 fi
6316 rm -rf conftest*
6317 ;;
6318
6319*-*-sco3.2v5*)
6320 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6321 SAVE_CFLAGS="$CFLAGS"
6322 CFLAGS="$CFLAGS -belf"
5213506e
RW
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6324$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6325if test "${lt_cv_cc_needs_belf+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6327else
6328 ac_ext=c
6329ac_cpp='$CPP $CPPFLAGS'
6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333
5213506e 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6335/* end confdefs.h. */
6336
6337int
6338main ()
6339{
6340
6341 ;
6342 return 0;
6343}
6344_ACEOF
5213506e 6345if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6346 lt_cv_cc_needs_belf=yes
6347else
5213506e 6348 lt_cv_cc_needs_belf=no
1cf3d07d 6349fi
5213506e
RW
6350rm -f core conftest.err conftest.$ac_objext \
6351 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6352 ac_ext=c
6353ac_cpp='$CPP $CPPFLAGS'
6354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6356ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357
6358fi
5213506e
RW
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6360$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6361 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6363 CFLAGS="$SAVE_CFLAGS"
6364 fi
6365 ;;
6366sparc*-*solaris*)
6367 # Find out which ABI we are using.
6368 echo 'int i;' > conftest.$ac_ext
5213506e 6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6370 (eval $ac_compile) 2>&5
6371 ac_status=$?
5213506e
RW
6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373 test $ac_status = 0; }; then
1cf3d07d
SE
6374 case `/usr/bin/file conftest.o` in
6375 *64-bit*)
6376 case $lt_cv_prog_gnu_ld in
6377 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
6378 *)
6379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6380 LD="${LD-ld} -64"
6381 fi
6382 ;;
1cf3d07d
SE
6383 esac
6384 ;;
6385 esac
6386 fi
6387 rm -rf conftest*
6388 ;;
6389esac
6390
6391need_locks="$enable_libtool_lock"
6392
80c6c2cb
PG
6393
6394 case $host_os in
6395 rhapsody* | darwin*)
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6398set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
6401if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
1cf3d07d 6403else
80c6c2cb
PG
6404 if test -n "$DSYMUTIL"; then
6405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
1cf3d07d 6409do
80c6c2cb
PG
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
5213506e
RW
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb 6416 break 2
1cf3d07d 6417 fi
80c6c2cb 6418done
5213506e
RW
6419 done
6420IFS=$as_save_IFS
6421
80c6c2cb
PG
6422fi
6423fi
6424DSYMUTIL=$ac_cv_prog_DSYMUTIL
6425if test -n "$DSYMUTIL"; then
5213506e
RW
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6427$as_echo "$DSYMUTIL" >&6; }
80c6c2cb 6428else
5213506e
RW
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
80c6c2cb
PG
6431fi
6432
5213506e 6433
80c6c2cb
PG
6434fi
6435if test -z "$ac_cv_prog_DSYMUTIL"; then
6436 ac_ct_DSYMUTIL=$DSYMUTIL
6437 # Extract the first word of "dsymutil", so it can be a program name with args.
6438set dummy dsymutil; ac_word=$2
5213506e
RW
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6443else
6444 if test -n "$ac_ct_DSYMUTIL"; then
6445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
5213506e
RW
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6456 break 2
6457 fi
6458done
5213506e
RW
6459 done
6460IFS=$as_save_IFS
80c6c2cb 6461
80c6c2cb
PG
6462fi
6463fi
6464ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6465if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6467$as_echo "$ac_ct_DSYMUTIL" >&6; }
80c6c2cb 6468else
5213506e
RW
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
80c6c2cb
PG
6471fi
6472
5213506e
RW
6473 if test "x$ac_ct_DSYMUTIL" = x; then
6474 DSYMUTIL=":"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477yes:)
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480ac_tool_warned=yes ;;
6481esac
6482 DSYMUTIL=$ac_ct_DSYMUTIL
6483 fi
80c6c2cb
PG
6484else
6485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6486fi
6487
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6490set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6495else
6496 if test -n "$NMEDIT"; then
6497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
5213506e
RW
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6508 break 2
6509 fi
6510done
5213506e
RW
6511 done
6512IFS=$as_save_IFS
80c6c2cb
PG
6513
6514fi
6515fi
6516NMEDIT=$ac_cv_prog_NMEDIT
6517if test -n "$NMEDIT"; then
5213506e
RW
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6519$as_echo "$NMEDIT" >&6; }
80c6c2cb 6520else
5213506e
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
80c6c2cb
PG
6523fi
6524
5213506e 6525
80c6c2cb
PG
6526fi
6527if test -z "$ac_cv_prog_NMEDIT"; then
6528 ac_ct_NMEDIT=$NMEDIT
6529 # Extract the first word of "nmedit", so it can be a program name with args.
6530set dummy nmedit; ac_word=$2
5213506e
RW
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6535else
6536 if test -n "$ac_ct_NMEDIT"; then
6537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
5213506e
RW
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6546 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6548 break 2
6549 fi
6550done
5213506e
RW
6551 done
6552IFS=$as_save_IFS
80c6c2cb 6553
80c6c2cb
PG
6554fi
6555fi
6556ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6557if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6559$as_echo "$ac_ct_NMEDIT" >&6; }
80c6c2cb 6560else
5213506e
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
80c6c2cb
PG
6563fi
6564
5213506e
RW
6565 if test "x$ac_ct_NMEDIT" = x; then
6566 NMEDIT=":"
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569yes:)
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574 NMEDIT=$ac_ct_NMEDIT
6575 fi
80c6c2cb
PG
6576else
6577 NMEDIT="$ac_cv_prog_NMEDIT"
6578fi
6579
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if test "${ac_cv_prog_LIPO+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6587else
6588 if test -n "$LIPO"; then
6589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
5213506e
RW
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6600 break 2
6601 fi
6602done
5213506e
RW
6603 done
6604IFS=$as_save_IFS
80c6c2cb
PG
6605
6606fi
6607fi
6608LIPO=$ac_cv_prog_LIPO
6609if test -n "$LIPO"; then
5213506e
RW
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6611$as_echo "$LIPO" >&6; }
80c6c2cb 6612else
5213506e
RW
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
80c6c2cb
PG
6615fi
6616
5213506e 6617
80c6c2cb
PG
6618fi
6619if test -z "$ac_cv_prog_LIPO"; then
6620 ac_ct_LIPO=$LIPO
6621 # Extract the first word of "lipo", so it can be a program name with args.
6622set dummy lipo; ac_word=$2
5213506e
RW
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6627else
6628 if test -n "$ac_ct_LIPO"; then
6629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
5213506e
RW
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6638 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6640 break 2
6641 fi
6642done
5213506e
RW
6643 done
6644IFS=$as_save_IFS
80c6c2cb 6645
80c6c2cb
PG
6646fi
6647fi
6648ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6649if test -n "$ac_ct_LIPO"; then
5213506e
RW
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6651$as_echo "$ac_ct_LIPO" >&6; }
80c6c2cb 6652else
5213506e
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
80c6c2cb
PG
6655fi
6656
5213506e
RW
6657 if test "x$ac_ct_LIPO" = x; then
6658 LIPO=":"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666 LIPO=$ac_ct_LIPO
6667 fi
80c6c2cb
PG
6668else
6669 LIPO="$ac_cv_prog_LIPO"
6670fi
6671
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6674set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if test "${ac_cv_prog_OTOOL+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6679else
6680 if test -n "$OTOOL"; then
6681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
5213506e
RW
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6692 break 2
6693 fi
6694done
5213506e
RW
6695 done
6696IFS=$as_save_IFS
80c6c2cb
PG
6697
6698fi
6699fi
6700OTOOL=$ac_cv_prog_OTOOL
6701if test -n "$OTOOL"; then
5213506e
RW
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6703$as_echo "$OTOOL" >&6; }
80c6c2cb 6704else
5213506e
RW
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
80c6c2cb
PG
6707fi
6708
5213506e 6709
80c6c2cb
PG
6710fi
6711if test -z "$ac_cv_prog_OTOOL"; then
6712 ac_ct_OTOOL=$OTOOL
6713 # Extract the first word of "otool", so it can be a program name with args.
6714set dummy otool; ac_word=$2
5213506e
RW
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6719else
6720 if test -n "$ac_ct_OTOOL"; then
6721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
5213506e
RW
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6730 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6732 break 2
6733 fi
6734done
5213506e
RW
6735 done
6736IFS=$as_save_IFS
80c6c2cb 6737
80c6c2cb
PG
6738fi
6739fi
6740ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6741if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6743$as_echo "$ac_ct_OTOOL" >&6; }
80c6c2cb 6744else
5213506e
RW
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
80c6c2cb
PG
6747fi
6748
5213506e
RW
6749 if test "x$ac_ct_OTOOL" = x; then
6750 OTOOL=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753yes:)
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756ac_tool_warned=yes ;;
6757esac
6758 OTOOL=$ac_ct_OTOOL
6759 fi
80c6c2cb
PG
6760else
6761 OTOOL="$ac_cv_prog_OTOOL"
6762fi
6763
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6766set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6771else
6772 if test -n "$OTOOL64"; then
6773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
5213506e
RW
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6784 break 2
6785 fi
6786done
5213506e
RW
6787 done
6788IFS=$as_save_IFS
80c6c2cb
PG
6789
6790fi
6791fi
6792OTOOL64=$ac_cv_prog_OTOOL64
6793if test -n "$OTOOL64"; then
5213506e
RW
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6795$as_echo "$OTOOL64" >&6; }
80c6c2cb 6796else
5213506e
RW
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
80c6c2cb
PG
6799fi
6800
5213506e 6801
80c6c2cb
PG
6802fi
6803if test -z "$ac_cv_prog_OTOOL64"; then
6804 ac_ct_OTOOL64=$OTOOL64
6805 # Extract the first word of "otool64", so it can be a program name with args.
6806set dummy otool64; ac_word=$2
5213506e
RW
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6811else
6812 if test -n "$ac_ct_OTOOL64"; then
6813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
5213506e
RW
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6822 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6824 break 2
6825 fi
6826done
5213506e
RW
6827 done
6828IFS=$as_save_IFS
80c6c2cb 6829
80c6c2cb
PG
6830fi
6831fi
6832ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6833if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6835$as_echo "$ac_ct_OTOOL64" >&6; }
80c6c2cb 6836else
5213506e
RW
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
80c6c2cb
PG
6839fi
6840
5213506e
RW
6841 if test "x$ac_ct_OTOOL64" = x; then
6842 OTOOL64=":"
6843 else
6844 case $cross_compiling:$ac_tool_warned in
6845yes:)
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848ac_tool_warned=yes ;;
6849esac
6850 OTOOL64=$ac_ct_OTOOL64
6851 fi
80c6c2cb
PG
6852else
6853 OTOOL64="$ac_cv_prog_OTOOL64"
6854fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
5213506e
RW
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6883$as_echo_n "checking for -single_module linker flag... " >&6; }
6884if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6886else
6887 lt_cv_apple_cc_single_mod=no
6888 if test -z "${LT_MULTI_MODULE}"; then
6889 # By default we will add the -single_module flag. You can override
6890 # by either setting the environment variable LT_MULTI_MODULE
6891 # non-empty at configure time, or by adding -multi_module to the
6892 # link flags.
6893 rm -rf libconftest.dylib*
6894 echo "int foo(void){return 1;}" > conftest.c
6895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6896-dynamiclib -Wl,-single_module conftest.c" >&5
6897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6899 _lt_result=$?
6900 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6901 lt_cv_apple_cc_single_mod=yes
6902 else
6903 cat conftest.err >&5
6904 fi
6905 rm -rf libconftest.dylib*
6906 rm -f conftest.*
6907 fi
6908fi
5213506e
RW
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6910$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6912$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6913if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6915else
6916 lt_cv_ld_exported_symbols_list=no
6917 save_LDFLAGS=$LDFLAGS
6918 echo "_main" > conftest.sym
6919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
6921/* end confdefs.h. */
6922
6923int
6924main ()
6925{
6926
6927 ;
6928 return 0;
6929}
6930_ACEOF
5213506e 6931if ac_fn_c_try_link "$LINENO"; then :
80c6c2cb
PG
6932 lt_cv_ld_exported_symbols_list=yes
6933else
5213506e 6934 lt_cv_ld_exported_symbols_list=no
80c6c2cb 6935fi
5213506e
RW
6936rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
80c6c2cb
PG
6938 LDFLAGS="$save_LDFLAGS"
6939
6940fi
5213506e
RW
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6942$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6944$as_echo_n "checking for -force_load linker flag... " >&6; }
6945if test "${lt_cv_ld_force_load+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947else
6948 lt_cv_ld_force_load=no
6949 cat > conftest.c << _LT_EOF
6950int forced_loaded() { return 2;}
6951_LT_EOF
6952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6954 echo "$AR cru libconftest.a conftest.o" >&5
6955 $AR cru libconftest.a conftest.o 2>&5
6956 cat > conftest.c << _LT_EOF
6957int main() { return 0;}
6958_LT_EOF
6959 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6960 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6961 _lt_result=$?
6962 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6963 lt_cv_ld_force_load=yes
6964 else
6965 cat conftest.err >&5
6966 fi
6967 rm -f conftest.err libconftest.a conftest conftest.c
6968 rm -rf conftest.dSYM
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6972$as_echo "$lt_cv_ld_force_load" >&6; }
80c6c2cb
PG
6973 case $host_os in
6974 rhapsody* | darwin1.[012])
6975 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6976 darwin1.*)
6977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6978 darwin*) # darwin 5.x on
6979 # if running on 10.5 or later, the deployment target defaults
6980 # to the OS version, if on x86, and 10.4, the deployment
6981 # target defaults to 10.4. Don't you love it?
6982 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6983 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6985 10.[012]*)
6986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6987 10.*)
6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6989 esac
6990 ;;
6991 esac
6992 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6993 _lt_dar_single_mod='$single_module'
6994 fi
6995 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6996 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6997 else
6998 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6999 fi
43e02a8a 7000 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
80c6c2cb
PG
7001 _lt_dsymutil='~$DSYMUTIL $lib || :'
7002 else
7003 _lt_dsymutil=
7004 fi
7005 ;;
7006 esac
7007
7008ac_ext=c
7009ac_cpp='$CPP $CPPFLAGS'
7010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7014$as_echo_n "checking how to run the C preprocessor... " >&6; }
80c6c2cb
PG
7015# On Suns, sometimes $CPP names a directory.
7016if test -n "$CPP" && test -d "$CPP"; then
7017 CPP=
7018fi
7019if test -z "$CPP"; then
5213506e
RW
7020 if test "${ac_cv_prog_CPP+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7022else
7023 # Double quotes because CPP needs to be expanded
7024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7025 do
7026 ac_preproc_ok=false
7027for ac_c_preproc_warn_flag in '' yes
7028do
7029 # Use a header file that comes with gcc, so configuring glibc
7030 # with a fresh cross-compiler works.
7031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7032 # <limits.h> exists even on freestanding compilers.
7033 # On the NeXT, cc -E runs the code through the compiler's parser,
7034 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7036/* end confdefs.h. */
7037#ifdef __STDC__
7038# include <limits.h>
7039#else
7040# include <assert.h>
7041#endif
7042 Syntax error
7043_ACEOF
5213506e 7044if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7045
5213506e 7046else
1cf3d07d
SE
7047 # Broken: fails on valid input.
7048continue
7049fi
7050rm -f conftest.err conftest.$ac_ext
7051
5213506e 7052 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7053 # can be detected and how.
5213506e 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7055/* end confdefs.h. */
7056#include <ac_nonexistent.h>
7057_ACEOF
5213506e 7058if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7059 # Broken: success on invalid input.
7060continue
7061else
1cf3d07d
SE
7062 # Passes both tests.
7063ac_preproc_ok=:
7064break
7065fi
7066rm -f conftest.err conftest.$ac_ext
7067
7068done
7069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7070rm -f conftest.err conftest.$ac_ext
5213506e 7071if $ac_preproc_ok; then :
1cf3d07d
SE
7072 break
7073fi
7074
7075 done
7076 ac_cv_prog_CPP=$CPP
7077
7078fi
7079 CPP=$ac_cv_prog_CPP
7080else
7081 ac_cv_prog_CPP=$CPP
7082fi
5213506e
RW
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7084$as_echo "$CPP" >&6; }
1cf3d07d
SE
7085ac_preproc_ok=false
7086for ac_c_preproc_warn_flag in '' yes
7087do
7088 # Use a header file that comes with gcc, so configuring glibc
7089 # with a fresh cross-compiler works.
7090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7091 # <limits.h> exists even on freestanding compilers.
7092 # On the NeXT, cc -E runs the code through the compiler's parser,
7093 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7095/* end confdefs.h. */
7096#ifdef __STDC__
7097# include <limits.h>
7098#else
7099# include <assert.h>
7100#endif
7101 Syntax error
7102_ACEOF
5213506e 7103if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7104
5213506e 7105else
1cf3d07d
SE
7106 # Broken: fails on valid input.
7107continue
7108fi
7109rm -f conftest.err conftest.$ac_ext
7110
5213506e 7111 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7112 # can be detected and how.
5213506e 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7114/* end confdefs.h. */
7115#include <ac_nonexistent.h>
7116_ACEOF
5213506e 7117if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7118 # Broken: success on invalid input.
7119continue
7120else
1cf3d07d
SE
7121 # Passes both tests.
7122ac_preproc_ok=:
7123break
7124fi
7125rm -f conftest.err conftest.$ac_ext
7126
7127done
7128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129rm -f conftest.err conftest.$ac_ext
5213506e
RW
7130if $ac_preproc_ok; then :
7131
1cf3d07d 7132else
5213506e
RW
7133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7135as_fn_error "C preprocessor \"$CPP\" fails sanity check
7136See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7137fi
7138
7139ac_ext=c
7140ac_cpp='$CPP $CPPFLAGS'
7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144
7145
5213506e
RW
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7147$as_echo_n "checking for ANSI C header files... " >&6; }
7148if test "${ac_cv_header_stdc+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
1cf3d07d 7150else
5213506e 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7152/* end confdefs.h. */
7153#include <stdlib.h>
7154#include <stdarg.h>
7155#include <string.h>
7156#include <float.h>
7157
7158int
7159main ()
7160{
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
5213506e 7166if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7167 ac_cv_header_stdc=yes
7168else
5213506e 7169 ac_cv_header_stdc=no
1cf3d07d 7170fi
5213506e 7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7172
7173if test $ac_cv_header_stdc = yes; then
7174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7176/* end confdefs.h. */
7177#include <string.h>
7178
7179_ACEOF
7180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7181 $EGREP "memchr" >/dev/null 2>&1; then :
7182
1cf3d07d
SE
7183else
7184 ac_cv_header_stdc=no
7185fi
7186rm -f conftest*
7187
7188fi
7189
7190if test $ac_cv_header_stdc = yes; then
7191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7193/* end confdefs.h. */
7194#include <stdlib.h>
7195
7196_ACEOF
7197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7198 $EGREP "free" >/dev/null 2>&1; then :
7199
1cf3d07d
SE
7200else
7201 ac_cv_header_stdc=no
7202fi
7203rm -f conftest*
7204
7205fi
7206
7207if test $ac_cv_header_stdc = yes; then
7208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7209 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7210 :
7211else
5213506e 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7213/* end confdefs.h. */
7214#include <ctype.h>
5213506e 7215#include <stdlib.h>
1cf3d07d
SE
7216#if ((' ' & 0x0FF) == 0x020)
7217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7219#else
7220# define ISLOWER(c) \
7221 (('a' <= (c) && (c) <= 'i') \
7222 || ('j' <= (c) && (c) <= 'r') \
7223 || ('s' <= (c) && (c) <= 'z'))
7224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7225#endif
7226
7227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7228int
7229main ()
7230{
7231 int i;
7232 for (i = 0; i < 256; i++)
7233 if (XOR (islower (i), ISLOWER (i))
7234 || toupper (i) != TOUPPER (i))
5213506e
RW
7235 return 2;
7236 return 0;
1cf3d07d
SE
7237}
7238_ACEOF
5213506e 7239if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7240
5213506e
RW
7241else
7242 ac_cv_header_stdc=no
1cf3d07d 7243fi
5213506e
RW
7244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7245 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7246fi
5213506e 7247
1cf3d07d
SE
7248fi
7249fi
5213506e
RW
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7251$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7252if test $ac_cv_header_stdc = yes; then
7253
5213506e 7254$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7255
7256fi
7257
7258# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7260 inttypes.h stdint.h unistd.h
5213506e
RW
7261do :
7262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7263ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7264"
7265eval as_val=\$$as_ac_Header
7266 if test "x$as_val" = x""yes; then :
80c6c2cb 7267 cat >>confdefs.h <<_ACEOF
5213506e 7268#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
80c6c2cb
PG
7269_ACEOF
7270
7271fi
7272
7273done
7274
7275
80c6c2cb 7276for ac_header in dlfcn.h
5213506e
RW
7277do :
7278 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7279"
7280if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
80c6c2cb 7281 cat >>confdefs.h <<_ACEOF
5213506e 7282#define HAVE_DLFCN_H 1
80c6c2cb
PG
7283_ACEOF
7284
7285fi
7286
7287done
7288
7289
7290
43e02a8a
RW
7291
7292
80c6c2cb
PG
7293# Set options
7294
7295
7296
7297 enable_dlopen=no
7298
7299
7300 enable_win32_dll=no
7301
7302
5213506e
RW
7303 # Check whether --enable-shared was given.
7304if test "${enable_shared+set}" = set; then :
7305 enableval=$enable_shared; p=${PACKAGE-default}
80c6c2cb
PG
7306 case $enableval in
7307 yes) enable_shared=yes ;;
7308 no) enable_shared=no ;;
7309 *)
7310 enable_shared=no
7311 # Look at the argument we got. We use all the common list separators.
7312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7313 for pkg in $enableval; do
7314 IFS="$lt_save_ifs"
7315 if test "X$pkg" = "X$p"; then
7316 enable_shared=yes
7317 fi
7318 done
7319 IFS="$lt_save_ifs"
7320 ;;
7321 esac
7322else
7323 enable_shared=yes
5213506e
RW
7324fi
7325
80c6c2cb
PG
7326
7327
7328
7329
7330
7331
7332
7333
5213506e
RW
7334 # Check whether --enable-static was given.
7335if test "${enable_static+set}" = set; then :
7336 enableval=$enable_static; p=${PACKAGE-default}
80c6c2cb
PG
7337 case $enableval in
7338 yes) enable_static=yes ;;
7339 no) enable_static=no ;;
7340 *)
7341 enable_static=no
7342 # Look at the argument we got. We use all the common list separators.
7343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7344 for pkg in $enableval; do
7345 IFS="$lt_save_ifs"
7346 if test "X$pkg" = "X$p"; then
7347 enable_static=yes
7348 fi
7349 done
7350 IFS="$lt_save_ifs"
7351 ;;
7352 esac
7353else
7354 enable_static=yes
5213506e
RW
7355fi
7356
80c6c2cb
PG
7357
7358
7359
7360
7361
7362
7363
7364
7365
5213506e
RW
7366# Check whether --with-pic was given.
7367if test "${with_pic+set}" = set; then :
7368 withval=$with_pic; pic_mode="$withval"
80c6c2cb
PG
7369else
7370 pic_mode=default
5213506e
RW
7371fi
7372
1cf3d07d 7373
80c6c2cb 7374test -z "$pic_mode" && pic_mode=default
1cf3d07d 7375
1cf3d07d 7376
1cf3d07d
SE
7377
7378
7379
1cf3d07d 7380
80c6c2cb 7381
5213506e
RW
7382 # Check whether --enable-fast-install was given.
7383if test "${enable_fast_install+set}" = set; then :
7384 enableval=$enable_fast_install; p=${PACKAGE-default}
80c6c2cb
PG
7385 case $enableval in
7386 yes) enable_fast_install=yes ;;
7387 no) enable_fast_install=no ;;
7388 *)
7389 enable_fast_install=no
7390 # Look at the argument we got. We use all the common list separators.
7391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7392 for pkg in $enableval; do
7393 IFS="$lt_save_ifs"
7394 if test "X$pkg" = "X$p"; then
7395 enable_fast_install=yes
7396 fi
7397 done
7398 IFS="$lt_save_ifs"
7399 ;;
7400 esac
1cf3d07d 7401else
80c6c2cb 7402 enable_fast_install=yes
5213506e
RW
7403fi
7404
80c6c2cb
PG
7405
7406
7407
7408
1cf3d07d 7409
1cf3d07d 7410
1cf3d07d 7411
1cf3d07d
SE
7412
7413
7414
7415# This can be used to rebuild libtool when needed
7416LIBTOOL_DEPS="$ltmain"
7417
7418# Always use our own libtool.
7419LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
43e02a8a 7443
1cf3d07d
SE
7444
7445
7446test -z "$LN_S" && LN_S="ln -s"
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461if test -n "${ZSH_VERSION+set}" ; then
7462 setopt NO_GLOB_SUBST
7463fi
7464
5213506e
RW
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7466$as_echo_n "checking for objdir... " >&6; }
7467if test "${lt_cv_objdir+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7469else
7470 rm -f .libs 2>/dev/null
7471mkdir .libs 2>/dev/null
7472if test -d .libs; then
7473 lt_cv_objdir=.libs
7474else
7475 # MS-DOS does not allow filenames that begin with a dot.
7476 lt_cv_objdir=_libs
7477fi
7478rmdir .libs 2>/dev/null
7479fi
5213506e
RW
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7481$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7482objdir=$lt_cv_objdir
7483
7484
7485
7486
7487
7488cat >>confdefs.h <<_ACEOF
7489#define LT_OBJDIR "$lt_cv_objdir/"
7490_ACEOF
7491
7492
7493
7494
1cf3d07d
SE
7495case $host_os in
7496aix3*)
7497 # AIX sometimes has problems with the GCC collect2 program. For some
7498 # reason, if we set the COLLECT_NAMES environment variable, the problems
7499 # vanish in a puff of smoke.
7500 if test "X${COLLECT_NAMES+set}" != Xset; then
7501 COLLECT_NAMES=
7502 export COLLECT_NAMES
7503 fi
7504 ;;
7505esac
7506
1cf3d07d
SE
7507# Global variables:
7508ofile=libtool
7509can_build_shared=yes
7510
7511# All known linkers require a `.a' archive for static linking (except MSVC,
7512# which needs '.lib').
7513libext=a
7514
7515with_gnu_ld="$lt_cv_prog_gnu_ld"
7516
7517old_CC="$CC"
7518old_CFLAGS="$CFLAGS"
7519
7520# Set sane defaults for various variables
7521test -z "$CC" && CC=cc
7522test -z "$LTCC" && LTCC=$CC
7523test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7524test -z "$LD" && LD=ld
7525test -z "$ac_objext" && ac_objext=o
7526
7527for cc_temp in $compiler""; do
7528 case $cc_temp in
7529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7531 \-*) ;;
7532 *) break;;
7533 esac
7534done
43e02a8a 7535cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7536
7537
7538# Only perform the check for file, if the check method requires it
7539test -z "$MAGIC_CMD" && MAGIC_CMD=file
7540case $deplibs_check_method in
7541file_magic*)
7542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7544$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7545if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7547else
7548 case $MAGIC_CMD in
7549[\\/*] | ?:[\\/]*)
7550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7551 ;;
7552*)
7553 lt_save_MAGIC_CMD="$MAGIC_CMD"
7554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7556 for ac_dir in $ac_dummy; do
7557 IFS="$lt_save_ifs"
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/${ac_tool_prefix}file; then
7560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7561 if test -n "$file_magic_test_file"; then
7562 case $deplibs_check_method in
7563 "file_magic "*)
7564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7567 $EGREP "$file_magic_regex" > /dev/null; then
7568 :
7569 else
7570 cat <<_LT_EOF 1>&2
7571
7572*** Warning: the command libtool uses to detect shared libraries,
7573*** $file_magic_cmd, produces output that libtool cannot recognize.
7574*** The result is that libtool may fail to recognize shared libraries
7575*** as such. This will affect the creation of libtool libraries that
7576*** depend on shared libraries, but programs linked with such libtool
7577*** libraries will work regardless of this problem. Nevertheless, you
7578*** may want to report the problem to your system manager and/or to
7579*** bug-libtool@gnu.org
7580
7581_LT_EOF
7582 fi ;;
7583 esac
7584 fi
7585 break
7586 fi
7587 done
7588 IFS="$lt_save_ifs"
7589 MAGIC_CMD="$lt_save_MAGIC_CMD"
7590 ;;
7591esac
7592fi
7593
7594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595if test -n "$MAGIC_CMD"; then
5213506e
RW
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7597$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7598else
5213506e
RW
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
1cf3d07d
SE
7601fi
7602
7603
7604
7605
7606
7607if test -z "$lt_cv_path_MAGIC_CMD"; then
7608 if test -n "$ac_tool_prefix"; then
5213506e
RW
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7610$as_echo_n "checking for file... " >&6; }
7611if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7613else
7614 case $MAGIC_CMD in
7615[\\/*] | ?:[\\/]*)
7616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7617 ;;
7618*)
7619 lt_save_MAGIC_CMD="$MAGIC_CMD"
7620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7622 for ac_dir in $ac_dummy; do
7623 IFS="$lt_save_ifs"
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f $ac_dir/file; then
7626 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7627 if test -n "$file_magic_test_file"; then
7628 case $deplibs_check_method in
7629 "file_magic "*)
7630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7633 $EGREP "$file_magic_regex" > /dev/null; then
7634 :
7635 else
7636 cat <<_LT_EOF 1>&2
7637
7638*** Warning: the command libtool uses to detect shared libraries,
7639*** $file_magic_cmd, produces output that libtool cannot recognize.
7640*** The result is that libtool may fail to recognize shared libraries
7641*** as such. This will affect the creation of libtool libraries that
7642*** depend on shared libraries, but programs linked with such libtool
7643*** libraries will work regardless of this problem. Nevertheless, you
7644*** may want to report the problem to your system manager and/or to
7645*** bug-libtool@gnu.org
7646
7647_LT_EOF
7648 fi ;;
7649 esac
7650 fi
7651 break
7652 fi
7653 done
7654 IFS="$lt_save_ifs"
7655 MAGIC_CMD="$lt_save_MAGIC_CMD"
7656 ;;
7657esac
7658fi
7659
7660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661if test -n "$MAGIC_CMD"; then
5213506e
RW
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7663$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7664else
5213506e
RW
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666$as_echo "no" >&6; }
1cf3d07d
SE
7667fi
7668
7669
7670 else
7671 MAGIC_CMD=:
7672 fi
7673fi
7674
7675 fi
7676 ;;
7677esac
7678
7679# Use C for the default configuration in the libtool script
7680
7681lt_save_CC="$CC"
7682ac_ext=c
7683ac_cpp='$CPP $CPPFLAGS'
7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688
7689# Source file extension for C test sources.
7690ac_ext=c
7691
7692# Object file extension for compiled C test sources.
7693objext=o
7694objext=$objext
7695
7696# Code to be used in simple compile tests
7697lt_simple_compile_test_code="int some_variable = 0;"
7698
7699# Code to be used in simple link tests
7700lt_simple_link_test_code='int main(){return(0);}'
7701
7702
7703
7704
7705
7706
7707
7708# If no C compiler was specified, use CC.
7709LTCC=${LTCC-"$CC"}
7710
7711# If no C compiler flags were specified, use CFLAGS.
7712LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7713
7714# Allow CC to be a program name with arguments.
7715compiler=$CC
7716
7717# Save the default compiler, since it gets overwritten when the other
7718# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7719compiler_DEFAULT=$CC
7720
7721# save warnings/boilerplate of simple test code
7722ac_outfile=conftest.$ac_objext
7723echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7725_lt_compiler_boilerplate=`cat conftest.err`
7726$RM conftest*
7727
7728ac_outfile=conftest.$ac_objext
7729echo "$lt_simple_link_test_code" >conftest.$ac_ext
7730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7731_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 7732$RM -r conftest*
1cf3d07d
SE
7733
7734
7735## CAVEAT EMPTOR:
7736## There is no encapsulation within the following macros, do not change
7737## the running order or otherwise move them around unless you know exactly
7738## what you are doing...
7739if test -n "$compiler"; then
7740
7741lt_prog_compiler_no_builtin_flag=
7742
7743if test "$GCC" = yes; then
43e02a8a
RW
7744 case $cc_basename in
7745 nvcc*)
7746 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7747 *)
7748 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7749 esac
1cf3d07d 7750
5213506e
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7752$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7753if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7755else
7756 lt_cv_prog_compiler_rtti_exceptions=no
7757 ac_outfile=conftest.$ac_objext
7758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7759 lt_compiler_flag="-fno-rtti -fno-exceptions"
7760 # Insert the option either (1) after the last *FLAGS variable, or
7761 # (2) before a word containing "conftest.", or (3) at the end.
7762 # Note that $ac_compile itself does not contain backslashes and begins
7763 # with a dollar sign (not a hyphen), so the echo should work correctly.
7764 # The option is referenced via a variable to avoid confusing sed.
7765 lt_compile=`echo "$ac_compile" | $SED \
7766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7768 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7770 (eval "$lt_compile" 2>conftest.err)
7771 ac_status=$?
7772 cat conftest.err >&5
43e02a8a 7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7774 if (exit $ac_status) && test -s "$ac_outfile"; then
7775 # The compiler can only warn and ignore the option if not recognized
7776 # So say no if there are warnings other than the usual output.
43e02a8a 7777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7780 lt_cv_prog_compiler_rtti_exceptions=yes
7781 fi
7782 fi
7783 $RM conftest*
7784
7785fi
5213506e
RW
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7787$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7788
7789if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7791else
7792 :
7793fi
7794
7795fi
7796
7797
7798
7799
7800
7801
7802 lt_prog_compiler_wl=
7803lt_prog_compiler_pic=
7804lt_prog_compiler_static=
7805
5213506e
RW
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7807$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7808
7809 if test "$GCC" = yes; then
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_static='-static'
7812
7813 case $host_os in
7814 aix*)
7815 # All AIX code is PIC.
7816 if test "$host_cpu" = ia64; then
7817 # AIX 5 now supports IA64 processor
7818 lt_prog_compiler_static='-Bstatic'
7819 fi
7820 ;;
7821
7822 amigaos*)
80c6c2cb
PG
7823 case $host_cpu in
7824 powerpc)
7825 # see comment about AmigaOS4 .so support
7826 lt_prog_compiler_pic='-fPIC'
7827 ;;
7828 m68k)
7829 # FIXME: we need at least 68020 code to build shared libraries, but
7830 # adding the `-m68020' flag to GCC prevents building anything better,
7831 # like `-m68040'.
7832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7833 ;;
7834 esac
1cf3d07d
SE
7835 ;;
7836
7837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838 # PIC is the default for these OSes.
7839 ;;
7840
80c6c2cb 7841 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7842 # This hack is so that the source file can tell whether it is being
7843 # built for inclusion in a dll (and should export symbols for example).
7844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7845 # (--disable-auto-import) libraries
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7847 ;;
7848
7849 darwin* | rhapsody*)
7850 # PIC is the default on this platform
7851 # Common symbols not allowed in MH_DYLIB files
7852 lt_prog_compiler_pic='-fno-common'
7853 ;;
7854
43e02a8a
RW
7855 haiku*)
7856 # PIC is the default for Haiku.
7857 # The "-static" flag exists, but is broken.
7858 lt_prog_compiler_static=
7859 ;;
7860
1cf3d07d 7861 hpux*)
80c6c2cb
PG
7862 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7863 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7864 # sets the default TLS model and affects inlining.
1cf3d07d 7865 case $host_cpu in
80c6c2cb 7866 hppa*64*)
1cf3d07d
SE
7867 # +Z the default
7868 ;;
7869 *)
7870 lt_prog_compiler_pic='-fPIC'
7871 ;;
7872 esac
7873 ;;
7874
7875 interix[3-9]*)
7876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7877 # Instead, we relocate shared libraries at runtime.
7878 ;;
7879
7880 msdosdjgpp*)
7881 # Just because we use GCC doesn't mean we suddenly get shared libraries
7882 # on systems that don't support them.
7883 lt_prog_compiler_can_build_shared=no
7884 enable_shared=no
7885 ;;
7886
7887 *nto* | *qnx*)
7888 # QNX uses GNU C++, but need to define -shared option too, otherwise
7889 # it will coredump.
7890 lt_prog_compiler_pic='-fPIC -shared'
7891 ;;
7892
7893 sysv4*MP*)
7894 if test -d /usr/nec; then
7895 lt_prog_compiler_pic=-Kconform_pic
7896 fi
7897 ;;
7898
7899 *)
7900 lt_prog_compiler_pic='-fPIC'
7901 ;;
7902 esac
43e02a8a
RW
7903
7904 case $cc_basename in
7905 nvcc*) # Cuda Compiler Driver 2.2
7906 lt_prog_compiler_wl='-Xlinker '
7907 lt_prog_compiler_pic='-Xcompiler -fPIC'
7908 ;;
7909 esac
1cf3d07d
SE
7910 else
7911 # PORTME Check for flag to pass linker flags through the system compiler.
7912 case $host_os in
7913 aix*)
7914 lt_prog_compiler_wl='-Wl,'
7915 if test "$host_cpu" = ia64; then
7916 # AIX 5 now supports IA64 processor
7917 lt_prog_compiler_static='-Bstatic'
7918 else
7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920 fi
7921 ;;
1cf3d07d 7922
80c6c2cb 7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 lt_prog_compiler_pic='-DDLL_EXPORT'
7927 ;;
7928
7929 hpux9* | hpux10* | hpux11*)
7930 lt_prog_compiler_wl='-Wl,'
7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932 # not for PA HP-UX.
7933 case $host_cpu in
7934 hppa*64*|ia64*)
7935 # +Z the default
7936 ;;
7937 *)
7938 lt_prog_compiler_pic='+Z'
7939 ;;
7940 esac
7941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942 lt_prog_compiler_static='${wl}-a ${wl}archive'
7943 ;;
7944
7945 irix5* | irix6* | nonstopux*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC (with -KPIC) is the default.
7948 lt_prog_compiler_static='-non_shared'
7949 ;;
7950
7a9d3fe8 7951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7952 case $cc_basename in
80c6c2cb
PG
7953 # old Intel for x86_64 which still supported -KPIC.
7954 ecc*)
1cf3d07d
SE
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-static'
7958 ;;
80c6c2cb
PG
7959 # icc used to be incompatible with GCC.
7960 # ICC 10 doesn't accept -KPIC any more.
7961 icc* | ifort*)
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-fPIC'
7964 lt_prog_compiler_static='-static'
7965 ;;
7966 # Lahey Fortran 8.1.
7967 lf95*)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='--shared'
7970 lt_prog_compiler_static='--static'
7971 ;;
43e02a8a 7972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7978 ;;
7979 ccc*)
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
43e02a8a
RW
7984 xl* | bgxl* | bgf* | mpixl*)
7985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
80c6c2cb
PG
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7989 ;;
1cf3d07d
SE
7990 *)
7991 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
7992 *Sun\ F* | *Sun*Fortran*)
7993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
43e02a8a 7996 lt_prog_compiler_wl=''
1cf3d07d 7997 ;;
43e02a8a
RW
7998 *Sun\ C*)
7999 # Sun C 5.9
1cf3d07d
SE
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
43e02a8a 8002 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8003 ;;
8004 esac
8005 ;;
8006 esac
8007 ;;
8008
8009 newsos6)
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 ;;
8013
8014 *nto* | *qnx*)
8015 # QNX uses GNU C++, but need to define -shared option too, otherwise
8016 # it will coredump.
8017 lt_prog_compiler_pic='-fPIC -shared'
8018 ;;
8019
8020 osf3* | osf4* | osf5*)
8021 lt_prog_compiler_wl='-Wl,'
8022 # All OSF/1 code is PIC.
8023 lt_prog_compiler_static='-non_shared'
8024 ;;
8025
8026 rdos*)
8027 lt_prog_compiler_static='-non_shared'
8028 ;;
8029
8030 solaris*)
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 case $cc_basename in
8034 f77* | f90* | f95*)
8035 lt_prog_compiler_wl='-Qoption ld ';;
8036 *)
8037 lt_prog_compiler_wl='-Wl,';;
8038 esac
8039 ;;
8040
8041 sunos4*)
8042 lt_prog_compiler_wl='-Qoption ld '
8043 lt_prog_compiler_pic='-PIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 sysv4 | sysv4.2uw2* | sysv4.3*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 ;;
8052
8053 sysv4*MP*)
8054 if test -d /usr/nec ;then
8055 lt_prog_compiler_pic='-Kconform_pic'
8056 lt_prog_compiler_static='-Bstatic'
8057 fi
8058 ;;
8059
8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 unicos*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_can_build_shared=no
8069 ;;
8070
8071 uts4*)
8072 lt_prog_compiler_pic='-pic'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
8075
8076 *)
8077 lt_prog_compiler_can_build_shared=no
8078 ;;
8079 esac
8080 fi
8081
8082case $host_os in
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8084 *djgpp*)
8085 lt_prog_compiler_pic=
8086 ;;
8087 *)
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089 ;;
8090esac
5213506e
RW
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8092$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8093
8094
8095
8096
8097
8098
8099#
8100# Check to make sure the PIC flag actually works.
8101#
8102if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
1cf3d07d 8107else
80c6c2cb 8108 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8122 (eval "$lt_compile" 2>conftest.err)
8123 ac_status=$?
8124 cat conftest.err >&5
43e02a8a 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
43e02a8a 8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8132 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8133 fi
8134 fi
8135 $RM conftest*
8136
8137fi
5213506e
RW
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8140
80c6c2cb 8141if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8142 case $lt_prog_compiler_pic in
8143 "" | " "*) ;;
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145 esac
8146else
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8149fi
8150
8151fi
8152
8153
8154
8155
8156
8157
8158#
8159# Check to make sure the static flag actually works.
8160#
8161wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8164if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
1cf3d07d 8166else
80c6c2cb 8167 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
43e02a8a 8177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8180 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8181 fi
8182 else
80c6c2cb 8183 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8184 fi
8185 fi
80c6c2cb 8186 $RM -r conftest*
1cf3d07d
SE
8187 LDFLAGS="$save_LDFLAGS"
8188
8189fi
5213506e
RW
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8191$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8192
80c6c2cb 8193if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8194 :
8195else
8196 lt_prog_compiler_static=
8197fi
8198
8199
8200
8201
8202
8203
8204
5213506e
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8206$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8207if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8209else
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8212 mkdir conftest
8213 cd conftest
8214 mkdir out
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217 lt_compiler_flag="-o out/conftest2.$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8227 (eval "$lt_compile" 2>out/conftest.err)
8228 ac_status=$?
8229 cat out/conftest.err >&5
43e02a8a 8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232 then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
43e02a8a 8235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8239 fi
8240 fi
8241 chmod u+w . 2>&5
8242 $RM conftest*
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8247 cd ..
8248 $RM -r conftest
8249 $RM conftest*
8250
8251fi
5213506e
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8253$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8254
8255
8256
8257
8258
8259
5213506e
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8264else
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8267 mkdir conftest
8268 cd conftest
8269 mkdir out
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
43e02a8a 8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
43e02a8a 8290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
8296 chmod u+w . 2>&5
8297 $RM conftest*
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8302 cd ..
8303 $RM -r conftest
8304 $RM conftest*
8305
8306fi
5213506e
RW
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8308$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8309
8310
8311
8312
8313hard_links="nottested"
8314if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8317$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8318 hard_links=yes
8319 $RM conftest*
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321 touch conftest.a
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8325$as_echo "$hard_links" >&6; }
1cf3d07d 8326 if test "$hard_links" = no; then
5213506e
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8329 need_locks=warn
8330 fi
8331else
8332 need_locks=no
8333fi
8334
8335
8336
8337
8338
8339
5213506e
RW
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8342
8343 runpath_var=
8344 allow_undefined_flag=
8345 always_export_symbols=no
8346 archive_cmds=
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8353 hardcode_direct=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8358 hardcode_minus_L=no
8359 hardcode_shlibpath_var=unsupported
8360 inherit_rpath=no
8361 link_all_deplibs=unknown
8362 module_cmds=
8363 module_expsym_cmds=
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8370 include_expsyms=
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
80c6c2cb 8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
80c6c2cb 8381 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8382 extract_expsyms_cmds=
8383
8384 case $host_os in
80c6c2cb 8385 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8390 with_gnu_ld=no
8391 fi
8392 ;;
8393 interix*)
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8395 with_gnu_ld=yes
8396 ;;
8397 openbsd*)
8398 with_gnu_ld=no
8399 ;;
8400 esac
8401
8402 ld_shlibs=yes
43e02a8a
RW
8403
8404 # On some targets, GNU ld is compatible enough with the native linker
8405 # that we're better off using the native interface for both.
8406 lt_use_gnu_ld_interface=no
1cf3d07d 8407 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8408 case $host_os in
8409 aix*)
8410 # The AIX port of GNU ld has always aspired to compatibility
8411 # with the native linker. However, as the warning in the GNU ld
8412 # block says, versions before 2.19.5* couldn't really create working
8413 # shared libraries, regardless of the interface used.
8414 case `$LD -v 2>&1` in
8415 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8416 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8417 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8418 *)
8419 lt_use_gnu_ld_interface=yes
8420 ;;
8421 esac
8422 ;;
8423 *)
8424 lt_use_gnu_ld_interface=yes
8425 ;;
8426 esac
8427 fi
8428
8429 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8430 # If archive_cmds runs LD, not CC, wlarc should be empty
8431 wlarc='${wl}'
8432
8433 # Set some defaults for GNU ld with shared library support. These
8434 # are reset later if shared libraries are not supported. Putting them
8435 # here allows them to be overridden if necessary.
8436 runpath_var=LD_RUN_PATH
8437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8438 export_dynamic_flag_spec='${wl}--export-dynamic'
8439 # ancient GNU ld didn't support --whole-archive et. al.
8440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8442 else
8443 whole_archive_flag_spec=
8444 fi
8445 supports_anon_versioning=no
8446 case `$LD -v 2>&1` in
43e02a8a 8447 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8451 *\ 2.11.*) ;; # other 2.11 versions
8452 *) supports_anon_versioning=yes ;;
8453 esac
8454
8455 # See if GNU ld supports shared libraries.
8456 case $host_os in
95d4f544 8457 aix[3-9]*)
1cf3d07d
SE
8458 # On AIX/PPC, the GNU linker is very broken
8459 if test "$host_cpu" != ia64; then
8460 ld_shlibs=no
8461 cat <<_LT_EOF 1>&2
8462
43e02a8a 8463*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8464*** to be unable to reliably create shared libraries on AIX.
8465*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8466*** really care for shared libraries, you may want to install binutils
8467*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8468*** You will then need to restart the configuration process.
1cf3d07d
SE
8469
8470_LT_EOF
8471 fi
8472 ;;
8473
8474 amigaos*)
80c6c2cb
PG
8475 case $host_cpu in
8476 powerpc)
8477 # see comment about AmigaOS4 .so support
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds=''
8480 ;;
8481 m68k)
8482 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)'
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 hardcode_minus_L=yes
8485 ;;
8486 esac
1cf3d07d
SE
8487 ;;
8488
8489 beos*)
8490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8491 allow_undefined_flag=unsupported
8492 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8493 # support --undefined. This deserves some investigation. FIXME
8494 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 else
8496 ld_shlibs=no
8497 fi
8498 ;;
8499
80c6c2cb 8500 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8501 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8502 # as there is no search path for DLLs.
8503 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8504 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8505 allow_undefined_flag=unsupported
8506 always_export_symbols=no
8507 enable_shared_with_static_runtimes=yes
8508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8509
8510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512 # If the export-symbols file already is a .def file (1st line
8513 # is EXPORTS), use it as is; otherwise, prepend...
8514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8515 cp $export_symbols $output_objdir/$soname.def;
8516 else
8517 echo EXPORTS > $output_objdir/$soname.def;
8518 cat $export_symbols >> $output_objdir/$soname.def;
8519 fi~
8520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8521 else
8522 ld_shlibs=no
8523 fi
8524 ;;
8525
43e02a8a
RW
8526 haiku*)
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 link_all_deplibs=yes
8529 ;;
8530
1cf3d07d
SE
8531 interix[3-9]*)
8532 hardcode_direct=no
8533 hardcode_shlibpath_var=no
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8535 export_dynamic_flag_spec='${wl}-E'
8536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8537 # Instead, shared libraries are loaded at an image base (0x10000000 by
8538 # default) and relocated if they conflict, which is a slow very memory
8539 # consuming and fragmenting process. To avoid this, we pick a random,
8540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8543 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'
8544 ;;
8545
7a9d3fe8 8546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8547 tmp_diet=no
8548 if test "$host_os" = linux-dietlibc; then
8549 case $cc_basename in
8550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8551 esac
8552 fi
8553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8554 && test "$tmp_diet" = no
8555 then
8556 tmp_addflag=
80c6c2cb 8557 tmp_sharedflag='-shared'
1cf3d07d
SE
8558 case $cc_basename,$host_cpu in
8559 pgcc*) # Portland Group C compiler
43e02a8a 8560 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'
1cf3d07d
SE
8561 tmp_addflag=' $pic_flag'
8562 ;;
43e02a8a
RW
8563 pgf77* | pgf90* | pgf95* | pgfortran*)
8564 # Portland Group f77 and f90 compilers
8565 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'
1cf3d07d
SE
8566 tmp_addflag=' $pic_flag -Mnomain' ;;
8567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8568 tmp_addflag=' -i_dynamic' ;;
8569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8570 tmp_addflag=' -i_dynamic -nofor_main' ;;
8571 ifc* | ifort*) # Intel Fortran compiler
8572 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
8573 lf95*) # Lahey Fortran 8.1
8574 whole_archive_flag_spec=
8575 tmp_sharedflag='--shared' ;;
43e02a8a 8576 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
80c6c2cb
PG
8577 tmp_sharedflag='-qmkshrobj'
8578 tmp_addflag= ;;
43e02a8a
RW
8579 nvcc*) # Cuda Compiler Driver 2.2
8580 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'
8581 compiler_needs_object=yes
8582 ;;
1cf3d07d
SE
8583 esac
8584 case `$CC -V 2>&1 | sed 5q` in
8585 *Sun\ C*) # Sun C 5.9
43e02a8a 8586 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'
1cf3d07d
SE
8587 compiler_needs_object=yes
8588 tmp_sharedflag='-G' ;;
8589 *Sun\ F*) # Sun Fortran 8.3
8590 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8591 esac
8592 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8593
8594 if test "x$supports_anon_versioning" = xyes; then
8595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8597 echo "local: *; };" >> $output_objdir/$libname.ver~
8598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8599 fi
80c6c2cb
PG
8600
8601 case $cc_basename in
43e02a8a 8602 xlf* | bgf* | bgxlf* | mpixlf*)
80c6c2cb
PG
8603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8605 hardcode_libdir_flag_spec=
8606 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8607 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8608 if test "x$supports_anon_versioning" = xyes; then
8609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8611 echo "local: *; };" >> $output_objdir/$libname.ver~
8612 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8613 fi
8614 ;;
8615 esac
1cf3d07d
SE
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 netbsd*)
8622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8623 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8624 wlarc=
8625 else
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 fi
8629 ;;
8630
8631 solaris*)
8632 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8633 ld_shlibs=no
8634 cat <<_LT_EOF 1>&2
8635
8636*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8637*** create shared libraries on Solaris systems. Therefore, libtool
8638*** is disabling shared libraries support. We urge you to upgrade GNU
8639*** binutils to release 2.9.1 or newer. Another option is to modify
8640*** your PATH or compiler configuration so that the native linker is
8641*** used, and then restart.
8642
8643_LT_EOF
8644 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8647 else
8648 ld_shlibs=no
8649 fi
8650 ;;
8651
8652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8653 case `$LD -v 2>&1` in
8654 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8655 ld_shlibs=no
8656 cat <<_LT_EOF 1>&2
8657
8658*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8659*** reliably create shared libraries on SCO systems. Therefore, libtool
8660*** is disabling shared libraries support. We urge you to upgrade GNU
8661*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8662*** your PATH or compiler configuration so that the native linker is
8663*** used, and then restart.
8664
8665_LT_EOF
8666 ;;
8667 *)
8668 # For security reasons, it is highly recommended that you always
8669 # use absolute paths for naming shared libraries, and exclude the
8670 # DT_RUNPATH tag from executables and libraries. But doing so
8671 # requires that you compile everything twice, which is a pain.
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8676 else
8677 ld_shlibs=no
8678 fi
8679 ;;
8680 esac
8681 ;;
8682
8683 sunos4*)
8684 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8685 wlarc=
8686 hardcode_direct=yes
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 *)
8691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694 else
8695 ld_shlibs=no
8696 fi
8697 ;;
8698 esac
8699
8700 if test "$ld_shlibs" = no; then
8701 runpath_var=
8702 hardcode_libdir_flag_spec=
8703 export_dynamic_flag_spec=
8704 whole_archive_flag_spec=
8705 fi
8706 else
8707 # PORTME fill in a description of your system's linker (not GNU ld)
8708 case $host_os in
8709 aix3*)
8710 allow_undefined_flag=unsupported
8711 always_export_symbols=yes
8712 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'
8713 # Note: this linker hardcodes the directories in LIBPATH if there
8714 # are no directories specified by -L.
8715 hardcode_minus_L=yes
8716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8717 # Neither direct hardcoding nor static linking is supported with a
8718 # broken collect2.
8719 hardcode_direct=unsupported
8720 fi
8721 ;;
8722
95d4f544 8723 aix[4-9]*)
1cf3d07d
SE
8724 if test "$host_cpu" = ia64; then
8725 # On IA64, the linker does run time linking by default, so we don't
8726 # have to do anything special.
8727 aix_use_runtimelinking=no
8728 exp_sym_flag='-Bexport'
8729 no_entry_flag=""
8730 else
8731 # If we're using GNU nm, then we don't want the "-C" option.
8732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8733 # Also, AIX nm treats weak defined symbols like other global
8734 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8735 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8736 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'
1cf3d07d
SE
8737 else
8738 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8739 fi
8740 aix_use_runtimelinking=no
8741
8742 # Test if we are trying to use run time linking or normal
8743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8744 # need to do runtime linking.
95d4f544 8745 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8746 for ld_flag in $LDFLAGS; do
8747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8748 aix_use_runtimelinking=yes
8749 break
8750 fi
8751 done
8752 ;;
8753 esac
8754
8755 exp_sym_flag='-bexport'
8756 no_entry_flag='-bnoentry'
8757 fi
8758
8759 # When large executables or shared objects are built, AIX ld can
8760 # have problems creating the table of contents. If linking a library
8761 # or program results in "error TOC overflow" add -mminimal-toc to
8762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8764
8765 archive_cmds=''
8766 hardcode_direct=yes
8767 hardcode_direct_absolute=yes
8768 hardcode_libdir_separator=':'
8769 link_all_deplibs=yes
8770 file_list_spec='${wl}-f,'
8771
8772 if test "$GCC" = yes; then
8773 case $host_os in aix4.[012]|aix4.[012].*)
8774 # We only want to do this on AIX 4.2 and lower, the check
8775 # below for broken collect2 doesn't work under 4.3+
8776 collect2name=`${CC} -print-prog-name=collect2`
8777 if test -f "$collect2name" &&
8778 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8779 then
8780 # We have reworked collect2
8781 :
8782 else
8783 # We have old collect2
8784 hardcode_direct=unsupported
8785 # It fails to find uninstalled libraries when the uninstalled
8786 # path is not listed in the libpath. Setting hardcode_minus_L
8787 # to unsupported forces relinking
8788 hardcode_minus_L=yes
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_libdir_separator=
8791 fi
8792 ;;
8793 esac
8794 shared_flag='-shared'
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag="$shared_flag "'${wl}-G'
8797 fi
8798 else
8799 # not using gcc
8800 if test "$host_cpu" = ia64; then
8801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802 # chokes on -Wl,-G. The following line is correct:
8803 shared_flag='-G'
8804 else
8805 if test "$aix_use_runtimelinking" = yes; then
8806 shared_flag='${wl}-G'
8807 else
8808 shared_flag='${wl}-bM:SRE'
8809 fi
8810 fi
8811 fi
8812
80c6c2cb 8813 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8814 # It seems that -bexpall does not export symbols beginning with
8815 # underscore (_), so it is better to generate a list of symbols to export.
8816 always_export_symbols=yes
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # Warning - without using the other runtime loading flags (-brtl),
8819 # -berok will link without error, but may produce a broken library.
8820 allow_undefined_flag='-berok'
8821 # Determine the default libpath from the value encoded in an
8822 # empty executable.
5213506e 8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8824/* end confdefs.h. */
8825
8826int
8827main ()
8828{
8829
8830 ;
8831 return 0;
8832}
8833_ACEOF
5213506e 8834if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8835
8836lt_aix_libpath_sed='
8837 /Import File Strings/,/^$/ {
8838 /^0/ {
8839 s/^0 *\(.*\)$/\1/
8840 p
8841 }
8842 }'
8843aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844# Check for a 64-bit object if we didn't find anything.
8845if test -z "$aix_libpath"; then
8846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847fi
1cf3d07d 8848fi
5213506e
RW
8849rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8852
8853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8854 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"
1cf3d07d
SE
8855 else
8856 if test "$host_cpu" = ia64; then
8857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8858 allow_undefined_flag="-z nodefs"
8859 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"
8860 else
8861 # Determine the default libpath from the value encoded in an
8862 # empty executable.
5213506e 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8864/* end confdefs.h. */
8865
8866int
8867main ()
8868{
8869
8870 ;
8871 return 0;
8872}
8873_ACEOF
5213506e 8874if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8875
8876lt_aix_libpath_sed='
8877 /Import File Strings/,/^$/ {
8878 /^0/ {
8879 s/^0 *\(.*\)$/\1/
8880 p
8881 }
8882 }'
8883aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884# Check for a 64-bit object if we didn't find anything.
8885if test -z "$aix_libpath"; then
8886 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887fi
1cf3d07d 8888fi
5213506e
RW
8889rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8892
8893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8894 # Warning - without using the other run time loading flags,
8895 # -berok will link without error, but may produce a broken library.
8896 no_undefined_flag=' ${wl}-bernotok'
8897 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
8898 if test "$with_gnu_ld" = yes; then
8899 # We only use this code for GNU lds that support --whole-archive.
8900 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8901 else
8902 # Exported symbols can be pulled into shared objects from archives
8903 whole_archive_flag_spec='$convenience'
8904 fi
1cf3d07d
SE
8905 archive_cmds_need_lc=yes
8906 # This is similar to how AIX traditionally builds its shared libraries.
8907 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'
8908 fi
8909 fi
8910 ;;
8911
8912 amigaos*)
80c6c2cb
PG
8913 case $host_cpu in
8914 powerpc)
8915 # see comment about AmigaOS4 .so support
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds=''
8918 ;;
8919 m68k)
8920 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)'
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_minus_L=yes
8923 ;;
8924 esac
1cf3d07d
SE
8925 ;;
8926
8927 bsdi[45]*)
8928 export_dynamic_flag_spec=-rdynamic
8929 ;;
8930
80c6c2cb 8931 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8932 # When not using gcc, we currently assume that we are using
8933 # Microsoft Visual C++.
8934 # hardcode_libdir_flag_spec is actually meaningless, as there is
8935 # no search path for DLLs.
8936 hardcode_libdir_flag_spec=' '
8937 allow_undefined_flag=unsupported
8938 # Tell ltmain to make .lib files, not .a files.
8939 libext=lib
8940 # Tell ltmain to make .dll files, not .so files.
8941 shrext_cmds=".dll"
8942 # FIXME: Setting linknames here is a bad hack.
43e02a8a 8943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
8944 # The linker will automatically build a .lib file if we build a DLL.
8945 old_archive_from_new_cmds='true'
8946 # FIXME: Should let the user specify the lib program.
8947 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8948 fix_srcfile_path='`cygpath -w "$srcfile"`'
8949 enable_shared_with_static_runtimes=yes
8950 ;;
8951
8952 darwin* | rhapsody*)
1cf3d07d 8953
80c6c2cb
PG
8954
8955 archive_cmds_need_lc=no
8956 hardcode_direct=no
8957 hardcode_automatic=yes
8958 hardcode_shlibpath_var=unsupported
43e02a8a
RW
8959 if test "$lt_cv_ld_force_load" = "yes"; then
8960 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\"`'
8961 else
8962 whole_archive_flag_spec=''
8963 fi
80c6c2cb
PG
8964 link_all_deplibs=yes
8965 allow_undefined_flag="$_lt_dar_allow_undefined"
8966 case $cc_basename in
8967 ifort*) _lt_dar_can_shared=yes ;;
8968 *) _lt_dar_can_shared=$GCC ;;
8969 esac
8970 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 8971 output_verbose_link_cmd=func_echo_all
80c6c2cb
PG
8972 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8973 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8974 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}"
8975 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}"
8976
8977 else
8978 ld_shlibs=no
8979 fi
8980
1cf3d07d
SE
8981 ;;
8982
8983 dgux*)
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='-L$libdir'
8986 hardcode_shlibpath_var=no
8987 ;;
8988
8989 freebsd1*)
8990 ld_shlibs=no
8991 ;;
8992
8993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8994 # support. Future versions do this automatically, but an explicit c++rt0.o
8995 # does not break anything, and helps significantly (at the cost of a little
8996 # extra space).
8997 freebsd2.2*)
8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8999 hardcode_libdir_flag_spec='-R$libdir'
9000 hardcode_direct=yes
9001 hardcode_shlibpath_var=no
9002 ;;
9003
9004 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9005 freebsd2*)
9006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_direct=yes
9008 hardcode_minus_L=yes
9009 hardcode_shlibpath_var=no
9010 ;;
9011
9012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9013 freebsd* | dragonfly*)
9014 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_direct=yes
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 hpux9*)
9021 if test "$GCC" = yes; then
9022 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'
9023 else
9024 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'
9025 fi
9026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9027 hardcode_libdir_separator=:
9028 hardcode_direct=yes
9029
9030 # hardcode_minus_L: Not really in the search PATH,
9031 # but as the default location of the library.
9032 hardcode_minus_L=yes
9033 export_dynamic_flag_spec='${wl}-E'
9034 ;;
9035
9036 hpux10*)
43e02a8a 9037 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9038 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9041 fi
9042 if test "$with_gnu_ld" = no; then
9043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9044 hardcode_libdir_flag_spec_ld='+b $libdir'
9045 hardcode_libdir_separator=:
9046 hardcode_direct=yes
9047 hardcode_direct_absolute=yes
9048 export_dynamic_flag_spec='${wl}-E'
9049 # hardcode_minus_L: Not really in the search PATH,
9050 # but as the default location of the library.
9051 hardcode_minus_L=yes
9052 fi
9053 ;;
9054
9055 hpux11*)
43e02a8a 9056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9057 case $host_cpu in
9058 hppa*64*)
9059 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 ;;
9061 ia64*)
80c6c2cb 9062 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9063 ;;
9064 *)
9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9066 ;;
9067 esac
9068 else
9069 case $host_cpu in
9070 hppa*64*)
9071 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 ;;
9073 ia64*)
9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 *)
43e02a8a
RW
9077
9078 # Older versions of the 11.00 compiler do not understand -b yet
9079 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9081$as_echo_n "checking if $CC understands -b... " >&6; }
9082if test "${lt_cv_prog_compiler__b+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084else
9085 lt_cv_prog_compiler__b=no
9086 save_LDFLAGS="$LDFLAGS"
9087 LDFLAGS="$LDFLAGS -b"
9088 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9090 # The linker can only warn and ignore the option if not recognized
9091 # So say no if there are warnings
9092 if test -s conftest.err; then
9093 # Append any errors to the config.log.
9094 cat conftest.err 1>&5
9095 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9097 if diff conftest.exp conftest.er2 >/dev/null; then
9098 lt_cv_prog_compiler__b=yes
9099 fi
9100 else
9101 lt_cv_prog_compiler__b=yes
9102 fi
9103 fi
9104 $RM -r conftest*
9105 LDFLAGS="$save_LDFLAGS"
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9109$as_echo "$lt_cv_prog_compiler__b" >&6; }
9110
9111if test x"$lt_cv_prog_compiler__b" = xyes; then
9112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9113else
9114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9115fi
9116
1cf3d07d
SE
9117 ;;
9118 esac
9119 fi
9120 if test "$with_gnu_ld" = no; then
9121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122 hardcode_libdir_separator=:
9123
9124 case $host_cpu in
9125 hppa*64*|ia64*)
9126 hardcode_direct=no
9127 hardcode_shlibpath_var=no
9128 ;;
9129 *)
9130 hardcode_direct=yes
9131 hardcode_direct_absolute=yes
9132 export_dynamic_flag_spec='${wl}-E'
9133
9134 # hardcode_minus_L: Not really in the search PATH,
9135 # but as the default location of the library.
9136 hardcode_minus_L=yes
9137 ;;
9138 esac
9139 fi
9140 ;;
9141
9142 irix5* | irix6* | nonstopux*)
9143 if test "$GCC" = yes; then
43e02a8a 9144 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'
1cf3d07d
SE
9145 # Try to use the -exported_symbol ld option, if it does not
9146 # work, assume that -exports_file does not work either and
9147 # implicitly export all symbols.
9148 save_LDFLAGS="$LDFLAGS"
9149 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151/* end confdefs.h. */
1cf3d07d
SE
9152int foo(void) {}
9153_ACEOF
5213506e 9154if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9155 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'
1cf3d07d 9156
1cf3d07d 9157fi
5213506e
RW
9158rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9160 LDFLAGS="$save_LDFLAGS"
9161 else
43e02a8a
RW
9162 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'
9163 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'
1cf3d07d
SE
9164 fi
9165 archive_cmds_need_lc='no'
9166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167 hardcode_libdir_separator=:
9168 inherit_rpath=yes
9169 link_all_deplibs=yes
9170 ;;
9171
9172 netbsd*)
9173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9175 else
9176 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9177 fi
9178 hardcode_libdir_flag_spec='-R$libdir'
9179 hardcode_direct=yes
9180 hardcode_shlibpath_var=no
9181 ;;
9182
9183 newsos6)
9184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9185 hardcode_direct=yes
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 hardcode_libdir_separator=:
9188 hardcode_shlibpath_var=no
9189 ;;
9190
9191 *nto* | *qnx*)
9192 ;;
9193
9194 openbsd*)
80c6c2cb
PG
9195 if test -f /usr/libexec/ld.so; then
9196 hardcode_direct=yes
9197 hardcode_shlibpath_var=no
9198 hardcode_direct_absolute=yes
9199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 9201 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
9203 export_dynamic_flag_spec='${wl}-E'
9204 else
9205 case $host_os in
9206 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9208 hardcode_libdir_flag_spec='-R$libdir'
9209 ;;
9210 *)
9211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9213 ;;
9214 esac
9215 fi
9216 else
9217 ld_shlibs=no
1cf3d07d
SE
9218 fi
9219 ;;
9220
9221 os2*)
9222 hardcode_libdir_flag_spec='-L$libdir'
9223 hardcode_minus_L=yes
9224 allow_undefined_flag=unsupported
43e02a8a 9225 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'
1cf3d07d
SE
9226 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9227 ;;
9228
9229 osf3*)
9230 if test "$GCC" = yes; then
9231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9232 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'
1cf3d07d
SE
9233 else
9234 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9235 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'
1cf3d07d
SE
9236 fi
9237 archive_cmds_need_lc='no'
9238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239 hardcode_libdir_separator=:
9240 ;;
9241
9242 osf4* | osf5*) # as osf3* with the addition of -msym flag
9243 if test "$GCC" = yes; then
9244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9245 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'
1cf3d07d
SE
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 else
9248 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9249 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'
1cf3d07d 9250 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~
43e02a8a 9251 $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'
1cf3d07d
SE
9252
9253 # Both c and cxx compiler support -rpath directly
9254 hardcode_libdir_flag_spec='-rpath $libdir'
9255 fi
9256 archive_cmds_need_lc='no'
9257 hardcode_libdir_separator=:
9258 ;;
9259
9260 solaris*)
9261 no_undefined_flag=' -z defs'
9262 if test "$GCC" = yes; then
9263 wlarc='${wl}'
9264 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9266 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9267 else
9268 case `$CC -V 2>&1` in
9269 *"Compilers 5.0"*)
9270 wlarc=''
9271 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9274 ;;
9275 *)
9276 wlarc='${wl}'
9277 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9279 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9280 ;;
9281 esac
9282 fi
9283 hardcode_libdir_flag_spec='-R$libdir'
9284 hardcode_shlibpath_var=no
9285 case $host_os in
9286 solaris2.[0-5] | solaris2.[0-5].*) ;;
9287 *)
9288 # The compiler driver will combine and reorder linker options,
9289 # but understands `-z linker_flag'. GCC discards it without `$wl',
9290 # but is careful enough not to reorder.
9291 # Supported since Solaris 2.6 (maybe 2.5.1?)
9292 if test "$GCC" = yes; then
9293 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9294 else
9295 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9296 fi
9297 ;;
9298 esac
9299 link_all_deplibs=yes
9300 ;;
9301
9302 sunos4*)
9303 if test "x$host_vendor" = xsequent; then
9304 # Use $CC to link under sequent, because it throws in some extra .o
9305 # files that make .init and .fini sections work.
9306 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9307 else
9308 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9309 fi
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_direct=yes
9312 hardcode_minus_L=yes
9313 hardcode_shlibpath_var=no
9314 ;;
9315
9316 sysv4)
9317 case $host_vendor in
9318 sni)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=yes # is this really true???
9321 ;;
9322 siemens)
9323 ## LD is ld it makes a PLAMLIB
9324 ## CC just makes a GrossModule.
9325 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9326 reload_cmds='$CC -r -o $output$reload_objs'
9327 hardcode_direct=no
9328 ;;
9329 motorola)
9330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9332 ;;
9333 esac
9334 runpath_var='LD_RUN_PATH'
9335 hardcode_shlibpath_var=no
9336 ;;
9337
9338 sysv4.3*)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_shlibpath_var=no
9341 export_dynamic_flag_spec='-Bexport'
9342 ;;
9343
9344 sysv4*MP*)
9345 if test -d /usr/nec; then
9346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_shlibpath_var=no
9348 runpath_var=LD_RUN_PATH
9349 hardcode_runpath_var=yes
9350 ld_shlibs=yes
9351 fi
9352 ;;
9353
9354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9355 no_undefined_flag='${wl}-z,text'
9356 archive_cmds_need_lc=no
9357 hardcode_shlibpath_var=no
9358 runpath_var='LD_RUN_PATH'
9359
9360 if test "$GCC" = yes; then
9361 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 else
9364 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 fi
9367 ;;
9368
9369 sysv5* | sco3.2v5* | sco5v6*)
9370 # Note: We can NOT use -z defs as we might desire, because we do not
9371 # link with -lc, and that would cause any symbols used from libc to
9372 # always be unresolved, which means just about no library would
9373 # ever link correctly. If we're not using GNU ld we use -z text
9374 # though, which does catch some bad symbols but isn't as heavy-handed
9375 # as -z defs.
9376 no_undefined_flag='${wl}-z,text'
9377 allow_undefined_flag='${wl}-z,nodefs'
9378 archive_cmds_need_lc=no
9379 hardcode_shlibpath_var=no
9380 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9381 hardcode_libdir_separator=':'
9382 link_all_deplibs=yes
9383 export_dynamic_flag_spec='${wl}-Bexport'
9384 runpath_var='LD_RUN_PATH'
9385
9386 if test "$GCC" = yes; then
9387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 else
9390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 fi
9393 ;;
9394
9395 uts4*)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_libdir_flag_spec='-L$libdir'
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 *)
9402 ld_shlibs=no
9403 ;;
9404 esac
9405
9406 if test x$host_vendor = xsni; then
9407 case $host in
9408 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9409 export_dynamic_flag_spec='${wl}-Blargedynsym'
9410 ;;
9411 esac
9412 fi
9413 fi
9414
5213506e
RW
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9416$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9417test "$ld_shlibs" = no && can_build_shared=no
9418
9419with_gnu_ld=$with_gnu_ld
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435#
9436# Do we need to explicitly link libc?
9437#
9438case "x$archive_cmds_need_lc" in
9439x|xyes)
9440 # Assume -lc should be added
9441 archive_cmds_need_lc=yes
9442
9443 if test "$enable_shared" = yes && test "$GCC" = yes; then
9444 case $archive_cmds in
9445 *'~'*)
9446 # FIXME: we may have to deal with multi-command sequences.
9447 ;;
9448 '$CC '*)
9449 # Test whether the compiler implicitly links with -lc since on some
9450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9451 # to ld, don't add -lc before -lgcc.
5213506e
RW
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9453$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9454if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9455 $as_echo_n "(cached) " >&6
baafc534
RW
9456else
9457 $RM conftest*
9458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9459
5213506e 9460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9461 (eval $ac_compile) 2>&5
9462 ac_status=$?
5213506e
RW
9463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9465 soname=conftest
9466 lib=conftest
9467 libobjs=conftest.$ac_objext
9468 deplibs=
9469 wl=$lt_prog_compiler_wl
9470 pic_flag=$lt_prog_compiler_pic
9471 compiler_flags=-v
9472 linker_flags=-v
9473 verstring=
9474 output_objdir=.
9475 libname=conftest
9476 lt_save_allow_undefined_flag=$allow_undefined_flag
9477 allow_undefined_flag=
5213506e 9478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9479 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9480 ac_status=$?
5213506e
RW
9481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9482 test $ac_status = 0; }
baafc534
RW
9483 then
9484 lt_cv_archive_cmds_need_lc=no
9485 else
9486 lt_cv_archive_cmds_need_lc=yes
9487 fi
9488 allow_undefined_flag=$lt_save_allow_undefined_flag
9489 else
9490 cat conftest.err 1>&5
9491 fi
9492 $RM conftest*
9493
9494fi
5213506e
RW
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9496$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9497 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9498 ;;
9499 esac
9500 fi
9501 ;;
9502esac
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
5213506e
RW
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9661$as_echo_n "checking dynamic linker characteristics... " >&6; }
80c6c2cb
PG
9662
9663if test "$GCC" = yes; then
1cf3d07d
SE
9664 case $host_os in
9665 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9666 *) lt_awk_arg="/^libraries:/" ;;
9667 esac
43e02a8a
RW
9668 case $host_os in
9669 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9670 *) lt_sed_strip_eq="s,=/,/,g" ;;
9671 esac
9672 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9673 case $lt_search_path_spec in
9674 *\;*)
1cf3d07d
SE
9675 # if the path contains ";" then we assume it to be the separator
9676 # otherwise default to the standard path separator (i.e. ":") - it is
9677 # assumed that no part of a normal pathname contains ";" but that should
9678 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9679 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9680 ;;
9681 *)
9682 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9683 ;;
9684 esac
1cf3d07d
SE
9685 # Ok, now we have the path, separated by spaces, we can step through it
9686 # and add multilib dir if necessary.
9687 lt_tmp_lt_search_path_spec=
9688 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9689 for lt_sys_path in $lt_search_path_spec; do
9690 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9692 else
9693 test -d "$lt_sys_path" && \
9694 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9695 fi
9696 done
43e02a8a 9697 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9698BEGIN {RS=" "; FS="/|\n";} {
9699 lt_foo="";
9700 lt_count=0;
9701 for (lt_i = NF; lt_i > 0; lt_i--) {
9702 if ($lt_i != "" && $lt_i != ".") {
9703 if ($lt_i == "..") {
9704 lt_count++;
9705 } else {
9706 if (lt_count == 0) {
9707 lt_foo="/" $lt_i lt_foo;
9708 } else {
9709 lt_count--;
9710 }
9711 }
9712 }
9713 }
9714 if (lt_foo != "") { lt_freq[lt_foo]++; }
9715 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9716}'`
43e02a8a
RW
9717 # AWK program above erroneously prepends '/' to C:/dos/paths
9718 # for these hosts.
9719 case $host_os in
9720 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9721 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9722 esac
9723 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9724else
9725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9726fi
9727library_names_spec=
9728libname_spec='lib$name'
9729soname_spec=
9730shrext_cmds=".so"
9731postinstall_cmds=
9732postuninstall_cmds=
9733finish_cmds=
9734finish_eval=
9735shlibpath_var=
9736shlibpath_overrides_runpath=unknown
9737version_type=none
9738dynamic_linker="$host_os ld.so"
9739sys_lib_dlsearch_path_spec="/lib /usr/lib"
9740need_lib_prefix=unknown
9741hardcode_into_libs=no
9742
9743# when you set need_version to no, make sure it does not cause -set_version
9744# flags to be left without arguments
9745need_version=unknown
9746
9747case $host_os in
9748aix3*)
9749 version_type=linux
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9751 shlibpath_var=LIBPATH
9752
9753 # AIX 3 has no versioning support, so we append a major version to the name.
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 ;;
9756
95d4f544 9757aix[4-9]*)
1cf3d07d
SE
9758 version_type=linux
9759 need_lib_prefix=no
9760 need_version=no
9761 hardcode_into_libs=yes
9762 if test "$host_cpu" = ia64; then
9763 # AIX 5 supports IA64
9764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 else
9767 # With GCC up to 2.95.x, collect2 would create an import file
9768 # for dependence libraries. The import file would start with
9769 # the line `#! .'. This would cause the generated library to
9770 # depend on `.', always an invalid library. This was fixed in
9771 # development snapshots of GCC prior to 3.0.
9772 case $host_os in
9773 aix4 | aix4.[01] | aix4.[01].*)
9774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9775 echo ' yes '
9776 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9777 :
9778 else
9779 can_build_shared=no
9780 fi
9781 ;;
9782 esac
9783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9784 # soname into executable. Probably we can add versioning support to
9785 # collect2, so additional links can be useful in future.
9786 if test "$aix_use_runtimelinking" = yes; then
9787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9788 # instead of lib<name>.a to let people know that these are not
9789 # typical AIX shared libraries.
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 else
9792 # We preserve .a as extension for shared libraries through AIX4.2
9793 # and later when we are not doing run time linking.
9794 library_names_spec='${libname}${release}.a $libname.a'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 fi
9797 shlibpath_var=LIBPATH
9798 fi
9799 ;;
9800
9801amigaos*)
80c6c2cb
PG
9802 case $host_cpu in
9803 powerpc)
9804 # Since July 2007 AmigaOS4 officially supports .so libraries.
9805 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 ;;
9808 m68k)
1cf3d07d
SE
9809 library_names_spec='$libname.ixlibrary $libname.a'
9810 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9811 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'
80c6c2cb
PG
9812 ;;
9813 esac
1cf3d07d
SE
9814 ;;
9815
9816beos*)
9817 library_names_spec='${libname}${shared_ext}'
9818 dynamic_linker="$host_os ld.so"
9819 shlibpath_var=LIBRARY_PATH
9820 ;;
9821
9822bsdi[45]*)
9823 version_type=linux
9824 need_version=no
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9831 # the default ld.so.conf also contains /usr/contrib/lib and
9832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9833 # libtool to hard-code these into programs
9834 ;;
9835
80c6c2cb 9836cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9837 version_type=windows
9838 shrext_cmds=".dll"
9839 need_version=no
9840 need_lib_prefix=no
9841
80c6c2cb
PG
9842 case $GCC,$host_os in
9843 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9844 library_names_spec='$libname.dll.a'
9845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846 postinstall_cmds='base_file=`basename \${file}`~
9847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848 dldir=$destdir/`dirname \$dlpath`~
9849 test -d \$dldir || mkdir -p \$dldir~
9850 $install_prog $dir/$dlname \$dldir/$dlname~
9851 chmod a+x \$dldir/$dlname~
9852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9854 fi'
9855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856 dlpath=$dir/\$dldll~
9857 $RM \$dlpath'
9858 shlibpath_overrides_runpath=yes
9859
9860 case $host_os in
9861 cygwin*)
9862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9864
9865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9866 ;;
80c6c2cb 9867 mingw* | cegcc*)
1cf3d07d
SE
9868 # MinGW DLLs use traditional 'lib' prefix
9869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
9870 ;;
9871 pw32*)
9872 # pw32 DLLs use 'pw' prefix rather than 'lib'
9873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 ;;
9875 esac
9876 ;;
9877
9878 *)
9879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9880 ;;
9881 esac
9882 dynamic_linker='Win32 ld.exe'
9883 # FIXME: first we should search . and the directory the executable is in
9884 shlibpath_var=PATH
9885 ;;
9886
9887darwin* | rhapsody*)
9888 dynamic_linker="$host_os dyld"
9889 version_type=darwin
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9893 soname_spec='${libname}${release}${major}$shared_ext'
9894 shlibpath_overrides_runpath=yes
9895 shlibpath_var=DYLD_LIBRARY_PATH
9896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9897
9898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9900 ;;
9901
9902dgux*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 ;;
9910
9911freebsd1*)
9912 dynamic_linker=no
9913 ;;
9914
9915freebsd* | dragonfly*)
9916 # DragonFly does not have aout. When/if they implement a new
9917 # versioning mechanism, adjust this.
9918 if test -x /usr/bin/objformat; then
9919 objformat=`/usr/bin/objformat`
9920 else
9921 case $host_os in
9922 freebsd[123]*) objformat=aout ;;
9923 *) objformat=elf ;;
9924 esac
9925 fi
9926 version_type=freebsd-$objformat
9927 case $version_type in
9928 freebsd-elf*)
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9930 need_version=no
9931 need_lib_prefix=no
9932 ;;
9933 freebsd-*)
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9935 need_version=yes
9936 ;;
9937 esac
9938 shlibpath_var=LD_LIBRARY_PATH
9939 case $host_os in
9940 freebsd2*)
9941 shlibpath_overrides_runpath=yes
9942 ;;
9943 freebsd3.[01]* | freebsdelf3.[01]*)
9944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9946 ;;
9947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 ;;
9952 *) # from 4.6 on, and DragonFly
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9955 ;;
9956 esac
9957 ;;
9958
9959gnu*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 hardcode_into_libs=yes
9967 ;;
9968
43e02a8a
RW
9969haiku*)
9970 version_type=linux
9971 need_lib_prefix=no
9972 need_version=no
9973 dynamic_linker="$host_os runtime_loader"
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9979 hardcode_into_libs=yes
9980 ;;
9981
1cf3d07d
SE
9982hpux9* | hpux10* | hpux11*)
9983 # Give a soname corresponding to the major version so that dld.sl refuses to
9984 # link against other versions.
9985 version_type=sunos
9986 need_lib_prefix=no
9987 need_version=no
9988 case $host_cpu in
9989 ia64*)
9990 shrext_cmds='.so'
9991 hardcode_into_libs=yes
9992 dynamic_linker="$host_os dld.so"
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 if test "X$HPUX_IA64_MODE" = X32; then
9998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9999 else
10000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10001 fi
10002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10003 ;;
10004 hppa*64*)
10005 shrext_cmds='.sl'
10006 hardcode_into_libs=yes
10007 dynamic_linker="$host_os dld.sl"
10008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10014 ;;
10015 *)
10016 shrext_cmds='.sl'
10017 dynamic_linker="$host_os dld.sl"
10018 shlibpath_var=SHLIB_PATH
10019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 ;;
10023 esac
43e02a8a 10024 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10025 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10026 # or fails outright, so override atomically:
10027 install_override_mode=555
1cf3d07d 10028 ;;
675cdab3 10029
1cf3d07d
SE
10030interix[3-9]*)
10031 version_type=linux
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 shlibpath_overrides_runpath=no
10039 hardcode_into_libs=yes
3ed8e5b6 10040 ;;
675cdab3 10041
1cf3d07d
SE
10042irix5* | irix6* | nonstopux*)
10043 case $host_os in
10044 nonstopux*) version_type=nonstopux ;;
10045 *)
10046 if test "$lt_cv_prog_gnu_ld" = yes; then
10047 version_type=linux
10048 else
10049 version_type=irix
10050 fi ;;
10051 esac
10052 need_lib_prefix=no
10053 need_version=no
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10056 case $host_os in
10057 irix5* | nonstopux*)
10058 libsuff= shlibsuff=
10059 ;;
10060 *)
10061 case $LD in # libtool.m4 will add one of these switches to LD
10062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10063 libsuff= shlibsuff= libmagic=32-bit;;
10064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10065 libsuff=32 shlibsuff=N32 libmagic=N32;;
10066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10068 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 10069 esac
1cf3d07d
SE
10070 ;;
10071 esac
10072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10073 shlibpath_overrides_runpath=no
10074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10076 hardcode_into_libs=yes
3ed8e5b6 10077 ;;
675cdab3 10078
1cf3d07d
SE
10079# No shared lib support for Linux oldld, aout, or coff.
10080linux*oldld* | linux*aout* | linux*coff*)
10081 dynamic_linker=no
10082 ;;
3ed8e5b6 10083
1cf3d07d 10084# This must be Linux ELF.
7a9d3fe8 10085linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
baafc534 10094
1cf3d07d 10095 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10096 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
baafc534
RW
10098else
10099 lt_cv_shlibpath_overrides_runpath=no
10100 save_LDFLAGS=$LDFLAGS
10101 save_libdir=$libdir
10102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
10105/* end confdefs.h. */
10106
10107int
10108main ()
10109{
675cdab3 10110
3ed8e5b6
AT
10111 ;
10112 return 0;
10113}
10114_ACEOF
5213506e
RW
10115if ac_fn_c_try_link "$LINENO"; then :
10116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10117 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10118fi
675cdab3 10119fi
5213506e
RW
10120rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10122 LDFLAGS=$save_LDFLAGS
10123 libdir=$save_libdir
10124
10125fi
10126
10127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10128
10129 # This implies no fast_install, which is unacceptable.
10130 # Some rework will be needed to allow for fast_install
10131 # before this can be enabled.
10132 hardcode_into_libs=yes
10133
10134 # Append ld.so.conf contents to the search path
10135 if test -f /etc/ld.so.conf; then
43e02a8a 10136 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' ' '`
1cf3d07d
SE
10137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10138 fi
675cdab3 10139
1cf3d07d
SE
10140 # We used to test for /lib/ld.so.1 and disable shared libraries on
10141 # powerpc, because MkLinux only supported shared libraries with the
10142 # GNU dynamic linker. Since this was broken with cross compilers,
10143 # most powerpc-linux boxes support dynamic linking these days and
10144 # people can always --disable-shared, the test was removed, and we
10145 # assume the GNU/Linux dynamic linker is in use.
10146 dynamic_linker='GNU/Linux ld.so'
10147 ;;
10148
10149netbsd*)
10150 version_type=sunos
10151 need_lib_prefix=no
10152 need_version=no
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10156 dynamic_linker='NetBSD (a.out) ld.so'
10157 else
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 10161 fi
1cf3d07d
SE
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=yes
10164 hardcode_into_libs=yes
3ed8e5b6 10165 ;;
675cdab3 10166
1cf3d07d
SE
10167newsos6)
10168 version_type=linux
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=yes
10172 ;;
675cdab3 10173
1cf3d07d
SE
10174*nto* | *qnx*)
10175 version_type=qnx
10176 need_lib_prefix=no
10177 need_version=no
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=no
10182 hardcode_into_libs=yes
10183 dynamic_linker='ldqnx.so'
10184 ;;
675cdab3 10185
1cf3d07d
SE
10186openbsd*)
10187 version_type=sunos
10188 sys_lib_dlsearch_path_spec="/usr/lib"
10189 need_lib_prefix=no
10190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10191 case $host_os in
10192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10193 *) need_version=no ;;
10194 esac
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199 case $host_os in
10200 openbsd2.[89] | openbsd2.[89].*)
10201 shlibpath_overrides_runpath=no
10202 ;;
10203 *)
10204 shlibpath_overrides_runpath=yes
10205 ;;
10206 esac
10207 else
10208 shlibpath_overrides_runpath=yes
10209 fi
10210 ;;
675cdab3 10211
1cf3d07d
SE
10212os2*)
10213 libname_spec='$name'
10214 shrext_cmds=".dll"
10215 need_lib_prefix=no
10216 library_names_spec='$libname${shared_ext} $libname.a'
10217 dynamic_linker='OS/2 ld.exe'
10218 shlibpath_var=LIBPATH
10219 ;;
675cdab3 10220
1cf3d07d
SE
10221osf3* | osf4* | osf5*)
10222 version_type=osf
10223 need_lib_prefix=no
10224 need_version=no
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10230 ;;
675cdab3 10231
1cf3d07d
SE
10232rdos*)
10233 dynamic_linker=no
10234 ;;
10235
10236solaris*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes
10244 hardcode_into_libs=yes
10245 # ldd complains unless libraries are executable
10246 postinstall_cmds='chmod +x $lib'
10247 ;;
10248
10249sunos4*)
10250 version_type=sunos
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=yes
10255 if test "$with_gnu_ld" = yes; then
10256 need_lib_prefix=no
10257 fi
10258 need_version=yes
10259 ;;
10260
10261sysv4 | sysv4.3*)
10262 version_type=linux
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 case $host_vendor in
10267 sni)
10268 shlibpath_overrides_runpath=no
10269 need_lib_prefix=no
10270 runpath_var=LD_RUN_PATH
3ed8e5b6 10271 ;;
1cf3d07d
SE
10272 siemens)
10273 need_lib_prefix=no
3ed8e5b6 10274 ;;
1cf3d07d
SE
10275 motorola)
10276 need_lib_prefix=no
10277 need_version=no
10278 shlibpath_overrides_runpath=no
10279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10280 ;;
10281 esac
10282 ;;
10283
10284sysv4*MP*)
10285 if test -d /usr/nec ;then
10286 version_type=linux
10287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10288 soname_spec='$libname${shared_ext}.$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 fi
10291 ;;
10292
10293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10294 version_type=freebsd-elf
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 if test "$with_gnu_ld" = yes; then
10303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 10304 else
1cf3d07d
SE
10305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10306 case $host_os in
10307 sco3.2v5*)
10308 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10309 ;;
10310 esac
675cdab3 10311 fi
1cf3d07d
SE
10312 sys_lib_dlsearch_path_spec='/usr/lib'
10313 ;;
10314
10315tpf*)
10316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
80c6c2cb 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=no
10323 hardcode_into_libs=yes
10324 ;;
10325
10326uts4*)
10327 version_type=linux
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 ;;
10332
10333*)
10334 dynamic_linker=no
10335 ;;
10336esac
5213506e
RW
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10338$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10339test "$dynamic_linker" = no && can_build_shared=no
10340
10341variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10342if test "$GCC" = yes; then
10343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
10344fi
10345
80c6c2cb
PG
10346if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10347 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10348fi
10349if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10350 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10351fi
10352
675cdab3 10353
1cf3d07d
SE
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
43e02a8a
RW
10433
10434
10435
10436
10437
1cf3d07d
SE
10438
10439
10440
10441
10442
10443
5213506e
RW
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10445$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10446hardcode_action=
10447if test -n "$hardcode_libdir_flag_spec" ||
10448 test -n "$runpath_var" ||
10449 test "X$hardcode_automatic" = "Xyes" ; then
10450
10451 # We can hardcode non-existent directories.
10452 if test "$hardcode_direct" != no &&
10453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10454 # have to relink, otherwise we might link with an installed library
10455 # when we should be linking with a yet-to-be-installed one
10456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10457 test "$hardcode_minus_L" != no; then
10458 # Linking always hardcodes the temporary library directory.
10459 hardcode_action=relink
10460 else
10461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10462 hardcode_action=immediate
63e5e3e0 10463 fi
3ed8e5b6 10464else
1cf3d07d
SE
10465 # We cannot hardcode anything, or else we can only hardcode existing
10466 # directories.
10467 hardcode_action=unsupported
675cdab3 10468fi
5213506e
RW
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10470$as_echo "$hardcode_action" >&6; }
63e5e3e0 10471
1cf3d07d
SE
10472if test "$hardcode_action" = relink ||
10473 test "$inherit_rpath" = yes; then
10474 # Fast installation is not supported
10475 enable_fast_install=no
10476elif test "$shlibpath_overrides_runpath" = yes ||
10477 test "$enable_shared" = no; then
10478 # Fast installation is not necessary
10479 enable_fast_install=needless
10480fi
675cdab3 10481
63e5e3e0 10482
63e5e3e0 10483
2f7bf5b7 10484
63e5e3e0 10485
63e5e3e0 10486
1cf3d07d
SE
10487 if test "x$enable_dlopen" != xyes; then
10488 enable_dlopen=unknown
10489 enable_dlopen_self=unknown
10490 enable_dlopen_self_static=unknown
10491else
10492 lt_cv_dlopen=no
10493 lt_cv_dlopen_libs=
63e5e3e0 10494
1cf3d07d
SE
10495 case $host_os in
10496 beos*)
10497 lt_cv_dlopen="load_add_on"
10498 lt_cv_dlopen_libs=
10499 lt_cv_dlopen_self=yes
10500 ;;
63e5e3e0 10501
80c6c2cb 10502 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10503 lt_cv_dlopen="LoadLibrary"
10504 lt_cv_dlopen_libs=
10505 ;;
63e5e3e0 10506
1cf3d07d
SE
10507 cygwin*)
10508 lt_cv_dlopen="dlopen"
10509 lt_cv_dlopen_libs=
10510 ;;
63e5e3e0 10511
1cf3d07d
SE
10512 darwin*)
10513 # if libdl is installed we need to link against it
5213506e
RW
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10515$as_echo_n "checking for dlopen in -ldl... " >&6; }
10516if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
675cdab3 10518else
1cf3d07d
SE
10519 ac_check_lib_save_LIBS=$LIBS
10520LIBS="-ldl $LIBS"
5213506e 10521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 10522/* end confdefs.h. */
3ed8e5b6 10523
5213506e
RW
10524/* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10527#ifdef __cplusplus
10528extern "C"
10529#endif
1cf3d07d
SE
10530char dlopen ();
10531int
10532main ()
10533{
5213506e 10534return dlopen ();
1cf3d07d
SE
10535 ;
10536 return 0;
10537}
10538_ACEOF
5213506e 10539if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10540 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 10541else
5213506e 10542 ac_cv_lib_dl_dlopen=no
675cdab3 10543fi
5213506e
RW
10544rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10546LIBS=$ac_check_lib_save_LIBS
10547fi
5213506e
RW
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10549$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10550if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10552else
63e5e3e0 10553
1cf3d07d
SE
10554 lt_cv_dlopen="dyld"
10555 lt_cv_dlopen_libs=
10556 lt_cv_dlopen_self=yes
bbf3057b 10557
1cf3d07d 10558fi
2f7bf5b7 10559
1cf3d07d 10560 ;;
2f7bf5b7 10561
1cf3d07d 10562 *)
5213506e
RW
10563 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10564if test "x$ac_cv_func_shl_load" = x""yes; then :
10565 lt_cv_dlopen="shl_load"
3ed8e5b6 10566else
5213506e
RW
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10568$as_echo_n "checking for shl_load in -ldld... " >&6; }
10569if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571else
10572 ac_check_lib_save_LIBS=$LIBS
10573LIBS="-ldld $LIBS"
10574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10575/* end confdefs.h. */
1cf3d07d 10576
5213506e
RW
10577/* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
1cf3d07d 10579 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10580#ifdef __cplusplus
10581extern "C"
10582#endif
1cf3d07d
SE
10583char shl_load ();
10584int
10585main ()
10586{
5213506e 10587return shl_load ();
1cf3d07d
SE
10588 ;
10589 return 0;
10590}
c9b93377 10591_ACEOF
5213506e 10592if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10593 ac_cv_lib_dld_shl_load=yes
c9b93377 10594else
5213506e 10595 ac_cv_lib_dld_shl_load=no
3eee102e 10596fi
5213506e
RW
10597rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10599LIBS=$ac_check_lib_save_LIBS
bbf3057b 10600fi
5213506e
RW
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10602$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10603if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
80c6c2cb 10604 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10605else
5213506e
RW
10606 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10607if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10608 lt_cv_dlopen="dlopen"
10609else
5213506e
RW
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10611$as_echo_n "checking for dlopen in -ldl... " >&6; }
10612if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10614else
10615 ac_check_lib_save_LIBS=$LIBS
10616LIBS="-ldl $LIBS"
5213506e 10617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10618/* end confdefs.h. */
1cf3d07d 10619
5213506e
RW
10620/* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10623#ifdef __cplusplus
10624extern "C"
10625#endif
1cf3d07d
SE
10626char dlopen ();
10627int
10628main ()
10629{
5213506e 10630return dlopen ();
1cf3d07d
SE
10631 ;
10632 return 0;
10633}
3ed8e5b6 10634_ACEOF
5213506e 10635if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10636 ac_cv_lib_dl_dlopen=yes
c9b93377 10637else
5213506e 10638 ac_cv_lib_dl_dlopen=no
c9b93377 10639fi
5213506e
RW
10640rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10642LIBS=$ac_check_lib_save_LIBS
c9b93377 10643fi
5213506e
RW
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10645$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10646if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 10647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 10648else
5213506e
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10650$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10651if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
c9b93377 10653else
1cf3d07d
SE
10654 ac_check_lib_save_LIBS=$LIBS
10655LIBS="-lsvld $LIBS"
5213506e 10656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10657/* end confdefs.h. */
c9b93377 10658
5213506e
RW
10659/* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10662#ifdef __cplusplus
10663extern "C"
10664#endif
1cf3d07d 10665char dlopen ();
c9b93377
JB
10666int
10667main ()
10668{
5213506e 10669return dlopen ();
c9b93377
JB
10670 ;
10671 return 0;
10672}
10673_ACEOF
5213506e 10674if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10675 ac_cv_lib_svld_dlopen=yes
c9b93377 10676else
5213506e 10677 ac_cv_lib_svld_dlopen=no
c9b93377 10678fi
5213506e
RW
10679rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10681LIBS=$ac_check_lib_save_LIBS
c9b93377 10682fi
5213506e
RW
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10684$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10685if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d 10686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 10687else
5213506e
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10689$as_echo_n "checking for dld_link in -ldld... " >&6; }
10690if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
c9b93377 10692else
1cf3d07d
SE
10693 ac_check_lib_save_LIBS=$LIBS
10694LIBS="-ldld $LIBS"
5213506e 10695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10696/* end confdefs.h. */
c9b93377 10697
5213506e
RW
10698/* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10701#ifdef __cplusplus
10702extern "C"
10703#endif
1cf3d07d 10704char dld_link ();
c9b93377
JB
10705int
10706main ()
10707{
5213506e 10708return dld_link ();
1cf3d07d
SE
10709 ;
10710 return 0;
c9b93377
JB
10711}
10712_ACEOF
5213506e 10713if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10714 ac_cv_lib_dld_dld_link=yes
c9b93377 10715else
5213506e 10716 ac_cv_lib_dld_dld_link=no
c9b93377 10717fi
5213506e
RW
10718rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10720LIBS=$ac_check_lib_save_LIBS
c9b93377 10721fi
5213506e
RW
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10723$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10724if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
80c6c2cb 10725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 10726fi
1cf3d07d
SE
10727
10728
c9b93377 10729fi
c9b93377 10730
c9b93377
JB
10731
10732fi
10733
c9b93377 10734
1cf3d07d 10735fi
c9b93377
JB
10736
10737
1cf3d07d 10738fi
c9b93377
JB
10739
10740
1cf3d07d 10741fi
c9b93377 10742
1cf3d07d
SE
10743 ;;
10744 esac
c9b93377 10745
1cf3d07d
SE
10746 if test "x$lt_cv_dlopen" != xno; then
10747 enable_dlopen=yes
10748 else
10749 enable_dlopen=no
10750 fi
c9b93377 10751
1cf3d07d
SE
10752 case $lt_cv_dlopen in
10753 dlopen)
10754 save_CPPFLAGS="$CPPFLAGS"
10755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 10756
1cf3d07d
SE
10757 save_LDFLAGS="$LDFLAGS"
10758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10759
10760 save_LIBS="$LIBS"
10761 LIBS="$lt_cv_dlopen_libs $LIBS"
10762
5213506e
RW
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10764$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10765if test "${lt_cv_dlopen_self+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
c9b93377 10767else
1cf3d07d
SE
10768 if test "$cross_compiling" = yes; then :
10769 lt_cv_dlopen_self=cross
10770else
10771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10772 lt_status=$lt_dlunknown
10773 cat > conftest.$ac_ext <<_LT_EOF
43e02a8a 10774#line 10774 "configure"
1cf3d07d 10775#include "confdefs.h"
c9b93377 10776
1cf3d07d
SE
10777#if HAVE_DLFCN_H
10778#include <dlfcn.h>
10779#endif
10780
10781#include <stdio.h>
10782
10783#ifdef RTLD_GLOBAL
10784# define LT_DLGLOBAL RTLD_GLOBAL
10785#else
10786# ifdef DL_GLOBAL
10787# define LT_DLGLOBAL DL_GLOBAL
10788# else
10789# define LT_DLGLOBAL 0
10790# endif
10791#endif
10792
10793/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10794 find out it does not work in some platform. */
10795#ifndef LT_DLLAZY_OR_NOW
10796# ifdef RTLD_LAZY
10797# define LT_DLLAZY_OR_NOW RTLD_LAZY
10798# else
10799# ifdef DL_LAZY
10800# define LT_DLLAZY_OR_NOW DL_LAZY
10801# else
10802# ifdef RTLD_NOW
10803# define LT_DLLAZY_OR_NOW RTLD_NOW
10804# else
10805# ifdef DL_NOW
10806# define LT_DLLAZY_OR_NOW DL_NOW
10807# else
10808# define LT_DLLAZY_OR_NOW 0
10809# endif
10810# endif
10811# endif
10812# endif
10813#endif
10814
43e02a8a
RW
10815/* When -fvisbility=hidden is used, assume the code has been annotated
10816 correspondingly for the symbols needed. */
10817#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10818void fnord () __attribute__((visibility("default")));
10819#endif
10820
10821void fnord () { int i=42; }
1cf3d07d
SE
10822int main ()
10823{
10824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10825 int status = $lt_dlunknown;
10826
10827 if (self)
10828 {
10829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10830 else
10831 {
10832 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10833 else puts (dlerror ());
10834 }
1cf3d07d
SE
10835 /* dlclose (self); */
10836 }
10837 else
10838 puts (dlerror ());
10839
80c6c2cb 10840 return status;
1cf3d07d
SE
10841}
10842_LT_EOF
5213506e 10843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10844 (eval $ac_link) 2>&5
c9b93377 10845 ac_status=$?
5213506e
RW
10846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10848 (./conftest; exit; ) >&5 2>/dev/null
10849 lt_status=$?
10850 case x$lt_status in
10851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10853 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10854 esac
10855 else :
10856 # compilation failed
10857 lt_cv_dlopen_self=no
10858 fi
10859fi
10860rm -fr conftest*
10861
10862
10863fi
5213506e
RW
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10865$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
10866
10867 if test "x$lt_cv_dlopen_self" = xyes; then
10868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10870$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10871if test "${lt_cv_dlopen_self_static+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10873else
10874 if test "$cross_compiling" = yes; then :
10875 lt_cv_dlopen_self_static=cross
10876else
10877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10878 lt_status=$lt_dlunknown
10879 cat > conftest.$ac_ext <<_LT_EOF
43e02a8a 10880#line 10880 "configure"
1cf3d07d
SE
10881#include "confdefs.h"
10882
10883#if HAVE_DLFCN_H
10884#include <dlfcn.h>
10885#endif
10886
10887#include <stdio.h>
10888
10889#ifdef RTLD_GLOBAL
10890# define LT_DLGLOBAL RTLD_GLOBAL
10891#else
10892# ifdef DL_GLOBAL
10893# define LT_DLGLOBAL DL_GLOBAL
10894# else
10895# define LT_DLGLOBAL 0
10896# endif
10897#endif
10898
10899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10900 find out it does not work in some platform. */
10901#ifndef LT_DLLAZY_OR_NOW
10902# ifdef RTLD_LAZY
10903# define LT_DLLAZY_OR_NOW RTLD_LAZY
10904# else
10905# ifdef DL_LAZY
10906# define LT_DLLAZY_OR_NOW DL_LAZY
10907# else
10908# ifdef RTLD_NOW
10909# define LT_DLLAZY_OR_NOW RTLD_NOW
10910# else
10911# ifdef DL_NOW
10912# define LT_DLLAZY_OR_NOW DL_NOW
10913# else
10914# define LT_DLLAZY_OR_NOW 0
10915# endif
10916# endif
10917# endif
10918# endif
10919#endif
10920
43e02a8a
RW
10921/* When -fvisbility=hidden is used, assume the code has been annotated
10922 correspondingly for the symbols needed. */
10923#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10924void fnord () __attribute__((visibility("default")));
10925#endif
10926
10927void fnord () { int i=42; }
1cf3d07d
SE
10928int main ()
10929{
10930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10931 int status = $lt_dlunknown;
10932
10933 if (self)
10934 {
10935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10936 else
10937 {
10938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10939 else puts (dlerror ());
10940 }
1cf3d07d
SE
10941 /* dlclose (self); */
10942 }
10943 else
10944 puts (dlerror ());
10945
80c6c2cb 10946 return status;
1cf3d07d
SE
10947}
10948_LT_EOF
5213506e 10949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10950 (eval $ac_link) 2>&5
c9b93377 10951 ac_status=$?
5213506e
RW
10952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10954 (./conftest; exit; ) >&5 2>/dev/null
10955 lt_status=$?
10956 case x$lt_status in
10957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10959 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10960 esac
10961 else :
10962 # compilation failed
10963 lt_cv_dlopen_self_static=no
10964 fi
10965fi
10966rm -fr conftest*
10967
10968
10969fi
5213506e
RW
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10971$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
10972 fi
10973
10974 CPPFLAGS="$save_CPPFLAGS"
10975 LDFLAGS="$save_LDFLAGS"
10976 LIBS="$save_LIBS"
10977 ;;
10978 esac
10979
10980 case $lt_cv_dlopen_self in
10981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10982 *) enable_dlopen_self=unknown ;;
10983 esac
10984
10985 case $lt_cv_dlopen_self_static in
10986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10987 *) enable_dlopen_self_static=unknown ;;
10988 esac
10989fi
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007striplib=
11008old_striplib=
5213506e
RW
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11010$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11011if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015$as_echo "yes" >&6; }
1cf3d07d
SE
11016else
11017# FIXME - insert some real tests, host_os isn't really good enough
11018 case $host_os in
11019 darwin*)
11020 if test -n "$STRIP" ; then
11021 striplib="$STRIP -x"
11022 old_striplib="$STRIP -S"
5213506e
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11024$as_echo "yes" >&6; }
1cf3d07d 11025 else
5213506e
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
1cf3d07d
SE
11028 fi
11029 ;;
11030 *)
5213506e
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
1cf3d07d
SE
11033 ;;
11034 esac
11035fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048 # Report which library types will actually be built
5213506e
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11050$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11052$as_echo "$can_build_shared" >&6; }
1cf3d07d 11053
5213506e
RW
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11055$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11056 test "$can_build_shared" = "no" && enable_shared=no
11057
11058 # On AIX, shared libraries and static libraries use the same namespace, and
11059 # are all built from PIC.
11060 case $host_os in
11061 aix3*)
11062 test "$enable_shared" = yes && enable_static=no
11063 if test -n "$RANLIB"; then
11064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11065 postinstall_cmds='$RANLIB $lib'
11066 fi
11067 ;;
11068
95d4f544 11069 aix[4-9]*)
1cf3d07d
SE
11070 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11071 test "$enable_shared" = yes && enable_static=no
11072 fi
11073 ;;
11074 esac
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11076$as_echo "$enable_shared" >&6; }
1cf3d07d 11077
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11079$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11080 # Make sure either enable_shared or enable_static is yes.
11081 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11083$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11084
11085
11086
11087
11088fi
11089ac_ext=c
11090ac_cpp='$CPP $CPPFLAGS'
11091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11093ac_compiler_gnu=$ac_cv_c_compiler_gnu
11094
11095CC="$lt_save_CC"
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
5213506e 11109 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11110
11111
11112
11113
11114# Only expand once:
11115
11116
11117
5213506e
RW
11118
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11120$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11121 # Check whether --enable-maintainer-mode was given.
11122if test "${enable_maintainer_mode+set}" = set; then :
11123 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
c9b93377 11124else
1cf3d07d 11125 USE_MAINTAINER_MODE=no
5213506e 11126fi
c9b93377 11127
5213506e
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11129$as_echo "$USE_MAINTAINER_MODE" >&6; }
11130 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11131 MAINTAINER_MODE_TRUE=
11132 MAINTAINER_MODE_FALSE='#'
11133else
11134 MAINTAINER_MODE_TRUE='#'
11135 MAINTAINER_MODE_FALSE=
c9b93377
JB
11136fi
11137
1cf3d07d
SE
11138 MAINT=$MAINTAINER_MODE_TRUE
11139
c9b93377
JB
11140
11141
c9b93377 11142for ac_header in sys/mman.h
5213506e
RW
11143do :
11144 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11145if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
c9b93377 11146 cat >>confdefs.h <<_ACEOF
5213506e 11147#define HAVE_SYS_MMAN_H 1
c9b93377
JB
11148_ACEOF
11149
11150fi
11151
11152done
11153
c9b93377 11154for ac_func in mmap
5213506e
RW
11155do :
11156 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11157if test "x$ac_cv_func_mmap" = x""yes; then :
11158 cat >>confdefs.h <<_ACEOF
11159#define HAVE_MMAP 1
c9b93377 11160_ACEOF
c9b93377 11161
5213506e
RW
11162fi
11163done
c9b93377 11164
c9b93377 11165
5213506e
RW
11166ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11167if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11168 libffi_header_sys_mman_h=yes
11169else
11170 libffi_header_sys_mman_h=no
11171fi
c9b93377 11172
c9b93377 11173
5213506e
RW
11174ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11175if test "x$ac_cv_func_mmap" = x""yes; then :
11176 libffi_func_mmap=yes
c9b93377 11177else
5213506e 11178 libffi_func_mmap=no
4d447364
MR
11179fi
11180
11181if test "$libffi_header_sys_mman_h" != yes \
11182 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
11183 ac_cv_func_mmap_file=no
11184 ac_cv_func_mmap_dev_zero=no
11185 ac_cv_func_mmap_anon=no
11186else
5213506e
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11188$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11189if test "${ac_cv_func_mmap_file+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
c9b93377
JB
11191else
11192 # Add a system to this blacklist if
11193 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11194 # memory area containing the same data that you'd get if you applied
11195 # read() to the same fd. The only system known to have a problem here
11196 # is VMS, where text files have record structure.
11197 case "$host_os" in
11198 vms* | ultrix*)
11199 ac_cv_func_mmap_file=no ;;
11200 *)
11201 ac_cv_func_mmap_file=yes;;
11202 esac
11203fi
5213506e
RW
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11205$as_echo "$ac_cv_func_mmap_file" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11207$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11208if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
c9b93377
JB
11210else
11211 # Add a system to this blacklist if it has mmap() but /dev/zero
11212 # does not exist, or if mmapping /dev/zero does not give anonymous
11213 # zeroed pages with both the following properties:
11214 # 1. If you map N consecutive pages in with one call, and then
11215 # unmap any subset of those pages, the pages that were not
11216 # explicitly unmapped remain accessible.
11217 # 2. If you map two adjacent blocks of memory and then unmap them
11218 # both at once, they must both go away.
11219 # Systems known to be in this category are Windows (all variants),
11220 # VMS, and Darwin.
11221 case "$host_os" in
11222 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11223 ac_cv_func_mmap_dev_zero=no ;;
11224 *)
11225 ac_cv_func_mmap_dev_zero=yes;;
11226 esac
11227fi
5213506e
RW
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11229$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
c9b93377
JB
11230
11231 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5213506e
RW
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11233$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11234if test "${ac_cv_decl_map_anon+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
c9b93377 11236else
5213506e 11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377
JB
11238/* end confdefs.h. */
11239#include <sys/types.h>
11240#include <sys/mman.h>
11241#include <unistd.h>
11242
11243#ifndef MAP_ANONYMOUS
11244#define MAP_ANONYMOUS MAP_ANON
11245#endif
11246
11247int
11248main ()
11249{
11250int n = MAP_ANONYMOUS;
11251 ;
11252 return 0;
11253}
11254_ACEOF
5213506e 11255if ac_fn_c_try_compile "$LINENO"; then :
c9b93377
JB
11256 ac_cv_decl_map_anon=yes
11257else
5213506e 11258 ac_cv_decl_map_anon=no
c9b93377 11259fi
5213506e 11260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9b93377 11261fi
5213506e
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11263$as_echo "$ac_cv_decl_map_anon" >&6; }
c9b93377
JB
11264
11265 if test $ac_cv_decl_map_anon = no; then
11266 ac_cv_func_mmap_anon=no
11267 else
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11269$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11270if test "${ac_cv_func_mmap_anon+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
c9b93377
JB
11272else
11273 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11274 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11275 # doesn't give anonymous zeroed pages with the same properties listed
11276 # above for use of /dev/zero.
11277 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11278 case "$host_os" in
11279 vms* | cygwin* | pe | mingw* | sco* | udk* )
11280 ac_cv_func_mmap_anon=no ;;
11281 *)
11282 ac_cv_func_mmap_anon=yes;;
11283 esac
11284fi
5213506e
RW
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11286$as_echo "$ac_cv_func_mmap_anon" >&6; }
c9b93377
JB
11287 fi
11288fi
11289
11290if test $ac_cv_func_mmap_file = yes; then
11291
5213506e 11292$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
c9b93377
JB
11293
11294fi
11295if test $ac_cv_func_mmap_dev_zero = yes; then
11296
5213506e 11297$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
c9b93377
JB
11298
11299fi
11300if test $ac_cv_func_mmap_anon = yes; then
11301
5213506e 11302$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
c9b93377
JB
11303
11304fi
11305
11306
5213506e 11307 if test -d $srcdir/testsuite; then
c9b93377
JB
11308 TESTSUBDIR_TRUE=
11309 TESTSUBDIR_FALSE='#'
11310else
11311 TESTSUBDIR_TRUE='#'
11312 TESTSUBDIR_FALSE=
11313fi
11314
11315
11316TARGETDIR="unknown"
11317case "$host" in
bf8da5fc
RH
11318 alpha*-*-*)
11319 TARGET=ALPHA; TARGETDIR=alpha;
11320 # Support 128-bit long double, changable via command-line switch.
11321 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11322 ;;
11323
11324 arm*-*-*)
11325 TARGET=ARM; TARGETDIR=arm
11326 ;;
11327
2e250fa2
BK
11328 amd64-*-freebsd*)
11329 TARGET=X86_64; TARGETDIR=x86
11330 ;;
11331
bf8da5fc
RH
11332 cris-*-*)
11333 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11334 ;;
11335
11336 frv-*-*)
11337 TARGET=FRV; TARGETDIR=frv
11338 ;;
11339
b7b857bb 11340 hppa*-*-linux* | parisc*-*-linux*)
bf8da5fc
RH
11341 TARGET=PA_LINUX; TARGETDIR=pa
11342 ;;
11343 hppa*64-*-hpux*)
11344 TARGET=PA64_HPUX; TARGETDIR=pa
11345 ;;
11346 hppa*-*-hpux*)
11347 TARGET=PA_HPUX; TARGETDIR=pa
11348 ;;
11349
b7b857bb
AH
11350 i386-*-freebsd* | i386-*-openbsd*)
11351 TARGET=X86_FREEBSD; TARGETDIR=x86
11352 ;;
bf8da5fc
RH
11353 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11354 TARGET=X86_WIN32; TARGETDIR=x86
11355 ;;
11356 i?86-*-darwin*)
11357 TARGET=X86_DARWIN; TARGETDIR=x86
11358 ;;
04a49983
RO
11359 i?86-*-solaris2.1[0-9]*)
11360 TARGET=X86_64; TARGETDIR=x86
11361 ;;
bf8da5fc
RH
11362 i?86-*-*)
11363 TARGET=X86; TARGETDIR=x86
11364 ;;
11365
11366 ia64*-*-*)
11367 TARGET=IA64; TARGETDIR=ia64
11368 ;;
11369
11370 m32r*-*-*)
11371 TARGET=M32R; TARGETDIR=m32r
11372 ;;
11373
11374 m68k-*-*)
11375 TARGET=M68K; TARGETDIR=m68k
11376 ;;
11377
bf8da5fc 11378 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 11379 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11380 ;;
11381 mips*-*-linux*)
8d5c5e35 11382 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11383 ;;
11384
b7b857bb
AH
11385 powerpc*-*-linux* | powerpc-*-sysv*)
11386 TARGET=POWERPC; TARGETDIR=powerpc
11387 ;;
11388 powerpc-*-beos*)
bf8da5fc
RH
11389 TARGET=POWERPC; TARGETDIR=powerpc
11390 ;;
11391 powerpc-*-darwin*)
11392 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11393 ;;
11394 powerpc-*-aix* | rs6000-*-aix*)
11395 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11396 ;;
11397 powerpc-*-freebsd*)
11398 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11399 ;;
11400 powerpc*-*-rtems*)
11401 TARGET=POWERPC; TARGETDIR=powerpc
11402 ;;
11403
11404 s390-*-* | s390x-*-*)
11405 TARGET=S390; TARGETDIR=s390
11406 ;;
11407
11408 sh-*-* | sh[34]*-*-*)
11409 TARGET=SH; TARGETDIR=sh
11410 ;;
11411 sh64-*-* | sh5*-*-*)
11412 TARGET=SH64; TARGETDIR=sh64
11413 ;;
11414
11415 sparc*-*-*)
11416 TARGET=SPARC; TARGETDIR=sparc
11417 ;;
11418
11419 x86_64-*-darwin*)
11420 TARGET=X86_DARWIN; TARGETDIR=x86
11421 ;;
fe673cc9 11422
bf8da5fc 11423 x86_64-*-cygwin* | x86_64-*-mingw*)
fe673cc9 11424 TARGET=X86_WIN64; TARGETDIR=x86
bf8da5fc 11425 ;;
fe673cc9 11426
bf8da5fc
RH
11427 x86_64-*-*)
11428 TARGET=X86_64; TARGETDIR=x86
11429 ;;
c9b93377
JB
11430esac
11431
11432
11433
11434if test $TARGETDIR = unknown; then
5213506e 11435 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
c9b93377
JB
11436fi
11437
5213506e 11438 if test x$TARGET = xMIPS; then
8d5c5e35
MR
11439 MIPS_TRUE=
11440 MIPS_FALSE='#'
c9b93377 11441else
8d5c5e35
MR
11442 MIPS_TRUE='#'
11443 MIPS_FALSE=
c9b93377
JB
11444fi
11445
5213506e 11446 if test x$TARGET = xSPARC; then
c9b93377
JB
11447 SPARC_TRUE=
11448 SPARC_FALSE='#'
11449else
11450 SPARC_TRUE='#'
11451 SPARC_FALSE=
11452fi
11453
5213506e 11454 if test x$TARGET = xX86; then
c9b93377
JB
11455 X86_TRUE=
11456 X86_FALSE='#'
11457else
11458 X86_TRUE='#'
11459 X86_FALSE=
63e5e3e0 11460fi
c9b93377 11461
5213506e 11462 if test x$TARGET = xX86_FREEBSD; then
b7b857bb
AH
11463 X86_FREEBSD_TRUE=
11464 X86_FREEBSD_FALSE='#'
11465else
11466 X86_FREEBSD_TRUE='#'
11467 X86_FREEBSD_FALSE=
11468fi
11469
5213506e 11470 if test x$TARGET = xX86_WIN32; then
c9b93377
JB
11471 X86_WIN32_TRUE=
11472 X86_WIN32_FALSE='#'
3ed8e5b6 11473else
c9b93377
JB
11474 X86_WIN32_TRUE='#'
11475 X86_WIN32_FALSE=
11476fi
3ed8e5b6 11477
5213506e 11478 if test x$TARGET = xX86_WIN64; then
fe673cc9
AH
11479 X86_WIN64_TRUE=
11480 X86_WIN64_FALSE='#'
11481else
11482 X86_WIN64_TRUE='#'
11483 X86_WIN64_FALSE=
11484fi
11485
5213506e 11486 if test x$TARGET = xX86_DARWIN; then
a3bd50cc
PB
11487 X86_DARWIN_TRUE=
11488 X86_DARWIN_FALSE='#'
11489else
11490 X86_DARWIN_TRUE='#'
11491 X86_DARWIN_FALSE=
11492fi
11493
5213506e 11494 if test x$TARGET = xALPHA; then
c9b93377
JB
11495 ALPHA_TRUE=
11496 ALPHA_FALSE='#'
11497else
11498 ALPHA_TRUE='#'
11499 ALPHA_FALSE=
63e5e3e0 11500fi
3ed8e5b6 11501
5213506e 11502 if test x$TARGET = xIA64; then
c9b93377
JB
11503 IA64_TRUE=
11504 IA64_FALSE='#'
11505else
11506 IA64_TRUE='#'
11507 IA64_FALSE=
63e5e3e0 11508fi
3ed8e5b6 11509
5213506e 11510 if test x$TARGET = xM32R; then
a472e9d4
KI
11511 M32R_TRUE=
11512 M32R_FALSE='#'
11513else
11514 M32R_TRUE='#'
11515 M32R_FALSE=
11516fi
11517
5213506e 11518 if test x$TARGET = xM68K; then
c9b93377
JB
11519 M68K_TRUE=
11520 M68K_FALSE='#'
11521else
11522 M68K_TRUE='#'
11523 M68K_FALSE=
3ed8e5b6 11524fi
c9b93377 11525
5213506e 11526 if test x$TARGET = xPOWERPC; then
c9b93377
JB
11527 POWERPC_TRUE=
11528 POWERPC_FALSE='#'
3ed8e5b6 11529else
c9b93377
JB
11530 POWERPC_TRUE='#'
11531 POWERPC_FALSE=
3ed8e5b6 11532fi
c9b93377 11533
5213506e 11534 if test x$TARGET = xPOWERPC_AIX; then
c9b93377
JB
11535 POWERPC_AIX_TRUE=
11536 POWERPC_AIX_FALSE='#'
3ed8e5b6 11537else
c9b93377
JB
11538 POWERPC_AIX_TRUE='#'
11539 POWERPC_AIX_FALSE=
3ed8e5b6 11540fi
c9b93377 11541
5213506e 11542 if test x$TARGET = xPOWERPC_DARWIN; then
c9b93377
JB
11543 POWERPC_DARWIN_TRUE=
11544 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 11545else
c9b93377
JB
11546 POWERPC_DARWIN_TRUE='#'
11547 POWERPC_DARWIN_FALSE=
11548fi
3ed8e5b6 11549
5213506e 11550 if test x$TARGET = xPOWERPC_FREEBSD; then
97067642
AT
11551 POWERPC_FREEBSD_TRUE=
11552 POWERPC_FREEBSD_FALSE='#'
11553else
11554 POWERPC_FREEBSD_TRUE='#'
11555 POWERPC_FREEBSD_FALSE=
11556fi
11557
5213506e 11558 if test x$TARGET = xARM; then
c9b93377
JB
11559 ARM_TRUE=
11560 ARM_FALSE='#'
11561else
11562 ARM_TRUE='#'
11563 ARM_FALSE=
3ed8e5b6 11564fi
3ed8e5b6 11565
5213506e 11566 if test x$TARGET = xLIBFFI_CRIS; then
614348bb
SP
11567 LIBFFI_CRIS_TRUE=
11568 LIBFFI_CRIS_FALSE='#'
11569else
11570 LIBFFI_CRIS_TRUE='#'
11571 LIBFFI_CRIS_FALSE=
11572fi
11573
5213506e 11574 if test x$TARGET = xFRV; then
88d8c771
AG
11575 FRV_TRUE=
11576 FRV_FALSE='#'
11577else
11578 FRV_TRUE='#'
11579 FRV_FALSE=
11580fi
11581
5213506e 11582 if test x$TARGET = xS390; then
c9b93377
JB
11583 S390_TRUE=
11584 S390_FALSE='#'
3ed8e5b6 11585else
c9b93377
JB
11586 S390_TRUE='#'
11587 S390_FALSE=
3ed8e5b6 11588fi
c9b93377 11589
5213506e 11590 if test x$TARGET = xX86_64; then
c9b93377
JB
11591 X86_64_TRUE=
11592 X86_64_FALSE='#'
3ed8e5b6 11593else
c9b93377
JB
11594 X86_64_TRUE='#'
11595 X86_64_FALSE=
11596fi
3ed8e5b6 11597
5213506e 11598 if test x$TARGET = xSH; then
c9b93377
JB
11599 SH_TRUE=
11600 SH_FALSE='#'
11601else
11602 SH_TRUE='#'
11603 SH_FALSE=
63e5e3e0 11604fi
3ed8e5b6 11605
5213506e 11606 if test x$TARGET = xSH64; then
c9b93377
JB
11607 SH64_TRUE=
11608 SH64_FALSE='#'
63e5e3e0 11609else
c9b93377
JB
11610 SH64_TRUE='#'
11611 SH64_FALSE=
63e5e3e0 11612fi
63e5e3e0 11613
5213506e 11614 if test x$TARGET = xPA_LINUX; then
e6c300ef
JDA
11615 PA_LINUX_TRUE=
11616 PA_LINUX_FALSE='#'
63e5e3e0 11617else
e6c300ef
JDA
11618 PA_LINUX_TRUE='#'
11619 PA_LINUX_FALSE=
11620fi
11621
5213506e 11622 if test x$TARGET = xPA_HPUX; then
e6c300ef
JDA
11623 PA_HPUX_TRUE=
11624 PA_HPUX_FALSE='#'
11625else
11626 PA_HPUX_TRUE='#'
11627 PA_HPUX_FALSE=
11628fi
11629
5213506e 11630 if test x$TARGET = xPA64_HPUX; then
e6c300ef
JDA
11631 PA64_HPUX_TRUE=
11632 PA64_HPUX_FALSE='#'
11633else
11634 PA64_HPUX_TRUE='#'
11635 PA64_HPUX_FALSE=
3ed8e5b6 11636fi
3ed8e5b6
AT
11637
11638
5213506e
RW
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11640$as_echo_n "checking for ANSI C header files... " >&6; }
11641if test "${ac_cv_header_stdc+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
3ed8e5b6 11643else
5213506e 11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11645/* end confdefs.h. */
63e5e3e0
AG
11646#include <stdlib.h>
11647#include <stdarg.h>
11648#include <string.h>
11649#include <float.h>
3ed8e5b6
AT
11650
11651int
11652main ()
11653{
11654
11655 ;
11656 return 0;
11657}
11658_ACEOF
5213506e 11659if ac_fn_c_try_compile "$LINENO"; then :
63e5e3e0
AG
11660 ac_cv_header_stdc=yes
11661else
5213506e 11662 ac_cv_header_stdc=no
63e5e3e0 11663fi
5213506e 11664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
11665
11666if test $ac_cv_header_stdc = yes; then
11667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11669/* end confdefs.h. */
63e5e3e0 11670#include <string.h>
3ed8e5b6
AT
11671
11672_ACEOF
63e5e3e0 11673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11674 $EGREP "memchr" >/dev/null 2>&1; then :
11675
63e5e3e0 11676else
63e5e3e0
AG
11677 ac_cv_header_stdc=no
11678fi
11679rm -f conftest*
11680
11681fi
11682
11683if test $ac_cv_header_stdc = yes; then
11684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11686/* end confdefs.h. */
63e5e3e0 11687#include <stdlib.h>
3ed8e5b6
AT
11688
11689_ACEOF
63e5e3e0 11690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11691 $EGREP "free" >/dev/null 2>&1; then :
11692
63e5e3e0 11693else
63e5e3e0
AG
11694 ac_cv_header_stdc=no
11695fi
11696rm -f conftest*
11697
11698fi
11699
11700if test $ac_cv_header_stdc = yes; then
11701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 11702 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11703 :
11704else
5213506e 11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11706/* end confdefs.h. */
63e5e3e0 11707#include <ctype.h>
5213506e 11708#include <stdlib.h>
3ed8e5b6
AT
11709#if ((' ' & 0x0FF) == 0x020)
11710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11712#else
11713# define ISLOWER(c) \
11714 (('a' <= (c) && (c) <= 'i') \
11715 || ('j' <= (c) && (c) <= 'r') \
11716 || ('s' <= (c) && (c) <= 'z'))
11717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11718#endif
63e5e3e0 11719
3ed8e5b6
AT
11720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11721int
11722main ()
11723{
11724 int i;
11725 for (i = 0; i < 256; i++)
11726 if (XOR (islower (i), ISLOWER (i))
11727 || toupper (i) != TOUPPER (i))
5213506e
RW
11728 return 2;
11729 return 0;
3ed8e5b6
AT
11730}
11731_ACEOF
5213506e 11732if ac_fn_c_try_run "$LINENO"; then :
3ed8e5b6 11733
5213506e
RW
11734else
11735 ac_cv_header_stdc=no
63e5e3e0 11736fi
5213506e
RW
11737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11738 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 11739fi
5213506e 11740
63e5e3e0
AG
11741fi
11742fi
5213506e
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11744$as_echo "$ac_cv_header_stdc" >&6; }
63e5e3e0 11745if test $ac_cv_header_stdc = yes; then
3ed8e5b6 11746
5213506e 11747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
63e5e3e0
AG
11748
11749fi
11750
11751for ac_func in memcpy
5213506e
RW
11752do :
11753 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11754if test "x$ac_cv_func_memcpy" = x""yes; then :
11755 cat >>confdefs.h <<_ACEOF
11756#define HAVE_MEMCPY 1
3ed8e5b6 11757_ACEOF
3ed8e5b6 11758
5213506e
RW
11759fi
11760done
63e5e3e0 11761
5213506e
RW
11762# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11763# for constant arguments. Useless!
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11765$as_echo_n "checking for working alloca.h... " >&6; }
11766if test "${ac_cv_working_alloca_h+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768else
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h. */
11771#include <alloca.h>
3ed8e5b6
AT
11772int
11773main ()
11774{
5213506e
RW
11775char *p = (char *) alloca (2 * sizeof (int));
11776 if (p) return 0;
3ed8e5b6
AT
11777 ;
11778 return 0;
11779}
11780_ACEOF
5213506e 11781if ac_fn_c_try_link "$LINENO"; then :
3ed8e5b6
AT
11782 ac_cv_working_alloca_h=yes
11783else
5213506e 11784 ac_cv_working_alloca_h=no
3ed8e5b6 11785fi
5213506e
RW
11786rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
3ed8e5b6 11788fi
5213506e
RW
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11790$as_echo "$ac_cv_working_alloca_h" >&6; }
3ed8e5b6
AT
11791if test $ac_cv_working_alloca_h = yes; then
11792
5213506e 11793$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
63e5e3e0
AG
11794
11795fi
11796
5213506e
RW
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11798$as_echo_n "checking for alloca... " >&6; }
11799if test "${ac_cv_func_alloca_works+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
63e5e3e0 11801else
5213506e 11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11803/* end confdefs.h. */
63e5e3e0
AG
11804#ifdef __GNUC__
11805# define alloca __builtin_alloca
11806#else
11807# ifdef _MSC_VER
11808# include <malloc.h>
11809# define alloca _alloca
11810# else
5213506e 11811# ifdef HAVE_ALLOCA_H
63e5e3e0
AG
11812# include <alloca.h>
11813# else
11814# ifdef _AIX
11815 #pragma alloca
11816# else
11817# ifndef alloca /* predefined by HP cc +Olibcalls */
11818char *alloca ();
11819# endif
11820# endif
11821# endif
11822# endif
11823#endif
11824
3ed8e5b6
AT
11825int
11826main ()
11827{
11828char *p = (char *) alloca (1);
5213506e 11829 if (p) return 0;
3ed8e5b6
AT
11830 ;
11831 return 0;
11832}
11833_ACEOF
5213506e 11834if ac_fn_c_try_link "$LINENO"; then :
63e5e3e0
AG
11835 ac_cv_func_alloca_works=yes
11836else
5213506e 11837 ac_cv_func_alloca_works=no
63e5e3e0 11838fi
5213506e
RW
11839rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11841fi
5213506e
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11843$as_echo "$ac_cv_func_alloca_works" >&6; }
63e5e3e0 11844
63e5e3e0 11845if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11846
5213506e 11847$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
63e5e3e0 11848
3ed8e5b6 11849else
63e5e3e0 11850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11851# that cause trouble. Some versions do not even contain alloca or
11852# contain a buggy version. If you still want to use their alloca,
11853# use ar to extract alloca.o from them instead of compiling alloca.c.
11854
5213506e 11855ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3ed8e5b6 11856
5213506e 11857$as_echo "#define C_ALLOCA 1" >>confdefs.h
63e5e3e0
AG
11858
11859
5213506e
RW
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11861$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11862if test "${ac_cv_os_cray+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
63e5e3e0 11864else
5213506e 11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11866/* end confdefs.h. */
5213506e 11867#if defined CRAY && ! defined CRAY2
63e5e3e0
AG
11868webecray
11869#else
11870wenotbecray
11871#endif
11872
3ed8e5b6 11873_ACEOF
63e5e3e0 11874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 11875 $EGREP "webecray" >/dev/null 2>&1; then :
63e5e3e0
AG
11876 ac_cv_os_cray=yes
11877else
63e5e3e0
AG
11878 ac_cv_os_cray=no
11879fi
11880rm -f conftest*
11881
11882fi
5213506e
RW
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11884$as_echo "$ac_cv_os_cray" >&6; }
63e5e3e0 11885if test $ac_cv_os_cray = yes; then
3ed8e5b6 11886 for ac_func in _getb67 GETB67 getb67; do
5213506e
RW
11887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11889eval as_val=\$$as_ac_var
11890 if test "x$as_val" = x""yes; then :
3ed8e5b6
AT
11891
11892cat >>confdefs.h <<_ACEOF
63e5e3e0 11893#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11894_ACEOF
63e5e3e0 11895
3ed8e5b6 11896 break
63e5e3e0
AG
11897fi
11898
3ed8e5b6 11899 done
63e5e3e0
AG
11900fi
11901
5213506e
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11903$as_echo_n "checking stack direction for C alloca... " >&6; }
11904if test "${ac_cv_c_stack_direction+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
63e5e3e0 11906else
5213506e 11907 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11908 ac_cv_c_stack_direction=0
11909else
5213506e 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11911/* end confdefs.h. */
5213506e 11912$ac_includes_default
3ed8e5b6 11913int
63e5e3e0
AG
11914find_stack_direction ()
11915{
11916 static char *addr = 0;
11917 auto char dummy;
11918 if (addr == 0)
11919 {
11920 addr = &dummy;
11921 return find_stack_direction ();
11922 }
11923 else
11924 return (&dummy > addr) ? 1 : -1;
11925}
3ed8e5b6
AT
11926
11927int
63e5e3e0
AG
11928main ()
11929{
5213506e 11930 return find_stack_direction () < 0;
63e5e3e0 11931}
3ed8e5b6 11932_ACEOF
5213506e 11933if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
11934 ac_cv_c_stack_direction=1
11935else
5213506e 11936 ac_cv_c_stack_direction=-1
63e5e3e0 11937fi
5213506e
RW
11938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11939 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0
AG
11940fi
11941
5213506e
RW
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11944$as_echo "$ac_cv_c_stack_direction" >&6; }
3ed8e5b6 11945cat >>confdefs.h <<_ACEOF
63e5e3e0 11946#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11947_ACEOF
11948
63e5e3e0
AG
11949
11950fi
11951
11952
5213506e
RW
11953# The cast to long int works around a bug in the HP C Compiler
11954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11956# This bug is HP SR number 8606223364.
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11958$as_echo_n "checking size of double... " >&6; }
11959if test "${ac_cv_sizeof_double+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
a097ef55 11961else
5213506e
RW
11962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
11963
11964else
11965 if test "$ac_cv_type_double" = yes; then
11966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11968{ as_fn_set_status 77
11969as_fn_error "cannot compute sizeof (double)
11970See \`config.log' for more details." "$LINENO" 5; }; }
11971 else
11972 ac_cv_sizeof_double=0
11973 fi
11974fi
11975
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11978$as_echo "$ac_cv_sizeof_double" >&6; }
11979
11980
11981
11982cat >>confdefs.h <<_ACEOF
11983#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a097ef55 11984_ACEOF
5213506e
RW
11985
11986
11987# The cast to long int works around a bug in the HP C Compiler
11988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11990# This bug is HP SR number 8606223364.
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
11992$as_echo_n "checking size of long double... " >&6; }
11993if test "${ac_cv_sizeof_long_double+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
a097ef55 11995else
5213506e 11996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
a097ef55 11997
5213506e
RW
11998else
11999 if test "$ac_cv_type_long_double" = yes; then
12000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12002{ as_fn_set_status 77
12003as_fn_error "cannot compute sizeof (long double)
12004See \`config.log' for more details." "$LINENO" 5; }; }
12005 else
12006 ac_cv_sizeof_long_double=0
12007 fi
a097ef55 12008fi
5213506e 12009
a097ef55 12010fi
5213506e
RW
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12012$as_echo "$ac_cv_sizeof_long_double" >&6; }
a097ef55 12013
5213506e
RW
12014
12015
12016cat >>confdefs.h <<_ACEOF
12017#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
a097ef55 12018_ACEOF
5213506e
RW
12019
12020
12021
12022# Also AC_SUBST this variable for ffi.h.
12023if test -z "$HAVE_LONG_DOUBLE"; then
12024 HAVE_LONG_DOUBLE=0
12025 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12026 if test $ac_cv_sizeof_long_double != 0; then
12027 HAVE_LONG_DOUBLE=1
12028
12029$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12030
12031 fi
12032 fi
12033fi
12034
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12037$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12038if test "${ac_cv_c_bigendian+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040else
12041 ac_cv_c_bigendian=unknown
12042 # See if we're dealing with a universal compiler.
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12044/* end confdefs.h. */
5213506e
RW
12045#ifndef __APPLE_CC__
12046 not a universal capable compiler
12047 #endif
12048 typedef int dummy;
12049
12050_ACEOF
12051if ac_fn_c_try_compile "$LINENO"; then :
12052
12053 # Check for potential -arch flags. It is not universal unless
12054 # there are at least two -arch flags with different values.
12055 ac_arch=
12056 ac_prev=
12057 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12058 if test -n "$ac_prev"; then
12059 case $ac_word in
12060 i?86 | x86_64 | ppc | ppc64)
12061 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12062 ac_arch=$ac_word
12063 else
12064 ac_cv_c_bigendian=universal
12065 break
12066 fi
12067 ;;
12068 esac
12069 ac_prev=
12070 elif test "x$ac_word" = "x-arch"; then
12071 ac_prev=arch
12072 fi
12073 done
12074fi
12075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 if test $ac_cv_c_bigendian = unknown; then
12077 # See if sys/param.h defines the BYTE_ORDER macro.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h. */
12080#include <sys/types.h>
12081 #include <sys/param.h>
12082
a097ef55
KC
12083int
12084main ()
12085{
5213506e
RW
12086#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12087 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12088 && LITTLE_ENDIAN)
12089 bogus endian macros
12090 #endif
a097ef55
KC
12091
12092 ;
12093 return 0;
12094}
12095_ACEOF
5213506e
RW
12096if ac_fn_c_try_compile "$LINENO"; then :
12097 # It does; now see whether it defined to BIG_ENDIAN or not.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12099/* end confdefs.h. */
5213506e
RW
12100#include <sys/types.h>
12101 #include <sys/param.h>
12102
a097ef55
KC
12103int
12104main ()
12105{
5213506e
RW
12106#if BYTE_ORDER != BIG_ENDIAN
12107 not big endian
12108 #endif
a097ef55
KC
12109
12110 ;
12111 return 0;
12112}
12113_ACEOF
5213506e
RW
12114if ac_fn_c_try_compile "$LINENO"; then :
12115 ac_cv_c_bigendian=yes
a097ef55 12116else
5213506e 12117 ac_cv_c_bigendian=no
a097ef55 12118fi
5213506e
RW
12119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120fi
12121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 if test $ac_cv_c_bigendian = unknown; then
12124 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12126/* end confdefs.h. */
5213506e
RW
12127#include <limits.h>
12128
a097ef55
KC
12129int
12130main ()
12131{
5213506e
RW
12132#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12133 bogus endian macros
12134 #endif
a097ef55
KC
12135
12136 ;
12137 return 0;
12138}
12139_ACEOF
5213506e
RW
12140if ac_fn_c_try_compile "$LINENO"; then :
12141 # It does; now see whether it defined to _BIG_ENDIAN or not.
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12143/* end confdefs.h. */
5213506e
RW
12144#include <limits.h>
12145
a097ef55
KC
12146int
12147main ()
12148{
5213506e
RW
12149#ifndef _BIG_ENDIAN
12150 not big endian
12151 #endif
a097ef55
KC
12152
12153 ;
12154 return 0;
12155}
12156_ACEOF
5213506e
RW
12157if ac_fn_c_try_compile "$LINENO"; then :
12158 ac_cv_c_bigendian=yes
a097ef55 12159else
5213506e 12160 ac_cv_c_bigendian=no
a097ef55 12161fi
5213506e 12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12163fi
5213506e
RW
12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 if test $ac_cv_c_bigendian = unknown; then
12167 # Compile a test program.
12168 if test "$cross_compiling" = yes; then :
12169 # Try to guess by grepping values from an object file.
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12171/* end confdefs.h. */
5213506e
RW
12172short int ascii_mm[] =
12173 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12174 short int ascii_ii[] =
12175 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12176 int use_ascii (int i) {
12177 return ascii_mm[i] + ascii_ii[i];
12178 }
12179 short int ebcdic_ii[] =
12180 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12181 short int ebcdic_mm[] =
12182 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12183 int use_ebcdic (int i) {
12184 return ebcdic_mm[i] + ebcdic_ii[i];
12185 }
12186 extern int foo;
12187
a097ef55
KC
12188int
12189main ()
12190{
5213506e 12191return use_ascii (foo) == use_ebcdic (foo);
a097ef55
KC
12192 ;
12193 return 0;
12194}
12195_ACEOF
5213506e
RW
12196if ac_fn_c_try_compile "$LINENO"; then :
12197 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12198 ac_cv_c_bigendian=yes
12199 fi
12200 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12201 if test "$ac_cv_c_bigendian" = unknown; then
12202 ac_cv_c_bigendian=no
12203 else
12204 # finding both strings is unlikely to happen, but who knows?
12205 ac_cv_c_bigendian=unknown
12206 fi
12207 fi
63e5e3e0 12208fi
5213506e 12209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12210else
5213506e 12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55
KC
12212/* end confdefs.h. */
12213$ac_includes_default
3ed8e5b6
AT
12214int
12215main ()
12216{
3ed8e5b6 12217
5213506e
RW
12218 /* Are we little or big endian? From Harbison&Steele. */
12219 union
12220 {
12221 long int l;
12222 char c[sizeof (long int)];
12223 } u;
12224 u.l = 1;
12225 return u.c[sizeof (long int) - 1] == 1;
3ed8e5b6 12226
a097ef55
KC
12227 ;
12228 return 0;
12229}
12230_ACEOF
5213506e 12231if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
12232 ac_cv_c_bigendian=no
12233else
5213506e 12234 ac_cv_c_bigendian=yes
63e5e3e0 12235fi
5213506e
RW
12236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12237 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 12238fi
3ed8e5b6 12239
5213506e
RW
12240 fi
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12243$as_echo "$ac_cv_c_bigendian" >&6; }
12244 case $ac_cv_c_bigendian in #(
12245 yes)
12246 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12247;; #(
12248 no)
12249 ;; #(
12250 universal)
12251
12252$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12253
12254 ;; #(
12255 *)
12256 as_fn_error "unknown endianness
12257 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12258 esac
63e5e3e0
AG
12259
12260
5213506e
RW
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12262$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12263if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
e6fbf387
RZ
12265else
12266
12267 libffi_cv_as_cfi_pseudo_op=unknown
5213506e 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e6fbf387
RZ
12269/* end confdefs.h. */
12270asm (".cfi_startproc\n\t.cfi_endproc");
12271int
12272main ()
12273{
12274
12275 ;
12276 return 0;
12277}
12278_ACEOF
5213506e 12279if ac_fn_c_try_compile "$LINENO"; then :
e6fbf387
RZ
12280 libffi_cv_as_cfi_pseudo_op=yes
12281else
5213506e 12282 libffi_cv_as_cfi_pseudo_op=no
e6fbf387 12283fi
5213506e 12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e6fbf387
RZ
12285
12286fi
5213506e
RW
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12288$as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
e6fbf387
RZ
12289if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12290
5213506e 12291$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
e6fbf387
RZ
12292
12293fi
12294
189ab118 12295if test x$TARGET = xSPARC; then
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12297$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12298if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
5d84cf0b 12300else
3ed8e5b6 12301
5d84cf0b
JJ
12302 save_CFLAGS="$CFLAGS"
12303 save_LDFLAGS="$LDFLAGS"
12304 CFLAGS="$CFLAGS -fpic"
12305 LDFLAGS="$LDFLAGS -shared"
5213506e 12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12307/* end confdefs.h. */
5d84cf0b 12308asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12309int
12310main ()
12311{
5d84cf0b 12312
3ed8e5b6
AT
12313 ;
12314 return 0;
12315}
12316_ACEOF
5213506e 12317if ac_fn_c_try_link "$LINENO"; then :
5d84cf0b
JJ
12318 libffi_cv_as_sparc_ua_pcrel=yes
12319else
5213506e 12320 libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12321fi
5213506e
RW
12322rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12324 CFLAGS="$save_CFLAGS"
12325 LDFLAGS="$save_LDFLAGS"
12326fi
5213506e
RW
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12328$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
5d84cf0b 12329 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6 12330
5213506e 12331$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
bd19c9f4
JS
12332
12333 fi
12334
5213506e
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12336$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12337if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
bd19c9f4 12339else
3ed8e5b6 12340
bd19c9f4
JS
12341 libffi_cv_as_register_pseudo_op=unknown
12342 # Check if we have .register
5213506e 12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12344/* end confdefs.h. */
bd19c9f4 12345asm (".register %g2, #scratch");
3ed8e5b6
AT
12346int
12347main ()
12348{
bd19c9f4 12349
3ed8e5b6
AT
12350 ;
12351 return 0;
12352}
12353_ACEOF
5213506e 12354if ac_fn_c_try_compile "$LINENO"; then :
bd19c9f4
JS
12355 libffi_cv_as_register_pseudo_op=yes
12356else
5213506e 12357 libffi_cv_as_register_pseudo_op=no
bd19c9f4 12358fi
5213506e 12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12360
3ed8e5b6 12361fi
5213506e
RW
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12363$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
bd19c9f4 12364 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6 12365
5213506e 12366$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
5d84cf0b
JJ
12367
12368 fi
12369fi
12370
8353cd27 12371if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
5213506e
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12373$as_echo_n "checking assembler supports pc related relocs... " >&6; }
12374if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
4d3d4078
RO
12376else
12377
12378 libffi_cv_as_x86_pcrel=yes
12379 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12380 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12381 libffi_cv_as_x86_pcrel=no
12382 fi
12383
12384fi
5213506e
RW
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12386$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
4d3d4078
RO
12387 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12388
5213506e 12389$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
4d3d4078
RO
12390
12391 fi
12392fi
12393
5213506e
RW
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12395$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12396if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
a733b15e 12398else
3ed8e5b6 12399
a733b15e
JJ
12400 libffi_cv_ro_eh_frame=no
12401 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12402 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12403 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12404 libffi_cv_ro_eh_frame=yes
12405 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12406 | grep -v '#write' > /dev/null; then
12407 libffi_cv_ro_eh_frame=yes
12408 fi
12409 fi
12410 rm -f conftest.*
a733b15e 12411
3ed8e5b6 12412fi
5213506e
RW
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12414$as_echo "$libffi_cv_ro_eh_frame" >&6; }
a733b15e 12415if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6 12416
5213506e 12417$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
1450eb7a 12418
3ed8e5b6 12419
5213506e 12420$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
1450eb7a
AT
12421
12422else
3ed8e5b6 12423
5213506e 12424$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
a733b15e
JJ
12425
12426fi
12427
5213506e
RW
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12429$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12430if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
8a42356f
JJ
12432else
12433
12434 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12435 libffi_cv_hidden_visibility_attribute=no
12436 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 12437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8a42356f
JJ
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
5213506e
RW
12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441 test $ac_status = 0; }; }; then
8a42356f
JJ
12442 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12443 libffi_cv_hidden_visibility_attribute=yes
12444 fi
12445 fi
12446 rm -f conftest.*
12447
12448fi
5213506e
RW
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12450$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
8a42356f
JJ
12451if test $libffi_cv_hidden_visibility_attribute = yes; then
12452
5213506e 12453$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
8a42356f
JJ
12454
12455fi
12456
12457
12458
12459
63e5e3e0
AG
12460
12461
12462
12463
5213506e
RW
12464# Check whether --enable-debug was given.
12465if test "${enable_debug+set}" = set; then :
12466 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
63e5e3e0 12467
5213506e 12468$as_echo "#define FFI_DEBUG 1" >>confdefs.h
3ed8e5b6
AT
12469
12470 fi
5213506e 12471fi
3ed8e5b6 12472
3ed8e5b6 12473
5213506e
RW
12474# Check whether --enable-structs was given.
12475if test "${enable_structs+set}" = set; then :
12476 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12477
12478$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
3ed8e5b6
AT
12479
12480 fi
5213506e 12481fi
3ed8e5b6 12482
3ed8e5b6 12483
5213506e
RW
12484# Check whether --enable-raw-api was given.
12485if test "${enable_raw_api+set}" = set; then :
12486 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12487
12488$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
3ed8e5b6
AT
12489
12490 fi
5213506e 12491fi
3ed8e5b6 12492
3ed8e5b6 12493
5213506e
RW
12494# Check whether --enable-purify-safety was given.
12495if test "${enable_purify_safety+set}" = set; then :
12496 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12497
12498$as_echo "#define USING_PURIFY 1" >>confdefs.h
3ed8e5b6
AT
12499
12500 fi
5213506e
RW
12501fi
12502
3ed8e5b6
AT
12503
12504if test -n "$with_cross_host" &&
12505 test x"$with_cross_host" != x"no"; then
12506 toolexecdir='$(exec_prefix)/$(target_alias)'
12507 toolexeclibdir='$(toolexecdir)/lib'
12508else
12509 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12510 toolexeclibdir='$(libdir)'
12511fi
12512multi_os_directory=`$CC -print-multi-os-directory`
12513case $multi_os_directory in
12514 .) ;; # Avoid trailing /.
12515 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12516esac
12517
12518
12519
3ed8e5b6
AT
12520if test "${multilib}" = "yes"; then
12521 multilib_arg="--enable-multilib"
12522else
12523 multilib_arg=
12524fi
12525
5213506e 12526ac_config_commands="$ac_config_commands include"
3ed8e5b6 12527
5213506e 12528ac_config_commands="$ac_config_commands src"
3ed8e5b6
AT
12529
12530
5213506e 12531ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
3ed8e5b6
AT
12532
12533
5213506e 12534ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
3ed8e5b6
AT
12535
12536
12537cat >confcache <<\_ACEOF
12538# This file is a shell script that caches the results of configure
12539# tests run on this system so they can be shared between configure
12540# scripts and configure runs, see configure's option --config-cache.
12541# It is not useful on other systems. If it contains results you don't
12542# want to keep, you may remove or edit it.
12543#
12544# config.status only pays attention to the cache file if you give it
12545# the --recheck option to rerun configure.
12546#
12547# `ac_cv_env_foo' variables (set or unset) will be overridden when
12548# loading this file, other *unset* `ac_cv_foo' will be assigned the
12549# following values.
12550
12551_ACEOF
12552
12553# The following way of writing the cache mishandles newlines in values,
12554# but we know of no workaround that is simple, portable, and efficient.
5213506e 12555# So, we kill variables containing newlines.
3ed8e5b6
AT
12556# Ultrix sh set writes to stderr and can't be redirected directly,
12557# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
12558(
12559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12560 eval ac_val=\$$ac_var
12561 case $ac_val in #(
12562 *${as_nl}*)
12563 case $ac_var in #(
12564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12565$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12566 esac
12567 case $ac_var in #(
12568 _ | IFS | as_nl) ;; #(
12569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12570 *) { eval $ac_var=; unset $ac_var;} ;;
12571 esac ;;
12572 esac
12573 done
12574
3ed8e5b6 12575 (set) 2>&1 |
5213506e
RW
12576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12577 *${as_nl}ac_space=\ *)
12578 # `set' does not quote correctly, so add quotes: double-quote
12579 # substitution turns \\\\ into \\, and sed turns \\ into \.
3ed8e5b6
AT
12580 sed -n \
12581 "s/'/'\\\\''/g;
12582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 12583 ;; #(
3ed8e5b6
AT
12584 *)
12585 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 12586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 12587 ;;
5213506e
RW
12588 esac |
12589 sort
12590) |
3ed8e5b6 12591 sed '
5213506e 12592 /^ac_cv_env_/b end
3ed8e5b6 12593 t clear
5213506e 12594 :clear
3ed8e5b6
AT
12595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12596 t end
5213506e
RW
12597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12598 :end' >>confcache
12599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12600 if test -w "$cache_file"; then
12601 test "x$cache_file" != "x/dev/null" &&
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12603$as_echo "$as_me: updating cache $cache_file" >&6;}
3ed8e5b6
AT
12604 cat confcache >$cache_file
12605 else
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12607$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3ed8e5b6
AT
12608 fi
12609fi
12610rm -f confcache
12611
12612test "x$prefix" = xNONE && prefix=$ac_default_prefix
12613# Let make expand exec_prefix.
12614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12615
3ed8e5b6
AT
12616DEFS=-DHAVE_CONFIG_H
12617
12618ac_libobjs=
12619ac_ltlibobjs=
12620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12621 # 1. Remove the extension, and $U if already installed.
5213506e
RW
12622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12625 # will be set to the directory where LIBOBJS objects are built.
12626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3ed8e5b6
AT
12628done
12629LIBOBJS=$ac_libobjs
12630
12631LTLIBOBJS=$ac_ltlibobjs
12632
12633
5213506e
RW
12634 if test -n "$EXEEXT"; then
12635 am__EXEEXT_TRUE=
12636 am__EXEEXT_FALSE='#'
12637else
12638 am__EXEEXT_TRUE='#'
12639 am__EXEEXT_FALSE=
12640fi
12641
3ed8e5b6 12642if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
12643 as_fn_error "conditional \"AMDEP\" was never defined.
12644Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12645fi
12646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
12647 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12648Usually this means the macro was only invoked conditionally." "$LINENO" 5
12649fi
12650if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12651 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12652Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12653fi
12654if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
12655 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12656Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12657fi
12658if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
12659 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12660Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12661fi
8d5c5e35 12662if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
5213506e
RW
12663 as_fn_error "conditional \"MIPS\" was never defined.
12664Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12665fi
12666if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
5213506e
RW
12667 as_fn_error "conditional \"SPARC\" was never defined.
12668Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12669fi
12670if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
5213506e
RW
12671 as_fn_error "conditional \"X86\" was never defined.
12672Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12673fi
b7b857bb 12674if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
5213506e
RW
12675 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12676Usually this means the macro was only invoked conditionally." "$LINENO" 5
b7b857bb 12677fi
3ed8e5b6 12678if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
5213506e
RW
12679 as_fn_error "conditional \"X86_WIN32\" was never defined.
12680Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12681fi
fe673cc9 12682if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
5213506e
RW
12683 as_fn_error "conditional \"X86_WIN64\" was never defined.
12684Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe673cc9 12685fi
a3bd50cc 12686if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
5213506e
RW
12687 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12688Usually this means the macro was only invoked conditionally." "$LINENO" 5
a3bd50cc 12689fi
3ed8e5b6 12690if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
5213506e
RW
12691 as_fn_error "conditional \"ALPHA\" was never defined.
12692Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12693fi
12694if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
5213506e
RW
12695 as_fn_error "conditional \"IA64\" was never defined.
12696Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12697fi
a472e9d4 12698if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
5213506e
RW
12699 as_fn_error "conditional \"M32R\" was never defined.
12700Usually this means the macro was only invoked conditionally." "$LINENO" 5
a472e9d4 12701fi
3ed8e5b6 12702if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
5213506e
RW
12703 as_fn_error "conditional \"M68K\" was never defined.
12704Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12705fi
12706if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
5213506e
RW
12707 as_fn_error "conditional \"POWERPC\" was never defined.
12708Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12709fi
12710if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
5213506e
RW
12711 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12712Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12713fi
12714if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
12715 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12716Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12717fi
97067642 12718if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
5213506e
RW
12719 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12720Usually this means the macro was only invoked conditionally." "$LINENO" 5
97067642 12721fi
3ed8e5b6 12722if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
5213506e
RW
12723 as_fn_error "conditional \"ARM\" was never defined.
12724Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12725fi
614348bb 12726if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
5213506e
RW
12727 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12728Usually this means the macro was only invoked conditionally." "$LINENO" 5
614348bb 12729fi
88d8c771 12730if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
5213506e
RW
12731 as_fn_error "conditional \"FRV\" was never defined.
12732Usually this means the macro was only invoked conditionally." "$LINENO" 5
88d8c771 12733fi
3ed8e5b6 12734if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
5213506e
RW
12735 as_fn_error "conditional \"S390\" was never defined.
12736Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12737fi
12738if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
5213506e
RW
12739 as_fn_error "conditional \"X86_64\" was never defined.
12740Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12741fi
12742if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
5213506e
RW
12743 as_fn_error "conditional \"SH\" was never defined.
12744Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12745fi
12746if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
5213506e
RW
12747 as_fn_error "conditional \"SH64\" was never defined.
12748Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12749fi
e6c300ef 12750if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
5213506e
RW
12751 as_fn_error "conditional \"PA_LINUX\" was never defined.
12752Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12753fi
12754if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
5213506e
RW
12755 as_fn_error "conditional \"PA_HPUX\" was never defined.
12756Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12757fi
12758if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
5213506e
RW
12759 as_fn_error "conditional \"PA64_HPUX\" was never defined.
12760Usually this means the macro was only invoked conditionally." "$LINENO" 5
d65a810f 12761fi
3ed8e5b6 12762
5213506e 12763
3ed8e5b6 12764: ${CONFIG_STATUS=./config.status}
5213506e 12765ac_write_fail=0
3ed8e5b6
AT
12766ac_clean_files_save=$ac_clean_files
12767ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12769$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12770as_write_fail=0
12771cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3ed8e5b6
AT
12772#! $SHELL
12773# Generated by $as_me.
12774# Run this file to recreate the current configuration.
12775# Compiler output produced by configure, useful for debugging
12776# configure, is in config.log if it exists.
12777
12778debug=false
12779ac_cs_recheck=false
12780ac_cs_silent=false
3ed8e5b6 12781
5213506e
RW
12782SHELL=\${CONFIG_SHELL-$SHELL}
12783export SHELL
12784_ASEOF
12785cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12786## -------------------- ##
12787## M4sh Initialization. ##
12788## -------------------- ##
12789
12790# Be more Bourne compatible
12791DUALCASE=1; export DUALCASE # for MKS sh
12792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
12793 emulate sh
12794 NULLCMD=:
5213506e 12795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
12796 # is contrary to our usage. Disable this feature.
12797 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
12798 setopt NO_GLOB_SUBST
12799else
12800 case `(set -o) 2>/dev/null` in #(
12801 *posix*) :
12802 set -o posix ;; #(
12803 *) :
12804 ;;
12805esac
3ed8e5b6 12806fi
3ed8e5b6 12807
5213506e
RW
12808
12809as_nl='
12810'
12811export as_nl
12812# Printing a long string crashes Solaris 7 /usr/bin/printf.
12813as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12816# Prefer a ksh shell builtin over an external printf program on Solaris,
12817# but without wasting forks for bash or zsh.
12818if test -z "$BASH_VERSION$ZSH_VERSION" \
12819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12820 as_echo='print -r --'
12821 as_echo_n='print -rn --'
12822elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12823 as_echo='printf %s\n'
12824 as_echo_n='printf %s'
12825else
12826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12828 as_echo_n='/usr/ucb/echo -n'
12829 else
12830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12831 as_echo_n_body='eval
12832 arg=$1;
12833 case $arg in #(
12834 *"$as_nl"*)
12835 expr "X$arg" : "X\\(.*\\)$as_nl";
12836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12837 esac;
12838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12839 '
12840 export as_echo_n_body
12841 as_echo_n='sh -c $as_echo_n_body as_echo'
12842 fi
12843 export as_echo_body
12844 as_echo='sh -c $as_echo_body as_echo'
12845fi
12846
12847# The user is always right.
12848if test "${PATH_SEPARATOR+set}" != set; then
12849 PATH_SEPARATOR=:
12850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12852 PATH_SEPARATOR=';'
12853 }
3ed8e5b6
AT
12854fi
12855
12856
5213506e
RW
12857# IFS
12858# We need space, tab and new line, in precisely that order. Quoting is
12859# there to prevent editors from complaining about space-tab.
12860# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12861# splitting by setting IFS to empty value.)
12862IFS=" "" $as_nl"
12863
12864# Find who we are. Look in the path if we contain no directory separator.
12865case $0 in #((
12866 *[\\/]* ) as_myself=$0 ;;
12867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12873 done
12874IFS=$as_save_IFS
12875
12876 ;;
12877esac
12878# We did not find ourselves, most probably we were run as `sh COMMAND'
12879# in which case we are not to be found in the path.
12880if test "x$as_myself" = x; then
12881 as_myself=$0
12882fi
12883if test ! -f "$as_myself"; then
12884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12885 exit 1
12886fi
12887
12888# Unset variables that we do not need and which cause bugs (e.g. in
12889# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12890# suppresses any "Segmentation fault" message there. '((' could
12891# trigger a bug in pdksh 5.2.14.
12892for as_var in BASH_ENV ENV MAIL MAILPATH
12893do eval test x\${$as_var+set} = xset \
12894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12895done
3ed8e5b6
AT
12896PS1='$ '
12897PS2='> '
12898PS4='+ '
12899
12900# NLS nuisances.
5213506e
RW
12901LC_ALL=C
12902export LC_ALL
12903LANGUAGE=C
12904export LANGUAGE
12905
12906# CDPATH.
12907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12908
12909
12910# as_fn_error ERROR [LINENO LOG_FD]
12911# ---------------------------------
12912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12914# script with status $?, using 1 if that was 0.
12915as_fn_error ()
12916{
12917 as_status=$?; test $as_status -eq 0 && as_status=1
12918 if test "$3"; then
12919 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3ed8e5b6 12921 fi
5213506e
RW
12922 $as_echo "$as_me: error: $1" >&2
12923 as_fn_exit $as_status
12924} # as_fn_error
12925
12926
12927# as_fn_set_status STATUS
12928# -----------------------
12929# Set $? to STATUS, without forking.
12930as_fn_set_status ()
12931{
12932 return $1
12933} # as_fn_set_status
12934
12935# as_fn_exit STATUS
12936# -----------------
12937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12938as_fn_exit ()
12939{
12940 set +e
12941 as_fn_set_status $1
12942 exit $1
12943} # as_fn_exit
12944
12945# as_fn_unset VAR
12946# ---------------
12947# Portably unset VAR.
12948as_fn_unset ()
12949{
12950 { eval $1=; unset $1;}
12951}
12952as_unset=as_fn_unset
12953# as_fn_append VAR VALUE
12954# ----------------------
12955# Append the text in VALUE to the end of the definition contained in VAR. Take
12956# advantage of any shell optimizations that allow amortized linear growth over
12957# repeated appends, instead of the typical quadratic growth present in naive
12958# implementations.
12959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12960 eval 'as_fn_append ()
12961 {
12962 eval $1+=\$2
12963 }'
12964else
12965 as_fn_append ()
12966 {
12967 eval $1=\$$1\$2
12968 }
12969fi # as_fn_append
12970
12971# as_fn_arith ARG...
12972# ------------------
12973# Perform arithmetic evaluation on the ARGs, and store the result in the
12974# global $as_val. Take advantage of shells that can avoid forks. The arguments
12975# must be portable across $(()) and expr.
12976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12977 eval 'as_fn_arith ()
12978 {
12979 as_val=$(( $* ))
12980 }'
12981else
12982 as_fn_arith ()
12983 {
12984 as_val=`expr "$@" || test $? -eq 1`
12985 }
12986fi # as_fn_arith
12987
3ed8e5b6 12988
5213506e
RW
12989if expr a : '\(a\)' >/dev/null 2>&1 &&
12990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
12991 as_expr=expr
12992else
12993 as_expr=false
12994fi
12995
5213506e 12996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
12997 as_basename=basename
12998else
12999 as_basename=false
13000fi
13001
5213506e
RW
13002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13003 as_dirname=dirname
13004else
13005 as_dirname=false
13006fi
3ed8e5b6 13007
5213506e 13008as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
13009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13010 X"$0" : 'X\(//\)$' \| \
5213506e
RW
13011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13012$as_echo X/"$0" |
13013 sed '/^.*\/\([^/][^/]*\)\/*$/{
13014 s//\1/
13015 q
13016 }
13017 /^X\/\(\/\/\)$/{
13018 s//\1/
13019 q
13020 }
13021 /^X\/\(\/\).*/{
13022 s//\1/
13023 q
13024 }
13025 s/.*/./; q'`
3ed8e5b6 13026
3ed8e5b6
AT
13027# Avoid depending upon Character Ranges.
13028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13031as_cr_digits='0123456789'
13032as_cr_alnum=$as_cr_Letters$as_cr_digits
13033
5213506e
RW
13034ECHO_C= ECHO_N= ECHO_T=
13035case `echo -n x` in #(((((
13036-n*)
13037 case `echo 'xy\c'` in
13038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13039 xy) ECHO_C='\c';;
13040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13041 ECHO_T=' ';;
13042 esac;;
13043*)
13044 ECHO_N='-n';;
3ed8e5b6
AT
13045esac
13046
5213506e
RW
13047rm -f conf$$ conf$$.exe conf$$.file
13048if test -d conf$$.dir; then
13049 rm -f conf$$.dir/conf$$.file
3ed8e5b6 13050else
5213506e
RW
13051 rm -f conf$$.dir
13052 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 13053fi
5213506e
RW
13054if (echo >conf$$.file) 2>/dev/null; then
13055 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 13056 as_ln_s='ln -s'
5213506e
RW
13057 # ... but there are two gotchas:
13058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13060 # In both cases, we have to default to `cp -p'.
13061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13062 as_ln_s='cp -p'
13063 elif ln conf$$.file conf$$ 2>/dev/null; then
13064 as_ln_s=ln
13065 else
13066 as_ln_s='cp -p'
7d45b968 13067 fi
3ed8e5b6
AT
13068else
13069 as_ln_s='cp -p'
13070fi
5213506e
RW
13071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13072rmdir conf$$.dir 2>/dev/null
13073
13074
13075# as_fn_mkdir_p
13076# -------------
13077# Create "$as_dir" as a directory, including parents if necessary.
13078as_fn_mkdir_p ()
13079{
13080
13081 case $as_dir in #(
13082 -*) as_dir=./$as_dir;;
13083 esac
13084 test -d "$as_dir" || eval $as_mkdir_p || {
13085 as_dirs=
13086 while :; do
13087 case $as_dir in #(
13088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13089 *) as_qdir=$as_dir;;
13090 esac
13091 as_dirs="'$as_qdir' $as_dirs"
13092 as_dir=`$as_dirname -- "$as_dir" ||
13093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13094 X"$as_dir" : 'X\(//\)[^/]' \| \
13095 X"$as_dir" : 'X\(//\)$' \| \
13096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13097$as_echo X"$as_dir" |
13098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13099 s//\1/
13100 q
13101 }
13102 /^X\(\/\/\)[^/].*/{
13103 s//\1/
13104 q
13105 }
13106 /^X\(\/\/\)$/{
13107 s//\1/
13108 q
13109 }
13110 /^X\(\/\).*/{
13111 s//\1/
13112 q
13113 }
13114 s/.*/./; q'`
13115 test -d "$as_dir" && break
13116 done
13117 test -z "$as_dirs" || eval "mkdir $as_dirs"
13118 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13119
3ed8e5b6 13120
5213506e 13121} # as_fn_mkdir_p
3ed8e5b6 13122if mkdir -p . 2>/dev/null; then
5213506e 13123 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
13124else
13125 test -d ./-p && rmdir ./-p
13126 as_mkdir_p=false
63e5e3e0
AG
13127fi
13128
5213506e
RW
13129if test -x / >/dev/null 2>&1; then
13130 as_test_x='test -x'
13131else
13132 if ls -dL / >/dev/null 2>&1; then
13133 as_ls_L_option=L
13134 else
13135 as_ls_L_option=
13136 fi
13137 as_test_x='
13138 eval sh -c '\''
13139 if test -d "$1"; then
13140 test -d "$1/.";
13141 else
13142 case $1 in #(
13143 -*)set "./$1";;
13144 esac;
13145 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13146 ???[sx]*):;;*)false;;esac;fi
13147 '\'' sh
13148 '
13149fi
13150as_executable_p=$as_test_x
3ed8e5b6
AT
13151
13152# Sed expression to map a string onto a valid CPP name.
13153as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13154
13155# Sed expression to map a string onto a valid variable name.
13156as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13157
13158
3ed8e5b6 13159exec 6>&1
5213506e
RW
13160## ----------------------------------- ##
13161## Main body of $CONFIG_STATUS script. ##
13162## ----------------------------------- ##
13163_ASEOF
13164test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13165
13166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13167# Save the log message, to keep $0 and so on meaningful, and to
3ed8e5b6 13168# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
13169# values after options handling.
13170ac_log="
b7b857bb 13171This file was extended by libffi $as_me 3.0.8, which was
5213506e 13172generated by GNU Autoconf 2.64. Invocation command line was
63e5e3e0 13173
3ed8e5b6
AT
13174 CONFIG_FILES = $CONFIG_FILES
13175 CONFIG_HEADERS = $CONFIG_HEADERS
13176 CONFIG_LINKS = $CONFIG_LINKS
13177 CONFIG_COMMANDS = $CONFIG_COMMANDS
13178 $ $0 $@
63e5e3e0 13179
5213506e
RW
13180on `(hostname || uname -n) 2>/dev/null | sed 1q`
13181"
13182
3ed8e5b6 13183_ACEOF
63e5e3e0 13184
5213506e
RW
13185case $ac_config_files in *"
13186"*) set x $ac_config_files; shift; ac_config_files=$*;;
13187esac
63e5e3e0 13188
5213506e
RW
13189case $ac_config_headers in *"
13190"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13191esac
63e5e3e0 13192
63e5e3e0 13193
5213506e
RW
13194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13195# Files that config.status was made for.
13196config_files="$ac_config_files"
13197config_headers="$ac_config_headers"
13198config_links="$ac_config_links"
13199config_commands="$ac_config_commands"
63e5e3e0 13200
5213506e 13201_ACEOF
63e5e3e0 13202
5213506e 13203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13204ac_cs_usage="\
5213506e
RW
13205\`$as_me' instantiates files and other configuration actions
13206from templates according to the current configuration. Unless the files
13207and actions are specified as TAGs, all are instantiated by default.
db2cd5e6 13208
5213506e 13209Usage: $0 [OPTION]... [TAG]...
db2cd5e6 13210
3ed8e5b6 13211 -h, --help print this help, then exit
5213506e
RW
13212 -V, --version print version number and configuration settings, then exit
13213 -q, --quiet, --silent
13214 do not print progress messages
3ed8e5b6
AT
13215 -d, --debug don't remove temporary files
13216 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
13217 --file=FILE[:TEMPLATE]
13218 instantiate the configuration file FILE
13219 --header=FILE[:TEMPLATE]
13220 instantiate the configuration header FILE
0721f64e 13221
3ed8e5b6
AT
13222Configuration files:
13223$config_files
ea81d2a3 13224
3ed8e5b6
AT
13225Configuration headers:
13226$config_headers
ea81d2a3 13227
3ed8e5b6
AT
13228Configuration links:
13229$config_links
ea81d2a3 13230
3ed8e5b6
AT
13231Configuration commands:
13232$config_commands
ea81d2a3 13233
5213506e 13234Report bugs to <http://gcc.gnu.org/bugs.html>."
3c18f2d1 13235
5213506e
RW
13236_ACEOF
13237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13238ac_cs_version="\\
b7b857bb 13239libffi config.status 3.0.8
5213506e
RW
13240configured by $0, generated by GNU Autoconf 2.64,
13241 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3ed8e5b6 13242
5213506e 13243Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
13244This config.status script is free software; the Free Software Foundation
13245gives unlimited permission to copy, distribute and modify it."
5213506e
RW
13246
13247ac_pwd='$ac_pwd'
13248srcdir='$srcdir'
13249INSTALL='$INSTALL'
13250MKDIR_P='$MKDIR_P'
13251AWK='$AWK'
13252test -n "\$AWK" || AWK=awk
3ed8e5b6
AT
13253_ACEOF
13254
5213506e
RW
13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256# The default lists apply if the user does not specify any file.
3ed8e5b6
AT
13257ac_need_defaults=:
13258while test $# != 0
13259do
13260 case $1 in
13261 --*=*)
5213506e
RW
13262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3ed8e5b6 13264 ac_shift=:
63e5e3e0 13265 ;;
5213506e 13266 *)
3ed8e5b6
AT
13267 ac_option=$1
13268 ac_optarg=$2
13269 ac_shift=shift
63e5e3e0 13270 ;;
3ed8e5b6
AT
13271 esac
13272
13273 case $ac_option in
13274 # Handling of the options.
3ed8e5b6
AT
13275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13276 ac_cs_recheck=: ;;
5213506e
RW
13277 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13278 $as_echo "$ac_cs_version"; exit ;;
13279 --debug | --debu | --deb | --de | --d | -d )
3ed8e5b6
AT
13280 debug=: ;;
13281 --file | --fil | --fi | --f )
13282 $ac_shift
5213506e
RW
13283 case $ac_optarg in
13284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13285 esac
13286 as_fn_append CONFIG_FILES " '$ac_optarg'"
3ed8e5b6
AT
13287 ac_need_defaults=false;;
13288 --header | --heade | --head | --hea )
13289 $ac_shift
5213506e
RW
13290 case $ac_optarg in
13291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13292 esac
13293 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3ed8e5b6 13294 ac_need_defaults=false;;
5213506e
RW
13295 --he | --h)
13296 # Conflict between --help and --header
13297 as_fn_error "ambiguous option: \`$1'
13298Try \`$0 --help' for more information.";;
13299 --help | --hel | -h )
13300 $as_echo "$ac_cs_usage"; exit ;;
3ed8e5b6
AT
13301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13303 ac_cs_silent=: ;;
63e5e3e0 13304
3ed8e5b6 13305 # This is an error.
5213506e
RW
13306 -*) as_fn_error "unrecognized option: \`$1'
13307Try \`$0 --help' for more information." ;;
63e5e3e0 13308
5213506e
RW
13309 *) as_fn_append ac_config_targets " $1"
13310 ac_need_defaults=false ;;
63e5e3e0 13311
3ed8e5b6
AT
13312 esac
13313 shift
13314done
63e5e3e0 13315
3ed8e5b6 13316ac_configure_extra_args=
63e5e3e0 13317
3ed8e5b6
AT
13318if $ac_cs_silent; then
13319 exec 6>/dev/null
13320 ac_configure_extra_args="$ac_configure_extra_args --silent"
13321fi
63e5e3e0 13322
3ed8e5b6 13323_ACEOF
5213506e 13324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13325if \$ac_cs_recheck; then
5213506e
RW
13326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13327 shift
13328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13329 CONFIG_SHELL='$SHELL'
13330 export CONFIG_SHELL
13331 exec "\$@"
3ed8e5b6 13332fi
63e5e3e0 13333
3ed8e5b6 13334_ACEOF
5213506e
RW
13335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13336exec 5>>config.log
13337{
13338 echo
13339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13340## Running $as_me. ##
13341_ASBOX
13342 $as_echo "$ac_log"
13343} >&5
13344
13345_ACEOF
13346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63e5e3e0 13347#
5213506e 13348# INIT-COMMANDS
63e5e3e0 13349#
63e5e3e0 13350
3ed8e5b6
AT
13351srcdir="$srcdir"
13352host="$host"
13353target="$target"
13354with_multisubdir="$with_multisubdir"
13355with_multisrctop="$with_multisrctop"
13356with_target_subdir="$with_target_subdir"
13357ac_configure_args="${multilib_arg} ${ac_configure_args}"
13358multi_basedir="$multi_basedir"
13359CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13360CC="$CC"
fe673cc9
AH
13361CXX="$CXX"
13362GFORTRAN="$GFORTRAN"
13363GCJ="$GCJ"
3ed8e5b6 13364AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13365
13366
13367# The HP-UX ksh and POSIX shell print the target directory to stdout
13368# if CDPATH is set.
13369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13370
13371sed_quote_subst='$sed_quote_subst'
13372double_quote_subst='$double_quote_subst'
13373delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
13374macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13375macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13376enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13377enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13378pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13379enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13380SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13381ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13382host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13383host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13384host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13385build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13386build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13387build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13388SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13389Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13390GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13391EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13392FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13393LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13394NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13395LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13396max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13397ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13398exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13399lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13400lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13401lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13402reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13403reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13404OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13405deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13406file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13407AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13408AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13409STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13410RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13411old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13412old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13413old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13414lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13415CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13416CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13417compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13418GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13419lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13420lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13421lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13422lt_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"`'
13423objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13424MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13425lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13426lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13427lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13428lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13429lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13430need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13431DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13432NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13433LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13434OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13435OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13436libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13437shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13438extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13439archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13440enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13441export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13442whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13443compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13444old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13445old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13446archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13447archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13448module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13449module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13450with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13451allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13452no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13453hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13454hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13455hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13456hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13457hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13458hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13459hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13460hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13461inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13462link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13463fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13464always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13465export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13466exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13467include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13468prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13469file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13470variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13471need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13472need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13473version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13474runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13475shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13476shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13477libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13478library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13479soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13480install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13481postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13482postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13483finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13484finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13485hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13486sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13487sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13488hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13489enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13490enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13491enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13492old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13493striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
13494
13495LTCC='$LTCC'
13496LTCFLAGS='$LTCFLAGS'
13497compiler='$compiler_DEFAULT'
13498
43e02a8a
RW
13499# A function that is used when there is no print builtin or printf.
13500func_fallback_echo ()
13501{
13502 eval 'cat <<_LTECHO_EOF
13503\$1
13504_LTECHO_EOF'
13505}
13506
1cf3d07d 13507# Quote evaled strings.
43e02a8a
RW
13508for var in SHELL \
13509ECHO \
13510SED \
1cf3d07d
SE
13511GREP \
13512EGREP \
13513FGREP \
13514LD \
13515NM \
13516LN_S \
13517lt_SP2NL \
13518lt_NL2SP \
13519reload_flag \
80c6c2cb 13520OBJDUMP \
1cf3d07d
SE
13521deplibs_check_method \
13522file_magic_cmd \
13523AR \
13524AR_FLAGS \
13525STRIP \
13526RANLIB \
13527CC \
13528CFLAGS \
13529compiler \
13530lt_cv_sys_global_symbol_pipe \
13531lt_cv_sys_global_symbol_to_cdecl \
13532lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 13533lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
13534lt_prog_compiler_no_builtin_flag \
13535lt_prog_compiler_wl \
13536lt_prog_compiler_pic \
13537lt_prog_compiler_static \
13538lt_cv_prog_compiler_c_o \
13539need_locks \
80c6c2cb
PG
13540DSYMUTIL \
13541NMEDIT \
13542LIPO \
13543OTOOL \
13544OTOOL64 \
1cf3d07d
SE
13545shrext_cmds \
13546export_dynamic_flag_spec \
13547whole_archive_flag_spec \
13548compiler_needs_object \
13549with_gnu_ld \
13550allow_undefined_flag \
13551no_undefined_flag \
13552hardcode_libdir_flag_spec \
13553hardcode_libdir_flag_spec_ld \
13554hardcode_libdir_separator \
13555fix_srcfile_path \
13556exclude_expsyms \
13557include_expsyms \
13558file_list_spec \
13559variables_saved_for_relink \
13560libname_spec \
13561library_names_spec \
13562soname_spec \
43e02a8a 13563install_override_mode \
1cf3d07d
SE
13564finish_eval \
13565old_striplib \
13566striplib; do
43e02a8a 13567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13568 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13570 ;;
13571 *)
13572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13573 ;;
13574 esac
13575done
13576
13577# Double-quote double-evaled strings.
13578for var in reload_cmds \
13579old_postinstall_cmds \
13580old_postuninstall_cmds \
13581old_archive_cmds \
13582extract_expsyms_cmds \
13583old_archive_from_new_cmds \
13584old_archive_from_expsyms_cmds \
13585archive_cmds \
13586archive_expsym_cmds \
13587module_cmds \
13588module_expsym_cmds \
13589export_symbols_cmds \
13590prelink_cmds \
13591postinstall_cmds \
13592postuninstall_cmds \
13593finish_cmds \
13594sys_lib_search_path_spec \
13595sys_lib_dlsearch_path_spec; do
43e02a8a 13596 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13597 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13598 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13599 ;;
13600 *)
13601 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13602 ;;
13603 esac
13604done
13605
1cf3d07d
SE
13606ac_aux_dir='$ac_aux_dir'
13607xsi_shell='$xsi_shell'
13608lt_shell_append='$lt_shell_append'
13609
13610# See if we are running on zsh, and set the options which allow our
13611# commands through without removal of \ escapes INIT.
13612if test -n "\${ZSH_VERSION+set}" ; then
13613 setopt NO_GLOB_SUBST
13614fi
13615
13616
13617 PACKAGE='$PACKAGE'
13618 VERSION='$VERSION'
13619 TIMESTAMP='$TIMESTAMP'
13620 RM='$RM'
13621 ofile='$ofile'
13622
13623
13624
3ed8e5b6
AT
13625TARGETDIR="$TARGETDIR"
13626
13627_ACEOF
13628
5213506e 13629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13630
5213506e 13631# Handling of arguments.
3ed8e5b6 13632for ac_config_target in $ac_config_targets
63e5e3e0 13633do
5213506e
RW
13634 case $ac_config_target in
13635 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13636 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13638 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13639 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13640 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13641 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13642 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13643 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13645 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13646 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13647
13648 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
63e5e3e0
AG
13649 esac
13650done
13651
5213506e 13652
3ed8e5b6
AT
13653# If the user did not use the arguments to specify the items to instantiate,
13654# then the envvar interface is used. Set only those that are not.
13655# We use the long form for the default assignment because of an extremely
13656# bizarre bug on SunOS 4.1.3.
13657if $ac_need_defaults; then
13658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13660 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13662fi
13663
13664# Have a temporary directory for convenience. Make it in the build tree
5213506e 13665# simply because there is no reason against having it here, and in addition,
3ed8e5b6 13666# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
13667# Hook for its removal unless debugging.
13668# Note that there is a small window in which the directory will not be cleaned:
13669# after its creation but before its name has been assigned to `$tmp'.
3ed8e5b6
AT
13670$debug ||
13671{
5213506e
RW
13672 tmp=
13673 trap 'exit_status=$?
13674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13675' 0
13676 trap 'as_fn_exit 1' 1 2 13 15
3ed8e5b6 13677}
3ed8e5b6 13678# Create a (secure) tmp directory for tmp files.
63e5e3e0 13679
3ed8e5b6 13680{
5213506e 13681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3ed8e5b6
AT
13682 test -n "$tmp" && test -d "$tmp"
13683} ||
13684{
5213506e
RW
13685 tmp=./conf$$-$RANDOM
13686 (umask 077 && mkdir "$tmp")
13687} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13688
13689# Set up the scripts for CONFIG_FILES section.
13690# No need to generate them if there are no CONFIG_FILES.
13691# This happens for instance with `./config.status config.h'.
13692if test -n "$CONFIG_FILES"; then
13693
13694
13695ac_cr=`echo X | tr X '\015'`
13696# On cygwin, bash can eat \r inside `` if the user requested igncr.
13697# But we know of no other shell where ac_cr would be empty at this
13698# point, so we can use a bashism as a fallback.
13699if test "x$ac_cr" = x; then
13700 eval ac_cr=\$\'\\r\'
13701fi
13702ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13703if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13704 ac_cs_awk_cr='\r'
13705else
13706 ac_cs_awk_cr=$ac_cr
13707fi
13708
13709echo 'BEGIN {' >"$tmp/subs1.awk" &&
13710_ACEOF
13711
13712
3ed8e5b6 13713{
5213506e
RW
13714 echo "cat >conf$$subs.awk <<_ACEOF" &&
13715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13716 echo "_ACEOF"
13717} >conf$$subs.sh ||
13718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13719ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13720ac_delim='%!_!# '
13721for ac_last_try in false false false false false :; do
13722 . ./conf$$subs.sh ||
13723 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13724
13725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13726 if test $ac_delim_n = $ac_delim_num; then
13727 break
13728 elif $ac_last_try; then
13729 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13730 else
13731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13732 fi
13733done
13734rm -f conf$$subs.sh
13735
13736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13738_ACEOF
13739sed -n '
13740h
13741s/^/S["/; s/!.*/"]=/
13742p
13743g
13744s/^[^!]*!//
13745:repl
13746t repl
13747s/'"$ac_delim"'$//
13748t delim
13749:nl
13750h
13751s/\(.\{148\}\).*/\1/
13752t more1
13753s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13754p
13755n
13756b repl
13757:more1
13758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13759p
13760g
13761s/.\{148\}//
13762t nl
13763:delim
13764h
13765s/\(.\{148\}\).*/\1/
13766t more2
13767s/["\\]/\\&/g; s/^/"/; s/$/"/
13768p
13769b
13770:more2
13771s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13772p
13773g
13774s/.\{148\}//
13775t delim
13776' <conf$$subs.awk | sed '
13777/^[^""]/{
13778 N
13779 s/\n//
3ed8e5b6 13780}
5213506e
RW
13781' >>$CONFIG_STATUS || ac_write_fail=1
13782rm -f conf$$subs.awk
13783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13784_ACAWK
13785cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13786 for (key in S) S_is_set[key] = 1
13787 FS = "\a"
3ed8e5b6 13788
5213506e
RW
13789}
13790{
13791 line = $ 0
13792 nfields = split(line, field, "@")
13793 substed = 0
13794 len = length(field[1])
13795 for (i = 2; i < nfields; i++) {
13796 key = field[i]
13797 keylen = length(key)
13798 if (S_is_set[key]) {
13799 value = S[key]
13800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13801 len += length(value) + length(field[++i])
13802 substed = 1
13803 } else
13804 len += 1 + keylen
13805 }
3ed8e5b6 13806
5213506e
RW
13807 print line
13808}
3ed8e5b6 13809
5213506e
RW
13810_ACAWK
13811_ACEOF
13812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13813if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13815else
13816 cat
13817fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13818 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13819_ACEOF
13820
13821# VPATH may cause trouble with some makes, so we remove $(srcdir),
13822# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13823# trailing colons and then remove the whole line if VPATH becomes empty
13824# (actually we leave an empty line to preserve line numbers).
13825if test "x$srcdir" = x.; then
13826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13827s/:*\$(srcdir):*/:/
13828s/:*\${srcdir}:*/:/
13829s/:*@srcdir@:*/:/
13830s/^\([^=]*=[ ]*\):*/\1/
13831s/:*$//
13832s/^[^=]*=[ ]*$//
13833}'
13834fi
63e5e3e0 13835
5213506e
RW
13836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13837fi # test -n "$CONFIG_FILES"
63e5e3e0 13838
5213506e
RW
13839# Set up the scripts for CONFIG_HEADERS section.
13840# No need to generate them if there are no CONFIG_HEADERS.
13841# This happens for instance with `./config.status Makefile'.
13842if test -n "$CONFIG_HEADERS"; then
13843cat >"$tmp/defines.awk" <<\_ACAWK ||
13844BEGIN {
3ed8e5b6
AT
13845_ACEOF
13846
5213506e
RW
13847# Transform confdefs.h into an awk script `defines.awk', embedded as
13848# here-document in config.status, that substitutes the proper values into
13849# config.h.in to produce config.h.
13850
13851# Create a delimiter string that does not exist in confdefs.h, to ease
13852# handling of long lines.
13853ac_delim='%!_!# '
13854for ac_last_try in false false :; do
13855 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13856 if test -z "$ac_t"; then
13857 break
13858 elif $ac_last_try; then
13859 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13860 else
13861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63e5e3e0 13862 fi
5213506e 13863done
63e5e3e0 13864
5213506e
RW
13865# For the awk script, D is an array of macro values keyed by name,
13866# likewise P contains macro parameters if any. Preserve backslash
13867# newline sequences.
13868
13869ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13870sed -n '
13871s/.\{148\}/&'"$ac_delim"'/g
13872t rset
13873:rset
13874s/^[ ]*#[ ]*define[ ][ ]*/ /
13875t def
13876d
13877:def
13878s/\\$//
13879t bsnl
13880s/["\\]/\\&/g
13881s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13882D["\1"]=" \3"/p
13883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13884d
13885:bsnl
13886s/["\\]/\\&/g
13887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13888D["\1"]=" \3\\\\\\n"\\/p
13889t cont
13890s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13891t cont
13892d
13893:cont
13894n
13895s/.\{148\}/&'"$ac_delim"'/g
13896t clear
13897:clear
13898s/\\$//
13899t bsnlc
13900s/["\\]/\\&/g; s/^/"/; s/$/"/p
13901d
13902:bsnlc
13903s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13904b cont
13905' <confdefs.h | sed '
13906s/'"$ac_delim"'/"\\\
13907"/g' >>$CONFIG_STATUS || ac_write_fail=1
13908
13909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 for (key in D) D_is_set[key] = 1
13911 FS = "\a"
13912}
13913/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13914 line = \$ 0
13915 split(line, arg, " ")
13916 if (arg[1] == "#") {
13917 defundef = arg[2]
13918 mac1 = arg[3]
13919 } else {
13920 defundef = substr(arg[1], 2)
13921 mac1 = arg[2]
13922 }
13923 split(mac1, mac2, "(") #)
13924 macro = mac2[1]
13925 prefix = substr(line, 1, index(line, defundef) - 1)
13926 if (D_is_set[macro]) {
13927 # Preserve the white space surrounding the "#".
13928 print prefix "define", macro P[macro] D[macro]
13929 next
13930 } else {
13931 # Replace #undef with comments. This is necessary, for example,
13932 # in the case of _POSIX_SOURCE, which is predefined and required
13933 # on some systems where configure will not decide to define it.
13934 if (defundef == "undef") {
13935 print "/*", prefix defundef, macro, "*/"
13936 next
13937 }
13938 }
13939}
13940{ print }
13941_ACAWK
3ed8e5b6 13942_ACEOF
5213506e
RW
13943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13945fi # test -n "$CONFIG_HEADERS"
13946
13947
13948eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
13949shift
13950for ac_tag
13951do
13952 case $ac_tag in
13953 :[FHLC]) ac_mode=$ac_tag; continue;;
13954 esac
13955 case $ac_mode$ac_tag in
13956 :[FHL]*:*);;
13957 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13958 :[FH]-) ac_tag=-:-;;
13959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13960 esac
13961 ac_save_IFS=$IFS
13962 IFS=:
13963 set x $ac_tag
13964 IFS=$ac_save_IFS
13965 shift
13966 ac_file=$1
13967 shift
13968
13969 case $ac_mode in
13970 :L) ac_source=$1;;
13971 :[FH])
13972 ac_file_inputs=
13973 for ac_f
13974 do
13975 case $ac_f in
13976 -) ac_f="$tmp/stdin";;
13977 *) # Look for the file first in the build tree, then in the source tree
13978 # (if the path is not absolute). The absolute path cannot be DOS-style,
13979 # because $ac_f cannot contain `:'.
13980 test -f "$ac_f" ||
13981 case $ac_f in
13982 [\\/$]*) false;;
13983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13984 esac ||
13985 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13986 esac
13987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13988 as_fn_append ac_file_inputs " '$ac_f'"
13989 done
13990
13991 # Let's still pretend it is `configure' which instantiates (i.e., don't
13992 # use $as_me), people would be surprised to read:
13993 # /* config.h. Generated by config.status. */
13994 configure_input='Generated from '`
13995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13996 `' by configure.'
13997 if test x"$ac_file" != x-; then
13998 configure_input="$ac_file. $configure_input"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14000$as_echo "$as_me: creating $ac_file" >&6;}
14001 fi
14002 # Neutralize special characters interpreted by sed in replacement strings.
14003 case $configure_input in #(
14004 *\&* | *\|* | *\\* )
14005 ac_sed_conf_input=`$as_echo "$configure_input" |
14006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14007 *) ac_sed_conf_input=$configure_input;;
14008 esac
14009
14010 case $ac_tag in
14011 *:-:* | *:-) cat >"$tmp/stdin" \
14012 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14013 esac
14014 ;;
63e5e3e0
AG
14015 esac
14016
5213506e 14017 ac_dir=`$as_dirname -- "$ac_file" ||
3ed8e5b6
AT
14018$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14019 X"$ac_file" : 'X\(//\)[^/]' \| \
14020 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14022$as_echo X"$ac_file" |
14023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14024 s//\1/
14025 q
14026 }
14027 /^X\(\/\/\)[^/].*/{
14028 s//\1/
14029 q
14030 }
14031 /^X\(\/\/\)$/{
14032 s//\1/
14033 q
14034 }
14035 /^X\(\/\).*/{
14036 s//\1/
14037 q
14038 }
14039 s/.*/./; q'`
14040 as_dir="$ac_dir"; as_fn_mkdir_p
3ed8e5b6
AT
14041 ac_builddir=.
14042
5213506e
RW
14043case "$ac_dir" in
14044.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14045*)
14046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14047 # A ".." for each directory in $ac_dir_suffix.
14048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14049 case $ac_top_builddir_sub in
14050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14052 esac ;;
14053esac
14054ac_abs_top_builddir=$ac_pwd
14055ac_abs_builddir=$ac_pwd$ac_dir_suffix
14056# for backward compatibility:
14057ac_top_builddir=$ac_top_build_prefix
63e5e3e0 14058
3ed8e5b6 14059case $srcdir in
5213506e 14060 .) # We are building in place.
3ed8e5b6 14061 ac_srcdir=.
5213506e
RW
14062 ac_top_srcdir=$ac_top_builddir_sub
14063 ac_abs_top_srcdir=$ac_pwd ;;
14064 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 14065 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14066 ac_top_srcdir=$srcdir
14067 ac_abs_top_srcdir=$srcdir ;;
14068 *) # Relative name.
14069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14070 ac_top_srcdir=$ac_top_build_prefix$srcdir
14071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 14072esac
5213506e 14073ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3ed8e5b6 14074
63e5e3e0 14075
5213506e
RW
14076 case $ac_mode in
14077 :F)
14078 #
14079 # CONFIG_FILE
14080 #
63e5e3e0 14081
3ed8e5b6
AT
14082 case $INSTALL in
14083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
14084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14085 esac
14086 ac_MKDIR_P=$MKDIR_P
14087 case $MKDIR_P in
14088 [\\/$]* | ?:[\\/]* ) ;;
14089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
63e5e3e0 14090 esac
5213506e 14091_ACEOF
63e5e3e0 14092
5213506e
RW
14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094# If the template does not know about datarootdir, expand it.
14095# FIXME: This hack should be removed a few years after 2.60.
14096ac_datarootdir_hack=; ac_datarootdir_seen=
14097ac_sed_dataroot='
14098/datarootdir/ {
14099 p
14100 q
14101}
14102/@datadir@/p
14103/@docdir@/p
14104/@infodir@/p
14105/@localedir@/p
14106/@mandir@/p'
14107case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14108*datarootdir*) ac_datarootdir_seen=yes;;
14109*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14111$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14112_ACEOF
14113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14114 ac_datarootdir_hack='
14115 s&@datadir@&$datadir&g
14116 s&@docdir@&$docdir&g
14117 s&@infodir@&$infodir&g
14118 s&@localedir@&$localedir&g
14119 s&@mandir@&$mandir&g
14120 s&\\\${datarootdir}&$datarootdir&g' ;;
14121esac
3ed8e5b6 14122_ACEOF
5213506e
RW
14123
14124# Neutralize VPATH when `$srcdir' = `.'.
14125# Shell code in configure.ac might set extrasub.
14126# FIXME: do we really want to maintain this feature?
14127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128ac_sed_extra="$ac_vpsub
3ed8e5b6
AT
14129$extrasub
14130_ACEOF
5213506e 14131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6
AT
14132:t
14133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14134s|@configure_input@|$ac_sed_conf_input|;t t
14135s&@top_builddir@&$ac_top_builddir_sub&;t t
14136s&@top_build_prefix@&$ac_top_build_prefix&;t t
14137s&@srcdir@&$ac_srcdir&;t t
14138s&@abs_srcdir@&$ac_abs_srcdir&;t t
14139s&@top_srcdir@&$ac_top_srcdir&;t t
14140s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14141s&@builddir@&$ac_builddir&;t t
14142s&@abs_builddir@&$ac_abs_builddir&;t t
14143s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14144s&@INSTALL@&$ac_INSTALL&;t t
14145s&@MKDIR_P@&$ac_MKDIR_P&;t t
14146$ac_datarootdir_hack
14147"
14148eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14149 || as_fn_error "could not create $ac_file" "$LINENO" 5
14150
14151test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14152 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14155which seems to be undefined. Please make sure it is defined." >&5
14156$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14157which seems to be undefined. Please make sure it is defined." >&2;}
14158
14159 rm -f "$tmp/stdin"
3ed8e5b6 14160 case $ac_file in
5213506e
RW
14161 -) cat "$tmp/out" && rm -f "$tmp/out";;
14162 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14163 esac \
14164 || as_fn_error "could not create $ac_file" "$LINENO" 5
14165 ;;
14166 :H)
14167 #
14168 # CONFIG_HEADER
14169 #
3ed8e5b6 14170 if test x"$ac_file" != x-; then
5213506e
RW
14171 {
14172 $as_echo "/* $configure_input */" \
14173 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14174 } >"$tmp/config.h" \
14175 || as_fn_error "could not create $ac_file" "$LINENO" 5
14176 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14178$as_echo "$as_me: $ac_file is unchanged" >&6;}
3ed8e5b6 14179 else
5213506e
RW
14180 rm -f "$ac_file"
14181 mv "$tmp/config.h" "$ac_file" \
14182 || as_fn_error "could not create $ac_file" "$LINENO" 5
3ed8e5b6
AT
14183 fi
14184 else
5213506e
RW
14185 $as_echo "/* $configure_input */" \
14186 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14187 || as_fn_error "could not create -" "$LINENO" 5
3ed8e5b6 14188 fi
5213506e
RW
14189# Compute "$ac_file"'s index in $config_headers.
14190_am_arg="$ac_file"
3ed8e5b6
AT
14191_am_stamp_count=1
14192for _am_header in $config_headers :; do
14193 case $_am_header in
5213506e 14194 $_am_arg | $_am_arg:* )
3ed8e5b6
AT
14195 break ;;
14196 * )
14197 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14198 esac
14199done
5213506e
RW
14200echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14201$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14202 X"$_am_arg" : 'X\(//\)[^/]' \| \
14203 X"$_am_arg" : 'X\(//\)$' \| \
14204 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14205$as_echo X"$_am_arg" |
14206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14207 s//\1/
14208 q
14209 }
14210 /^X\(\/\/\)[^/].*/{
14211 s//\1/
14212 q
14213 }
14214 /^X\(\/\/\)$/{
14215 s//\1/
14216 q
14217 }
14218 /^X\(\/\).*/{
14219 s//\1/
14220 q
14221 }
14222 s/.*/./; q'`/stamp-h$_am_stamp_count
14223 ;;
14224 :L)
14225 #
14226 # CONFIG_LINK
14227 #
1450eb7a 14228
5213506e
RW
14229 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14230 :
1450eb7a 14231 else
5213506e
RW
14232 # Prefer the file from the source tree if names are identical.
14233 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14234 ac_source=$srcdir/$ac_source
14235 fi
3ed8e5b6 14236
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14238$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
3ed8e5b6 14239
5213506e
RW
14240 if test ! -r "$ac_source"; then
14241 as_fn_error "$ac_source: file not found" "$LINENO" 5
14242 fi
14243 rm -f "$ac_file"
1450eb7a 14244
5213506e
RW
14245 # Try a relative symlink, then a hard link, then a copy.
14246 case $srcdir in
14247 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14248 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14249 esac
14250 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14251 ln "$ac_source" "$ac_file" 2>/dev/null ||
14252 cp -p "$ac_source" "$ac_file" ||
14253 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14254 fi
14255 ;;
14256 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14257$as_echo "$as_me: executing $ac_file commands" >&6;}
14258 ;;
1450eb7a
AT
14259 esac
14260
63e5e3e0 14261
5213506e
RW
14262 case $ac_file$ac_mode in
14263 "default-1":C)
3ed8e5b6
AT
14264# Only add multilib support code if we just rebuilt the top-level
14265# Makefile.
14266case " $CONFIG_FILES " in
14267 *" Makefile "*)
14268 ac_file=Makefile . ${multi_basedir}/config-ml.in
14269 ;;
14270esac ;;
5213506e
RW
14271 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14272 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14273 # are listed without --file. Let's play safe and only enable the eval
14274 # if we detect the quoting.
14275 case $CONFIG_FILES in
14276 *\'*) eval set x "$CONFIG_FILES" ;;
14277 *) set x $CONFIG_FILES ;;
14278 esac
14279 shift
14280 for mf
14281 do
14282 # Strip MF so we end up with the name of the file.
14283 mf=`echo "$mf" | sed -e 's/:.*$//'`
14284 # Check whether this is an Automake generated Makefile or not.
14285 # We used to match only the files named `Makefile.in', but
14286 # some people rename them; so instead we look at the file content.
14287 # Grep'ing the first line is not enough: some people post-process
14288 # each Makefile.in and add a new line on top of each file to say so.
14289 # Grep'ing the whole file is not good either: AIX grep has a line
14290 # limit of 2048, but all sed's we know have understand at least 4000.
14291 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14292 dirpart=`$as_dirname -- "$mf" ||
3ed8e5b6
AT
14293$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14294 X"$mf" : 'X\(//\)[^/]' \| \
14295 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
14296 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14297$as_echo X"$mf" |
14298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14299 s//\1/
14300 q
14301 }
14302 /^X\(\/\/\)[^/].*/{
14303 s//\1/
14304 q
14305 }
14306 /^X\(\/\/\)$/{
14307 s//\1/
14308 q
14309 }
14310 /^X\(\/\).*/{
14311 s//\1/
14312 q
14313 }
14314 s/.*/./; q'`
14315 else
14316 continue
14317 fi
14318 # Extract the definition of DEPDIR, am__include, and am__quote
14319 # from the Makefile without running `make'.
14320 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14321 test -z "$DEPDIR" && continue
14322 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14323 test -z "am__include" && continue
14324 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14325 # When using ansi2knr, U may be empty or an underscore; expand it
14326 U=`sed -n 's/^U = //p' < "$mf"`
14327 # Find all dependency output files, they are included files with
14328 # $(DEPDIR) in their names. We invoke sed twice because it is the
14329 # simplest approach to changing $(DEPDIR) to its actual value in the
14330 # expansion.
14331 for file in `sed -n "
14332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14334 # Make sure the directory exists.
14335 test -f "$dirpart/$file" && continue
14336 fdir=`$as_dirname -- "$file" ||
3ed8e5b6
AT
14337$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14338 X"$file" : 'X\(//\)[^/]' \| \
14339 X"$file" : 'X\(//\)$' \| \
5213506e
RW
14340 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14341$as_echo X"$file" |
14342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14343 s//\1/
14344 q
14345 }
14346 /^X\(\/\/\)[^/].*/{
14347 s//\1/
14348 q
14349 }
14350 /^X\(\/\/\)$/{
14351 s//\1/
14352 q
14353 }
14354 /^X\(\/\).*/{
14355 s//\1/
14356 q
14357 }
14358 s/.*/./; q'`
14359 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14360 # echo "creating $dirpart/$file"
14361 echo '# dummy' > "$dirpart/$file"
3ed8e5b6 14362 done
3ed8e5b6 14363 done
5213506e 14364}
1cf3d07d 14365 ;;
5213506e 14366 "libtool":C)
1cf3d07d
SE
14367
14368 # See if we are running on zsh, and set the options which allow our
14369 # commands through without removal of \ escapes.
14370 if test -n "${ZSH_VERSION+set}" ; then
14371 setopt NO_GLOB_SUBST
14372 fi
14373
14374 cfgfile="${ofile}T"
14375 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14376 $RM "$cfgfile"
14377
14378 cat <<_LT_EOF >> "$cfgfile"
14379#! $SHELL
14380
14381# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 14382# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
14383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14384# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14385#
80c6c2cb 14386# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 14387# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
80c6c2cb 14388# Written by Gordon Matzigkeit, 1996
1cf3d07d 14389#
80c6c2cb 14390# This file is part of GNU Libtool.
1cf3d07d 14391#
80c6c2cb
PG
14392# GNU Libtool is free software; you can redistribute it and/or
14393# modify it under the terms of the GNU General Public License as
14394# published by the Free Software Foundation; either version 2 of
14395# the License, or (at your option) any later version.
1cf3d07d 14396#
80c6c2cb
PG
14397# As a special exception to the GNU General Public License,
14398# if you distribute this file as part of a program or library that
14399# is built using GNU Libtool, you may include this file under the
14400# same distribution terms that you use for the rest of that program.
1cf3d07d 14401#
80c6c2cb
PG
14402# GNU Libtool is distributed in the hope that it will be useful,
14403# but WITHOUT ANY WARRANTY; without even the implied warranty of
14404# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14405# GNU General Public License for more details.
1cf3d07d 14406#
80c6c2cb
PG
14407# You should have received a copy of the GNU General Public License
14408# along with GNU Libtool; see the file COPYING. If not, a copy
14409# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14410# obtained by writing to the Free Software Foundation, Inc.,
14411# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
14412
14413
14414# The names of the tagged configurations supported by this script.
14415available_tags=""
14416
14417# ### BEGIN LIBTOOL CONFIG
14418
14419# Which release of libtool.m4 was used?
14420macro_version=$macro_version
14421macro_revision=$macro_revision
14422
14423# Whether or not to build shared libraries.
14424build_libtool_libs=$enable_shared
14425
14426# Whether or not to build static libraries.
14427build_old_libs=$enable_static
14428
14429# What type of objects to build.
14430pic_mode=$pic_mode
14431
14432# Whether or not to optimize for fast installation.
14433fast_install=$enable_fast_install
14434
43e02a8a
RW
14435# Shell to use when invoking shell scripts.
14436SHELL=$lt_SHELL
14437
14438# An echo program that protects backslashes.
14439ECHO=$lt_ECHO
14440
1cf3d07d
SE
14441# The host system.
14442host_alias=$host_alias
14443host=$host
14444host_os=$host_os
14445
14446# The build system.
14447build_alias=$build_alias
14448build=$build
14449build_os=$build_os
14450
14451# A sed program that does not truncate output.
14452SED=$lt_SED
14453
14454# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14455Xsed="\$SED -e 1s/^X//"
14456
14457# A grep program that handles long lines.
14458GREP=$lt_GREP
14459
14460# An ERE matcher.
14461EGREP=$lt_EGREP
14462
14463# A literal string matcher.
14464FGREP=$lt_FGREP
14465
14466# A BSD- or MS-compatible name lister.
14467NM=$lt_NM
14468
14469# Whether we need soft or hard links.
14470LN_S=$lt_LN_S
14471
14472# What is the maximum length of a command?
14473max_cmd_len=$max_cmd_len
14474
14475# Object file suffix (normally "o").
14476objext=$ac_objext
14477
14478# Executable file suffix (normally "").
14479exeext=$exeext
14480
14481# whether the shell understands "unset".
14482lt_unset=$lt_unset
14483
14484# turn spaces into newlines.
14485SP2NL=$lt_lt_SP2NL
14486
14487# turn newlines into spaces.
14488NL2SP=$lt_lt_NL2SP
14489
80c6c2cb
PG
14490# An object symbol dumper.
14491OBJDUMP=$lt_OBJDUMP
14492
1cf3d07d
SE
14493# Method to check whether dependent libraries are shared objects.
14494deplibs_check_method=$lt_deplibs_check_method
14495
14496# Command to use when deplibs_check_method == "file_magic".
14497file_magic_cmd=$lt_file_magic_cmd
14498
14499# The archiver.
14500AR=$lt_AR
14501AR_FLAGS=$lt_AR_FLAGS
14502
14503# A symbol stripping program.
14504STRIP=$lt_STRIP
14505
14506# Commands used to install an old-style archive.
14507RANLIB=$lt_RANLIB
14508old_postinstall_cmds=$lt_old_postinstall_cmds
14509old_postuninstall_cmds=$lt_old_postuninstall_cmds
14510
43e02a8a
RW
14511# Whether to use a lock for old archive extraction.
14512lock_old_archive_extraction=$lock_old_archive_extraction
14513
1cf3d07d
SE
14514# A C compiler.
14515LTCC=$lt_CC
14516
14517# LTCC compiler flags.
14518LTCFLAGS=$lt_CFLAGS
14519
14520# Take the output of nm and produce a listing of raw symbols and C names.
14521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14522
14523# Transform the output of nm in a proper C declaration.
14524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14525
14526# Transform the output of nm in a C name address pair.
14527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14528
80c6c2cb
PG
14529# Transform the output of nm in a C name address pair when lib prefix is needed.
14530global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14531
1cf3d07d
SE
14532# The name of the directory that contains temporary libtool files.
14533objdir=$objdir
14534
1cf3d07d
SE
14535# Used to examine libraries when file_magic_cmd begins with "file".
14536MAGIC_CMD=$MAGIC_CMD
14537
14538# Must we lock files when doing compilation?
14539need_locks=$lt_need_locks
14540
80c6c2cb
PG
14541# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14542DSYMUTIL=$lt_DSYMUTIL
14543
14544# Tool to change global to local symbols on Mac OS X.
14545NMEDIT=$lt_NMEDIT
14546
14547# Tool to manipulate fat objects and archives on Mac OS X.
14548LIPO=$lt_LIPO
14549
14550# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14551OTOOL=$lt_OTOOL
14552
14553# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14554OTOOL64=$lt_OTOOL64
14555
1cf3d07d
SE
14556# Old archive suffix (normally "a").
14557libext=$libext
14558
14559# Shared library suffix (normally ".so").
14560shrext_cmds=$lt_shrext_cmds
14561
14562# The commands to extract the exported symbol list from a shared archive.
14563extract_expsyms_cmds=$lt_extract_expsyms_cmds
14564
14565# Variables whose values should be saved in libtool wrapper scripts and
14566# restored at link time.
14567variables_saved_for_relink=$lt_variables_saved_for_relink
14568
14569# Do we need the "lib" prefix for modules?
14570need_lib_prefix=$need_lib_prefix
14571
14572# Do we need a version for libraries?
14573need_version=$need_version
14574
14575# Library versioning type.
14576version_type=$version_type
14577
14578# Shared library runtime path variable.
14579runpath_var=$runpath_var
14580
14581# Shared library path variable.
14582shlibpath_var=$shlibpath_var
14583
14584# Is shlibpath searched before the hard-coded library search path?
14585shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14586
14587# Format of library name prefix.
14588libname_spec=$lt_libname_spec
14589
14590# List of archive names. First name is the real one, the rest are links.
14591# The last name is the one that the linker finds with -lNAME
14592library_names_spec=$lt_library_names_spec
14593
14594# The coded name of the library, if different from the real name.
14595soname_spec=$lt_soname_spec
14596
43e02a8a
RW
14597# Permission mode override for installation of shared libraries.
14598install_override_mode=$lt_install_override_mode
14599
1cf3d07d
SE
14600# Command to use after installation of a shared archive.
14601postinstall_cmds=$lt_postinstall_cmds
14602
14603# Command to use after uninstallation of a shared archive.
14604postuninstall_cmds=$lt_postuninstall_cmds
14605
14606# Commands used to finish a libtool library installation in a directory.
14607finish_cmds=$lt_finish_cmds
14608
14609# As "finish_cmds", except a single script fragment to be evaled but
14610# not shown.
14611finish_eval=$lt_finish_eval
14612
14613# Whether we should hardcode library paths into libraries.
14614hardcode_into_libs=$hardcode_into_libs
14615
14616# Compile-time system search path for libraries.
14617sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14618
14619# Run-time system search path for libraries.
14620sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14621
14622# Whether dlopen is supported.
14623dlopen_support=$enable_dlopen
14624
14625# Whether dlopen of programs is supported.
14626dlopen_self=$enable_dlopen_self
14627
14628# Whether dlopen of statically linked programs is supported.
14629dlopen_self_static=$enable_dlopen_self_static
14630
14631# Commands to strip libraries.
14632old_striplib=$lt_old_striplib
14633striplib=$lt_striplib
14634
14635
14636# The linker used to build libraries.
14637LD=$lt_LD
14638
43e02a8a
RW
14639# How to create reloadable object files.
14640reload_flag=$lt_reload_flag
14641reload_cmds=$lt_reload_cmds
14642
1cf3d07d
SE
14643# Commands used to build an old-style archive.
14644old_archive_cmds=$lt_old_archive_cmds
14645
14646# A language specific compiler.
14647CC=$lt_compiler
14648
14649# Is the compiler the GNU compiler?
14650with_gcc=$GCC
14651
14652# Compiler flag to turn off builtin functions.
14653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14654
14655# How to pass a linker flag through the compiler.
14656wl=$lt_lt_prog_compiler_wl
14657
14658# Additional compiler flags for building library objects.
14659pic_flag=$lt_lt_prog_compiler_pic
14660
14661# Compiler flag to prevent dynamic linking.
14662link_static_flag=$lt_lt_prog_compiler_static
14663
14664# Does compiler simultaneously support -c and -o options?
14665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14666
14667# Whether or not to add -lc for building shared libraries.
14668build_libtool_need_lc=$archive_cmds_need_lc
14669
14670# Whether or not to disallow shared libs when runtime libs are static.
14671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14672
14673# Compiler flag to allow reflexive dlopens.
14674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14675
14676# Compiler flag to generate shared objects directly from archives.
14677whole_archive_flag_spec=$lt_whole_archive_flag_spec
14678
14679# Whether the compiler copes with passing no objects directly.
14680compiler_needs_object=$lt_compiler_needs_object
14681
14682# Create an old-style archive from a shared archive.
14683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14684
14685# Create a temporary old-style archive to link instead of a shared archive.
14686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14687
14688# Commands used to build a shared archive.
14689archive_cmds=$lt_archive_cmds
14690archive_expsym_cmds=$lt_archive_expsym_cmds
14691
14692# Commands used to build a loadable module if different from building
14693# a shared archive.
14694module_cmds=$lt_module_cmds
14695module_expsym_cmds=$lt_module_expsym_cmds
14696
14697# Whether we are building with GNU ld or not.
14698with_gnu_ld=$lt_with_gnu_ld
14699
14700# Flag that allows shared libraries with undefined symbols to be built.
14701allow_undefined_flag=$lt_allow_undefined_flag
14702
14703# Flag that enforces no undefined symbols.
14704no_undefined_flag=$lt_no_undefined_flag
14705
14706# Flag to hardcode \$libdir into a binary during linking.
14707# This must work even if \$libdir does not exist
14708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14709
14710# If ld is used when linking, flag to hardcode \$libdir into a binary
14711# during linking. This must work even if \$libdir does not exist.
14712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14713
14714# Whether we need a single "-rpath" flag with a separated argument.
14715hardcode_libdir_separator=$lt_hardcode_libdir_separator
14716
14717# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14718# DIR into the resulting binary.
14719hardcode_direct=$hardcode_direct
14720
14721# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14722# DIR into the resulting binary and the resulting library dependency is
14723# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14724# library is relocated.
14725hardcode_direct_absolute=$hardcode_direct_absolute
14726
14727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14728# into the resulting binary.
14729hardcode_minus_L=$hardcode_minus_L
14730
14731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14732# into the resulting binary.
14733hardcode_shlibpath_var=$hardcode_shlibpath_var
14734
14735# Set to "yes" if building a shared library automatically hardcodes DIR
14736# into the library and all subsequent libraries and executables linked
14737# against it.
14738hardcode_automatic=$hardcode_automatic
14739
14740# Set to yes if linker adds runtime paths of dependent libraries
14741# to runtime path list.
14742inherit_rpath=$inherit_rpath
14743
14744# Whether libtool must link a program against all its dependency libraries.
14745link_all_deplibs=$link_all_deplibs
14746
14747# Fix the shell variable \$srcfile for the compiler.
14748fix_srcfile_path=$lt_fix_srcfile_path
14749
14750# Set to "yes" if exported symbols are required.
14751always_export_symbols=$always_export_symbols
14752
14753# The commands to list exported symbols.
14754export_symbols_cmds=$lt_export_symbols_cmds
14755
14756# Symbols that should not be listed in the preloaded symbols.
14757exclude_expsyms=$lt_exclude_expsyms
14758
14759# Symbols that must always be exported.
14760include_expsyms=$lt_include_expsyms
14761
14762# Commands necessary for linking programs (against libraries) with templates.
14763prelink_cmds=$lt_prelink_cmds
14764
14765# Specify filename containing input files.
14766file_list_spec=$lt_file_list_spec
14767
14768# How to hardcode a shared library path into an executable.
14769hardcode_action=$hardcode_action
14770
14771# ### END LIBTOOL CONFIG
14772
14773_LT_EOF
14774
14775 case $host_os in
14776 aix3*)
14777 cat <<\_LT_EOF >> "$cfgfile"
14778# AIX sometimes has problems with the GCC collect2 program. For some
14779# reason, if we set the COLLECT_NAMES environment variable, the problems
14780# vanish in a puff of smoke.
14781if test "X${COLLECT_NAMES+set}" != Xset; then
14782 COLLECT_NAMES=
14783 export COLLECT_NAMES
14784fi
14785_LT_EOF
14786 ;;
14787 esac
14788
14789
14790ltmain="$ac_aux_dir/ltmain.sh"
14791
14792
14793 # We use sed instead of cat because bash on DJGPP gets confused if
14794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14795 # text mode, it properly converts lines to CR/LF. This bash problem
14796 # is reportedly fixed, but why not run on old versions too?
14797 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14798 || (rm -f "$cfgfile"; exit 1)
14799
14800 case $xsi_shell in
14801 yes)
14802 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 14803
1cf3d07d
SE
14804# func_dirname file append nondir_replacement
14805# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14806# otherwise set result to NONDIR_REPLACEMENT.
14807func_dirname ()
14808{
14809 case ${1} in
14810 */*) func_dirname_result="${1%/*}${2}" ;;
14811 * ) func_dirname_result="${3}" ;;
14812 esac
14813}
14814
14815# func_basename file
14816func_basename ()
14817{
14818 func_basename_result="${1##*/}"
14819}
14820
80c6c2cb
PG
14821# func_dirname_and_basename file append nondir_replacement
14822# perform func_basename and func_dirname in a single function
14823# call:
14824# dirname: Compute the dirname of FILE. If nonempty,
14825# add APPEND to the result, otherwise set result
14826# to NONDIR_REPLACEMENT.
14827# value returned in "$func_dirname_result"
14828# basename: Compute filename of FILE.
14829# value retuned in "$func_basename_result"
14830# Implementation must be kept synchronized with func_dirname
14831# and func_basename. For efficiency, we do not delegate to
14832# those functions but instead duplicate the functionality here.
14833func_dirname_and_basename ()
14834{
14835 case ${1} in
14836 */*) func_dirname_result="${1%/*}${2}" ;;
14837 * ) func_dirname_result="${3}" ;;
14838 esac
14839 func_basename_result="${1##*/}"
14840}
14841
1cf3d07d
SE
14842# func_stripname prefix suffix name
14843# strip PREFIX and SUFFIX off of NAME.
14844# PREFIX and SUFFIX must not contain globbing or regex special
14845# characters, hashes, percent signs, but SUFFIX may contain a leading
14846# dot (in which case that matches only a dot).
14847func_stripname ()
14848{
14849 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14850 # positional parameters, so assign one to ordinary parameter first.
14851 func_stripname_result=${3}
14852 func_stripname_result=${func_stripname_result#"${1}"}
14853 func_stripname_result=${func_stripname_result%"${2}"}
14854}
14855
14856# func_opt_split
14857func_opt_split ()
14858{
14859 func_opt_split_opt=${1%%=*}
14860 func_opt_split_arg=${1#*=}
14861}
14862
14863# func_lo2o object
14864func_lo2o ()
14865{
14866 case ${1} in
14867 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14868 *) func_lo2o_result=${1} ;;
14869 esac
14870}
80c6c2cb
PG
14871
14872# func_xform libobj-or-source
14873func_xform ()
14874{
14875 func_xform_result=${1%.*}.lo
14876}
14877
14878# func_arith arithmetic-term...
14879func_arith ()
14880{
14881 func_arith_result=$(( $* ))
14882}
14883
14884# func_len string
14885# STRING may not start with a hyphen.
14886func_len ()
14887{
14888 func_len_result=${#1}
14889}
14890
1cf3d07d
SE
14891_LT_EOF
14892 ;;
14893 *) # Bourne compatible functions.
14894 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 14895
1cf3d07d
SE
14896# func_dirname file append nondir_replacement
14897# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14898# otherwise set result to NONDIR_REPLACEMENT.
14899func_dirname ()
14900{
14901 # Extract subdirectory from the argument.
43e02a8a 14902 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
14903 if test "X$func_dirname_result" = "X${1}"; then
14904 func_dirname_result="${3}"
14905 else
14906 func_dirname_result="$func_dirname_result${2}"
14907 fi
14908}
14909
14910# func_basename file
14911func_basename ()
14912{
43e02a8a 14913 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
14914}
14915
80c6c2cb 14916
1cf3d07d
SE
14917# func_stripname prefix suffix name
14918# strip PREFIX and SUFFIX off of NAME.
14919# PREFIX and SUFFIX must not contain globbing or regex special
14920# characters, hashes, percent signs, but SUFFIX may contain a leading
14921# dot (in which case that matches only a dot).
14922# func_strip_suffix prefix name
14923func_stripname ()
14924{
14925 case ${2} in
43e02a8a
RW
14926 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14927 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
14928 esac
14929}
14930
14931# sed scripts:
14932my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14933my_sed_long_arg='1s/^-[^=]*=//'
14934
14935# func_opt_split
14936func_opt_split ()
14937{
43e02a8a
RW
14938 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14939 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
14940}
14941
14942# func_lo2o object
14943func_lo2o ()
14944{
43e02a8a 14945 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 14946}
80c6c2cb
PG
14947
14948# func_xform libobj-or-source
14949func_xform ()
14950{
43e02a8a 14951 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
80c6c2cb
PG
14952}
14953
14954# func_arith arithmetic-term...
14955func_arith ()
14956{
14957 func_arith_result=`expr "$@"`
14958}
14959
14960# func_len string
14961# STRING may not start with a hyphen.
14962func_len ()
14963{
14964 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14965}
14966
1cf3d07d
SE
14967_LT_EOF
14968esac
14969
14970case $lt_shell_append in
14971 yes)
14972 cat << \_LT_EOF >> "$cfgfile"
14973
14974# func_append var value
14975# Append VALUE to the end of shell variable VAR.
14976func_append ()
14977{
14978 eval "$1+=\$2"
14979}
14980_LT_EOF
14981 ;;
14982 *)
14983 cat << \_LT_EOF >> "$cfgfile"
14984
14985# func_append var value
14986# Append VALUE to the end of shell variable VAR.
14987func_append ()
14988{
14989 eval "$1=\$$1\$2"
14990}
80c6c2cb 14991
1cf3d07d
SE
14992_LT_EOF
14993 ;;
14994 esac
14995
14996
14997 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14998 || (rm -f "$cfgfile"; exit 1)
14999
15000 mv -f "$cfgfile" "$ofile" ||
15001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15002 chmod +x "$ofile"
15003
3ed8e5b6 15004 ;;
5213506e
RW
15005 "include":C) test -d include || mkdir include ;;
15006 "src":C)
3ed8e5b6
AT
15007test -d src || mkdir src
15008test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15009 ;;
5213506e 15010
3ed8e5b6 15011 esac
5213506e 15012done # for ac_tag
3ed8e5b6 15013
3ed8e5b6 15014
5213506e 15015as_fn_exit 0
3ed8e5b6 15016_ACEOF
3ed8e5b6
AT
15017ac_clean_files=$ac_clean_files_save
15018
5213506e
RW
15019test $ac_write_fail = 0 ||
15020 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15021
3ed8e5b6
AT
15022
15023# configure is writing to config.log, and then calls config.status.
15024# config.status does its own redirection, appending to config.log.
15025# Unfortunately, on DOS this fails, as config.log is still kept open
15026# by configure, so config.status won't be able to write to it; its
15027# output is simply discarded. So we exec the FD to /dev/null,
15028# effectively closing config.log, so it can be properly (re)opened and
15029# appended to by config.status. When coming back to configure, we
15030# need to make the FD available again.
15031if test "$no_create" != yes; then
15032 ac_cs_success=:
15033 ac_config_status_args=
15034 test "$silent" = yes &&
15035 ac_config_status_args="$ac_config_status_args --quiet"
15036 exec 5>/dev/null
15037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15038 exec 5>>config.log
15039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15040 # would make configure fail if this is the last instruction.
5213506e
RW
15041 $ac_cs_success || as_fn_exit $?
15042fi
15043if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15045$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3ed8e5b6 15046fi
63e5e3e0 15047