]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
Mark prs in changelog entry
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
b1760f7f 3# Generated by GNU Autoconf 2.64 for libffi 3.99999.
3ed8e5b6 4#
b1760f7f 5# Report bugs to <http://github.com/atgreen/libffi/issues>.
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 239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
b1760f7f
RH
240$0: http://github.com/atgreen/libffi/issues about your
241$0: system, including any error possibly output before this
5213506e
RW
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'
b1760f7f
RH
562PACKAGE_VERSION='3.99999'
563PACKAGE_STRING='libffi 3.99999'
564PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
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
b4b575ce
AG
609FFI_DEBUG_FALSE
610FFI_DEBUG_TRUE
b1760f7f 611TARGET_OBJ
5213506e
RW
612TARGETDIR
613TARGET
b4b575ce
AG
614FFI_EXEC_TRAMPOLINE_TABLE
615FFI_EXEC_TRAMPOLINE_TABLE_FALSE
616FFI_EXEC_TRAMPOLINE_TABLE_TRUE
e73d2479 617HAVE_LONG_DOUBLE_VARIANT
5213506e
RW
618HAVE_LONG_DOUBLE
619ALLOCA
a761df3d 620AM_LTLDFLAGS
5213506e
RW
621AM_RUNTESTFLAGS
622TESTSUBDIR_FALSE
623TESTSUBDIR_TRUE
624MAINT
625MAINTAINER_MODE_FALSE
626MAINTAINER_MODE_TRUE
b1760f7f 627CXXCPP
5213506e
RW
628CPP
629OTOOL64
630OTOOL
631LIPO
632NMEDIT
633DSYMUTIL
5213506e
RW
634RANLIB
635AR
636OBJDUMP
637LN_S
638NM
639ac_ct_DUMPBIN
640DUMPBIN
641LD
642FGREP
643EGREP
644GREP
645SED
646LIBTOOL
647am__fastdepCCAS_FALSE
648am__fastdepCCAS_TRUE
649CCASDEPMODE
650CCASFLAGS
651CCAS
b1760f7f
RH
652am__fastdepCXX_FALSE
653am__fastdepCXX_TRUE
654CXXDEPMODE
655ac_ct_CXX
656CXXFLAGS
657CXX
5213506e
RW
658am__fastdepCC_FALSE
659am__fastdepCC_TRUE
660CCDEPMODE
661AMDEPBACKSLASH
662AMDEP_FALSE
663AMDEP_TRUE
664am__quote
665am__include
666DEPDIR
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
4e70f25f
AS
674GENINSRC_FALSE
675GENINSRC_TRUE
676BUILD_INFO_FALSE
677BUILD_INFO_TRUE
5213506e
RW
678am__untar
679am__tar
680AMTAR
681am__leading_dot
682SET_MAKE
683AWK
684mkdir_p
685MKDIR_P
686INSTALL_STRIP_PROGRAM
687STRIP
688install_sh
689MAKEINFO
690AUTOHEADER
691AUTOMAKE
692AUTOCONF
693ACLOCAL
694VERSION
695PACKAGE
696CYGPATH_W
697am__isrc
698INSTALL_DATA
699INSTALL_SCRIPT
700INSTALL_PROGRAM
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713multi_basedir
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
3ed8e5b6 752ac_subst_files=''
5213506e
RW
753ac_user_opts='
754enable_option_checking
755enable_multilib
4e70f25f 756enable_generated_files_in_srcdir
5213506e
RW
757enable_dependency_tracking
758enable_shared
759enable_static
760with_pic
761enable_fast_install
762with_gnu_ld
763enable_libtool_lock
764enable_maintainer_mode
b4b575ce 765enable_pax_emutramp
5213506e
RW
766enable_debug
767enable_structs
768enable_raw_api
769enable_purify_safety
770'
771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CCAS
775CCASFLAGS
776CPP
b1760f7f
RH
777CPPFLAGS
778CXXCPP'
5213506e 779
63e5e3e0
AG
780
781# Initialize some variables set by options.
3ed8e5b6
AT
782ac_init_help=
783ac_init_version=false
5213506e
RW
784ac_unrecognized_opts=
785ac_unrecognized_sep=
63e5e3e0
AG
786# The variables have the same names as the options, with
787# dashes changed to underlines.
3ed8e5b6 788cache_file=/dev/null
63e5e3e0 789exec_prefix=NONE
63e5e3e0 790no_create=
63e5e3e0
AG
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
63e5e3e0
AG
799verbose=
800x_includes=NONE
801x_libraries=NONE
3ed8e5b6
AT
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 808# (The list follows the same order as the GNU Coding Standards.)
63e5e3e0
AG
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
5213506e
RW
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
63e5e3e0
AG
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
63e5e3e0
AG
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
5213506e
RW
819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
63e5e3e0 828
63e5e3e0 829ac_prev=
5213506e 830ac_dashdash=
63e5e3e0
AG
831for ac_option
832do
63e5e3e0
AG
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
5213506e 835 eval $ac_prev=\$ac_option
63e5e3e0
AG
836 ac_prev=
837 continue
838 fi
839
5213506e
RW
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
63e5e3e0
AG
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
5213506e
RW
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
63e5e3e0
AG
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 854 bindir=$ac_optarg ;;
63e5e3e0
AG
855
856 -build | --build | --buil | --bui | --bu)
3ed8e5b6 857 ac_prev=build_alias ;;
63e5e3e0 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 859 build_alias=$ac_optarg ;;
63e5e3e0
AG
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
63e5e3e0 870
5213506e 871 -datadir | --datadir | --datadi | --datad)
63e5e3e0 872 ac_prev=datadir ;;
5213506e 873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3ed8e5b6 874 datadir=$ac_optarg ;;
63e5e3e0 875
5213506e
RW
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
63e5e3e0 883 -disable-* | --disable-*)
5213506e 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 885 # Reject names that are not valid shell variable names.
5213506e
RW
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
63e5e3e0
AG
908
909 -enable-* | --enable-*)
5213506e 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 911 # Reject names that are not valid shell variable names.
5213506e
RW
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
63e5e3e0 922 esac
5213506e 923 eval enable_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 932 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
3ed8e5b6
AT
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
63e5e3e0
AG
944
945 -host | --host | --hos | --ho)
3ed8e5b6 946 ac_prev=host_alias ;;
63e5e3e0 947 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 948 host_alias=$ac_optarg ;;
63e5e3e0 949
5213506e
RW
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
63e5e3e0
AG
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 961 includedir=$ac_optarg ;;
63e5e3e0
AG
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 966 infodir=$ac_optarg ;;
63e5e3e0
AG
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 971 libdir=$ac_optarg ;;
63e5e3e0
AG
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 978 libexecdir=$ac_optarg ;;
63e5e3e0 979
5213506e
RW
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
63e5e3e0 985 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 986 | --localstate | --localstat | --localsta | --localst | --locals)
63e5e3e0
AG
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3ed8e5b6 990 localstatedir=$ac_optarg ;;
63e5e3e0
AG
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 995 mandir=$ac_optarg ;;
63e5e3e0
AG
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 1002 | --no-cr | --no-c | -n)
63e5e3e0
AG
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 1016 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 1021 prefix=$ac_optarg ;;
63e5e3e0
AG
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 1028 program_prefix=$ac_optarg ;;
63e5e3e0
AG
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 1035 program_suffix=$ac_optarg ;;
63e5e3e0
AG
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 1052 program_transform_name=$ac_optarg ;;
63e5e3e0 1053
5213506e
RW
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
63e5e3e0
AG
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
3ed8e5b6 1072 sbindir=$ac_optarg ;;
63e5e3e0
AG
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
3ed8e5b6 1083 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
3ed8e5b6 1088 site=$ac_optarg ;;
63e5e3e0
AG
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 1093 srcdir=$ac_optarg ;;
63e5e3e0
AG
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 1100 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 1103 ac_prev=target_alias ;;
63e5e3e0 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 1105 target_alias=$ac_optarg ;;
63e5e3e0
AG
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
3ed8e5b6
AT
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
63e5e3e0
AG
1112
1113 -with-* | --with-*)
5213506e 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 1115 # Reject names that are not valid shell variable names.
5213506e
RW
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
63e5e3e0 1126 esac
5213506e 1127 eval with_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1128
1129 -without-* | --without-*)
5213506e 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 1131 # Reject names that are not valid shell variable names.
5213506e
RW
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
63e5e3e0
AG
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 1154 x_includes=$ac_optarg ;;
63e5e3e0
AG
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 1161 x_libraries=$ac_optarg ;;
63e5e3e0 1162
5213506e
RW
1163 -*) as_fn_error "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information."
63e5e3e0
AG
1165 ;;
1166
3ed8e5b6
AT
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
5213506e
RW
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
3ed8e5b6
AT
1175 export $ac_envvar ;;
1176
63e5e3e0 1177 *)
3ed8e5b6 1178 # FIXME: should be removed in autoconf 3.0.
5213506e 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3ed8e5b6 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3ed8e5b6 1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
3ed8e5b6 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1190 as_fn_error "missing argument to $ac_option"
63e5e3e0 1191fi
63e5e3e0 1192
5213506e
RW
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3ed8e5b6 1198 esac
5213506e 1199fi
63e5e3e0 1200
5213506e
RW
1201# Check all directory arguments for consistency.
1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
63e5e3e0 1206do
5213506e
RW
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
3ed8e5b6 1215 case $ac_val in
5213506e
RW
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
63e5e3e0 1218 esac
5213506e 1219 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
63e5e3e0
AG
1220done
1221
3ed8e5b6
AT
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
5213506e 1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3ed8e5b6
AT
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
63e5e3e0 1239
3ed8e5b6
AT
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
63e5e3e0 1244
63e5e3e0 1245
5213506e
RW
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error "pwd does not report name of working directory"
1252
1253
63e5e3e0
AG
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
5213506e
RW
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
63e5e3e0 1281 srcdir=$ac_confdir
5213506e 1282 if test ! -r "$srcdir/$ac_unique_file"; then
63e5e3e0
AG
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
5213506e
RW
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
63e5e3e0 1312
3ed8e5b6
AT
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
b1760f7f 1320\`configure' configures libffi 3.99999 to adapt to many kinds of systems.
63e5e3e0 1321
3ed8e5b6
AT
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
3ed8e5b6
AT
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1342 [$ac_default_prefix]
3ed8e5b6 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1344 [PREFIX]
3ed8e5b6
AT
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
5213506e
RW
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
3ed8e5b6
AT
1373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
b1760f7f 1391 short | recursive ) echo "Configuration of libffi 3.99999:";;
3ed8e5b6
AT
1392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
5213506e 1396 --disable-option-checking ignore unrecognized --enable/--with options
3ed8e5b6
AT
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443 1399 --enable-multilib build many library versions (default)
4e70f25f
AS
1400 --enable-generated-files-in-srcdir
1401 put copies of generated files in source dir intended
1402 for creating source tarballs for users without
1403 texinfo bison or flex
076e5443
PB
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
3ed8e5b6 1410 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
b4b575ce 1413 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
3ed8e5b6
AT
1414 --enable-debug debugging mode
1415 --disable-structs omit code for struct support
1416 --disable-raw-api make the raw api unavailable
1417 --enable-purify-safety purify-safe mode
1418
1419Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1422 --with-pic try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1425
1426Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
5213506e
RW
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
b1760f7f
RH
1434 CXX C++ compiler command
1435 CXXFLAGS C++ compiler flags
076e5443
PB
1436 CCAS assembler compiler command (defaults to CC)
1437 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6 1438 CPP C preprocessor
b1760f7f 1439 CXXCPP C++ preprocessor
3ed8e5b6
AT
1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
b1760f7f 1444Report bugs to <http://github.com/atgreen/libffi/issues>.
3ed8e5b6 1445_ACEOF
5213506e 1446ac_status=$?
63e5e3e0
AG
1447fi
1448
3ed8e5b6
AT
1449if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
3ed8e5b6 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
3ed8e5b6
AT
1455 ac_builddir=.
1456
5213506e
RW
1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
63e5e3e0 1472
3ed8e5b6 1473case $srcdir in
5213506e 1474 .) # We are building in place.
3ed8e5b6 1475 ac_srcdir=.
5213506e
RW
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 1479 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 1486esac
5213506e
RW
1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
3ed8e5b6 1497 else
5213506e
RW
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
3ed8e5b6 1501 done
675cdab3
BM
1502fi
1503
5213506e 1504test -n "$ac_init_help" && exit $ac_status
3ed8e5b6
AT
1505if $ac_init_version; then
1506 cat <<\_ACEOF
b1760f7f 1507libffi configure 3.99999
5213506e 1508generated by GNU Autoconf 2.64
675cdab3 1509
5213506e 1510Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513_ACEOF
5213506e 1514 exit
675cdab3
BM
1515fi
1516
5213506e
RW
1517## ------------------------ ##
1518## Autoconf initialization. ##
1519## ------------------------ ##
63e5e3e0 1520
5213506e
RW
1521# ac_fn_c_try_compile LINENO
1522# --------------------------
1523# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_compile ()
3ed8e5b6 1525{
5213506e
RW
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1551
5213506e
RW
1552 ac_retval=1
1553fi
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 return $ac_retval
3ed8e5b6 1556
5213506e 1557} # ac_fn_c_try_compile
3ed8e5b6 1558
b1760f7f
RH
1559# ac_fn_cxx_try_compile LINENO
1560# ----------------------------
1561# Try to compile conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_cxx_try_compile ()
1563{
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_cxx_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586else
1587 $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591fi
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1594
1595} # ac_fn_cxx_try_compile
1596
5213506e
RW
1597# ac_fn_c_try_link LINENO
1598# -----------------------
1599# Try to link conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_link ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest$ac_exeext
1604 if { { ac_try="$ac_link"
1605case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest$ac_exeext && {
1623 test "$cross_compiling" = yes ||
1624 $as_test_x conftest$ac_exeext
1625 }; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1630
5213506e
RW
1631 ac_retval=1
1632fi
1633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1635 # interfere with the next link command; also delete a directory that is
1636 # left behind by Apple's compiler. We do this before executing the actions.
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 return $ac_retval
3ed8e5b6 1640
5213506e
RW
1641} # ac_fn_c_try_link
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651$as_echo_n "checking for $2... " >&6; }
1652if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1654else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h. */
1657$4
1658#include <$2>
1659_ACEOF
1660if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662else
1663 eval "$3=no"
1664fi
1665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666fi
1667eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671
1672} # ac_fn_c_check_header_compile
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_c_try_run LINENO
1712# ----------------------
1713# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1714# that executables *can* be run.
1715ac_fn_c_try_run ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_link"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1729 { { case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_try") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; }; }; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: program exited with status $ac_status" >&5
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=$ac_status
1746fi
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1750
1751} # ac_fn_c_try_run
1752
1753# ac_fn_c_check_func LINENO FUNC VAR
1754# ----------------------------------
1755# Tests whether FUNC exists, setting the cache variable VAR accordingly
1756ac_fn_c_check_func ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 $as_echo_n "(cached) " >&6
1763else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768#define $2 innocuous_$2
1769
1770/* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below.
1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773 <limits.h> exists even on freestanding compilers. */
1774
1775#ifdef __STDC__
1776# include <limits.h>
1777#else
1778# include <assert.h>
1779#endif
1780
1781#undef $2
1782
1783/* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786#ifdef __cplusplus
1787extern "C"
1788#endif
1789char $2 ();
1790/* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793#if defined __stub_$2 || defined __stub___$2
1794choke me
1795#endif
1796
1797int
1798main ()
1799{
1800return $2 ();
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_link "$LINENO"; then :
1806 eval "$3=yes"
1807else
1808 eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext \
1811 conftest$ac_exeext conftest.$ac_ext
1812fi
1813eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817
1818} # ac_fn_c_check_func
1819
b1760f7f
RH
1820# ac_fn_cxx_try_cpp LINENO
1821# ------------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_cxx_try_cpp ()
5213506e
RW
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b1760f7f
RH
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } >/dev/null && {
1842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 }; then :
1845 ac_retval=0
5213506e 1846else
b1760f7f
RH
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
5213506e 1849
b1760f7f 1850 ac_retval=1
5213506e 1851fi
b1760f7f
RH
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
5213506e 1854
b1760f7f
RH
1855} # ac_fn_cxx_try_cpp
1856
1857# ac_fn_cxx_try_link LINENO
1858# -------------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_cxx_try_link ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
5213506e 1868esac
b1760f7f
RH
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 $as_test_x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
5213506e 1887else
b1760f7f
RH
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
5213506e 1892fi
b1760f7f
RH
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5213506e 1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
b1760f7f 1899 return $ac_retval
5213506e 1900
b1760f7f 1901} # ac_fn_cxx_try_link
5213506e
RW
1902
1903# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1904# --------------------------------------------
1905# Tries to find the compile-time value of EXPR in a program that includes
1906# INCLUDES, setting VAR accordingly. Returns whether the value could be
1907# computed
1908ac_fn_c_compute_int ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if test "$cross_compiling" = yes; then
1912 # Depending upon the size, compute the lo and hi bounds.
1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916int
1917main ()
1918{
1919static int test_array [1 - 2 * !(($2) >= 0)];
1920test_array [0] = 0
1921
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_lo=0 ac_mid=0
1928 while :; do
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936test_array [0] = 0
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_hi=$ac_mid; break
1944else
1945 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1946 if test $ac_lo -le $ac_mid; then
1947 ac_lo= ac_hi=
1948 break
1949 fi
1950 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 done
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958int
1959main ()
1960{
1961static int test_array [1 - 2 * !(($2) < 0)];
1962test_array [0] = 0
1963
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_hi=-1 ac_mid=-1
1970 while :; do
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974int
1975main ()
1976{
1977static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1978test_array [0] = 0
1979
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_lo=$ac_mid; break
1986else
1987 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1988 if test $ac_mid -le $ac_hi; then
1989 ac_lo= ac_hi=
1990 break
1991 fi
1992 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 done
1996else
1997 ac_lo= ac_hi=
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002# Binary search between lo and hi bounds.
2003while test "x$ac_lo" != "x$ac_hi"; do
2004 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012test_array [0] = 0
2013
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=$ac_mid
2020else
2021 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 2024done
5213506e
RW
2025case $ac_lo in #((
2026?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2027'') ac_retval=1 ;;
2028esac
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033static long int longval () { return $2; }
2034static unsigned long int ulongval () { return $2; }
2035#include <stdio.h>
2036#include <stdlib.h>
2037int
2038main ()
2039{
2040
2041 FILE *f = fopen ("conftest.val", "w");
2042 if (! f)
2043 return 1;
2044 if (($2) < 0)
2045 {
2046 long int i = longval ();
2047 if (i != ($2))
2048 return 1;
2049 fprintf (f, "%ld", i);
2050 }
2051 else
2052 {
2053 unsigned long int i = ulongval ();
2054 if (i != ($2))
2055 return 1;
2056 fprintf (f, "%lu", i);
2057 }
2058 /* Do not output a trailing newline, as this causes \r\n confusion
2059 on some platforms. */
2060 return ferror (f) || fclose (f) != 0;
2061
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_run "$LINENO"; then :
2067 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2068else
2069 ac_retval=1
2070fi
2071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2072 conftest.$ac_objext conftest.beam conftest.$ac_ext
2073rm -f conftest.val
2074
2075 fi
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
2078
2079} # ac_fn_c_compute_int
5213506e 2080
b1760f7f
RH
2081# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2082# -------------------------------------------------------
2083# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084# the include files in INCLUDES and setting the cache variable VAR
2085# accordingly.
2086ac_fn_c_check_header_mongrel ()
5213506e 2087{
b1760f7f
RH
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
2092if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093 $as_echo_n "(cached) " >&6
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098else
2099 # Is the header compilable?
2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101$as_echo_n "checking $2 usability... " >&6; }
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109else
2110 ac_header_compiler=no
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114$as_echo "$ac_header_compiler" >&6; }
2115
2116# Is the header present?
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118$as_echo_n "checking $2 presence... " >&6; }
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121#include <$2>
2122_ACEOF
2123if ac_fn_c_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125else
2126 ac_header_preproc=no
2127fi
2128rm -f conftest.err conftest.$ac_ext
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130$as_echo "$ac_header_preproc" >&6; }
2131
2132# So? What about this header?
2133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151( cat <<\_ASBOX
2152## ------------------------------------------------------ ##
2153## Report this to http://github.com/atgreen/libffi/issues ##
2154## ------------------------------------------------------ ##
2155_ASBOX
2156 ) | sed "s/^/$as_me: WARNING: /" >&2
2157 ;;
2158esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160$as_echo_n "checking for $2... " >&6; }
2161if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 $as_echo_n "(cached) " >&6
2163else
2164 eval "$3=\$ac_header_compiler"
2165fi
2166eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169fi
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171
2172} # ac_fn_c_check_header_mongrel
2173cat >config.log <<_ACEOF
2174This file contains any messages produced by compilers while
2175running configure, to aid debugging if configure makes a mistake.
2176
2177It was created by libffi $as_me 3.99999, which was
2178generated by GNU Autoconf 2.64. Invocation command line was
2179
2180 $ $0 $@
2181
2182_ACEOF
2183exec 5>>config.log
2184{
2185cat <<_ASUNAME
2186## --------- ##
2187## Platform. ##
2188## --------- ##
2189
2190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198
2199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206
2207_ASUNAME
2208
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2215 done
2216IFS=$as_save_IFS
2217
2218} >&5
2219
2220cat >&5 <<_ACEOF
2221
2222
2223## ----------- ##
2224## Core tests. ##
2225## ----------- ##
2226
3ed8e5b6 2227_ACEOF
3c18f2d1 2228
3c18f2d1 2229
3ed8e5b6
AT
2230# Keep a trace of the command line.
2231# Strip out --no-create and --no-recursion so they do not pile up.
2232# Strip out --silent because we don't want to record it for future runs.
2233# Also quote any args containing shell meta-characters.
2234# Make two passes to allow for proper duplicate-argument suppression.
2235ac_configure_args=
2236ac_configure_args0=
2237ac_configure_args1=
3ed8e5b6
AT
2238ac_must_keep_next=false
2239for ac_pass in 1 2
2240do
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2247 continue ;;
5213506e
RW
2248 *\'*)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2250 esac
2251 case $ac_pass in
5213506e 2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3ed8e5b6 2253 2)
5213506e 2254 as_fn_append ac_configure_args1 " '$ac_arg'"
3ed8e5b6
AT
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2257 else
2258 case $ac_arg in
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 esac
2266 ;;
2267 -* ) ac_must_keep_next=true ;;
2268 esac
2269 fi
5213506e 2270 as_fn_append ac_configure_args " '$ac_arg'"
3ed8e5b6
AT
2271 ;;
2272 esac
2273 done
63e5e3e0 2274done
5213506e
RW
2275{ ac_configure_args0=; unset ac_configure_args0;}
2276{ ac_configure_args1=; unset ac_configure_args1;}
3ed8e5b6
AT
2277
2278# When interrupted or exit'd, cleanup temporary files, and complete
2279# config.log. We remove comments because anyway the quotes in there
2280# would cause problems or look ugly.
5213506e
RW
2281# WARNING: Use '\'' to represent an apostrophe within the trap.
2282# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3ed8e5b6
AT
2283trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
2288 cat <<\_ASBOX
2289## ---------------- ##
2290## Cache variables. ##
2291## ---------------- ##
2292_ASBOX
2293 echo
2294 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2295(
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in #(
2299 *${as_nl}*)
2300 case $ac_var in #(
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 esac
2304 case $ac_var in #(
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2308 esac ;;
2309 esac
2310 done
3ed8e5b6 2311 (set) 2>&1 |
5213506e
RW
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
3ed8e5b6 2314 sed -n \
5213506e
RW
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 ;; #(
3ed8e5b6 2318 *)
5213506e 2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 2320 ;;
5213506e
RW
2321 esac |
2322 sort
2323)
3ed8e5b6
AT
2324 echo
2325
2326 cat <<\_ASBOX
2327## ----------------- ##
2328## Output variables. ##
2329## ----------------- ##
2330_ASBOX
2331 echo
2332 for ac_var in $ac_subst_vars
2333 do
5213506e
RW
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2339 done | sort
2340 echo
2341
2342 if test -n "$ac_subst_files"; then
2343 cat <<\_ASBOX
5213506e
RW
2344## ------------------- ##
2345## File substitutions. ##
2346## ------------------- ##
3ed8e5b6
AT
2347_ASBOX
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
5213506e
RW
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2356 done | sort
2357 echo
2358 fi
63e5e3e0 2359
3ed8e5b6
AT
2360 if test -s confdefs.h; then
2361 cat <<\_ASBOX
2362## ----------- ##
2363## confdefs.h. ##
2364## ----------- ##
2365_ASBOX
2366 echo
5213506e 2367 cat confdefs.h
3ed8e5b6
AT
2368 echo
2369 fi
2370 test "$ac_signal" != 0 &&
5213506e
RW
2371 $as_echo "$as_me: caught signal $ac_signal"
2372 $as_echo "$as_me: exit $exit_status"
3ed8e5b6 2373 } >&5
5213506e
RW
2374 rm -f core *.core core.conftest.* &&
2375 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3ed8e5b6 2376 exit $exit_status
5213506e 2377' 0
3ed8e5b6 2378for ac_signal in 1 2 13 15; do
5213506e 2379 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3ed8e5b6
AT
2380done
2381ac_signal=0
63e5e3e0 2382
3ed8e5b6 2383# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2384rm -f -r conftest* confdefs.h
2385
2386$as_echo "/* confdefs.h */" > confdefs.h
6bee5372 2387
3ed8e5b6 2388# Predefined preprocessor variables.
bbf3057b 2389
3ed8e5b6
AT
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_NAME "$PACKAGE_NAME"
2392_ACEOF
bbf3057b 2393
3ed8e5b6
AT
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396_ACEOF
63e5e3e0 2397
3ed8e5b6
AT
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_VERSION "$PACKAGE_VERSION"
2400_ACEOF
63e5e3e0 2401
3ed8e5b6
AT
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_STRING "$PACKAGE_STRING"
2404_ACEOF
bbf3057b 2405
3ed8e5b6
AT
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408_ACEOF
2409
5213506e
RW
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_URL "$PACKAGE_URL"
2412_ACEOF
2413
3ed8e5b6
AT
2414
2415# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2416# Prefer an explicitly selected file to automatically selected ones.
2417ac_site_file1=NONE
2418ac_site_file2=NONE
2419if test -n "$CONFIG_SITE"; then
2420 ac_site_file1=$CONFIG_SITE
2421elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2424else
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2427fi
2428for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429do
2430 test "x$ac_site_file" = xNONE && continue
3ed8e5b6 2431 if test -r "$ac_site_file"; then
5213506e
RW
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3ed8e5b6
AT
2434 sed 's/^/| /' "$ac_site_file" >&5
2435 . "$ac_site_file"
2436 fi
2437done
2438
2439if test -r "$cache_file"; then
2440 # Some versions of bash will fail to source /dev/null (special
2441 # files actually), so we avoid doing that.
2442 if test -f "$cache_file"; then
5213506e
RW
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2444$as_echo "$as_me: loading cache $cache_file" >&6;}
3ed8e5b6 2445 case $cache_file in
5213506e
RW
2446 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2447 *) . "./$cache_file";;
3ed8e5b6
AT
2448 esac
2449 fi
2450else
5213506e
RW
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2452$as_echo "$as_me: creating cache $cache_file" >&6;}
3ed8e5b6
AT
2453 >$cache_file
2454fi
2455
2456# Check that the precious variables saved in the cache have kept the same
2457# value.
2458ac_cache_corrupted=false
5213506e 2459for ac_var in $ac_precious_vars; do
3ed8e5b6
AT
2460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2462 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463 eval ac_new_val=\$ac_env_${ac_var}_value
3ed8e5b6
AT
2464 case $ac_old_set,$ac_new_set in
2465 set,)
5213506e
RW
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3ed8e5b6
AT
2468 ac_cache_corrupted=: ;;
2469 ,set)
5213506e
RW
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2471$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3ed8e5b6
AT
2472 ac_cache_corrupted=: ;;
2473 ,);;
2474 *)
2475 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2476 # differences in whitespace do not lead to failure.
2477 ac_old_val_w=`echo x $ac_old_val`
2478 ac_new_val_w=`echo x $ac_new_val`
2479 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2481$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2482 ac_cache_corrupted=:
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2485$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2486 eval $ac_var=\$ac_old_val
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2489$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2491$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
2492 fi;;
2493 esac
2494 # Pass precious variables to config.status.
2495 if test "$ac_new_set" = set; then
2496 case $ac_new_val in
5213506e 2497 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2498 *) ac_arg=$ac_var=$ac_new_val ;;
2499 esac
2500 case " $ac_configure_args " in
2501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2502 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3ed8e5b6
AT
2503 esac
2504 fi
2505done
2506if $ac_cache_corrupted; then
5213506e
RW
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2511 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3ed8e5b6 2512fi
5213506e
RW
2513## -------------------- ##
2514## Main body of script. ##
2515## -------------------- ##
3ed8e5b6
AT
2516
2517ac_ext=c
2518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524
2525
2526
5213506e 2527ac_config_headers="$ac_config_headers fficonfig.h"
3ed8e5b6
AT
2528
2529
2530# Default to --enable-multilib
5213506e
RW
2531# Check whether --enable-multilib was given.
2532if test "${enable_multilib+set}" = set; then :
2533 enableval=$enable_multilib; case "$enableval" in
3ed8e5b6
AT
2534 yes) multilib=yes ;;
2535 no) multilib=no ;;
5213506e 2536 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3ed8e5b6
AT
2537 esac
2538else
2539 multilib=yes
5213506e
RW
2540fi
2541
3ed8e5b6
AT
2542
2543# We may get other options which we leave undocumented:
2544# --with-target-subdir, --with-multisrctop, --with-multisubdir
2545# See config-ml.in if you want the gory details.
2546
2547if test "$srcdir" = "."; then
2548 if test "$with_target_subdir" != "."; then
2549 multi_basedir="$srcdir/$with_multisrctop../.."
2550 else
2551 multi_basedir="$srcdir/$with_multisrctop.."
2552 fi
2553else
2554 multi_basedir="$srcdir/.."
2555fi
2556
2557
8a489465
JH
2558# Even if the default multilib is not a cross compilation,
2559# it may be that some of the other multilibs are.
2560if test $cross_compiling = no && test $multilib = yes \
2561 && test "x${with_multisubdir}" != x ; then
2562 cross_compiling=maybe
2563fi
2564
5213506e 2565ac_config_commands="$ac_config_commands default-1"
3ed8e5b6 2566
3ed8e5b6 2567
076e5443 2568ac_aux_dir=
5213506e
RW
2569for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2570 for ac_t in install-sh install.sh shtool; do
2571 if test -f "$ac_dir/$ac_t"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/$ac_t -c"
2574 break 2
2575 fi
2576 done
3ed8e5b6
AT
2577done
2578if test -z "$ac_aux_dir"; then
5213506e 2579 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3ed8e5b6 2580fi
5213506e
RW
2581
2582# These three variables are undocumented and unsupported,
2583# and are intended to be withdrawn in a future Autoconf release.
2584# They can cause serious problems if a builder's source tree is in a directory
2585# whose full name contains unusual characters.
2586ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2587ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2588ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2589
3ed8e5b6 2590
3ed8e5b6 2591# Make sure we can run config.sub.
5213506e
RW
2592$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2593 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2596$as_echo_n "checking build system type... " >&6; }
2597if test "${ac_cv_build+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2599else
2600 ac_build_alias=$build_alias
2601test "x$ac_build_alias" = x &&
2602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2603test "x$ac_build_alias" = x &&
2604 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2606 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2607
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2610$as_echo "$ac_cv_build" >&6; }
2611case $ac_cv_build in
2612*-*-*) ;;
2613*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2614esac
3ed8e5b6 2615build=$ac_cv_build
5213506e
RW
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_build
2618shift
2619build_cpu=$1
2620build_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624build_os=$*
2625IFS=$ac_save_IFS
2626case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2627
2628
5213506e
RW
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2630$as_echo_n "checking host system type... " >&6; }
2631if test "${ac_cv_host+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
3ed8e5b6 2633else
5213506e
RW
2634 if test "x$host_alias" = x; then
2635 ac_cv_host=$ac_cv_build
2636else
2637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2638 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2639fi
3ed8e5b6
AT
2640
2641fi
5213506e
RW
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2643$as_echo "$ac_cv_host" >&6; }
2644case $ac_cv_host in
2645*-*-*) ;;
2646*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2647esac
3ed8e5b6 2648host=$ac_cv_host
5213506e
RW
2649ac_save_IFS=$IFS; IFS='-'
2650set x $ac_cv_host
2651shift
2652host_cpu=$1
2653host_vendor=$2
2654shift; shift
2655# Remember, the first character of IFS is used to create $*,
2656# except with old shells:
2657host_os=$*
2658IFS=$ac_save_IFS
2659case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2660
2661
5213506e
RW
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2663$as_echo_n "checking target system type... " >&6; }
2664if test "${ac_cv_target+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666else
2667 if test "x$target_alias" = x; then
2668 ac_cv_target=$ac_cv_host
3ed8e5b6 2669else
5213506e
RW
2670 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2671 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2672fi
3ed8e5b6
AT
2673
2674fi
5213506e
RW
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2676$as_echo "$ac_cv_target" >&6; }
2677case $ac_cv_target in
2678*-*-*) ;;
2679*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2680esac
3ed8e5b6 2681target=$ac_cv_target
5213506e
RW
2682ac_save_IFS=$IFS; IFS='-'
2683set x $ac_cv_target
2684shift
2685target_cpu=$1
2686target_vendor=$2
2687shift; shift
2688# Remember, the first character of IFS is used to create $*,
2689# except with old shells:
2690target_os=$*
2691IFS=$ac_save_IFS
2692case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2693
2694
2695# The aliases save the names the user supplied, while $host etc.
2696# will get canonicalized.
2697test -n "$target_alias" &&
bbf3057b
AT
2698 test "$program_prefix$program_suffix$program_transform_name" = \
2699 NONENONEs,x,x, &&
2700 program_prefix=${target_alias}-
5213506e 2701
3ed8e5b6
AT
2702target_alias=${target_alias-$host_alias}
2703
5213506e
RW
2704am__api_version='1.11'
2705
3ed8e5b6
AT
2706# Find a good install program. We prefer a C program (faster),
2707# so one script is as good as another. But avoid the broken or
2708# incompatible versions:
2709# SysV /etc/install, /usr/sbin/install
2710# SunOS /usr/etc/install
2711# IRIX /sbin/install
2712# AIX /bin/install
2713# AmigaOS /C/install, which installs bootblocks on floppy discs
2714# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2715# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2716# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2717# OS/2's system install, which has a completely different semantic
2718# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2719# Reject install programs that cannot install multiple files.
5213506e
RW
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2721$as_echo_n "checking for a BSD-compatible install... " >&6; }
3ed8e5b6 2722if test -z "$INSTALL"; then
5213506e
RW
2723if test "${ac_cv_path_install+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2725else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
5213506e
RW
2731 # Account for people who put trailing slashes in PATH elements.
2732case $as_dir/ in #((
2733 ./ | .// | /[cC]/* | \
3ed8e5b6 2734 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2735 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3ed8e5b6
AT
2736 /usr/ucb/* ) ;;
2737 *)
2738 # OSF1 and SCO ODT 3.0 have their own names for install.
2739 # Don't use installbsd from OSF since it installs stuff as root
2740 # by default.
2741 for ac_prog in ginstall scoinst install; do
2742 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2743 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3ed8e5b6
AT
2744 if test $ac_prog = install &&
2745 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746 # AIX install. It has an incompatible calling convention.
2747 :
2748 elif test $ac_prog = install &&
2749 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2750 # program-specific install script used by HP pwplus--don't use.
2751 :
2752 else
38d24731
RW
2753 rm -rf conftest.one conftest.two conftest.dir
2754 echo one > conftest.one
2755 echo two > conftest.two
2756 mkdir conftest.dir
2757 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2758 test -s conftest.one && test -s conftest.two &&
2759 test -s conftest.dir/conftest.one &&
2760 test -s conftest.dir/conftest.two
2761 then
2762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2763 break 3
2764 fi
3ed8e5b6
AT
2765 fi
2766 fi
2767 done
2768 done
2769 ;;
2770esac
5213506e
RW
2771
2772 done
2773IFS=$as_save_IFS
3ed8e5b6 2774
38d24731 2775rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
2776
2777fi
2778 if test "${ac_cv_path_install+set}" = set; then
2779 INSTALL=$ac_cv_path_install
2780 else
38d24731
RW
2781 # As a last resort, use the slow shell script. Don't cache a
2782 # value for INSTALL within a source directory, because that will
3ed8e5b6 2783 # break other packages using the cache if that directory is
38d24731 2784 # removed, or if the value is a relative name.
3ed8e5b6
AT
2785 INSTALL=$ac_install_sh
2786 fi
2787fi
5213506e
RW
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2789$as_echo "$INSTALL" >&6; }
3ed8e5b6
AT
2790
2791# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2792# It thinks the first close brace ends the variable substitution.
2793test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2794
2795test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2796
2797test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2798
5213506e
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2800$as_echo_n "checking whether build environment is sane... " >&6; }
3ed8e5b6
AT
2801# Just in case
2802sleep 1
2803echo timestamp > conftest.file
5213506e
RW
2804# Reject unsafe characters in $srcdir or the absolute working directory
2805# name. Accept space and tab only in the latter.
2806am_lf='
2807'
2808case `pwd` in
2809 *[\\\"\#\$\&\'\`$am_lf]*)
2810 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2811esac
2812case $srcdir in
2813 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2814 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2815esac
2816
3ed8e5b6
AT
2817# Do `set' in a subshell so we don't clobber the current shell's
2818# arguments. Must try -L first in case configure is actually a
2819# symlink; some systems play weird games with the mod time of symlinks
2820# (eg FreeBSD returns the mod time of the symlink's containing
2821# directory).
2822if (
5213506e 2823 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3ed8e5b6
AT
2824 if test "$*" = "X"; then
2825 # -L didn't work.
5213506e 2826 set X `ls -t "$srcdir/configure" conftest.file`
3ed8e5b6
AT
2827 fi
2828 rm -f conftest.file
2829 if test "$*" != "X $srcdir/configure conftest.file" \
2830 && test "$*" != "X conftest.file $srcdir/configure"; then
2831
2832 # If neither matched, then we have a broken ls. This can happen
2833 # if, for instance, CONFIG_SHELL is bash and it inherits a
2834 # broken ls alias from the environment. This has actually
2835 # happened. Such a system could not be considered "sane".
5213506e
RW
2836 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2837alias in your environment" "$LINENO" 5
3ed8e5b6
AT
2838 fi
2839
2840 test "$2" = conftest.file
2841 )
2842then
2843 # Ok.
2844 :
2845else
5213506e
RW
2846 as_fn_error "newly created file is older than distributed files!
2847Check your system clock" "$LINENO" 5
3ed8e5b6 2848fi
5213506e
RW
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850$as_echo "yes" >&6; }
3ed8e5b6 2851test "$program_prefix" != NONE &&
5213506e 2852 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3ed8e5b6
AT
2853# Use a double $ so make ignores it.
2854test "$program_suffix" != NONE &&
5213506e
RW
2855 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2856# Double any \ or $.
3ed8e5b6 2857# By default was `s,x,x', remove it if useless.
5213506e
RW
2858ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2859program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3ed8e5b6 2860
3ed8e5b6
AT
2861# expand $ac_aux_dir to an absolute path
2862am_aux_dir=`cd $ac_aux_dir && pwd`
2863
5213506e
RW
2864if test x"${MISSING+set}" != xset; then
2865 case $am_aux_dir in
2866 *\ * | *\ *)
2867 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2868 *)
2869 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2870 esac
2871fi
3ed8e5b6
AT
2872# Use eval to expand $SHELL
2873if eval "$MISSING --run true"; then
2874 am_missing_run="$MISSING --run "
2875else
2876 am_missing_run=
5213506e
RW
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2878$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2879fi
2880
2881if test x"${install_sh}" != xset; then
2882 case $am_aux_dir in
2883 *\ * | *\ *)
2884 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2885 *)
2886 install_sh="\${SHELL} $am_aux_dir/install-sh"
2887 esac
2888fi
2889
2890# Installed binaries are usually stripped using `strip' when the user
2891# run `make install-strip'. However `strip' might not be the right
2892# tool to use in cross-compilation environments, therefore Automake
2893# will honor the `STRIP' environment variable to overrule this program.
2894if test "$cross_compiling" != no; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2897set dummy ${ac_tool_prefix}strip; ac_word=$2
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899$as_echo_n "checking for $ac_word... " >&6; }
2900if test "${ac_cv_prog_STRIP+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902else
2903 if test -n "$STRIP"; then
2904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917done
2918 done
2919IFS=$as_save_IFS
2920
2921fi
2922fi
2923STRIP=$ac_cv_prog_STRIP
2924if test -n "$STRIP"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2926$as_echo "$STRIP" >&6; }
2927else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929$as_echo "no" >&6; }
2930fi
2931
2932
2933fi
2934if test -z "$ac_cv_prog_STRIP"; then
2935 ac_ct_STRIP=$STRIP
2936 # Extract the first word of "strip", so it can be a program name with args.
2937set dummy strip; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
2942else
2943 if test -n "$ac_ct_STRIP"; then
2944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_ac_ct_STRIP="strip"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957done
2958 done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2964if test -n "$ac_ct_STRIP"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2966$as_echo "$ac_ct_STRIP" >&6; }
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972 if test "x$ac_ct_STRIP" = x; then
2973 STRIP=":"
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976yes:)
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979ac_tool_warned=yes ;;
2980esac
2981 STRIP=$ac_ct_STRIP
2982 fi
2983else
2984 STRIP="$ac_cv_prog_STRIP"
2985fi
2986
2987fi
2988INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2989
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2991$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2992if test -z "$MKDIR_P"; then
2993 if test "${ac_cv_path_mkdir+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_prog in mkdir gmkdir; do
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3004 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3005 'mkdir (GNU coreutils) '* | \
3006 'mkdir (coreutils) '* | \
3007 'mkdir (fileutils) '4.1*)
3008 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3009 break 3;;
3010 esac
3011 done
3012 done
076e5443 3013 done
5213506e
RW
3014IFS=$as_save_IFS
3015
3016fi
3017
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
076e5443 3020 else
5213506e
RW
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 test -d ./--version && rmdir ./--version
3026 MKDIR_P="$ac_install_sh -d"
076e5443
PB
3027 fi
3028fi
5213506e
RW
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3030$as_echo "$MKDIR_P" >&6; }
3031
3032mkdir_p="$MKDIR_P"
3033case $mkdir_p in
3034 [\\/$]* | ?:[\\/]*) ;;
3035 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3036esac
076e5443 3037
3ed8e5b6
AT
3038for ac_prog in gawk mawk nawk awk
3039do
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
5213506e
RW
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_AWK+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3046else
3047 if test -n "$AWK"; then
3048 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
5213506e
RW
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3057 ac_cv_prog_AWK="$ac_prog"
5213506e 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3059 break 2
3060 fi
3061done
5213506e
RW
3062 done
3063IFS=$as_save_IFS
3ed8e5b6
AT
3064
3065fi
3066fi
3067AWK=$ac_cv_prog_AWK
3068if test -n "$AWK"; then
5213506e
RW
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3070$as_echo "$AWK" >&6; }
3ed8e5b6 3071else
5213506e
RW
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3ed8e5b6
AT
3074fi
3075
5213506e 3076
3ed8e5b6
AT
3077 test -n "$AWK" && break
3078done
3079
5213506e
RW
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3081$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3082set x ${MAKE-make}
3083ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3084if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3085 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3086else
3087 cat >conftest.make <<\_ACEOF
5213506e 3088SHELL = /bin/sh
3ed8e5b6 3089all:
5213506e 3090 @echo '@@@%%%=$(MAKE)=@@@%%%'
3ed8e5b6
AT
3091_ACEOF
3092# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
3093case `${MAKE-make} -f conftest.make 2>/dev/null` in
3094 *@@@%%%=?*=@@@%%%*)
3095 eval ac_cv_prog_make_${ac_make}_set=yes;;
3096 *)
3097 eval ac_cv_prog_make_${ac_make}_set=no;;
3098esac
3ed8e5b6
AT
3099rm -f conftest.make
3100fi
5213506e
RW
3101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103$as_echo "yes" >&6; }
3ed8e5b6
AT
3104 SET_MAKE=
3105else
5213506e
RW
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3ed8e5b6
AT
3108 SET_MAKE="MAKE=${MAKE-make}"
3109fi
3110
3111rm -rf .tst 2>/dev/null
3112mkdir .tst 2>/dev/null
3113if test -d .tst; then
3114 am__leading_dot=.
3115else
3116 am__leading_dot=_
3117fi
3118rmdir .tst 2>/dev/null
3119
5213506e
RW
3120if test "`cd $srcdir && pwd`" != "`pwd`"; then
3121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3122 # is not polluted with repeated "-I."
3123 am__isrc=' -I$(srcdir)'
3124 # test to see if srcdir already configured
3125 if test -f $srcdir/config.status; then
3126 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3127 fi
3ed8e5b6
AT
3128fi
3129
3130# test whether we have cygpath
3131if test -z "$CYGPATH_W"; then
3132 if (cygpath --version) >/dev/null 2>/dev/null; then
3133 CYGPATH_W='cygpath -w'
3134 else
3135 CYGPATH_W=echo
3136 fi
3137fi
3138
3139
3140# Define the identity of the package.
3141 PACKAGE='libffi'
b1760f7f 3142 VERSION='3.99999'
3ed8e5b6
AT
3143
3144
3145cat >>confdefs.h <<_ACEOF
3146#define PACKAGE "$PACKAGE"
3147_ACEOF
3148
3149
3150cat >>confdefs.h <<_ACEOF
3151#define VERSION "$VERSION"
3152_ACEOF
3153
3154# Some tools Automake needs.
3155
3156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3ed8e5b6
AT
3170# We need awk for the "check" target. The system "awk" is bad on
3171# some platforms.
b85e31b9
KC
3172# Always define AMTAR for backward compatibility.
3173
3174AMTAR=${AMTAR-"${am_missing_run}tar"}
3175
3176am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3177
3178
3ed8e5b6
AT
3179
3180
3181
3182
4e70f25f
AS
3183# See if makeinfo has been installed and is modern enough
3184# that we can use it.
3185
3186 # Extract the first word of "makeinfo", so it can be a program name with args.
3187set dummy makeinfo; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$MAKEINFO"; then
3194 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_MAKEINFO="makeinfo"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208 done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213MAKEINFO=$ac_cv_prog_MAKEINFO
3214if test -n "$MAKEINFO"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3216$as_echo "$MAKEINFO" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223 if test -n "$MAKEINFO"; then
3224 # Found it, now check the version.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3226$as_echo_n "checking for modern makeinfo... " >&6; }
3227if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229else
3230 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3231 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3232
3233 case $ac_prog_version in
3234 '') gcc_cv_prog_makeinfo_modern=no;;
3235 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3236 *) gcc_cv_prog_makeinfo_modern=no;;
3237 esac
3238
3239fi
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3241$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3242 else
3243 gcc_cv_prog_makeinfo_modern=no
3244 fi
3245 if test $gcc_cv_prog_makeinfo_modern = no; then
3246 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3247 fi
3248
3249 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3250 BUILD_INFO_TRUE=
3251 BUILD_INFO_FALSE='#'
3252else
3253 BUILD_INFO_TRUE='#'
3254 BUILD_INFO_FALSE=
3255fi
3256
3257
3258# We would like our source tree to be readonly. However when releases or
3259# pre-releases are generated, the flex/bison generated files as well as the
3260# various formats of manuals need to be included along with the rest of the
3261# sources. Therefore we have --enable-generated-files-in-srcdir to do
3262# just that.
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3264$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3265# Check whether --enable-generated-files-in-srcdir was given.
3266if test "${enable_generated_files_in_srcdir+set}" = set; then :
3267 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3268 yes) enable_generated_files_in_srcdir=yes ;;
3269 no) enable_generated_files_in_srcdir=no ;;
3270 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3271 esac
3272else
3273 enable_generated_files_in_srcdir=no
3274fi
3275
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3277$as_echo "$enable_generated_files_in_srcdir" >&6; }
3278 if test "$enable_generated_files_in_srcdir" = yes; then
3279 GENINSRC_TRUE=
3280 GENINSRC_FALSE='#'
3281else
3282 GENINSRC_TRUE='#'
3283 GENINSRC_FALSE=
3284fi
3285
3286
3ed8e5b6
AT
3287# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3288# We must force CC to /not/ be precious variables; otherwise
3289# the wrong, non-multilib-adjusted value will be used in multilibs.
3290# As a side effect, we have to subst CFLAGS ourselves.
b1760f7f
RH
3291# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3292# defaults of its own if none are provided.
3ed8e5b6
AT
3293
3294
3295
b1760f7f 3296save_CFLAGS=$CFLAGS
3ed8e5b6
AT
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if test "${ac_cv_prog_CC+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3309else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
5213506e
RW
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3322 break 2
3323 fi
3324done
5213506e
RW
3325 done
3326IFS=$as_save_IFS
3ed8e5b6
AT
3327
3328fi
3329fi
3330CC=$ac_cv_prog_CC
3331if test -n "$CC"; then
5213506e
RW
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333$as_echo "$CC" >&6; }
3ed8e5b6 3334else
5213506e
RW
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3ed8e5b6
AT
3337fi
3338
5213506e 3339
3ed8e5b6
AT
3340fi
3341if test -z "$ac_cv_prog_CC"; then
3342 ac_ct_CC=$CC
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344set dummy gcc; ac_word=$2
5213506e
RW
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3349else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
5213506e
RW
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3360 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3362 break 2
3363 fi
3364done
5213506e
RW
3365 done
3366IFS=$as_save_IFS
3ed8e5b6
AT
3367
3368fi
3369fi
3370ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371if test -n "$ac_ct_CC"; then
5213506e
RW
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3374else
5213506e
RW
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376$as_echo "no" >&6; }
3ed8e5b6
AT
3377fi
3378
5213506e
RW
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383yes:)
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386ac_tool_warned=yes ;;
3387esac
3388 CC=$ac_ct_CC
3389 fi
3ed8e5b6
AT
3390else
3391 CC="$ac_cv_prog_CC"
3392fi
3393
3394if test -z "$CC"; then
5213506e
RW
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3ed8e5b6 3397set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if test "${ac_cv_prog_CC+set}" = set; then :
3401 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3402else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
5213506e
RW
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3415 break 2
3416 fi
3417done
5213506e
RW
3418 done
3419IFS=$as_save_IFS
3ed8e5b6
AT
3420
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
5213506e
RW
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426$as_echo "$CC" >&6; }
3ed8e5b6 3427else
5213506e
RW
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
3ed8e5b6
AT
3430fi
3431
3ed8e5b6 3432
5213506e 3433 fi
3ed8e5b6
AT
3434fi
3435if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437set dummy cc; ac_word=$2
5213506e
RW
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if test "${ac_cv_prog_CC+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3442else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445else
3446 ac_prog_rejected=no
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
5213506e
RW
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6
AT
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
5213506e 3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3460 break 2
3461 fi
3462done
5213506e
RW
3463 done
3464IFS=$as_save_IFS
3ed8e5b6
AT
3465
3466if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 fi
3477fi
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
5213506e
RW
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3ed8e5b6 3484else
5213506e
RW
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3ed8e5b6
AT
3487fi
3488
5213506e 3489
3ed8e5b6
AT
3490fi
3491if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
5213506e 3493 for ac_prog in cl.exe
3ed8e5b6
AT
3494 do
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3501else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
5213506e
RW
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3514 break 2
3515 fi
3516done
5213506e
RW
3517 done
3518IFS=$as_save_IFS
3ed8e5b6
AT
3519
3520fi
3521fi
3522CC=$ac_cv_prog_CC
3523if test -n "$CC"; then
5213506e
RW
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525$as_echo "$CC" >&6; }
3ed8e5b6 3526else
5213506e
RW
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3ed8e5b6
AT
3529fi
3530
5213506e 3531
3ed8e5b6
AT
3532 test -n "$CC" && break
3533 done
3534fi
3535if test -z "$CC"; then
3536 ac_ct_CC=$CC
5213506e 3537 for ac_prog in cl.exe
3ed8e5b6
AT
3538do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
5213506e
RW
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542$as_echo_n "checking for $ac_word... " >&6; }
3543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3545else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
5213506e
RW
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3556 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3558 break 2
3559 fi
3560done
5213506e
RW
3561 done
3562IFS=$as_save_IFS
3ed8e5b6
AT
3563
3564fi
3565fi
3566ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567if test -n "$ac_ct_CC"; then
5213506e
RW
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3570else
5213506e
RW
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3ed8e5b6
AT
3573fi
3574
5213506e 3575
3ed8e5b6
AT
3576 test -n "$ac_ct_CC" && break
3577done
3578
5213506e
RW
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583yes:)
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586ac_tool_warned=yes ;;
3587esac
3588 CC=$ac_ct_CC
3589 fi
3ed8e5b6
AT
3590fi
3591
3592fi
3593
3594
5213506e
RW
3595test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error "no acceptable C compiler found in \$PATH
3598See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3599
3600# Provide some information about the compiler.
5213506e
RW
3601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602set X $ac_compile
3603ac_compiler=$2
3604for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611$as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3ed8e5b6 3613 ac_status=$?
5213506e
RW
3614 if test -s conftest.err; then
3615 sed '10a\
3616... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3619 rm -f conftest.er1 conftest.err
3620 fi
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623done
3ed8e5b6 3624
5213506e 3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636ac_clean_files_save=$ac_clean_files
5213506e 3637ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3ed8e5b6
AT
3638# Try to create an executable without -o first, disregard a.out.
3639# It will help us diagnose broken compilers, and finding out an intuition
3640# of exeext.
5213506e
RW
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642$as_echo_n "checking for C compiler default output file name... " >&6; }
3643ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645# The possible output files:
3646ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648ac_rmfiles=
3649for ac_file in $ac_files
3650do
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 esac
3655done
3656rm -f $ac_rmfiles
3657
3658if { { ac_try="$ac_link_default"
3659case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link_default") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671# in a Makefile. We should not override ac_cv_exeext if it was cached,
3672# so that the user can short-circuit this test for compilers unknown to
3673# Autoconf.
3674for ac_file in $ac_files ''
3ed8e5b6
AT
3675do
3676 test -f "$ac_file" || continue
3677 case $ac_file in
5213506e 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3ed8e5b6
AT
3679 ;;
3680 [ab].out )
3681 # We found the default executable, but exeext='' is most
3682 # certainly right.
3683 break;;
3684 *.* )
5213506e
RW
3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686 then :; else
3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688 fi
3689 # We set ac_cv_exeext here because the later test for it is not
3690 # safe: cross compilers may not add the suffix if given an `-o'
3691 # argument, so we may need to know it at that point already.
3692 # Even if this section looks crufty: it has the advantage of
3693 # actually working.
3ed8e5b6
AT
3694 break;;
3695 * )
3696 break;;
3697 esac
3698done
5213506e
RW
3699test "$ac_cv_exeext" = no && ac_cv_exeext=
3700
3ed8e5b6 3701else
5213506e
RW
3702 ac_file=''
3703fi
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3705$as_echo "$ac_file" >&6; }
3706if test -z "$ac_file"; then :
3707 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
5213506e
RW
3710{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712{ as_fn_set_status 77
3713as_fn_error "C compiler cannot create executables
3714See \`config.log' for more details." "$LINENO" 5; }; }
3ed8e5b6 3715fi
3ed8e5b6 3716ac_exeext=$ac_cv_exeext
3ed8e5b6 3717
5213506e 3718# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3719# the compiler is broken, or we cross compile.
5213506e
RW
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3721$as_echo_n "checking whether the C compiler works... " >&6; }
3ed8e5b6
AT
3722# If not cross compiling, check that we can run a simple program.
3723if test "$cross_compiling" != yes; then
3724 if { ac_try='./$ac_file'
5213506e
RW
3725 { { case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728esac
3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730$as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_try") 2>&5
3ed8e5b6 3732 ac_status=$?
5213506e
RW
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; }; then
3ed8e5b6
AT
3735 cross_compiling=no
3736 else
3737 if test "$cross_compiling" = maybe; then
3738 cross_compiling=yes
3739 else
5213506e
RW
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742as_fn_error "cannot run C compiled programs.
3ed8e5b6 3743If you meant to cross compile, use \`--host'.
5213506e 3744See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3745 fi
3746 fi
3747fi
5213506e
RW
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749$as_echo "yes" >&6; }
3ed8e5b6 3750
5213506e 3751rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3ed8e5b6 3752ac_clean_files=$ac_clean_files_save
5213506e 3753# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3754# the compiler is broken, or we cross compile.
5213506e
RW
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3756$as_echo_n "checking whether we are cross compiling... " >&6; }
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3758$as_echo "$cross_compiling" >&6; }
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3761$as_echo_n "checking for suffix of executables... " >&6; }
3762if { { ac_try="$ac_link"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_link") 2>&5
3ed8e5b6 3770 ac_status=$?
5213506e
RW
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3ed8e5b6
AT
3773 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3774# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3775# work properly (i.e., refer to `conftest.exe'), while it won't with
3776# `rm'.
3777for ac_file in conftest.exe conftest conftest.*; do
3778 test -f "$ac_file" || continue
3779 case $ac_file in
5213506e 3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3ed8e5b6 3781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3ed8e5b6
AT
3782 break;;
3783 * ) break;;
3784 esac
3785done
3786else
5213506e
RW
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789as_fn_error "cannot compute suffix of executables: cannot compile and link
3790See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3791fi
3ed8e5b6 3792rm -f conftest$ac_cv_exeext
5213506e
RW
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3794$as_echo "$ac_cv_exeext" >&6; }
3ed8e5b6
AT
3795
3796rm -f conftest.$ac_ext
3797EXEEXT=$ac_cv_exeext
3798ac_exeext=$EXEEXT
5213506e
RW
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800$as_echo_n "checking for suffix of object files... " >&6; }
3801if test "${ac_cv_objext+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3ed8e5b6 3803else
5213506e 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3805/* end confdefs.h. */
3806
3807int
3808main ()
3809{
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815rm -f conftest.o conftest.obj
5213506e
RW
3816if { { ac_try="$ac_compile"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822$as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compile") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 for ac_file in conftest.o conftest.obj conftest.*; do
3828 test -f "$ac_file" || continue;
3ed8e5b6 3829 case $ac_file in
5213506e 3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3ed8e5b6
AT
3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3832 break;;
3833 esac
3834done
3835else
5213506e 3836 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
5213506e
RW
3839{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841as_fn_error "cannot compute suffix of object files: cannot compile
3842See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3843fi
3ed8e5b6
AT
3844rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845fi
5213506e
RW
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847$as_echo "$ac_cv_objext" >&6; }
3ed8e5b6
AT
3848OBJEXT=$ac_cv_objext
3849ac_objext=$OBJEXT
5213506e
RW
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3ed8e5b6 3854else
5213506e 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3856/* end confdefs.h. */
3857
3858int
3859main ()
3860{
3861#ifndef __GNUC__
3862 choke me
3863#endif
3864
3865 ;
3866 return 0;
3867}
3868_ACEOF
5213506e 3869if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3870 ac_compiler_gnu=yes
3871else
5213506e 3872 ac_compiler_gnu=no
3ed8e5b6 3873fi
5213506e 3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
3875ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876
3877fi
5213506e
RW
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880if test $ac_compiler_gnu = yes; then
3881 GCC=yes
3882else
3883 GCC=
3884fi
3ed8e5b6
AT
3885ac_test_CFLAGS=${CFLAGS+set}
3886ac_save_CFLAGS=$CFLAGS
5213506e
RW
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888$as_echo_n "checking whether $CC accepts -g... " >&6; }
3889if test "${ac_cv_prog_cc_g+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891else
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3894 ac_cv_prog_cc_g=no
3895 CFLAGS="-g"
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3897/* end confdefs.h. */
3898
3899int
3900main ()
3901{
3902
3903 ;
3904 return 0;
3905}
3906_ACEOF
5213506e 3907if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3908 ac_cv_prog_cc_g=yes
3909else
5213506e
RW
3910 CFLAGS=""
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h. */
3913
3914int
3915main ()
3916{
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923
3924else
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926 CFLAGS="-g"
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h. */
3ed8e5b6 3929
5213506e
RW
3930int
3931main ()
3932{
3933
3934 ;
3935 return 0;
3936}
3937_ACEOF
3938if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_g=yes
3940fi
3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3942fi
5213506e 3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3944fi
5213506e
RW
3945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949$as_echo "$ac_cv_prog_cc_g" >&6; }
3ed8e5b6
AT
3950if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3954 CFLAGS="-g -O2"
3955 else
3956 CFLAGS="-g"
3957 fi
3958else
3959 if test "$GCC" = yes; then
3960 CFLAGS="-O2"
3961 else
3962 CFLAGS=
3963 fi
3964fi
5213506e
RW
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967if test "${ac_cv_prog_cc_c89+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3ed8e5b6 3969else
5213506e 3970 ac_cv_prog_cc_c89=no
3ed8e5b6 3971ac_save_CC=$CC
5213506e 3972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3973/* end confdefs.h. */
3974#include <stdarg.h>
3975#include <stdio.h>
3976#include <sys/types.h>
3977#include <sys/stat.h>
3978/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3979struct buf { int x; };
3980FILE * (*rcsopen) (struct buf *, struct stat *, int);
3981static char *e (p, i)
3982 char **p;
3983 int i;
3984{
3985 return p[i];
3986}
3987static char *f (char * (*g) (char **, int), char **p, ...)
3988{
3989 char *s;
3990 va_list v;
3991 va_start (v,p);
3992 s = g (p, va_arg (v,int));
3993 va_end (v);
3994 return s;
3995}
3996
3997/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3998 function prototypes and stuff, but not '\xHH' hex character constants.
3999 These don't provoke an error unfortunately, instead are silently treated
5213506e 4000 as 'x'. The following induces an error, until -std is added to get
3ed8e5b6
AT
4001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4002 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4003 that's true only with -std. */
3ed8e5b6
AT
4004int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005
5213506e
RW
4006/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4007 inside strings and character constants. */
4008#define FOO(x) 'x'
4009int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010
3ed8e5b6
AT
4011int test (int i, double x);
4012struct s1 {int (*f) (int a);};
4013struct s2 {int (*f) (double a);};
4014int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4015int argc;
4016char **argv;
4017int
4018main ()
4019{
4020return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4021 ;
4022 return 0;
4023}
4024_ACEOF
5213506e
RW
4025for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3ed8e5b6
AT
4027do
4028 CC="$ac_save_CC $ac_arg"
5213506e
RW
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_prog_cc_c89=$ac_arg
3ed8e5b6 4031fi
5213506e
RW
4032rm -f core conftest.err conftest.$ac_objext
4033 test "x$ac_cv_prog_cc_c89" != "xno" && break
3ed8e5b6 4034done
5213506e 4035rm -f conftest.$ac_ext
3ed8e5b6
AT
4036CC=$ac_save_CC
4037
4038fi
5213506e
RW
4039# AC_CACHE_VAL
4040case "x$ac_cv_prog_cc_c89" in
4041 x)
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043$as_echo "none needed" >&6; } ;;
4044 xno)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046$as_echo "unsupported" >&6; } ;;
3ed8e5b6 4047 *)
5213506e
RW
4048 CC="$CC $ac_cv_prog_cc_c89"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4050$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3ed8e5b6 4051esac
5213506e 4052if test "x$ac_cv_prog_cc_c89" != xno; then :
3ed8e5b6
AT
4053
4054fi
3ed8e5b6 4055
3ed8e5b6
AT
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061DEPDIR="${am__leading_dot}deps"
4062
5213506e 4063ac_config_commands="$ac_config_commands depfiles"
3ed8e5b6
AT
4064
4065
4066am_make=${MAKE-make}
4067cat > confinc << 'END'
4068am__doit:
5213506e 4069 @echo this is the am__doit target
3ed8e5b6
AT
4070.PHONY: am__doit
4071END
4072# If we don't find an include directive, just comment out the code.
5213506e
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4074$as_echo_n "checking for style of include used by $am_make... " >&6; }
3ed8e5b6
AT
4075am__include="#"
4076am__quote=
4077_am_result=none
4078# First try GNU make style include.
4079echo "include confinc" > confmf
5213506e
RW
4080# Ignore all kinds of additional output from `make'.
4081case `$am_make -s -f confmf 2> /dev/null` in #(
4082*the\ am__doit\ target*)
4083 am__include=include
4084 am__quote=
4085 _am_result=GNU
4086 ;;
4087esac
3ed8e5b6
AT
4088# Now try BSD make style include.
4089if test "$am__include" = "#"; then
4090 echo '.include "confinc"' > confmf
5213506e
RW
4091 case `$am_make -s -f confmf 2> /dev/null` in #(
4092 *the\ am__doit\ target*)
4093 am__include=.include
4094 am__quote="\""
4095 _am_result=BSD
4096 ;;
4097 esac
3ed8e5b6
AT
4098fi
4099
4100
5213506e
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4102$as_echo "$_am_result" >&6; }
3ed8e5b6
AT
4103rm -f confinc confmf
4104
5213506e
RW
4105# Check whether --enable-dependency-tracking was given.
4106if test "${enable_dependency_tracking+set}" = set; then :
4107 enableval=$enable_dependency_tracking;
4108fi
3ed8e5b6 4109
3ed8e5b6
AT
4110if test "x$enable_dependency_tracking" != xno; then
4111 am_depcomp="$ac_aux_dir/depcomp"
4112 AMDEPBACKSLASH='\'
4113fi
5213506e 4114 if test "x$enable_dependency_tracking" != xno; then
3ed8e5b6
AT
4115 AMDEP_TRUE=
4116 AMDEP_FALSE='#'
4117else
4118 AMDEP_TRUE='#'
4119 AMDEP_FALSE=
4120fi
4121
4122
4123
3ed8e5b6
AT
4124depcc="$CC" am_compiler_list=
4125
5213506e
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4127$as_echo_n "checking dependency style of $depcc... " >&6; }
4128if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
4130else
4131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4132 # We make a subdir and do the tests there. Otherwise we can end up
4133 # making bogus files that we don't know about and never remove. For
4134 # instance it was reported that on HP-UX the gcc test will end up
4135 # making a dummy file named `D' -- because `-MD' means `put the output
4136 # in D'.
4137 mkdir conftest.dir
4138 # Copy depcomp to subdir because otherwise we won't find it if we're
4139 # using a relative directory.
4140 cp "$am_depcomp" conftest.dir
4141 cd conftest.dir
4142 # We will build objects and dependencies in a subdirectory because
4143 # it helps to detect inapplicable dependency modes. For instance
4144 # both Tru64's cc and ICC support -MD to output dependencies as a
4145 # side effect of compilation, but ICC will put the dependencies in
4146 # the current directory while Tru64 will put them in the object
4147 # directory.
4148 mkdir sub
4149
4150 am_cv_CC_dependencies_compiler_type=none
4151 if test "$am_compiler_list" = ""; then
4152 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4153 fi
5213506e
RW
4154 am__universal=false
4155 case " $depcc " in #(
4156 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4157 esac
4158
3ed8e5b6
AT
4159 for depmode in $am_compiler_list; do
4160 # Setup a source with many dependencies, because some compilers
4161 # like to wrap large dependency lists on column 80 (with \), and
4162 # we should not choose a depcomp mode which is confused by this.
4163 #
4164 # We need to recreate these files for each test, as the compiler may
4165 # overwrite some of them when testing with obscure command lines.
4166 # This happens at least with the AIX C compiler.
4167 : > sub/conftest.c
4168 for i in 1 2 3 4 5 6; do
4169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
4170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4171 # Solaris 8's {/usr,}/bin/sh.
4172 touch sub/conftst$i.h
3ed8e5b6
AT
4173 done
4174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4175
5213506e
RW
4176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4177 # mode. It turns out that the SunPro C++ compiler does not properly
4178 # handle `-M -o', and we need to detect this. Also, some Intel
4179 # versions had trouble with output in subdirs
4180 am__obj=sub/conftest.${OBJEXT-o}
4181 am__minus_obj="-o $am__obj"
3ed8e5b6 4182 case $depmode in
5213506e
RW
4183 gcc)
4184 # This depmode causes a compiler race in universal mode.
4185 test "$am__universal" = false || continue
4186 ;;
3ed8e5b6
AT
4187 nosideeffect)
4188 # after this tag, mechanisms are not by side-effect, so they'll
4189 # only be used when explicitly requested
4190 if test "x$enable_dependency_tracking" = xyes; then
4191 continue
4192 else
4193 break
4194 fi
4195 ;;
5213506e
RW
4196 msvisualcpp | msvcmsys)
4197 # This compiler won't grok `-c -o', but also, the minuso test has
4198 # not run yet. These depmodes are late enough in the game, and
4199 # so weak that their functioning should not be impacted.
4200 am__obj=conftest.${OBJEXT-o}
4201 am__minus_obj=
4202 ;;
3ed8e5b6
AT
4203 none) break ;;
4204 esac
3ed8e5b6 4205 if depmode=$depmode \
5213506e 4206 source=sub/conftest.c object=$am__obj \
3ed8e5b6 4207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4208 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3ed8e5b6 4209 >/dev/null 2>conftest.err &&
5213506e 4210 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6 4211 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4212 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6
AT
4213 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4214 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
4215 # or remarks (even with -Werror). So we grep stderr for any message
4216 # that says an option was ignored or not supported.
4217 # When given -MP, icc 7.0 and 7.1 complain thusly:
4218 # icc: Command line warning: ignoring option '-M'; no argument required
4219 # The diagnosis changed in icc 8.0:
4220 # icc: Command line remark: option '-MP' not supported
4221 if (grep 'ignoring option' conftest.err ||
4222 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
4223 am_cv_CC_dependencies_compiler_type=$depmode
4224 break
4225 fi
4226 fi
4227 done
bbf3057b 4228
3ed8e5b6
AT
4229 cd ..
4230 rm -rf conftest.dir
4231else
4232 am_cv_CC_dependencies_compiler_type=none
4233fi
4234
4235fi
5213506e
RW
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4237$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3ed8e5b6
AT
4238CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4239
5213506e 4240 if
3ed8e5b6
AT
4241 test "x$enable_dependency_tracking" != xno \
4242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4243 am__fastdepCC_TRUE=
4244 am__fastdepCC_FALSE='#'
4245else
4246 am__fastdepCC_TRUE='#'
4247 am__fastdepCC_FALSE=
4248fi
4249
4250
b1760f7f
RH
4251ac_ext=cpp
4252ac_cpp='$CXXCPP $CPPFLAGS'
4253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4256if test -z "$CXX"; then
4257 if test -n "$CCC"; then
4258 CXX=$CCC
4259 else
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4262 do
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if test "${ac_cv_prog_CXX+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CXX"; then
4271 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285 done
4286IFS=$as_save_IFS
3ed8e5b6 4287
b1760f7f
RH
4288fi
4289fi
4290CXX=$ac_cv_prog_CXX
4291if test -n "$CXX"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4293$as_echo "$CXX" >&6; }
4294else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
3ed8e5b6
AT
4298
4299
b1760f7f
RH
4300 test -n "$CXX" && break
4301 done
4302fi
4303if test -z "$CXX"; then
4304 ac_ct_CXX=$CXX
4305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
4311if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$ac_ct_CXX"; then
4315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CXX="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329 done
4330IFS=$as_save_IFS
3ed8e5b6 4331
b1760f7f
RH
4332fi
4333fi
4334ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4335if test -n "$ac_ct_CXX"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4337$as_echo "$ac_ct_CXX" >&6; }
4338else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
3ed8e5b6 4342
076e5443 4343
b1760f7f
RH
4344 test -n "$ac_ct_CXX" && break
4345done
3ed8e5b6 4346
b1760f7f
RH
4347 if test "x$ac_ct_CXX" = x; then
4348 CXX="g++"
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356 CXX=$ac_ct_CXX
4357 fi
4358fi
3ed8e5b6 4359
b1760f7f
RH
4360 fi
4361fi
4362# Provide some information about the compiler.
4363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4364set X $ac_compile
4365ac_compiler=$2
4366for ac_option in --version -v -V -qversion; do
4367 { { ac_try="$ac_compiler $ac_option >&5"
4368case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371esac
4372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373$as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4375 ac_status=$?
4376 if test -s conftest.err; then
4377 sed '10a\
4378... rest of stderr output deleted ...
4379 10q' conftest.err >conftest.er1
4380 cat conftest.er1 >&5
4381 rm -f conftest.er1 conftest.err
4382 fi
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; }
4385done
5213506e 4386
b1760f7f
RH
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4388$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4389if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5213506e 4390 $as_echo_n "(cached) " >&6
3ed8e5b6 4391else
b1760f7f
RH
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
3ed8e5b6 4394
b1760f7f
RH
4395int
4396main ()
4397{
4398#ifndef __GNUC__
4399 choke me
4400#endif
3ed8e5b6 4401
b1760f7f
RH
4402 ;
4403 return 0;
4404}
4405_ACEOF
4406if ac_fn_cxx_try_compile "$LINENO"; then :
4407 ac_compiler_gnu=yes
4408else
4409 ac_compiler_gnu=no
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5213506e 4413
b1760f7f
RH
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4416$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4417if test $ac_compiler_gnu = yes; then
4418 GXX=yes
4419else
4420 GXX=
4421fi
4422ac_test_CXXFLAGS=${CXXFLAGS+set}
4423ac_save_CXXFLAGS=$CXXFLAGS
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4425$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4426if test "${ac_cv_prog_cxx_g+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4430 ac_cxx_werror_flag=yes
4431 ac_cv_prog_cxx_g=no
4432 CXXFLAGS="-g"
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h. */
4435
4436int
4437main ()
4438{
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444if ac_fn_cxx_try_compile "$LINENO"; then :
4445 ac_cv_prog_cxx_g=yes
4446else
4447 CXXFLAGS=""
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h. */
4450
4451int
4452main ()
4453{
4454
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459if ac_fn_cxx_try_compile "$LINENO"; then :
4460
4461else
4462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4463 CXXFLAGS="-g"
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h. */
4466
4467int
4468main ()
4469{
4470
4471 ;
4472 return 0;
4473}
4474_ACEOF
4475if ac_fn_cxx_try_compile "$LINENO"; then :
4476 ac_cv_prog_cxx_g=yes
4477fi
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4486$as_echo "$ac_cv_prog_cxx_g" >&6; }
4487if test "$ac_test_CXXFLAGS" = set; then
4488 CXXFLAGS=$ac_save_CXXFLAGS
4489elif test $ac_cv_prog_cxx_g = yes; then
4490 if test "$GXX" = yes; then
4491 CXXFLAGS="-g -O2"
4492 else
4493 CXXFLAGS="-g"
4494 fi
4495else
4496 if test "$GXX" = yes; then
4497 CXXFLAGS="-O2"
4498 else
4499 CXXFLAGS=
4500 fi
4501fi
4502ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507
4508depcc="$CXX" am_compiler_list=
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4511$as_echo_n "checking dependency style of $depcc... " >&6; }
4512if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514else
4515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4516 # We make a subdir and do the tests there. Otherwise we can end up
4517 # making bogus files that we don't know about and never remove. For
4518 # instance it was reported that on HP-UX the gcc test will end up
4519 # making a dummy file named `D' -- because `-MD' means `put the output
4520 # in D'.
4521 mkdir conftest.dir
4522 # Copy depcomp to subdir because otherwise we won't find it if we're
4523 # using a relative directory.
4524 cp "$am_depcomp" conftest.dir
4525 cd conftest.dir
4526 # We will build objects and dependencies in a subdirectory because
4527 # it helps to detect inapplicable dependency modes. For instance
4528 # both Tru64's cc and ICC support -MD to output dependencies as a
4529 # side effect of compilation, but ICC will put the dependencies in
4530 # the current directory while Tru64 will put them in the object
4531 # directory.
4532 mkdir sub
4533
4534 am_cv_CXX_dependencies_compiler_type=none
4535 if test "$am_compiler_list" = ""; then
4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4537 fi
4538 am__universal=false
4539 case " $depcc " in #(
4540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4541 esac
4542
4543 for depmode in $am_compiler_list; do
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4547 #
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4551 : > sub/conftest.c
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4555 # Solaris 8's {/usr,}/bin/sh.
4556 touch sub/conftst$i.h
4557 done
4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4559
4560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4561 # mode. It turns out that the SunPro C++ compiler does not properly
4562 # handle `-M -o', and we need to detect this. Also, some Intel
4563 # versions had trouble with output in subdirs
4564 am__obj=sub/conftest.${OBJEXT-o}
4565 am__minus_obj="-o $am__obj"
4566 case $depmode in
4567 gcc)
4568 # This depmode causes a compiler race in universal mode.
4569 test "$am__universal" = false || continue
4570 ;;
4571 nosideeffect)
4572 # after this tag, mechanisms are not by side-effect, so they'll
4573 # only be used when explicitly requested
4574 if test "x$enable_dependency_tracking" = xyes; then
4575 continue
4576 else
4577 break
4578 fi
4579 ;;
4580 msvisualcpp | msvcmsys)
4581 # This compiler won't grok `-c -o', but also, the minuso test has
4582 # not run yet. These depmodes are late enough in the game, and
4583 # so weak that their functioning should not be impacted.
4584 am__obj=conftest.${OBJEXT-o}
4585 am__minus_obj=
4586 ;;
4587 none) break ;;
4588 esac
4589 if depmode=$depmode \
4590 source=sub/conftest.c object=$am__obj \
4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4593 >/dev/null 2>conftest.err &&
4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4598 # icc doesn't choke on unknown options, it will just issue warnings
4599 # or remarks (even with -Werror). So we grep stderr for any message
4600 # that says an option was ignored or not supported.
4601 # When given -MP, icc 7.0 and 7.1 complain thusly:
4602 # icc: Command line warning: ignoring option '-M'; no argument required
4603 # The diagnosis changed in icc 8.0:
4604 # icc: Command line remark: option '-MP' not supported
4605 if (grep 'ignoring option' conftest.err ||
4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4607 am_cv_CXX_dependencies_compiler_type=$depmode
4608 break
4609 fi
4610 fi
4611 done
4612
4613 cd ..
4614 rm -rf conftest.dir
4615else
4616 am_cv_CXX_dependencies_compiler_type=none
4617fi
4618
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4621$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4622CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4623
4624 if
4625 test "x$enable_dependency_tracking" != xno \
4626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4627 am__fastdepCXX_TRUE=
4628 am__fastdepCXX_FALSE='#'
4629else
4630 am__fastdepCXX_TRUE='#'
4631 am__fastdepCXX_FALSE=
4632fi
4633
4634
4635CFLAGS=$save_CFLAGS
4636
4637
4638
4639
4640
4641# By default we simply use the C compiler to build assembly code.
4642
4643test "${CCAS+set}" = set || CCAS=$CC
4644test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4645
4646
4647
4648depcc="$CCAS" am_compiler_list=
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4651$as_echo_n "checking dependency style of $depcc... " >&6; }
4652if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654else
4655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4656 # We make a subdir and do the tests there. Otherwise we can end up
4657 # making bogus files that we don't know about and never remove. For
4658 # instance it was reported that on HP-UX the gcc test will end up
4659 # making a dummy file named `D' -- because `-MD' means `put the output
4660 # in D'.
4661 mkdir conftest.dir
4662 # Copy depcomp to subdir because otherwise we won't find it if we're
4663 # using a relative directory.
4664 cp "$am_depcomp" conftest.dir
4665 cd conftest.dir
4666 # We will build objects and dependencies in a subdirectory because
4667 # it helps to detect inapplicable dependency modes. For instance
4668 # both Tru64's cc and ICC support -MD to output dependencies as a
4669 # side effect of compilation, but ICC will put the dependencies in
4670 # the current directory while Tru64 will put them in the object
4671 # directory.
4672 mkdir sub
4673
4674 am_cv_CCAS_dependencies_compiler_type=none
4675 if test "$am_compiler_list" = ""; then
4676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4677 fi
4678 am__universal=false
4679
4680
4681 for depmode in $am_compiler_list; do
4682 # Setup a source with many dependencies, because some compilers
4683 # like to wrap large dependency lists on column 80 (with \), and
4684 # we should not choose a depcomp mode which is confused by this.
4685 #
5213506e
RW
4686 # We need to recreate these files for each test, as the compiler may
4687 # overwrite some of them when testing with obscure command lines.
4688 # This happens at least with the AIX C compiler.
4689 : > sub/conftest.c
4690 for i in 1 2 3 4 5 6; do
4691 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4692 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4693 # Solaris 8's {/usr,}/bin/sh.
4694 touch sub/conftst$i.h
4695 done
4696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4697
4698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4699 # mode. It turns out that the SunPro C++ compiler does not properly
4700 # handle `-M -o', and we need to detect this. Also, some Intel
4701 # versions had trouble with output in subdirs
4702 am__obj=sub/conftest.${OBJEXT-o}
4703 am__minus_obj="-o $am__obj"
4704 case $depmode in
4705 gcc)
4706 # This depmode causes a compiler race in universal mode.
4707 test "$am__universal" = false || continue
4708 ;;
4709 nosideeffect)
4710 # after this tag, mechanisms are not by side-effect, so they'll
4711 # only be used when explicitly requested
4712 if test "x$enable_dependency_tracking" = xyes; then
4713 continue
4714 else
4715 break
4716 fi
4717 ;;
4718 msvisualcpp | msvcmsys)
4719 # This compiler won't grok `-c -o', but also, the minuso test has
4720 # not run yet. These depmodes are late enough in the game, and
4721 # so weak that their functioning should not be impacted.
4722 am__obj=conftest.${OBJEXT-o}
4723 am__minus_obj=
4724 ;;
4725 none) break ;;
4726 esac
4727 if depmode=$depmode \
4728 source=sub/conftest.c object=$am__obj \
4729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4731 >/dev/null 2>conftest.err &&
4732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4734 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4736 # icc doesn't choke on unknown options, it will just issue warnings
4737 # or remarks (even with -Werror). So we grep stderr for any message
4738 # that says an option was ignored or not supported.
4739 # When given -MP, icc 7.0 and 7.1 complain thusly:
4740 # icc: Command line warning: ignoring option '-M'; no argument required
4741 # The diagnosis changed in icc 8.0:
4742 # icc: Command line remark: option '-MP' not supported
4743 if (grep 'ignoring option' conftest.err ||
4744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4745 am_cv_CCAS_dependencies_compiler_type=$depmode
4746 break
4747 fi
4748 fi
4749 done
4750
4751 cd ..
4752 rm -rf conftest.dir
4753else
4754 am_cv_CCAS_dependencies_compiler_type=none
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4759$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4760CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4761
4762 if
4763 test "x$enable_dependency_tracking" != xno \
4764 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4765 am__fastdepCCAS_TRUE=
4766 am__fastdepCCAS_FALSE='#'
4767else
4768 am__fastdepCCAS_TRUE='#'
4769 am__fastdepCCAS_FALSE=
4770fi
4771
4772
4773if test "x$CC" != xcc; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4775$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4776else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4778$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4779fi
4780set dummy $CC; ac_cc=`$as_echo "$2" |
4781 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4782if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796# Make sure it works both with $CC and with simple cc.
4797# We do the test twice because some compilers refuse to overwrite an
4798# existing .o file with -o, though they will create one.
4799ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4800rm -f conftest2.*
4801if { { case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4806$as_echo "$ac_try_echo"; } >&5
4807 (eval "$ac_try") 2>&5
4808 ac_status=$?
4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810 test $ac_status = 0; } &&
4811 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814esac
4815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4816$as_echo "$ac_try_echo"; } >&5
4817 (eval "$ac_try") 2>&5
3ed8e5b6 4818 ac_status=$?
5213506e
RW
4819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820 test $ac_status = 0; };
3ed8e5b6
AT
4821then
4822 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4823 if test "x$CC" != xcc; then
4824 # Test first that cc exists at all.
4825 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4826 { { case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
4830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
4832 (eval "$ac_try") 2>&5
4833 ac_status=$?
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }; }; then
4836 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4837 rm -f conftest2.*
4838 if { { case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841esac
4842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4843$as_echo "$ac_try_echo"; } >&5
4844 (eval "$ac_try") 2>&5
4845 ac_status=$?
4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; } &&
4848 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_try") 2>&5
3ed8e5b6 4855 ac_status=$?
5213506e
RW
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; };
3ed8e5b6
AT
4858 then
4859 # cc works too.
4860 :
4861 else
4862 # cc exists but doesn't like -o.
4863 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4864 fi
4865 fi
4866 fi
4867else
4868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4869fi
5213506e 4870rm -f core conftest*
3ed8e5b6
AT
4871
4872fi
5213506e
RW
4873if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875$as_echo "yes" >&6; }
3ed8e5b6 4876else
5213506e
RW
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
3ed8e5b6 4879
5213506e 4880$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3ed8e5b6
AT
4881
4882fi
4883
4884# FIXME: we rely on the cache variable name because
4885# there is no other way.
4886set dummy $CC
5213506e
RW
4887am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4888eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4889if test "$am_t" != yes; then
3ed8e5b6
AT
4890 # Losing compiler, so override with the script.
4891 # FIXME: It is wrong to rewrite CC.
4892 # But if we don't then we get into trouble of one sort or another.
4893 # A longer-term fix would be to have automake use am__CC in this case,
4894 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4895 CC="$am_aux_dir/compile $CC"
4896fi
63e5e3e0 4897
5213506e 4898
80c6c2cb
PG
4899case `pwd` in
4900 *\ * | *\ *)
5213506e
RW
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4902$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
80c6c2cb 4903esac
1cf3d07d
SE
4904
4905
1cf3d07d 4906
43e02a8a
RW
4907macro_version='2.2.7a'
4908macro_revision='1.3134'
1cf3d07d
SE
4909
4910
4911
4912
4913
4914
63e5e3e0 4915
1cf3d07d
SE
4916
4917
4918
4919
4920
4921
80c6c2cb 4922ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4923
43e02a8a
RW
4924# Backslashify metacharacters that are still active within
4925# double-quoted strings.
4926sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4927
4928# Same as above, but do not quote variable references.
4929double_quote_subst='s/\(["`\\]\)/\\\1/g'
4930
4931# Sed substitution to delay expansion of an escaped shell variable in a
4932# double_quote_subst'ed string.
4933delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4934
4935# Sed substitution to delay expansion of an escaped single quote.
4936delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4937
4938# Sed substitution to avoid accidental globbing in evaled expressions
4939no_glob_subst='s/\*/\\\*/g'
4940
4941ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4946$as_echo_n "checking how to print strings... " >&6; }
4947# Test print first, because it will be a builtin if present.
4948if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4950 ECHO='print -r --'
4951elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4952 ECHO='printf %s\n'
4953else
4954 # Use this function as a fallback that always works.
4955 func_fallback_echo ()
4956 {
4957 eval 'cat <<_LTECHO_EOF
4958$1
4959_LTECHO_EOF'
4960 }
4961 ECHO='func_fallback_echo'
4962fi
4963
4964# func_echo_all arg...
4965# Invoke $ECHO with all args, space-separated.
4966func_echo_all ()
4967{
4968 $ECHO ""
4969}
4970
4971case "$ECHO" in
4972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4973$as_echo "printf" >&6; } ;;
4974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4975$as_echo "print -r" >&6; } ;;
4976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4977$as_echo "cat" >&6; } ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
5213506e
RW
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4994$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4995if test "${ac_cv_path_SED+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997else
4998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4999 for ac_i in 1 2 3 4 5 6 7; do
5000 ac_script="$ac_script$as_nl$ac_script"
5001 done
5002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5003 { ac_script=; unset ac_script;}
5004 if test -z "$SED"; then
5005 ac_path_SED_found=false
5006 # Loop through the user's path and test for each of PROGNAME-LIST
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5213506e 5012 for ac_prog in sed gsed; do
1cf3d07d 5013 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
5014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5015 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5016# Check for GNU ac_path_SED and select it if it is found.
5017 # Check for GNU $ac_path_SED
5018case `"$ac_path_SED" --version 2>&1` in
5019*GNU*)
5020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5021*)
5022 ac_count=0
5023 $as_echo_n 0123456789 >"conftest.in"
5024 while :
5025 do
5026 cat "conftest.in" "conftest.in" >"conftest.tmp"
5027 mv "conftest.tmp" "conftest.in"
5028 cp "conftest.in" "conftest.nl"
5029 $as_echo '' >> "conftest.nl"
5030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032 as_fn_arith $ac_count + 1 && ac_count=$as_val
5033 if test $ac_count -gt ${ac_path_SED_max-0}; then
5034 # Best one so far, save it but keep looking for a better one
5035 ac_cv_path_SED="$ac_path_SED"
5036 ac_path_SED_max=$ac_count
5037 fi
5038 # 10*(2^10) chars as input seems more than enough
5039 test $ac_count -gt 10 && break
5040 done
5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042esac
5043
5044 $ac_path_SED_found && break 3
1cf3d07d
SE
5045 done
5046 done
5213506e 5047 done
1cf3d07d 5048IFS=$as_save_IFS
5213506e
RW
5049 if test -z "$ac_cv_path_SED"; then
5050 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 5051 fi
5213506e
RW
5052else
5053 ac_cv_path_SED=$SED
1cf3d07d
SE
5054fi
5055
5213506e
RW
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5058$as_echo "$ac_cv_path_SED" >&6; }
5059 SED="$ac_cv_path_SED"
5060 rm -f conftest.sed
1cf3d07d
SE
5061
5062test -z "$SED" && SED=sed
5063Xsed="$SED -e 1s/^X//"
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5213506e
RW
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5076$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5077if test "${ac_cv_path_GREP+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5079else
5080 if test -z "$GREP"; then
5081 ac_path_GREP_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_prog in grep ggrep; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5091 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5092# Check for GNU ac_path_GREP and select it if it is found.
5093 # Check for GNU $ac_path_GREP
5094case `"$ac_path_GREP" --version 2>&1` in
5095*GNU*)
5096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5097*)
5098 ac_count=0
5099 $as_echo_n 0123456789 >"conftest.in"
5100 while :
5101 do
5102 cat "conftest.in" "conftest.in" >"conftest.tmp"
5103 mv "conftest.tmp" "conftest.in"
5104 cp "conftest.in" "conftest.nl"
5105 $as_echo 'GREP' >> "conftest.nl"
5106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108 as_fn_arith $ac_count + 1 && ac_count=$as_val
5109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5110 # Best one so far, save it but keep looking for a better one
5111 ac_cv_path_GREP="$ac_path_GREP"
5112 ac_path_GREP_max=$ac_count
5113 fi
5114 # 10*(2^10) chars as input seems more than enough
5115 test $ac_count -gt 10 && break
5116 done
5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118esac
5119
5120 $ac_path_GREP_found && break 3
5121 done
5122 done
5123 done
5124IFS=$as_save_IFS
5125 if test -z "$ac_cv_path_GREP"; then
5126 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5127 fi
5128else
5129 ac_cv_path_GREP=$GREP
5130fi
5131
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5134$as_echo "$ac_cv_path_GREP" >&6; }
5135 GREP="$ac_cv_path_GREP"
5136
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5139$as_echo_n "checking for egrep... " >&6; }
5140if test "${ac_cv_path_EGREP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
1cf3d07d 5142else
5213506e
RW
5143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5144 then ac_cv_path_EGREP="$GREP -E"
5145 else
5146 if test -z "$EGREP"; then
5147 ac_path_EGREP_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_prog in egrep; do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5157 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5158# Check for GNU ac_path_EGREP and select it if it is found.
5159 # Check for GNU $ac_path_EGREP
5160case `"$ac_path_EGREP" --version 2>&1` in
5161*GNU*)
5162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5163*)
5164 ac_count=0
5165 $as_echo_n 0123456789 >"conftest.in"
5166 while :
5167 do
5168 cat "conftest.in" "conftest.in" >"conftest.tmp"
5169 mv "conftest.tmp" "conftest.in"
5170 cp "conftest.in" "conftest.nl"
5171 $as_echo 'EGREP' >> "conftest.nl"
5172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_EGREP="$ac_path_EGREP"
5178 ac_path_EGREP_max=$ac_count
1cf3d07d 5179 fi
5213506e
RW
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5182 done
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184esac
5185
5186 $ac_path_EGREP_found && break 3
5187 done
5188 done
5189 done
5190IFS=$as_save_IFS
5191 if test -z "$ac_cv_path_EGREP"; then
5192 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193 fi
5194else
5195 ac_cv_path_EGREP=$EGREP
5196fi
5197
5198 fi
1cf3d07d 5199fi
5213506e
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5201$as_echo "$ac_cv_path_EGREP" >&6; }
5202 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
5203
5204
5213506e
RW
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5206$as_echo_n "checking for fgrep... " >&6; }
5207if test "${ac_cv_path_FGREP+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
1cf3d07d 5209else
5213506e
RW
5210 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5211 then ac_cv_path_FGREP="$GREP -F"
5212 else
5213 if test -z "$FGREP"; then
5214 ac_path_FGREP_found=false
5215 # Loop through the user's path and test for each of PROGNAME-LIST
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_prog in fgrep; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5224 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5225# Check for GNU ac_path_FGREP and select it if it is found.
5226 # Check for GNU $ac_path_FGREP
5227case `"$ac_path_FGREP" --version 2>&1` in
5228*GNU*)
5229 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5230*)
5231 ac_count=0
5232 $as_echo_n 0123456789 >"conftest.in"
5233 while :
5234 do
5235 cat "conftest.in" "conftest.in" >"conftest.tmp"
5236 mv "conftest.tmp" "conftest.in"
5237 cp "conftest.in" "conftest.nl"
5238 $as_echo 'FGREP' >> "conftest.nl"
5239 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241 as_fn_arith $ac_count + 1 && ac_count=$as_val
5242 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5243 # Best one so far, save it but keep looking for a better one
5244 ac_cv_path_FGREP="$ac_path_FGREP"
5245 ac_path_FGREP_max=$ac_count
1cf3d07d 5246 fi
5213506e
RW
5247 # 10*(2^10) chars as input seems more than enough
5248 test $ac_count -gt 10 && break
5249 done
5250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251esac
5252
5253 $ac_path_FGREP_found && break 3
5254 done
5255 done
5256 done
5257IFS=$as_save_IFS
5258 if test -z "$ac_cv_path_FGREP"; then
5259 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260 fi
5261else
5262 ac_cv_path_FGREP=$FGREP
5263fi
5264
5265 fi
1cf3d07d 5266fi
5213506e
RW
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5268$as_echo "$ac_cv_path_FGREP" >&6; }
5269 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5270
5271
5272test -z "$GREP" && GREP=grep
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5213506e
RW
5292# Check whether --with-gnu-ld was given.
5293if test "${with_gnu_ld+set}" = set; then :
5294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
63e5e3e0 5295else
675cdab3 5296 with_gnu_ld=no
5213506e
RW
5297fi
5298
63e5e3e0 5299ac_prog=ld
675cdab3 5300if test "$GCC" = yes; then
63e5e3e0 5301 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5303$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
5304 case $host in
5305 *-*-mingw*)
5306 # gcc leaves a trailing carriage return which upsets mingw
5307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5308 *)
5309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5310 esac
675cdab3 5311 case $ac_prog in
63e5e3e0 5312 # Accept absolute paths.
1cf3d07d 5313 [\\/]* | ?:[\\/]*)
63e5e3e0 5314 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5315 # Canonicalize the pathname of ld
5316 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5317 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5318 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
5319 done
5320 test -z "$LD" && LD="$ac_prog"
5321 ;;
5322 "")
5323 # If it fails, then pretend we aren't using GCC.
5324 ac_prog=ld
5325 ;;
5326 *)
5327 # If it is relative, then search for the first ld in PATH.
5328 with_gnu_ld=unknown
5329 ;;
5330 esac
5331elif test "$with_gnu_ld" = yes; then
5213506e
RW
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5333$as_echo_n "checking for GNU ld... " >&6; }
63e5e3e0 5334else
5213506e
RW
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5336$as_echo_n "checking for non-GNU ld... " >&6; }
63e5e3e0 5337fi
5213506e
RW
5338if test "${lt_cv_path_LD+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
63e5e3e0
AG
5340else
5341 if test -z "$LD"; then
1cf3d07d 5342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 5343 for ac_dir in $PATH; do
1cf3d07d 5344 IFS="$lt_save_ifs"
63e5e3e0 5345 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 5346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 5347 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 5348 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5349 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 5350 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5352 *GNU* | *'with BFD'*)
63e5e3e0 5353 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5354 ;;
5355 *)
63e5e3e0 5356 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5357 ;;
5358 esac
63e5e3e0
AG
5359 fi
5360 done
1cf3d07d 5361 IFS="$lt_save_ifs"
63e5e3e0 5362else
675cdab3 5363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
5364fi
5365fi
5366
675cdab3 5367LD="$lt_cv_path_LD"
63e5e3e0 5368if test -n "$LD"; then
5213506e
RW
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5370$as_echo "$LD" >&6; }
63e5e3e0 5371else
5213506e
RW
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
63e5e3e0 5374fi
5213506e
RW
5375test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5377$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5378if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
63e5e3e0 5380else
1cf3d07d
SE
5381 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5382case `$LD -v 2>&1 </dev/null` in
5383*GNU* | *'with BFD'*)
675cdab3 5384 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5385 ;;
5386*)
675cdab3 5387 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5388 ;;
5389esac
63e5e3e0 5390fi
5213506e
RW
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5392$as_echo "$lt_cv_prog_gnu_ld" >&6; }
675cdab3 5393with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 5394
63e5e3e0
AG
5395
5396
1cf3d07d
SE
5397
5398
5399
5400
5401
5402
5213506e
RW
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5404$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5405if test "${lt_cv_path_NM+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
63e5e3e0
AG
5407else
5408 if test -n "$NM"; then
5409 # Let the user override the test.
675cdab3 5410 lt_cv_path_NM="$NM"
63e5e3e0 5411else
1cf3d07d
SE
5412 lt_nm_to_check="${ac_tool_prefix}nm"
5413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5414 lt_nm_to_check="$lt_nm_to_check nm"
5415 fi
5416 for lt_tmp_nm in $lt_nm_to_check; do
5417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5419 IFS="$lt_save_ifs"
5420 test -z "$ac_dir" && ac_dir=.
5421 tmp_nm="$ac_dir/$lt_tmp_nm"
5422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5423 # Check to see if the nm accepts a BSD-compat flag.
5424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5425 # nm: unknown option "B" ignored
5426 # Tru64's nm complains that /dev/null is an invalid object file
5427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5428 */dev/null* | *'Invalid file or object type'*)
5429 lt_cv_path_NM="$tmp_nm -B"
5430 break
5431 ;;
5432 *)
5433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5434 */dev/null*)
5435 lt_cv_path_NM="$tmp_nm -p"
5436 break
5437 ;;
5438 *)
5439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5440 continue # so that we can try to find one that supports BSD flags
5441 ;;
5442 esac
5443 ;;
5444 esac
63e5e3e0 5445 fi
1cf3d07d
SE
5446 done
5447 IFS="$lt_save_ifs"
63e5e3e0 5448 done
1cf3d07d 5449 : ${lt_cv_path_NM=no}
63e5e3e0
AG
5450fi
5451fi
5213506e
RW
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5453$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5454if test "$lt_cv_path_NM" != "no"; then
5455 NM="$lt_cv_path_NM"
63e5e3e0 5456else
1cf3d07d 5457 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
5458 if test -n "$DUMPBIN"; then :
5459 # Let the user override the test.
5460 else
5461 if test -n "$ac_tool_prefix"; then
5462 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5463 do
5464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
2f7bf5b7 5470else
1cf3d07d
SE
5471 if test -n "$DUMPBIN"; then
5472 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5213506e
RW
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5481 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5483 break 2
5484 fi
5485done
5213506e
RW
5486 done
5487IFS=$as_save_IFS
2f7bf5b7 5488
1cf3d07d
SE
5489fi
5490fi
5491DUMPBIN=$ac_cv_prog_DUMPBIN
5492if test -n "$DUMPBIN"; then
5213506e
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5494$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5495else
5213506e
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
1cf3d07d 5498fi
675cdab3 5499
5213506e 5500
1cf3d07d
SE
5501 test -n "$DUMPBIN" && break
5502 done
5503fi
5504if test -z "$DUMPBIN"; then
5505 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 5506 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5507do
5508 # Extract the first word of "$ac_prog", so it can be a program name with args.
5509set dummy $ac_prog; ac_word=$2
5213506e
RW
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5514else
5515 if test -n "$ac_ct_DUMPBIN"; then
5516 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5213506e
RW
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5527 break 2
2f7bf5b7 5528 fi
1cf3d07d 5529done
5213506e
RW
5530 done
5531IFS=$as_save_IFS
2f7bf5b7 5532
1cf3d07d
SE
5533fi
5534fi
5535ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5536if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5538$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5539else
5213506e
RW
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
1cf3d07d 5542fi
2f7bf5b7 5543
5213506e 5544
1cf3d07d
SE
5545 test -n "$ac_ct_DUMPBIN" && break
5546done
2f7bf5b7 5547
5213506e
RW
5548 if test "x$ac_ct_DUMPBIN" = x; then
5549 DUMPBIN=":"
5550 else
5551 case $cross_compiling:$ac_tool_warned in
5552yes:)
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557 DUMPBIN=$ac_ct_DUMPBIN
5558 fi
1cf3d07d 5559fi
2f7bf5b7 5560
43e02a8a
RW
5561 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5562 *COFF*)
5563 DUMPBIN="$DUMPBIN -symbols"
5564 ;;
5565 *)
5566 DUMPBIN=:
5567 ;;
5568 esac
5569 fi
2f7bf5b7 5570
1cf3d07d
SE
5571 if test "$DUMPBIN" != ":"; then
5572 NM="$DUMPBIN"
2f7bf5b7 5573 fi
1cf3d07d
SE
5574fi
5575test -z "$NM" && NM=nm
2f7bf5b7 5576
2f7bf5b7 5577
2f7bf5b7 5578
2f7bf5b7 5579
33456445 5580
2f7bf5b7 5581
5213506e
RW
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5583$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5584if test "${lt_cv_nm_interface+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5586else
5587 lt_cv_nm_interface="BSD nm"
5588 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 5589 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
5590 (eval "$ac_compile" 2>conftest.err)
5591 cat conftest.err >&5
43e02a8a 5592 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5594 cat conftest.err >&5
43e02a8a 5595 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5596 cat conftest.out >&5
5597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5598 lt_cv_nm_interface="MS dumpbin"
5599 fi
5600 rm -f conftest*
2f7bf5b7 5601fi
5213506e
RW
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5603$as_echo "$lt_cv_nm_interface" >&6; }
2f7bf5b7 5604
5213506e
RW
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5606$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5607LN_S=$as_ln_s
5608if test "$LN_S" = "ln -s"; then
5213506e
RW
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610$as_echo "yes" >&6; }
1cf3d07d 5611else
5213506e
RW
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5613$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5614fi
2f7bf5b7 5615
6dab073b 5616# find the maximum length of command line arguments
5213506e
RW
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5618$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5619if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
6dab073b
MS
5621else
5622 i=0
5623 teststring="ABCD"
5624
5625 case $build_os in
5626 msdosdjgpp*)
5627 # On DJGPP, this test can blow up pretty badly due to problems in libc
5628 # (any single argument exceeding 2000 bytes causes a buffer overrun
5629 # during glob expansion). Even if it were fixed, the result of this
5630 # check would be larger than it should be.
5631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5632 ;;
5633
1cf3d07d
SE
5634 gnu*)
5635 # Under GNU Hurd, this test is not required because there is
5636 # no limit to the length of command line arguments.
5637 # Libtool will interpret -1 as no limit whatsoever
5638 lt_cv_sys_max_cmd_len=-1;
5639 ;;
5640
80c6c2cb 5641 cygwin* | mingw* | cegcc*)
6dab073b
MS
5642 # On Win9x/ME, this test blows up -- it succeeds, but takes
5643 # about 5 minutes as the teststring grows exponentially.
5644 # Worse, since 9x/ME are not pre-emptively multitasking,
5645 # you end up with a "frozen" computer, even though with patience
5646 # the test eventually succeeds (with a max line length of 256k).
5647 # Instead, let's just punt: use the minimum linelength reported by
5648 # all of the supported platforms: 8192 (on NT/2K/XP).
5649 lt_cv_sys_max_cmd_len=8192;
5650 ;;
5651
43e02a8a
RW
5652 mint*)
5653 # On MiNT this can take a long time and run out of memory.
5654 lt_cv_sys_max_cmd_len=8192;
5655 ;;
5656
6dab073b
MS
5657 amigaos*)
5658 # On AmigaOS with pdksh, this test takes hours, literally.
5659 # So we just punt and use a minimum line length of 8192.
5660 lt_cv_sys_max_cmd_len=8192;
5661 ;;
5662
5663 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5664 # This has been around since 386BSD, at least. Likely further.
5665 if test -x /sbin/sysctl; then
5666 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5667 elif test -x /usr/sbin/sysctl; then
5668 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5669 else
1cf3d07d 5670 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5671 fi
5672 # And add a safety zone
5673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5675 ;;
1cf3d07d
SE
5676
5677 interix*)
5678 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5679 lt_cv_sys_max_cmd_len=196608
5680 ;;
5681
5682 osf*)
5683 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5684 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5685 # nice to cause kernel panics so lets avoid the loop below.
5686 # First set a reasonable default.
5687 lt_cv_sys_max_cmd_len=16384
5688 #
5689 if test -x /sbin/sysconfig; then
5690 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5691 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5692 esac
5693 fi
5694 ;;
5695 sco3.2v5*)
5696 lt_cv_sys_max_cmd_len=102400
5697 ;;
5698 sysv5* | sco5v6* | sysv4.2uw2*)
5699 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5700 if test -n "$kargmax"; then
5701 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5702 else
5703 lt_cv_sys_max_cmd_len=32768
5704 fi
5705 ;;
5706 *)
80c6c2cb
PG
5707 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5708 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5711 else
5712 # Make teststring a little bigger before we do anything with it.
5713 # a 1K string should be a reasonable start.
5714 for i in 1 2 3 4 5 6 7 8 ; do
5715 teststring=$teststring$teststring
5716 done
5717 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5718 # If test is not a shell built-in, we'll probably end up computing a
5719 # maximum length that is only half of the actual maximum length, but
5720 # we can't tell.
43e02a8a
RW
5721 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5722 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5723 test $i != 17 # 1/2 MB should be enough
5724 do
5725 i=`expr $i + 1`
5726 teststring=$teststring$teststring
5727 done
5728 # Only check the string length outside the loop.
5729 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5730 teststring=
5731 # Add a significant safety factor because C++ compilers can tack on
5732 # massive amounts of additional arguments before passing them to the
5733 # linker. It appears as though 1/2 is a usable value.
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5735 fi
1cf3d07d 5736 ;;
6dab073b
MS
5737 esac
5738
5739fi
5740
1cf3d07d 5741if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5743$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5744else
5213506e
RW
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5746$as_echo "none" >&6; }
6dab073b 5747fi
1cf3d07d 5748max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5749
5750
2f7bf5b7 5751
2f7bf5b7 5752
2f7bf5b7 5753
1cf3d07d 5754
1cf3d07d
SE
5755: ${CP="cp -f"}
5756: ${MV="mv -f"}
5757: ${RM="rm -f"}
5758
5213506e
RW
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5760$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5761# Try some XSI features
5762xsi_shell=no
5763( _lt_dummy="a/b/c"
5764 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
5765 = c,a/b,, \
5766 && eval 'test $(( 1 + 1 )) -eq 2 \
5767 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5768 && xsi_shell=yes
5213506e
RW
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5770$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5771
5772
5213506e
RW
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5774$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5775lt_shell_append=no
5776( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5777 >/dev/null 2>&1 \
5778 && lt_shell_append=yes
5213506e
RW
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5780$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5781
5782
5783if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5784 lt_unset=unset
2f7bf5b7 5785else
1cf3d07d 5786 lt_unset=false
2f7bf5b7
AO
5787fi
5788
1cf3d07d
SE
5789
5790
5791
5792
5793# test EBCDIC or ASCII
5794case `echo X|tr X '\101'` in
5795 A) # ASCII based system
5796 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5797 lt_SP2NL='tr \040 \012'
5798 lt_NL2SP='tr \015\012 \040\040'
5799 ;;
5800 *) # EBCDIC based system
5801 lt_SP2NL='tr \100 \n'
5802 lt_NL2SP='tr \r\n \100\100'
5803 ;;
5804esac
5805
5806
5807
5808
5809
5810
5811
5812
5813
5213506e
RW
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5815$as_echo_n "checking for $LD option to reload object files... " >&6; }
5816if test "${lt_cv_ld_reload_flag+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
2f7bf5b7 5818else
1cf3d07d
SE
5819 lt_cv_ld_reload_flag='-r'
5820fi
5213506e
RW
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5822$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5823reload_flag=$lt_cv_ld_reload_flag
5824case $reload_flag in
5825"" | " "*) ;;
5826*) reload_flag=" $reload_flag" ;;
5827esac
5828reload_cmds='$LD$reload_flag -o $output$reload_objs'
5829case $host_os in
5830 darwin*)
5831 if test "$GCC" = yes; then
5832 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5833 else
5834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5835 fi
5836 ;;
5837esac
5838
5839
5840
5841
5842
5843
5844
5845
5846
80c6c2cb
PG
5847if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5849set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5854else
5855 if test -n "$OBJDUMP"; then
5856 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5213506e
RW
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5865 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5867 break 2
5868 fi
5869done
5213506e
RW
5870 done
5871IFS=$as_save_IFS
80c6c2cb
PG
5872
5873fi
5874fi
5875OBJDUMP=$ac_cv_prog_OBJDUMP
5876if test -n "$OBJDUMP"; then
5213506e
RW
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5878$as_echo "$OBJDUMP" >&6; }
80c6c2cb 5879else
5213506e
RW
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
80c6c2cb
PG
5882fi
5883
5213506e 5884
80c6c2cb
PG
5885fi
5886if test -z "$ac_cv_prog_OBJDUMP"; then
5887 ac_ct_OBJDUMP=$OBJDUMP
5888 # Extract the first word of "objdump", so it can be a program name with args.
5889set dummy objdump; ac_word=$2
5213506e
RW
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891$as_echo_n "checking for $ac_word... " >&6; }
5892if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5894else
5895 if test -n "$ac_ct_OBJDUMP"; then
5896 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5213506e
RW
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5905 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5907 break 2
5908 fi
5909done
5213506e
RW
5910 done
5911IFS=$as_save_IFS
80c6c2cb 5912
80c6c2cb
PG
5913fi
5914fi
5915ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5916if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5918$as_echo "$ac_ct_OBJDUMP" >&6; }
80c6c2cb 5919else
5213506e
RW
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
80c6c2cb
PG
5922fi
5923
5213506e
RW
5924 if test "x$ac_ct_OBJDUMP" = x; then
5925 OBJDUMP="false"
5926 else
5927 case $cross_compiling:$ac_tool_warned in
5928yes:)
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931ac_tool_warned=yes ;;
5932esac
5933 OBJDUMP=$ac_ct_OBJDUMP
5934 fi
80c6c2cb
PG
5935else
5936 OBJDUMP="$ac_cv_prog_OBJDUMP"
5937fi
5938
5939test -z "$OBJDUMP" && OBJDUMP=objdump
5940
5941
5942
5943
5944
5945
5946
5947
1cf3d07d 5948
5213506e
RW
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5950$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5951if test "${lt_cv_deplibs_check_method+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5953else
5954 lt_cv_file_magic_cmd='$MAGIC_CMD'
5955lt_cv_file_magic_test_file=
5956lt_cv_deplibs_check_method='unknown'
5957# Need to set the preceding variable on all platforms that support
5958# interlibrary dependencies.
5959# 'none' -- dependencies not supported.
5960# `unknown' -- same as none, but documents that we really don't know.
5961# 'pass_all' -- all dependencies passed with no checks.
5962# 'test_compile' -- check by making test program.
5963# 'file_magic [[regex]]' -- check by looking for files in library path
5964# which responds to the $file_magic_cmd with a given extended regex.
5965# If you have `file' or equivalent on your system and you're not sure
5966# whether `pass_all' will *always* work, you probably want this one.
5967
5968case $host_os in
95d4f544 5969aix[4-9]*)
1cf3d07d
SE
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972
5973beos*)
5974 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5975 ;;
1cf3d07d
SE
5976
5977bsdi[45]*)
5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5979 lt_cv_file_magic_cmd='/usr/bin/file -L'
5980 lt_cv_file_magic_test_file=/shlib/libc.so
5981 ;;
5982
5983cygwin*)
5984 # func_win32_libid is a shell function defined in ltmain.sh
5985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5986 lt_cv_file_magic_cmd='func_win32_libid'
5987 ;;
5988
5989mingw* | pw32*)
5990 # Base MSYS/MinGW do not provide the 'file' command needed by
5991 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5992 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5993 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5994 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5996 lt_cv_file_magic_cmd='func_win32_libid'
5997 else
5998 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5999 lt_cv_file_magic_cmd='$OBJDUMP -f'
6000 fi
6001 ;;
6002
43e02a8a 6003cegcc*)
80c6c2cb
PG
6004 # use the weaker test based on 'objdump'. See mingw*.
6005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6006 lt_cv_file_magic_cmd='$OBJDUMP -f'
6007 ;;
6008
1cf3d07d
SE
6009darwin* | rhapsody*)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013freebsd* | dragonfly*)
6014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6015 case $host_cpu in
6016 i*86 )
6017 # Not sure whether the presence of OpenBSD here was a mistake.
6018 # Let's accept both of them until this is cleared up.
6019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6020 lt_cv_file_magic_cmd=/usr/bin/file
6021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6022 ;;
6023 esac
6024 else
6025 lt_cv_deplibs_check_method=pass_all
6026 fi
6027 ;;
6028
6029gnu*)
6030 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 6031 ;;
1cf3d07d 6032
43e02a8a
RW
6033haiku*)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
1cf3d07d
SE
6037hpux10.20* | hpux11*)
6038 lt_cv_file_magic_cmd=/usr/bin/file
6039 case $host_cpu in
6040 ia64*)
6041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6043 ;;
6044 hppa*64*)
43e02a8a 6045 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
6046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6047 ;;
2f7bf5b7 6048 *)
43e02a8a 6049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
6050 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6051 ;;
6052 esac
6053 ;;
2f7bf5b7 6054
1cf3d07d
SE
6055interix[3-9]*)
6056 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6058 ;;
2f7bf5b7 6059
1cf3d07d
SE
6060irix5* | irix6* | nonstopux*)
6061 case $LD in
6062 *-32|*"-32 ") libmagic=32-bit;;
6063 *-n32|*"-n32 ") libmagic=N32;;
6064 *-64|*"-64 ") libmagic=64-bit;;
6065 *) libmagic=never-match;;
6066 esac
6067 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 6068 ;;
2f7bf5b7 6069
1cf3d07d 6070# This must be Linux ELF.
7a9d3fe8 6071linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
2f7bf5b7 6074
1cf3d07d
SE
6075netbsd*)
6076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 6078 else
1cf3d07d 6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 6080 fi
1cf3d07d
SE
6081 ;;
6082
6083newos6*)
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6085 lt_cv_file_magic_cmd=/usr/bin/file
6086 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6087 ;;
6088
6089*nto* | *qnx*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
63e5e3e0 6092
1cf3d07d
SE
6093openbsd*)
6094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6096 else
6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
6098 fi
6099 ;;
1cf3d07d
SE
6100
6101osf3* | osf4* | osf5*)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104
6105rdos*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109solaris*)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117sysv4 | sysv4.3*)
6118 case $host_vendor in
6119 motorola)
6120 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]'
6121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6122 ;;
6123 ncr)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126 sequent)
6127 lt_cv_file_magic_cmd='/bin/file'
6128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6129 ;;
6130 sni)
6131 lt_cv_file_magic_cmd='/bin/file'
6132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6133 lt_cv_file_magic_test_file=/lib/libc.so
6134 ;;
6135 siemens)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138 pc)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141 esac
6142 ;;
6143
6144tpf*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
dc5de370
HB
6147esac
6148
1cf3d07d 6149fi
5213506e
RW
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6151$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
6152file_magic_cmd=$lt_cv_file_magic_cmd
6153deplibs_check_method=$lt_cv_deplibs_check_method
6154test -z "$deplibs_check_method" && deplibs_check_method=unknown
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
3ed8e5b6 6167if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6168 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if test "${ac_cv_prog_AR+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
2f7bf5b7 6174else
1cf3d07d
SE
6175 if test -n "$AR"; then
6176 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 6177else
3ed8e5b6
AT
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
5213506e
RW
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6185 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
6187 break 2
6188 fi
6189done
5213506e
RW
6190 done
6191IFS=$as_save_IFS
3ed8e5b6 6192
2f7bf5b7
AO
6193fi
6194fi
1cf3d07d
SE
6195AR=$ac_cv_prog_AR
6196if test -n "$AR"; then
5213506e
RW
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6198$as_echo "$AR" >&6; }
2f7bf5b7 6199else
5213506e
RW
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
2f7bf5b7
AO
6202fi
6203
5213506e 6204
3ed8e5b6 6205fi
1cf3d07d
SE
6206if test -z "$ac_cv_prog_AR"; then
6207 ac_ct_AR=$AR
6208 # Extract the first word of "ar", so it can be a program name with args.
6209set dummy ar; ac_word=$2
5213506e
RW
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
2f7bf5b7 6214else
1cf3d07d
SE
6215 if test -n "$ac_ct_AR"; then
6216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 6217else
3ed8e5b6
AT
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
5213506e
RW
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6225 ac_cv_prog_ac_ct_AR="ar"
5213506e 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
6227 break 2
6228 fi
6229done
5213506e
RW
6230 done
6231IFS=$as_save_IFS
3ed8e5b6 6232
2f7bf5b7
AO
6233fi
6234fi
1cf3d07d
SE
6235ac_ct_AR=$ac_cv_prog_ac_ct_AR
6236if test -n "$ac_ct_AR"; then
5213506e
RW
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6238$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 6239else
5213506e
RW
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
2f7bf5b7
AO
6242fi
6243
5213506e
RW
6244 if test "x$ac_ct_AR" = x; then
6245 AR="false"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253 AR=$ac_ct_AR
6254 fi
2f7bf5b7 6255else
1cf3d07d 6256 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
6257fi
6258
1cf3d07d
SE
6259test -z "$AR" && AR=ar
6260test -z "$AR_FLAGS" && AR_FLAGS=cru
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
3ed8e5b6
AT
6272if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 6274set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if test "${ac_cv_prog_STRIP+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
6279else
6280 if test -n "$STRIP"; then
6281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6282else
3ed8e5b6
AT
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
5213506e
RW
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 6290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
6292 break 2
6293 fi
6294done
5213506e
RW
6295 done
6296IFS=$as_save_IFS
3ed8e5b6 6297
2f7bf5b7
AO
6298fi
6299fi
3ed8e5b6 6300STRIP=$ac_cv_prog_STRIP
2f7bf5b7 6301if test -n "$STRIP"; then
5213506e
RW
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6303$as_echo "$STRIP" >&6; }
2f7bf5b7 6304else
5213506e
RW
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
2f7bf5b7
AO
6307fi
6308
5213506e 6309
3ed8e5b6 6310fi
2f7bf5b7 6311if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 6312 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
6313 # Extract the first word of "strip", so it can be a program name with args.
6314set dummy strip; ac_word=$2
5213506e
RW
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316$as_echo_n "checking for $ac_word... " >&6; }
6317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
2f7bf5b7 6319else
3ed8e5b6
AT
6320 if test -n "$ac_ct_STRIP"; then
6321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 6322else
3ed8e5b6
AT
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
5213506e
RW
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 6330 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
6332 break 2
6333 fi
6334done
5213506e
RW
6335 done
6336IFS=$as_save_IFS
3ed8e5b6 6337
2f7bf5b7
AO
6338fi
6339fi
3ed8e5b6
AT
6340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6341if test -n "$ac_ct_STRIP"; then
5213506e
RW
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6343$as_echo "$ac_ct_STRIP" >&6; }
675cdab3 6344else
5213506e
RW
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
675cdab3
BM
6347fi
6348
5213506e
RW
6349 if test "x$ac_ct_STRIP" = x; then
6350 STRIP=":"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353yes:)
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356ac_tool_warned=yes ;;
6357esac
6358 STRIP=$ac_ct_STRIP
6359 fi
675cdab3 6360else
3ed8e5b6 6361 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
6362fi
6363
1cf3d07d 6364test -z "$STRIP" && STRIP=:
675cdab3 6365
675cdab3
BM
6366
6367
675cdab3 6368
675cdab3 6369
3ed8e5b6 6370
1cf3d07d
SE
6371if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if test "${ac_cv_prog_RANLIB+set}" = set; then :
6377 $as_echo_n "(cached) " >&6
675cdab3 6378else
1cf3d07d
SE
6379 if test -n "$RANLIB"; then
6380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
5213506e
RW
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6391 break 2
6392 fi
6393done
5213506e
RW
6394 done
6395IFS=$as_save_IFS
1cf3d07d
SE
6396
6397fi
6398fi
6399RANLIB=$ac_cv_prog_RANLIB
6400if test -n "$RANLIB"; then
5213506e
RW
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6402$as_echo "$RANLIB" >&6; }
1cf3d07d 6403else
5213506e
RW
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
1cf3d07d
SE
6406fi
6407
5213506e 6408
1cf3d07d
SE
6409fi
6410if test -z "$ac_cv_prog_RANLIB"; then
6411 ac_ct_RANLIB=$RANLIB
6412 # Extract the first word of "ranlib", so it can be a program name with args.
6413set dummy ranlib; ac_word=$2
5213506e
RW
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6418else
6419 if test -n "$ac_ct_RANLIB"; then
6420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
5213506e
RW
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6429 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6431 break 2
6432 fi
6433done
5213506e
RW
6434 done
6435IFS=$as_save_IFS
1cf3d07d 6436
1cf3d07d
SE
6437fi
6438fi
6439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6442$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 6443else
5213506e
RW
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
1cf3d07d
SE
6446fi
6447
5213506e
RW
6448 if test "x$ac_ct_RANLIB" = x; then
6449 RANLIB=":"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457 RANLIB=$ac_ct_RANLIB
6458 fi
1cf3d07d
SE
6459else
6460 RANLIB="$ac_cv_prog_RANLIB"
6461fi
6462
6463test -z "$RANLIB" && RANLIB=:
6464
6465
6466
6467
6468
6469
6470# Determine commands to create old-style static archives.
80c6c2cb 6471old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6472old_postinstall_cmds='chmod 644 $oldlib'
6473old_postuninstall_cmds=
6474
6475if test -n "$RANLIB"; then
6476 case $host_os in
6477 openbsd*)
6478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6479 ;;
6480 *)
6481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6482 ;;
6483 esac
6484 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6485fi
6486
43e02a8a
RW
6487case $host_os in
6488 darwin*)
6489 lock_old_archive_extraction=yes ;;
6490 *)
6491 lock_old_archive_extraction=no ;;
6492esac
6493
6494
6495
6496
6497
6498
1cf3d07d
SE
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532# If no C compiler was specified, use CC.
6533LTCC=${LTCC-"$CC"}
6534
6535# If no C compiler flags were specified, use CFLAGS.
6536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6537
6538# Allow CC to be a program name with arguments.
6539compiler=$CC
6540
6541
6542# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6544$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6547else
6548
6549# These are sane defaults that work on at least a few old systems.
6550# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6551
6552# Character class describing NM global symbol codes.
6553symcode='[BCDEGRST]'
6554
6555# Regexp to match symbols that can be accessed directly from C.
6556sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6557
6558# Define system-specific variables.
6559case $host_os in
6560aix*)
6561 symcode='[BCDT]'
6562 ;;
80c6c2cb 6563cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6564 symcode='[ABCDGISTW]'
6565 ;;
6566hpux*)
6567 if test "$host_cpu" = ia64; then
6568 symcode='[ABCDEGRST]'
6569 fi
6570 ;;
6571irix* | nonstopux*)
6572 symcode='[BCDEGRST]'
6573 ;;
6574osf*)
6575 symcode='[BCDEGQRST]'
6576 ;;
6577solaris*)
6578 symcode='[BDRT]'
6579 ;;
6580sco3.2v5*)
6581 symcode='[DT]'
6582 ;;
6583sysv4.2uw2*)
6584 symcode='[DT]'
6585 ;;
6586sysv5* | sco5v6* | unixware* | OpenUNIX*)
6587 symcode='[ABDT]'
6588 ;;
6589sysv4)
6590 symcode='[DFNSTU]'
6591 ;;
6592esac
6593
6594# If we're using GNU nm, then use its standard symbol codes.
6595case `$NM -V 2>&1` in
6596*GNU* | *'with BFD'*)
6597 symcode='[ABCDGIRSTW]' ;;
6598esac
6599
6600# Transform an extracted symbol line into a proper C declaration.
6601# Some systems (esp. on ia64) link data and code symbols differently,
6602# so use this general approach.
6603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6604
6605# Transform an extracted symbol line into symbol name and symbol address
6606lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 6607lt_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
6608
6609# Handle CRLF in mingw tool chain
6610opt_cr=
6611case $build_os in
6612mingw*)
6613 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6614 ;;
6615esac
6616
6617# Try without a prefix underscore, then with it.
6618for ac_symprfx in "" "_"; do
6619
6620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6621 symxfrm="\\1 $ac_symprfx\\2 \\2"
6622
6623 # Write the raw and C identifiers.
6624 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6625 # Fake it for dumpbin and say T for any non-static function
6626 # and D for any global variable.
6627 # Also find C++ and __fastcall symbols from MSVC++,
6628 # which start with @ or ?.
6629 lt_cv_sys_global_symbol_pipe="$AWK '"\
6630" {last_section=section; section=\$ 3};"\
6631" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6632" \$ 0!~/External *\|/{next};"\
6633" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6634" {if(hide[section]) next};"\
6635" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6636" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6637" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6638" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6639" ' prfx=^$ac_symprfx"
6640 else
6641 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6642 fi
6643
6644 # Check to see that the pipe works correctly.
6645 pipe_works=no
6646
6647 rm -f conftest*
6648 cat > conftest.$ac_ext <<_LT_EOF
6649#ifdef __cplusplus
6650extern "C" {
6651#endif
6652char nm_test_var;
6653void nm_test_func(void);
6654void nm_test_func(void){}
6655#ifdef __cplusplus
6656}
6657#endif
6658int main(){nm_test_var='a';nm_test_func();return(0);}
6659_LT_EOF
6660
5213506e 6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6662 (eval $ac_compile) 2>&5
6663 ac_status=$?
5213506e
RW
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
1cf3d07d
SE
6666 # Now try to grab the symbols.
6667 nlist=conftest.nm
43e02a8a
RW
6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6669 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6670 ac_status=$?
5213506e
RW
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6673 # Try sorting and uniquifying the output.
6674 if sort "$nlist" | uniq > "$nlist"T; then
6675 mv -f "$nlist"T "$nlist"
6676 else
6677 rm -f "$nlist"T
6678 fi
6679
6680 # Make sure that we snagged all the symbols we need.
6681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6683 cat <<_LT_EOF > conftest.$ac_ext
6684#ifdef __cplusplus
6685extern "C" {
6686#endif
6687
6688_LT_EOF
6689 # Now generate the symbol file.
6690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6691
6692 cat <<_LT_EOF >> conftest.$ac_ext
6693
6694/* The mapping between symbol names and symbols. */
6695const struct {
6696 const char *name;
6697 void *address;
6698}
6699lt__PROGRAM__LTX_preloaded_symbols[] =
6700{
6701 { "@PROGRAM@", (void *) 0 },
6702_LT_EOF
6703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6704 cat <<\_LT_EOF >> conftest.$ac_ext
6705 {0, (void *) 0}
6706};
6707
6708/* This works around a problem in FreeBSD linker */
6709#ifdef FREEBSD_WORKAROUND
6710static const void *lt_preloaded_setup() {
6711 return lt__PROGRAM__LTX_preloaded_symbols;
6712}
6713#endif
6714
6715#ifdef __cplusplus
6716}
6717#endif
6718_LT_EOF
6719 # Now try linking the two files.
6720 mv conftest.$ac_objext conftstm.$ac_objext
6721 lt_save_LIBS="$LIBS"
6722 lt_save_CFLAGS="$CFLAGS"
6723 LIBS="conftstm.$ac_objext"
6724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6726 (eval $ac_link) 2>&5
6727 ac_status=$?
5213506e
RW
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6730 pipe_works=yes
6731 fi
6732 LIBS="$lt_save_LIBS"
6733 CFLAGS="$lt_save_CFLAGS"
6734 else
6735 echo "cannot find nm_test_func in $nlist" >&5
6736 fi
6737 else
6738 echo "cannot find nm_test_var in $nlist" >&5
6739 fi
6740 else
6741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6742 fi
6743 else
6744 echo "$progname: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6746 fi
80c6c2cb 6747 rm -rf conftest* conftst*
1cf3d07d
SE
6748
6749 # Do not use the global_symbol_pipe unless it works.
6750 if test "$pipe_works" = yes; then
6751 break
6752 else
6753 lt_cv_sys_global_symbol_pipe=
6754 fi
6755done
6756
6757fi
6758
6759if test -z "$lt_cv_sys_global_symbol_pipe"; then
6760 lt_cv_sys_global_symbol_to_cdecl=
6761fi
6762if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6764$as_echo "failed" >&6; }
1cf3d07d 6765else
5213506e
RW
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6767$as_echo "ok" >&6; }
1cf3d07d
SE
6768fi
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
80c6c2cb
PG
6784
6785
6786
6787
6788
1cf3d07d
SE
6789
6790
6791
5213506e
RW
6792# Check whether --enable-libtool-lock was given.
6793if test "${enable_libtool_lock+set}" = set; then :
6794 enableval=$enable_libtool_lock;
6795fi
1cf3d07d 6796
1cf3d07d 6797test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
6798
6799# Some flags need to be propagated to the compiler or linker for good
6800# libtool support.
6801case $host in
1cf3d07d 6802ia64-*-hpux*)
675cdab3 6803 # Find out which ABI we are using.
1cf3d07d 6804 echo 'int i;' > conftest.$ac_ext
5213506e 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3ed8e5b6
AT
6806 (eval $ac_compile) 2>&5
6807 ac_status=$?
5213506e
RW
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }; then
675cdab3 6810 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6811 *ELF-32*)
6812 HPUX_IA64_MODE="32"
6813 ;;
6814 *ELF-64*)
6815 HPUX_IA64_MODE="64"
6816 ;;
3ed8e5b6 6817 esac
3ed8e5b6
AT
6818 fi
6819 rm -rf conftest*
6820 ;;
1cf3d07d
SE
6821*-*-irix6*)
6822 # Find out which ABI we are using.
43e02a8a 6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6825 (eval $ac_compile) 2>&5
6826 ac_status=$?
5213506e
RW
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
1cf3d07d
SE
6829 if test "$lt_cv_prog_gnu_ld" = yes; then
6830 case `/usr/bin/file conftest.$ac_objext` in
6831 *32-bit*)
6832 LD="${LD-ld} -melf32bsmip"
6833 ;;
6834 *N32*)
6835 LD="${LD-ld} -melf32bmipn32"
6836 ;;
6837 *64-bit*)
6838 LD="${LD-ld} -melf64bmip"
6839 ;;
6840 esac
6841 else
6842 case `/usr/bin/file conftest.$ac_objext` in
6843 *32-bit*)
6844 LD="${LD-ld} -32"
6845 ;;
6846 *N32*)
6847 LD="${LD-ld} -n32"
6848 ;;
6849 *64-bit*)
6850 LD="${LD-ld} -64"
6851 ;;
6852 esac
6853 fi
6854 fi
6855 rm -rf conftest*
6856 ;;
6857
3cbe17f7 6858x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
6859s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6860 # Find out which ABI we are using.
6861 echo 'int i;' > conftest.$ac_ext
5213506e 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6863 (eval $ac_compile) 2>&5
6864 ac_status=$?
5213506e
RW
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }; then
1cf3d07d
SE
6867 case `/usr/bin/file conftest.o` in
6868 *32-bit*)
6869 case $host in
6870 x86_64-*kfreebsd*-gnu)
6871 LD="${LD-ld} -m elf_i386_fbsd"
6872 ;;
6873 x86_64-*linux*)
e6d5f8c9
L
6874 case `/usr/bin/file conftest.o` in
6875 *x86-64*)
6876 LD="${LD-ld} -m elf32_x86_64"
6877 ;;
6878 *)
6879 LD="${LD-ld} -m elf_i386"
6880 ;;
6881 esac
1cf3d07d 6882 ;;
3cbe17f7
AM
6883 powerpc64le-*linux*)
6884 LD="${LD-ld} -m elf32lppclinux"
6885 ;;
6886 powerpc64-*linux*)
1cf3d07d
SE
6887 LD="${LD-ld} -m elf32ppclinux"
6888 ;;
6889 s390x-*linux*)
6890 LD="${LD-ld} -m elf_s390"
6891 ;;
6892 sparc64-*linux*)
6893 LD="${LD-ld} -m elf32_sparc"
6894 ;;
6895 esac
6896 ;;
6897 *64-bit*)
6898 case $host in
6899 x86_64-*kfreebsd*-gnu)
6900 LD="${LD-ld} -m elf_x86_64_fbsd"
6901 ;;
6902 x86_64-*linux*)
6903 LD="${LD-ld} -m elf_x86_64"
6904 ;;
3cbe17f7
AM
6905 powerpcle-*linux*)
6906 LD="${LD-ld} -m elf64lppc"
6907 ;;
6908 powerpc-*linux*)
1cf3d07d
SE
6909 LD="${LD-ld} -m elf64ppc"
6910 ;;
6911 s390*-*linux*|s390*-*tpf*)
6912 LD="${LD-ld} -m elf64_s390"
6913 ;;
6914 sparc*-*linux*)
6915 LD="${LD-ld} -m elf64_sparc"
6916 ;;
6917 esac
6918 ;;
6919 esac
6920 fi
6921 rm -rf conftest*
6922 ;;
6923
6924*-*-sco3.2v5*)
6925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6926 SAVE_CFLAGS="$CFLAGS"
6927 CFLAGS="$CFLAGS -belf"
5213506e
RW
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6929$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6930if test "${lt_cv_cc_needs_belf+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6932else
6933 ac_ext=c
6934ac_cpp='$CPP $CPPFLAGS'
6935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
5213506e 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6940/* end confdefs.h. */
6941
6942int
6943main ()
6944{
6945
6946 ;
6947 return 0;
6948}
6949_ACEOF
5213506e 6950if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6951 lt_cv_cc_needs_belf=yes
6952else
5213506e 6953 lt_cv_cc_needs_belf=no
1cf3d07d 6954fi
5213506e
RW
6955rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6957 ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963fi
5213506e
RW
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6965$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6968 CFLAGS="$SAVE_CFLAGS"
6969 fi
6970 ;;
6971sparc*-*solaris*)
6972 # Find out which ABI we are using.
6973 echo 'int i;' > conftest.$ac_ext
5213506e 6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6975 (eval $ac_compile) 2>&5
6976 ac_status=$?
5213506e
RW
6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6978 test $ac_status = 0; }; then
1cf3d07d
SE
6979 case `/usr/bin/file conftest.o` in
6980 *64-bit*)
6981 case $lt_cv_prog_gnu_ld in
6982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
6983 *)
6984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6985 LD="${LD-ld} -64"
6986 fi
6987 ;;
1cf3d07d
SE
6988 esac
6989 ;;
6990 esac
6991 fi
6992 rm -rf conftest*
6993 ;;
6994esac
6995
6996need_locks="$enable_libtool_lock"
6997
80c6c2cb
PG
6998
6999 case $host_os in
7000 rhapsody* | darwin*)
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7003set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
1cf3d07d 7008else
80c6c2cb
PG
7009 if test -n "$DSYMUTIL"; then
7010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
1cf3d07d 7014do
80c6c2cb
PG
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
5213506e
RW
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb 7021 break 2
1cf3d07d 7022 fi
80c6c2cb 7023done
5213506e
RW
7024 done
7025IFS=$as_save_IFS
7026
80c6c2cb
PG
7027fi
7028fi
7029DSYMUTIL=$ac_cv_prog_DSYMUTIL
7030if test -n "$DSYMUTIL"; then
5213506e
RW
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7032$as_echo "$DSYMUTIL" >&6; }
80c6c2cb 7033else
5213506e
RW
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
80c6c2cb
PG
7036fi
7037
5213506e 7038
80c6c2cb
PG
7039fi
7040if test -z "$ac_cv_prog_DSYMUTIL"; then
7041 ac_ct_DSYMUTIL=$DSYMUTIL
7042 # Extract the first word of "dsymutil", so it can be a program name with args.
7043set dummy dsymutil; ac_word=$2
5213506e
RW
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7048else
7049 if test -n "$ac_ct_DSYMUTIL"; then
7050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
5213506e
RW
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7061 break 2
7062 fi
7063done
5213506e
RW
7064 done
7065IFS=$as_save_IFS
80c6c2cb 7066
80c6c2cb
PG
7067fi
7068fi
7069ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7070if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7072$as_echo "$ac_ct_DSYMUTIL" >&6; }
80c6c2cb 7073else
5213506e
RW
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
80c6c2cb
PG
7076fi
7077
5213506e
RW
7078 if test "x$ac_ct_DSYMUTIL" = x; then
7079 DSYMUTIL=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082yes:)
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085ac_tool_warned=yes ;;
7086esac
7087 DSYMUTIL=$ac_ct_DSYMUTIL
7088 fi
80c6c2cb
PG
7089else
7090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7091fi
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7100else
7101 if test -n "$NMEDIT"; then
7102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
5213506e
RW
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7113 break 2
7114 fi
7115done
5213506e
RW
7116 done
7117IFS=$as_save_IFS
80c6c2cb
PG
7118
7119fi
7120fi
7121NMEDIT=$ac_cv_prog_NMEDIT
7122if test -n "$NMEDIT"; then
5213506e
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7124$as_echo "$NMEDIT" >&6; }
80c6c2cb 7125else
5213506e
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
80c6c2cb
PG
7128fi
7129
5213506e 7130
80c6c2cb
PG
7131fi
7132if test -z "$ac_cv_prog_NMEDIT"; then
7133 ac_ct_NMEDIT=$NMEDIT
7134 # Extract the first word of "nmedit", so it can be a program name with args.
7135set dummy nmedit; ac_word=$2
5213506e
RW
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7140else
7141 if test -n "$ac_ct_NMEDIT"; then
7142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
5213506e
RW
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7151 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7153 break 2
7154 fi
7155done
5213506e
RW
7156 done
7157IFS=$as_save_IFS
80c6c2cb 7158
80c6c2cb
PG
7159fi
7160fi
7161ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7162if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7164$as_echo "$ac_ct_NMEDIT" >&6; }
80c6c2cb 7165else
5213506e
RW
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
80c6c2cb
PG
7168fi
7169
5213506e
RW
7170 if test "x$ac_ct_NMEDIT" = x; then
7171 NMEDIT=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179 NMEDIT=$ac_ct_NMEDIT
7180 fi
80c6c2cb
PG
7181else
7182 NMEDIT="$ac_cv_prog_NMEDIT"
7183fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if test "${ac_cv_prog_LIPO+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7192else
7193 if test -n "$LIPO"; then
7194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
5213506e
RW
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7205 break 2
7206 fi
7207done
5213506e
RW
7208 done
7209IFS=$as_save_IFS
80c6c2cb
PG
7210
7211fi
7212fi
7213LIPO=$ac_cv_prog_LIPO
7214if test -n "$LIPO"; then
5213506e
RW
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7216$as_echo "$LIPO" >&6; }
80c6c2cb 7217else
5213506e
RW
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
80c6c2cb
PG
7220fi
7221
5213506e 7222
80c6c2cb
PG
7223fi
7224if test -z "$ac_cv_prog_LIPO"; then
7225 ac_ct_LIPO=$LIPO
7226 # Extract the first word of "lipo", so it can be a program name with args.
7227set dummy lipo; ac_word=$2
5213506e
RW
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7232else
7233 if test -n "$ac_ct_LIPO"; then
7234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
5213506e
RW
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7243 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7245 break 2
7246 fi
7247done
5213506e
RW
7248 done
7249IFS=$as_save_IFS
80c6c2cb 7250
80c6c2cb
PG
7251fi
7252fi
7253ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7254if test -n "$ac_ct_LIPO"; then
5213506e
RW
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7256$as_echo "$ac_ct_LIPO" >&6; }
80c6c2cb 7257else
5213506e
RW
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
80c6c2cb
PG
7260fi
7261
5213506e
RW
7262 if test "x$ac_ct_LIPO" = x; then
7263 LIPO=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271 LIPO=$ac_ct_LIPO
7272 fi
80c6c2cb
PG
7273else
7274 LIPO="$ac_cv_prog_LIPO"
7275fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if test "${ac_cv_prog_OTOOL+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7284else
7285 if test -n "$OTOOL"; then
7286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
5213506e
RW
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7297 break 2
7298 fi
7299done
5213506e
RW
7300 done
7301IFS=$as_save_IFS
80c6c2cb
PG
7302
7303fi
7304fi
7305OTOOL=$ac_cv_prog_OTOOL
7306if test -n "$OTOOL"; then
5213506e
RW
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7308$as_echo "$OTOOL" >&6; }
80c6c2cb 7309else
5213506e
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
80c6c2cb
PG
7312fi
7313
5213506e 7314
80c6c2cb
PG
7315fi
7316if test -z "$ac_cv_prog_OTOOL"; then
7317 ac_ct_OTOOL=$OTOOL
7318 # Extract the first word of "otool", so it can be a program name with args.
7319set dummy otool; ac_word=$2
5213506e
RW
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7324else
7325 if test -n "$ac_ct_OTOOL"; then
7326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
5213506e
RW
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7335 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7337 break 2
7338 fi
7339done
5213506e
RW
7340 done
7341IFS=$as_save_IFS
80c6c2cb 7342
80c6c2cb
PG
7343fi
7344fi
7345ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7346if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7348$as_echo "$ac_ct_OTOOL" >&6; }
80c6c2cb 7349else
5213506e
RW
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
80c6c2cb
PG
7352fi
7353
5213506e
RW
7354 if test "x$ac_ct_OTOOL" = x; then
7355 OTOOL=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363 OTOOL=$ac_ct_OTOOL
7364 fi
80c6c2cb
PG
7365else
7366 OTOOL="$ac_cv_prog_OTOOL"
7367fi
7368
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7376else
7377 if test -n "$OTOOL64"; then
7378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
5213506e
RW
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7389 break 2
7390 fi
7391done
5213506e
RW
7392 done
7393IFS=$as_save_IFS
80c6c2cb
PG
7394
7395fi
7396fi
7397OTOOL64=$ac_cv_prog_OTOOL64
7398if test -n "$OTOOL64"; then
5213506e
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7400$as_echo "$OTOOL64" >&6; }
80c6c2cb 7401else
5213506e
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
80c6c2cb
PG
7404fi
7405
5213506e 7406
80c6c2cb
PG
7407fi
7408if test -z "$ac_cv_prog_OTOOL64"; then
7409 ac_ct_OTOOL64=$OTOOL64
7410 # Extract the first word of "otool64", so it can be a program name with args.
7411set dummy otool64; ac_word=$2
5213506e
RW
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
7414if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7416else
7417 if test -n "$ac_ct_OTOOL64"; then
7418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
5213506e
RW
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 7427 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
7429 break 2
7430 fi
7431done
5213506e
RW
7432 done
7433IFS=$as_save_IFS
80c6c2cb 7434
80c6c2cb
PG
7435fi
7436fi
7437ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7438if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7440$as_echo "$ac_ct_OTOOL64" >&6; }
80c6c2cb 7441else
5213506e
RW
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443$as_echo "no" >&6; }
80c6c2cb
PG
7444fi
7445
5213506e
RW
7446 if test "x$ac_ct_OTOOL64" = x; then
7447 OTOOL64=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453ac_tool_warned=yes ;;
7454esac
7455 OTOOL64=$ac_ct_OTOOL64
7456 fi
80c6c2cb
PG
7457else
7458 OTOOL64="$ac_cv_prog_OTOOL64"
7459fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
5213506e
RW
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7488$as_echo_n "checking for -single_module linker flag... " >&6; }
7489if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7491else
7492 lt_cv_apple_cc_single_mod=no
7493 if test -z "${LT_MULTI_MODULE}"; then
7494 # By default we will add the -single_module flag. You can override
7495 # by either setting the environment variable LT_MULTI_MODULE
7496 # non-empty at configure time, or by adding -multi_module to the
7497 # link flags.
7498 rm -rf libconftest.dylib*
7499 echo "int foo(void){return 1;}" > conftest.c
7500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7501-dynamiclib -Wl,-single_module conftest.c" >&5
7502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7504 _lt_result=$?
7505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7506 lt_cv_apple_cc_single_mod=yes
7507 else
7508 cat conftest.err >&5
7509 fi
7510 rm -rf libconftest.dylib*
7511 rm -f conftest.*
7512 fi
7513fi
5213506e
RW
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7515$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7517$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7518if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7520else
7521 lt_cv_ld_exported_symbols_list=no
7522 save_LDFLAGS=$LDFLAGS
7523 echo "_main" > conftest.sym
7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7526/* end confdefs.h. */
7527
7528int
7529main ()
7530{
7531
7532 ;
7533 return 0;
7534}
7535_ACEOF
5213506e 7536if ac_fn_c_try_link "$LINENO"; then :
80c6c2cb
PG
7537 lt_cv_ld_exported_symbols_list=yes
7538else
5213506e 7539 lt_cv_ld_exported_symbols_list=no
80c6c2cb 7540fi
5213506e
RW
7541rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
80c6c2cb
PG
7543 LDFLAGS="$save_LDFLAGS"
7544
7545fi
5213506e
RW
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7547$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7549$as_echo_n "checking for -force_load linker flag... " >&6; }
7550if test "${lt_cv_ld_force_load+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552else
7553 lt_cv_ld_force_load=no
7554 cat > conftest.c << _LT_EOF
7555int forced_loaded() { return 2;}
7556_LT_EOF
7557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7559 echo "$AR cru libconftest.a conftest.o" >&5
7560 $AR cru libconftest.a conftest.o 2>&5
7561 cat > conftest.c << _LT_EOF
7562int main() { return 0;}
7563_LT_EOF
7564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7566 _lt_result=$?
7567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7568 lt_cv_ld_force_load=yes
7569 else
7570 cat conftest.err >&5
7571 fi
7572 rm -f conftest.err libconftest.a conftest conftest.c
7573 rm -rf conftest.dSYM
7574
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7577$as_echo "$lt_cv_ld_force_load" >&6; }
80c6c2cb
PG
7578 case $host_os in
7579 rhapsody* | darwin1.[012])
7580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7581 darwin1.*)
7582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7583 darwin*) # darwin 5.x on
7584 # if running on 10.5 or later, the deployment target defaults
7585 # to the OS version, if on x86, and 10.4, the deployment
7586 # target defaults to 10.4. Don't you love it?
7587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7588 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7590 10.[012][,.]*)
80c6c2cb
PG
7591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7592 10.*)
7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7594 esac
7595 ;;
7596 esac
7597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7598 _lt_dar_single_mod='$single_module'
7599 fi
7600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7602 else
7603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7604 fi
43e02a8a 7605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
80c6c2cb
PG
7606 _lt_dsymutil='~$DSYMUTIL $lib || :'
7607 else
7608 _lt_dsymutil=
7609 fi
7610 ;;
7611 esac
7612
7613ac_ext=c
7614ac_cpp='$CPP $CPPFLAGS'
7615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7619$as_echo_n "checking how to run the C preprocessor... " >&6; }
80c6c2cb
PG
7620# On Suns, sometimes $CPP names a directory.
7621if test -n "$CPP" && test -d "$CPP"; then
7622 CPP=
7623fi
7624if test -z "$CPP"; then
5213506e
RW
7625 if test "${ac_cv_prog_CPP+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7627else
7628 # Double quotes because CPP needs to be expanded
7629 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7630 do
7631 ac_preproc_ok=false
7632for ac_c_preproc_warn_flag in '' yes
7633do
7634 # Use a header file that comes with gcc, so configuring glibc
7635 # with a fresh cross-compiler works.
7636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637 # <limits.h> exists even on freestanding compilers.
7638 # On the NeXT, cc -E runs the code through the compiler's parser,
7639 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7641/* end confdefs.h. */
7642#ifdef __STDC__
7643# include <limits.h>
7644#else
7645# include <assert.h>
7646#endif
7647 Syntax error
7648_ACEOF
5213506e 7649if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7650
5213506e 7651else
1cf3d07d
SE
7652 # Broken: fails on valid input.
7653continue
7654fi
7655rm -f conftest.err conftest.$ac_ext
7656
5213506e 7657 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7658 # can be detected and how.
5213506e 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7660/* end confdefs.h. */
7661#include <ac_nonexistent.h>
7662_ACEOF
5213506e 7663if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7664 # Broken: success on invalid input.
7665continue
7666else
1cf3d07d
SE
7667 # Passes both tests.
7668ac_preproc_ok=:
7669break
7670fi
7671rm -f conftest.err conftest.$ac_ext
7672
7673done
7674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7675rm -f conftest.err conftest.$ac_ext
5213506e 7676if $ac_preproc_ok; then :
1cf3d07d
SE
7677 break
7678fi
7679
7680 done
7681 ac_cv_prog_CPP=$CPP
7682
7683fi
7684 CPP=$ac_cv_prog_CPP
7685else
7686 ac_cv_prog_CPP=$CPP
7687fi
5213506e
RW
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7689$as_echo "$CPP" >&6; }
1cf3d07d
SE
7690ac_preproc_ok=false
7691for ac_c_preproc_warn_flag in '' yes
7692do
7693 # Use a header file that comes with gcc, so configuring glibc
7694 # with a fresh cross-compiler works.
7695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696 # <limits.h> exists even on freestanding compilers.
7697 # On the NeXT, cc -E runs the code through the compiler's parser,
7698 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7700/* end confdefs.h. */
7701#ifdef __STDC__
7702# include <limits.h>
7703#else
7704# include <assert.h>
7705#endif
7706 Syntax error
7707_ACEOF
5213506e 7708if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7709
5213506e 7710else
1cf3d07d
SE
7711 # Broken: fails on valid input.
7712continue
7713fi
7714rm -f conftest.err conftest.$ac_ext
7715
5213506e 7716 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7717 # can be detected and how.
5213506e 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7719/* end confdefs.h. */
7720#include <ac_nonexistent.h>
7721_ACEOF
5213506e 7722if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7723 # Broken: success on invalid input.
7724continue
7725else
1cf3d07d
SE
7726 # Passes both tests.
7727ac_preproc_ok=:
7728break
7729fi
7730rm -f conftest.err conftest.$ac_ext
7731
7732done
7733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7734rm -f conftest.err conftest.$ac_ext
5213506e
RW
7735if $ac_preproc_ok; then :
7736
1cf3d07d 7737else
5213506e
RW
7738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7740as_fn_error "C preprocessor \"$CPP\" fails sanity check
7741See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7742fi
7743
7744ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750
5213506e
RW
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7752$as_echo_n "checking for ANSI C header files... " >&6; }
7753if test "${ac_cv_header_stdc+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
1cf3d07d 7755else
5213506e 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7757/* end confdefs.h. */
7758#include <stdlib.h>
7759#include <stdarg.h>
7760#include <string.h>
7761#include <float.h>
7762
7763int
7764main ()
7765{
7766
7767 ;
7768 return 0;
7769}
7770_ACEOF
5213506e 7771if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7772 ac_cv_header_stdc=yes
7773else
5213506e 7774 ac_cv_header_stdc=no
1cf3d07d 7775fi
5213506e 7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7777
7778if test $ac_cv_header_stdc = yes; then
7779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7781/* end confdefs.h. */
7782#include <string.h>
7783
7784_ACEOF
7785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7786 $EGREP "memchr" >/dev/null 2>&1; then :
7787
1cf3d07d
SE
7788else
7789 ac_cv_header_stdc=no
7790fi
7791rm -f conftest*
7792
7793fi
7794
7795if test $ac_cv_header_stdc = yes; then
7796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7798/* end confdefs.h. */
7799#include <stdlib.h>
7800
7801_ACEOF
7802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7803 $EGREP "free" >/dev/null 2>&1; then :
7804
1cf3d07d
SE
7805else
7806 ac_cv_header_stdc=no
7807fi
7808rm -f conftest*
7809
7810fi
7811
7812if test $ac_cv_header_stdc = yes; then
7813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7814 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7815 :
7816else
5213506e 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7818/* end confdefs.h. */
7819#include <ctype.h>
5213506e 7820#include <stdlib.h>
1cf3d07d
SE
7821#if ((' ' & 0x0FF) == 0x020)
7822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7824#else
7825# define ISLOWER(c) \
7826 (('a' <= (c) && (c) <= 'i') \
7827 || ('j' <= (c) && (c) <= 'r') \
7828 || ('s' <= (c) && (c) <= 'z'))
7829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7830#endif
7831
7832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7833int
7834main ()
7835{
7836 int i;
7837 for (i = 0; i < 256; i++)
7838 if (XOR (islower (i), ISLOWER (i))
7839 || toupper (i) != TOUPPER (i))
5213506e
RW
7840 return 2;
7841 return 0;
1cf3d07d
SE
7842}
7843_ACEOF
5213506e 7844if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7845
5213506e
RW
7846else
7847 ac_cv_header_stdc=no
1cf3d07d 7848fi
5213506e
RW
7849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7850 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7851fi
5213506e 7852
1cf3d07d
SE
7853fi
7854fi
5213506e
RW
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7856$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7857if test $ac_cv_header_stdc = yes; then
7858
5213506e 7859$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7860
7861fi
7862
7863# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7864for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7865 inttypes.h stdint.h unistd.h
5213506e
RW
7866do :
7867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7869"
7870eval as_val=\$$as_ac_Header
7871 if test "x$as_val" = x""yes; then :
80c6c2cb 7872 cat >>confdefs.h <<_ACEOF
5213506e 7873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
80c6c2cb
PG
7874_ACEOF
7875
7876fi
7877
7878done
7879
7880
80c6c2cb 7881for ac_header in dlfcn.h
5213506e
RW
7882do :
7883 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7884"
7885if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
80c6c2cb 7886 cat >>confdefs.h <<_ACEOF
5213506e 7887#define HAVE_DLFCN_H 1
80c6c2cb
PG
7888_ACEOF
7889
7890fi
7891
7892done
7893
7894
7895
43e02a8a
RW
7896
7897
b1760f7f 7898
80c6c2cb
PG
7899# Set options
7900
7901
7902
7903 enable_dlopen=no
7904
7905
7906 enable_win32_dll=no
7907
7908
5213506e
RW
7909 # Check whether --enable-shared was given.
7910if test "${enable_shared+set}" = set; then :
7911 enableval=$enable_shared; p=${PACKAGE-default}
80c6c2cb
PG
7912 case $enableval in
7913 yes) enable_shared=yes ;;
7914 no) enable_shared=no ;;
7915 *)
7916 enable_shared=no
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7920 IFS="$lt_save_ifs"
7921 if test "X$pkg" = "X$p"; then
7922 enable_shared=yes
7923 fi
7924 done
7925 IFS="$lt_save_ifs"
7926 ;;
7927 esac
7928else
7929 enable_shared=yes
5213506e
RW
7930fi
7931
80c6c2cb
PG
7932
7933
7934
7935
7936
7937
7938
7939
5213506e
RW
7940 # Check whether --enable-static was given.
7941if test "${enable_static+set}" = set; then :
7942 enableval=$enable_static; p=${PACKAGE-default}
80c6c2cb
PG
7943 case $enableval in
7944 yes) enable_static=yes ;;
7945 no) enable_static=no ;;
7946 *)
7947 enable_static=no
7948 # Look at the argument we got. We use all the common list separators.
7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7950 for pkg in $enableval; do
7951 IFS="$lt_save_ifs"
7952 if test "X$pkg" = "X$p"; then
7953 enable_static=yes
7954 fi
7955 done
7956 IFS="$lt_save_ifs"
7957 ;;
7958 esac
7959else
7960 enable_static=yes
5213506e
RW
7961fi
7962
80c6c2cb
PG
7963
7964
7965
7966
7967
7968
7969
7970
7971
5213506e
RW
7972# Check whether --with-pic was given.
7973if test "${with_pic+set}" = set; then :
7974 withval=$with_pic; pic_mode="$withval"
80c6c2cb
PG
7975else
7976 pic_mode=default
5213506e
RW
7977fi
7978
1cf3d07d 7979
80c6c2cb 7980test -z "$pic_mode" && pic_mode=default
1cf3d07d 7981
1cf3d07d 7982
1cf3d07d
SE
7983
7984
7985
1cf3d07d 7986
80c6c2cb 7987
5213506e
RW
7988 # Check whether --enable-fast-install was given.
7989if test "${enable_fast_install+set}" = set; then :
7990 enableval=$enable_fast_install; p=${PACKAGE-default}
80c6c2cb
PG
7991 case $enableval in
7992 yes) enable_fast_install=yes ;;
7993 no) enable_fast_install=no ;;
7994 *)
7995 enable_fast_install=no
7996 # Look at the argument we got. We use all the common list separators.
7997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998 for pkg in $enableval; do
7999 IFS="$lt_save_ifs"
8000 if test "X$pkg" = "X$p"; then
8001 enable_fast_install=yes
8002 fi
8003 done
8004 IFS="$lt_save_ifs"
8005 ;;
8006 esac
1cf3d07d 8007else
80c6c2cb 8008 enable_fast_install=yes
5213506e
RW
8009fi
8010
80c6c2cb
PG
8011
8012
8013
8014
1cf3d07d 8015
1cf3d07d 8016
1cf3d07d 8017
1cf3d07d
SE
8018
8019
8020
8021# This can be used to rebuild libtool when needed
8022LIBTOOL_DEPS="$ltmain"
8023
8024# Always use our own libtool.
8025LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
43e02a8a 8049
1cf3d07d
SE
8050
8051
8052test -z "$LN_S" && LN_S="ln -s"
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067if test -n "${ZSH_VERSION+set}" ; then
8068 setopt NO_GLOB_SUBST
8069fi
8070
5213506e
RW
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8072$as_echo_n "checking for objdir... " >&6; }
8073if test "${lt_cv_objdir+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8075else
8076 rm -f .libs 2>/dev/null
8077mkdir .libs 2>/dev/null
8078if test -d .libs; then
8079 lt_cv_objdir=.libs
8080else
8081 # MS-DOS does not allow filenames that begin with a dot.
8082 lt_cv_objdir=_libs
8083fi
8084rmdir .libs 2>/dev/null
8085fi
5213506e
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8087$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8088objdir=$lt_cv_objdir
8089
8090
8091
8092
8093
8094cat >>confdefs.h <<_ACEOF
8095#define LT_OBJDIR "$lt_cv_objdir/"
8096_ACEOF
8097
8098
8099
8100
1cf3d07d
SE
8101case $host_os in
8102aix3*)
8103 # AIX sometimes has problems with the GCC collect2 program. For some
8104 # reason, if we set the COLLECT_NAMES environment variable, the problems
8105 # vanish in a puff of smoke.
8106 if test "X${COLLECT_NAMES+set}" != Xset; then
8107 COLLECT_NAMES=
8108 export COLLECT_NAMES
8109 fi
8110 ;;
8111esac
8112
1cf3d07d
SE
8113# Global variables:
8114ofile=libtool
8115can_build_shared=yes
8116
8117# All known linkers require a `.a' archive for static linking (except MSVC,
8118# which needs '.lib').
8119libext=a
8120
8121with_gnu_ld="$lt_cv_prog_gnu_ld"
8122
8123old_CC="$CC"
8124old_CFLAGS="$CFLAGS"
8125
8126# Set sane defaults for various variables
8127test -z "$CC" && CC=cc
8128test -z "$LTCC" && LTCC=$CC
8129test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8130test -z "$LD" && LD=ld
8131test -z "$ac_objext" && ac_objext=o
8132
8133for cc_temp in $compiler""; do
8134 case $cc_temp in
8135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8137 \-*) ;;
8138 *) break;;
8139 esac
8140done
43e02a8a 8141cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
8142
8143
8144# Only perform the check for file, if the check method requires it
8145test -z "$MAGIC_CMD" && MAGIC_CMD=file
8146case $deplibs_check_method in
8147file_magic*)
8148 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8150$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8151if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8153else
8154 case $MAGIC_CMD in
8155[\\/*] | ?:[\\/]*)
8156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8157 ;;
8158*)
8159 lt_save_MAGIC_CMD="$MAGIC_CMD"
8160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8162 for ac_dir in $ac_dummy; do
8163 IFS="$lt_save_ifs"
8164 test -z "$ac_dir" && ac_dir=.
8165 if test -f $ac_dir/${ac_tool_prefix}file; then
8166 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8167 if test -n "$file_magic_test_file"; then
8168 case $deplibs_check_method in
8169 "file_magic "*)
8170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8173 $EGREP "$file_magic_regex" > /dev/null; then
8174 :
8175 else
8176 cat <<_LT_EOF 1>&2
8177
8178*** Warning: the command libtool uses to detect shared libraries,
8179*** $file_magic_cmd, produces output that libtool cannot recognize.
8180*** The result is that libtool may fail to recognize shared libraries
8181*** as such. This will affect the creation of libtool libraries that
8182*** depend on shared libraries, but programs linked with such libtool
8183*** libraries will work regardless of this problem. Nevertheless, you
8184*** may want to report the problem to your system manager and/or to
8185*** bug-libtool@gnu.org
8186
8187_LT_EOF
8188 fi ;;
8189 esac
8190 fi
8191 break
8192 fi
8193 done
8194 IFS="$lt_save_ifs"
8195 MAGIC_CMD="$lt_save_MAGIC_CMD"
8196 ;;
8197esac
8198fi
8199
8200MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8201if test -n "$MAGIC_CMD"; then
5213506e
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8203$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8204else
5213506e
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
1cf3d07d
SE
8207fi
8208
8209
8210
8211
8212
8213if test -z "$lt_cv_path_MAGIC_CMD"; then
8214 if test -n "$ac_tool_prefix"; then
5213506e
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8216$as_echo_n "checking for file... " >&6; }
8217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8219else
8220 case $MAGIC_CMD in
8221[\\/*] | ?:[\\/]*)
8222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8223 ;;
8224*)
8225 lt_save_MAGIC_CMD="$MAGIC_CMD"
8226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228 for ac_dir in $ac_dummy; do
8229 IFS="$lt_save_ifs"
8230 test -z "$ac_dir" && ac_dir=.
8231 if test -f $ac_dir/file; then
8232 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8233 if test -n "$file_magic_test_file"; then
8234 case $deplibs_check_method in
8235 "file_magic "*)
8236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239 $EGREP "$file_magic_regex" > /dev/null; then
8240 :
8241 else
8242 cat <<_LT_EOF 1>&2
8243
8244*** Warning: the command libtool uses to detect shared libraries,
8245*** $file_magic_cmd, produces output that libtool cannot recognize.
8246*** The result is that libtool may fail to recognize shared libraries
8247*** as such. This will affect the creation of libtool libraries that
8248*** depend on shared libraries, but programs linked with such libtool
8249*** libraries will work regardless of this problem. Nevertheless, you
8250*** may want to report the problem to your system manager and/or to
8251*** bug-libtool@gnu.org
8252
8253_LT_EOF
8254 fi ;;
8255 esac
8256 fi
8257 break
8258 fi
8259 done
8260 IFS="$lt_save_ifs"
8261 MAGIC_CMD="$lt_save_MAGIC_CMD"
8262 ;;
8263esac
8264fi
8265
8266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267if test -n "$MAGIC_CMD"; then
5213506e
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8269$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8270else
5213506e
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
1cf3d07d
SE
8273fi
8274
8275
8276 else
8277 MAGIC_CMD=:
8278 fi
8279fi
8280
8281 fi
8282 ;;
8283esac
8284
8285# Use C for the default configuration in the libtool script
8286
8287lt_save_CC="$CC"
8288ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294
8295# Source file extension for C test sources.
8296ac_ext=c
8297
8298# Object file extension for compiled C test sources.
8299objext=o
8300objext=$objext
8301
8302# Code to be used in simple compile tests
8303lt_simple_compile_test_code="int some_variable = 0;"
8304
8305# Code to be used in simple link tests
8306lt_simple_link_test_code='int main(){return(0);}'
8307
8308
8309
8310
8311
8312
8313
8314# If no C compiler was specified, use CC.
8315LTCC=${LTCC-"$CC"}
8316
8317# If no C compiler flags were specified, use CFLAGS.
8318LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8319
8320# Allow CC to be a program name with arguments.
8321compiler=$CC
8322
8323# Save the default compiler, since it gets overwritten when the other
8324# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8325compiler_DEFAULT=$CC
8326
8327# save warnings/boilerplate of simple test code
8328ac_outfile=conftest.$ac_objext
8329echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8330eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331_lt_compiler_boilerplate=`cat conftest.err`
8332$RM conftest*
8333
8334ac_outfile=conftest.$ac_objext
8335echo "$lt_simple_link_test_code" >conftest.$ac_ext
8336eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8337_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 8338$RM -r conftest*
1cf3d07d
SE
8339
8340
8341## CAVEAT EMPTOR:
8342## There is no encapsulation within the following macros, do not change
8343## the running order or otherwise move them around unless you know exactly
8344## what you are doing...
8345if test -n "$compiler"; then
8346
8347lt_prog_compiler_no_builtin_flag=
8348
8349if test "$GCC" = yes; then
43e02a8a
RW
8350 case $cc_basename in
8351 nvcc*)
8352 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8353 *)
8354 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8355 esac
1cf3d07d 8356
5213506e
RW
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8358$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8359if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8361else
8362 lt_cv_prog_compiler_rtti_exceptions=no
8363 ac_outfile=conftest.$ac_objext
8364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365 lt_compiler_flag="-fno-rtti -fno-exceptions"
8366 # Insert the option either (1) after the last *FLAGS variable, or
8367 # (2) before a word containing "conftest.", or (3) at the end.
8368 # Note that $ac_compile itself does not contain backslashes and begins
8369 # with a dollar sign (not a hyphen), so the echo should work correctly.
8370 # The option is referenced via a variable to avoid confusing sed.
8371 lt_compile=`echo "$ac_compile" | $SED \
8372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8376 (eval "$lt_compile" 2>conftest.err)
8377 ac_status=$?
8378 cat conftest.err >&5
43e02a8a 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8380 if (exit $ac_status) && test -s "$ac_outfile"; then
8381 # The compiler can only warn and ignore the option if not recognized
8382 # So say no if there are warnings other than the usual output.
43e02a8a 8383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_rtti_exceptions=yes
8387 fi
8388 fi
8389 $RM conftest*
8390
8391fi
5213506e
RW
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8393$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8394
8395if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8396 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8397else
8398 :
8399fi
8400
8401fi
8402
8403
8404
8405
8406
8407
8408 lt_prog_compiler_wl=
8409lt_prog_compiler_pic=
8410lt_prog_compiler_static=
8411
5213506e
RW
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8413$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8414
8415 if test "$GCC" = yes; then
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_static='-static'
8418
8419 case $host_os in
8420 aix*)
8421 # All AIX code is PIC.
8422 if test "$host_cpu" = ia64; then
8423 # AIX 5 now supports IA64 processor
8424 lt_prog_compiler_static='-Bstatic'
8425 fi
cbbd536a 8426 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
8427 ;;
8428
8429 amigaos*)
80c6c2cb
PG
8430 case $host_cpu in
8431 powerpc)
8432 # see comment about AmigaOS4 .so support
8433 lt_prog_compiler_pic='-fPIC'
8434 ;;
8435 m68k)
8436 # FIXME: we need at least 68020 code to build shared libraries, but
8437 # adding the `-m68020' flag to GCC prevents building anything better,
8438 # like `-m68040'.
8439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8440 ;;
8441 esac
1cf3d07d
SE
8442 ;;
8443
8444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8445 # PIC is the default for these OSes.
8446 ;;
8447
80c6c2cb 8448 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8449 # This hack is so that the source file can tell whether it is being
8450 # built for inclusion in a dll (and should export symbols for example).
8451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8452 # (--disable-auto-import) libraries
8453 lt_prog_compiler_pic='-DDLL_EXPORT'
8454 ;;
8455
8456 darwin* | rhapsody*)
8457 # PIC is the default on this platform
8458 # Common symbols not allowed in MH_DYLIB files
8459 lt_prog_compiler_pic='-fno-common'
8460 ;;
8461
43e02a8a
RW
8462 haiku*)
8463 # PIC is the default for Haiku.
8464 # The "-static" flag exists, but is broken.
8465 lt_prog_compiler_static=
8466 ;;
8467
1cf3d07d 8468 hpux*)
80c6c2cb
PG
8469 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8470 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8471 # sets the default TLS model and affects inlining.
1cf3d07d 8472 case $host_cpu in
80c6c2cb 8473 hppa*64*)
1cf3d07d
SE
8474 # +Z the default
8475 ;;
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
8478 ;;
8479 esac
8480 ;;
8481
8482 interix[3-9]*)
8483 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8484 # Instead, we relocate shared libraries at runtime.
8485 ;;
8486
8487 msdosdjgpp*)
8488 # Just because we use GCC doesn't mean we suddenly get shared libraries
8489 # on systems that don't support them.
8490 lt_prog_compiler_can_build_shared=no
8491 enable_shared=no
8492 ;;
8493
8494 *nto* | *qnx*)
8495 # QNX uses GNU C++, but need to define -shared option too, otherwise
8496 # it will coredump.
8497 lt_prog_compiler_pic='-fPIC -shared'
8498 ;;
8499
8500 sysv4*MP*)
8501 if test -d /usr/nec; then
8502 lt_prog_compiler_pic=-Kconform_pic
8503 fi
8504 ;;
8505
8506 *)
8507 lt_prog_compiler_pic='-fPIC'
8508 ;;
8509 esac
43e02a8a
RW
8510
8511 case $cc_basename in
8512 nvcc*) # Cuda Compiler Driver 2.2
8513 lt_prog_compiler_wl='-Xlinker '
8514 lt_prog_compiler_pic='-Xcompiler -fPIC'
8515 ;;
8516 esac
1cf3d07d
SE
8517 else
8518 # PORTME Check for flag to pass linker flags through the system compiler.
8519 case $host_os in
8520 aix*)
8521 lt_prog_compiler_wl='-Wl,'
8522 if test "$host_cpu" = ia64; then
8523 # AIX 5 now supports IA64 processor
8524 lt_prog_compiler_static='-Bstatic'
8525 else
8526 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8527 fi
8528 ;;
1cf3d07d 8529
80c6c2cb 8530 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8531 # This hack is so that the source file can tell whether it is being
8532 # built for inclusion in a dll (and should export symbols for example).
8533 lt_prog_compiler_pic='-DDLL_EXPORT'
8534 ;;
8535
8536 hpux9* | hpux10* | hpux11*)
8537 lt_prog_compiler_wl='-Wl,'
8538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8539 # not for PA HP-UX.
8540 case $host_cpu in
8541 hppa*64*|ia64*)
8542 # +Z the default
8543 ;;
8544 *)
8545 lt_prog_compiler_pic='+Z'
8546 ;;
8547 esac
8548 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8549 lt_prog_compiler_static='${wl}-a ${wl}archive'
8550 ;;
8551
8552 irix5* | irix6* | nonstopux*)
8553 lt_prog_compiler_wl='-Wl,'
8554 # PIC (with -KPIC) is the default.
8555 lt_prog_compiler_static='-non_shared'
8556 ;;
8557
7a9d3fe8 8558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 8559 case $cc_basename in
80c6c2cb
PG
8560 # old Intel for x86_64 which still supported -KPIC.
8561 ecc*)
1cf3d07d
SE
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-static'
8565 ;;
80c6c2cb
PG
8566 # icc used to be incompatible with GCC.
8567 # ICC 10 doesn't accept -KPIC any more.
8568 icc* | ifort*)
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='-fPIC'
8571 lt_prog_compiler_static='-static'
8572 ;;
8573 # Lahey Fortran 8.1.
8574 lf95*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='--shared'
8577 lt_prog_compiler_static='--static'
8578 ;;
43e02a8a 8579 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
8580 # Portland Group compilers (*not* the Pentium gcc compiler,
8581 # which looks to be a dead project)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fpic'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586 ccc*)
8587 lt_prog_compiler_wl='-Wl,'
8588 # All Alpha code is PIC.
8589 lt_prog_compiler_static='-non_shared'
8590 ;;
43e02a8a
RW
8591 xl* | bgxl* | bgf* | mpixl*)
8592 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
80c6c2cb
PG
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-qpic'
8595 lt_prog_compiler_static='-qstaticlink'
8596 ;;
1cf3d07d
SE
8597 *)
8598 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
8599 *Sun\ F* | *Sun*Fortran*)
8600 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
43e02a8a 8603 lt_prog_compiler_wl=''
1cf3d07d 8604 ;;
43e02a8a
RW
8605 *Sun\ C*)
8606 # Sun C 5.9
1cf3d07d
SE
8607 lt_prog_compiler_pic='-KPIC'
8608 lt_prog_compiler_static='-Bstatic'
43e02a8a 8609 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8610 ;;
8611 esac
8612 ;;
8613 esac
8614 ;;
8615
8616 newsos6)
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 ;;
8620
8621 *nto* | *qnx*)
8622 # QNX uses GNU C++, but need to define -shared option too, otherwise
8623 # it will coredump.
8624 lt_prog_compiler_pic='-fPIC -shared'
8625 ;;
8626
8627 osf3* | osf4* | osf5*)
8628 lt_prog_compiler_wl='-Wl,'
8629 # All OSF/1 code is PIC.
8630 lt_prog_compiler_static='-non_shared'
8631 ;;
8632
8633 rdos*)
8634 lt_prog_compiler_static='-non_shared'
8635 ;;
8636
8637 solaris*)
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 case $cc_basename in
8641 f77* | f90* | f95*)
8642 lt_prog_compiler_wl='-Qoption ld ';;
8643 *)
8644 lt_prog_compiler_wl='-Wl,';;
8645 esac
8646 ;;
8647
8648 sunos4*)
8649 lt_prog_compiler_wl='-Qoption ld '
8650 lt_prog_compiler_pic='-PIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 ;;
8653
8654 sysv4 | sysv4.2uw2* | sysv4.3*)
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8658 ;;
8659
8660 sysv4*MP*)
8661 if test -d /usr/nec ;then
8662 lt_prog_compiler_pic='-Kconform_pic'
8663 lt_prog_compiler_static='-Bstatic'
8664 fi
8665 ;;
8666
8667 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672
8673 unicos*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_can_build_shared=no
8676 ;;
8677
8678 uts4*)
8679 lt_prog_compiler_pic='-pic'
8680 lt_prog_compiler_static='-Bstatic'
8681 ;;
8682
8683 *)
8684 lt_prog_compiler_can_build_shared=no
8685 ;;
8686 esac
8687 fi
8688
8689case $host_os in
8690 # For platforms which do not support PIC, -DPIC is meaningless:
8691 *djgpp*)
8692 lt_prog_compiler_pic=
8693 ;;
8694 *)
8695 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8696 ;;
8697esac
5213506e
RW
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8699$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8700
8701
8702
8703
8704
8705
8706#
8707# Check to make sure the PIC flag actually works.
8708#
8709if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8711$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8712if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
1cf3d07d 8714else
80c6c2cb 8715 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8719 # Insert the option either (1) after the last *FLAGS variable, or
8720 # (2) before a word containing "conftest.", or (3) at the end.
8721 # Note that $ac_compile itself does not contain backslashes and begins
8722 # with a dollar sign (not a hyphen), so the echo should work correctly.
8723 # The option is referenced via a variable to avoid confusing sed.
8724 lt_compile=`echo "$ac_compile" | $SED \
8725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8729 (eval "$lt_compile" 2>conftest.err)
8730 ac_status=$?
8731 cat conftest.err >&5
43e02a8a 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8733 if (exit $ac_status) && test -s "$ac_outfile"; then
8734 # The compiler can only warn and ignore the option if not recognized
8735 # So say no if there are warnings other than the usual output.
43e02a8a 8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8739 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8740 fi
8741 fi
8742 $RM conftest*
8743
8744fi
5213506e
RW
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8746$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8747
80c6c2cb 8748if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8749 case $lt_prog_compiler_pic in
8750 "" | " "*) ;;
8751 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8752 esac
8753else
8754 lt_prog_compiler_pic=
8755 lt_prog_compiler_can_build_shared=no
8756fi
8757
8758fi
8759
8760
8761
8762
8763
8764
8765#
8766# Check to make sure the static flag actually works.
8767#
8768wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8770$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8771if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
1cf3d07d 8773else
80c6c2cb 8774 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8775 save_LDFLAGS="$LDFLAGS"
8776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8779 # The linker can only warn and ignore the option if not recognized
8780 # So say no if there are warnings
8781 if test -s conftest.err; then
8782 # Append any errors to the config.log.
8783 cat conftest.err 1>&5
43e02a8a 8784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8787 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8788 fi
8789 else
80c6c2cb 8790 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8791 fi
8792 fi
80c6c2cb 8793 $RM -r conftest*
1cf3d07d
SE
8794 LDFLAGS="$save_LDFLAGS"
8795
8796fi
5213506e
RW
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8798$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8799
80c6c2cb 8800if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8801 :
8802else
8803 lt_prog_compiler_static=
8804fi
8805
8806
8807
8808
8809
8810
8811
5213506e
RW
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8813$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8814if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8816else
8817 lt_cv_prog_compiler_c_o=no
8818 $RM -r conftest 2>/dev/null
8819 mkdir conftest
8820 cd conftest
8821 mkdir out
8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8823
8824 lt_compiler_flag="-o out/conftest2.$ac_objext"
8825 # Insert the option either (1) after the last *FLAGS variable, or
8826 # (2) before a word containing "conftest.", or (3) at the end.
8827 # Note that $ac_compile itself does not contain backslashes and begins
8828 # with a dollar sign (not a hyphen), so the echo should work correctly.
8829 lt_compile=`echo "$ac_compile" | $SED \
8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8832 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8834 (eval "$lt_compile" 2>out/conftest.err)
8835 ac_status=$?
8836 cat out/conftest.err >&5
43e02a8a 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8839 then
8840 # The compiler can only warn and ignore the option if not recognized
8841 # So say no if there are warnings
43e02a8a 8842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8845 lt_cv_prog_compiler_c_o=yes
8846 fi
8847 fi
8848 chmod u+w . 2>&5
8849 $RM conftest*
8850 # SGI C++ compiler will create directory out/ii_files/ for
8851 # template instantiation
8852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8853 $RM out/* && rmdir out
8854 cd ..
8855 $RM -r conftest
8856 $RM conftest*
8857
8858fi
5213506e
RW
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8860$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8861
8862
8863
8864
8865
8866
5213506e
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8869if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8871else
8872 lt_cv_prog_compiler_c_o=no
8873 $RM -r conftest 2>/dev/null
8874 mkdir conftest
8875 cd conftest
8876 mkdir out
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878
8879 lt_compiler_flag="-o out/conftest2.$ac_objext"
8880 # Insert the option either (1) after the last *FLAGS variable, or
8881 # (2) before a word containing "conftest.", or (3) at the end.
8882 # Note that $ac_compile itself does not contain backslashes and begins
8883 # with a dollar sign (not a hyphen), so the echo should work correctly.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8889 (eval "$lt_compile" 2>out/conftest.err)
8890 ac_status=$?
8891 cat out/conftest.err >&5
43e02a8a 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8894 then
8895 # The compiler can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
43e02a8a 8897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_c_o=yes
8901 fi
8902 fi
8903 chmod u+w . 2>&5
8904 $RM conftest*
8905 # SGI C++ compiler will create directory out/ii_files/ for
8906 # template instantiation
8907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8908 $RM out/* && rmdir out
8909 cd ..
8910 $RM -r conftest
8911 $RM conftest*
8912
8913fi
5213506e
RW
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8915$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8916
8917
8918
8919
8920hard_links="nottested"
8921if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8922 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8924$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8925 hard_links=yes
8926 $RM conftest*
8927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8928 touch conftest.a
8929 ln conftest.a conftest.b 2>&5 || hard_links=no
8930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8932$as_echo "$hard_links" >&6; }
1cf3d07d 8933 if test "$hard_links" = no; then
5213506e
RW
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8935$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8936 need_locks=warn
8937 fi
8938else
8939 need_locks=no
8940fi
8941
8942
8943
8944
8945
8946
5213506e
RW
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8948$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8949
8950 runpath_var=
8951 allow_undefined_flag=
8952 always_export_symbols=no
8953 archive_cmds=
8954 archive_expsym_cmds=
8955 compiler_needs_object=no
8956 enable_shared_with_static_runtimes=no
8957 export_dynamic_flag_spec=
8958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8959 hardcode_automatic=no
8960 hardcode_direct=no
8961 hardcode_direct_absolute=no
8962 hardcode_libdir_flag_spec=
8963 hardcode_libdir_flag_spec_ld=
8964 hardcode_libdir_separator=
8965 hardcode_minus_L=no
8966 hardcode_shlibpath_var=unsupported
8967 inherit_rpath=no
8968 link_all_deplibs=unknown
8969 module_cmds=
8970 module_expsym_cmds=
8971 old_archive_from_new_cmds=
8972 old_archive_from_expsyms_cmds=
8973 thread_safe_flag_spec=
8974 whole_archive_flag_spec=
8975 # include_expsyms should be a list of space-separated symbols to be *always*
8976 # included in the symbol list
8977 include_expsyms=
8978 # exclude_expsyms can be an extended regexp of symbols to exclude
8979 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8980 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8981 # as well as any symbol that contains `d'.
80c6c2cb 8982 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8983 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8984 # platforms (ab)use it in PIC code, but their linkers get confused if
8985 # the symbol is explicitly referenced. Since portable code cannot
8986 # rely on this symbol name, it's probably fine to never include it in
8987 # preloaded symbol tables.
80c6c2cb 8988 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8989 extract_expsyms_cmds=
8990
8991 case $host_os in
80c6c2cb 8992 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8993 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 if test "$GCC" != yes; then
8997 with_gnu_ld=no
8998 fi
8999 ;;
9000 interix*)
9001 # we just hope/assume this is gcc and not c89 (= MSVC++)
9002 with_gnu_ld=yes
9003 ;;
9004 openbsd*)
9005 with_gnu_ld=no
9006 ;;
9007 esac
9008
9009 ld_shlibs=yes
43e02a8a
RW
9010
9011 # On some targets, GNU ld is compatible enough with the native linker
9012 # that we're better off using the native interface for both.
9013 lt_use_gnu_ld_interface=no
1cf3d07d 9014 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9015 case $host_os in
9016 aix*)
9017 # The AIX port of GNU ld has always aspired to compatibility
9018 # with the native linker. However, as the warning in the GNU ld
9019 # block says, versions before 2.19.5* couldn't really create working
9020 # shared libraries, regardless of the interface used.
9021 case `$LD -v 2>&1` in
9022 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9023 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9024 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9025 *)
9026 lt_use_gnu_ld_interface=yes
9027 ;;
9028 esac
9029 ;;
9030 *)
9031 lt_use_gnu_ld_interface=yes
9032 ;;
9033 esac
9034 fi
9035
9036 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9037 # If archive_cmds runs LD, not CC, wlarc should be empty
9038 wlarc='${wl}'
9039
9040 # Set some defaults for GNU ld with shared library support. These
9041 # are reset later if shared libraries are not supported. Putting them
9042 # here allows them to be overridden if necessary.
9043 runpath_var=LD_RUN_PATH
9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045 export_dynamic_flag_spec='${wl}--export-dynamic'
9046 # ancient GNU ld didn't support --whole-archive et. al.
9047 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9048 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9049 else
9050 whole_archive_flag_spec=
9051 fi
9052 supports_anon_versioning=no
9053 case `$LD -v 2>&1` in
43e02a8a 9054 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9058 *\ 2.11.*) ;; # other 2.11 versions
9059 *) supports_anon_versioning=yes ;;
9060 esac
9061
9062 # See if GNU ld supports shared libraries.
9063 case $host_os in
95d4f544 9064 aix[3-9]*)
1cf3d07d
SE
9065 # On AIX/PPC, the GNU linker is very broken
9066 if test "$host_cpu" != ia64; then
9067 ld_shlibs=no
9068 cat <<_LT_EOF 1>&2
9069
43e02a8a 9070*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
9071*** to be unable to reliably create shared libraries on AIX.
9072*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9073*** really care for shared libraries, you may want to install binutils
9074*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9075*** You will then need to restart the configuration process.
1cf3d07d
SE
9076
9077_LT_EOF
9078 fi
9079 ;;
9080
9081 amigaos*)
80c6c2cb
PG
9082 case $host_cpu in
9083 powerpc)
9084 # see comment about AmigaOS4 .so support
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086 archive_expsym_cmds=''
9087 ;;
9088 m68k)
9089 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)'
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_minus_L=yes
9092 ;;
9093 esac
1cf3d07d
SE
9094 ;;
9095
9096 beos*)
9097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9098 allow_undefined_flag=unsupported
9099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9100 # support --undefined. This deserves some investigation. FIXME
9101 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 else
9103 ld_shlibs=no
9104 fi
9105 ;;
9106
80c6c2cb 9107 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9108 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9109 # as there is no search path for DLLs.
9110 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 9111 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
9112 allow_undefined_flag=unsupported
9113 always_export_symbols=no
9114 enable_shared_with_static_runtimes=yes
9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9116
9117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 # If the export-symbols file already is a .def file (1st line
9120 # is EXPORTS), use it as is; otherwise, prepend...
9121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9122 cp $export_symbols $output_objdir/$soname.def;
9123 else
9124 echo EXPORTS > $output_objdir/$soname.def;
9125 cat $export_symbols >> $output_objdir/$soname.def;
9126 fi~
9127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
43e02a8a
RW
9133 haiku*)
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135 link_all_deplibs=yes
9136 ;;
9137
1cf3d07d
SE
9138 interix[3-9]*)
9139 hardcode_direct=no
9140 hardcode_shlibpath_var=no
9141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142 export_dynamic_flag_spec='${wl}-E'
9143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9144 # Instead, shared libraries are loaded at an image base (0x10000000 by
9145 # default) and relocated if they conflict, which is a slow very memory
9146 # consuming and fragmenting process. To avoid this, we pick a random,
9147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150 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'
9151 ;;
9152
7a9d3fe8 9153 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9154 tmp_diet=no
9155 if test "$host_os" = linux-dietlibc; then
9156 case $cc_basename in
9157 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9158 esac
9159 fi
9160 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9161 && test "$tmp_diet" = no
9162 then
a699d672 9163 tmp_addflag=' $pic_flag'
80c6c2cb 9164 tmp_sharedflag='-shared'
1cf3d07d
SE
9165 case $cc_basename,$host_cpu in
9166 pgcc*) # Portland Group C compiler
43e02a8a 9167 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
9168 tmp_addflag=' $pic_flag'
9169 ;;
43e02a8a
RW
9170 pgf77* | pgf90* | pgf95* | pgfortran*)
9171 # Portland Group f77 and f90 compilers
9172 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
9173 tmp_addflag=' $pic_flag -Mnomain' ;;
9174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9175 tmp_addflag=' -i_dynamic' ;;
9176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9177 tmp_addflag=' -i_dynamic -nofor_main' ;;
9178 ifc* | ifort*) # Intel Fortran compiler
9179 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
9180 lf95*) # Lahey Fortran 8.1
9181 whole_archive_flag_spec=
9182 tmp_sharedflag='--shared' ;;
43e02a8a 9183 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
80c6c2cb
PG
9184 tmp_sharedflag='-qmkshrobj'
9185 tmp_addflag= ;;
43e02a8a
RW
9186 nvcc*) # Cuda Compiler Driver 2.2
9187 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'
9188 compiler_needs_object=yes
9189 ;;
1cf3d07d
SE
9190 esac
9191 case `$CC -V 2>&1 | sed 5q` in
9192 *Sun\ C*) # Sun C 5.9
43e02a8a 9193 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
9194 compiler_needs_object=yes
9195 tmp_sharedflag='-G' ;;
9196 *Sun\ F*) # Sun Fortran 8.3
9197 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9198 esac
9199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200
9201 if test "x$supports_anon_versioning" = xyes; then
9202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9204 echo "local: *; };" >> $output_objdir/$libname.ver~
9205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9206 fi
80c6c2cb
PG
9207
9208 case $cc_basename in
43e02a8a 9209 xlf* | bgf* | bgxlf* | mpixlf*)
80c6c2cb
PG
9210 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9211 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9212 hardcode_libdir_flag_spec=
9213 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9214 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9215 if test "x$supports_anon_versioning" = xyes; then
9216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9218 echo "local: *; };" >> $output_objdir/$libname.ver~
9219 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9220 fi
9221 ;;
9222 esac
1cf3d07d
SE
9223 else
9224 ld_shlibs=no
9225 fi
9226 ;;
9227
9228 netbsd*)
9229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9231 wlarc=
9232 else
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235 fi
9236 ;;
9237
9238 solaris*)
9239 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9240 ld_shlibs=no
9241 cat <<_LT_EOF 1>&2
9242
9243*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9244*** create shared libraries on Solaris systems. Therefore, libtool
9245*** is disabling shared libraries support. We urge you to upgrade GNU
9246*** binutils to release 2.9.1 or newer. Another option is to modify
9247*** your PATH or compiler configuration so that the native linker is
9248*** used, and then restart.
9249
9250_LT_EOF
9251 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254 else
9255 ld_shlibs=no
9256 fi
9257 ;;
9258
9259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9260 case `$LD -v 2>&1` in
9261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9266*** reliably create shared libraries on SCO systems. Therefore, libtool
9267*** is disabling shared libraries support. We urge you to upgrade GNU
9268*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9269*** your PATH or compiler configuration so that the native linker is
9270*** used, and then restart.
9271
9272_LT_EOF
9273 ;;
9274 *)
9275 # For security reasons, it is highly recommended that you always
9276 # use absolute paths for naming shared libraries, and exclude the
9277 # DT_RUNPATH tag from executables and libraries. But doing so
9278 # requires that you compile everything twice, which is a pain.
9279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287 esac
9288 ;;
9289
9290 sunos4*)
9291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9292 wlarc=
9293 hardcode_direct=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 *)
9298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9301 else
9302 ld_shlibs=no
9303 fi
9304 ;;
9305 esac
9306
9307 if test "$ld_shlibs" = no; then
9308 runpath_var=
9309 hardcode_libdir_flag_spec=
9310 export_dynamic_flag_spec=
9311 whole_archive_flag_spec=
9312 fi
9313 else
9314 # PORTME fill in a description of your system's linker (not GNU ld)
9315 case $host_os in
9316 aix3*)
9317 allow_undefined_flag=unsupported
9318 always_export_symbols=yes
9319 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'
9320 # Note: this linker hardcodes the directories in LIBPATH if there
9321 # are no directories specified by -L.
9322 hardcode_minus_L=yes
9323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9324 # Neither direct hardcoding nor static linking is supported with a
9325 # broken collect2.
9326 hardcode_direct=unsupported
9327 fi
9328 ;;
9329
95d4f544 9330 aix[4-9]*)
1cf3d07d
SE
9331 if test "$host_cpu" = ia64; then
9332 # On IA64, the linker does run time linking by default, so we don't
9333 # have to do anything special.
9334 aix_use_runtimelinking=no
9335 exp_sym_flag='-Bexport'
9336 no_entry_flag=""
9337 else
9338 # If we're using GNU nm, then we don't want the "-C" option.
9339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
9340 # Also, AIX nm treats weak defined symbols like other global
9341 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 9342 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 9343 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
9344 else
9345 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'
9346 fi
9347 aix_use_runtimelinking=no
9348
9349 # Test if we are trying to use run time linking or normal
9350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9351 # need to do runtime linking.
95d4f544 9352 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9353 for ld_flag in $LDFLAGS; do
9354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9355 aix_use_runtimelinking=yes
9356 break
9357 fi
9358 done
9359 ;;
9360 esac
9361
9362 exp_sym_flag='-bexport'
9363 no_entry_flag='-bnoentry'
9364 fi
9365
9366 # When large executables or shared objects are built, AIX ld can
9367 # have problems creating the table of contents. If linking a library
9368 # or program results in "error TOC overflow" add -mminimal-toc to
9369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9371
9372 archive_cmds=''
9373 hardcode_direct=yes
9374 hardcode_direct_absolute=yes
9375 hardcode_libdir_separator=':'
9376 link_all_deplibs=yes
9377 file_list_spec='${wl}-f,'
9378
9379 if test "$GCC" = yes; then
9380 case $host_os in aix4.[012]|aix4.[012].*)
9381 # We only want to do this on AIX 4.2 and lower, the check
9382 # below for broken collect2 doesn't work under 4.3+
9383 collect2name=`${CC} -print-prog-name=collect2`
9384 if test -f "$collect2name" &&
9385 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9386 then
9387 # We have reworked collect2
9388 :
9389 else
9390 # We have old collect2
9391 hardcode_direct=unsupported
9392 # It fails to find uninstalled libraries when the uninstalled
9393 # path is not listed in the libpath. Setting hardcode_minus_L
9394 # to unsupported forces relinking
9395 hardcode_minus_L=yes
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_libdir_separator=
9398 fi
9399 ;;
9400 esac
9401 shared_flag='-shared'
9402 if test "$aix_use_runtimelinking" = yes; then
9403 shared_flag="$shared_flag "'${wl}-G'
9404 fi
9405 else
9406 # not using gcc
9407 if test "$host_cpu" = ia64; then
9408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9409 # chokes on -Wl,-G. The following line is correct:
9410 shared_flag='-G'
9411 else
9412 if test "$aix_use_runtimelinking" = yes; then
9413 shared_flag='${wl}-G'
9414 else
9415 shared_flag='${wl}-bM:SRE'
9416 fi
9417 fi
9418 fi
9419
80c6c2cb 9420 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9421 # It seems that -bexpall does not export symbols beginning with
9422 # underscore (_), so it is better to generate a list of symbols to export.
9423 always_export_symbols=yes
9424 if test "$aix_use_runtimelinking" = yes; then
9425 # Warning - without using the other runtime loading flags (-brtl),
9426 # -berok will link without error, but may produce a broken library.
9427 allow_undefined_flag='-berok'
9428 # Determine the default libpath from the value encoded in an
9429 # empty executable.
5213506e 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9431/* end confdefs.h. */
9432
9433int
9434main ()
9435{
9436
9437 ;
9438 return 0;
9439}
9440_ACEOF
5213506e 9441if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9442
9443lt_aix_libpath_sed='
9444 /Import File Strings/,/^$/ {
9445 /^0/ {
9446 s/^0 *\(.*\)$/\1/
9447 p
9448 }
9449 }'
9450aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451# Check for a 64-bit object if we didn't find anything.
9452if test -z "$aix_libpath"; then
9453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9454fi
1cf3d07d 9455fi
5213506e
RW
9456rm -f core conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9459
9460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 9461 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
9462 else
9463 if test "$host_cpu" = ia64; then
9464 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9465 allow_undefined_flag="-z nodefs"
9466 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"
9467 else
9468 # Determine the default libpath from the value encoded in an
9469 # empty executable.
5213506e 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9471/* end confdefs.h. */
9472
9473int
9474main ()
9475{
9476
9477 ;
9478 return 0;
9479}
9480_ACEOF
5213506e 9481if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9482
9483lt_aix_libpath_sed='
9484 /Import File Strings/,/^$/ {
9485 /^0/ {
9486 s/^0 *\(.*\)$/\1/
9487 p
9488 }
9489 }'
9490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491# Check for a 64-bit object if we didn't find anything.
9492if test -z "$aix_libpath"; then
9493 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494fi
1cf3d07d 9495fi
5213506e
RW
9496rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9498if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9499
9500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9501 # Warning - without using the other run time loading flags,
9502 # -berok will link without error, but may produce a broken library.
9503 no_undefined_flag=' ${wl}-bernotok'
9504 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
9505 if test "$with_gnu_ld" = yes; then
9506 # We only use this code for GNU lds that support --whole-archive.
9507 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9508 else
9509 # Exported symbols can be pulled into shared objects from archives
9510 whole_archive_flag_spec='$convenience'
9511 fi
1cf3d07d
SE
9512 archive_cmds_need_lc=yes
9513 # This is similar to how AIX traditionally builds its shared libraries.
9514 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'
9515 fi
9516 fi
9517 ;;
9518
9519 amigaos*)
80c6c2cb
PG
9520 case $host_cpu in
9521 powerpc)
9522 # see comment about AmigaOS4 .so support
9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524 archive_expsym_cmds=''
9525 ;;
9526 m68k)
9527 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)'
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_minus_L=yes
9530 ;;
9531 esac
1cf3d07d
SE
9532 ;;
9533
9534 bsdi[45]*)
9535 export_dynamic_flag_spec=-rdynamic
9536 ;;
9537
80c6c2cb 9538 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9539 # When not using gcc, we currently assume that we are using
9540 # Microsoft Visual C++.
9541 # hardcode_libdir_flag_spec is actually meaningless, as there is
9542 # no search path for DLLs.
9543 hardcode_libdir_flag_spec=' '
9544 allow_undefined_flag=unsupported
9545 # Tell ltmain to make .lib files, not .a files.
9546 libext=lib
9547 # Tell ltmain to make .dll files, not .so files.
9548 shrext_cmds=".dll"
9549 # FIXME: Setting linknames here is a bad hack.
43e02a8a 9550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
9551 # The linker will automatically build a .lib file if we build a DLL.
9552 old_archive_from_new_cmds='true'
9553 # FIXME: Should let the user specify the lib program.
9554 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9555 fix_srcfile_path='`cygpath -w "$srcfile"`'
9556 enable_shared_with_static_runtimes=yes
9557 ;;
9558
9559 darwin* | rhapsody*)
1cf3d07d 9560
80c6c2cb
PG
9561
9562 archive_cmds_need_lc=no
9563 hardcode_direct=no
9564 hardcode_automatic=yes
9565 hardcode_shlibpath_var=unsupported
43e02a8a
RW
9566 if test "$lt_cv_ld_force_load" = "yes"; then
9567 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\"`'
9568 else
9569 whole_archive_flag_spec=''
9570 fi
80c6c2cb
PG
9571 link_all_deplibs=yes
9572 allow_undefined_flag="$_lt_dar_allow_undefined"
9573 case $cc_basename in
9574 ifort*) _lt_dar_can_shared=yes ;;
9575 *) _lt_dar_can_shared=$GCC ;;
9576 esac
9577 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 9578 output_verbose_link_cmd=func_echo_all
80c6c2cb
PG
9579 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9580 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9581 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}"
9582 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}"
9583
9584 else
9585 ld_shlibs=no
9586 fi
9587
1cf3d07d
SE
9588 ;;
9589
9590 dgux*)
9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-L$libdir'
9593 hardcode_shlibpath_var=no
9594 ;;
9595
1cf3d07d
SE
9596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9597 # support. Future versions do this automatically, but an explicit c++rt0.o
9598 # does not break anything, and helps significantly (at the cost of a little
9599 # extra space).
9600 freebsd2.2*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9602 hardcode_libdir_flag_spec='-R$libdir'
9603 hardcode_direct=yes
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 9608 freebsd2.*)
1cf3d07d
SE
9609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9610 hardcode_direct=yes
9611 hardcode_minus_L=yes
9612 hardcode_shlibpath_var=no
9613 ;;
9614
9615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9616 freebsd* | dragonfly*)
9617 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9618 hardcode_libdir_flag_spec='-R$libdir'
9619 hardcode_direct=yes
9620 hardcode_shlibpath_var=no
9621 ;;
9622
9623 hpux9*)
9624 if test "$GCC" = yes; then
9625 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'
9626 else
9627 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'
9628 fi
9629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9630 hardcode_libdir_separator=:
9631 hardcode_direct=yes
9632
9633 # hardcode_minus_L: Not really in the search PATH,
9634 # but as the default location of the library.
9635 hardcode_minus_L=yes
9636 export_dynamic_flag_spec='${wl}-E'
9637 ;;
9638
9639 hpux10*)
43e02a8a 9640 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9641 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9642 else
9643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9644 fi
9645 if test "$with_gnu_ld" = no; then
9646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9647 hardcode_libdir_flag_spec_ld='+b $libdir'
9648 hardcode_libdir_separator=:
9649 hardcode_direct=yes
9650 hardcode_direct_absolute=yes
9651 export_dynamic_flag_spec='${wl}-E'
9652 # hardcode_minus_L: Not really in the search PATH,
9653 # but as the default location of the library.
9654 hardcode_minus_L=yes
9655 fi
9656 ;;
9657
9658 hpux11*)
43e02a8a 9659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9660 case $host_cpu in
9661 hppa*64*)
9662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 ;;
9664 ia64*)
80c6c2cb 9665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9666 ;;
9667 *)
9668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 esac
9671 else
9672 case $host_cpu in
9673 hppa*64*)
9674 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 ;;
9676 ia64*)
9677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9678 ;;
9679 *)
43e02a8a
RW
9680
9681 # Older versions of the 11.00 compiler do not understand -b yet
9682 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9684$as_echo_n "checking if $CC understands -b... " >&6; }
9685if test "${lt_cv_prog_compiler__b+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687else
9688 lt_cv_prog_compiler__b=no
9689 save_LDFLAGS="$LDFLAGS"
9690 LDFLAGS="$LDFLAGS -b"
9691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9693 # The linker can only warn and ignore the option if not recognized
9694 # So say no if there are warnings
9695 if test -s conftest.err; then
9696 # Append any errors to the config.log.
9697 cat conftest.err 1>&5
9698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9700 if diff conftest.exp conftest.er2 >/dev/null; then
9701 lt_cv_prog_compiler__b=yes
9702 fi
9703 else
9704 lt_cv_prog_compiler__b=yes
9705 fi
9706 fi
9707 $RM -r conftest*
9708 LDFLAGS="$save_LDFLAGS"
9709
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9712$as_echo "$lt_cv_prog_compiler__b" >&6; }
9713
9714if test x"$lt_cv_prog_compiler__b" = xyes; then
9715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9716else
9717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9718fi
9719
1cf3d07d
SE
9720 ;;
9721 esac
9722 fi
9723 if test "$with_gnu_ld" = no; then
9724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9725 hardcode_libdir_separator=:
9726
9727 case $host_cpu in
9728 hppa*64*|ia64*)
9729 hardcode_direct=no
9730 hardcode_shlibpath_var=no
9731 ;;
9732 *)
9733 hardcode_direct=yes
9734 hardcode_direct_absolute=yes
9735 export_dynamic_flag_spec='${wl}-E'
9736
9737 # hardcode_minus_L: Not really in the search PATH,
9738 # but as the default location of the library.
9739 hardcode_minus_L=yes
9740 ;;
9741 esac
9742 fi
9743 ;;
9744
9745 irix5* | irix6* | nonstopux*)
9746 if test "$GCC" = yes; then
43e02a8a 9747 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
9748 # Try to use the -exported_symbol ld option, if it does not
9749 # work, assume that -exports_file does not work either and
9750 # implicitly export all symbols.
9751 save_LDFLAGS="$LDFLAGS"
9752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h. */
1cf3d07d
SE
9755int foo(void) {}
9756_ACEOF
5213506e 9757if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9758 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 9759
1cf3d07d 9760fi
5213506e
RW
9761rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9763 LDFLAGS="$save_LDFLAGS"
9764 else
43e02a8a
RW
9765 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'
9766 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
9767 fi
9768 archive_cmds_need_lc='no'
9769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770 hardcode_libdir_separator=:
9771 inherit_rpath=yes
9772 link_all_deplibs=yes
9773 ;;
9774
9775 netbsd*)
9776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9778 else
9779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9780 fi
9781 hardcode_libdir_flag_spec='-R$libdir'
9782 hardcode_direct=yes
9783 hardcode_shlibpath_var=no
9784 ;;
9785
9786 newsos6)
9787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_direct=yes
9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790 hardcode_libdir_separator=:
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 *nto* | *qnx*)
9795 ;;
9796
9797 openbsd*)
80c6c2cb
PG
9798 if test -f /usr/libexec/ld.so; then
9799 hardcode_direct=yes
9800 hardcode_shlibpath_var=no
9801 hardcode_direct_absolute=yes
9802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 9804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
9806 export_dynamic_flag_spec='${wl}-E'
9807 else
9808 case $host_os in
9809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_libdir_flag_spec='-R$libdir'
9812 ;;
9813 *)
9814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9816 ;;
9817 esac
9818 fi
9819 else
9820 ld_shlibs=no
1cf3d07d
SE
9821 fi
9822 ;;
9823
9824 os2*)
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_minus_L=yes
9827 allow_undefined_flag=unsupported
43e02a8a 9828 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
9829 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9830 ;;
9831
9832 osf3*)
9833 if test "$GCC" = yes; then
9834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9835 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
9836 else
9837 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9838 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
9839 fi
9840 archive_cmds_need_lc='no'
9841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9842 hardcode_libdir_separator=:
9843 ;;
9844
9845 osf4* | osf5*) # as osf3* with the addition of -msym flag
9846 if test "$GCC" = yes; then
9847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9848 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
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 else
9851 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9852 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 9853 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 9854 $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
9855
9856 # Both c and cxx compiler support -rpath directly
9857 hardcode_libdir_flag_spec='-rpath $libdir'
9858 fi
9859 archive_cmds_need_lc='no'
9860 hardcode_libdir_separator=:
9861 ;;
9862
9863 solaris*)
9864 no_undefined_flag=' -z defs'
9865 if test "$GCC" = yes; then
9866 wlarc='${wl}'
9867 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9869 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9870 else
9871 case `$CC -V 2>&1` in
9872 *"Compilers 5.0"*)
9873 wlarc=''
9874 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9877 ;;
9878 *)
9879 wlarc='${wl}'
9880 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9882 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9883 ;;
9884 esac
9885 fi
9886 hardcode_libdir_flag_spec='-R$libdir'
9887 hardcode_shlibpath_var=no
9888 case $host_os in
9889 solaris2.[0-5] | solaris2.[0-5].*) ;;
9890 *)
9891 # The compiler driver will combine and reorder linker options,
9892 # but understands `-z linker_flag'. GCC discards it without `$wl',
9893 # but is careful enough not to reorder.
9894 # Supported since Solaris 2.6 (maybe 2.5.1?)
9895 if test "$GCC" = yes; then
9896 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9897 else
9898 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9899 fi
9900 ;;
9901 esac
9902 link_all_deplibs=yes
9903 ;;
9904
9905 sunos4*)
9906 if test "x$host_vendor" = xsequent; then
9907 # Use $CC to link under sequent, because it throws in some extra .o
9908 # files that make .init and .fini sections work.
9909 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9910 else
9911 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9912 fi
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_direct=yes
9915 hardcode_minus_L=yes
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 sysv4)
9920 case $host_vendor in
9921 sni)
9922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_direct=yes # is this really true???
9924 ;;
9925 siemens)
9926 ## LD is ld it makes a PLAMLIB
9927 ## CC just makes a GrossModule.
9928 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9929 reload_cmds='$CC -r -o $output$reload_objs'
9930 hardcode_direct=no
9931 ;;
9932 motorola)
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9935 ;;
9936 esac
9937 runpath_var='LD_RUN_PATH'
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 sysv4.3*)
9942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_shlibpath_var=no
9944 export_dynamic_flag_spec='-Bexport'
9945 ;;
9946
9947 sysv4*MP*)
9948 if test -d /usr/nec; then
9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_shlibpath_var=no
9951 runpath_var=LD_RUN_PATH
9952 hardcode_runpath_var=yes
9953 ld_shlibs=yes
9954 fi
9955 ;;
9956
9957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9958 no_undefined_flag='${wl}-z,text'
9959 archive_cmds_need_lc=no
9960 hardcode_shlibpath_var=no
9961 runpath_var='LD_RUN_PATH'
9962
9963 if test "$GCC" = yes; then
9964 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966 else
9967 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969 fi
9970 ;;
9971
9972 sysv5* | sco3.2v5* | sco5v6*)
9973 # Note: We can NOT use -z defs as we might desire, because we do not
9974 # link with -lc, and that would cause any symbols used from libc to
9975 # always be unresolved, which means just about no library would
9976 # ever link correctly. If we're not using GNU ld we use -z text
9977 # though, which does catch some bad symbols but isn't as heavy-handed
9978 # as -z defs.
9979 no_undefined_flag='${wl}-z,text'
9980 allow_undefined_flag='${wl}-z,nodefs'
9981 archive_cmds_need_lc=no
9982 hardcode_shlibpath_var=no
9983 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9984 hardcode_libdir_separator=':'
9985 link_all_deplibs=yes
9986 export_dynamic_flag_spec='${wl}-Bexport'
9987 runpath_var='LD_RUN_PATH'
9988
9989 if test "$GCC" = yes; then
9990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 fi
9996 ;;
9997
9998 uts4*)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_shlibpath_var=no
10002 ;;
10003
10004 *)
10005 ld_shlibs=no
10006 ;;
10007 esac
10008
10009 if test x$host_vendor = xsni; then
10010 case $host in
10011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10012 export_dynamic_flag_spec='${wl}-Blargedynsym'
10013 ;;
10014 esac
10015 fi
10016 fi
10017
5213506e
RW
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10019$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10020test "$ld_shlibs" = no && can_build_shared=no
10021
10022with_gnu_ld=$with_gnu_ld
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038#
10039# Do we need to explicitly link libc?
10040#
10041case "x$archive_cmds_need_lc" in
10042x|xyes)
10043 # Assume -lc should be added
10044 archive_cmds_need_lc=yes
10045
10046 if test "$enable_shared" = yes && test "$GCC" = yes; then
10047 case $archive_cmds in
10048 *'~'*)
10049 # FIXME: we may have to deal with multi-command sequences.
10050 ;;
10051 '$CC '*)
10052 # Test whether the compiler implicitly links with -lc since on some
10053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10054 # to ld, don't add -lc before -lgcc.
5213506e
RW
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10056$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10057if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
baafc534
RW
10059else
10060 $RM conftest*
10061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10062
5213506e 10063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10064 (eval $ac_compile) 2>&5
10065 ac_status=$?
5213506e
RW
10066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10067 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10068 soname=conftest
10069 lib=conftest
10070 libobjs=conftest.$ac_objext
10071 deplibs=
10072 wl=$lt_prog_compiler_wl
10073 pic_flag=$lt_prog_compiler_pic
10074 compiler_flags=-v
10075 linker_flags=-v
10076 verstring=
10077 output_objdir=.
10078 libname=conftest
10079 lt_save_allow_undefined_flag=$allow_undefined_flag
10080 allow_undefined_flag=
5213506e 10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10083 ac_status=$?
5213506e
RW
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; }
baafc534
RW
10086 then
10087 lt_cv_archive_cmds_need_lc=no
10088 else
10089 lt_cv_archive_cmds_need_lc=yes
10090 fi
10091 allow_undefined_flag=$lt_save_allow_undefined_flag
10092 else
10093 cat conftest.err 1>&5
10094 fi
10095 $RM conftest*
10096
10097fi
5213506e
RW
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10099$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10100 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10101 ;;
10102 esac
10103 fi
10104 ;;
10105esac
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10264$as_echo_n "checking dynamic linker characteristics... " >&6; }
80c6c2cb
PG
10265
10266if test "$GCC" = yes; then
1cf3d07d
SE
10267 case $host_os in
10268 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10269 *) lt_awk_arg="/^libraries:/" ;;
10270 esac
43e02a8a
RW
10271 case $host_os in
10272 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10273 *) lt_sed_strip_eq="s,=/,/,g" ;;
10274 esac
10275 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10276 case $lt_search_path_spec in
10277 *\;*)
1cf3d07d
SE
10278 # if the path contains ";" then we assume it to be the separator
10279 # otherwise default to the standard path separator (i.e. ":") - it is
10280 # assumed that no part of a normal pathname contains ";" but that should
10281 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
10282 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10283 ;;
10284 *)
10285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10286 ;;
10287 esac
1cf3d07d
SE
10288 # Ok, now we have the path, separated by spaces, we can step through it
10289 # and add multilib dir if necessary.
10290 lt_tmp_lt_search_path_spec=
10291 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10292 for lt_sys_path in $lt_search_path_spec; do
10293 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10295 else
10296 test -d "$lt_sys_path" && \
10297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10298 fi
10299 done
43e02a8a 10300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
10301BEGIN {RS=" "; FS="/|\n";} {
10302 lt_foo="";
10303 lt_count=0;
10304 for (lt_i = NF; lt_i > 0; lt_i--) {
10305 if ($lt_i != "" && $lt_i != ".") {
10306 if ($lt_i == "..") {
10307 lt_count++;
10308 } else {
10309 if (lt_count == 0) {
10310 lt_foo="/" $lt_i lt_foo;
10311 } else {
10312 lt_count--;
10313 }
10314 }
10315 }
10316 }
10317 if (lt_foo != "") { lt_freq[lt_foo]++; }
10318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10319}'`
43e02a8a
RW
10320 # AWK program above erroneously prepends '/' to C:/dos/paths
10321 # for these hosts.
10322 case $host_os in
10323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10324 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10325 esac
10326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
10327else
10328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10329fi
10330library_names_spec=
10331libname_spec='lib$name'
10332soname_spec=
10333shrext_cmds=".so"
10334postinstall_cmds=
10335postuninstall_cmds=
10336finish_cmds=
10337finish_eval=
10338shlibpath_var=
10339shlibpath_overrides_runpath=unknown
10340version_type=none
10341dynamic_linker="$host_os ld.so"
10342sys_lib_dlsearch_path_spec="/lib /usr/lib"
10343need_lib_prefix=unknown
10344hardcode_into_libs=no
10345
10346# when you set need_version to no, make sure it does not cause -set_version
10347# flags to be left without arguments
10348need_version=unknown
10349
10350case $host_os in
10351aix3*)
10352 version_type=linux
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10354 shlibpath_var=LIBPATH
10355
10356 # AIX 3 has no versioning support, so we append a major version to the name.
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 ;;
10359
95d4f544 10360aix[4-9]*)
1cf3d07d
SE
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 hardcode_into_libs=yes
10365 if test "$host_cpu" = ia64; then
10366 # AIX 5 supports IA64
10367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 else
10370 # With GCC up to 2.95.x, collect2 would create an import file
10371 # for dependence libraries. The import file would start with
10372 # the line `#! .'. This would cause the generated library to
10373 # depend on `.', always an invalid library. This was fixed in
10374 # development snapshots of GCC prior to 3.0.
10375 case $host_os in
10376 aix4 | aix4.[01] | aix4.[01].*)
10377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10378 echo ' yes '
10379 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10380 :
10381 else
10382 can_build_shared=no
10383 fi
10384 ;;
10385 esac
10386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10387 # soname into executable. Probably we can add versioning support to
10388 # collect2, so additional links can be useful in future.
10389 if test "$aix_use_runtimelinking" = yes; then
10390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10391 # instead of lib<name>.a to let people know that these are not
10392 # typical AIX shared libraries.
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 else
10395 # We preserve .a as extension for shared libraries through AIX4.2
10396 # and later when we are not doing run time linking.
10397 library_names_spec='${libname}${release}.a $libname.a'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 fi
10400 shlibpath_var=LIBPATH
10401 fi
10402 ;;
10403
10404amigaos*)
80c6c2cb
PG
10405 case $host_cpu in
10406 powerpc)
10407 # Since July 2007 AmigaOS4 officially supports .so libraries.
10408 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 ;;
10411 m68k)
1cf3d07d
SE
10412 library_names_spec='$libname.ixlibrary $libname.a'
10413 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 10414 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
10415 ;;
10416 esac
1cf3d07d
SE
10417 ;;
10418
10419beos*)
10420 library_names_spec='${libname}${shared_ext}'
10421 dynamic_linker="$host_os ld.so"
10422 shlibpath_var=LIBRARY_PATH
10423 ;;
10424
10425bsdi[45]*)
10426 version_type=linux
10427 need_version=no
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10434 # the default ld.so.conf also contains /usr/contrib/lib and
10435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10436 # libtool to hard-code these into programs
10437 ;;
10438
80c6c2cb 10439cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10440 version_type=windows
10441 shrext_cmds=".dll"
10442 need_version=no
10443 need_lib_prefix=no
10444
80c6c2cb
PG
10445 case $GCC,$host_os in
10446 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10447 library_names_spec='$libname.dll.a'
10448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10449 postinstall_cmds='base_file=`basename \${file}`~
10450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10451 dldir=$destdir/`dirname \$dlpath`~
10452 test -d \$dldir || mkdir -p \$dldir~
10453 $install_prog $dir/$dlname \$dldir/$dlname~
10454 chmod a+x \$dldir/$dlname~
10455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10457 fi'
10458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10459 dlpath=$dir/\$dldll~
10460 $RM \$dlpath'
10461 shlibpath_overrides_runpath=yes
10462
10463 case $host_os in
10464 cygwin*)
10465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
10467
10468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 10469 ;;
80c6c2cb 10470 mingw* | cegcc*)
1cf3d07d
SE
10471 # MinGW DLLs use traditional 'lib' prefix
10472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
10473 ;;
10474 pw32*)
10475 # pw32 DLLs use 'pw' prefix rather than 'lib'
10476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10477 ;;
10478 esac
10479 ;;
10480
10481 *)
10482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10483 ;;
10484 esac
10485 dynamic_linker='Win32 ld.exe'
10486 # FIXME: first we should search . and the directory the executable is in
10487 shlibpath_var=PATH
10488 ;;
10489
10490darwin* | rhapsody*)
10491 dynamic_linker="$host_os dyld"
10492 version_type=darwin
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10496 soname_spec='${libname}${release}${major}$shared_ext'
10497 shlibpath_overrides_runpath=yes
10498 shlibpath_var=DYLD_LIBRARY_PATH
10499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10500
10501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10503 ;;
10504
10505dgux*)
10506 version_type=linux
10507 need_lib_prefix=no
10508 need_version=no
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 ;;
10513
1cf3d07d
SE
10514freebsd* | dragonfly*)
10515 # DragonFly does not have aout. When/if they implement a new
10516 # versioning mechanism, adjust this.
10517 if test -x /usr/bin/objformat; then
10518 objformat=`/usr/bin/objformat`
10519 else
10520 case $host_os in
c6084f68 10521 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
10522 *) objformat=elf ;;
10523 esac
10524 fi
10525 version_type=freebsd-$objformat
10526 case $version_type in
10527 freebsd-elf*)
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10529 need_version=no
10530 need_lib_prefix=no
10531 ;;
10532 freebsd-*)
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10534 need_version=yes
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY_PATH
10538 case $host_os in
c6084f68 10539 freebsd2.*)
1cf3d07d
SE
10540 shlibpath_overrides_runpath=yes
10541 ;;
10542 freebsd3.[01]* | freebsdelf3.[01]*)
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10545 ;;
10546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10548 shlibpath_overrides_runpath=no
10549 hardcode_into_libs=yes
10550 ;;
10551 *) # from 4.6 on, and DragonFly
10552 shlibpath_overrides_runpath=yes
10553 hardcode_into_libs=yes
10554 ;;
10555 esac
10556 ;;
10557
10558gnu*)
10559 version_type=linux
10560 need_lib_prefix=no
10561 need_version=no
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 hardcode_into_libs=yes
10566 ;;
10567
43e02a8a
RW
10568haiku*)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 dynamic_linker="$host_os runtime_loader"
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10578 hardcode_into_libs=yes
10579 ;;
10580
1cf3d07d
SE
10581hpux9* | hpux10* | hpux11*)
10582 # Give a soname corresponding to the major version so that dld.sl refuses to
10583 # link against other versions.
10584 version_type=sunos
10585 need_lib_prefix=no
10586 need_version=no
10587 case $host_cpu in
10588 ia64*)
10589 shrext_cmds='.so'
10590 hardcode_into_libs=yes
10591 dynamic_linker="$host_os dld.so"
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 if test "X$HPUX_IA64_MODE" = X32; then
10597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10598 else
10599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10600 fi
10601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10602 ;;
10603 hppa*64*)
10604 shrext_cmds='.sl'
10605 hardcode_into_libs=yes
10606 dynamic_linker="$host_os dld.sl"
10607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10613 ;;
10614 *)
10615 shrext_cmds='.sl'
10616 dynamic_linker="$host_os dld.sl"
10617 shlibpath_var=SHLIB_PATH
10618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 ;;
10622 esac
43e02a8a 10623 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10624 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10625 # or fails outright, so override atomically:
10626 install_override_mode=555
1cf3d07d 10627 ;;
675cdab3 10628
1cf3d07d
SE
10629interix[3-9]*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=no
10638 hardcode_into_libs=yes
3ed8e5b6 10639 ;;
675cdab3 10640
1cf3d07d
SE
10641irix5* | irix6* | nonstopux*)
10642 case $host_os in
10643 nonstopux*) version_type=nonstopux ;;
10644 *)
10645 if test "$lt_cv_prog_gnu_ld" = yes; then
10646 version_type=linux
10647 else
10648 version_type=irix
10649 fi ;;
10650 esac
10651 need_lib_prefix=no
10652 need_version=no
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10655 case $host_os in
10656 irix5* | nonstopux*)
10657 libsuff= shlibsuff=
10658 ;;
10659 *)
10660 case $LD in # libtool.m4 will add one of these switches to LD
10661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10662 libsuff= shlibsuff= libmagic=32-bit;;
10663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10664 libsuff=32 shlibsuff=N32 libmagic=N32;;
10665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10667 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 10668 esac
1cf3d07d
SE
10669 ;;
10670 esac
10671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10672 shlibpath_overrides_runpath=no
10673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10675 hardcode_into_libs=yes
3ed8e5b6 10676 ;;
675cdab3 10677
1cf3d07d
SE
10678# No shared lib support for Linux oldld, aout, or coff.
10679linux*oldld* | linux*aout* | linux*coff*)
10680 dynamic_linker=no
10681 ;;
3ed8e5b6 10682
1cf3d07d 10683# This must be Linux ELF.
7a9d3fe8 10684linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=no
baafc534 10693
1cf3d07d 10694 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10695 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
baafc534
RW
10697else
10698 lt_cv_shlibpath_overrides_runpath=no
10699 save_LDFLAGS=$LDFLAGS
10700 save_libdir=$libdir
10701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
10704/* end confdefs.h. */
10705
10706int
10707main ()
10708{
675cdab3 10709
3ed8e5b6
AT
10710 ;
10711 return 0;
10712}
10713_ACEOF
5213506e
RW
10714if ac_fn_c_try_link "$LINENO"; then :
10715 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10716 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10717fi
675cdab3 10718fi
5213506e
RW
10719rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10721 LDFLAGS=$save_LDFLAGS
10722 libdir=$save_libdir
10723
10724fi
10725
10726 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10727
10728 # This implies no fast_install, which is unacceptable.
10729 # Some rework will be needed to allow for fast_install
10730 # before this can be enabled.
10731 hardcode_into_libs=yes
10732
10733 # Append ld.so.conf contents to the search path
10734 if test -f /etc/ld.so.conf; then
43e02a8a 10735 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
10736 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10737 fi
675cdab3 10738
1cf3d07d
SE
10739 # We used to test for /lib/ld.so.1 and disable shared libraries on
10740 # powerpc, because MkLinux only supported shared libraries with the
10741 # GNU dynamic linker. Since this was broken with cross compilers,
10742 # most powerpc-linux boxes support dynamic linking these days and
10743 # people can always --disable-shared, the test was removed, and we
10744 # assume the GNU/Linux dynamic linker is in use.
10745 dynamic_linker='GNU/Linux ld.so'
10746 ;;
10747
10748netbsd*)
10749 version_type=sunos
10750 need_lib_prefix=no
10751 need_version=no
10752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10755 dynamic_linker='NetBSD (a.out) ld.so'
10756 else
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 10760 fi
1cf3d07d
SE
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes
10763 hardcode_into_libs=yes
3ed8e5b6 10764 ;;
675cdab3 10765
1cf3d07d
SE
10766newsos6)
10767 version_type=linux
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=yes
10771 ;;
675cdab3 10772
1cf3d07d
SE
10773*nto* | *qnx*)
10774 version_type=qnx
10775 need_lib_prefix=no
10776 need_version=no
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=no
10781 hardcode_into_libs=yes
10782 dynamic_linker='ldqnx.so'
10783 ;;
675cdab3 10784
1cf3d07d
SE
10785openbsd*)
10786 version_type=sunos
10787 sys_lib_dlsearch_path_spec="/usr/lib"
10788 need_lib_prefix=no
10789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10790 case $host_os in
10791 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10792 *) need_version=no ;;
10793 esac
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10798 case $host_os in
10799 openbsd2.[89] | openbsd2.[89].*)
10800 shlibpath_overrides_runpath=no
10801 ;;
10802 *)
10803 shlibpath_overrides_runpath=yes
10804 ;;
10805 esac
10806 else
10807 shlibpath_overrides_runpath=yes
10808 fi
10809 ;;
675cdab3 10810
1cf3d07d
SE
10811os2*)
10812 libname_spec='$name'
10813 shrext_cmds=".dll"
10814 need_lib_prefix=no
10815 library_names_spec='$libname${shared_ext} $libname.a'
10816 dynamic_linker='OS/2 ld.exe'
10817 shlibpath_var=LIBPATH
10818 ;;
675cdab3 10819
1cf3d07d
SE
10820osf3* | osf4* | osf5*)
10821 version_type=osf
10822 need_lib_prefix=no
10823 need_version=no
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10829 ;;
675cdab3 10830
1cf3d07d
SE
10831rdos*)
10832 dynamic_linker=no
10833 ;;
10834
10835solaris*)
10836 version_type=linux
10837 need_lib_prefix=no
10838 need_version=no
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 hardcode_into_libs=yes
10844 # ldd complains unless libraries are executable
10845 postinstall_cmds='chmod +x $lib'
10846 ;;
10847
10848sunos4*)
10849 version_type=sunos
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes
10854 if test "$with_gnu_ld" = yes; then
10855 need_lib_prefix=no
10856 fi
10857 need_version=yes
10858 ;;
10859
10860sysv4 | sysv4.3*)
10861 version_type=linux
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 case $host_vendor in
10866 sni)
10867 shlibpath_overrides_runpath=no
10868 need_lib_prefix=no
10869 runpath_var=LD_RUN_PATH
3ed8e5b6 10870 ;;
1cf3d07d
SE
10871 siemens)
10872 need_lib_prefix=no
3ed8e5b6 10873 ;;
1cf3d07d
SE
10874 motorola)
10875 need_lib_prefix=no
10876 need_version=no
10877 shlibpath_overrides_runpath=no
10878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10879 ;;
10880 esac
10881 ;;
10882
10883sysv4*MP*)
10884 if test -d /usr/nec ;then
10885 version_type=linux
10886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10887 soname_spec='$libname${shared_ext}.$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 fi
10890 ;;
10891
10892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10893 version_type=freebsd-elf
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10901 if test "$with_gnu_ld" = yes; then
10902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 10903 else
1cf3d07d
SE
10904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10905 case $host_os in
10906 sco3.2v5*)
10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10908 ;;
10909 esac
675cdab3 10910 fi
1cf3d07d
SE
10911 sys_lib_dlsearch_path_spec='/usr/lib'
10912 ;;
10913
10914tpf*)
10915 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
80c6c2cb 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=no
10922 hardcode_into_libs=yes
10923 ;;
10924
10925uts4*)
10926 version_type=linux
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 ;;
10931
10932*)
10933 dynamic_linker=no
10934 ;;
10935esac
5213506e
RW
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10937$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10938test "$dynamic_linker" = no && can_build_shared=no
10939
10940variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10941if test "$GCC" = yes; then
10942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
10943fi
10944
80c6c2cb
PG
10945if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10946 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10947fi
10948if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10949 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10950fi
10951
675cdab3 10952
1cf3d07d
SE
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
43e02a8a
RW
11032
11033
11034
11035
11036
1cf3d07d
SE
11037
11038
11039
11040
11041
11042
5213506e
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11044$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11045hardcode_action=
11046if test -n "$hardcode_libdir_flag_spec" ||
11047 test -n "$runpath_var" ||
11048 test "X$hardcode_automatic" = "Xyes" ; then
11049
11050 # We can hardcode non-existent directories.
11051 if test "$hardcode_direct" != no &&
11052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11053 # have to relink, otherwise we might link with an installed library
11054 # when we should be linking with a yet-to-be-installed one
11055 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11056 test "$hardcode_minus_L" != no; then
11057 # Linking always hardcodes the temporary library directory.
11058 hardcode_action=relink
11059 else
11060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11061 hardcode_action=immediate
63e5e3e0 11062 fi
3ed8e5b6 11063else
1cf3d07d
SE
11064 # We cannot hardcode anything, or else we can only hardcode existing
11065 # directories.
11066 hardcode_action=unsupported
675cdab3 11067fi
5213506e
RW
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11069$as_echo "$hardcode_action" >&6; }
63e5e3e0 11070
1cf3d07d
SE
11071if test "$hardcode_action" = relink ||
11072 test "$inherit_rpath" = yes; then
11073 # Fast installation is not supported
11074 enable_fast_install=no
11075elif test "$shlibpath_overrides_runpath" = yes ||
11076 test "$enable_shared" = no; then
11077 # Fast installation is not necessary
11078 enable_fast_install=needless
11079fi
675cdab3 11080
63e5e3e0 11081
63e5e3e0 11082
2f7bf5b7 11083
63e5e3e0 11084
63e5e3e0 11085
1cf3d07d
SE
11086 if test "x$enable_dlopen" != xyes; then
11087 enable_dlopen=unknown
11088 enable_dlopen_self=unknown
11089 enable_dlopen_self_static=unknown
11090else
11091 lt_cv_dlopen=no
11092 lt_cv_dlopen_libs=
63e5e3e0 11093
1cf3d07d
SE
11094 case $host_os in
11095 beos*)
11096 lt_cv_dlopen="load_add_on"
11097 lt_cv_dlopen_libs=
11098 lt_cv_dlopen_self=yes
11099 ;;
63e5e3e0 11100
80c6c2cb 11101 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11102 lt_cv_dlopen="LoadLibrary"
11103 lt_cv_dlopen_libs=
11104 ;;
63e5e3e0 11105
1cf3d07d
SE
11106 cygwin*)
11107 lt_cv_dlopen="dlopen"
11108 lt_cv_dlopen_libs=
11109 ;;
63e5e3e0 11110
1cf3d07d
SE
11111 darwin*)
11112 # if libdl is installed we need to link against it
5213506e
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11114$as_echo_n "checking for dlopen in -ldl... " >&6; }
11115if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
675cdab3 11117else
1cf3d07d
SE
11118 ac_check_lib_save_LIBS=$LIBS
11119LIBS="-ldl $LIBS"
5213506e 11120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 11121/* end confdefs.h. */
3ed8e5b6 11122
5213506e
RW
11123/* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11126#ifdef __cplusplus
11127extern "C"
11128#endif
1cf3d07d
SE
11129char dlopen ();
11130int
11131main ()
11132{
5213506e 11133return dlopen ();
1cf3d07d
SE
11134 ;
11135 return 0;
11136}
11137_ACEOF
5213506e 11138if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 11139 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 11140else
5213506e 11141 ac_cv_lib_dl_dlopen=no
675cdab3 11142fi
5213506e
RW
11143rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11145LIBS=$ac_check_lib_save_LIBS
11146fi
5213506e
RW
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11148$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11149if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11151else
63e5e3e0 11152
1cf3d07d
SE
11153 lt_cv_dlopen="dyld"
11154 lt_cv_dlopen_libs=
11155 lt_cv_dlopen_self=yes
bbf3057b 11156
1cf3d07d 11157fi
2f7bf5b7 11158
1cf3d07d 11159 ;;
2f7bf5b7 11160
1cf3d07d 11161 *)
5213506e
RW
11162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11163if test "x$ac_cv_func_shl_load" = x""yes; then :
11164 lt_cv_dlopen="shl_load"
3ed8e5b6 11165else
5213506e
RW
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11167$as_echo_n "checking for shl_load in -ldld... " >&6; }
11168if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170else
11171 ac_check_lib_save_LIBS=$LIBS
11172LIBS="-ldld $LIBS"
11173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11174/* end confdefs.h. */
1cf3d07d 11175
5213506e
RW
11176/* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
1cf3d07d 11178 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11179#ifdef __cplusplus
11180extern "C"
11181#endif
1cf3d07d
SE
11182char shl_load ();
11183int
11184main ()
11185{
5213506e 11186return shl_load ();
1cf3d07d
SE
11187 ;
11188 return 0;
11189}
c9b93377 11190_ACEOF
5213506e 11191if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 11192 ac_cv_lib_dld_shl_load=yes
c9b93377 11193else
5213506e 11194 ac_cv_lib_dld_shl_load=no
3eee102e 11195fi
5213506e
RW
11196rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11198LIBS=$ac_check_lib_save_LIBS
bbf3057b 11199fi
5213506e
RW
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11201$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11202if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
80c6c2cb 11203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11204else
5213506e
RW
11205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11206if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
11207 lt_cv_dlopen="dlopen"
11208else
5213506e
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11210$as_echo_n "checking for dlopen in -ldl... " >&6; }
11211if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11213else
11214 ac_check_lib_save_LIBS=$LIBS
11215LIBS="-ldl $LIBS"
5213506e 11216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11217/* end confdefs.h. */
1cf3d07d 11218
5213506e
RW
11219/* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11222#ifdef __cplusplus
11223extern "C"
11224#endif
1cf3d07d
SE
11225char dlopen ();
11226int
11227main ()
11228{
5213506e 11229return dlopen ();
1cf3d07d
SE
11230 ;
11231 return 0;
11232}
3ed8e5b6 11233_ACEOF
5213506e 11234if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 11235 ac_cv_lib_dl_dlopen=yes
c9b93377 11236else
5213506e 11237 ac_cv_lib_dl_dlopen=no
c9b93377 11238fi
5213506e
RW
11239rm -f core conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11241LIBS=$ac_check_lib_save_LIBS
c9b93377 11242fi
5213506e
RW
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11244$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11245if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 11246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 11247else
5213506e
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11249$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11250if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
c9b93377 11252else
1cf3d07d
SE
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-lsvld $LIBS"
5213506e 11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 11256/* end confdefs.h. */
c9b93377 11257
5213506e
RW
11258/* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11261#ifdef __cplusplus
11262extern "C"
11263#endif
1cf3d07d 11264char dlopen ();
c9b93377
JB
11265int
11266main ()
11267{
5213506e 11268return dlopen ();
c9b93377
JB
11269 ;
11270 return 0;
11271}
11272_ACEOF
5213506e 11273if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 11274 ac_cv_lib_svld_dlopen=yes
c9b93377 11275else
5213506e 11276 ac_cv_lib_svld_dlopen=no
c9b93377 11277fi
5213506e
RW
11278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11280LIBS=$ac_check_lib_save_LIBS
c9b93377 11281fi
5213506e
RW
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11283$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11284if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d 11285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 11286else
5213506e
RW
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11288$as_echo_n "checking for dld_link in -ldld... " >&6; }
11289if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
c9b93377 11291else
1cf3d07d
SE
11292 ac_check_lib_save_LIBS=$LIBS
11293LIBS="-ldld $LIBS"
5213506e 11294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 11295/* end confdefs.h. */
c9b93377 11296
5213506e
RW
11297/* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11300#ifdef __cplusplus
11301extern "C"
11302#endif
1cf3d07d 11303char dld_link ();
c9b93377
JB
11304int
11305main ()
11306{
5213506e 11307return dld_link ();
1cf3d07d
SE
11308 ;
11309 return 0;
c9b93377
JB
11310}
11311_ACEOF
5213506e 11312if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 11313 ac_cv_lib_dld_dld_link=yes
c9b93377 11314else
5213506e 11315 ac_cv_lib_dld_dld_link=no
c9b93377 11316fi
5213506e
RW
11317rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11319LIBS=$ac_check_lib_save_LIBS
c9b93377 11320fi
5213506e
RW
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11322$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11323if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
80c6c2cb 11324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 11325fi
1cf3d07d
SE
11326
11327
c9b93377 11328fi
c9b93377 11329
c9b93377
JB
11330
11331fi
11332
c9b93377 11333
1cf3d07d 11334fi
c9b93377
JB
11335
11336
1cf3d07d 11337fi
c9b93377
JB
11338
11339
1cf3d07d 11340fi
c9b93377 11341
1cf3d07d
SE
11342 ;;
11343 esac
c9b93377 11344
1cf3d07d
SE
11345 if test "x$lt_cv_dlopen" != xno; then
11346 enable_dlopen=yes
11347 else
11348 enable_dlopen=no
11349 fi
c9b93377 11350
1cf3d07d
SE
11351 case $lt_cv_dlopen in
11352 dlopen)
11353 save_CPPFLAGS="$CPPFLAGS"
11354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 11355
1cf3d07d
SE
11356 save_LDFLAGS="$LDFLAGS"
11357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11358
11359 save_LIBS="$LIBS"
11360 LIBS="$lt_cv_dlopen_libs $LIBS"
11361
5213506e
RW
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11363$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11364if test "${lt_cv_dlopen_self+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
c9b93377 11366else
1cf3d07d
SE
11367 if test "$cross_compiling" = yes; then :
11368 lt_cv_dlopen_self=cross
11369else
11370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11371 lt_status=$lt_dlunknown
11372 cat > conftest.$ac_ext <<_LT_EOF
b1760f7f 11373#line 11373 "configure"
1cf3d07d 11374#include "confdefs.h"
c9b93377 11375
1cf3d07d
SE
11376#if HAVE_DLFCN_H
11377#include <dlfcn.h>
11378#endif
11379
11380#include <stdio.h>
11381
11382#ifdef RTLD_GLOBAL
11383# define LT_DLGLOBAL RTLD_GLOBAL
11384#else
11385# ifdef DL_GLOBAL
11386# define LT_DLGLOBAL DL_GLOBAL
11387# else
11388# define LT_DLGLOBAL 0
11389# endif
11390#endif
11391
11392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11393 find out it does not work in some platform. */
11394#ifndef LT_DLLAZY_OR_NOW
11395# ifdef RTLD_LAZY
11396# define LT_DLLAZY_OR_NOW RTLD_LAZY
11397# else
11398# ifdef DL_LAZY
11399# define LT_DLLAZY_OR_NOW DL_LAZY
11400# else
11401# ifdef RTLD_NOW
11402# define LT_DLLAZY_OR_NOW RTLD_NOW
11403# else
11404# ifdef DL_NOW
11405# define LT_DLLAZY_OR_NOW DL_NOW
11406# else
11407# define LT_DLLAZY_OR_NOW 0
11408# endif
11409# endif
11410# endif
11411# endif
11412#endif
11413
43e02a8a
RW
11414/* When -fvisbility=hidden is used, assume the code has been annotated
11415 correspondingly for the symbols needed. */
11416#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11417void fnord () __attribute__((visibility("default")));
11418#endif
11419
11420void fnord () { int i=42; }
1cf3d07d
SE
11421int main ()
11422{
11423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11424 int status = $lt_dlunknown;
11425
11426 if (self)
11427 {
11428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11429 else
11430 {
11431 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11432 else puts (dlerror ());
11433 }
1cf3d07d
SE
11434 /* dlclose (self); */
11435 }
11436 else
11437 puts (dlerror ());
11438
80c6c2cb 11439 return status;
1cf3d07d
SE
11440}
11441_LT_EOF
5213506e 11442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 11443 (eval $ac_link) 2>&5
c9b93377 11444 ac_status=$?
5213506e
RW
11445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11446 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11447 (./conftest; exit; ) >&5 2>/dev/null
11448 lt_status=$?
11449 case x$lt_status in
11450 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11451 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11452 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11453 esac
11454 else :
11455 # compilation failed
11456 lt_cv_dlopen_self=no
11457 fi
11458fi
11459rm -fr conftest*
11460
11461
11462fi
5213506e
RW
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11464$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11465
11466 if test "x$lt_cv_dlopen_self" = xyes; then
11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11469$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11470if test "${lt_cv_dlopen_self_static+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11472else
11473 if test "$cross_compiling" = yes; then :
11474 lt_cv_dlopen_self_static=cross
11475else
11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477 lt_status=$lt_dlunknown
11478 cat > conftest.$ac_ext <<_LT_EOF
b1760f7f 11479#line 11479 "configure"
1cf3d07d
SE
11480#include "confdefs.h"
11481
11482#if HAVE_DLFCN_H
11483#include <dlfcn.h>
11484#endif
11485
11486#include <stdio.h>
11487
11488#ifdef RTLD_GLOBAL
11489# define LT_DLGLOBAL RTLD_GLOBAL
11490#else
11491# ifdef DL_GLOBAL
11492# define LT_DLGLOBAL DL_GLOBAL
11493# else
11494# define LT_DLGLOBAL 0
11495# endif
11496#endif
11497
11498/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499 find out it does not work in some platform. */
11500#ifndef LT_DLLAZY_OR_NOW
11501# ifdef RTLD_LAZY
11502# define LT_DLLAZY_OR_NOW RTLD_LAZY
11503# else
11504# ifdef DL_LAZY
11505# define LT_DLLAZY_OR_NOW DL_LAZY
11506# else
11507# ifdef RTLD_NOW
11508# define LT_DLLAZY_OR_NOW RTLD_NOW
11509# else
11510# ifdef DL_NOW
11511# define LT_DLLAZY_OR_NOW DL_NOW
11512# else
11513# define LT_DLLAZY_OR_NOW 0
11514# endif
11515# endif
11516# endif
11517# endif
11518#endif
11519
43e02a8a
RW
11520/* When -fvisbility=hidden is used, assume the code has been annotated
11521 correspondingly for the symbols needed. */
11522#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523void fnord () __attribute__((visibility("default")));
11524#endif
11525
11526void fnord () { int i=42; }
1cf3d07d
SE
11527int main ()
11528{
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11531
11532 if (self)
11533 {
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11535 else
11536 {
11537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11538 else puts (dlerror ());
11539 }
1cf3d07d
SE
11540 /* dlclose (self); */
11541 }
11542 else
11543 puts (dlerror ());
11544
80c6c2cb 11545 return status;
1cf3d07d
SE
11546}
11547_LT_EOF
5213506e 11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 11549 (eval $ac_link) 2>&5
c9b93377 11550 ac_status=$?
5213506e
RW
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11553 (./conftest; exit; ) >&5 2>/dev/null
11554 lt_status=$?
11555 case x$lt_status in
11556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11559 esac
11560 else :
11561 # compilation failed
11562 lt_cv_dlopen_self_static=no
11563 fi
11564fi
11565rm -fr conftest*
11566
11567
11568fi
5213506e
RW
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11570$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11571 fi
11572
11573 CPPFLAGS="$save_CPPFLAGS"
11574 LDFLAGS="$save_LDFLAGS"
11575 LIBS="$save_LIBS"
11576 ;;
11577 esac
11578
11579 case $lt_cv_dlopen_self in
11580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11581 *) enable_dlopen_self=unknown ;;
11582 esac
11583
11584 case $lt_cv_dlopen_self_static in
11585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11586 *) enable_dlopen_self_static=unknown ;;
11587 esac
11588fi
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606striplib=
11607old_striplib=
5213506e
RW
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11609$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11610if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614$as_echo "yes" >&6; }
1cf3d07d
SE
11615else
11616# FIXME - insert some real tests, host_os isn't really good enough
11617 case $host_os in
11618 darwin*)
11619 if test -n "$STRIP" ; then
11620 striplib="$STRIP -x"
11621 old_striplib="$STRIP -S"
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623$as_echo "yes" >&6; }
1cf3d07d 11624 else
5213506e
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
1cf3d07d
SE
11627 fi
11628 ;;
11629 *)
5213506e
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
1cf3d07d
SE
11632 ;;
11633 esac
11634fi
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647 # Report which library types will actually be built
5213506e
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11649$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11651$as_echo "$can_build_shared" >&6; }
1cf3d07d 11652
5213506e
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11654$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11655 test "$can_build_shared" = "no" && enable_shared=no
11656
11657 # On AIX, shared libraries and static libraries use the same namespace, and
11658 # are all built from PIC.
11659 case $host_os in
11660 aix3*)
11661 test "$enable_shared" = yes && enable_static=no
11662 if test -n "$RANLIB"; then
11663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11664 postinstall_cmds='$RANLIB $lib'
11665 fi
11666 ;;
11667
95d4f544 11668 aix[4-9]*)
1cf3d07d
SE
11669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11670 test "$enable_shared" = yes && enable_static=no
11671 fi
11672 ;;
11673 esac
5213506e
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11675$as_echo "$enable_shared" >&6; }
1cf3d07d 11676
5213506e
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11678$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11679 # Make sure either enable_shared or enable_static is yes.
11680 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11682$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11683
11684
11685
11686
11687fi
11688ac_ext=c
11689ac_cpp='$CPP $CPPFLAGS'
11690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692ac_compiler_gnu=$ac_cv_c_compiler_gnu
11693
11694CC="$lt_save_CC"
11695
b1760f7f
RH
11696 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11698 (test "X$CXX" != "Xg++"))) ; then
11699 ac_ext=cpp
11700ac_cpp='$CXXCPP $CPPFLAGS'
11701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11705$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11706if test -z "$CXXCPP"; then
11707 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709else
11710 # Double quotes because CXXCPP needs to be expanded
11711 for CXXCPP in "$CXX -E" "/lib/cpp"
11712 do
11713 ac_preproc_ok=false
11714for ac_cxx_preproc_warn_flag in '' yes
11715do
11716 # Use a header file that comes with gcc, so configuring glibc
11717 # with a fresh cross-compiler works.
11718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719 # <limits.h> exists even on freestanding compilers.
11720 # On the NeXT, cc -E runs the code through the compiler's parser,
11721 # not just through cpp. "Syntax error" is here to catch this case.
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h. */
11724#ifdef __STDC__
11725# include <limits.h>
11726#else
11727# include <assert.h>
11728#endif
11729 Syntax error
11730_ACEOF
11731if ac_fn_cxx_try_cpp "$LINENO"; then :
11732
11733else
11734 # Broken: fails on valid input.
11735continue
11736fi
11737rm -f conftest.err conftest.$ac_ext
11738
11739 # OK, works on sane cases. Now check whether nonexistent headers
11740 # can be detected and how.
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742/* end confdefs.h. */
11743#include <ac_nonexistent.h>
11744_ACEOF
11745if ac_fn_cxx_try_cpp "$LINENO"; then :
11746 # Broken: success on invalid input.
11747continue
11748else
11749 # Passes both tests.
11750ac_preproc_ok=:
11751break
11752fi
11753rm -f conftest.err conftest.$ac_ext
11754
11755done
11756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11757rm -f conftest.err conftest.$ac_ext
11758if $ac_preproc_ok; then :
11759 break
11760fi
11761
11762 done
11763 ac_cv_prog_CXXCPP=$CXXCPP
11764
11765fi
11766 CXXCPP=$ac_cv_prog_CXXCPP
11767else
11768 ac_cv_prog_CXXCPP=$CXXCPP
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11771$as_echo "$CXXCPP" >&6; }
11772ac_preproc_ok=false
11773for ac_cxx_preproc_warn_flag in '' yes
11774do
11775 # Use a header file that comes with gcc, so configuring glibc
11776 # with a fresh cross-compiler works.
11777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11778 # <limits.h> exists even on freestanding compilers.
11779 # On the NeXT, cc -E runs the code through the compiler's parser,
11780 # not just through cpp. "Syntax error" is here to catch this case.
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h. */
11783#ifdef __STDC__
11784# include <limits.h>
11785#else
11786# include <assert.h>
11787#endif
11788 Syntax error
11789_ACEOF
11790if ac_fn_cxx_try_cpp "$LINENO"; then :
11791
11792else
11793 # Broken: fails on valid input.
11794continue
11795fi
11796rm -f conftest.err conftest.$ac_ext
11797
11798 # OK, works on sane cases. Now check whether nonexistent headers
11799 # can be detected and how.
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801/* end confdefs.h. */
11802#include <ac_nonexistent.h>
11803_ACEOF
11804if ac_fn_cxx_try_cpp "$LINENO"; then :
11805 # Broken: success on invalid input.
11806continue
11807else
11808 # Passes both tests.
11809ac_preproc_ok=:
11810break
11811fi
11812rm -f conftest.err conftest.$ac_ext
11813
11814done
11815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11816rm -f conftest.err conftest.$ac_ext
11817if $ac_preproc_ok; then :
11818
11819else
11820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11822as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11823See \`config.log' for more details." "$LINENO" 5; }
11824fi
11825
11826ac_ext=c
11827ac_cpp='$CPP $CPPFLAGS'
11828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830ac_compiler_gnu=$ac_cv_c_compiler_gnu
11831
11832else
11833 _lt_caught_CXX_error=yes
11834fi
11835
11836ac_ext=cpp
11837ac_cpp='$CXXCPP $CPPFLAGS'
11838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11841
11842archive_cmds_need_lc_CXX=no
11843allow_undefined_flag_CXX=
11844always_export_symbols_CXX=no
11845archive_expsym_cmds_CXX=
11846compiler_needs_object_CXX=no
11847export_dynamic_flag_spec_CXX=
11848hardcode_direct_CXX=no
11849hardcode_direct_absolute_CXX=no
11850hardcode_libdir_flag_spec_CXX=
11851hardcode_libdir_flag_spec_ld_CXX=
11852hardcode_libdir_separator_CXX=
11853hardcode_minus_L_CXX=no
11854hardcode_shlibpath_var_CXX=unsupported
11855hardcode_automatic_CXX=no
11856inherit_rpath_CXX=no
11857module_cmds_CXX=
11858module_expsym_cmds_CXX=
11859link_all_deplibs_CXX=unknown
11860old_archive_cmds_CXX=$old_archive_cmds
11861reload_flag_CXX=$reload_flag
11862reload_cmds_CXX=$reload_cmds
11863no_undefined_flag_CXX=
11864whole_archive_flag_spec_CXX=
11865enable_shared_with_static_runtimes_CXX=no
11866
11867# Source file extension for C++ test sources.
11868ac_ext=cpp
11869
11870# Object file extension for compiled C++ test sources.
11871objext=o
11872objext_CXX=$objext
11873
11874# No sense in running all these tests if we already determined that
11875# the CXX compiler isn't working. Some variables (like enable_shared)
11876# are currently assumed to apply to all compilers on this platform,
11877# and will be corrupted by setting them based on a non-working compiler.
11878if test "$_lt_caught_CXX_error" != yes; then
11879 # Code to be used in simple compile tests
11880 lt_simple_compile_test_code="int some_variable = 0;"
11881
11882 # Code to be used in simple link tests
11883 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11884
11885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11886
11887
11888
11889
11890
11891
11892# If no C compiler was specified, use CC.
11893LTCC=${LTCC-"$CC"}
11894
11895# If no C compiler flags were specified, use CFLAGS.
11896LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11897
11898# Allow CC to be a program name with arguments.
11899compiler=$CC
11900
11901
11902 # save warnings/boilerplate of simple test code
11903 ac_outfile=conftest.$ac_objext
11904echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11905eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11906_lt_compiler_boilerplate=`cat conftest.err`
11907$RM conftest*
11908
11909 ac_outfile=conftest.$ac_objext
11910echo "$lt_simple_link_test_code" >conftest.$ac_ext
11911eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11912_lt_linker_boilerplate=`cat conftest.err`
11913$RM -r conftest*
11914
11915
11916 # Allow CC to be a program name with arguments.
11917 lt_save_CC=$CC
11918 lt_save_LD=$LD
11919 lt_save_GCC=$GCC
11920 GCC=$GXX
11921 lt_save_with_gnu_ld=$with_gnu_ld
11922 lt_save_path_LD=$lt_cv_path_LD
11923 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11924 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11925 else
11926 $as_unset lt_cv_prog_gnu_ld
11927 fi
11928 if test -n "${lt_cv_path_LDCXX+set}"; then
11929 lt_cv_path_LD=$lt_cv_path_LDCXX
11930 else
11931 $as_unset lt_cv_path_LD
11932 fi
11933 test -z "${LDCXX+set}" || LD=$LDCXX
11934 CC=${CXX-"c++"}
11935 compiler=$CC
11936 compiler_CXX=$CC
11937 for cc_temp in $compiler""; do
11938 case $cc_temp in
11939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11941 \-*) ;;
11942 *) break;;
11943 esac
11944done
11945cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11946
11947
11948 if test -n "$compiler"; then
11949 # We don't want -fno-exception when compiling C++ code, so set the
11950 # no_builtin_flag separately
11951 if test "$GXX" = yes; then
11952 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11953 else
11954 lt_prog_compiler_no_builtin_flag_CXX=
11955 fi
11956
11957 if test "$GXX" = yes; then
11958 # Set up default GNU C++ configuration
11959
11960
11961
11962# Check whether --with-gnu-ld was given.
11963if test "${with_gnu_ld+set}" = set; then :
11964 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11965else
11966 with_gnu_ld=no
11967fi
11968
11969ac_prog=ld
11970if test "$GCC" = yes; then
11971 # Check if gcc -print-prog-name=ld gives a path.
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11973$as_echo_n "checking for ld used by $CC... " >&6; }
11974 case $host in
11975 *-*-mingw*)
11976 # gcc leaves a trailing carriage return which upsets mingw
11977 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11978 *)
11979 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11980 esac
11981 case $ac_prog in
11982 # Accept absolute paths.
11983 [\\/]* | ?:[\\/]*)
11984 re_direlt='/[^/][^/]*/\.\./'
11985 # Canonicalize the pathname of ld
11986 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11987 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11988 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11989 done
11990 test -z "$LD" && LD="$ac_prog"
11991 ;;
11992 "")
11993 # If it fails, then pretend we aren't using GCC.
11994 ac_prog=ld
11995 ;;
11996 *)
11997 # If it is relative, then search for the first ld in PATH.
11998 with_gnu_ld=unknown
11999 ;;
12000 esac
12001elif test "$with_gnu_ld" = yes; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12003$as_echo_n "checking for GNU ld... " >&6; }
12004else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12006$as_echo_n "checking for non-GNU ld... " >&6; }
12007fi
12008if test "${lt_cv_path_LD+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
12010else
12011 if test -z "$LD"; then
12012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12013 for ac_dir in $PATH; do
12014 IFS="$lt_save_ifs"
12015 test -z "$ac_dir" && ac_dir=.
12016 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12017 lt_cv_path_LD="$ac_dir/$ac_prog"
12018 # Check to see if the program is GNU ld. I'd rather use --version,
12019 # but apparently some variants of GNU ld only accept -v.
12020 # Break only if it was the GNU/non-GNU ld that we prefer.
12021 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12022 *GNU* | *'with BFD'*)
12023 test "$with_gnu_ld" != no && break
12024 ;;
12025 *)
12026 test "$with_gnu_ld" != yes && break
12027 ;;
12028 esac
12029 fi
12030 done
12031 IFS="$lt_save_ifs"
12032else
12033 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12034fi
12035fi
12036
12037LD="$lt_cv_path_LD"
12038if test -n "$LD"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12040$as_echo "$LD" >&6; }
12041else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
12044fi
12045test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12047$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12048if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050else
12051 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12052case `$LD -v 2>&1 </dev/null` in
12053*GNU* | *'with BFD'*)
12054 lt_cv_prog_gnu_ld=yes
12055 ;;
12056*)
12057 lt_cv_prog_gnu_ld=no
12058 ;;
12059esac
12060fi
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12062$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12063with_gnu_ld=$lt_cv_prog_gnu_ld
12064
12065
12066
12067
12068
12069
12070
12071 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12072 # archiving commands below assume that GNU ld is being used.
12073 if test "$with_gnu_ld" = yes; then
12074 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12076
12077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12079
12080 # If archive_cmds runs LD, not CC, wlarc should be empty
12081 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12082 # investigate it a little bit more. (MM)
12083 wlarc='${wl}'
12084
12085 # ancient GNU ld didn't support --whole-archive et. al.
12086 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12087 $GREP 'no-whole-archive' > /dev/null; then
12088 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089 else
12090 whole_archive_flag_spec_CXX=
12091 fi
12092 else
12093 with_gnu_ld=no
12094 wlarc=
12095
12096 # A generic and very simple default shared library creation
12097 # command for GNU C++ for the case where it uses the native
12098 # linker, instead of GNU ld. If possible, this setting should
12099 # overridden to take advantage of the native linker features on
12100 # the platform it is being used on.
12101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12102 fi
12103
12104 # Commands to make compiler produce verbose output that lists
12105 # what "hidden" libraries, object files and flags are used when
12106 # linking a shared library.
12107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12108
12109 else
12110 GXX=no
12111 with_gnu_ld=no
12112 wlarc=
12113 fi
12114
12115 # PORTME: fill in a description of your system's C++ link characteristics
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118 ld_shlibs_CXX=yes
12119 case $host_os in
12120 aix3*)
12121 # FIXME: insert proper C++ library support
12122 ld_shlibs_CXX=no
12123 ;;
12124 aix[4-9]*)
12125 if test "$host_cpu" = ia64; then
12126 # On IA64, the linker does run time linking by default, so we don't
12127 # have to do anything special.
12128 aix_use_runtimelinking=no
12129 exp_sym_flag='-Bexport'
12130 no_entry_flag=""
12131 else
12132 aix_use_runtimelinking=no
12133
12134 # Test if we are trying to use run time linking or normal
12135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12136 # need to do runtime linking.
12137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12138 for ld_flag in $LDFLAGS; do
12139 case $ld_flag in
12140 *-brtl*)
12141 aix_use_runtimelinking=yes
12142 break
12143 ;;
12144 esac
12145 done
12146 ;;
12147 esac
12148
12149 exp_sym_flag='-bexport'
12150 no_entry_flag='-bnoentry'
12151 fi
12152
12153 # When large executables or shared objects are built, AIX ld can
12154 # have problems creating the table of contents. If linking a library
12155 # or program results in "error TOC overflow" add -mminimal-toc to
12156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12158
12159 archive_cmds_CXX=''
12160 hardcode_direct_CXX=yes
12161 hardcode_direct_absolute_CXX=yes
12162 hardcode_libdir_separator_CXX=':'
12163 link_all_deplibs_CXX=yes
12164 file_list_spec_CXX='${wl}-f,'
12165
12166 if test "$GXX" = yes; then
12167 case $host_os in aix4.[012]|aix4.[012].*)
12168 # We only want to do this on AIX 4.2 and lower, the check
12169 # below for broken collect2 doesn't work under 4.3+
12170 collect2name=`${CC} -print-prog-name=collect2`
12171 if test -f "$collect2name" &&
12172 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12173 then
12174 # We have reworked collect2
12175 :
12176 else
12177 # We have old collect2
12178 hardcode_direct_CXX=unsupported
12179 # It fails to find uninstalled libraries when the uninstalled
12180 # path is not listed in the libpath. Setting hardcode_minus_L
12181 # to unsupported forces relinking
12182 hardcode_minus_L_CXX=yes
12183 hardcode_libdir_flag_spec_CXX='-L$libdir'
12184 hardcode_libdir_separator_CXX=
12185 fi
12186 esac
12187 shared_flag='-shared'
12188 if test "$aix_use_runtimelinking" = yes; then
12189 shared_flag="$shared_flag "'${wl}-G'
12190 fi
12191 else
12192 # not using gcc
12193 if test "$host_cpu" = ia64; then
12194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12195 # chokes on -Wl,-G. The following line is correct:
12196 shared_flag='-G'
12197 else
12198 if test "$aix_use_runtimelinking" = yes; then
12199 shared_flag='${wl}-G'
12200 else
12201 shared_flag='${wl}-bM:SRE'
12202 fi
12203 fi
12204 fi
12205
12206 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12207 # It seems that -bexpall does not export symbols beginning with
12208 # underscore (_), so it is better to generate a list of symbols to
12209 # export.
12210 always_export_symbols_CXX=yes
12211 if test "$aix_use_runtimelinking" = yes; then
12212 # Warning - without using the other runtime loading flags (-brtl),
12213 # -berok will link without error, but may produce a broken library.
12214 allow_undefined_flag_CXX='-berok'
12215 # Determine the default libpath from the value encoded in an empty
12216 # executable.
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h. */
12219
12220int
12221main ()
12222{
12223
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228if ac_fn_cxx_try_link "$LINENO"; then :
12229
12230lt_aix_libpath_sed='
12231 /Import File Strings/,/^$/ {
12232 /^0/ {
12233 s/^0 *\(.*\)$/\1/
12234 p
12235 }
12236 }'
12237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12238# Check for a 64-bit object if we didn't find anything.
12239if test -z "$aix_libpath"; then
12240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12241fi
12242fi
12243rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12246
12247 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12248
12249 archive_expsym_cmds_CXX='$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"
12250 else
12251 if test "$host_cpu" = ia64; then
12252 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12253 allow_undefined_flag_CXX="-z nodefs"
12254 archive_expsym_cmds_CXX="\$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"
12255 else
12256 # Determine the default libpath from the value encoded in an
12257 # empty executable.
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h. */
12260
12261int
12262main ()
12263{
12264
12265 ;
12266 return 0;
12267}
12268_ACEOF
12269if ac_fn_cxx_try_link "$LINENO"; then :
12270
12271lt_aix_libpath_sed='
12272 /Import File Strings/,/^$/ {
12273 /^0/ {
12274 s/^0 *\(.*\)$/\1/
12275 p
12276 }
12277 }'
12278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12279# Check for a 64-bit object if we didn't find anything.
12280if test -z "$aix_libpath"; then
12281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12282fi
12283fi
12284rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12287
12288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12289 # Warning - without using the other run time loading flags,
12290 # -berok will link without error, but may produce a broken library.
12291 no_undefined_flag_CXX=' ${wl}-bernotok'
12292 allow_undefined_flag_CXX=' ${wl}-berok'
12293 if test "$with_gnu_ld" = yes; then
12294 # We only use this code for GNU lds that support --whole-archive.
12295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12296 else
12297 # Exported symbols can be pulled into shared objects from archives
12298 whole_archive_flag_spec_CXX='$convenience'
12299 fi
12300 archive_cmds_need_lc_CXX=yes
12301 # This is similar to how AIX traditionally builds its shared
12302 # libraries.
12303 archive_expsym_cmds_CXX="\$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'
12304 fi
12305 fi
12306 ;;
12307
12308 beos*)
12309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12310 allow_undefined_flag_CXX=unsupported
12311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12312 # support --undefined. This deserves some investigation. FIXME
12313 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314 else
12315 ld_shlibs_CXX=no
12316 fi
12317 ;;
12318
12319 chorus*)
12320 case $cc_basename in
12321 *)
12322 # FIXME: insert proper C++ library support
12323 ld_shlibs_CXX=no
12324 ;;
12325 esac
12326 ;;
12327
12328 cygwin* | mingw* | pw32* | cegcc*)
12329 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12330 # as there is no search path for DLLs.
12331 hardcode_libdir_flag_spec_CXX='-L$libdir'
12332 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12333 allow_undefined_flag_CXX=unsupported
12334 always_export_symbols_CXX=no
12335 enable_shared_with_static_runtimes_CXX=yes
12336
12337 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12338 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12339 # If the export-symbols file already is a .def file (1st line
12340 # is EXPORTS), use it as is; otherwise, prepend...
12341 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12342 cp $export_symbols $output_objdir/$soname.def;
12343 else
12344 echo EXPORTS > $output_objdir/$soname.def;
12345 cat $export_symbols >> $output_objdir/$soname.def;
12346 fi~
12347 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12348 else
12349 ld_shlibs_CXX=no
12350 fi
12351 ;;
12352 darwin* | rhapsody*)
12353
12354
12355 archive_cmds_need_lc_CXX=no
12356 hardcode_direct_CXX=no
12357 hardcode_automatic_CXX=yes
12358 hardcode_shlibpath_var_CXX=unsupported
12359 if test "$lt_cv_ld_force_load" = "yes"; then
12360 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12361 else
12362 whole_archive_flag_spec_CXX=''
12363 fi
12364 link_all_deplibs_CXX=yes
12365 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12366 case $cc_basename in
12367 ifort*) _lt_dar_can_shared=yes ;;
12368 *) _lt_dar_can_shared=$GCC ;;
12369 esac
12370 if test "$_lt_dar_can_shared" = "yes"; then
12371 output_verbose_link_cmd=func_echo_all
12372 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12373 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12374 archive_expsym_cmds_CXX="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}"
12375 module_expsym_cmds_CXX="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}"
12376 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12377 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12378 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12379 fi
12380
12381 else
12382 ld_shlibs_CXX=no
12383 fi
12384
12385 ;;
12386
12387 dgux*)
12388 case $cc_basename in
12389 ec++*)
12390 # FIXME: insert proper C++ library support
12391 ld_shlibs_CXX=no
12392 ;;
12393 ghcx*)
12394 # Green Hills C++ Compiler
12395 # FIXME: insert proper C++ library support
12396 ld_shlibs_CXX=no
12397 ;;
12398 *)
12399 # FIXME: insert proper C++ library support
12400 ld_shlibs_CXX=no
12401 ;;
12402 esac
12403 ;;
12404
12405 freebsd2.*)
12406 # C++ shared libraries reported to be fairly broken before
12407 # switch to ELF
12408 ld_shlibs_CXX=no
12409 ;;
12410
12411 freebsd-elf*)
12412 archive_cmds_need_lc_CXX=no
12413 ;;
12414
12415 freebsd* | dragonfly*)
12416 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12417 # conventions
12418 ld_shlibs_CXX=yes
12419 ;;
12420
12421 gnu*)
12422 ;;
12423
12424 haiku*)
12425 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12426 link_all_deplibs_CXX=yes
12427 ;;
12428
12429 hpux9*)
12430 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12431 hardcode_libdir_separator_CXX=:
12432 export_dynamic_flag_spec_CXX='${wl}-E'
12433 hardcode_direct_CXX=yes
12434 hardcode_minus_L_CXX=yes # Not in the search PATH,
12435 # but as the default
12436 # location of the library.
12437
12438 case $cc_basename in
12439 CC*)
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12442 ;;
12443 aCC*)
12444 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12445 # Commands to make compiler produce verbose output that lists
12446 # what "hidden" libraries, object files and flags are used when
12447 # linking a shared library.
12448 #
12449 # There doesn't appear to be a way to prevent this compiler from
12450 # explicitly linking system object files so we need to strip them
12451 # from the output so that they don't get included in the library
12452 # dependencies.
12453 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12454 ;;
12455 *)
12456 if test "$GXX" = yes; then
12457 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12458 else
12459 # FIXME: insert proper C++ library support
12460 ld_shlibs_CXX=no
12461 fi
12462 ;;
12463 esac
12464 ;;
12465
12466 hpux10*|hpux11*)
12467 if test $with_gnu_ld = no; then
12468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12469 hardcode_libdir_separator_CXX=:
12470
12471 case $host_cpu in
12472 hppa*64*|ia64*)
12473 ;;
12474 *)
12475 export_dynamic_flag_spec_CXX='${wl}-E'
12476 ;;
12477 esac
12478 fi
12479 case $host_cpu in
12480 hppa*64*|ia64*)
12481 hardcode_direct_CXX=no
12482 hardcode_shlibpath_var_CXX=no
12483 ;;
12484 *)
12485 hardcode_direct_CXX=yes
12486 hardcode_direct_absolute_CXX=yes
12487 hardcode_minus_L_CXX=yes # Not in the search PATH,
12488 # but as the default
12489 # location of the library.
12490 ;;
12491 esac
12492
12493 case $cc_basename in
12494 CC*)
12495 # FIXME: insert proper C++ library support
12496 ld_shlibs_CXX=no
12497 ;;
12498 aCC*)
12499 case $host_cpu in
12500 hppa*64*)
12501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12502 ;;
12503 ia64*)
12504 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12505 ;;
12506 *)
12507 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508 ;;
12509 esac
12510 # Commands to make compiler produce verbose output that lists
12511 # what "hidden" libraries, object files and flags are used when
12512 # linking a shared library.
12513 #
12514 # There doesn't appear to be a way to prevent this compiler from
12515 # explicitly linking system object files so we need to strip them
12516 # from the output so that they don't get included in the library
12517 # dependencies.
12518 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12519 ;;
12520 *)
12521 if test "$GXX" = yes; then
12522 if test $with_gnu_ld = no; then
12523 case $host_cpu in
12524 hppa*64*)
12525 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 ;;
12527 ia64*)
12528 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529 ;;
12530 *)
12531 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12532 ;;
12533 esac
12534 fi
12535 else
12536 # FIXME: insert proper C++ library support
12537 ld_shlibs_CXX=no
12538 fi
12539 ;;
12540 esac
12541 ;;
12542
12543 interix[3-9]*)
12544 hardcode_direct_CXX=no
12545 hardcode_shlibpath_var_CXX=no
12546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12547 export_dynamic_flag_spec_CXX='${wl}-E'
12548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12549 # Instead, shared libraries are loaded at an image base (0x10000000 by
12550 # default) and relocated if they conflict, which is a slow very memory
12551 # consuming and fragmenting process. To avoid this, we pick a random,
12552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12553 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12554 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12555 archive_expsym_cmds_CXX='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'
12556 ;;
12557 irix5* | irix6*)
12558 case $cc_basename in
12559 CC*)
12560 # SGI C++
12561 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12562
12563 # Archives containing C++ object files must be created using
12564 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12565 # necessary to make sure instantiated templates are included
12566 # in the archive.
12567 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12568 ;;
12569 *)
12570 if test "$GXX" = yes; then
12571 if test "$with_gnu_ld" = no; then
12572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12573 else
12574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12575 fi
12576 fi
12577 link_all_deplibs_CXX=yes
12578 ;;
12579 esac
12580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12581 hardcode_libdir_separator_CXX=:
12582 inherit_rpath_CXX=yes
12583 ;;
12584
12585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12586 case $cc_basename in
12587 KCC*)
12588 # Kuck and Associates, Inc. (KAI) C++ Compiler
12589
12590 # KCC will only create a shared library if the output file
12591 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12592 # to its proper name (with version) after linking.
12593 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12594 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12595 # Commands to make compiler produce verbose output that lists
12596 # what "hidden" libraries, object files and flags are used when
12597 # linking a shared library.
12598 #
12599 # There doesn't appear to be a way to prevent this compiler from
12600 # explicitly linking system object files so we need to strip them
12601 # from the output so that they don't get included in the library
12602 # dependencies.
12603 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12604
12605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12607
12608 # Archives containing C++ object files must be created using
12609 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12610 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12611 ;;
12612 icpc* | ecpc* )
12613 # Intel C++
12614 with_gnu_ld=yes
12615 # version 8.0 and above of icpc choke on multiply defined symbols
12616 # if we add $predep_objects and $postdep_objects, however 7.1 and
12617 # earlier do not add the objects themselves.
12618 case `$CC -V 2>&1` in
12619 *"Version 7."*)
12620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12621 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12622 ;;
12623 *) # Version 8.0 or newer
12624 tmp_idyn=
12625 case $host_cpu in
12626 ia64*) tmp_idyn=' -i_dynamic';;
12627 esac
12628 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12629 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12630 ;;
12631 esac
12632 archive_cmds_need_lc_CXX=no
12633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12635 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12636 ;;
12637 pgCC* | pgcpp*)
12638 # Portland Group C++ compiler
12639 case `$CC -V` in
12640 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12641 prelink_cmds_CXX='tpldir=Template.dir~
12642 rm -rf $tpldir~
12643 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12644 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12645 old_archive_cmds_CXX='tpldir=Template.dir~
12646 rm -rf $tpldir~
12647 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12648 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12649 $RANLIB $oldlib'
12650 archive_cmds_CXX='tpldir=Template.dir~
12651 rm -rf $tpldir~
12652 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12653 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12654 archive_expsym_cmds_CXX='tpldir=Template.dir~
12655 rm -rf $tpldir~
12656 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12657 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12658 ;;
12659 *) # Version 6 and above use weak symbols
12660 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12661 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12662 ;;
12663 esac
12664
12665 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12667 whole_archive_flag_spec_CXX='${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'
12668 ;;
12669 cxx*)
12670 # Compaq C++
12671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12673
12674 runpath_var=LD_RUN_PATH
12675 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12676 hardcode_libdir_separator_CXX=:
12677
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12681 #
12682 # There doesn't appear to be a way to prevent this compiler from
12683 # explicitly linking system object files so we need to strip them
12684 # from the output so that they don't get included in the library
12685 # dependencies.
12686 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12687 ;;
12688 xl* | mpixl* | bgxl*)
12689 # IBM XL 8.0 on PPC, with GNU ld
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12692 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 if test "x$supports_anon_versioning" = xyes; then
12694 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12696 echo "local: *; };" >> $output_objdir/$libname.ver~
12697 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12698 fi
12699 ;;
12700 *)
12701 case `$CC -V 2>&1 | sed 5q` in
12702 *Sun\ C*)
12703 # Sun C++ 5.9
12704 no_undefined_flag_CXX=' -zdefs'
12705 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12706 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12707 hardcode_libdir_flag_spec_CXX='-R$libdir'
12708 whole_archive_flag_spec_CXX='${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'
12709 compiler_needs_object_CXX=yes
12710
12711 # Not sure whether something based on
12712 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12713 # would be better.
12714 output_verbose_link_cmd='func_echo_all'
12715
12716 # Archives containing C++ object files must be created using
12717 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12718 # necessary to make sure instantiated templates are included
12719 # in the archive.
12720 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12721 ;;
12722 esac
12723 ;;
12724 esac
12725 ;;
12726
12727 lynxos*)
12728 # FIXME: insert proper C++ library support
12729 ld_shlibs_CXX=no
12730 ;;
12731
12732 m88k*)
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12735 ;;
12736
12737 mvs*)
12738 case $cc_basename in
12739 cxx*)
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12742 ;;
12743 *)
12744 # FIXME: insert proper C++ library support
12745 ld_shlibs_CXX=no
12746 ;;
12747 esac
12748 ;;
12749
12750 netbsd*)
12751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12752 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12753 wlarc=
12754 hardcode_libdir_flag_spec_CXX='-R$libdir'
12755 hardcode_direct_CXX=yes
12756 hardcode_shlibpath_var_CXX=no
12757 fi
12758 # Workaround some broken pre-1.5 toolchains
12759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12760 ;;
12761
12762 *nto* | *qnx*)
12763 ld_shlibs_CXX=yes
12764 ;;
12765
12766 openbsd2*)
12767 # C++ shared libraries are fairly broken
12768 ld_shlibs_CXX=no
12769 ;;
12770
12771 openbsd*)
12772 if test -f /usr/libexec/ld.so; then
12773 hardcode_direct_CXX=yes
12774 hardcode_shlibpath_var_CXX=no
12775 hardcode_direct_absolute_CXX=yes
12776 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12779 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12780 export_dynamic_flag_spec_CXX='${wl}-E'
12781 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12782 fi
12783 output_verbose_link_cmd=func_echo_all
12784 else
12785 ld_shlibs_CXX=no
12786 fi
12787 ;;
12788
12789 osf3* | osf4* | osf5*)
12790 case $cc_basename in
12791 KCC*)
12792 # Kuck and Associates, Inc. (KAI) C++ Compiler
12793
12794 # KCC will only create a shared library if the output file
12795 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12796 # to its proper name (with version) after linking.
12797 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12798
12799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12800 hardcode_libdir_separator_CXX=:
12801
12802 # Archives containing C++ object files must be created using
12803 # the KAI C++ compiler.
12804 case $host in
12805 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12806 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12807 esac
12808 ;;
12809 RCC*)
12810 # Rational C++ 2.4.1
12811 # FIXME: insert proper C++ library support
12812 ld_shlibs_CXX=no
12813 ;;
12814 cxx*)
12815 case $host in
12816 osf3*)
12817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12818 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12820 ;;
12821 *)
12822 allow_undefined_flag_CXX=' -expect_unresolved \*'
12823 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12824 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12825 echo "-hidden">> $lib.exp~
12826 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12827 $RM $lib.exp'
12828 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12829 ;;
12830 esac
12831
12832 hardcode_libdir_separator_CXX=:
12833
12834 # Commands to make compiler produce verbose output that lists
12835 # what "hidden" libraries, object files and flags are used when
12836 # linking a shared library.
12837 #
12838 # There doesn't appear to be a way to prevent this compiler from
12839 # explicitly linking system object files so we need to strip them
12840 # from the output so that they don't get included in the library
12841 # dependencies.
12842 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12843 ;;
12844 *)
12845 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12846 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12847 case $host in
12848 osf3*)
12849 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12850 ;;
12851 *)
12852 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12853 ;;
12854 esac
12855
12856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12857 hardcode_libdir_separator_CXX=:
12858
12859 # Commands to make compiler produce verbose output that lists
12860 # what "hidden" libraries, object files and flags are used when
12861 # linking a shared library.
12862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12863
12864 else
12865 # FIXME: insert proper C++ library support
12866 ld_shlibs_CXX=no
12867 fi
12868 ;;
12869 esac
12870 ;;
12871
12872 psos*)
12873 # FIXME: insert proper C++ library support
12874 ld_shlibs_CXX=no
12875 ;;
12876
12877 sunos4*)
12878 case $cc_basename in
12879 CC*)
12880 # Sun C++ 4.x
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 ;;
12884 lcc*)
12885 # Lucid
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12888 ;;
12889 *)
12890 # FIXME: insert proper C++ library support
12891 ld_shlibs_CXX=no
12892 ;;
12893 esac
12894 ;;
12895
12896 solaris*)
12897 case $cc_basename in
12898 CC*)
12899 # Sun C++ 4.2, 5.x and Centerline C++
12900 archive_cmds_need_lc_CXX=yes
12901 no_undefined_flag_CXX=' -zdefs'
12902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12904 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12905
12906 hardcode_libdir_flag_spec_CXX='-R$libdir'
12907 hardcode_shlibpath_var_CXX=no
12908 case $host_os in
12909 solaris2.[0-5] | solaris2.[0-5].*) ;;
12910 *)
12911 # The compiler driver will combine and reorder linker options,
12912 # but understands `-z linker_flag'.
12913 # Supported since Solaris 2.6 (maybe 2.5.1?)
12914 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12915 ;;
12916 esac
12917 link_all_deplibs_CXX=yes
12918
12919 output_verbose_link_cmd='func_echo_all'
12920
12921 # Archives containing C++ object files must be created using
12922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12923 # necessary to make sure instantiated templates are included
12924 # in the archive.
12925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12926 ;;
12927 gcx*)
12928 # Green Hills C++ Compiler
12929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12930
12931 # The C++ compiler must be used to create the archive.
12932 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12933 ;;
12934 *)
12935 # GNU C++ compiler with Solaris linker
12936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12937 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12938 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12939 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12940 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12941 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12942
12943 # Commands to make compiler produce verbose output that lists
12944 # what "hidden" libraries, object files and flags are used when
12945 # linking a shared library.
12946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12947 else
12948 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12949 # platform.
12950 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12951 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12952 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12953
12954 # Commands to make compiler produce verbose output that lists
12955 # what "hidden" libraries, object files and flags are used when
12956 # linking a shared library.
12957 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12958 fi
12959
12960 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12961 case $host_os in
12962 solaris2.[0-5] | solaris2.[0-5].*) ;;
12963 *)
12964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12965 ;;
12966 esac
12967 fi
12968 ;;
12969 esac
12970 ;;
12971
12972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12973 no_undefined_flag_CXX='${wl}-z,text'
12974 archive_cmds_need_lc_CXX=no
12975 hardcode_shlibpath_var_CXX=no
12976 runpath_var='LD_RUN_PATH'
12977
12978 case $cc_basename in
12979 CC*)
12980 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12981 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12982 ;;
12983 *)
12984 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12985 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 ;;
12987 esac
12988 ;;
12989
12990 sysv5* | sco3.2v5* | sco5v6*)
12991 # Note: We can NOT use -z defs as we might desire, because we do not
12992 # link with -lc, and that would cause any symbols used from libc to
12993 # always be unresolved, which means just about no library would
12994 # ever link correctly. If we're not using GNU ld we use -z text
12995 # though, which does catch some bad symbols but isn't as heavy-handed
12996 # as -z defs.
12997 no_undefined_flag_CXX='${wl}-z,text'
12998 allow_undefined_flag_CXX='${wl}-z,nodefs'
12999 archive_cmds_need_lc_CXX=no
13000 hardcode_shlibpath_var_CXX=no
13001 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13002 hardcode_libdir_separator_CXX=':'
13003 link_all_deplibs_CXX=yes
13004 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13005 runpath_var='LD_RUN_PATH'
13006
13007 case $cc_basename in
13008 CC*)
13009 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13011 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13012 '"$old_archive_cmds_CXX"
13013 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13014 '"$reload_cmds_CXX"
13015 ;;
13016 *)
13017 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13019 ;;
13020 esac
13021 ;;
13022
13023 tandem*)
13024 case $cc_basename in
13025 NCC*)
13026 # NonStop-UX NCC 3.20
13027 # FIXME: insert proper C++ library support
13028 ld_shlibs_CXX=no
13029 ;;
13030 *)
13031 # FIXME: insert proper C++ library support
13032 ld_shlibs_CXX=no
13033 ;;
13034 esac
13035 ;;
13036
13037 vxworks*)
13038 # FIXME: insert proper C++ library support
13039 ld_shlibs_CXX=no
13040 ;;
13041
13042 *)
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13045 ;;
13046 esac
13047
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13049$as_echo "$ld_shlibs_CXX" >&6; }
13050 test "$ld_shlibs_CXX" = no && can_build_shared=no
13051
13052 GCC_CXX="$GXX"
13053 LD_CXX="$LD"
13054
13055 ## CAVEAT EMPTOR:
13056 ## There is no encapsulation within the following macros, do not change
13057 ## the running order or otherwise move them around unless you know exactly
13058 ## what you are doing...
13059 # Dependencies to place before and after the object being linked:
13060predep_objects_CXX=
13061postdep_objects_CXX=
13062predeps_CXX=
13063postdeps_CXX=
13064compiler_lib_search_path_CXX=
13065
13066cat > conftest.$ac_ext <<_LT_EOF
13067class Foo
13068{
13069public:
13070 Foo (void) { a = 0; }
13071private:
13072 int a;
13073};
13074_LT_EOF
13075
13076if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13077 (eval $ac_compile) 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; }; then
13081 # Parse the compiler output and extract the necessary
13082 # objects, libraries and library flags.
13083
13084 # Sentinel used to keep track of whether or not we are before
13085 # the conftest object file.
13086 pre_test_object_deps_done=no
13087
13088 for p in `eval "$output_verbose_link_cmd"`; do
13089 case $p in
13090
13091 -L* | -R* | -l*)
13092 # Some compilers place space between "-{L,R}" and the path.
13093 # Remove the space.
13094 if test $p = "-L" ||
13095 test $p = "-R"; then
13096 prev=$p
13097 continue
13098 else
13099 prev=
13100 fi
13101
13102 if test "$pre_test_object_deps_done" = no; then
13103 case $p in
13104 -L* | -R*)
13105 # Internal compiler library paths should come after those
13106 # provided the user. The postdeps already come after the
13107 # user supplied libs so there is no need to process them.
13108 if test -z "$compiler_lib_search_path_CXX"; then
13109 compiler_lib_search_path_CXX="${prev}${p}"
13110 else
13111 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13112 fi
13113 ;;
13114 # The "-l" case would never come before the object being
13115 # linked, so don't bother handling this case.
13116 esac
13117 else
13118 if test -z "$postdeps_CXX"; then
13119 postdeps_CXX="${prev}${p}"
13120 else
13121 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13122 fi
13123 fi
13124 ;;
13125
13126 *.$objext)
13127 # This assumes that the test object file only shows up
13128 # once in the compiler output.
13129 if test "$p" = "conftest.$objext"; then
13130 pre_test_object_deps_done=yes
13131 continue
13132 fi
13133
13134 if test "$pre_test_object_deps_done" = no; then
13135 if test -z "$predep_objects_CXX"; then
13136 predep_objects_CXX="$p"
13137 else
13138 predep_objects_CXX="$predep_objects_CXX $p"
13139 fi
13140 else
13141 if test -z "$postdep_objects_CXX"; then
13142 postdep_objects_CXX="$p"
13143 else
13144 postdep_objects_CXX="$postdep_objects_CXX $p"
13145 fi
13146 fi
13147 ;;
13148
13149 *) ;; # Ignore the rest.
13150
13151 esac
13152 done
13153
13154 # Clean up.
13155 rm -f a.out a.exe
13156else
13157 echo "libtool.m4: error: problem compiling CXX test program"
13158fi
13159
13160$RM -f confest.$objext
13161
13162# PORTME: override above test on systems where it is broken
13163case $host_os in
13164interix[3-9]*)
13165 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13166 # hack all around it, let's just trust "g++" to DTRT.
13167 predep_objects_CXX=
13168 postdep_objects_CXX=
13169 postdeps_CXX=
13170 ;;
13171
13172linux*)
13173 case `$CC -V 2>&1 | sed 5q` in
13174 *Sun\ C*)
13175 # Sun C++ 5.9
13176
13177 # The more standards-conforming stlport4 library is
13178 # incompatible with the Cstd library. Avoid specifying
13179 # it if it's in CXXFLAGS. Ignore libCrun as
13180 # -library=stlport4 depends on it.
13181 case " $CXX $CXXFLAGS " in
13182 *" -library=stlport4 "*)
13183 solaris_use_stlport4=yes
13184 ;;
13185 esac
13186
13187 if test "$solaris_use_stlport4" != yes; then
13188 postdeps_CXX='-library=Cstd -library=Crun'
13189 fi
13190 ;;
13191 esac
13192 ;;
13193
13194solaris*)
13195 case $cc_basename in
13196 CC*)
13197 # The more standards-conforming stlport4 library is
13198 # incompatible with the Cstd library. Avoid specifying
13199 # it if it's in CXXFLAGS. Ignore libCrun as
13200 # -library=stlport4 depends on it.
13201 case " $CXX $CXXFLAGS " in
13202 *" -library=stlport4 "*)
13203 solaris_use_stlport4=yes
13204 ;;
13205 esac
13206
13207 # Adding this requires a known-good setup of shared libraries for
13208 # Sun compiler versions before 5.6, else PIC objects from an old
13209 # archive will be linked into the output, leading to subtle bugs.
13210 if test "$solaris_use_stlport4" != yes; then
13211 postdeps_CXX='-library=Cstd -library=Crun'
13212 fi
13213 ;;
13214 esac
13215 ;;
13216esac
13217
13218
13219case " $postdeps_CXX " in
13220*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13221esac
13222 compiler_lib_search_dirs_CXX=
13223if test -n "${compiler_lib_search_path_CXX}"; then
13224 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13225fi
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257 lt_prog_compiler_wl_CXX=
13258lt_prog_compiler_pic_CXX=
13259lt_prog_compiler_static_CXX=
13260
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13262$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13263
13264 # C++ specific cases for pic, static, wl, etc.
13265 if test "$GXX" = yes; then
13266 lt_prog_compiler_wl_CXX='-Wl,'
13267 lt_prog_compiler_static_CXX='-static'
13268
13269 case $host_os in
13270 aix*)
13271 # All AIX code is PIC.
13272 if test "$host_cpu" = ia64; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static_CXX='-Bstatic'
13275 fi
13276 lt_prog_compiler_pic_CXX='-fPIC'
13277 ;;
13278
13279 amigaos*)
13280 case $host_cpu in
13281 powerpc)
13282 # see comment about AmigaOS4 .so support
13283 lt_prog_compiler_pic_CXX='-fPIC'
13284 ;;
13285 m68k)
13286 # FIXME: we need at least 68020 code to build shared libraries, but
13287 # adding the `-m68020' flag to GCC prevents building anything better,
13288 # like `-m68040'.
13289 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13290 ;;
13291 esac
13292 ;;
13293
13294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13295 # PIC is the default for these OSes.
13296 ;;
13297 mingw* | cygwin* | os2* | pw32* | cegcc*)
13298 # This hack is so that the source file can tell whether it is being
13299 # built for inclusion in a dll (and should export symbols for example).
13300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13301 # (--disable-auto-import) libraries
13302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13303 ;;
13304 darwin* | rhapsody*)
13305 # PIC is the default on this platform
13306 # Common symbols not allowed in MH_DYLIB files
13307 lt_prog_compiler_pic_CXX='-fno-common'
13308 ;;
13309 *djgpp*)
13310 # DJGPP does not support shared libraries at all
13311 lt_prog_compiler_pic_CXX=
13312 ;;
13313 haiku*)
13314 # PIC is the default for Haiku.
13315 # The "-static" flag exists, but is broken.
13316 lt_prog_compiler_static_CXX=
13317 ;;
13318 interix[3-9]*)
13319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13320 # Instead, we relocate shared libraries at runtime.
13321 ;;
13322 sysv4*MP*)
13323 if test -d /usr/nec; then
13324 lt_prog_compiler_pic_CXX=-Kconform_pic
13325 fi
13326 ;;
13327 hpux*)
13328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13330 # sets the default TLS model and affects inlining.
13331 case $host_cpu in
13332 hppa*64*)
13333 ;;
13334 *)
13335 lt_prog_compiler_pic_CXX='-fPIC'
13336 ;;
13337 esac
13338 ;;
13339 *qnx* | *nto*)
13340 # QNX uses GNU C++, but need to define -shared option too, otherwise
13341 # it will coredump.
13342 lt_prog_compiler_pic_CXX='-fPIC -shared'
13343 ;;
13344 *)
13345 lt_prog_compiler_pic_CXX='-fPIC'
13346 ;;
13347 esac
13348 else
13349 case $host_os in
13350 aix[4-9]*)
13351 # All AIX code is PIC.
13352 if test "$host_cpu" = ia64; then
13353 # AIX 5 now supports IA64 processor
13354 lt_prog_compiler_static_CXX='-Bstatic'
13355 else
13356 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13357 fi
13358 ;;
13359 chorus*)
13360 case $cc_basename in
13361 cxch68*)
13362 # Green Hills C++ Compiler
13363 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13364 ;;
13365 esac
13366 ;;
13367 dgux*)
13368 case $cc_basename in
13369 ec++*)
13370 lt_prog_compiler_pic_CXX='-KPIC'
13371 ;;
13372 ghcx*)
13373 # Green Hills C++ Compiler
13374 lt_prog_compiler_pic_CXX='-pic'
13375 ;;
13376 *)
13377 ;;
13378 esac
13379 ;;
13380 freebsd* | dragonfly*)
13381 # FreeBSD uses GNU C++
13382 ;;
13383 hpux9* | hpux10* | hpux11*)
13384 case $cc_basename in
13385 CC*)
13386 lt_prog_compiler_wl_CXX='-Wl,'
13387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13388 if test "$host_cpu" != ia64; then
13389 lt_prog_compiler_pic_CXX='+Z'
13390 fi
13391 ;;
13392 aCC*)
13393 lt_prog_compiler_wl_CXX='-Wl,'
13394 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13395 case $host_cpu in
13396 hppa*64*|ia64*)
13397 # +Z the default
13398 ;;
13399 *)
13400 lt_prog_compiler_pic_CXX='+Z'
13401 ;;
13402 esac
13403 ;;
13404 *)
13405 ;;
13406 esac
13407 ;;
13408 interix*)
13409 # This is c89, which is MS Visual C++ (no shared libs)
13410 # Anyone wants to do a port?
13411 ;;
13412 irix5* | irix6* | nonstopux*)
13413 case $cc_basename in
13414 CC*)
13415 lt_prog_compiler_wl_CXX='-Wl,'
13416 lt_prog_compiler_static_CXX='-non_shared'
13417 # CC pic flag -KPIC is the default.
13418 ;;
13419 *)
13420 ;;
13421 esac
13422 ;;
13423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13424 case $cc_basename in
13425 KCC*)
13426 # KAI C++ Compiler
13427 lt_prog_compiler_wl_CXX='--backend -Wl,'
13428 lt_prog_compiler_pic_CXX='-fPIC'
13429 ;;
13430 ecpc* )
13431 # old Intel C++ for x86_64 which still supported -KPIC.
13432 lt_prog_compiler_wl_CXX='-Wl,'
13433 lt_prog_compiler_pic_CXX='-KPIC'
13434 lt_prog_compiler_static_CXX='-static'
13435 ;;
13436 icpc* )
13437 # Intel C++, used to be incompatible with GCC.
13438 # ICC 10 doesn't accept -KPIC any more.
13439 lt_prog_compiler_wl_CXX='-Wl,'
13440 lt_prog_compiler_pic_CXX='-fPIC'
13441 lt_prog_compiler_static_CXX='-static'
13442 ;;
13443 pgCC* | pgcpp*)
13444 # Portland Group C++ compiler
13445 lt_prog_compiler_wl_CXX='-Wl,'
13446 lt_prog_compiler_pic_CXX='-fpic'
13447 lt_prog_compiler_static_CXX='-Bstatic'
13448 ;;
13449 cxx*)
13450 # Compaq C++
13451 # Make sure the PIC flag is empty. It appears that all Alpha
13452 # Linux and Compaq Tru64 Unix objects are PIC.
13453 lt_prog_compiler_pic_CXX=
13454 lt_prog_compiler_static_CXX='-non_shared'
13455 ;;
13456 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13457 # IBM XL 8.0, 9.0 on PPC and BlueGene
13458 lt_prog_compiler_wl_CXX='-Wl,'
13459 lt_prog_compiler_pic_CXX='-qpic'
13460 lt_prog_compiler_static_CXX='-qstaticlink'
13461 ;;
13462 *)
13463 case `$CC -V 2>&1 | sed 5q` in
13464 *Sun\ C*)
13465 # Sun C++ 5.9
13466 lt_prog_compiler_pic_CXX='-KPIC'
13467 lt_prog_compiler_static_CXX='-Bstatic'
13468 lt_prog_compiler_wl_CXX='-Qoption ld '
13469 ;;
13470 esac
13471 ;;
13472 esac
13473 ;;
13474 lynxos*)
13475 ;;
13476 m88k*)
13477 ;;
13478 mvs*)
13479 case $cc_basename in
13480 cxx*)
13481 lt_prog_compiler_pic_CXX='-W c,exportall'
13482 ;;
13483 *)
13484 ;;
13485 esac
13486 ;;
13487 netbsd*)
13488 ;;
13489 *qnx* | *nto*)
13490 # QNX uses GNU C++, but need to define -shared option too, otherwise
13491 # it will coredump.
13492 lt_prog_compiler_pic_CXX='-fPIC -shared'
13493 ;;
13494 osf3* | osf4* | osf5*)
13495 case $cc_basename in
13496 KCC*)
13497 lt_prog_compiler_wl_CXX='--backend -Wl,'
13498 ;;
13499 RCC*)
13500 # Rational C++ 2.4.1
13501 lt_prog_compiler_pic_CXX='-pic'
13502 ;;
13503 cxx*)
13504 # Digital/Compaq C++
13505 lt_prog_compiler_wl_CXX='-Wl,'
13506 # Make sure the PIC flag is empty. It appears that all Alpha
13507 # Linux and Compaq Tru64 Unix objects are PIC.
13508 lt_prog_compiler_pic_CXX=
13509 lt_prog_compiler_static_CXX='-non_shared'
13510 ;;
13511 *)
13512 ;;
13513 esac
13514 ;;
13515 psos*)
13516 ;;
13517 solaris*)
13518 case $cc_basename in
13519 CC*)
13520 # Sun C++ 4.2, 5.x and Centerline C++
13521 lt_prog_compiler_pic_CXX='-KPIC'
13522 lt_prog_compiler_static_CXX='-Bstatic'
13523 lt_prog_compiler_wl_CXX='-Qoption ld '
13524 ;;
13525 gcx*)
13526 # Green Hills C++ Compiler
13527 lt_prog_compiler_pic_CXX='-PIC'
13528 ;;
13529 *)
13530 ;;
13531 esac
13532 ;;
13533 sunos4*)
13534 case $cc_basename in
13535 CC*)
13536 # Sun C++ 4.x
13537 lt_prog_compiler_pic_CXX='-pic'
13538 lt_prog_compiler_static_CXX='-Bstatic'
13539 ;;
13540 lcc*)
13541 # Lucid
13542 lt_prog_compiler_pic_CXX='-pic'
13543 ;;
13544 *)
13545 ;;
13546 esac
13547 ;;
13548 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13549 case $cc_basename in
13550 CC*)
13551 lt_prog_compiler_wl_CXX='-Wl,'
13552 lt_prog_compiler_pic_CXX='-KPIC'
13553 lt_prog_compiler_static_CXX='-Bstatic'
13554 ;;
13555 esac
13556 ;;
13557 tandem*)
13558 case $cc_basename in
13559 NCC*)
13560 # NonStop-UX NCC 3.20
13561 lt_prog_compiler_pic_CXX='-KPIC'
13562 ;;
13563 *)
13564 ;;
13565 esac
13566 ;;
13567 vxworks*)
13568 ;;
13569 *)
13570 lt_prog_compiler_can_build_shared_CXX=no
13571 ;;
13572 esac
13573 fi
13574
13575case $host_os in
13576 # For platforms which do not support PIC, -DPIC is meaningless:
13577 *djgpp*)
13578 lt_prog_compiler_pic_CXX=
13579 ;;
13580 *)
13581 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13582 ;;
13583esac
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13585$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13586
13587
13588
13589#
13590# Check to make sure the PIC flag actually works.
13591#
13592if test -n "$lt_prog_compiler_pic_CXX"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13594$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13595if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597else
13598 lt_cv_prog_compiler_pic_works_CXX=no
13599 ac_outfile=conftest.$ac_objext
13600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13601 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13602 # Insert the option either (1) after the last *FLAGS variable, or
13603 # (2) before a word containing "conftest.", or (3) at the end.
13604 # Note that $ac_compile itself does not contain backslashes and begins
13605 # with a dollar sign (not a hyphen), so the echo should work correctly.
13606 # The option is referenced via a variable to avoid confusing sed.
13607 lt_compile=`echo "$ac_compile" | $SED \
13608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13610 -e 's:$: $lt_compiler_flag:'`
13611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13612 (eval "$lt_compile" 2>conftest.err)
13613 ac_status=$?
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 if (exit $ac_status) && test -s "$ac_outfile"; then
13617 # The compiler can only warn and ignore the option if not recognized
13618 # So say no if there are warnings other than the usual output.
13619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13622 lt_cv_prog_compiler_pic_works_CXX=yes
13623 fi
13624 fi
13625 $RM conftest*
13626
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13629$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13630
13631if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13632 case $lt_prog_compiler_pic_CXX in
13633 "" | " "*) ;;
13634 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13635 esac
13636else
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_can_build_shared_CXX=no
13639fi
13640
13641fi
13642
13643
13644
13645#
13646# Check to make sure the static flag actually works.
13647#
13648wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13650$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13651if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653else
13654 lt_cv_prog_compiler_static_works_CXX=no
13655 save_LDFLAGS="$LDFLAGS"
13656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13657 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13659 # The linker can only warn and ignore the option if not recognized
13660 # So say no if there are warnings
13661 if test -s conftest.err; then
13662 # Append any errors to the config.log.
13663 cat conftest.err 1>&5
13664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13666 if diff conftest.exp conftest.er2 >/dev/null; then
13667 lt_cv_prog_compiler_static_works_CXX=yes
13668 fi
13669 else
13670 lt_cv_prog_compiler_static_works_CXX=yes
13671 fi
13672 fi
13673 $RM -r conftest*
13674 LDFLAGS="$save_LDFLAGS"
13675
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13678$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13679
13680if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13681 :
13682else
13683 lt_prog_compiler_static_CXX=
13684fi
13685
13686
13687
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13691if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13692 $as_echo_n "(cached) " >&6
13693else
13694 lt_cv_prog_compiler_c_o_CXX=no
13695 $RM -r conftest 2>/dev/null
13696 mkdir conftest
13697 cd conftest
13698 mkdir out
13699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13700
13701 lt_compiler_flag="-o out/conftest2.$ac_objext"
13702 # Insert the option either (1) after the last *FLAGS variable, or
13703 # (2) before a word containing "conftest.", or (3) at the end.
13704 # Note that $ac_compile itself does not contain backslashes and begins
13705 # with a dollar sign (not a hyphen), so the echo should work correctly.
13706 lt_compile=`echo "$ac_compile" | $SED \
13707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13709 -e 's:$: $lt_compiler_flag:'`
13710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13711 (eval "$lt_compile" 2>out/conftest.err)
13712 ac_status=$?
13713 cat out/conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13716 then
13717 # The compiler can only warn and ignore the option if not recognized
13718 # So say no if there are warnings
13719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13722 lt_cv_prog_compiler_c_o_CXX=yes
13723 fi
13724 fi
13725 chmod u+w . 2>&5
13726 $RM conftest*
13727 # SGI C++ compiler will create directory out/ii_files/ for
13728 # template instantiation
13729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13730 $RM out/* && rmdir out
13731 cd ..
13732 $RM -r conftest
13733 $RM conftest*
13734
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13737$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13743if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13744 $as_echo_n "(cached) " >&6
13745else
13746 lt_cv_prog_compiler_c_o_CXX=no
13747 $RM -r conftest 2>/dev/null
13748 mkdir conftest
13749 cd conftest
13750 mkdir out
13751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13752
13753 lt_compiler_flag="-o out/conftest2.$ac_objext"
13754 # Insert the option either (1) after the last *FLAGS variable, or
13755 # (2) before a word containing "conftest.", or (3) at the end.
13756 # Note that $ac_compile itself does not contain backslashes and begins
13757 # with a dollar sign (not a hyphen), so the echo should work correctly.
13758 lt_compile=`echo "$ac_compile" | $SED \
13759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13761 -e 's:$: $lt_compiler_flag:'`
13762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13763 (eval "$lt_compile" 2>out/conftest.err)
13764 ac_status=$?
13765 cat out/conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13768 then
13769 # The compiler can only warn and ignore the option if not recognized
13770 # So say no if there are warnings
13771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13774 lt_cv_prog_compiler_c_o_CXX=yes
13775 fi
13776 fi
13777 chmod u+w . 2>&5
13778 $RM conftest*
13779 # SGI C++ compiler will create directory out/ii_files/ for
13780 # template instantiation
13781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13782 $RM out/* && rmdir out
13783 cd ..
13784 $RM -r conftest
13785 $RM conftest*
13786
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13789$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13790
13791
13792
13793
13794hard_links="nottested"
13795if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13796 # do not overwrite the value of need_locks provided by the user
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13798$as_echo_n "checking if we can lock with hard links... " >&6; }
13799 hard_links=yes
13800 $RM conftest*
13801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13802 touch conftest.a
13803 ln conftest.a conftest.b 2>&5 || hard_links=no
13804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13806$as_echo "$hard_links" >&6; }
13807 if test "$hard_links" = no; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13809$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13810 need_locks=warn
13811 fi
13812else
13813 need_locks=no
13814fi
13815
13816
13817
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13819$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13820
13821 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13822 case $host_os in
13823 aix[4-9]*)
13824 # If we're using GNU nm, then we don't want the "-C" option.
13825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13826 # Also, AIX nm treats weak defined symbols like other global defined
13827 # symbols, whereas GNU nm marks them as "W".
13828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13829 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13830 else
13831 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13832 fi
13833 ;;
13834 pw32*)
13835 export_symbols_cmds_CXX="$ltdll_cmds"
13836 ;;
13837 cygwin* | mingw* | cegcc*)
13838 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13839 ;;
13840 *)
13841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13842 ;;
13843 esac
13844 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13845
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13847$as_echo "$ld_shlibs_CXX" >&6; }
13848test "$ld_shlibs_CXX" = no && can_build_shared=no
13849
13850with_gnu_ld_CXX=$with_gnu_ld
13851
13852
13853
13854
13855
13856
13857#
13858# Do we need to explicitly link libc?
13859#
13860case "x$archive_cmds_need_lc_CXX" in
13861x|xyes)
13862 # Assume -lc should be added
13863 archive_cmds_need_lc_CXX=yes
13864
13865 if test "$enable_shared" = yes && test "$GCC" = yes; then
13866 case $archive_cmds_CXX in
13867 *'~'*)
13868 # FIXME: we may have to deal with multi-command sequences.
13869 ;;
13870 '$CC '*)
13871 # Test whether the compiler implicitly links with -lc since on some
13872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13873 # to ld, don't add -lc before -lgcc.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13875$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13876if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878else
13879 $RM conftest*
13880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13881
13882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13883 (eval $ac_compile) 2>&5
13884 ac_status=$?
13885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886 test $ac_status = 0; } 2>conftest.err; then
13887 soname=conftest
13888 lib=conftest
13889 libobjs=conftest.$ac_objext
13890 deplibs=
13891 wl=$lt_prog_compiler_wl_CXX
13892 pic_flag=$lt_prog_compiler_pic_CXX
13893 compiler_flags=-v
13894 linker_flags=-v
13895 verstring=
13896 output_objdir=.
13897 libname=conftest
13898 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13899 allow_undefined_flag_CXX=
13900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13901 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13902 ac_status=$?
13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; }
13905 then
13906 lt_cv_archive_cmds_need_lc_CXX=no
13907 else
13908 lt_cv_archive_cmds_need_lc_CXX=yes
13909 fi
13910 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13911 else
13912 cat conftest.err 1>&5
13913 fi
13914 $RM conftest*
13915
13916fi
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13918$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13919 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13920 ;;
13921 esac
13922 fi
13923 ;;
13924esac
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13990$as_echo_n "checking dynamic linker characteristics... " >&6; }
13991
13992library_names_spec=
13993libname_spec='lib$name'
13994soname_spec=
13995shrext_cmds=".so"
13996postinstall_cmds=
13997postuninstall_cmds=
13998finish_cmds=
13999finish_eval=
14000shlibpath_var=
14001shlibpath_overrides_runpath=unknown
14002version_type=none
14003dynamic_linker="$host_os ld.so"
14004sys_lib_dlsearch_path_spec="/lib /usr/lib"
14005need_lib_prefix=unknown
14006hardcode_into_libs=no
14007
14008# when you set need_version to no, make sure it does not cause -set_version
14009# flags to be left without arguments
14010need_version=unknown
14011
14012case $host_os in
14013aix3*)
14014 version_type=linux
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14016 shlibpath_var=LIBPATH
14017
14018 # AIX 3 has no versioning support, so we append a major version to the name.
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 ;;
14021
14022aix[4-9]*)
14023 version_type=linux
14024 need_lib_prefix=no
14025 need_version=no
14026 hardcode_into_libs=yes
14027 if test "$host_cpu" = ia64; then
14028 # AIX 5 supports IA64
14029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 else
14032 # With GCC up to 2.95.x, collect2 would create an import file
14033 # for dependence libraries. The import file would start with
14034 # the line `#! .'. This would cause the generated library to
14035 # depend on `.', always an invalid library. This was fixed in
14036 # development snapshots of GCC prior to 3.0.
14037 case $host_os in
14038 aix4 | aix4.[01] | aix4.[01].*)
14039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14040 echo ' yes '
14041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14042 :
14043 else
14044 can_build_shared=no
14045 fi
14046 ;;
14047 esac
14048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14049 # soname into executable. Probably we can add versioning support to
14050 # collect2, so additional links can be useful in future.
14051 if test "$aix_use_runtimelinking" = yes; then
14052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14053 # instead of lib<name>.a to let people know that these are not
14054 # typical AIX shared libraries.
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056 else
14057 # We preserve .a as extension for shared libraries through AIX4.2
14058 # and later when we are not doing run time linking.
14059 library_names_spec='${libname}${release}.a $libname.a'
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 fi
14062 shlibpath_var=LIBPATH
14063 fi
14064 ;;
14065
14066amigaos*)
14067 case $host_cpu in
14068 powerpc)
14069 # Since July 2007 AmigaOS4 officially supports .so libraries.
14070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 ;;
14073 m68k)
14074 library_names_spec='$libname.ixlibrary $libname.a'
14075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14076 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'
14077 ;;
14078 esac
14079 ;;
14080
14081beos*)
14082 library_names_spec='${libname}${shared_ext}'
14083 dynamic_linker="$host_os ld.so"
14084 shlibpath_var=LIBRARY_PATH
14085 ;;
14086
14087bsdi[45]*)
14088 version_type=linux
14089 need_version=no
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14096 # the default ld.so.conf also contains /usr/contrib/lib and
14097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14098 # libtool to hard-code these into programs
14099 ;;
14100
14101cygwin* | mingw* | pw32* | cegcc*)
14102 version_type=windows
14103 shrext_cmds=".dll"
14104 need_version=no
14105 need_lib_prefix=no
14106
14107 case $GCC,$host_os in
14108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14109 library_names_spec='$libname.dll.a'
14110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14111 postinstall_cmds='base_file=`basename \${file}`~
14112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14113 dldir=$destdir/`dirname \$dlpath`~
14114 test -d \$dldir || mkdir -p \$dldir~
14115 $install_prog $dir/$dlname \$dldir/$dlname~
14116 chmod a+x \$dldir/$dlname~
14117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14119 fi'
14120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14121 dlpath=$dir/\$dldll~
14122 $RM \$dlpath'
14123 shlibpath_overrides_runpath=yes
14124
14125 case $host_os in
14126 cygwin*)
14127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14129
14130 ;;
14131 mingw* | cegcc*)
14132 # MinGW DLLs use traditional 'lib' prefix
14133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14134 ;;
14135 pw32*)
14136 # pw32 DLLs use 'pw' prefix rather than 'lib'
14137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14138 ;;
14139 esac
14140 ;;
14141
14142 *)
14143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14144 ;;
14145 esac
14146 dynamic_linker='Win32 ld.exe'
14147 # FIXME: first we should search . and the directory the executable is in
14148 shlibpath_var=PATH
14149 ;;
14150
14151darwin* | rhapsody*)
14152 dynamic_linker="$host_os dyld"
14153 version_type=darwin
14154 need_lib_prefix=no
14155 need_version=no
14156 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14157 soname_spec='${libname}${release}${major}$shared_ext'
14158 shlibpath_overrides_runpath=yes
14159 shlibpath_var=DYLD_LIBRARY_PATH
14160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14161
14162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14163 ;;
14164
14165dgux*)
14166 version_type=linux
14167 need_lib_prefix=no
14168 need_version=no
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 ;;
14173
14174freebsd* | dragonfly*)
14175 # DragonFly does not have aout. When/if they implement a new
14176 # versioning mechanism, adjust this.
14177 if test -x /usr/bin/objformat; then
14178 objformat=`/usr/bin/objformat`
14179 else
14180 case $host_os in
14181 freebsd[23].*) objformat=aout ;;
14182 *) objformat=elf ;;
14183 esac
14184 fi
14185 version_type=freebsd-$objformat
14186 case $version_type in
14187 freebsd-elf*)
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14189 need_version=no
14190 need_lib_prefix=no
14191 ;;
14192 freebsd-*)
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14194 need_version=yes
14195 ;;
14196 esac
14197 shlibpath_var=LD_LIBRARY_PATH
14198 case $host_os in
14199 freebsd2.*)
14200 shlibpath_overrides_runpath=yes
14201 ;;
14202 freebsd3.[01]* | freebsdelf3.[01]*)
14203 shlibpath_overrides_runpath=yes
14204 hardcode_into_libs=yes
14205 ;;
14206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14208 shlibpath_overrides_runpath=no
14209 hardcode_into_libs=yes
14210 ;;
14211 *) # from 4.6 on, and DragonFly
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215 esac
14216 ;;
14217
14218gnu*)
14219 version_type=linux
14220 need_lib_prefix=no
14221 need_version=no
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 hardcode_into_libs=yes
14226 ;;
14227
14228haiku*)
14229 version_type=linux
14230 need_lib_prefix=no
14231 need_version=no
14232 dynamic_linker="$host_os runtime_loader"
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 shlibpath_var=LIBRARY_PATH
14236 shlibpath_overrides_runpath=yes
14237 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14238 hardcode_into_libs=yes
14239 ;;
14240
14241hpux9* | hpux10* | hpux11*)
14242 # Give a soname corresponding to the major version so that dld.sl refuses to
14243 # link against other versions.
14244 version_type=sunos
14245 need_lib_prefix=no
14246 need_version=no
14247 case $host_cpu in
14248 ia64*)
14249 shrext_cmds='.so'
14250 hardcode_into_libs=yes
14251 dynamic_linker="$host_os dld.so"
14252 shlibpath_var=LD_LIBRARY_PATH
14253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 if test "X$HPUX_IA64_MODE" = X32; then
14257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14258 else
14259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14260 fi
14261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14262 ;;
14263 hppa*64*)
14264 shrext_cmds='.sl'
14265 hardcode_into_libs=yes
14266 dynamic_linker="$host_os dld.sl"
14267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14273 ;;
14274 *)
14275 shrext_cmds='.sl'
14276 dynamic_linker="$host_os dld.sl"
14277 shlibpath_var=SHLIB_PATH
14278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 soname_spec='${libname}${release}${shared_ext}$major'
14281 ;;
14282 esac
14283 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14284 postinstall_cmds='chmod 555 $lib'
14285 # or fails outright, so override atomically:
14286 install_override_mode=555
14287 ;;
14288
14289interix[3-9]*)
14290 version_type=linux
14291 need_lib_prefix=no
14292 need_version=no
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=no
14298 hardcode_into_libs=yes
14299 ;;
14300
14301irix5* | irix6* | nonstopux*)
14302 case $host_os in
14303 nonstopux*) version_type=nonstopux ;;
14304 *)
14305 if test "$lt_cv_prog_gnu_ld" = yes; then
14306 version_type=linux
14307 else
14308 version_type=irix
14309 fi ;;
14310 esac
14311 need_lib_prefix=no
14312 need_version=no
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14315 case $host_os in
14316 irix5* | nonstopux*)
14317 libsuff= shlibsuff=
14318 ;;
14319 *)
14320 case $LD in # libtool.m4 will add one of these switches to LD
14321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14322 libsuff= shlibsuff= libmagic=32-bit;;
14323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14324 libsuff=32 shlibsuff=N32 libmagic=N32;;
14325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14327 *) libsuff= shlibsuff= libmagic=never-match;;
14328 esac
14329 ;;
14330 esac
14331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14332 shlibpath_overrides_runpath=no
14333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14335 hardcode_into_libs=yes
14336 ;;
14337
14338# No shared lib support for Linux oldld, aout, or coff.
14339linux*oldld* | linux*aout* | linux*coff*)
14340 dynamic_linker=no
14341 ;;
14342
14343# This must be Linux ELF.
14344linux* | k*bsd*-gnu | kopensolaris*-gnu)
14345 version_type=linux
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 shlibpath_overrides_runpath=no
14353
14354 # Some binutils ld are patched to set DT_RUNPATH
14355 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357else
14358 lt_cv_shlibpath_overrides_runpath=no
14359 save_LDFLAGS=$LDFLAGS
14360 save_libdir=$libdir
14361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h. */
14365
14366int
14367main ()
14368{
14369
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374if ac_fn_cxx_try_link "$LINENO"; then :
14375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14376 lt_cv_shlibpath_overrides_runpath=yes
14377fi
14378fi
14379rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LDFLAGS=$save_LDFLAGS
14382 libdir=$save_libdir
14383
14384fi
14385
14386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14387
14388 # This implies no fast_install, which is unacceptable.
14389 # Some rework will be needed to allow for fast_install
14390 # before this can be enabled.
14391 hardcode_into_libs=yes
14392
14393 # Append ld.so.conf contents to the search path
14394 if test -f /etc/ld.so.conf; then
14395 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' ' '`
14396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14397 fi
14398
14399 # We used to test for /lib/ld.so.1 and disable shared libraries on
14400 # powerpc, because MkLinux only supported shared libraries with the
14401 # GNU dynamic linker. Since this was broken with cross compilers,
14402 # most powerpc-linux boxes support dynamic linking these days and
14403 # people can always --disable-shared, the test was removed, and we
14404 # assume the GNU/Linux dynamic linker is in use.
14405 dynamic_linker='GNU/Linux ld.so'
14406 ;;
14407
14408netbsd*)
14409 version_type=sunos
14410 need_lib_prefix=no
14411 need_version=no
14412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14415 dynamic_linker='NetBSD (a.out) ld.so'
14416 else
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 dynamic_linker='NetBSD ld.elf_so'
14420 fi
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425
14426newsos6)
14427 version_type=linux
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=yes
14431 ;;
14432
14433*nto* | *qnx*)
14434 version_type=qnx
14435 need_lib_prefix=no
14436 need_version=no
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=no
14441 hardcode_into_libs=yes
14442 dynamic_linker='ldqnx.so'
14443 ;;
14444
14445openbsd*)
14446 version_type=sunos
14447 sys_lib_dlsearch_path_spec="/usr/lib"
14448 need_lib_prefix=no
14449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14450 case $host_os in
14451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14452 *) need_version=no ;;
14453 esac
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14458 case $host_os in
14459 openbsd2.[89] | openbsd2.[89].*)
14460 shlibpath_overrides_runpath=no
14461 ;;
14462 *)
14463 shlibpath_overrides_runpath=yes
14464 ;;
14465 esac
14466 else
14467 shlibpath_overrides_runpath=yes
14468 fi
14469 ;;
14470
14471os2*)
14472 libname_spec='$name'
14473 shrext_cmds=".dll"
14474 need_lib_prefix=no
14475 library_names_spec='$libname${shared_ext} $libname.a'
14476 dynamic_linker='OS/2 ld.exe'
14477 shlibpath_var=LIBPATH
14478 ;;
14479
14480osf3* | osf4* | osf5*)
14481 version_type=osf
14482 need_lib_prefix=no
14483 need_version=no
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14489 ;;
14490
14491rdos*)
14492 dynamic_linker=no
14493 ;;
14494
14495solaris*)
14496 version_type=linux
14497 need_lib_prefix=no
14498 need_version=no
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=yes
14503 hardcode_into_libs=yes
14504 # ldd complains unless libraries are executable
14505 postinstall_cmds='chmod +x $lib'
14506 ;;
14507
14508sunos4*)
14509 version_type=sunos
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 shlibpath_overrides_runpath=yes
14514 if test "$with_gnu_ld" = yes; then
14515 need_lib_prefix=no
14516 fi
14517 need_version=yes
14518 ;;
14519
14520sysv4 | sysv4.3*)
14521 version_type=linux
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 case $host_vendor in
14526 sni)
14527 shlibpath_overrides_runpath=no
14528 need_lib_prefix=no
14529 runpath_var=LD_RUN_PATH
14530 ;;
14531 siemens)
14532 need_lib_prefix=no
14533 ;;
14534 motorola)
14535 need_lib_prefix=no
14536 need_version=no
14537 shlibpath_overrides_runpath=no
14538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14539 ;;
14540 esac
14541 ;;
14542
14543sysv4*MP*)
14544 if test -d /usr/nec ;then
14545 version_type=linux
14546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14547 soname_spec='$libname${shared_ext}.$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 fi
14550 ;;
14551
14552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14553 version_type=freebsd-elf
14554 need_lib_prefix=no
14555 need_version=no
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 shlibpath_var=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath=yes
14560 hardcode_into_libs=yes
14561 if test "$with_gnu_ld" = yes; then
14562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14563 else
14564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14565 case $host_os in
14566 sco3.2v5*)
14567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14568 ;;
14569 esac
14570 fi
14571 sys_lib_dlsearch_path_spec='/usr/lib'
14572 ;;
14573
14574tpf*)
14575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14576 version_type=linux
14577 need_lib_prefix=no
14578 need_version=no
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 shlibpath_overrides_runpath=no
14582 hardcode_into_libs=yes
14583 ;;
14584
14585uts4*)
14586 version_type=linux
14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588 soname_spec='${libname}${release}${shared_ext}$major'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 ;;
14591
14592*)
14593 dynamic_linker=no
14594 ;;
14595esac
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14597$as_echo "$dynamic_linker" >&6; }
14598test "$dynamic_linker" = no && can_build_shared=no
14599
14600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14601if test "$GCC" = yes; then
14602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14603fi
14604
14605if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14607fi
14608if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14609 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14610fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14650$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14651hardcode_action_CXX=
14652if test -n "$hardcode_libdir_flag_spec_CXX" ||
14653 test -n "$runpath_var_CXX" ||
14654 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14655
14656 # We can hardcode non-existent directories.
14657 if test "$hardcode_direct_CXX" != no &&
14658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14659 # have to relink, otherwise we might link with an installed library
14660 # when we should be linking with a yet-to-be-installed one
14661 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14662 test "$hardcode_minus_L_CXX" != no; then
14663 # Linking always hardcodes the temporary library directory.
14664 hardcode_action_CXX=relink
14665 else
14666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14667 hardcode_action_CXX=immediate
14668 fi
14669else
14670 # We cannot hardcode anything, or else we can only hardcode existing
14671 # directories.
14672 hardcode_action_CXX=unsupported
14673fi
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14675$as_echo "$hardcode_action_CXX" >&6; }
14676
14677if test "$hardcode_action_CXX" = relink ||
14678 test "$inherit_rpath_CXX" = yes; then
14679 # Fast installation is not supported
14680 enable_fast_install=no
14681elif test "$shlibpath_overrides_runpath" = yes ||
14682 test "$enable_shared" = no; then
14683 # Fast installation is not necessary
14684 enable_fast_install=needless
14685fi
14686
14687
14688
14689
14690
14691
14692
14693 fi # test -n "$compiler"
14694
14695 CC=$lt_save_CC
14696 LDCXX=$LD
14697 LD=$lt_save_LD
14698 GCC=$lt_save_GCC
14699 with_gnu_ld=$lt_save_with_gnu_ld
14700 lt_cv_path_LDCXX=$lt_cv_path_LD
14701 lt_cv_path_LD=$lt_save_path_LD
14702 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14703 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14704fi # test "$_lt_caught_CXX_error" != yes
14705
14706ac_ext=c
14707ac_cpp='$CPP $CPPFLAGS'
14708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14710ac_compiler_gnu=$ac_cv_c_compiler_gnu
14711
14712
14713
14714
14715
14716
14717
1cf3d07d
SE
14718
14719
14720
14721
14722
14723
5213506e 14724 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
14725
14726
14727
14728
14729# Only expand once:
14730
14731
14732
b1760f7f
RH
14733# Test for 64-bit build.
14734# The cast to long int works around a bug in the HP C Compiler
14735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14737# This bug is HP SR number 8606223364.
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14739$as_echo_n "checking size of size_t... " >&6; }
14740if test "${ac_cv_sizeof_size_t+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
14742else
14743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14744
14745else
14746 if test "$ac_cv_type_size_t" = yes; then
14747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14749{ as_fn_set_status 77
14750as_fn_error "cannot compute sizeof (size_t)
14751See \`config.log' for more details." "$LINENO" 5; }; }
14752 else
14753 ac_cv_sizeof_size_t=0
14754 fi
14755fi
14756
14757fi
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14759$as_echo "$ac_cv_sizeof_size_t" >&6; }
14760
14761
14762
14763cat >>confdefs.h <<_ACEOF
14764#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14765_ACEOF
14766
14767
14768
5213506e
RW
14769
14770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14771$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14772 # Check whether --enable-maintainer-mode was given.
14773if test "${enable_maintainer_mode+set}" = set; then :
14774 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
c9b93377 14775else
1cf3d07d 14776 USE_MAINTAINER_MODE=no
5213506e 14777fi
c9b93377 14778
5213506e
RW
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14780$as_echo "$USE_MAINTAINER_MODE" >&6; }
14781 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
14782 MAINTAINER_MODE_TRUE=
14783 MAINTAINER_MODE_FALSE='#'
14784else
14785 MAINTAINER_MODE_TRUE='#'
14786 MAINTAINER_MODE_FALSE=
c9b93377
JB
14787fi
14788
1cf3d07d
SE
14789 MAINT=$MAINTAINER_MODE_TRUE
14790
c9b93377
JB
14791
14792
c9b93377 14793for ac_header in sys/mman.h
5213506e
RW
14794do :
14795 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14796if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
c9b93377 14797 cat >>confdefs.h <<_ACEOF
5213506e 14798#define HAVE_SYS_MMAN_H 1
c9b93377
JB
14799_ACEOF
14800
14801fi
14802
14803done
14804
b1760f7f 14805for ac_func in mmap mkostemp
5213506e 14806do :
b1760f7f
RH
14807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14808ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14809eval as_val=\$$as_ac_var
14810 if test "x$as_val" = x""yes; then :
5213506e 14811 cat >>confdefs.h <<_ACEOF
b1760f7f 14812#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c9b93377 14813_ACEOF
c9b93377 14814
5213506e
RW
14815fi
14816done
c9b93377 14817
c9b93377 14818
5213506e
RW
14819ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14820if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14821 libffi_header_sys_mman_h=yes
14822else
14823 libffi_header_sys_mman_h=no
14824fi
c9b93377 14825
c9b93377 14826
5213506e
RW
14827ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14828if test "x$ac_cv_func_mmap" = x""yes; then :
14829 libffi_func_mmap=yes
c9b93377 14830else
5213506e 14831 libffi_func_mmap=no
4d447364
MR
14832fi
14833
14834if test "$libffi_header_sys_mman_h" != yes \
14835 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
14836 ac_cv_func_mmap_file=no
14837 ac_cv_func_mmap_dev_zero=no
14838 ac_cv_func_mmap_anon=no
14839else
5213506e
RW
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14841$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14842if test "${ac_cv_func_mmap_file+set}" = set; then :
14843 $as_echo_n "(cached) " >&6
c9b93377
JB
14844else
14845 # Add a system to this blacklist if
14846 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14847 # memory area containing the same data that you'd get if you applied
14848 # read() to the same fd. The only system known to have a problem here
14849 # is VMS, where text files have record structure.
14850 case "$host_os" in
14851 vms* | ultrix*)
14852 ac_cv_func_mmap_file=no ;;
14853 *)
14854 ac_cv_func_mmap_file=yes;;
14855 esac
14856fi
5213506e
RW
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14858$as_echo "$ac_cv_func_mmap_file" >&6; }
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14860$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14861if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14862 $as_echo_n "(cached) " >&6
c9b93377
JB
14863else
14864 # Add a system to this blacklist if it has mmap() but /dev/zero
14865 # does not exist, or if mmapping /dev/zero does not give anonymous
14866 # zeroed pages with both the following properties:
14867 # 1. If you map N consecutive pages in with one call, and then
14868 # unmap any subset of those pages, the pages that were not
14869 # explicitly unmapped remain accessible.
14870 # 2. If you map two adjacent blocks of memory and then unmap them
14871 # both at once, they must both go away.
14872 # Systems known to be in this category are Windows (all variants),
14873 # VMS, and Darwin.
14874 case "$host_os" in
14875 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
14876 ac_cv_func_mmap_dev_zero=no ;;
14877 *)
14878 ac_cv_func_mmap_dev_zero=yes;;
14879 esac
14880fi
5213506e
RW
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14882$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
c9b93377
JB
14883
14884 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5213506e
RW
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14886$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14887if test "${ac_cv_decl_map_anon+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
c9b93377 14889else
5213506e 14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377
JB
14891/* end confdefs.h. */
14892#include <sys/types.h>
14893#include <sys/mman.h>
14894#include <unistd.h>
14895
14896#ifndef MAP_ANONYMOUS
14897#define MAP_ANONYMOUS MAP_ANON
14898#endif
14899
14900int
14901main ()
14902{
14903int n = MAP_ANONYMOUS;
14904 ;
14905 return 0;
14906}
14907_ACEOF
5213506e 14908if ac_fn_c_try_compile "$LINENO"; then :
c9b93377
JB
14909 ac_cv_decl_map_anon=yes
14910else
5213506e 14911 ac_cv_decl_map_anon=no
c9b93377 14912fi
5213506e 14913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9b93377 14914fi
5213506e
RW
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14916$as_echo "$ac_cv_decl_map_anon" >&6; }
c9b93377
JB
14917
14918 if test $ac_cv_decl_map_anon = no; then
14919 ac_cv_func_mmap_anon=no
14920 else
5213506e
RW
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14922$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14923if test "${ac_cv_func_mmap_anon+set}" = set; then :
14924 $as_echo_n "(cached) " >&6
c9b93377
JB
14925else
14926 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14927 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14928 # doesn't give anonymous zeroed pages with the same properties listed
14929 # above for use of /dev/zero.
14930 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14931 case "$host_os" in
14932 vms* | cygwin* | pe | mingw* | sco* | udk* )
14933 ac_cv_func_mmap_anon=no ;;
14934 *)
14935 ac_cv_func_mmap_anon=yes;;
14936 esac
14937fi
5213506e
RW
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14939$as_echo "$ac_cv_func_mmap_anon" >&6; }
c9b93377
JB
14940 fi
14941fi
14942
14943if test $ac_cv_func_mmap_file = yes; then
14944
b1760f7f 14945$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
b4b575ce 14946
3ed8e5b6 14947fi
b1760f7f 14948if test $ac_cv_func_mmap_dev_zero = yes; then
3ed8e5b6 14949
b1760f7f 14950$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
124f60ab 14951
614348bb 14952fi
b1760f7f 14953if test $ac_cv_func_mmap_anon = yes; then
614348bb 14954
b1760f7f 14955$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
88d8c771 14956
3ed8e5b6 14957fi
c9b93377 14958
3ed8e5b6 14959
b1760f7f
RH
14960 if test -d $srcdir/testsuite; then
14961 TESTSUBDIR_TRUE=
14962 TESTSUBDIR_FALSE='#'
c9b93377 14963else
b1760f7f
RH
14964 TESTSUBDIR_TRUE='#'
14965 TESTSUBDIR_FALSE=
63e5e3e0 14966fi
3ed8e5b6 14967
63e5e3e0 14968
b1760f7f
RH
14969TARGETDIR="unknown"
14970HAVE_LONG_DOUBLE_VARIANT=0
e6c300ef 14971
b1760f7f 14972. ${srcdir}/configure.host
e6c300ef 14973
b1760f7f
RH
14974if test -n "${UNSUPPORTED}"; then
14975 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
3ed8e5b6 14976fi
3ed8e5b6 14977
b1760f7f 14978
b4b575ce 14979
3ed8e5b6 14980
5213506e
RW
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14982$as_echo_n "checking for ANSI C header files... " >&6; }
14983if test "${ac_cv_header_stdc+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
3ed8e5b6 14985else
5213506e 14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 14987/* end confdefs.h. */
63e5e3e0
AG
14988#include <stdlib.h>
14989#include <stdarg.h>
14990#include <string.h>
14991#include <float.h>
3ed8e5b6
AT
14992
14993int
14994main ()
14995{
14996
14997 ;
14998 return 0;
14999}
15000_ACEOF
5213506e 15001if ac_fn_c_try_compile "$LINENO"; then :
63e5e3e0
AG
15002 ac_cv_header_stdc=yes
15003else
5213506e 15004 ac_cv_header_stdc=no
63e5e3e0 15005fi
5213506e 15006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
15007
15008if test $ac_cv_header_stdc = yes; then
15009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15011/* end confdefs.h. */
63e5e3e0 15012#include <string.h>
3ed8e5b6
AT
15013
15014_ACEOF
63e5e3e0 15015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
15016 $EGREP "memchr" >/dev/null 2>&1; then :
15017
63e5e3e0 15018else
63e5e3e0
AG
15019 ac_cv_header_stdc=no
15020fi
15021rm -f conftest*
15022
15023fi
15024
15025if test $ac_cv_header_stdc = yes; then
15026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15028/* end confdefs.h. */
63e5e3e0 15029#include <stdlib.h>
3ed8e5b6
AT
15030
15031_ACEOF
63e5e3e0 15032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
15033 $EGREP "free" >/dev/null 2>&1; then :
15034
63e5e3e0 15035else
63e5e3e0
AG
15036 ac_cv_header_stdc=no
15037fi
15038rm -f conftest*
15039
15040fi
15041
15042if test $ac_cv_header_stdc = yes; then
15043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 15044 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
15045 :
15046else
5213506e 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15048/* end confdefs.h. */
63e5e3e0 15049#include <ctype.h>
5213506e 15050#include <stdlib.h>
3ed8e5b6
AT
15051#if ((' ' & 0x0FF) == 0x020)
15052# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15053# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15054#else
15055# define ISLOWER(c) \
15056 (('a' <= (c) && (c) <= 'i') \
15057 || ('j' <= (c) && (c) <= 'r') \
15058 || ('s' <= (c) && (c) <= 'z'))
15059# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15060#endif
63e5e3e0 15061
3ed8e5b6
AT
15062#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15063int
15064main ()
15065{
15066 int i;
15067 for (i = 0; i < 256; i++)
15068 if (XOR (islower (i), ISLOWER (i))
15069 || toupper (i) != TOUPPER (i))
5213506e
RW
15070 return 2;
15071 return 0;
3ed8e5b6
AT
15072}
15073_ACEOF
5213506e 15074if ac_fn_c_try_run "$LINENO"; then :
3ed8e5b6 15075
5213506e
RW
15076else
15077 ac_cv_header_stdc=no
63e5e3e0 15078fi
5213506e
RW
15079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15080 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 15081fi
5213506e 15082
63e5e3e0
AG
15083fi
15084fi
5213506e
RW
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15086$as_echo "$ac_cv_header_stdc" >&6; }
63e5e3e0 15087if test $ac_cv_header_stdc = yes; then
3ed8e5b6 15088
5213506e 15089$as_echo "#define STDC_HEADERS 1" >>confdefs.h
63e5e3e0
AG
15090
15091fi
15092
15093for ac_func in memcpy
5213506e
RW
15094do :
15095 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15096if test "x$ac_cv_func_memcpy" = x""yes; then :
15097 cat >>confdefs.h <<_ACEOF
15098#define HAVE_MEMCPY 1
3ed8e5b6 15099_ACEOF
3ed8e5b6 15100
5213506e
RW
15101fi
15102done
63e5e3e0 15103
5213506e
RW
15104# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15105# for constant arguments. Useless!
15106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15107$as_echo_n "checking for working alloca.h... " >&6; }
15108if test "${ac_cv_working_alloca_h+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15110else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h. */
15113#include <alloca.h>
3ed8e5b6
AT
15114int
15115main ()
15116{
5213506e
RW
15117char *p = (char *) alloca (2 * sizeof (int));
15118 if (p) return 0;
3ed8e5b6
AT
15119 ;
15120 return 0;
15121}
15122_ACEOF
5213506e 15123if ac_fn_c_try_link "$LINENO"; then :
3ed8e5b6
AT
15124 ac_cv_working_alloca_h=yes
15125else
5213506e 15126 ac_cv_working_alloca_h=no
3ed8e5b6 15127fi
5213506e
RW
15128rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
3ed8e5b6 15130fi
5213506e
RW
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15132$as_echo "$ac_cv_working_alloca_h" >&6; }
3ed8e5b6
AT
15133if test $ac_cv_working_alloca_h = yes; then
15134
5213506e 15135$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
63e5e3e0
AG
15136
15137fi
15138
5213506e
RW
15139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15140$as_echo_n "checking for alloca... " >&6; }
15141if test "${ac_cv_func_alloca_works+set}" = set; then :
15142 $as_echo_n "(cached) " >&6
63e5e3e0 15143else
5213506e 15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15145/* end confdefs.h. */
63e5e3e0
AG
15146#ifdef __GNUC__
15147# define alloca __builtin_alloca
15148#else
15149# ifdef _MSC_VER
15150# include <malloc.h>
15151# define alloca _alloca
15152# else
5213506e 15153# ifdef HAVE_ALLOCA_H
63e5e3e0
AG
15154# include <alloca.h>
15155# else
15156# ifdef _AIX
15157 #pragma alloca
15158# else
15159# ifndef alloca /* predefined by HP cc +Olibcalls */
15160char *alloca ();
15161# endif
15162# endif
15163# endif
15164# endif
15165#endif
15166
3ed8e5b6
AT
15167int
15168main ()
15169{
15170char *p = (char *) alloca (1);
5213506e 15171 if (p) return 0;
3ed8e5b6
AT
15172 ;
15173 return 0;
15174}
15175_ACEOF
5213506e 15176if ac_fn_c_try_link "$LINENO"; then :
63e5e3e0
AG
15177 ac_cv_func_alloca_works=yes
15178else
5213506e 15179 ac_cv_func_alloca_works=no
63e5e3e0 15180fi
5213506e
RW
15181rm -f core conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 15183fi
5213506e
RW
15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15185$as_echo "$ac_cv_func_alloca_works" >&6; }
63e5e3e0 15186
63e5e3e0 15187if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 15188
5213506e 15189$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
63e5e3e0 15190
3ed8e5b6 15191else
63e5e3e0 15192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
15193# that cause trouble. Some versions do not even contain alloca or
15194# contain a buggy version. If you still want to use their alloca,
15195# use ar to extract alloca.o from them instead of compiling alloca.c.
15196
5213506e 15197ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3ed8e5b6 15198
5213506e 15199$as_echo "#define C_ALLOCA 1" >>confdefs.h
63e5e3e0
AG
15200
15201
5213506e
RW
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15203$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15204if test "${ac_cv_os_cray+set}" = set; then :
15205 $as_echo_n "(cached) " >&6
63e5e3e0 15206else
5213506e 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15208/* end confdefs.h. */
5213506e 15209#if defined CRAY && ! defined CRAY2
63e5e3e0
AG
15210webecray
15211#else
15212wenotbecray
15213#endif
15214
3ed8e5b6 15215_ACEOF
63e5e3e0 15216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 15217 $EGREP "webecray" >/dev/null 2>&1; then :
63e5e3e0
AG
15218 ac_cv_os_cray=yes
15219else
63e5e3e0
AG
15220 ac_cv_os_cray=no
15221fi
15222rm -f conftest*
15223
15224fi
5213506e
RW
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15226$as_echo "$ac_cv_os_cray" >&6; }
63e5e3e0 15227if test $ac_cv_os_cray = yes; then
3ed8e5b6 15228 for ac_func in _getb67 GETB67 getb67; do
5213506e
RW
15229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15230ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15231eval as_val=\$$as_ac_var
15232 if test "x$as_val" = x""yes; then :
3ed8e5b6
AT
15233
15234cat >>confdefs.h <<_ACEOF
63e5e3e0 15235#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 15236_ACEOF
63e5e3e0 15237
3ed8e5b6 15238 break
63e5e3e0
AG
15239fi
15240
3ed8e5b6 15241 done
63e5e3e0
AG
15242fi
15243
5213506e
RW
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15245$as_echo_n "checking stack direction for C alloca... " >&6; }
15246if test "${ac_cv_c_stack_direction+set}" = set; then :
15247 $as_echo_n "(cached) " >&6
63e5e3e0 15248else
5213506e 15249 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
15250 ac_cv_c_stack_direction=0
15251else
5213506e 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15253/* end confdefs.h. */
5213506e 15254$ac_includes_default
3ed8e5b6 15255int
63e5e3e0
AG
15256find_stack_direction ()
15257{
15258 static char *addr = 0;
15259 auto char dummy;
15260 if (addr == 0)
15261 {
15262 addr = &dummy;
15263 return find_stack_direction ();
15264 }
15265 else
15266 return (&dummy > addr) ? 1 : -1;
15267}
3ed8e5b6
AT
15268
15269int
63e5e3e0
AG
15270main ()
15271{
5213506e 15272 return find_stack_direction () < 0;
63e5e3e0 15273}
3ed8e5b6 15274_ACEOF
5213506e 15275if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
15276 ac_cv_c_stack_direction=1
15277else
5213506e 15278 ac_cv_c_stack_direction=-1
63e5e3e0 15279fi
5213506e
RW
15280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0
AG
15282fi
15283
5213506e
RW
15284fi
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15286$as_echo "$ac_cv_c_stack_direction" >&6; }
3ed8e5b6 15287cat >>confdefs.h <<_ACEOF
63e5e3e0 15288#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
15289_ACEOF
15290
63e5e3e0
AG
15291
15292fi
15293
15294
5213506e
RW
15295# The cast to long int works around a bug in the HP C Compiler
15296# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15297# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15298# This bug is HP SR number 8606223364.
15299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15300$as_echo_n "checking size of double... " >&6; }
15301if test "${ac_cv_sizeof_double+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
a097ef55 15303else
5213506e
RW
15304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15305
15306else
15307 if test "$ac_cv_type_double" = yes; then
15308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15310{ as_fn_set_status 77
15311as_fn_error "cannot compute sizeof (double)
15312See \`config.log' for more details." "$LINENO" 5; }; }
15313 else
15314 ac_cv_sizeof_double=0
15315 fi
15316fi
15317
15318fi
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15320$as_echo "$ac_cv_sizeof_double" >&6; }
15321
15322
15323
15324cat >>confdefs.h <<_ACEOF
15325#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a097ef55 15326_ACEOF
5213506e
RW
15327
15328
15329# The cast to long int works around a bug in the HP C Compiler
15330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15332# This bug is HP SR number 8606223364.
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15334$as_echo_n "checking size of long double... " >&6; }
15335if test "${ac_cv_sizeof_long_double+set}" = set; then :
15336 $as_echo_n "(cached) " >&6
a097ef55 15337else
5213506e 15338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
a097ef55 15339
5213506e
RW
15340else
15341 if test "$ac_cv_type_long_double" = yes; then
15342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15344{ as_fn_set_status 77
15345as_fn_error "cannot compute sizeof (long double)
15346See \`config.log' for more details." "$LINENO" 5; }; }
15347 else
15348 ac_cv_sizeof_long_double=0
15349 fi
a097ef55 15350fi
5213506e 15351
a097ef55 15352fi
5213506e
RW
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15354$as_echo "$ac_cv_sizeof_long_double" >&6; }
a097ef55 15355
5213506e
RW
15356
15357
15358cat >>confdefs.h <<_ACEOF
15359#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
a097ef55 15360_ACEOF
5213506e
RW
15361
15362
15363
15364# Also AC_SUBST this variable for ffi.h.
15365if test -z "$HAVE_LONG_DOUBLE"; then
15366 HAVE_LONG_DOUBLE=0
e73d2479
AM
15367 if test $ac_cv_sizeof_long_double != 0; then
15368 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15369
15370$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15371
5213506e 15372 HAVE_LONG_DOUBLE=1
e73d2479
AM
15373 else
15374 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15375 HAVE_LONG_DOUBLE=1
5213506e
RW
15376
15377$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15378
e73d2479 15379 fi
5213506e
RW
15380 fi
15381 fi
15382fi
15383
15384
e73d2479 15385
5213506e
RW
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15387$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15388if test "${ac_cv_c_bigendian+set}" = set; then :
15389 $as_echo_n "(cached) " >&6
15390else
15391 ac_cv_c_bigendian=unknown
15392 # See if we're dealing with a universal compiler.
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 15394/* end confdefs.h. */
5213506e
RW
15395#ifndef __APPLE_CC__
15396 not a universal capable compiler
15397 #endif
15398 typedef int dummy;
15399
15400_ACEOF
15401if ac_fn_c_try_compile "$LINENO"; then :
15402
15403 # Check for potential -arch flags. It is not universal unless
15404 # there are at least two -arch flags with different values.
15405 ac_arch=
15406 ac_prev=
15407 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15408 if test -n "$ac_prev"; then
15409 case $ac_word in
15410 i?86 | x86_64 | ppc | ppc64)
15411 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15412 ac_arch=$ac_word
15413 else
15414 ac_cv_c_bigendian=universal
15415 break
15416 fi
15417 ;;
15418 esac
15419 ac_prev=
15420 elif test "x$ac_word" = "x-arch"; then
15421 ac_prev=arch
15422 fi
15423 done
15424fi
15425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426 if test $ac_cv_c_bigendian = unknown; then
15427 # See if sys/param.h defines the BYTE_ORDER macro.
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h. */
15430#include <sys/types.h>
15431 #include <sys/param.h>
15432
a097ef55
KC
15433int
15434main ()
15435{
5213506e
RW
15436#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15437 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15438 && LITTLE_ENDIAN)
15439 bogus endian macros
15440 #endif
a097ef55
KC
15441
15442 ;
15443 return 0;
15444}
15445_ACEOF
5213506e
RW
15446if ac_fn_c_try_compile "$LINENO"; then :
15447 # It does; now see whether it defined to BIG_ENDIAN or not.
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 15449/* end confdefs.h. */
5213506e
RW
15450#include <sys/types.h>
15451 #include <sys/param.h>
15452
a097ef55
KC
15453int
15454main ()
15455{
5213506e
RW
15456#if BYTE_ORDER != BIG_ENDIAN
15457 not big endian
15458 #endif
a097ef55
KC
15459
15460 ;
15461 return 0;
15462}
15463_ACEOF
5213506e
RW
15464if ac_fn_c_try_compile "$LINENO"; then :
15465 ac_cv_c_bigendian=yes
a097ef55 15466else
5213506e 15467 ac_cv_c_bigendian=no
a097ef55 15468fi
5213506e
RW
15469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470fi
15471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 fi
15473 if test $ac_cv_c_bigendian = unknown; then
15474 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 15476/* end confdefs.h. */
5213506e
RW
15477#include <limits.h>
15478
a097ef55
KC
15479int
15480main ()
15481{
5213506e
RW
15482#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15483 bogus endian macros
15484 #endif
a097ef55
KC
15485
15486 ;
15487 return 0;
15488}
15489_ACEOF
5213506e
RW
15490if ac_fn_c_try_compile "$LINENO"; then :
15491 # It does; now see whether it defined to _BIG_ENDIAN or not.
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 15493/* end confdefs.h. */
5213506e
RW
15494#include <limits.h>
15495
a097ef55
KC
15496int
15497main ()
15498{
5213506e
RW
15499#ifndef _BIG_ENDIAN
15500 not big endian
15501 #endif
a097ef55
KC
15502
15503 ;
15504 return 0;
15505}
15506_ACEOF
5213506e
RW
15507if ac_fn_c_try_compile "$LINENO"; then :
15508 ac_cv_c_bigendian=yes
a097ef55 15509else
5213506e 15510 ac_cv_c_bigendian=no
a097ef55 15511fi
5213506e 15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 15513fi
5213506e
RW
15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 fi
15516 if test $ac_cv_c_bigendian = unknown; then
15517 # Compile a test program.
15518 if test "$cross_compiling" = yes; then :
15519 # Try to guess by grepping values from an object file.
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 15521/* end confdefs.h. */
5213506e
RW
15522short int ascii_mm[] =
15523 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15524 short int ascii_ii[] =
15525 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15526 int use_ascii (int i) {
15527 return ascii_mm[i] + ascii_ii[i];
15528 }
15529 short int ebcdic_ii[] =
15530 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15531 short int ebcdic_mm[] =
15532 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15533 int use_ebcdic (int i) {
15534 return ebcdic_mm[i] + ebcdic_ii[i];
15535 }
15536 extern int foo;
15537
a097ef55
KC
15538int
15539main ()
15540{
5213506e 15541return use_ascii (foo) == use_ebcdic (foo);
a097ef55
KC
15542 ;
15543 return 0;
15544}
15545_ACEOF
5213506e
RW
15546if ac_fn_c_try_compile "$LINENO"; then :
15547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15548 ac_cv_c_bigendian=yes
15549 fi
15550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15551 if test "$ac_cv_c_bigendian" = unknown; then
15552 ac_cv_c_bigendian=no
15553 else
15554 # finding both strings is unlikely to happen, but who knows?
15555 ac_cv_c_bigendian=unknown
15556 fi
15557 fi
63e5e3e0 15558fi
5213506e 15559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 15560else
5213506e 15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55
KC
15562/* end confdefs.h. */
15563$ac_includes_default
3ed8e5b6
AT
15564int
15565main ()
15566{
3ed8e5b6 15567
5213506e
RW
15568 /* Are we little or big endian? From Harbison&Steele. */
15569 union
15570 {
15571 long int l;
15572 char c[sizeof (long int)];
15573 } u;
15574 u.l = 1;
15575 return u.c[sizeof (long int) - 1] == 1;
3ed8e5b6 15576
a097ef55
KC
15577 ;
15578 return 0;
15579}
15580_ACEOF
5213506e 15581if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
15582 ac_cv_c_bigendian=no
15583else
5213506e 15584 ac_cv_c_bigendian=yes
63e5e3e0 15585fi
5213506e
RW
15586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15587 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 15588fi
3ed8e5b6 15589
5213506e
RW
15590 fi
15591fi
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15593$as_echo "$ac_cv_c_bigendian" >&6; }
15594 case $ac_cv_c_bigendian in #(
15595 yes)
15596 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15597;; #(
15598 no)
15599 ;; #(
15600 universal)
15601
15602$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15603
15604 ;; #(
15605 *)
15606 as_fn_error "unknown endianness
15607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15608 esac
63e5e3e0
AG
15609
15610
5213506e
RW
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15612$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
8b01bdb0 15613if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
5213506e 15614 $as_echo_n "(cached) " >&6
e6fbf387
RZ
15615else
15616
8b01bdb0 15617 gcc_cv_as_cfi_pseudo_op=unknown
5213506e 15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e6fbf387
RZ
15619/* end confdefs.h. */
15620asm (".cfi_startproc\n\t.cfi_endproc");
15621int
15622main ()
15623{
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
5213506e 15629if ac_fn_c_try_compile "$LINENO"; then :
8b01bdb0 15630 gcc_cv_as_cfi_pseudo_op=yes
e6fbf387 15631else
8b01bdb0 15632 gcc_cv_as_cfi_pseudo_op=no
e6fbf387 15633fi
5213506e 15634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e6fbf387
RZ
15635
15636fi
8b01bdb0
RH
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15638$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15639 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
e6fbf387 15640
5213506e 15641$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
e6fbf387 15642
8b01bdb0
RH
15643 fi
15644
e6fbf387 15645
ed4bf691
RH
15646case "$TARGET" in
15647 SPARC)
5213506e
RW
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15649$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15650if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15651 $as_echo_n "(cached) " >&6
5d84cf0b 15652else
3ed8e5b6 15653
5d84cf0b
JJ
15654 save_CFLAGS="$CFLAGS"
15655 save_LDFLAGS="$LDFLAGS"
15656 CFLAGS="$CFLAGS -fpic"
15657 LDFLAGS="$LDFLAGS -shared"
5213506e 15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15659/* end confdefs.h. */
5d84cf0b 15660asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
15661int
15662main ()
15663{
5d84cf0b 15664
3ed8e5b6
AT
15665 ;
15666 return 0;
15667}
15668_ACEOF
5213506e 15669if ac_fn_c_try_link "$LINENO"; then :
5d84cf0b
JJ
15670 libffi_cv_as_sparc_ua_pcrel=yes
15671else
5213506e 15672 libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 15673fi
5213506e
RW
15674rm -f core conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
15676 CFLAGS="$save_CFLAGS"
15677 LDFLAGS="$save_LDFLAGS"
15678fi
5213506e
RW
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15680$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
5d84cf0b 15681 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6 15682
5213506e 15683$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
bd19c9f4
JS
15684
15685 fi
15686
5213506e
RW
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15688$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15689if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15690 $as_echo_n "(cached) " >&6
bd19c9f4 15691else
3ed8e5b6 15692
bd19c9f4
JS
15693 libffi_cv_as_register_pseudo_op=unknown
15694 # Check if we have .register
5213506e 15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 15696/* end confdefs.h. */
b1760f7f 15697
3ed8e5b6
AT
15698int
15699main ()
15700{
b1760f7f 15701asm (".register %g2, #scratch");
3ed8e5b6
AT
15702 ;
15703 return 0;
15704}
15705_ACEOF
5213506e 15706if ac_fn_c_try_compile "$LINENO"; then :
bd19c9f4
JS
15707 libffi_cv_as_register_pseudo_op=yes
15708else
5213506e 15709 libffi_cv_as_register_pseudo_op=no
bd19c9f4 15710fi
5213506e 15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 15712
3ed8e5b6 15713fi
5213506e
RW
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15715$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
bd19c9f4 15716 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6 15717
5213506e 15718$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
5d84cf0b
JJ
15719
15720 fi
ed4bf691 15721 ;;
5d84cf0b 15722
ed4bf691 15723 X86*)
5213506e
RW
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15725$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15726if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
4d3d4078
RO
15728else
15729
b1760f7f 15730 libffi_cv_as_x86_pcrel=no
4d3d4078 15731 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
b1760f7f
RH
15732 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15733 libffi_cv_as_x86_pcrel=yes
bb8c2886 15734 fi
4d3d4078
RO
15735
15736fi
5213506e
RW
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15738$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
4d3d4078
RO
15739 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15740
5213506e 15741$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
4d3d4078
RO
15742
15743 fi
ed4bf691 15744 ;;
d416abb4 15745
ed4bf691 15746 S390)
b1760f7f
RH
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15748$as_echo_n "checking compiler uses zarch features... " >&6; }
15749if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15750 $as_echo_n "(cached) " >&6
15751else
15752
15753 libffi_cv_as_s390_zarch=no
15754 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15755 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15756 if grep -q brasl conftest.s; then
15757 libffi_cv_as_s390_zarch=yes
15758 fi
15759 fi
15760
15761fi
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15763$as_echo "$libffi_cv_as_s390_zarch" >&6; }
15764 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15765
15766$as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15767
15768 fi
ed4bf691
RH
15769 ;;
15770esac
b1760f7f 15771
b4b575ce
AG
15772# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15773# Check whether --enable-pax_emutramp was given.
15774if test "${enable_pax_emutramp+set}" = set; then :
15775 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15776
15777$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15778
15779 fi
15780fi
15781
15782
15783FFI_EXEC_TRAMPOLINE_TABLE=0
99fba2c4 15784case "$target" in
ed4bf691 15785 *arm*-apple-darwin* | aarch64-apple-darwin*)
b4b575ce
AG
15786 FFI_EXEC_TRAMPOLINE_TABLE=1
15787
15788$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15789
15790 ;;
15791 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
99fba2c4
AT
15792
15793$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15794
15795 ;;
15796esac
b4b575ce
AG
15797 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15798 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15799 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15800else
15801 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15802 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
15803fi
15804
15805
99fba2c4 15806
f4b130bb 15807if test x$TARGET = xX86_64; then
b1760f7f
RH
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15809$as_echo_n "checking toolchain supports unwind section type... " >&6; }
f4b130bb
RO
15810if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15812else
15813
b1760f7f
RH
15814 cat > conftest1.s << EOF
15815.text
15816.globl foo
15817foo:
15818jmp bar
15819.section .eh_frame,"a",@unwind
15820bar:
15821EOF
15822
15823 cat > conftest2.c << EOF
15824extern void foo();
15825int main(){foo();}
15826EOF
15827
15828 libffi_cv_as_x86_64_unwind_section_type=no
15829 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15830 # since the compiler can support it and not the linker (ie old binutils)
15831 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
15832 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
15833 libffi_cv_as_x86_64_unwind_section_type=yes
f4b130bb
RO
15834 fi
15835
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15838$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15839 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
15840
15841$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15842
15843 fi
15844fi
15845
b4b575ce
AG
15846if test "x$GCC" = "xyes"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
5213506e
RW
15848$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15849if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
a733b15e 15851else
3ed8e5b6 15852
b4b575ce
AG
15853 libffi_cv_ro_eh_frame=no
15854 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
b1760f7f
RH
15855 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
15856 objdump -h conftest.o > conftest.dump 2>&1
15857 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15858 if test "x$libffi_eh_frame_line" != "x"; then
15859 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
15860 sed -n $libffi_test_line conftest.dump > conftest.line
15861 if grep READONLY conftest.line > /dev/null; then
15862 libffi_cv_ro_eh_frame=yes
15863 fi
15864 fi
b4b575ce
AG
15865 fi
15866 rm -f conftest.*
a733b15e 15867
3ed8e5b6 15868fi
5213506e
RW
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15870$as_echo "$libffi_cv_ro_eh_frame" >&6; }
b4b575ce 15871 if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6 15872
5213506e 15873$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
1450eb7a 15874
3ed8e5b6 15875
5213506e 15876$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
1450eb7a 15877
b4b575ce 15878 else
3ed8e5b6 15879
5213506e 15880$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
a733b15e 15881
b4b575ce 15882 fi
a733b15e 15883
b4b575ce 15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5213506e
RW
15885$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15886if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
8a42356f
JJ
15888else
15889
b4b575ce
AG
15890 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15891 libffi_cv_hidden_visibility_attribute=no
15892 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 15893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8a42356f
JJ
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
5213506e
RW
15896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15897 test $ac_status = 0; }; }; then
b4b575ce
AG
15898 if grep '\.hidden.*foo' conftest.s >/dev/null; then
15899 libffi_cv_hidden_visibility_attribute=yes
15900 fi
15901 fi
15902 rm -f conftest.*
8a42356f
JJ
15903
15904fi
5213506e
RW
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15906$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
b4b575ce 15907 if test $libffi_cv_hidden_visibility_attribute = yes; then
8a42356f 15908
5213506e 15909$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
8a42356f 15910
b4b575ce 15911 fi
8a42356f
JJ
15912fi
15913
15914
15915
15916
63e5e3e0
AG
15917
15918
15919
b1760f7f
RH
15920TARGET_OBJ=
15921for i in $SOURCES; do
15922 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15923done
15924
15925
15926
15927
63e5e3e0 15928
5213506e
RW
15929# Check whether --enable-debug was given.
15930if test "${enable_debug+set}" = set; then :
15931 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
63e5e3e0 15932
5213506e 15933$as_echo "#define FFI_DEBUG 1" >>confdefs.h
3ed8e5b6
AT
15934
15935 fi
5213506e 15936fi
3ed8e5b6 15937
b4b575ce
AG
15938 if test "$enable_debug" = "yes"; then
15939 FFI_DEBUG_TRUE=
15940 FFI_DEBUG_FALSE='#'
15941else
15942 FFI_DEBUG_TRUE='#'
15943 FFI_DEBUG_FALSE=
15944fi
15945
3ed8e5b6 15946
5213506e
RW
15947# Check whether --enable-structs was given.
15948if test "${enable_structs+set}" = set; then :
15949 enableval=$enable_structs; if test "$enable_structs" = "no"; then
15950
15951$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
3ed8e5b6
AT
15952
15953 fi
5213506e 15954fi
3ed8e5b6 15955
b1760f7f
RH
15956 if test "$enable_debug" = "yes"; then
15957 FFI_DEBUG_TRUE=
15958 FFI_DEBUG_FALSE='#'
15959else
15960 FFI_DEBUG_TRUE='#'
15961 FFI_DEBUG_FALSE=
15962fi
15963
3ed8e5b6 15964
5213506e
RW
15965# Check whether --enable-raw-api was given.
15966if test "${enable_raw_api+set}" = set; then :
15967 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15968
15969$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
3ed8e5b6
AT
15970
15971 fi
5213506e 15972fi
3ed8e5b6 15973
3ed8e5b6 15974
5213506e
RW
15975# Check whether --enable-purify-safety was given.
15976if test "${enable_purify_safety+set}" = set; then :
15977 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15978
15979$as_echo "#define USING_PURIFY 1" >>confdefs.h
3ed8e5b6
AT
15980
15981 fi
5213506e
RW
15982fi
15983
3ed8e5b6
AT
15984
15985if test -n "$with_cross_host" &&
15986 test x"$with_cross_host" != x"no"; then
15987 toolexecdir='$(exec_prefix)/$(target_alias)'
15988 toolexeclibdir='$(toolexecdir)/lib'
15989else
15990 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15991 toolexeclibdir='$(libdir)'
15992fi
15993multi_os_directory=`$CC -print-multi-os-directory`
15994case $multi_os_directory in
15995 .) ;; # Avoid trailing /.
15996 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15997esac
15998
15999
16000
3ed8e5b6
AT
16001if test "${multilib}" = "yes"; then
16002 multilib_arg="--enable-multilib"
16003else
16004 multilib_arg=
16005fi
16006
5213506e 16007ac_config_commands="$ac_config_commands include"
3ed8e5b6 16008
5213506e 16009ac_config_commands="$ac_config_commands src"
3ed8e5b6
AT
16010
16011
5213506e 16012ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
3ed8e5b6
AT
16013
16014
b1760f7f 16015ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
3ed8e5b6
AT
16016
16017
16018cat >confcache <<\_ACEOF
16019# This file is a shell script that caches the results of configure
16020# tests run on this system so they can be shared between configure
16021# scripts and configure runs, see configure's option --config-cache.
16022# It is not useful on other systems. If it contains results you don't
16023# want to keep, you may remove or edit it.
16024#
16025# config.status only pays attention to the cache file if you give it
16026# the --recheck option to rerun configure.
16027#
16028# `ac_cv_env_foo' variables (set or unset) will be overridden when
16029# loading this file, other *unset* `ac_cv_foo' will be assigned the
16030# following values.
16031
16032_ACEOF
16033
16034# The following way of writing the cache mishandles newlines in values,
16035# but we know of no workaround that is simple, portable, and efficient.
5213506e 16036# So, we kill variables containing newlines.
3ed8e5b6
AT
16037# Ultrix sh set writes to stderr and can't be redirected directly,
16038# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
16039(
16040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16041 eval ac_val=\$$ac_var
16042 case $ac_val in #(
16043 *${as_nl}*)
16044 case $ac_var in #(
16045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16047 esac
16048 case $ac_var in #(
16049 _ | IFS | as_nl) ;; #(
16050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16051 *) { eval $ac_var=; unset $ac_var;} ;;
16052 esac ;;
16053 esac
16054 done
16055
3ed8e5b6 16056 (set) 2>&1 |
5213506e
RW
16057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16058 *${as_nl}ac_space=\ *)
16059 # `set' does not quote correctly, so add quotes: double-quote
16060 # substitution turns \\\\ into \\, and sed turns \\ into \.
3ed8e5b6
AT
16061 sed -n \
16062 "s/'/'\\\\''/g;
16063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 16064 ;; #(
3ed8e5b6
AT
16065 *)
16066 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 16067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 16068 ;;
5213506e
RW
16069 esac |
16070 sort
16071) |
3ed8e5b6 16072 sed '
5213506e 16073 /^ac_cv_env_/b end
3ed8e5b6 16074 t clear
5213506e 16075 :clear
3ed8e5b6
AT
16076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16077 t end
5213506e
RW
16078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16079 :end' >>confcache
16080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16081 if test -w "$cache_file"; then
16082 test "x$cache_file" != "x/dev/null" &&
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16084$as_echo "$as_me: updating cache $cache_file" >&6;}
3ed8e5b6
AT
16085 cat confcache >$cache_file
16086 else
5213506e
RW
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3ed8e5b6
AT
16089 fi
16090fi
16091rm -f confcache
16092
16093test "x$prefix" = xNONE && prefix=$ac_default_prefix
16094# Let make expand exec_prefix.
16095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16096
3ed8e5b6
AT
16097DEFS=-DHAVE_CONFIG_H
16098
16099ac_libobjs=
16100ac_ltlibobjs=
16101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16102 # 1. Remove the extension, and $U if already installed.
5213506e
RW
16103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16106 # will be set to the directory where LIBOBJS objects are built.
16107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3ed8e5b6
AT
16109done
16110LIBOBJS=$ac_libobjs
16111
16112LTLIBOBJS=$ac_ltlibobjs
16113
16114
5213506e
RW
16115 if test -n "$EXEEXT"; then
16116 am__EXEEXT_TRUE=
16117 am__EXEEXT_FALSE='#'
16118else
16119 am__EXEEXT_TRUE='#'
16120 am__EXEEXT_FALSE=
16121fi
16122
4e70f25f
AS
16123if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16124 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16125Usually this means the macro was only invoked conditionally." "$LINENO" 5
16126fi
16127if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16128 as_fn_error "conditional \"GENINSRC\" was never defined.
16129Usually this means the macro was only invoked conditionally." "$LINENO" 5
16130fi
3ed8e5b6 16131if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
16132 as_fn_error "conditional \"AMDEP\" was never defined.
16133Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
16134fi
16135if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
16136 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16137Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138fi
b1760f7f
RH
16139if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16140 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16141Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142fi
5213506e
RW
16143if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16144 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16145Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
16146fi
16147if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
16148 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16149Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
16150fi
16151if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
16152 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
16153Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 16154fi
3ed8e5b6 16155
b4b575ce
AG
16156if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16157 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16158Usually this means the macro was only invoked conditionally." "$LINENO" 5
16159fi
16160if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16161 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16162Usually this means the macro was only invoked conditionally." "$LINENO" 5
16163fi
b1760f7f
RH
16164if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16165 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16166Usually this means the macro was only invoked conditionally." "$LINENO" 5
16167fi
5213506e 16168
3ed8e5b6 16169: ${CONFIG_STATUS=./config.status}
5213506e 16170ac_write_fail=0
3ed8e5b6
AT
16171ac_clean_files_save=$ac_clean_files
16172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16175as_write_fail=0
16176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3ed8e5b6
AT
16177#! $SHELL
16178# Generated by $as_me.
16179# Run this file to recreate the current configuration.
16180# Compiler output produced by configure, useful for debugging
16181# configure, is in config.log if it exists.
16182
16183debug=false
16184ac_cs_recheck=false
16185ac_cs_silent=false
3ed8e5b6 16186
5213506e
RW
16187SHELL=\${CONFIG_SHELL-$SHELL}
16188export SHELL
16189_ASEOF
16190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16191## -------------------- ##
16192## M4sh Initialization. ##
16193## -------------------- ##
16194
16195# Be more Bourne compatible
16196DUALCASE=1; export DUALCASE # for MKS sh
16197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
16198 emulate sh
16199 NULLCMD=:
5213506e 16200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
16201 # is contrary to our usage. Disable this feature.
16202 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
16203 setopt NO_GLOB_SUBST
16204else
16205 case `(set -o) 2>/dev/null` in #(
16206 *posix*) :
16207 set -o posix ;; #(
16208 *) :
16209 ;;
16210esac
3ed8e5b6 16211fi
3ed8e5b6 16212
5213506e
RW
16213
16214as_nl='
16215'
16216export as_nl
16217# Printing a long string crashes Solaris 7 /usr/bin/printf.
16218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16221# Prefer a ksh shell builtin over an external printf program on Solaris,
16222# but without wasting forks for bash or zsh.
16223if test -z "$BASH_VERSION$ZSH_VERSION" \
16224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16225 as_echo='print -r --'
16226 as_echo_n='print -rn --'
16227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16228 as_echo='printf %s\n'
16229 as_echo_n='printf %s'
16230else
16231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16233 as_echo_n='/usr/ucb/echo -n'
16234 else
16235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16236 as_echo_n_body='eval
16237 arg=$1;
16238 case $arg in #(
16239 *"$as_nl"*)
16240 expr "X$arg" : "X\\(.*\\)$as_nl";
16241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16242 esac;
16243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16244 '
16245 export as_echo_n_body
16246 as_echo_n='sh -c $as_echo_n_body as_echo'
16247 fi
16248 export as_echo_body
16249 as_echo='sh -c $as_echo_body as_echo'
16250fi
16251
16252# The user is always right.
16253if test "${PATH_SEPARATOR+set}" != set; then
16254 PATH_SEPARATOR=:
16255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16257 PATH_SEPARATOR=';'
16258 }
3ed8e5b6
AT
16259fi
16260
16261
5213506e
RW
16262# IFS
16263# We need space, tab and new line, in precisely that order. Quoting is
16264# there to prevent editors from complaining about space-tab.
16265# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16266# splitting by setting IFS to empty value.)
16267IFS=" "" $as_nl"
16268
16269# Find who we are. Look in the path if we contain no directory separator.
16270case $0 in #((
16271 *[\\/]* ) as_myself=$0 ;;
16272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16273for as_dir in $PATH
16274do
16275 IFS=$as_save_IFS
16276 test -z "$as_dir" && as_dir=.
16277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16278 done
16279IFS=$as_save_IFS
16280
16281 ;;
16282esac
16283# We did not find ourselves, most probably we were run as `sh COMMAND'
16284# in which case we are not to be found in the path.
16285if test "x$as_myself" = x; then
16286 as_myself=$0
16287fi
16288if test ! -f "$as_myself"; then
16289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16290 exit 1
16291fi
16292
16293# Unset variables that we do not need and which cause bugs (e.g. in
16294# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16295# suppresses any "Segmentation fault" message there. '((' could
16296# trigger a bug in pdksh 5.2.14.
16297for as_var in BASH_ENV ENV MAIL MAILPATH
16298do eval test x\${$as_var+set} = xset \
16299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16300done
3ed8e5b6
AT
16301PS1='$ '
16302PS2='> '
16303PS4='+ '
16304
16305# NLS nuisances.
5213506e
RW
16306LC_ALL=C
16307export LC_ALL
16308LANGUAGE=C
16309export LANGUAGE
16310
16311# CDPATH.
16312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16313
16314
16315# as_fn_error ERROR [LINENO LOG_FD]
16316# ---------------------------------
16317# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16318# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16319# script with status $?, using 1 if that was 0.
16320as_fn_error ()
16321{
16322 as_status=$?; test $as_status -eq 0 && as_status=1
16323 if test "$3"; then
16324 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3ed8e5b6 16326 fi
5213506e
RW
16327 $as_echo "$as_me: error: $1" >&2
16328 as_fn_exit $as_status
16329} # as_fn_error
16330
16331
16332# as_fn_set_status STATUS
16333# -----------------------
16334# Set $? to STATUS, without forking.
16335as_fn_set_status ()
16336{
16337 return $1
16338} # as_fn_set_status
16339
16340# as_fn_exit STATUS
16341# -----------------
16342# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16343as_fn_exit ()
16344{
16345 set +e
16346 as_fn_set_status $1
16347 exit $1
16348} # as_fn_exit
16349
16350# as_fn_unset VAR
16351# ---------------
16352# Portably unset VAR.
16353as_fn_unset ()
16354{
16355 { eval $1=; unset $1;}
16356}
16357as_unset=as_fn_unset
16358# as_fn_append VAR VALUE
16359# ----------------------
16360# Append the text in VALUE to the end of the definition contained in VAR. Take
16361# advantage of any shell optimizations that allow amortized linear growth over
16362# repeated appends, instead of the typical quadratic growth present in naive
16363# implementations.
16364if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16365 eval 'as_fn_append ()
16366 {
16367 eval $1+=\$2
16368 }'
16369else
16370 as_fn_append ()
16371 {
16372 eval $1=\$$1\$2
16373 }
16374fi # as_fn_append
16375
16376# as_fn_arith ARG...
16377# ------------------
16378# Perform arithmetic evaluation on the ARGs, and store the result in the
16379# global $as_val. Take advantage of shells that can avoid forks. The arguments
16380# must be portable across $(()) and expr.
16381if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16382 eval 'as_fn_arith ()
16383 {
16384 as_val=$(( $* ))
16385 }'
16386else
16387 as_fn_arith ()
16388 {
16389 as_val=`expr "$@" || test $? -eq 1`
16390 }
16391fi # as_fn_arith
16392
3ed8e5b6 16393
5213506e
RW
16394if expr a : '\(a\)' >/dev/null 2>&1 &&
16395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
16396 as_expr=expr
16397else
16398 as_expr=false
16399fi
16400
5213506e 16401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
16402 as_basename=basename
16403else
16404 as_basename=false
16405fi
16406
5213506e
RW
16407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16408 as_dirname=dirname
16409else
16410 as_dirname=false
16411fi
3ed8e5b6 16412
5213506e 16413as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
16414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16415 X"$0" : 'X\(//\)$' \| \
5213506e
RW
16416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16417$as_echo X/"$0" |
16418 sed '/^.*\/\([^/][^/]*\)\/*$/{
16419 s//\1/
16420 q
16421 }
16422 /^X\/\(\/\/\)$/{
16423 s//\1/
16424 q
16425 }
16426 /^X\/\(\/\).*/{
16427 s//\1/
16428 q
16429 }
16430 s/.*/./; q'`
3ed8e5b6 16431
3ed8e5b6
AT
16432# Avoid depending upon Character Ranges.
16433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16436as_cr_digits='0123456789'
16437as_cr_alnum=$as_cr_Letters$as_cr_digits
16438
5213506e
RW
16439ECHO_C= ECHO_N= ECHO_T=
16440case `echo -n x` in #(((((
16441-n*)
16442 case `echo 'xy\c'` in
16443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16444 xy) ECHO_C='\c';;
16445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16446 ECHO_T=' ';;
16447 esac;;
16448*)
16449 ECHO_N='-n';;
3ed8e5b6
AT
16450esac
16451
5213506e
RW
16452rm -f conf$$ conf$$.exe conf$$.file
16453if test -d conf$$.dir; then
16454 rm -f conf$$.dir/conf$$.file
3ed8e5b6 16455else
5213506e
RW
16456 rm -f conf$$.dir
16457 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 16458fi
5213506e
RW
16459if (echo >conf$$.file) 2>/dev/null; then
16460 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 16461 as_ln_s='ln -s'
5213506e
RW
16462 # ... but there are two gotchas:
16463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16465 # In both cases, we have to default to `cp -p'.
16466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16467 as_ln_s='cp -p'
16468 elif ln conf$$.file conf$$ 2>/dev/null; then
16469 as_ln_s=ln
16470 else
16471 as_ln_s='cp -p'
7d45b968 16472 fi
3ed8e5b6
AT
16473else
16474 as_ln_s='cp -p'
16475fi
5213506e
RW
16476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16477rmdir conf$$.dir 2>/dev/null
16478
16479
16480# as_fn_mkdir_p
16481# -------------
16482# Create "$as_dir" as a directory, including parents if necessary.
16483as_fn_mkdir_p ()
16484{
16485
16486 case $as_dir in #(
16487 -*) as_dir=./$as_dir;;
16488 esac
16489 test -d "$as_dir" || eval $as_mkdir_p || {
16490 as_dirs=
16491 while :; do
16492 case $as_dir in #(
16493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16494 *) as_qdir=$as_dir;;
16495 esac
16496 as_dirs="'$as_qdir' $as_dirs"
16497 as_dir=`$as_dirname -- "$as_dir" ||
16498$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16499 X"$as_dir" : 'X\(//\)[^/]' \| \
16500 X"$as_dir" : 'X\(//\)$' \| \
16501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16502$as_echo X"$as_dir" |
16503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16504 s//\1/
16505 q
16506 }
16507 /^X\(\/\/\)[^/].*/{
16508 s//\1/
16509 q
16510 }
16511 /^X\(\/\/\)$/{
16512 s//\1/
16513 q
16514 }
16515 /^X\(\/\).*/{
16516 s//\1/
16517 q
16518 }
16519 s/.*/./; q'`
16520 test -d "$as_dir" && break
16521 done
16522 test -z "$as_dirs" || eval "mkdir $as_dirs"
16523 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16524
3ed8e5b6 16525
5213506e 16526} # as_fn_mkdir_p
3ed8e5b6 16527if mkdir -p . 2>/dev/null; then
5213506e 16528 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
16529else
16530 test -d ./-p && rmdir ./-p
16531 as_mkdir_p=false
63e5e3e0
AG
16532fi
16533
5213506e
RW
16534if test -x / >/dev/null 2>&1; then
16535 as_test_x='test -x'
16536else
16537 if ls -dL / >/dev/null 2>&1; then
16538 as_ls_L_option=L
16539 else
16540 as_ls_L_option=
16541 fi
16542 as_test_x='
16543 eval sh -c '\''
16544 if test -d "$1"; then
16545 test -d "$1/.";
16546 else
16547 case $1 in #(
16548 -*)set "./$1";;
16549 esac;
16550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16551 ???[sx]*):;;*)false;;esac;fi
16552 '\'' sh
16553 '
16554fi
16555as_executable_p=$as_test_x
3ed8e5b6
AT
16556
16557# Sed expression to map a string onto a valid CPP name.
16558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16559
16560# Sed expression to map a string onto a valid variable name.
16561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16562
16563
3ed8e5b6 16564exec 6>&1
5213506e
RW
16565## ----------------------------------- ##
16566## Main body of $CONFIG_STATUS script. ##
16567## ----------------------------------- ##
16568_ASEOF
16569test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16570
16571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16572# Save the log message, to keep $0 and so on meaningful, and to
3ed8e5b6 16573# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16574# values after options handling.
16575ac_log="
b1760f7f 16576This file was extended by libffi $as_me 3.99999, which was
5213506e 16577generated by GNU Autoconf 2.64. Invocation command line was
63e5e3e0 16578
3ed8e5b6
AT
16579 CONFIG_FILES = $CONFIG_FILES
16580 CONFIG_HEADERS = $CONFIG_HEADERS
16581 CONFIG_LINKS = $CONFIG_LINKS
16582 CONFIG_COMMANDS = $CONFIG_COMMANDS
16583 $ $0 $@
63e5e3e0 16584
5213506e
RW
16585on `(hostname || uname -n) 2>/dev/null | sed 1q`
16586"
16587
3ed8e5b6 16588_ACEOF
63e5e3e0 16589
5213506e
RW
16590case $ac_config_files in *"
16591"*) set x $ac_config_files; shift; ac_config_files=$*;;
16592esac
63e5e3e0 16593
5213506e
RW
16594case $ac_config_headers in *"
16595"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16596esac
63e5e3e0 16597
63e5e3e0 16598
5213506e
RW
16599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16600# Files that config.status was made for.
16601config_files="$ac_config_files"
16602config_headers="$ac_config_headers"
16603config_links="$ac_config_links"
16604config_commands="$ac_config_commands"
63e5e3e0 16605
5213506e 16606_ACEOF
63e5e3e0 16607
5213506e 16608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 16609ac_cs_usage="\
5213506e
RW
16610\`$as_me' instantiates files and other configuration actions
16611from templates according to the current configuration. Unless the files
16612and actions are specified as TAGs, all are instantiated by default.
db2cd5e6 16613
5213506e 16614Usage: $0 [OPTION]... [TAG]...
db2cd5e6 16615
3ed8e5b6 16616 -h, --help print this help, then exit
5213506e
RW
16617 -V, --version print version number and configuration settings, then exit
16618 -q, --quiet, --silent
16619 do not print progress messages
3ed8e5b6
AT
16620 -d, --debug don't remove temporary files
16621 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16622 --file=FILE[:TEMPLATE]
16623 instantiate the configuration file FILE
16624 --header=FILE[:TEMPLATE]
16625 instantiate the configuration header FILE
0721f64e 16626
3ed8e5b6
AT
16627Configuration files:
16628$config_files
ea81d2a3 16629
3ed8e5b6
AT
16630Configuration headers:
16631$config_headers
ea81d2a3 16632
3ed8e5b6
AT
16633Configuration links:
16634$config_links
ea81d2a3 16635
3ed8e5b6
AT
16636Configuration commands:
16637$config_commands
ea81d2a3 16638
b1760f7f 16639Report bugs to <http://github.com/atgreen/libffi/issues>."
3c18f2d1 16640
5213506e
RW
16641_ACEOF
16642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 16643ac_cs_version="\\
b1760f7f 16644libffi config.status 3.99999
5213506e
RW
16645configured by $0, generated by GNU Autoconf 2.64,
16646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3ed8e5b6 16647
5213506e 16648Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
16649This config.status script is free software; the Free Software Foundation
16650gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16651
16652ac_pwd='$ac_pwd'
16653srcdir='$srcdir'
16654INSTALL='$INSTALL'
16655MKDIR_P='$MKDIR_P'
16656AWK='$AWK'
16657test -n "\$AWK" || AWK=awk
3ed8e5b6
AT
16658_ACEOF
16659
5213506e
RW
16660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16661# The default lists apply if the user does not specify any file.
3ed8e5b6
AT
16662ac_need_defaults=:
16663while test $# != 0
16664do
16665 case $1 in
16666 --*=*)
5213506e
RW
16667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16668 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3ed8e5b6 16669 ac_shift=:
63e5e3e0 16670 ;;
5213506e 16671 *)
3ed8e5b6
AT
16672 ac_option=$1
16673 ac_optarg=$2
16674 ac_shift=shift
63e5e3e0 16675 ;;
3ed8e5b6
AT
16676 esac
16677
16678 case $ac_option in
16679 # Handling of the options.
3ed8e5b6
AT
16680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16681 ac_cs_recheck=: ;;
5213506e
RW
16682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16683 $as_echo "$ac_cs_version"; exit ;;
16684 --debug | --debu | --deb | --de | --d | -d )
3ed8e5b6
AT
16685 debug=: ;;
16686 --file | --fil | --fi | --f )
16687 $ac_shift
5213506e
RW
16688 case $ac_optarg in
16689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16690 esac
16691 as_fn_append CONFIG_FILES " '$ac_optarg'"
3ed8e5b6
AT
16692 ac_need_defaults=false;;
16693 --header | --heade | --head | --hea )
16694 $ac_shift
5213506e
RW
16695 case $ac_optarg in
16696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16697 esac
16698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3ed8e5b6 16699 ac_need_defaults=false;;
5213506e
RW
16700 --he | --h)
16701 # Conflict between --help and --header
16702 as_fn_error "ambiguous option: \`$1'
16703Try \`$0 --help' for more information.";;
16704 --help | --hel | -h )
16705 $as_echo "$ac_cs_usage"; exit ;;
3ed8e5b6
AT
16706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16708 ac_cs_silent=: ;;
63e5e3e0 16709
3ed8e5b6 16710 # This is an error.
5213506e
RW
16711 -*) as_fn_error "unrecognized option: \`$1'
16712Try \`$0 --help' for more information." ;;
63e5e3e0 16713
5213506e
RW
16714 *) as_fn_append ac_config_targets " $1"
16715 ac_need_defaults=false ;;
63e5e3e0 16716
3ed8e5b6
AT
16717 esac
16718 shift
16719done
63e5e3e0 16720
3ed8e5b6 16721ac_configure_extra_args=
63e5e3e0 16722
3ed8e5b6
AT
16723if $ac_cs_silent; then
16724 exec 6>/dev/null
16725 ac_configure_extra_args="$ac_configure_extra_args --silent"
16726fi
63e5e3e0 16727
3ed8e5b6 16728_ACEOF
5213506e 16729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 16730if \$ac_cs_recheck; then
5213506e
RW
16731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16732 shift
16733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16734 CONFIG_SHELL='$SHELL'
16735 export CONFIG_SHELL
16736 exec "\$@"
3ed8e5b6 16737fi
63e5e3e0 16738
3ed8e5b6 16739_ACEOF
5213506e
RW
16740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741exec 5>>config.log
16742{
16743 echo
16744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16745## Running $as_me. ##
16746_ASBOX
16747 $as_echo "$ac_log"
16748} >&5
16749
16750_ACEOF
16751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63e5e3e0 16752#
5213506e 16753# INIT-COMMANDS
63e5e3e0 16754#
63e5e3e0 16755
3ed8e5b6
AT
16756srcdir="$srcdir"
16757host="$host"
16758target="$target"
16759with_multisubdir="$with_multisubdir"
16760with_multisrctop="$with_multisrctop"
16761with_target_subdir="$with_target_subdir"
16762ac_configure_args="${multilib_arg} ${ac_configure_args}"
16763multi_basedir="$multi_basedir"
16764CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16765CC="$CC"
fe673cc9
AH
16766CXX="$CXX"
16767GFORTRAN="$GFORTRAN"
16768GCJ="$GCJ"
3ed8e5b6 16769AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
16770
16771
16772# The HP-UX ksh and POSIX shell print the target directory to stdout
16773# if CDPATH is set.
16774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16775
16776sed_quote_subst='$sed_quote_subst'
16777double_quote_subst='$double_quote_subst'
16778delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
16779macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16780macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16781enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16782enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16783pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16784enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16785SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16786ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16787host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16788host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16789host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16790build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16791build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16792build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16793SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16794Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16795GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16796EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16797FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16798LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16799NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16800LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16801max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16802ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16803exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16804lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16805lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16806lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16807reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16808reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16809OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16810deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16811file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16812AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16813AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16814STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16815RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16816old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16817old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16818old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16819lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16820CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16821CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16822compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16823GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16824lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16825lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16826lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16827lt_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"`'
16828objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16829MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16830lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16831lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16832lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16833lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16834lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16835need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16836DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16837NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16838LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16839OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16840OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16841libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16842shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16843extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16844archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16845enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16846export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16847whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16848compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16849old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16850old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16851archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16852archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16853module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16854module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16855with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16856allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16857no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16858hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16859hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16860hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16861hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16862hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16863hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16864hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16865hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16866inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16867link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16868fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16869always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16870export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16871exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16872include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16873prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16874file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16875variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16876need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16877need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16878version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16879runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16880shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16881shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16882libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16883library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16884soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16885install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16886postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16887postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16888finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16889finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16890hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16891sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16892sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16893hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16894enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16895enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16896enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16897old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16898striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
b1760f7f
RH
16899compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16900predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16901postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16902predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16903postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16904compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16905LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16906reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16907reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16908old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16909compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16910GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16911lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16912lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16913lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16914lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16915lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16916archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16917enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16918export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16919whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16920compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16921old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16922old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16923archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16924archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16925module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16926module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16927with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16928allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16929no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16930hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16931hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16932hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16933hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16934hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16935hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16936hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16937hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16938inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16939link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16940fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16941always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16942export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16943exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16944include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16945prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16946file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16947hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16948compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16949predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16950postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16951predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16952postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16953compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
16954
16955LTCC='$LTCC'
16956LTCFLAGS='$LTCFLAGS'
16957compiler='$compiler_DEFAULT'
16958
43e02a8a
RW
16959# A function that is used when there is no print builtin or printf.
16960func_fallback_echo ()
16961{
16962 eval 'cat <<_LTECHO_EOF
16963\$1
16964_LTECHO_EOF'
16965}
16966
1cf3d07d 16967# Quote evaled strings.
43e02a8a
RW
16968for var in SHELL \
16969ECHO \
16970SED \
1cf3d07d
SE
16971GREP \
16972EGREP \
16973FGREP \
16974LD \
16975NM \
16976LN_S \
16977lt_SP2NL \
16978lt_NL2SP \
16979reload_flag \
80c6c2cb 16980OBJDUMP \
1cf3d07d
SE
16981deplibs_check_method \
16982file_magic_cmd \
16983AR \
16984AR_FLAGS \
16985STRIP \
16986RANLIB \
16987CC \
16988CFLAGS \
16989compiler \
16990lt_cv_sys_global_symbol_pipe \
16991lt_cv_sys_global_symbol_to_cdecl \
16992lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 16993lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
16994lt_prog_compiler_no_builtin_flag \
16995lt_prog_compiler_wl \
16996lt_prog_compiler_pic \
16997lt_prog_compiler_static \
16998lt_cv_prog_compiler_c_o \
16999need_locks \
80c6c2cb
PG
17000DSYMUTIL \
17001NMEDIT \
17002LIPO \
17003OTOOL \
17004OTOOL64 \
1cf3d07d
SE
17005shrext_cmds \
17006export_dynamic_flag_spec \
17007whole_archive_flag_spec \
17008compiler_needs_object \
17009with_gnu_ld \
17010allow_undefined_flag \
17011no_undefined_flag \
17012hardcode_libdir_flag_spec \
17013hardcode_libdir_flag_spec_ld \
17014hardcode_libdir_separator \
17015fix_srcfile_path \
17016exclude_expsyms \
17017include_expsyms \
17018file_list_spec \
17019variables_saved_for_relink \
17020libname_spec \
17021library_names_spec \
17022soname_spec \
43e02a8a 17023install_override_mode \
1cf3d07d
SE
17024finish_eval \
17025old_striplib \
b1760f7f
RH
17026striplib \
17027compiler_lib_search_dirs \
17028predep_objects \
17029postdep_objects \
17030predeps \
17031postdeps \
17032compiler_lib_search_path \
17033LD_CXX \
17034reload_flag_CXX \
17035compiler_CXX \
17036lt_prog_compiler_no_builtin_flag_CXX \
17037lt_prog_compiler_wl_CXX \
17038lt_prog_compiler_pic_CXX \
17039lt_prog_compiler_static_CXX \
17040lt_cv_prog_compiler_c_o_CXX \
17041export_dynamic_flag_spec_CXX \
17042whole_archive_flag_spec_CXX \
17043compiler_needs_object_CXX \
17044with_gnu_ld_CXX \
17045allow_undefined_flag_CXX \
17046no_undefined_flag_CXX \
17047hardcode_libdir_flag_spec_CXX \
17048hardcode_libdir_flag_spec_ld_CXX \
17049hardcode_libdir_separator_CXX \
17050fix_srcfile_path_CXX \
17051exclude_expsyms_CXX \
17052include_expsyms_CXX \
17053file_list_spec_CXX \
17054compiler_lib_search_dirs_CXX \
17055predep_objects_CXX \
17056postdep_objects_CXX \
17057predeps_CXX \
17058postdeps_CXX \
17059compiler_lib_search_path_CXX; do
43e02a8a 17060 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 17061 *[\\\\\\\`\\"\\\$]*)
43e02a8a 17062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
17063 ;;
17064 *)
17065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17066 ;;
17067 esac
17068done
17069
17070# Double-quote double-evaled strings.
17071for var in reload_cmds \
17072old_postinstall_cmds \
17073old_postuninstall_cmds \
17074old_archive_cmds \
17075extract_expsyms_cmds \
17076old_archive_from_new_cmds \
17077old_archive_from_expsyms_cmds \
17078archive_cmds \
17079archive_expsym_cmds \
17080module_cmds \
17081module_expsym_cmds \
17082export_symbols_cmds \
17083prelink_cmds \
17084postinstall_cmds \
17085postuninstall_cmds \
17086finish_cmds \
17087sys_lib_search_path_spec \
b1760f7f
RH
17088sys_lib_dlsearch_path_spec \
17089reload_cmds_CXX \
17090old_archive_cmds_CXX \
17091old_archive_from_new_cmds_CXX \
17092old_archive_from_expsyms_cmds_CXX \
17093archive_cmds_CXX \
17094archive_expsym_cmds_CXX \
17095module_cmds_CXX \
17096module_expsym_cmds_CXX \
17097export_symbols_cmds_CXX \
17098prelink_cmds_CXX; do
43e02a8a 17099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 17100 *[\\\\\\\`\\"\\\$]*)
43e02a8a 17101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
17102 ;;
17103 *)
17104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17105 ;;
17106 esac
17107done
17108
1cf3d07d
SE
17109ac_aux_dir='$ac_aux_dir'
17110xsi_shell='$xsi_shell'
17111lt_shell_append='$lt_shell_append'
17112
17113# See if we are running on zsh, and set the options which allow our
17114# commands through without removal of \ escapes INIT.
17115if test -n "\${ZSH_VERSION+set}" ; then
17116 setopt NO_GLOB_SUBST
17117fi
17118
17119
17120 PACKAGE='$PACKAGE'
17121 VERSION='$VERSION'
17122 TIMESTAMP='$TIMESTAMP'
17123 RM='$RM'
17124 ofile='$ofile'
17125
17126
17127
b1760f7f
RH
17128
17129
3ed8e5b6
AT
17130TARGETDIR="$TARGETDIR"
17131
17132_ACEOF
17133
5213506e 17134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 17135
5213506e 17136# Handling of arguments.
3ed8e5b6 17137for ac_config_target in $ac_config_targets
63e5e3e0 17138do
5213506e
RW
17139 case $ac_config_target in
17140 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17141 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17142 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17143 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17144 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17145 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17146 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17147 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17148 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17150 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17151 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
b1760f7f 17152 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
5213506e
RW
17153
17154 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
63e5e3e0
AG
17155 esac
17156done
17157
5213506e 17158
3ed8e5b6
AT
17159# If the user did not use the arguments to specify the items to instantiate,
17160# then the envvar interface is used. Set only those that are not.
17161# We use the long form for the default assignment because of an extremely
17162# bizarre bug on SunOS 4.1.3.
17163if $ac_need_defaults; then
17164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17166 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17168fi
17169
17170# Have a temporary directory for convenience. Make it in the build tree
5213506e 17171# simply because there is no reason against having it here, and in addition,
3ed8e5b6 17172# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
17173# Hook for its removal unless debugging.
17174# Note that there is a small window in which the directory will not be cleaned:
17175# after its creation but before its name has been assigned to `$tmp'.
3ed8e5b6
AT
17176$debug ||
17177{
5213506e
RW
17178 tmp=
17179 trap 'exit_status=$?
17180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17181' 0
17182 trap 'as_fn_exit 1' 1 2 13 15
3ed8e5b6 17183}
3ed8e5b6 17184# Create a (secure) tmp directory for tmp files.
63e5e3e0 17185
3ed8e5b6 17186{
5213506e 17187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3ed8e5b6
AT
17188 test -n "$tmp" && test -d "$tmp"
17189} ||
17190{
5213506e
RW
17191 tmp=./conf$$-$RANDOM
17192 (umask 077 && mkdir "$tmp")
17193} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17194
17195# Set up the scripts for CONFIG_FILES section.
17196# No need to generate them if there are no CONFIG_FILES.
17197# This happens for instance with `./config.status config.h'.
17198if test -n "$CONFIG_FILES"; then
17199
17200
17201ac_cr=`echo X | tr X '\015'`
17202# On cygwin, bash can eat \r inside `` if the user requested igncr.
17203# But we know of no other shell where ac_cr would be empty at this
17204# point, so we can use a bashism as a fallback.
17205if test "x$ac_cr" = x; then
17206 eval ac_cr=\$\'\\r\'
17207fi
17208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17210 ac_cs_awk_cr='\r'
17211else
17212 ac_cs_awk_cr=$ac_cr
17213fi
17214
17215echo 'BEGIN {' >"$tmp/subs1.awk" &&
17216_ACEOF
17217
17218
3ed8e5b6 17219{
5213506e
RW
17220 echo "cat >conf$$subs.awk <<_ACEOF" &&
17221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17222 echo "_ACEOF"
17223} >conf$$subs.sh ||
17224 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17225ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17226ac_delim='%!_!# '
17227for ac_last_try in false false false false false :; do
17228 . ./conf$$subs.sh ||
17229 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17230
17231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17232 if test $ac_delim_n = $ac_delim_num; then
17233 break
17234 elif $ac_last_try; then
17235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17236 else
17237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17238 fi
17239done
17240rm -f conf$$subs.sh
17241
17242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17243cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17244_ACEOF
17245sed -n '
17246h
17247s/^/S["/; s/!.*/"]=/
17248p
17249g
17250s/^[^!]*!//
17251:repl
17252t repl
17253s/'"$ac_delim"'$//
17254t delim
17255:nl
17256h
17257s/\(.\{148\}\).*/\1/
17258t more1
17259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17260p
17261n
17262b repl
17263:more1
17264s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17265p
17266g
17267s/.\{148\}//
17268t nl
17269:delim
17270h
17271s/\(.\{148\}\).*/\1/
17272t more2
17273s/["\\]/\\&/g; s/^/"/; s/$/"/
17274p
17275b
17276:more2
17277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17278p
17279g
17280s/.\{148\}//
17281t delim
17282' <conf$$subs.awk | sed '
17283/^[^""]/{
17284 N
17285 s/\n//
3ed8e5b6 17286}
5213506e
RW
17287' >>$CONFIG_STATUS || ac_write_fail=1
17288rm -f conf$$subs.awk
17289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17290_ACAWK
17291cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17292 for (key in S) S_is_set[key] = 1
17293 FS = "\a"
3ed8e5b6 17294
5213506e
RW
17295}
17296{
17297 line = $ 0
17298 nfields = split(line, field, "@")
17299 substed = 0
17300 len = length(field[1])
17301 for (i = 2; i < nfields; i++) {
17302 key = field[i]
17303 keylen = length(key)
17304 if (S_is_set[key]) {
17305 value = S[key]
17306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17307 len += length(value) + length(field[++i])
17308 substed = 1
17309 } else
17310 len += 1 + keylen
17311 }
3ed8e5b6 17312
5213506e
RW
17313 print line
17314}
3ed8e5b6 17315
5213506e
RW
17316_ACAWK
17317_ACEOF
17318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17321else
17322 cat
17323fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17324 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17325_ACEOF
17326
17327# VPATH may cause trouble with some makes, so we remove $(srcdir),
17328# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17329# trailing colons and then remove the whole line if VPATH becomes empty
17330# (actually we leave an empty line to preserve line numbers).
17331if test "x$srcdir" = x.; then
17332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17333s/:*\$(srcdir):*/:/
17334s/:*\${srcdir}:*/:/
17335s/:*@srcdir@:*/:/
17336s/^\([^=]*=[ ]*\):*/\1/
17337s/:*$//
17338s/^[^=]*=[ ]*$//
17339}'
17340fi
63e5e3e0 17341
5213506e
RW
17342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17343fi # test -n "$CONFIG_FILES"
63e5e3e0 17344
5213506e
RW
17345# Set up the scripts for CONFIG_HEADERS section.
17346# No need to generate them if there are no CONFIG_HEADERS.
17347# This happens for instance with `./config.status Makefile'.
17348if test -n "$CONFIG_HEADERS"; then
17349cat >"$tmp/defines.awk" <<\_ACAWK ||
17350BEGIN {
3ed8e5b6
AT
17351_ACEOF
17352
5213506e
RW
17353# Transform confdefs.h into an awk script `defines.awk', embedded as
17354# here-document in config.status, that substitutes the proper values into
17355# config.h.in to produce config.h.
17356
17357# Create a delimiter string that does not exist in confdefs.h, to ease
17358# handling of long lines.
17359ac_delim='%!_!# '
17360for ac_last_try in false false :; do
17361 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17362 if test -z "$ac_t"; then
17363 break
17364 elif $ac_last_try; then
17365 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17366 else
17367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63e5e3e0 17368 fi
5213506e 17369done
63e5e3e0 17370
5213506e
RW
17371# For the awk script, D is an array of macro values keyed by name,
17372# likewise P contains macro parameters if any. Preserve backslash
17373# newline sequences.
17374
17375ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17376sed -n '
17377s/.\{148\}/&'"$ac_delim"'/g
17378t rset
17379:rset
17380s/^[ ]*#[ ]*define[ ][ ]*/ /
17381t def
17382d
17383:def
17384s/\\$//
17385t bsnl
17386s/["\\]/\\&/g
17387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17388D["\1"]=" \3"/p
17389s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17390d
17391:bsnl
17392s/["\\]/\\&/g
17393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17394D["\1"]=" \3\\\\\\n"\\/p
17395t cont
17396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17397t cont
17398d
17399:cont
17400n
17401s/.\{148\}/&'"$ac_delim"'/g
17402t clear
17403:clear
17404s/\\$//
17405t bsnlc
17406s/["\\]/\\&/g; s/^/"/; s/$/"/p
17407d
17408:bsnlc
17409s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17410b cont
17411' <confdefs.h | sed '
17412s/'"$ac_delim"'/"\\\
17413"/g' >>$CONFIG_STATUS || ac_write_fail=1
17414
17415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 for (key in D) D_is_set[key] = 1
17417 FS = "\a"
17418}
17419/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17420 line = \$ 0
17421 split(line, arg, " ")
17422 if (arg[1] == "#") {
17423 defundef = arg[2]
17424 mac1 = arg[3]
17425 } else {
17426 defundef = substr(arg[1], 2)
17427 mac1 = arg[2]
17428 }
17429 split(mac1, mac2, "(") #)
17430 macro = mac2[1]
17431 prefix = substr(line, 1, index(line, defundef) - 1)
17432 if (D_is_set[macro]) {
17433 # Preserve the white space surrounding the "#".
17434 print prefix "define", macro P[macro] D[macro]
17435 next
17436 } else {
17437 # Replace #undef with comments. This is necessary, for example,
17438 # in the case of _POSIX_SOURCE, which is predefined and required
17439 # on some systems where configure will not decide to define it.
17440 if (defundef == "undef") {
17441 print "/*", prefix defundef, macro, "*/"
17442 next
17443 }
17444 }
17445}
17446{ print }
17447_ACAWK
3ed8e5b6 17448_ACEOF
5213506e
RW
17449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17450 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17451fi # test -n "$CONFIG_HEADERS"
17452
17453
17454eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17455shift
17456for ac_tag
17457do
17458 case $ac_tag in
17459 :[FHLC]) ac_mode=$ac_tag; continue;;
17460 esac
17461 case $ac_mode$ac_tag in
17462 :[FHL]*:*);;
17463 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17464 :[FH]-) ac_tag=-:-;;
17465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17466 esac
17467 ac_save_IFS=$IFS
17468 IFS=:
17469 set x $ac_tag
17470 IFS=$ac_save_IFS
17471 shift
17472 ac_file=$1
17473 shift
17474
17475 case $ac_mode in
17476 :L) ac_source=$1;;
17477 :[FH])
17478 ac_file_inputs=
17479 for ac_f
17480 do
17481 case $ac_f in
17482 -) ac_f="$tmp/stdin";;
17483 *) # Look for the file first in the build tree, then in the source tree
17484 # (if the path is not absolute). The absolute path cannot be DOS-style,
17485 # because $ac_f cannot contain `:'.
17486 test -f "$ac_f" ||
17487 case $ac_f in
17488 [\\/$]*) false;;
17489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17490 esac ||
17491 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17492 esac
17493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17494 as_fn_append ac_file_inputs " '$ac_f'"
17495 done
17496
17497 # Let's still pretend it is `configure' which instantiates (i.e., don't
17498 # use $as_me), people would be surprised to read:
17499 # /* config.h. Generated by config.status. */
17500 configure_input='Generated from '`
17501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17502 `' by configure.'
17503 if test x"$ac_file" != x-; then
17504 configure_input="$ac_file. $configure_input"
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17506$as_echo "$as_me: creating $ac_file" >&6;}
17507 fi
17508 # Neutralize special characters interpreted by sed in replacement strings.
17509 case $configure_input in #(
17510 *\&* | *\|* | *\\* )
17511 ac_sed_conf_input=`$as_echo "$configure_input" |
17512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17513 *) ac_sed_conf_input=$configure_input;;
17514 esac
17515
17516 case $ac_tag in
17517 *:-:* | *:-) cat >"$tmp/stdin" \
17518 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17519 esac
17520 ;;
63e5e3e0
AG
17521 esac
17522
5213506e 17523 ac_dir=`$as_dirname -- "$ac_file" ||
3ed8e5b6
AT
17524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17525 X"$ac_file" : 'X\(//\)[^/]' \| \
17526 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
17527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17528$as_echo X"$ac_file" |
17529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17530 s//\1/
17531 q
17532 }
17533 /^X\(\/\/\)[^/].*/{
17534 s//\1/
17535 q
17536 }
17537 /^X\(\/\/\)$/{
17538 s//\1/
17539 q
17540 }
17541 /^X\(\/\).*/{
17542 s//\1/
17543 q
17544 }
17545 s/.*/./; q'`
17546 as_dir="$ac_dir"; as_fn_mkdir_p
3ed8e5b6
AT
17547 ac_builddir=.
17548
5213506e
RW
17549case "$ac_dir" in
17550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17551*)
17552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17553 # A ".." for each directory in $ac_dir_suffix.
17554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17555 case $ac_top_builddir_sub in
17556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17558 esac ;;
17559esac
17560ac_abs_top_builddir=$ac_pwd
17561ac_abs_builddir=$ac_pwd$ac_dir_suffix
17562# for backward compatibility:
17563ac_top_builddir=$ac_top_build_prefix
63e5e3e0 17564
3ed8e5b6 17565case $srcdir in
5213506e 17566 .) # We are building in place.
3ed8e5b6 17567 ac_srcdir=.
5213506e
RW
17568 ac_top_srcdir=$ac_top_builddir_sub
17569 ac_abs_top_srcdir=$ac_pwd ;;
17570 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 17571 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
17572 ac_top_srcdir=$srcdir
17573 ac_abs_top_srcdir=$srcdir ;;
17574 *) # Relative name.
17575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17576 ac_top_srcdir=$ac_top_build_prefix$srcdir
17577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 17578esac
5213506e 17579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3ed8e5b6 17580
63e5e3e0 17581
5213506e
RW
17582 case $ac_mode in
17583 :F)
17584 #
17585 # CONFIG_FILE
17586 #
63e5e3e0 17587
3ed8e5b6
AT
17588 case $INSTALL in
17589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
17590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17591 esac
17592 ac_MKDIR_P=$MKDIR_P
17593 case $MKDIR_P in
17594 [\\/$]* | ?:[\\/]* ) ;;
17595 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
63e5e3e0 17596 esac
5213506e 17597_ACEOF
63e5e3e0 17598
5213506e
RW
17599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17600# If the template does not know about datarootdir, expand it.
17601# FIXME: This hack should be removed a few years after 2.60.
17602ac_datarootdir_hack=; ac_datarootdir_seen=
17603ac_sed_dataroot='
17604/datarootdir/ {
17605 p
17606 q
17607}
17608/@datadir@/p
17609/@docdir@/p
17610/@infodir@/p
17611/@localedir@/p
17612/@mandir@/p'
17613case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17614*datarootdir*) ac_datarootdir_seen=yes;;
17615*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17617$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17618_ACEOF
17619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17620 ac_datarootdir_hack='
17621 s&@datadir@&$datadir&g
17622 s&@docdir@&$docdir&g
17623 s&@infodir@&$infodir&g
17624 s&@localedir@&$localedir&g
17625 s&@mandir@&$mandir&g
17626 s&\\\${datarootdir}&$datarootdir&g' ;;
17627esac
3ed8e5b6 17628_ACEOF
5213506e
RW
17629
17630# Neutralize VPATH when `$srcdir' = `.'.
17631# Shell code in configure.ac might set extrasub.
17632# FIXME: do we really want to maintain this feature?
17633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634ac_sed_extra="$ac_vpsub
3ed8e5b6
AT
17635$extrasub
17636_ACEOF
5213506e 17637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6
AT
17638:t
17639/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
17640s|@configure_input@|$ac_sed_conf_input|;t t
17641s&@top_builddir@&$ac_top_builddir_sub&;t t
17642s&@top_build_prefix@&$ac_top_build_prefix&;t t
17643s&@srcdir@&$ac_srcdir&;t t
17644s&@abs_srcdir@&$ac_abs_srcdir&;t t
17645s&@top_srcdir@&$ac_top_srcdir&;t t
17646s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17647s&@builddir@&$ac_builddir&;t t
17648s&@abs_builddir@&$ac_abs_builddir&;t t
17649s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17650s&@INSTALL@&$ac_INSTALL&;t t
17651s&@MKDIR_P@&$ac_MKDIR_P&;t t
17652$ac_datarootdir_hack
17653"
17654eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17655 || as_fn_error "could not create $ac_file" "$LINENO" 5
17656
17657test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17661which seems to be undefined. Please make sure it is defined." >&5
17662$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17663which seems to be undefined. Please make sure it is defined." >&2;}
17664
17665 rm -f "$tmp/stdin"
3ed8e5b6 17666 case $ac_file in
5213506e
RW
17667 -) cat "$tmp/out" && rm -f "$tmp/out";;
17668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17669 esac \
17670 || as_fn_error "could not create $ac_file" "$LINENO" 5
17671 ;;
17672 :H)
17673 #
17674 # CONFIG_HEADER
17675 #
3ed8e5b6 17676 if test x"$ac_file" != x-; then
5213506e
RW
17677 {
17678 $as_echo "/* $configure_input */" \
17679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17680 } >"$tmp/config.h" \
17681 || as_fn_error "could not create $ac_file" "$LINENO" 5
17682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17684$as_echo "$as_me: $ac_file is unchanged" >&6;}
3ed8e5b6 17685 else
5213506e
RW
17686 rm -f "$ac_file"
17687 mv "$tmp/config.h" "$ac_file" \
17688 || as_fn_error "could not create $ac_file" "$LINENO" 5
3ed8e5b6
AT
17689 fi
17690 else
5213506e
RW
17691 $as_echo "/* $configure_input */" \
17692 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17693 || as_fn_error "could not create -" "$LINENO" 5
3ed8e5b6 17694 fi
5213506e
RW
17695# Compute "$ac_file"'s index in $config_headers.
17696_am_arg="$ac_file"
3ed8e5b6
AT
17697_am_stamp_count=1
17698for _am_header in $config_headers :; do
17699 case $_am_header in
5213506e 17700 $_am_arg | $_am_arg:* )
3ed8e5b6
AT
17701 break ;;
17702 * )
17703 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17704 esac
17705done
5213506e
RW
17706echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17707$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17708 X"$_am_arg" : 'X\(//\)[^/]' \| \
17709 X"$_am_arg" : 'X\(//\)$' \| \
17710 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17711$as_echo X"$_am_arg" |
17712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17713 s//\1/
17714 q
17715 }
17716 /^X\(\/\/\)[^/].*/{
17717 s//\1/
17718 q
17719 }
17720 /^X\(\/\/\)$/{
17721 s//\1/
17722 q
17723 }
17724 /^X\(\/\).*/{
17725 s//\1/
17726 q
17727 }
17728 s/.*/./; q'`/stamp-h$_am_stamp_count
17729 ;;
17730 :L)
17731 #
17732 # CONFIG_LINK
17733 #
1450eb7a 17734
5213506e
RW
17735 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17736 :
1450eb7a 17737 else
5213506e
RW
17738 # Prefer the file from the source tree if names are identical.
17739 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17740 ac_source=$srcdir/$ac_source
17741 fi
3ed8e5b6 17742
5213506e
RW
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17744$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
3ed8e5b6 17745
5213506e
RW
17746 if test ! -r "$ac_source"; then
17747 as_fn_error "$ac_source: file not found" "$LINENO" 5
17748 fi
17749 rm -f "$ac_file"
1450eb7a 17750
5213506e
RW
17751 # Try a relative symlink, then a hard link, then a copy.
17752 case $srcdir in
17753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17754 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17755 esac
17756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17757 ln "$ac_source" "$ac_file" 2>/dev/null ||
17758 cp -p "$ac_source" "$ac_file" ||
17759 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17760 fi
17761 ;;
17762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17763$as_echo "$as_me: executing $ac_file commands" >&6;}
17764 ;;
1450eb7a
AT
17765 esac
17766
63e5e3e0 17767
5213506e
RW
17768 case $ac_file$ac_mode in
17769 "default-1":C)
3ed8e5b6
AT
17770# Only add multilib support code if we just rebuilt the top-level
17771# Makefile.
17772case " $CONFIG_FILES " in
17773 *" Makefile "*)
17774 ac_file=Makefile . ${multi_basedir}/config-ml.in
17775 ;;
17776esac ;;
5213506e
RW
17777 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17778 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17779 # are listed without --file. Let's play safe and only enable the eval
17780 # if we detect the quoting.
17781 case $CONFIG_FILES in
17782 *\'*) eval set x "$CONFIG_FILES" ;;
17783 *) set x $CONFIG_FILES ;;
17784 esac
17785 shift
17786 for mf
17787 do
17788 # Strip MF so we end up with the name of the file.
17789 mf=`echo "$mf" | sed -e 's/:.*$//'`
17790 # Check whether this is an Automake generated Makefile or not.
17791 # We used to match only the files named `Makefile.in', but
17792 # some people rename them; so instead we look at the file content.
17793 # Grep'ing the first line is not enough: some people post-process
17794 # each Makefile.in and add a new line on top of each file to say so.
17795 # Grep'ing the whole file is not good either: AIX grep has a line
17796 # limit of 2048, but all sed's we know have understand at least 4000.
17797 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17798 dirpart=`$as_dirname -- "$mf" ||
3ed8e5b6
AT
17799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17800 X"$mf" : 'X\(//\)[^/]' \| \
17801 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
17802 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17803$as_echo X"$mf" |
17804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17805 s//\1/
17806 q
17807 }
17808 /^X\(\/\/\)[^/].*/{
17809 s//\1/
17810 q
17811 }
17812 /^X\(\/\/\)$/{
17813 s//\1/
17814 q
17815 }
17816 /^X\(\/\).*/{
17817 s//\1/
17818 q
17819 }
17820 s/.*/./; q'`
17821 else
17822 continue
17823 fi
17824 # Extract the definition of DEPDIR, am__include, and am__quote
17825 # from the Makefile without running `make'.
17826 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17827 test -z "$DEPDIR" && continue
17828 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17829 test -z "am__include" && continue
17830 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17831 # When using ansi2knr, U may be empty or an underscore; expand it
17832 U=`sed -n 's/^U = //p' < "$mf"`
17833 # Find all dependency output files, they are included files with
17834 # $(DEPDIR) in their names. We invoke sed twice because it is the
17835 # simplest approach to changing $(DEPDIR) to its actual value in the
17836 # expansion.
17837 for file in `sed -n "
17838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17840 # Make sure the directory exists.
17841 test -f "$dirpart/$file" && continue
17842 fdir=`$as_dirname -- "$file" ||
3ed8e5b6
AT
17843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844 X"$file" : 'X\(//\)[^/]' \| \
17845 X"$file" : 'X\(//\)$' \| \
5213506e
RW
17846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17847$as_echo X"$file" |
17848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17849 s//\1/
17850 q
17851 }
17852 /^X\(\/\/\)[^/].*/{
17853 s//\1/
17854 q
17855 }
17856 /^X\(\/\/\)$/{
17857 s//\1/
17858 q
17859 }
17860 /^X\(\/\).*/{
17861 s//\1/
17862 q
17863 }
17864 s/.*/./; q'`
17865 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17866 # echo "creating $dirpart/$file"
17867 echo '# dummy' > "$dirpart/$file"
3ed8e5b6 17868 done
3ed8e5b6 17869 done
5213506e 17870}
1cf3d07d 17871 ;;
5213506e 17872 "libtool":C)
1cf3d07d
SE
17873
17874 # See if we are running on zsh, and set the options which allow our
17875 # commands through without removal of \ escapes.
17876 if test -n "${ZSH_VERSION+set}" ; then
17877 setopt NO_GLOB_SUBST
17878 fi
17879
17880 cfgfile="${ofile}T"
17881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17882 $RM "$cfgfile"
17883
17884 cat <<_LT_EOF >> "$cfgfile"
17885#! $SHELL
17886
17887# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 17888# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
17889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17890# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17891#
80c6c2cb 17892# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 17893# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
80c6c2cb 17894# Written by Gordon Matzigkeit, 1996
1cf3d07d 17895#
80c6c2cb 17896# This file is part of GNU Libtool.
1cf3d07d 17897#
80c6c2cb
PG
17898# GNU Libtool is free software; you can redistribute it and/or
17899# modify it under the terms of the GNU General Public License as
17900# published by the Free Software Foundation; either version 2 of
17901# the License, or (at your option) any later version.
1cf3d07d 17902#
80c6c2cb
PG
17903# As a special exception to the GNU General Public License,
17904# if you distribute this file as part of a program or library that
17905# is built using GNU Libtool, you may include this file under the
17906# same distribution terms that you use for the rest of that program.
1cf3d07d 17907#
80c6c2cb
PG
17908# GNU Libtool is distributed in the hope that it will be useful,
17909# but WITHOUT ANY WARRANTY; without even the implied warranty of
17910# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17911# GNU General Public License for more details.
1cf3d07d 17912#
80c6c2cb
PG
17913# You should have received a copy of the GNU General Public License
17914# along with GNU Libtool; see the file COPYING. If not, a copy
17915# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17916# obtained by writing to the Free Software Foundation, Inc.,
17917# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
17918
17919
17920# The names of the tagged configurations supported by this script.
b1760f7f 17921available_tags="CXX "
1cf3d07d
SE
17922
17923# ### BEGIN LIBTOOL CONFIG
17924
17925# Which release of libtool.m4 was used?
17926macro_version=$macro_version
17927macro_revision=$macro_revision
17928
17929# Whether or not to build shared libraries.
17930build_libtool_libs=$enable_shared
17931
17932# Whether or not to build static libraries.
17933build_old_libs=$enable_static
17934
17935# What type of objects to build.
17936pic_mode=$pic_mode
17937
17938# Whether or not to optimize for fast installation.
17939fast_install=$enable_fast_install
17940
43e02a8a
RW
17941# Shell to use when invoking shell scripts.
17942SHELL=$lt_SHELL
17943
17944# An echo program that protects backslashes.
17945ECHO=$lt_ECHO
17946
1cf3d07d
SE
17947# The host system.
17948host_alias=$host_alias
17949host=$host
17950host_os=$host_os
17951
17952# The build system.
17953build_alias=$build_alias
17954build=$build
17955build_os=$build_os
17956
17957# A sed program that does not truncate output.
17958SED=$lt_SED
17959
17960# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17961Xsed="\$SED -e 1s/^X//"
17962
17963# A grep program that handles long lines.
17964GREP=$lt_GREP
17965
17966# An ERE matcher.
17967EGREP=$lt_EGREP
17968
17969# A literal string matcher.
17970FGREP=$lt_FGREP
17971
17972# A BSD- or MS-compatible name lister.
17973NM=$lt_NM
17974
17975# Whether we need soft or hard links.
17976LN_S=$lt_LN_S
17977
17978# What is the maximum length of a command?
17979max_cmd_len=$max_cmd_len
17980
17981# Object file suffix (normally "o").
17982objext=$ac_objext
17983
17984# Executable file suffix (normally "").
17985exeext=$exeext
17986
17987# whether the shell understands "unset".
17988lt_unset=$lt_unset
17989
17990# turn spaces into newlines.
17991SP2NL=$lt_lt_SP2NL
17992
17993# turn newlines into spaces.
17994NL2SP=$lt_lt_NL2SP
17995
80c6c2cb
PG
17996# An object symbol dumper.
17997OBJDUMP=$lt_OBJDUMP
17998
1cf3d07d
SE
17999# Method to check whether dependent libraries are shared objects.
18000deplibs_check_method=$lt_deplibs_check_method
18001
18002# Command to use when deplibs_check_method == "file_magic".
18003file_magic_cmd=$lt_file_magic_cmd
18004
18005# The archiver.
18006AR=$lt_AR
18007AR_FLAGS=$lt_AR_FLAGS
18008
18009# A symbol stripping program.
18010STRIP=$lt_STRIP
18011
18012# Commands used to install an old-style archive.
18013RANLIB=$lt_RANLIB
18014old_postinstall_cmds=$lt_old_postinstall_cmds
18015old_postuninstall_cmds=$lt_old_postuninstall_cmds
18016
43e02a8a
RW
18017# Whether to use a lock for old archive extraction.
18018lock_old_archive_extraction=$lock_old_archive_extraction
18019
1cf3d07d
SE
18020# A C compiler.
18021LTCC=$lt_CC
18022
18023# LTCC compiler flags.
18024LTCFLAGS=$lt_CFLAGS
18025
18026# Take the output of nm and produce a listing of raw symbols and C names.
18027global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18028
18029# Transform the output of nm in a proper C declaration.
18030global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18031
18032# Transform the output of nm in a C name address pair.
18033global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18034
80c6c2cb
PG
18035# Transform the output of nm in a C name address pair when lib prefix is needed.
18036global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18037
1cf3d07d
SE
18038# The name of the directory that contains temporary libtool files.
18039objdir=$objdir
18040
1cf3d07d
SE
18041# Used to examine libraries when file_magic_cmd begins with "file".
18042MAGIC_CMD=$MAGIC_CMD
18043
18044# Must we lock files when doing compilation?
18045need_locks=$lt_need_locks
18046
80c6c2cb
PG
18047# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18048DSYMUTIL=$lt_DSYMUTIL
18049
18050# Tool to change global to local symbols on Mac OS X.
18051NMEDIT=$lt_NMEDIT
18052
18053# Tool to manipulate fat objects and archives on Mac OS X.
18054LIPO=$lt_LIPO
18055
18056# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18057OTOOL=$lt_OTOOL
18058
18059# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18060OTOOL64=$lt_OTOOL64
18061
1cf3d07d
SE
18062# Old archive suffix (normally "a").
18063libext=$libext
18064
18065# Shared library suffix (normally ".so").
18066shrext_cmds=$lt_shrext_cmds
18067
18068# The commands to extract the exported symbol list from a shared archive.
18069extract_expsyms_cmds=$lt_extract_expsyms_cmds
18070
18071# Variables whose values should be saved in libtool wrapper scripts and
18072# restored at link time.
18073variables_saved_for_relink=$lt_variables_saved_for_relink
18074
18075# Do we need the "lib" prefix for modules?
18076need_lib_prefix=$need_lib_prefix
18077
18078# Do we need a version for libraries?
18079need_version=$need_version
18080
18081# Library versioning type.
18082version_type=$version_type
18083
18084# Shared library runtime path variable.
18085runpath_var=$runpath_var
18086
18087# Shared library path variable.
18088shlibpath_var=$shlibpath_var
18089
18090# Is shlibpath searched before the hard-coded library search path?
18091shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18092
18093# Format of library name prefix.
18094libname_spec=$lt_libname_spec
18095
18096# List of archive names. First name is the real one, the rest are links.
18097# The last name is the one that the linker finds with -lNAME
18098library_names_spec=$lt_library_names_spec
18099
18100# The coded name of the library, if different from the real name.
18101soname_spec=$lt_soname_spec
18102
43e02a8a
RW
18103# Permission mode override for installation of shared libraries.
18104install_override_mode=$lt_install_override_mode
18105
1cf3d07d
SE
18106# Command to use after installation of a shared archive.
18107postinstall_cmds=$lt_postinstall_cmds
18108
18109# Command to use after uninstallation of a shared archive.
18110postuninstall_cmds=$lt_postuninstall_cmds
18111
18112# Commands used to finish a libtool library installation in a directory.
18113finish_cmds=$lt_finish_cmds
18114
18115# As "finish_cmds", except a single script fragment to be evaled but
18116# not shown.
18117finish_eval=$lt_finish_eval
18118
18119# Whether we should hardcode library paths into libraries.
18120hardcode_into_libs=$hardcode_into_libs
18121
18122# Compile-time system search path for libraries.
18123sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18124
18125# Run-time system search path for libraries.
18126sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18127
18128# Whether dlopen is supported.
18129dlopen_support=$enable_dlopen
18130
18131# Whether dlopen of programs is supported.
18132dlopen_self=$enable_dlopen_self
18133
18134# Whether dlopen of statically linked programs is supported.
18135dlopen_self_static=$enable_dlopen_self_static
18136
18137# Commands to strip libraries.
18138old_striplib=$lt_old_striplib
18139striplib=$lt_striplib
18140
18141
18142# The linker used to build libraries.
18143LD=$lt_LD
18144
43e02a8a
RW
18145# How to create reloadable object files.
18146reload_flag=$lt_reload_flag
18147reload_cmds=$lt_reload_cmds
18148
1cf3d07d
SE
18149# Commands used to build an old-style archive.
18150old_archive_cmds=$lt_old_archive_cmds
18151
18152# A language specific compiler.
18153CC=$lt_compiler
18154
18155# Is the compiler the GNU compiler?
18156with_gcc=$GCC
18157
18158# Compiler flag to turn off builtin functions.
18159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18160
18161# How to pass a linker flag through the compiler.
18162wl=$lt_lt_prog_compiler_wl
18163
18164# Additional compiler flags for building library objects.
18165pic_flag=$lt_lt_prog_compiler_pic
18166
18167# Compiler flag to prevent dynamic linking.
18168link_static_flag=$lt_lt_prog_compiler_static
18169
18170# Does compiler simultaneously support -c and -o options?
18171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18172
18173# Whether or not to add -lc for building shared libraries.
18174build_libtool_need_lc=$archive_cmds_need_lc
18175
18176# Whether or not to disallow shared libs when runtime libs are static.
18177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18178
18179# Compiler flag to allow reflexive dlopens.
18180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18181
18182# Compiler flag to generate shared objects directly from archives.
18183whole_archive_flag_spec=$lt_whole_archive_flag_spec
18184
18185# Whether the compiler copes with passing no objects directly.
18186compiler_needs_object=$lt_compiler_needs_object
18187
18188# Create an old-style archive from a shared archive.
18189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18190
18191# Create a temporary old-style archive to link instead of a shared archive.
18192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18193
18194# Commands used to build a shared archive.
18195archive_cmds=$lt_archive_cmds
18196archive_expsym_cmds=$lt_archive_expsym_cmds
18197
18198# Commands used to build a loadable module if different from building
18199# a shared archive.
18200module_cmds=$lt_module_cmds
18201module_expsym_cmds=$lt_module_expsym_cmds
18202
18203# Whether we are building with GNU ld or not.
18204with_gnu_ld=$lt_with_gnu_ld
18205
18206# Flag that allows shared libraries with undefined symbols to be built.
18207allow_undefined_flag=$lt_allow_undefined_flag
18208
18209# Flag that enforces no undefined symbols.
18210no_undefined_flag=$lt_no_undefined_flag
18211
18212# Flag to hardcode \$libdir into a binary during linking.
18213# This must work even if \$libdir does not exist
18214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18215
18216# If ld is used when linking, flag to hardcode \$libdir into a binary
18217# during linking. This must work even if \$libdir does not exist.
18218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18219
18220# Whether we need a single "-rpath" flag with a separated argument.
18221hardcode_libdir_separator=$lt_hardcode_libdir_separator
18222
18223# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18224# DIR into the resulting binary.
18225hardcode_direct=$hardcode_direct
18226
18227# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18228# DIR into the resulting binary and the resulting library dependency is
18229# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18230# library is relocated.
18231hardcode_direct_absolute=$hardcode_direct_absolute
18232
18233# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18234# into the resulting binary.
18235hardcode_minus_L=$hardcode_minus_L
18236
18237# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18238# into the resulting binary.
18239hardcode_shlibpath_var=$hardcode_shlibpath_var
18240
18241# Set to "yes" if building a shared library automatically hardcodes DIR
18242# into the library and all subsequent libraries and executables linked
18243# against it.
18244hardcode_automatic=$hardcode_automatic
18245
18246# Set to yes if linker adds runtime paths of dependent libraries
18247# to runtime path list.
18248inherit_rpath=$inherit_rpath
18249
18250# Whether libtool must link a program against all its dependency libraries.
18251link_all_deplibs=$link_all_deplibs
18252
18253# Fix the shell variable \$srcfile for the compiler.
18254fix_srcfile_path=$lt_fix_srcfile_path
18255
18256# Set to "yes" if exported symbols are required.
18257always_export_symbols=$always_export_symbols
18258
18259# The commands to list exported symbols.
18260export_symbols_cmds=$lt_export_symbols_cmds
18261
18262# Symbols that should not be listed in the preloaded symbols.
18263exclude_expsyms=$lt_exclude_expsyms
18264
18265# Symbols that must always be exported.
18266include_expsyms=$lt_include_expsyms
18267
18268# Commands necessary for linking programs (against libraries) with templates.
18269prelink_cmds=$lt_prelink_cmds
18270
18271# Specify filename containing input files.
18272file_list_spec=$lt_file_list_spec
18273
18274# How to hardcode a shared library path into an executable.
18275hardcode_action=$hardcode_action
18276
b1760f7f
RH
18277# The directories searched by this compiler when creating a shared library.
18278compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18279
18280# Dependencies to place before and after the objects being linked to
18281# create a shared library.
18282predep_objects=$lt_predep_objects
18283postdep_objects=$lt_postdep_objects
18284predeps=$lt_predeps
18285postdeps=$lt_postdeps
18286
18287# The library search path used internally by the compiler when linking
18288# a shared library.
18289compiler_lib_search_path=$lt_compiler_lib_search_path
18290
1cf3d07d
SE
18291# ### END LIBTOOL CONFIG
18292
18293_LT_EOF
18294
18295 case $host_os in
18296 aix3*)
18297 cat <<\_LT_EOF >> "$cfgfile"
18298# AIX sometimes has problems with the GCC collect2 program. For some
18299# reason, if we set the COLLECT_NAMES environment variable, the problems
18300# vanish in a puff of smoke.
18301if test "X${COLLECT_NAMES+set}" != Xset; then
18302 COLLECT_NAMES=
18303 export COLLECT_NAMES
18304fi
18305_LT_EOF
18306 ;;
18307 esac
18308
18309
18310ltmain="$ac_aux_dir/ltmain.sh"
18311
18312
18313 # We use sed instead of cat because bash on DJGPP gets confused if
18314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18315 # text mode, it properly converts lines to CR/LF. This bash problem
18316 # is reportedly fixed, but why not run on old versions too?
18317 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18318 || (rm -f "$cfgfile"; exit 1)
18319
18320 case $xsi_shell in
18321 yes)
18322 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 18323
1cf3d07d
SE
18324# func_dirname file append nondir_replacement
18325# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18326# otherwise set result to NONDIR_REPLACEMENT.
18327func_dirname ()
18328{
18329 case ${1} in
18330 */*) func_dirname_result="${1%/*}${2}" ;;
18331 * ) func_dirname_result="${3}" ;;
18332 esac
18333}
18334
18335# func_basename file
18336func_basename ()
18337{
18338 func_basename_result="${1##*/}"
18339}
18340
80c6c2cb
PG
18341# func_dirname_and_basename file append nondir_replacement
18342# perform func_basename and func_dirname in a single function
18343# call:
18344# dirname: Compute the dirname of FILE. If nonempty,
18345# add APPEND to the result, otherwise set result
18346# to NONDIR_REPLACEMENT.
18347# value returned in "$func_dirname_result"
18348# basename: Compute filename of FILE.
18349# value retuned in "$func_basename_result"
18350# Implementation must be kept synchronized with func_dirname
18351# and func_basename. For efficiency, we do not delegate to
18352# those functions but instead duplicate the functionality here.
18353func_dirname_and_basename ()
18354{
18355 case ${1} in
18356 */*) func_dirname_result="${1%/*}${2}" ;;
18357 * ) func_dirname_result="${3}" ;;
18358 esac
18359 func_basename_result="${1##*/}"
18360}
18361
1cf3d07d
SE
18362# func_stripname prefix suffix name
18363# strip PREFIX and SUFFIX off of NAME.
18364# PREFIX and SUFFIX must not contain globbing or regex special
18365# characters, hashes, percent signs, but SUFFIX may contain a leading
18366# dot (in which case that matches only a dot).
18367func_stripname ()
18368{
18369 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18370 # positional parameters, so assign one to ordinary parameter first.
18371 func_stripname_result=${3}
18372 func_stripname_result=${func_stripname_result#"${1}"}
18373 func_stripname_result=${func_stripname_result%"${2}"}
18374}
18375
18376# func_opt_split
18377func_opt_split ()
18378{
18379 func_opt_split_opt=${1%%=*}
18380 func_opt_split_arg=${1#*=}
18381}
18382
18383# func_lo2o object
18384func_lo2o ()
18385{
18386 case ${1} in
18387 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18388 *) func_lo2o_result=${1} ;;
18389 esac
18390}
80c6c2cb
PG
18391
18392# func_xform libobj-or-source
18393func_xform ()
18394{
18395 func_xform_result=${1%.*}.lo
18396}
18397
18398# func_arith arithmetic-term...
18399func_arith ()
18400{
18401 func_arith_result=$(( $* ))
18402}
18403
18404# func_len string
18405# STRING may not start with a hyphen.
18406func_len ()
18407{
18408 func_len_result=${#1}
18409}
18410
1cf3d07d
SE
18411_LT_EOF
18412 ;;
18413 *) # Bourne compatible functions.
18414 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 18415
1cf3d07d
SE
18416# func_dirname file append nondir_replacement
18417# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18418# otherwise set result to NONDIR_REPLACEMENT.
18419func_dirname ()
18420{
18421 # Extract subdirectory from the argument.
43e02a8a 18422 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
18423 if test "X$func_dirname_result" = "X${1}"; then
18424 func_dirname_result="${3}"
18425 else
18426 func_dirname_result="$func_dirname_result${2}"
18427 fi
18428}
18429
18430# func_basename file
18431func_basename ()
18432{
43e02a8a 18433 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
18434}
18435
80c6c2cb 18436
1cf3d07d
SE
18437# func_stripname prefix suffix name
18438# strip PREFIX and SUFFIX off of NAME.
18439# PREFIX and SUFFIX must not contain globbing or regex special
18440# characters, hashes, percent signs, but SUFFIX may contain a leading
18441# dot (in which case that matches only a dot).
18442# func_strip_suffix prefix name
18443func_stripname ()
18444{
18445 case ${2} in
43e02a8a
RW
18446 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18447 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
18448 esac
18449}
18450
18451# sed scripts:
18452my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18453my_sed_long_arg='1s/^-[^=]*=//'
18454
18455# func_opt_split
18456func_opt_split ()
18457{
43e02a8a
RW
18458 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18459 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
18460}
18461
18462# func_lo2o object
18463func_lo2o ()
18464{
43e02a8a 18465 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 18466}
80c6c2cb
PG
18467
18468# func_xform libobj-or-source
18469func_xform ()
18470{
43e02a8a 18471 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
80c6c2cb
PG
18472}
18473
18474# func_arith arithmetic-term...
18475func_arith ()
18476{
18477 func_arith_result=`expr "$@"`
18478}
18479
18480# func_len string
18481# STRING may not start with a hyphen.
18482func_len ()
18483{
18484 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18485}
18486
1cf3d07d
SE
18487_LT_EOF
18488esac
18489
18490case $lt_shell_append in
18491 yes)
18492 cat << \_LT_EOF >> "$cfgfile"
18493
18494# func_append var value
18495# Append VALUE to the end of shell variable VAR.
18496func_append ()
18497{
18498 eval "$1+=\$2"
18499}
18500_LT_EOF
18501 ;;
18502 *)
18503 cat << \_LT_EOF >> "$cfgfile"
18504
18505# func_append var value
18506# Append VALUE to the end of shell variable VAR.
18507func_append ()
18508{
18509 eval "$1=\$$1\$2"
18510}
80c6c2cb 18511
1cf3d07d
SE
18512_LT_EOF
18513 ;;
18514 esac
18515
18516
18517 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18518 || (rm -f "$cfgfile"; exit 1)
18519
18520 mv -f "$cfgfile" "$ofile" ||
18521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18522 chmod +x "$ofile"
18523
b1760f7f
RH
18524
18525 cat <<_LT_EOF >> "$ofile"
18526
18527# ### BEGIN LIBTOOL TAG CONFIG: CXX
18528
18529# The linker used to build libraries.
18530LD=$lt_LD_CXX
18531
18532# How to create reloadable object files.
18533reload_flag=$lt_reload_flag_CXX
18534reload_cmds=$lt_reload_cmds_CXX
18535
18536# Commands used to build an old-style archive.
18537old_archive_cmds=$lt_old_archive_cmds_CXX
18538
18539# A language specific compiler.
18540CC=$lt_compiler_CXX
18541
18542# Is the compiler the GNU compiler?
18543with_gcc=$GCC_CXX
18544
18545# Compiler flag to turn off builtin functions.
18546no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18547
18548# How to pass a linker flag through the compiler.
18549wl=$lt_lt_prog_compiler_wl_CXX
18550
18551# Additional compiler flags for building library objects.
18552pic_flag=$lt_lt_prog_compiler_pic_CXX
18553
18554# Compiler flag to prevent dynamic linking.
18555link_static_flag=$lt_lt_prog_compiler_static_CXX
18556
18557# Does compiler simultaneously support -c and -o options?
18558compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18559
18560# Whether or not to add -lc for building shared libraries.
18561build_libtool_need_lc=$archive_cmds_need_lc_CXX
18562
18563# Whether or not to disallow shared libs when runtime libs are static.
18564allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18565
18566# Compiler flag to allow reflexive dlopens.
18567export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18568
18569# Compiler flag to generate shared objects directly from archives.
18570whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18571
18572# Whether the compiler copes with passing no objects directly.
18573compiler_needs_object=$lt_compiler_needs_object_CXX
18574
18575# Create an old-style archive from a shared archive.
18576old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18577
18578# Create a temporary old-style archive to link instead of a shared archive.
18579old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18580
18581# Commands used to build a shared archive.
18582archive_cmds=$lt_archive_cmds_CXX
18583archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18584
18585# Commands used to build a loadable module if different from building
18586# a shared archive.
18587module_cmds=$lt_module_cmds_CXX
18588module_expsym_cmds=$lt_module_expsym_cmds_CXX
18589
18590# Whether we are building with GNU ld or not.
18591with_gnu_ld=$lt_with_gnu_ld_CXX
18592
18593# Flag that allows shared libraries with undefined symbols to be built.
18594allow_undefined_flag=$lt_allow_undefined_flag_CXX
18595
18596# Flag that enforces no undefined symbols.
18597no_undefined_flag=$lt_no_undefined_flag_CXX
18598
18599# Flag to hardcode \$libdir into a binary during linking.
18600# This must work even if \$libdir does not exist
18601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18602
18603# If ld is used when linking, flag to hardcode \$libdir into a binary
18604# during linking. This must work even if \$libdir does not exist.
18605hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18606
18607# Whether we need a single "-rpath" flag with a separated argument.
18608hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18609
18610# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18611# DIR into the resulting binary.
18612hardcode_direct=$hardcode_direct_CXX
18613
18614# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18615# DIR into the resulting binary and the resulting library dependency is
18616# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18617# library is relocated.
18618hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18619
18620# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18621# into the resulting binary.
18622hardcode_minus_L=$hardcode_minus_L_CXX
18623
18624# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18625# into the resulting binary.
18626hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18627
18628# Set to "yes" if building a shared library automatically hardcodes DIR
18629# into the library and all subsequent libraries and executables linked
18630# against it.
18631hardcode_automatic=$hardcode_automatic_CXX
18632
18633# Set to yes if linker adds runtime paths of dependent libraries
18634# to runtime path list.
18635inherit_rpath=$inherit_rpath_CXX
18636
18637# Whether libtool must link a program against all its dependency libraries.
18638link_all_deplibs=$link_all_deplibs_CXX
18639
18640# Fix the shell variable \$srcfile for the compiler.
18641fix_srcfile_path=$lt_fix_srcfile_path_CXX
18642
18643# Set to "yes" if exported symbols are required.
18644always_export_symbols=$always_export_symbols_CXX
18645
18646# The commands to list exported symbols.
18647export_symbols_cmds=$lt_export_symbols_cmds_CXX
18648
18649# Symbols that should not be listed in the preloaded symbols.
18650exclude_expsyms=$lt_exclude_expsyms_CXX
18651
18652# Symbols that must always be exported.
18653include_expsyms=$lt_include_expsyms_CXX
18654
18655# Commands necessary for linking programs (against libraries) with templates.
18656prelink_cmds=$lt_prelink_cmds_CXX
18657
18658# Specify filename containing input files.
18659file_list_spec=$lt_file_list_spec_CXX
18660
18661# How to hardcode a shared library path into an executable.
18662hardcode_action=$hardcode_action_CXX
18663
18664# The directories searched by this compiler when creating a shared library.
18665compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18666
18667# Dependencies to place before and after the objects being linked to
18668# create a shared library.
18669predep_objects=$lt_predep_objects_CXX
18670postdep_objects=$lt_postdep_objects_CXX
18671predeps=$lt_predeps_CXX
18672postdeps=$lt_postdeps_CXX
18673
18674# The library search path used internally by the compiler when linking
18675# a shared library.
18676compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18677
18678# ### END LIBTOOL TAG CONFIG: CXX
18679_LT_EOF
18680
3ed8e5b6 18681 ;;
5213506e
RW
18682 "include":C) test -d include || mkdir include ;;
18683 "src":C)
3ed8e5b6
AT
18684test -d src || mkdir src
18685test -d src/$TARGETDIR || mkdir src/$TARGETDIR
18686 ;;
5213506e 18687
3ed8e5b6 18688 esac
5213506e 18689done # for ac_tag
3ed8e5b6 18690
3ed8e5b6 18691
5213506e 18692as_fn_exit 0
3ed8e5b6 18693_ACEOF
3ed8e5b6
AT
18694ac_clean_files=$ac_clean_files_save
18695
5213506e
RW
18696test $ac_write_fail = 0 ||
18697 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18698
3ed8e5b6
AT
18699
18700# configure is writing to config.log, and then calls config.status.
18701# config.status does its own redirection, appending to config.log.
18702# Unfortunately, on DOS this fails, as config.log is still kept open
18703# by configure, so config.status won't be able to write to it; its
18704# output is simply discarded. So we exec the FD to /dev/null,
18705# effectively closing config.log, so it can be properly (re)opened and
18706# appended to by config.status. When coming back to configure, we
18707# need to make the FD available again.
18708if test "$no_create" != yes; then
18709 ac_cs_success=:
18710 ac_config_status_args=
18711 test "$silent" = yes &&
18712 ac_config_status_args="$ac_config_status_args --quiet"
18713 exec 5>/dev/null
18714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18715 exec 5>>config.log
18716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18717 # would make configure fail if this is the last instruction.
5213506e
RW
18718 $ac_cs_success || as_fn_exit $?
18719fi
18720if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18722$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3ed8e5b6 18723fi
63e5e3e0 18724