]> gcc.gnu.org Git - gcc.git/blame - libffi/configure
Daily bump.
[gcc.git] / libffi / configure
CommitLineData
5be7b669
L
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libffi 3.4.2.
4#
5# Report bugs to <http://github.com/libffi/libffi/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
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 :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
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 }
81fi
82
83
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.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://github.com/libffi/libffi/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libffi'
592PACKAGE_TARNAME='libffi'
593PACKAGE_VERSION='3.4.2'
594PACKAGE_STRING='libffi 3.4.2'
595PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638get_gcc_base_ver
639LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
645OPT_LDFLAGS
646SECTION_LDFLAGS
647toolexeclibdir
648toolexecdir
649FFI_DEBUG_FALSE
650FFI_DEBUG_TRUE
651TARGET_OBJ
652TARGETDIR
653TARGET
654BUILD_DOCS_FALSE
655BUILD_DOCS_TRUE
656FFI_EXEC_TRAMPOLINE_TABLE
657FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659HAVE_LONG_DOUBLE_VARIANT
660HAVE_LONG_DOUBLE
661ALLOCA
662AM_LTLDFLAGS
663AM_RUNTESTFLAGS
664TESTSUBDIR_FALSE
665TESTSUBDIR_TRUE
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
967d4171 669SYSROOT_CFLAGS_FOR_TARGET
5be7b669 670READELF
6a6d3817
IS
671ENABLE_DARWIN_AT_RPATH_FALSE
672ENABLE_DARWIN_AT_RPATH_TRUE
5be7b669
L
673CXXCPP
674CPP
675OTOOL64
676OTOOL
677LIPO
678NMEDIT
679DSYMUTIL
680RANLIB
681AR
682OBJDUMP
683LN_S
684NM
685ac_ct_DUMPBIN
686DUMPBIN
687LD
688FGREP
689EGREP
690GREP
691SED
692LIBTOOL
693am__fastdepCCAS_FALSE
694am__fastdepCCAS_TRUE
695CCASDEPMODE
696CCASFLAGS
697CCAS
333efaea 698CET_FLAGS
5be7b669
L
699am__fastdepCXX_FALSE
700am__fastdepCXX_TRUE
701CXXDEPMODE
702ac_ct_CXX
703CXXFLAGS
704CXX
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
708am__nodep
709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__quote
713am__include
714DEPDIR
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722GENINSRC_FALSE
723GENINSRC_TRUE
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_os
752target_vendor
753target_cpu
754target
755host_os
756host_vendor
757host_cpu
758host
759build_os
760build_vendor
761build_cpu
762build
763multi_basedir
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_multilib
806enable_silent_rules
807enable_generated_files_in_srcdir
808enable_dependency_tracking
333efaea 809enable_cet
5be7b669
L
810enable_shared
811enable_static
812with_pic
813enable_fast_install
814with_gnu_ld
815enable_libtool_lock
6a6d3817 816enable_darwin_at_rpath
5be7b669
L
817enable_maintainer_mode
818enable_pax_emutramp
819enable_debug
820enable_structs
821enable_raw_api
822enable_exec_static_tramp
823enable_purify_safety
824with_toolexeclibdir
825enable_symvers
826with_gcc_major_version_only
827'
828 ac_precious_vars='build_alias
829host_alias
830target_alias
831CCAS
832CCASFLAGS
833CPP
834CPPFLAGS
835CXXCPP'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
885
886ac_prev=
887ac_dashdash=
888for ac_option
889do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1249fi
1250
1251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1264do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278done
1279
1280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
1282# FIXME: To remove some day.
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
1286
1287# FIXME: To remove some day.
1288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
1300
1301
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of libffi 3.4.2:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-multilib build many library versions (default)
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-generated-files-in-srcdir
1459 put copies of generated files in source dir intended
1460 for creating source tarballs for users without
1461 texinfo bison or flex
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
333efaea 1466 --enable-cet enable Intel CET in target libraries [default=auto]
5be7b669
L
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
6a6d3817
IS
1472 --enable-darwin-at-rpath
1473 install libraries with @rpath/library-name, requires
1474 rpaths to be added to executables
5be7b669
L
1475 --enable-maintainer-mode
1476 enable make rules and dependencies not useful (and
1477 sometimes confusing) to the casual installer
1478 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1479 --enable-debug debugging mode
1480 --disable-structs omit code for struct support
1481 --disable-raw-api make the raw api unavailable
1482 --enable-exec-static-tramp enable use of static exec trampolines
1483 --enable-purify-safety purify-safe mode
1484 --enable-symvers=STYLE enables symbol versioning of the shared library
1485 [default=yes]
1486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-toolexeclibdir=DIR
1494 install libraries built with a cross compiler within
1495 DIR
1496 --with-gcc-major-version-only
1497 use only GCC major number in filesystem paths
1498
1499Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
1509 CCAS assembler compiler command (defaults to CC)
1510 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1511 CPP C preprocessor
1512 CXXCPP C++ preprocessor
1513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
1517Report bugs to <http://github.com/libffi/libffi/issues>.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579 cat <<\_ACEOF
1580libffi configure 3.4.2
1581generated by GNU Autoconf 2.69
1582
1583Copyright (C) 2012 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_compile
1631
1632# ac_fn_cxx_try_compile LINENO
1633# ----------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_cxx_try_compile ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668} # ac_fn_cxx_try_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_link
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735else
1736 eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_cxx_try_cpp LINENO
1894# ------------------------
1895# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_cxx_try_cpp ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928} # ac_fn_cxx_try_cpp
1929
1930# ac_fn_cxx_try_link LINENO
1931# -------------------------
1932# Try to link conftest.$ac_ext, and return whether this succeeded.
1933ac_fn_cxx_try_link ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960else
1961 $as_echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974} # ac_fn_cxx_try_link
1975
1976# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977# --------------------------------------------
1978# Tries to find the compile-time value of EXPR in a program that includes
1979# INCLUDES, setting VAR accordingly. Returns whether the value could be
1980# computed
1981ac_fn_c_compute_int ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) >= 0)];
1993test_array [0] = 0;
1994return test_array [0];
1995
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_lo=0 ac_mid=0
2002 while :; do
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005$4
2006int
2007main ()
2008{
2009static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010test_array [0] = 0;
2011return test_array [0];
2012
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid; break
2019else
2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021 if test $ac_lo -le $ac_mid; then
2022 ac_lo= ac_hi=
2023 break
2024 fi
2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) < 0)];
2037test_array [0] = 0;
2038return test_array [0];
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_hi=-1 ac_mid=-1
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054test_array [0] = 0;
2055return test_array [0];
2056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_lo=$ac_mid; break
2063else
2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2065 if test $ac_mid -le $ac_hi; then
2066 ac_lo= ac_hi=
2067 break
2068 fi
2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073else
2074 ac_lo= ac_hi=
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079# Binary search between lo and hi bounds.
2080while test "x$ac_lo" != "x$ac_hi"; do
2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089test_array [0] = 0;
2090return test_array [0];
2091
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=$ac_mid
2098else
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102done
2103case $ac_lo in #((
2104?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105'') ac_retval=1 ;;
2106esac
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110$4
2111static long int longval () { return $2; }
2112static unsigned long int ulongval () { return $2; }
2113#include <stdio.h>
2114#include <stdlib.h>
2115int
2116main ()
2117{
2118
2119 FILE *f = fopen ("conftest.val", "w");
2120 if (! f)
2121 return 1;
2122 if (($2) < 0)
2123 {
2124 long int i = longval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%ld", i);
2128 }
2129 else
2130 {
2131 unsigned long int i = ulongval ();
2132 if (i != ($2))
2133 return 1;
2134 fprintf (f, "%lu", i);
2135 }
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_run "$LINENO"; then :
2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2146else
2147 ac_retval=1
2148fi
2149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2150 conftest.$ac_objext conftest.beam conftest.$ac_ext
2151rm -f conftest.val
2152
2153 fi
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 as_fn_set_status $ac_retval
2156
2157} # ac_fn_c_compute_int
2158
2159# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160# -------------------------------------------------------
2161# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162# the include files in INCLUDES and setting the cache variable VAR
2163# accordingly.
2164ac_fn_c_check_header_mongrel ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if eval \${$3+:} false; then :
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
2170if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172fi
2173eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176else
2177 # Is the header compilable?
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179$as_echo_n "checking $2 usability... " >&6; }
2180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183#include <$2>
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_header_compiler=yes
2187else
2188 ac_header_compiler=no
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192$as_echo "$ac_header_compiler" >&6; }
2193
2194# Is the header present?
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196$as_echo_n "checking $2 presence... " >&6; }
2197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h. */
2199#include <$2>
2200_ACEOF
2201if ac_fn_c_try_cpp "$LINENO"; then :
2202 ac_header_preproc=yes
2203else
2204 ac_header_preproc=no
2205fi
2206rm -f conftest.err conftest.i conftest.$ac_ext
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208$as_echo "$ac_header_preproc" >&6; }
2209
2210# So? What about this header?
2211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2212 yes:no: )
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217 ;;
2218 no:yes:* )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2222$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2226$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229( $as_echo "## ----------------------------------------------------- ##
2230## Report this to http://github.com/libffi/libffi/issues ##
2231## ----------------------------------------------------- ##"
2232 ) | sed "s/^/$as_me: WARNING: /" >&2
2233 ;;
2234esac
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236$as_echo_n "checking for $2... " >&6; }
2237if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239else
2240 eval "$3=\$ac_header_compiler"
2241fi
2242eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244$as_echo "$ac_res" >&6; }
2245fi
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247
2248} # ac_fn_c_check_header_mongrel
2249
2250# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251# -------------------------------------------
2252# Tests whether TYPE exists after having included INCLUDES, setting cache
2253# variable VAR accordingly.
2254ac_fn_c_check_type ()
2255{
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
2259if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2261else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h. */
2265$4
2266int
2267main ()
2268{
2269if (sizeof ($2))
2270 return 0;
2271 ;
2272 return 0;
2273}
2274_ACEOF
2275if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$4
2279int
2280main ()
2281{
2282if (sizeof (($2)))
2283 return 0;
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289
2290else
2291 eval "$3=yes"
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294fi
2295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296fi
2297eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301
2302} # ac_fn_c_check_type
2303cat >config.log <<_ACEOF
2304This file contains any messages produced by compilers while
2305running configure, to aid debugging if configure makes a mistake.
2306
2307It was created by libffi $as_me 3.4.2, which was
2308generated by GNU Autoconf 2.69. Invocation command line was
2309
2310 $ $0 $@
2311
2312_ACEOF
2313exec 5>>config.log
2314{
2315cat <<_ASUNAME
2316## --------- ##
2317## Platform. ##
2318## --------- ##
2319
2320hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325
2326/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2328
2329/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336
2337_ASUNAME
2338
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346IFS=$as_save_IFS
2347
2348} >&5
2349
2350cat >&5 <<_ACEOF
2351
2352
2353## ----------- ##
2354## Core tests. ##
2355## ----------- ##
2356
2357_ACEOF
2358
2359
2360# Keep a trace of the command line.
2361# Strip out --no-create and --no-recursion so they do not pile up.
2362# Strip out --silent because we don't want to record it for future runs.
2363# Also quote any args containing shell meta-characters.
2364# Make two passes to allow for proper duplicate-argument suppression.
2365ac_configure_args=
2366ac_configure_args0=
2367ac_configure_args1=
2368ac_must_keep_next=false
2369for ac_pass in 1 2
2370do
2371 for ac_arg
2372 do
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 2)
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2396 ;;
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2399 fi
2400 as_fn_append ac_configure_args " '$ac_arg'"
2401 ;;
2402 esac
2403 done
2404done
2405{ ac_configure_args0=; unset ac_configure_args0;}
2406{ ac_configure_args1=; unset ac_configure_args1;}
2407
2408# When interrupted or exit'd, cleanup temporary files, and complete
2409# config.log. We remove comments because anyway the quotes in there
2410# would cause problems or look ugly.
2411# WARNING: Use '\'' to represent an apostrophe within the trap.
2412# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2415 {
2416 echo
2417
2418 $as_echo "## ---------------- ##
2419## Cache variables. ##
2420## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423(
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451)
2452 echo
2453
2454 $as_echo "## ----------------- ##
2455## Output variables. ##
2456## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470## File substitutions. ##
2471## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2474 do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2482 fi
2483
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486## confdefs.h. ##
2487## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2491 fi
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2499' 0
2500for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502done
2503ac_signal=0
2504
2505# confdefs.h avoids OS command line length limits that DEFS can exceed.
2506rm -f -r conftest* confdefs.h
2507
2508$as_echo "/* confdefs.h */" > confdefs.h
2509
2510# Predefined preprocessor variables.
2511
2512cat >>confdefs.h <<_ACEOF
2513#define PACKAGE_NAME "$PACKAGE_NAME"
2514_ACEOF
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518_ACEOF
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_VERSION "$PACKAGE_VERSION"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_STRING "$PACKAGE_STRING"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_URL "$PACKAGE_URL"
2534_ACEOF
2535
2536
2537# Let the site file select an alternate cache file if it wants to.
2538# Prefer an explicitly selected file to automatically selected ones.
2539ac_site_file1=NONE
2540ac_site_file2=NONE
2541if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
2551else
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
2554fi
2555for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556do
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565as_fn_error $? "failed to load site script $ac_site_file
2566See \`config.log' for more details" "$LINENO" 5; }
2567 fi
2568done
2569
2570if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575$as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2580 fi
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583$as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
2585fi
2586
2587# Check that the precious variables saved in the cache have kept the same
2588# value.
2589ac_cache_corrupted=false
2590for ac_var in $ac_precious_vars; do
2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592 eval ac_new_set=\$ac_env_${ac_var}_set
2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594 eval ac_new_val=\$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2596 set,)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,set)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,);;
2605 *)
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w=`echo x $ac_old_val`
2609 ac_new_val_w=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted=:
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\$ac_old_val
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 fi;;
2624 esac
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2627 case $ac_new_val in
2628 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg=$ac_var=$ac_new_val ;;
2630 esac
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 esac
2635 fi
2636done
2637if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2643fi
2644## -------------------- ##
2645## Main body of script. ##
2646## -------------------- ##
2647
2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653
2654
2655
2656
2657
2658ac_config_headers="$ac_config_headers fficonfig.h"
2659
2660
2661# Default to --enable-multilib
2662# Check whether --enable-multilib was given.
2663if test "${enable_multilib+set}" = set; then :
2664 enableval=$enable_multilib; case "$enableval" in
2665 yes) multilib=yes ;;
2666 no) multilib=no ;;
2667 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2668 esac
2669else
2670 multilib=yes
2671fi
2672
2673
2674# We may get other options which we leave undocumented:
2675# --with-target-subdir, --with-multisrctop, --with-multisubdir
2676# See config-ml.in if you want the gory details.
2677
2678if test "$srcdir" = "."; then
2679 if test "$with_target_subdir" != "."; then
2680 multi_basedir="$srcdir/$with_multisrctop../.."
2681 else
2682 multi_basedir="$srcdir/$with_multisrctop.."
2683 fi
2684else
2685 multi_basedir="$srcdir/.."
2686fi
2687
2688
2689# Even if the default multilib is not a cross compilation,
2690# it may be that some of the other multilibs are.
2691if test $cross_compiling = no && test $multilib = yes \
2692 && test "x${with_multisubdir}" != x ; then
2693 cross_compiling=maybe
2694fi
2695
2696ac_config_commands="$ac_config_commands default-1"
2697
2698
2699ac_aux_dir=
2700for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2702 ac_aux_dir=$ac_dir
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2704 break
2705 elif test -f "$ac_dir/install.sh"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2708 break
2709 elif test -f "$ac_dir/shtool"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2712 break
2713 fi
2714done
2715if test -z "$ac_aux_dir"; then
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717fi
2718
2719# These three variables are undocumented and unsupported,
2720# and are intended to be withdrawn in a future Autoconf release.
2721# They can cause serious problems if a builder's source tree is in a directory
2722# whose full name contains unusual characters.
2723ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2726
2727
2728# Make sure we can run config.sub.
2729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733$as_echo_n "checking build system type... " >&6; }
2734if ${ac_cv_build+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 ac_build_alias=$build_alias
2738test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740test "x$ac_build_alias" = x &&
2741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747$as_echo "$ac_cv_build" >&6; }
2748case $ac_cv_build in
2749*-*-*) ;;
2750*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751esac
2752build=$ac_cv_build
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_build
2755shift
2756build_cpu=$1
2757build_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761build_os=$*
2762IFS=$ac_save_IFS
2763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767$as_echo_n "checking host system type... " >&6; }
2768if ${ac_cv_host+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776fi
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780$as_echo "$ac_cv_host" >&6; }
2781case $ac_cv_host in
2782*-*-*) ;;
2783*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784esac
2785host=$ac_cv_host
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_host
2788shift
2789host_cpu=$1
2790host_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794host_os=$*
2795IFS=$ac_save_IFS
2796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800$as_echo_n "checking target system type... " >&6; }
2801if ${ac_cv_target+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803else
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809fi
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813$as_echo "$ac_cv_target" >&6; }
2814case $ac_cv_target in
2815*-*-*) ;;
2816*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2817esac
2818target=$ac_cv_target
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_target
2821shift
2822target_cpu=$1
2823target_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827target_os=$*
2828IFS=$ac_save_IFS
2829case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
2831
2832# The aliases save the names the user supplied, while $host etc.
2833# will get canonicalized.
2834test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
2838
2839target_alias=${target_alias-$host_alias}
2840
2841am__api_version='1.15'
2842
2843# Find a good install program. We prefer a C program (faster),
2844# so one script is as good as another. But avoid the broken or
2845# incompatible versions:
2846# SysV /etc/install, /usr/sbin/install
2847# SunOS /usr/etc/install
2848# IRIX /sbin/install
2849# AIX /bin/install
2850# AmigaOS /C/install, which installs bootblocks on floppy discs
2851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854# OS/2's system install, which has a completely different semantic
2855# ./install, which can be erroneously created by make from ./install.sh.
2856# Reject install programs that cannot install multiple files.
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858$as_echo_n "checking for a BSD-compatible install... " >&6; }
2859if test -z "$INSTALL"; then
2860if ${ac_cv_path_install+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 # Account for people who put trailing slashes in PATH elements.
2869case $as_dir/ in #((
2870 ./ | .// | /[cC]/* | \
2871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2873 /usr/ucb/* ) ;;
2874 *)
2875 # OSF1 and SCO ODT 3.0 have their own names for install.
2876 # Don't use installbsd from OSF since it installs stuff as root
2877 # by default.
2878 for ac_prog in ginstall scoinst install; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881 if test $ac_prog = install &&
2882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883 # AIX install. It has an incompatible calling convention.
2884 :
2885 elif test $ac_prog = install &&
2886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887 # program-specific install script used by HP pwplus--don't use.
2888 :
2889 else
2890 rm -rf conftest.one conftest.two conftest.dir
2891 echo one > conftest.one
2892 echo two > conftest.two
2893 mkdir conftest.dir
2894 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895 test -s conftest.one && test -s conftest.two &&
2896 test -s conftest.dir/conftest.one &&
2897 test -s conftest.dir/conftest.two
2898 then
2899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2900 break 3
2901 fi
2902 fi
2903 fi
2904 done
2905 done
2906 ;;
2907esac
2908
2909 done
2910IFS=$as_save_IFS
2911
2912rm -rf conftest.one conftest.two conftest.dir
2913
2914fi
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL=$ac_cv_path_install
2917 else
2918 # As a last resort, use the slow shell script. Don't cache a
2919 # value for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the value is a relative name.
2922 INSTALL=$ac_install_sh
2923 fi
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926$as_echo "$INSTALL" >&6; }
2927
2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929# It thinks the first close brace ends the variable substitution.
2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937$as_echo_n "checking whether build environment is sane... " >&6; }
2938# Reject unsafe characters in $srcdir or the absolute working directory
2939# name. Accept space and tab only in the latter.
2940am_lf='
2941'
2942case `pwd` in
2943 *[\\\"\#\$\&\'\`$am_lf]*)
2944 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2945esac
2946case $srcdir in
2947 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2948 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2949esac
2950
2951# Do 'set' in a subshell so we don't clobber the current shell's
2952# arguments. Must try -L first in case configure is actually a
2953# symlink; some systems play weird games with the mod time of symlinks
2954# (eg FreeBSD returns the mod time of the symlink's containing
2955# directory).
2956if (
2957 am_has_slept=no
2958 for am_try in 1 2; do
2959 echo "timestamp, slept: $am_has_slept" > conftest.file
2960 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961 if test "$*" = "X"; then
2962 # -L didn't work.
2963 set X `ls -t "$srcdir/configure" conftest.file`
2964 fi
2965 if test "$*" != "X $srcdir/configure conftest.file" \
2966 && test "$*" != "X conftest.file $srcdir/configure"; then
2967
2968 # If neither matched, then we have a broken ls. This can happen
2969 # if, for instance, CONFIG_SHELL is bash and it inherits a
2970 # broken ls alias from the environment. This has actually
2971 # happened. Such a system could not be considered "sane".
2972 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2973 alias in your environment" "$LINENO" 5
2974 fi
2975 if test "$2" = conftest.file || test $am_try -eq 2; then
2976 break
2977 fi
2978 # Just in case.
2979 sleep 1
2980 am_has_slept=yes
2981 done
2982 test "$2" = conftest.file
2983 )
2984then
2985 # Ok.
2986 :
2987else
2988 as_fn_error $? "newly created file is older than distributed files!
2989Check your system clock" "$LINENO" 5
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992$as_echo "yes" >&6; }
2993# If we didn't sleep, we still need to ensure time stamps of config.status and
2994# generated files are strictly newer.
2995am_sleep_pid=
2996if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2997 ( sleep 1 ) &
2998 am_sleep_pid=$!
2999fi
3000
3001rm -f conftest.file
3002
3003test "$program_prefix" != NONE &&
3004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005# Use a double $ so make ignores it.
3006test "$program_suffix" != NONE &&
3007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008# Double any \ or $.
3009# By default was `s,x,x', remove it if useless.
3010ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3012
3013# Expand $ac_aux_dir to an absolute path.
3014am_aux_dir=`cd "$ac_aux_dir" && pwd`
3015
3016if test x"${MISSING+set}" != xset; then
3017 case $am_aux_dir in
3018 *\ * | *\ *)
3019 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3020 *)
3021 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022 esac
3023fi
3024# Use eval to expand $SHELL
3025if eval "$MISSING --is-lightweight"; then
3026 am_missing_run="$MISSING "
3027else
3028 am_missing_run=
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3030$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3031fi
3032
3033if test x"${install_sh+set}" != xset; then
3034 case $am_aux_dir in
3035 *\ * | *\ *)
3036 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037 *)
3038 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 esac
3040fi
3041
3042# Installed binaries are usually stripped using 'strip' when the user
3043# run "make install-strip". However 'strip' might not be the right
3044# tool to use in cross-compilation environments, therefore Automake
3045# will honor the 'STRIP' environment variable to overrule this program.
3046if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}strip; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if ${ac_cv_prog_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070 done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075STRIP=$ac_cv_prog_STRIP
3076if test -n "$STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078$as_echo "$STRIP" >&6; }
3079else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085fi
3086if test -z "$ac_cv_prog_STRIP"; then
3087 ac_ct_STRIP=$STRIP
3088 # Extract the first word of "strip", so it can be a program name with args.
3089set dummy strip; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094else
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110 done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118$as_echo "$ac_ct_STRIP" >&6; }
3119else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124 if test "x$ac_ct_STRIP" = x; then
3125 STRIP=":"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133 STRIP=$ac_ct_STRIP
3134 fi
3135else
3136 STRIP="$ac_cv_prog_STRIP"
3137fi
3138
3139fi
3140INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144if test -z "$MKDIR_P"; then
3145 if ${ac_cv_path_mkdir+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_prog in mkdir gmkdir; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3156 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157 'mkdir (GNU coreutils) '* | \
3158 'mkdir (coreutils) '* | \
3159 'mkdir (fileutils) '4.1*)
3160 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161 break 3;;
3162 esac
3163 done
3164 done
3165 done
3166IFS=$as_save_IFS
3167
3168fi
3169
3170 test -d ./--version && rmdir ./--version
3171 if test "${ac_cv_path_mkdir+set}" = set; then
3172 MKDIR_P="$ac_cv_path_mkdir -p"
3173 else
3174 # As a last resort, use the slow shell script. Don't cache a
3175 # value for MKDIR_P within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the value is a relative name.
3178 MKDIR_P="$ac_install_sh -d"
3179 fi
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182$as_echo "$MKDIR_P" >&6; }
3183
3184for ac_prog in gawk mawk nawk awk
3185do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; 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 ${ac_cv_prog_AWK+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$AWK"; then
3194 ac_cv_prog_AWK="$AWK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_AWK="$ac_prog"
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
3213AWK=$ac_cv_prog_AWK
3214if test -n "$AWK"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3216$as_echo "$AWK" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223 test -n "$AWK" && break
3224done
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3227$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228set x ${MAKE-make}
3229ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3230if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232else
3233 cat >conftest.make <<\_ACEOF
3234SHELL = /bin/sh
3235all:
3236 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237_ACEOF
3238# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3239case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 *@@@%%%=?*=@@@%%%*)
3241 eval ac_cv_prog_make_${ac_make}_set=yes;;
3242 *)
3243 eval ac_cv_prog_make_${ac_make}_set=no;;
3244esac
3245rm -f conftest.make
3246fi
3247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 SET_MAKE=
3251else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 SET_MAKE="MAKE=${MAKE-make}"
3255fi
3256
3257rm -rf .tst 2>/dev/null
3258mkdir .tst 2>/dev/null
3259if test -d .tst; then
3260 am__leading_dot=.
3261else
3262 am__leading_dot=_
3263fi
3264rmdir .tst 2>/dev/null
3265
3266# Check whether --enable-silent-rules was given.
3267if test "${enable_silent_rules+set}" = set; then :
3268 enableval=$enable_silent_rules;
3269fi
3270
3271case $enable_silent_rules in # (((
3272 yes) AM_DEFAULT_VERBOSITY=0;;
3273 no) AM_DEFAULT_VERBOSITY=1;;
3274 *) AM_DEFAULT_VERBOSITY=1;;
3275esac
3276am_make=${MAKE-make}
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279if ${am_cv_make_support_nested_variables+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281else
3282 if $as_echo 'TRUE=$(BAR$(V))
3283BAR0=false
3284BAR1=true
3285V=1
3286am__doit:
3287 @$(TRUE)
3288.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289 am_cv_make_support_nested_variables=yes
3290else
3291 am_cv_make_support_nested_variables=no
3292fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295$as_echo "$am_cv_make_support_nested_variables" >&6; }
3296if test $am_cv_make_support_nested_variables = yes; then
3297 AM_V='$(V)'
3298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299else
3300 AM_V=$AM_DEFAULT_VERBOSITY
3301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3302fi
3303AM_BACKSLASH='\'
3304
3305if test "`cd $srcdir && pwd`" != "`pwd`"; then
3306 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3307 # is not polluted with repeated "-I."
3308 am__isrc=' -I$(srcdir)'
3309 # test to see if srcdir already configured
3310 if test -f $srcdir/config.status; then
3311 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3312 fi
3313fi
3314
3315# test whether we have cygpath
3316if test -z "$CYGPATH_W"; then
3317 if (cygpath --version) >/dev/null 2>/dev/null; then
3318 CYGPATH_W='cygpath -w'
3319 else
3320 CYGPATH_W=echo
3321 fi
3322fi
3323
3324
3325# Define the identity of the package.
3326 PACKAGE='libffi'
3327 VERSION='3.4.2'
3328
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE "$PACKAGE"
3332_ACEOF
3333
3334
3335cat >>confdefs.h <<_ACEOF
3336#define VERSION "$VERSION"
3337_ACEOF
3338
3339# Some tools Automake needs.
3340
3341ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3342
3343
3344AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3345
3346
3347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3348
3349
3350AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3351
3352
3353MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3354
3355# For better backward compatibility. To be removed once Automake 1.9.x
3356# dies out for good. For more background, see:
3357# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359mkdir_p='$(MKDIR_P)'
3360
3361# We need awk for the "check" target (and possibly the TAP driver). The
3362# system "awk" is bad on some platforms.
3363# Always define AMTAR for backward compatibility. Yes, it's still used
3364# in the wild :-( We should find a proper way to deprecate it ...
3365AMTAR='$${TAR-tar}'
3366
3367
3368# We'll loop over all known methods to create a tar archive until one works.
3369_am_tools='gnutar pax cpio none'
3370
3371am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3372
3373
3374
3375
3376
3377
3378# POSIX will say in a future version that running "rm -f" with no argument
3379# is OK; and we want to be able to make that assumption in our Makefile
3380# recipes. So use an aggressive probe to check that the usage we want is
3381# actually supported "in the wild" to an acceptable degree.
3382# See automake bug#10828.
3383# To make any issue more visible, cause the running configure to be aborted
3384# by default if the 'rm' program in use doesn't match our expectations; the
3385# user can still override this though.
3386if rm -f && rm -fr && rm -rf; then : OK; else
3387 cat >&2 <<'END'
3388Oops!
3389
3390Your 'rm' program seems unable to run without file operands specified
3391on the command line, even when the '-f' option is present. This is contrary
3392to the behaviour of most rm programs out there, and not conforming with
3393the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3394
3395Please tell bug-automake@gnu.org about your system, including the value
3396of your $PATH and any error possibly output before this message. This
3397can help us improve future automake versions.
3398
3399END
3400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3401 echo 'Configuration will proceed anyway, since you have set the' >&2
3402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3403 echo >&2
3404 else
3405 cat >&2 <<'END'
3406Aborting the configuration process, to ensure you take notice of the issue.
3407
3408You can download and install GNU coreutils to get an 'rm' implementation
3409that behaves properly: <http://www.gnu.org/software/coreutils/>.
3410
3411If you want to complete the configuration process using your problematic
3412'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3413to "yes", and re-run configure.
3414
3415END
3416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3417 fi
3418fi
3419
3420
3421# We would like our source tree to be readonly. However when releases or
3422# pre-releases are generated, the flex/bison generated files as well as the
3423# various formats of manuals need to be included along with the rest of the
3424# sources. Therefore we have --enable-generated-files-in-srcdir to do
3425# just that.
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3427$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3428# Check whether --enable-generated-files-in-srcdir was given.
3429if test "${enable_generated_files_in_srcdir+set}" = set; then :
3430 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3431 yes) enable_generated_files_in_srcdir=yes ;;
3432 no) enable_generated_files_in_srcdir=no ;;
3433 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3434 esac
3435else
3436 enable_generated_files_in_srcdir=no
3437fi
3438
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3440$as_echo "$enable_generated_files_in_srcdir" >&6; }
3441 if test "$enable_generated_files_in_srcdir" = yes; then
3442 GENINSRC_TRUE=
3443 GENINSRC_FALSE='#'
3444else
3445 GENINSRC_TRUE='#'
3446 GENINSRC_FALSE=
3447fi
3448
3449
3450# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3451# We must force CC to /not/ be precious variables; otherwise
3452# the wrong, non-multilib-adjusted value will be used in multilibs.
3453# As a side effect, we have to subst CFLAGS ourselves.
3454# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3455# defaults of its own if none are provided.
3456
3457
3458
3459save_CFLAGS=$CFLAGS
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465if test -n "$ac_tool_prefix"; then
3466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3467set dummy ${ac_tool_prefix}gcc; ac_word=$2
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469$as_echo_n "checking for $ac_word... " >&6; }
3470if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475else
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487done
3488 done
3489IFS=$as_save_IFS
3490
3491fi
3492fi
3493CC=$ac_cv_prog_CC
3494if test -n "$CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496$as_echo "$CC" >&6; }
3497else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499$as_echo "no" >&6; }
3500fi
3501
3502
3503fi
3504if test -z "$ac_cv_prog_CC"; then
3505 ac_ct_CC=$CC
3506 # Extract the first word of "gcc", so it can be a program name with args.
3507set dummy gcc; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if ${ac_cv_prog_ac_ct_CC+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512else
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_ac_ct_CC="gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527done
3528 done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534if test -n "$ac_ct_CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536$as_echo "$ac_ct_CC" >&6; }
3537else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542 if test "x$ac_ct_CC" = x; then
3543 CC=""
3544 else
3545 case $cross_compiling:$ac_tool_warned in
3546yes:)
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549ac_tool_warned=yes ;;
3550esac
3551 CC=$ac_ct_CC
3552 fi
3553else
3554 CC="$ac_cv_prog_CC"
3555fi
3556
3557if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560set dummy ${ac_tool_prefix}cc; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; }
3563if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580done
3581 done
3582IFS=$as_save_IFS
3583
3584fi
3585fi
3586CC=$ac_cv_prog_CC
3587if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589$as_echo "$CC" >&6; }
3590else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592$as_echo "no" >&6; }
3593fi
3594
3595
3596 fi
3597fi
3598if test -z "$CC"; then
3599 # Extract the first word of "cc", so it can be a program name with args.
3600set dummy cc; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608else
3609 ac_prog_rejected=no
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618 ac_prog_rejected=yes
3619 continue
3620 fi
3621 ac_cv_prog_CC="cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626 done
3627IFS=$as_save_IFS
3628
3629if test $ac_prog_rejected = yes; then
3630 # We found a bogon in the path, so make sure we never use it.
3631 set dummy $ac_cv_prog_CC
3632 shift
3633 if test $# != 0; then
3634 # We chose a different compiler from the bogus one.
3635 # However, it has the same basename, so the bogon will be chosen
3636 # first if we set CC to just the basename; use the full file name.
3637 shift
3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3639 fi
3640fi
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646$as_echo "$CC" >&6; }
3647else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
3650fi
3651
3652
3653fi
3654if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in cl.exe
3657 do
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661$as_echo_n "checking for $ac_word... " >&6; }
3662if ${ac_cv_prog_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679done
3680 done
3681IFS=$as_save_IFS
3682
3683fi
3684fi
3685CC=$ac_cv_prog_CC
3686if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688$as_echo "$CC" >&6; }
3689else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691$as_echo "no" >&6; }
3692fi
3693
3694
3695 test -n "$CC" && break
3696 done
3697fi
3698if test -z "$CC"; then
3699 ac_ct_CC=$CC
3700 for ac_prog in cl.exe
3701do
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703set dummy $ac_prog; ac_word=$2
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705$as_echo_n "checking for $ac_word... " >&6; }
3706if ${ac_cv_prog_ac_ct_CC+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708else
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711else
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723done
3724 done
3725IFS=$as_save_IFS
3726
3727fi
3728fi
3729ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730if test -n "$ac_ct_CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732$as_echo "$ac_ct_CC" >&6; }
3733else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735$as_echo "no" >&6; }
3736fi
3737
3738
3739 test -n "$ac_ct_CC" && break
3740done
3741
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746yes:)
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749ac_tool_warned=yes ;;
3750esac
3751 CC=$ac_ct_CC
3752 fi
3753fi
3754
3755fi
3756
3757
3758test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760as_fn_error $? "no acceptable C compiler found in \$PATH
3761See \`config.log' for more details" "$LINENO" 5; }
3762
3763# Provide some information about the compiler.
3764$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3765set X $ac_compile
3766ac_compiler=$2
3767for ac_option in --version -v -V -qversion; do
3768 { { ac_try="$ac_compiler $ac_option >&5"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774$as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3776 ac_status=$?
3777 if test -s conftest.err; then
3778 sed '10a\
3779... rest of stderr output deleted ...
3780 10q' conftest.err >conftest.er1
3781 cat conftest.er1 >&5
3782 fi
3783 rm -f conftest.er1 conftest.err
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }
3786done
3787
3788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h. */
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799ac_clean_files_save=$ac_clean_files
3800ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3801# Try to create an executable without -o first, disregard a.out.
3802# It will help us diagnose broken compilers, and finding out an intuition
3803# of exeext.
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805$as_echo_n "checking whether the C compiler works... " >&6; }
3806ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3807
3808# The possible output files:
3809ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3810
3811ac_rmfiles=
3812for ac_file in $ac_files
3813do
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3817 esac
3818done
3819rm -f $ac_rmfiles
3820
3821if { { ac_try="$ac_link_default"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827$as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link_default") 2>&5
3829 ac_status=$?
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3834# in a Makefile. We should not override ac_cv_exeext if it was cached,
3835# so that the user can short-circuit this test for compilers unknown to
3836# Autoconf.
3837for ac_file in $ac_files ''
3838do
3839 test -f "$ac_file" || continue
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3842 ;;
3843 [ab].out )
3844 # We found the default executable, but exeext='' is most
3845 # certainly right.
3846 break;;
3847 *.* )
3848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3849 then :; else
3850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851 fi
3852 # We set ac_cv_exeext here because the later test for it is not
3853 # safe: cross compilers may not add the suffix if given an `-o'
3854 # argument, so we may need to know it at that point already.
3855 # Even if this section looks crufty: it has the advantage of
3856 # actually working.
3857 break;;
3858 * )
3859 break;;
3860 esac
3861done
3862test "$ac_cv_exeext" = no && ac_cv_exeext=
3863
3864else
3865 ac_file=''
3866fi
3867if test -z "$ac_file"; then :
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
3870$as_echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875as_fn_error 77 "C compiler cannot create executables
3876See \`config.log' for more details" "$LINENO" 5; }
3877else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879$as_echo "yes" >&6; }
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3882$as_echo_n "checking for C compiler default output file name... " >&6; }
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884$as_echo "$ac_file" >&6; }
3885ac_exeext=$ac_cv_exeext
3886
3887rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3888ac_clean_files=$ac_clean_files_save
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3890$as_echo_n "checking for suffix of executables... " >&6; }
3891if { { ac_try="$ac_link"
3892case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895esac
3896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897$as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3903# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3904# work properly (i.e., refer to `conftest.exe'), while it won't with
3905# `rm'.
3906for ac_file in conftest.exe conftest conftest.*; do
3907 test -f "$ac_file" || continue
3908 case $ac_file in
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911 break;;
3912 * ) break;;
3913 esac
3914done
3915else
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3919See \`config.log' for more details" "$LINENO" 5; }
3920fi
3921rm -f conftest conftest$ac_cv_exeext
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3923$as_echo "$ac_cv_exeext" >&6; }
3924
3925rm -f conftest.$ac_ext
3926EXEEXT=$ac_cv_exeext
3927ac_exeext=$EXEEXT
3928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h. */
3930#include <stdio.h>
3931int
3932main ()
3933{
3934FILE *f = fopen ("conftest.out", "w");
3935 return ferror (f) || fclose (f) != 0;
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941ac_clean_files="$ac_clean_files conftest.out"
3942# Check that the compiler produces executables we can run. If not, either
3943# the compiler is broken, or we cross compile.
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945$as_echo_n "checking whether we are cross compiling... " >&6; }
3946if test "$cross_compiling" != yes; then
3947 { { ac_try="$ac_link"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953$as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }
3958 if { ac_try='./conftest$ac_cv_exeext'
3959 { { case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964$as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_try") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; }; then
3969 cross_compiling=no
3970 else
3971 if test "$cross_compiling" = maybe; then
3972 cross_compiling=yes
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976as_fn_error $? "cannot run C compiled programs.
3977If you meant to cross compile, use \`--host'.
3978See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980 fi
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3983$as_echo "$cross_compiling" >&6; }
3984
3985rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3986ac_clean_files=$ac_clean_files_save
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988$as_echo_n "checking for suffix of object files... " >&6; }
3989if ${ac_cv_objext+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994
3995int
3996main ()
3997{
3998
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.o conftest.obj
4004if { { ac_try="$ac_compile"
4005case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008esac
4009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010$as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020 break;;
4021 esac
4022done
4023else
4024 $as_echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029as_fn_error $? "cannot compute suffix of object files: cannot compile
4030See \`config.log' for more details" "$LINENO" 5; }
4031fi
4032rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035$as_echo "$ac_cv_objext" >&6; }
4036OBJEXT=$ac_cv_objext
4037ac_objext=$OBJEXT
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040if ${ac_cv_c_compiler_gnu+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
4045
4046int
4047main ()
4048{
4049#ifndef __GNUC__
4050 choke me
4051#endif
4052
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_compiler_gnu=yes
4059else
4060 ac_compiler_gnu=no
4061fi
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068if test $ac_compiler_gnu = yes; then
4069 GCC=yes
4070else
4071 GCC=
4072fi
4073ac_test_CFLAGS=${CFLAGS+set}
4074ac_save_CFLAGS=$CFLAGS
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076$as_echo_n "checking whether $CC accepts -g... " >&6; }
4077if ${ac_cv_prog_cc_g+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4082 ac_cv_prog_cc_g=no
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
4097else
4098 CFLAGS=""
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h. */
4101
4102int
4103main ()
4104{
4105
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110if ac_fn_c_try_compile "$LINENO"; then :
4111
4112else
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h. */
4117
4118int
4119main ()
4120{
4121
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128fi
4129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137$as_echo "$ac_cv_prog_cc_g" >&6; }
4138if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4145 fi
4146else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4151 fi
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155if ${ac_cv_prog_cc_c89+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157else
4158 ac_cv_prog_cc_c89=no
4159ac_save_CC=$CC
4160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h. */
4162#include <stdarg.h>
4163#include <stdio.h>
4164struct stat;
4165/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4166struct buf { int x; };
4167FILE * (*rcsopen) (struct buf *, struct stat *, int);
4168static char *e (p, i)
4169 char **p;
4170 int i;
4171{
4172 return p[i];
4173}
4174static char *f (char * (*g) (char **, int), char **p, ...)
4175{
4176 char *s;
4177 va_list v;
4178 va_start (v,p);
4179 s = g (p, va_arg (v,int));
4180 va_end (v);
4181 return s;
4182}
4183
4184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4185 function prototypes and stuff, but not '\xHH' hex character constants.
4186 These don't provoke an error unfortunately, instead are silently treated
4187 as 'x'. The following induces an error, until -std is added to get
4188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4189 array size at least. It's necessary to write '\x00'==0 to get something
4190 that's true only with -std. */
4191int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4192
4193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4194 inside strings and character constants. */
4195#define FOO(x) 'x'
4196int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4197
4198int test (int i, double x);
4199struct s1 {int (*f) (int a);};
4200struct s2 {int (*f) (double a);};
4201int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202int argc;
4203char **argv;
4204int
4205main ()
4206{
4207return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4214do
4215 CC="$ac_save_CC $ac_arg"
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_c89=$ac_arg
4218fi
4219rm -f core conftest.err conftest.$ac_objext
4220 test "x$ac_cv_prog_cc_c89" != "xno" && break
4221done
4222rm -f conftest.$ac_ext
4223CC=$ac_save_CC
4224
4225fi
4226# AC_CACHE_VAL
4227case "x$ac_cv_prog_cc_c89" in
4228 x)
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230$as_echo "none needed" >&6; } ;;
4231 xno)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233$as_echo "unsupported" >&6; } ;;
4234 *)
4235 CC="$CC $ac_cv_prog_cc_c89"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4238esac
4239if test "x$ac_cv_prog_cc_c89" != xno; then :
4240
4241fi
4242
4243ac_ext=c
4244ac_cpp='$CPP $CPPFLAGS'
4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4255$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4256if ${am_cv_prog_cc_c_o+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h. */
4261
4262int
4263main ()
4264{
4265
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270 # Make sure it works both with $CC and with simple cc.
4271 # Following AC_PROG_CC_C_O, we do the test twice because some
4272 # compilers refuse to overwrite an existing .o file with -o,
4273 # though they will create one.
4274 am_cv_prog_cc_c_o=yes
4275 for am_i in 1 2; do
4276 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4277 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } \
4281 && test -f conftest2.$ac_objext; then
4282 : OK
4283 else
4284 am_cv_prog_cc_c_o=no
4285 break
4286 fi
4287 done
4288 rm -f core conftest*
4289 unset am_i
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4292$as_echo "$am_cv_prog_cc_c_o" >&6; }
4293if test "$am_cv_prog_cc_c_o" != yes; then
4294 # Losing compiler, so override with the script.
4295 # FIXME: It is wrong to rewrite CC.
4296 # But if we don't then we get into trouble of one sort or another.
4297 # A longer-term fix would be to have automake use am__CC in this case,
4298 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4299 CC="$am_aux_dir/compile $CC"
4300fi
4301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307DEPDIR="${am__leading_dot}deps"
4308
4309ac_config_commands="$ac_config_commands depfiles"
4310
4311
4312am_make=${MAKE-make}
4313cat > confinc << 'END'
4314am__doit:
4315 @echo this is the am__doit target
4316.PHONY: am__doit
4317END
4318# If we don't find an include directive, just comment out the code.
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4320$as_echo_n "checking for style of include used by $am_make... " >&6; }
4321am__include="#"
4322am__quote=
4323_am_result=none
4324# First try GNU make style include.
4325echo "include confinc" > confmf
4326# Ignore all kinds of additional output from 'make'.
4327case `$am_make -s -f confmf 2> /dev/null` in #(
4328*the\ am__doit\ target*)
4329 am__include=include
4330 am__quote=
4331 _am_result=GNU
4332 ;;
4333esac
4334# Now try BSD make style include.
4335if test "$am__include" = "#"; then
4336 echo '.include "confinc"' > confmf
4337 case `$am_make -s -f confmf 2> /dev/null` in #(
4338 *the\ am__doit\ target*)
4339 am__include=.include
4340 am__quote="\""
4341 _am_result=BSD
4342 ;;
4343 esac
4344fi
4345
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4348$as_echo "$_am_result" >&6; }
4349rm -f confinc confmf
4350
4351# Check whether --enable-dependency-tracking was given.
4352if test "${enable_dependency_tracking+set}" = set; then :
4353 enableval=$enable_dependency_tracking;
4354fi
4355
4356if test "x$enable_dependency_tracking" != xno; then
4357 am_depcomp="$ac_aux_dir/depcomp"
4358 AMDEPBACKSLASH='\'
4359 am__nodep='_no'
4360fi
4361 if test "x$enable_dependency_tracking" != xno; then
4362 AMDEP_TRUE=
4363 AMDEP_FALSE='#'
4364else
4365 AMDEP_TRUE='#'
4366 AMDEP_FALSE=
4367fi
4368
4369
4370
4371depcc="$CC" am_compiler_list=
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4374$as_echo_n "checking dependency style of $depcc... " >&6; }
4375if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377else
4378 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4379 # We make a subdir and do the tests there. Otherwise we can end up
4380 # making bogus files that we don't know about and never remove. For
4381 # instance it was reported that on HP-UX the gcc test will end up
4382 # making a dummy file named 'D' -- because '-MD' means "put the output
4383 # in D".
4384 rm -rf conftest.dir
4385 mkdir conftest.dir
4386 # Copy depcomp to subdir because otherwise we won't find it if we're
4387 # using a relative directory.
4388 cp "$am_depcomp" conftest.dir
4389 cd conftest.dir
4390 # We will build objects and dependencies in a subdirectory because
4391 # it helps to detect inapplicable dependency modes. For instance
4392 # both Tru64's cc and ICC support -MD to output dependencies as a
4393 # side effect of compilation, but ICC will put the dependencies in
4394 # the current directory while Tru64 will put them in the object
4395 # directory.
4396 mkdir sub
4397
4398 am_cv_CC_dependencies_compiler_type=none
4399 if test "$am_compiler_list" = ""; then
4400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4401 fi
4402 am__universal=false
4403 case " $depcc " in #(
4404 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4405 esac
4406
4407 for depmode in $am_compiler_list; do
4408 # Setup a source with many dependencies, because some compilers
4409 # like to wrap large dependency lists on column 80 (with \), and
4410 # we should not choose a depcomp mode which is confused by this.
4411 #
4412 # We need to recreate these files for each test, as the compiler may
4413 # overwrite some of them when testing with obscure command lines.
4414 # This happens at least with the AIX C compiler.
4415 : > sub/conftest.c
4416 for i in 1 2 3 4 5 6; do
4417 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4418 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4419 # Solaris 10 /bin/sh.
4420 echo '/* dummy */' > sub/conftst$i.h
4421 done
4422 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423
4424 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4425 # mode. It turns out that the SunPro C++ compiler does not properly
4426 # handle '-M -o', and we need to detect this. Also, some Intel
4427 # versions had trouble with output in subdirs.
4428 am__obj=sub/conftest.${OBJEXT-o}
4429 am__minus_obj="-o $am__obj"
4430 case $depmode in
4431 gcc)
4432 # This depmode causes a compiler race in universal mode.
4433 test "$am__universal" = false || continue
4434 ;;
4435 nosideeffect)
4436 # After this tag, mechanisms are not by side-effect, so they'll
4437 # only be used when explicitly requested.
4438 if test "x$enable_dependency_tracking" = xyes; then
4439 continue
4440 else
4441 break
4442 fi
4443 ;;
4444 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4445 # This compiler won't grok '-c -o', but also, the minuso test has
4446 # not run yet. These depmodes are late enough in the game, and
4447 # so weak that their functioning should not be impacted.
4448 am__obj=conftest.${OBJEXT-o}
4449 am__minus_obj=
4450 ;;
4451 none) break ;;
4452 esac
4453 if depmode=$depmode \
4454 source=sub/conftest.c object=$am__obj \
4455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4456 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4457 >/dev/null 2>conftest.err &&
4458 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4460 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4462 # icc doesn't choke on unknown options, it will just issue warnings
4463 # or remarks (even with -Werror). So we grep stderr for any message
4464 # that says an option was ignored or not supported.
4465 # When given -MP, icc 7.0 and 7.1 complain thusly:
4466 # icc: Command line warning: ignoring option '-M'; no argument required
4467 # The diagnosis changed in icc 8.0:
4468 # icc: Command line remark: option '-MP' not supported
4469 if (grep 'ignoring option' conftest.err ||
4470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4471 am_cv_CC_dependencies_compiler_type=$depmode
4472 break
4473 fi
4474 fi
4475 done
4476
4477 cd ..
4478 rm -rf conftest.dir
4479else
4480 am_cv_CC_dependencies_compiler_type=none
4481fi
4482
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4485$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4486CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4487
4488 if
4489 test "x$enable_dependency_tracking" != xno \
4490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4491 am__fastdepCC_TRUE=
4492 am__fastdepCC_FALSE='#'
4493else
4494 am__fastdepCC_TRUE='#'
4495 am__fastdepCC_FALSE=
4496fi
4497
4498
4499ac_ext=cpp
4500ac_cpp='$CXXCPP $CPPFLAGS'
4501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4510 do
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
4515if ${ac_cv_prog_CXX+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533 done
4534IFS=$as_save_IFS
4535
4536fi
4537fi
4538CXX=$ac_cv_prog_CXX
4539if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541$as_echo "$CXX" >&6; }
4542else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547
4548 test -n "$CXX" && break
4549 done
4550fi
4551if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554do
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556set dummy $ac_prog; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577 done
4578IFS=$as_save_IFS
4579
4580fi
4581fi
4582ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585$as_echo "$ac_ct_CXX" >&6; }
4586else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
4592 test -n "$ac_ct_CXX" && break
4593done
4594
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599yes:)
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602ac_tool_warned=yes ;;
4603esac
4604 CXX=$ac_ct_CXX
4605 fi
4606fi
4607
4608 fi
4609fi
4610# Provide some information about the compiler.
4611$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612set X $ac_compile
4613ac_compiler=$2
4614for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619esac
4620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621$as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4629 fi
4630 rm -f conftest.er1 conftest.err
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633done
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637if ${ac_cv_cxx_compiler_gnu+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h. */
4642
4643int
4644main ()
4645{
4646#ifndef __GNUC__
4647 choke me
4648#endif
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656else
4657 ac_compiler_gnu=no
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667else
4668 GXX=
4669fi
4670ac_test_CXXFLAGS=${CXXFLAGS+set}
4671ac_save_CXXFLAGS=$CXXFLAGS
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674if ${ac_cv_prog_cxx_g+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h. */
4683
4684int
4685main ()
4686{
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
4692if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h. */
4698
4699int
4700main ()
4701{
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707if ac_fn_cxx_try_compile "$LINENO"; then :
4708
4709else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h. */
4714
4715int
4716main ()
4717{
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
4723if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4725fi
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727fi
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729fi
4730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734$as_echo "$ac_cv_prog_cxx_g" >&6; }
4735if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4742 fi
4743else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4748 fi
4749fi
4750ac_ext=c
4751ac_cpp='$CPP $CPPFLAGS'
4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756depcc="$CXX" am_compiler_list=
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4759$as_echo_n "checking dependency style of $depcc... " >&6; }
4760if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named 'D' -- because '-MD' means "put the output
4768 # in D".
4769 rm -rf conftest.dir
4770 mkdir conftest.dir
4771 # Copy depcomp to subdir because otherwise we won't find it if we're
4772 # using a relative directory.
4773 cp "$am_depcomp" conftest.dir
4774 cd conftest.dir
4775 # We will build objects and dependencies in a subdirectory because
4776 # it helps to detect inapplicable dependency modes. For instance
4777 # both Tru64's cc and ICC support -MD to output dependencies as a
4778 # side effect of compilation, but ICC will put the dependencies in
4779 # the current directory while Tru64 will put them in the object
4780 # directory.
4781 mkdir sub
4782
4783 am_cv_CXX_dependencies_compiler_type=none
4784 if test "$am_compiler_list" = ""; then
4785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4786 fi
4787 am__universal=false
4788 case " $depcc " in #(
4789 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4790 esac
4791
4792 for depmode in $am_compiler_list; do
4793 # Setup a source with many dependencies, because some compilers
4794 # like to wrap large dependency lists on column 80 (with \), and
4795 # we should not choose a depcomp mode which is confused by this.
4796 #
4797 # We need to recreate these files for each test, as the compiler may
4798 # overwrite some of them when testing with obscure command lines.
4799 # This happens at least with the AIX C compiler.
4800 : > sub/conftest.c
4801 for i in 1 2 3 4 5 6; do
4802 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4803 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4804 # Solaris 10 /bin/sh.
4805 echo '/* dummy */' > sub/conftst$i.h
4806 done
4807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4808
4809 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4810 # mode. It turns out that the SunPro C++ compiler does not properly
4811 # handle '-M -o', and we need to detect this. Also, some Intel
4812 # versions had trouble with output in subdirs.
4813 am__obj=sub/conftest.${OBJEXT-o}
4814 am__minus_obj="-o $am__obj"
4815 case $depmode in
4816 gcc)
4817 # This depmode causes a compiler race in universal mode.
4818 test "$am__universal" = false || continue
4819 ;;
4820 nosideeffect)
4821 # After this tag, mechanisms are not by side-effect, so they'll
4822 # only be used when explicitly requested.
4823 if test "x$enable_dependency_tracking" = xyes; then
4824 continue
4825 else
4826 break
4827 fi
4828 ;;
4829 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4830 # This compiler won't grok '-c -o', but also, the minuso test has
4831 # not run yet. These depmodes are late enough in the game, and
4832 # so weak that their functioning should not be impacted.
4833 am__obj=conftest.${OBJEXT-o}
4834 am__minus_obj=
4835 ;;
4836 none) break ;;
4837 esac
4838 if depmode=$depmode \
4839 source=sub/conftest.c object=$am__obj \
4840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4842 >/dev/null 2>conftest.err &&
4843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4845 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4847 # icc doesn't choke on unknown options, it will just issue warnings
4848 # or remarks (even with -Werror). So we grep stderr for any message
4849 # that says an option was ignored or not supported.
4850 # When given -MP, icc 7.0 and 7.1 complain thusly:
4851 # icc: Command line warning: ignoring option '-M'; no argument required
4852 # The diagnosis changed in icc 8.0:
4853 # icc: Command line remark: option '-MP' not supported
4854 if (grep 'ignoring option' conftest.err ||
4855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4856 am_cv_CXX_dependencies_compiler_type=$depmode
4857 break
4858 fi
4859 fi
4860 done
4861
4862 cd ..
4863 rm -rf conftest.dir
4864else
4865 am_cv_CXX_dependencies_compiler_type=none
4866fi
4867
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4870$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4871CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4872
4873 if
4874 test "x$enable_dependency_tracking" != xno \
4875 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4876 am__fastdepCXX_TRUE=
4877 am__fastdepCXX_FALSE='#'
4878else
4879 am__fastdepCXX_TRUE='#'
4880 am__fastdepCXX_FALSE=
4881fi
4882
4883
4884CFLAGS=$save_CFLAGS
4885
4886
4887
4888
4889
333efaea
L
4890# Add CET specific flags if CET is enabled
4891
4892 # Check whether --enable-cet was given.
4893if test "${enable_cet+set}" = set; then :
4894 enableval=$enable_cet;
4895 case "$enableval" in
4896 yes|no|auto) ;;
4897 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4898 esac
4899
4900else
4901 enable_cet=auto
4902fi
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4906$as_echo_n "checking for CET support... " >&6; }
4907
4908# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4909case "$host" in
4910 i[34567]86-*-linux* | x86_64-*-linux*)
4911 case "$enable_cet" in
4912 auto)
4913 # Check if target supports multi-byte NOPs
4914 # and if compiler and assembler support CET insn.
4915 cet_save_CFLAGS="$CFLAGS"
4916 CFLAGS="$CFLAGS -fcf-protection"
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919
4920int
4921main ()
4922{
4923
4924#if !defined(__SSE2__)
4925#error target does not support multi-byte NOPs
4926#else
4927asm ("setssbsy");
4928#endif
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935 enable_cet=yes
4936else
4937 enable_cet=no
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 CFLAGS="$cet_save_CFLAGS"
4941 ;;
4942 yes)
4943 # Check if assembler supports CET.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950asm ("setssbsy");
4951 ;
4952 return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956
4957else
4958 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ;;
4962 esac
4963 ;;
4964 *)
4965 enable_cet=no
4966 ;;
4967esac
4968if test x$enable_cet = xyes; then
4969 CET_FLAGS="-fcf-protection -mshstk"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971$as_echo "yes" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978
5be7b669
L
4979# By default we simply use the C compiler to build assembly code.
4980
4981test "${CCAS+set}" = set || CCAS=$CC
4982test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4983
4984
4985
4986depcc="$CCAS" am_compiler_list=
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989$as_echo_n "checking dependency style of $depcc... " >&6; }
4990if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992else
4993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4994 # We make a subdir and do the tests there. Otherwise we can end up
4995 # making bogus files that we don't know about and never remove. For
4996 # instance it was reported that on HP-UX the gcc test will end up
4997 # making a dummy file named 'D' -- because '-MD' means "put the output
4998 # in D".
4999 rm -rf conftest.dir
5000 mkdir conftest.dir
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5004 cd conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5010 # directory.
5011 mkdir sub
5012
5013 am_cv_CCAS_dependencies_compiler_type=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016 fi
5017 am__universal=false
5018
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5032 # Solaris 10 /bin/sh.
5033 echo '/* dummy */' > sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle '-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs.
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # After this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested.
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok '-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CCAS_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092else
5093 am_cv_CCAS_dependencies_compiler_type=none
5094fi
5095
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5098$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5099CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5100
5101 if
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCCAS_TRUE=
5105 am__fastdepCCAS_FALSE='#'
5106else
5107 am__fastdepCCAS_TRUE='#'
5108 am__fastdepCCAS_FALSE=
5109fi
5110
5111
5112
5113case `pwd` in
5114 *\ * | *\ *)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5116$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5117esac
5118
5119
5120
5121macro_version='2.2.7a'
5122macro_revision='1.3134'
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136ltmain="$ac_aux_dir/ltmain.sh"
5137
5138# Backslashify metacharacters that are still active within
5139# double-quoted strings.
5140sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5141
5142# Same as above, but do not quote variable references.
5143double_quote_subst='s/\(["`\\]\)/\\\1/g'
5144
5145# Sed substitution to delay expansion of an escaped shell variable in a
5146# double_quote_subst'ed string.
5147delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149# Sed substitution to delay expansion of an escaped single quote.
5150delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5151
5152# Sed substitution to avoid accidental globbing in evaled expressions
5153no_glob_subst='s/\*/\\\*/g'
5154
5155ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160$as_echo_n "checking how to print strings... " >&6; }
5161# Test print first, because it will be a builtin if present.
5162if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5164 ECHO='print -r --'
5165elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5166 ECHO='printf %s\n'
5167else
5168 # Use this function as a fallback that always works.
5169 func_fallback_echo ()
5170 {
5171 eval 'cat <<_LTECHO_EOF
5172$1
5173_LTECHO_EOF'
5174 }
5175 ECHO='func_fallback_echo'
5176fi
5177
5178# func_echo_all arg...
5179# Invoke $ECHO with all args, space-separated.
5180func_echo_all ()
5181{
5182 $ECHO ""
5183}
5184
5185case "$ECHO" in
5186 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187$as_echo "printf" >&6; } ;;
5188 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189$as_echo "print -r" >&6; } ;;
5190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191$as_echo "cat" >&6; } ;;
5192esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5209if ${ac_cv_path_SED+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5213 for ac_i in 1 2 3 4 5 6 7; do
5214 ac_script="$ac_script$as_nl$ac_script"
5215 done
5216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5217 { ac_script=; unset ac_script;}
5218 if test -z "$SED"; then
5219 ac_path_SED_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in sed gsed; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5229 as_fn_executable_p "$ac_path_SED" || continue
5230# Check for GNU ac_path_SED and select it if it is found.
5231 # Check for GNU $ac_path_SED
5232case `"$ac_path_SED" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo '' >> "conftest.nl"
5244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_SED_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_SED="$ac_path_SED"
5250 ac_path_SED_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_SED_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_SED"; then
5264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5265 fi
5266else
5267 ac_cv_path_SED=$SED
5268fi
5269
5270fi
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5272$as_echo "$ac_cv_path_SED" >&6; }
5273 SED="$ac_cv_path_SED"
5274 rm -f conftest.sed
5275
5276test -z "$SED" && SED=sed
5277Xsed="$SED -e 1s/^X//"
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5290$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5291if ${ac_cv_path_GREP+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293else
5294 if test -z "$GREP"; then
5295 ac_path_GREP_found=false
5296 # Loop through the user's path and test for each of PROGNAME-LIST
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_prog in grep ggrep; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5305 as_fn_executable_p "$ac_path_GREP" || continue
5306# Check for GNU ac_path_GREP and select it if it is found.
5307 # Check for GNU $ac_path_GREP
5308case `"$ac_path_GREP" --version 2>&1` in
5309*GNU*)
5310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5311*)
5312 ac_count=0
5313 $as_echo_n 0123456789 >"conftest.in"
5314 while :
5315 do
5316 cat "conftest.in" "conftest.in" >"conftest.tmp"
5317 mv "conftest.tmp" "conftest.in"
5318 cp "conftest.in" "conftest.nl"
5319 $as_echo 'GREP' >> "conftest.nl"
5320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322 as_fn_arith $ac_count + 1 && ac_count=$as_val
5323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5324 # Best one so far, save it but keep looking for a better one
5325 ac_cv_path_GREP="$ac_path_GREP"
5326 ac_path_GREP_max=$ac_count
5327 fi
5328 # 10*(2^10) chars as input seems more than enough
5329 test $ac_count -gt 10 && break
5330 done
5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332esac
5333
5334 $ac_path_GREP_found && break 3
5335 done
5336 done
5337 done
5338IFS=$as_save_IFS
5339 if test -z "$ac_cv_path_GREP"; then
5340 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5341 fi
5342else
5343 ac_cv_path_GREP=$GREP
5344fi
5345
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5348$as_echo "$ac_cv_path_GREP" >&6; }
5349 GREP="$ac_cv_path_GREP"
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5353$as_echo_n "checking for egrep... " >&6; }
5354if ${ac_cv_path_EGREP+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5358 then ac_cv_path_EGREP="$GREP -E"
5359 else
5360 if test -z "$EGREP"; then
5361 ac_path_EGREP_found=false
5362 # Loop through the user's path and test for each of PROGNAME-LIST
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_prog in egrep; do
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5371 as_fn_executable_p "$ac_path_EGREP" || continue
5372# Check for GNU ac_path_EGREP and select it if it is found.
5373 # Check for GNU $ac_path_EGREP
5374case `"$ac_path_EGREP" --version 2>&1` in
5375*GNU*)
5376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5377*)
5378 ac_count=0
5379 $as_echo_n 0123456789 >"conftest.in"
5380 while :
5381 do
5382 cat "conftest.in" "conftest.in" >"conftest.tmp"
5383 mv "conftest.tmp" "conftest.in"
5384 cp "conftest.in" "conftest.nl"
5385 $as_echo 'EGREP' >> "conftest.nl"
5386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388 as_fn_arith $ac_count + 1 && ac_count=$as_val
5389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5390 # Best one so far, save it but keep looking for a better one
5391 ac_cv_path_EGREP="$ac_path_EGREP"
5392 ac_path_EGREP_max=$ac_count
5393 fi
5394 # 10*(2^10) chars as input seems more than enough
5395 test $ac_count -gt 10 && break
5396 done
5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398esac
5399
5400 $ac_path_EGREP_found && break 3
5401 done
5402 done
5403 done
5404IFS=$as_save_IFS
5405 if test -z "$ac_cv_path_EGREP"; then
5406 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407 fi
5408else
5409 ac_cv_path_EGREP=$EGREP
5410fi
5411
5412 fi
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5415$as_echo "$ac_cv_path_EGREP" >&6; }
5416 EGREP="$ac_cv_path_EGREP"
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5420$as_echo_n "checking for fgrep... " >&6; }
5421if ${ac_cv_path_FGREP+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423else
5424 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5425 then ac_cv_path_FGREP="$GREP -F"
5426 else
5427 if test -z "$FGREP"; then
5428 ac_path_FGREP_found=false
5429 # Loop through the user's path and test for each of PROGNAME-LIST
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_prog in fgrep; do
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5438 as_fn_executable_p "$ac_path_FGREP" || continue
5439# Check for GNU ac_path_FGREP and select it if it is found.
5440 # Check for GNU $ac_path_FGREP
5441case `"$ac_path_FGREP" --version 2>&1` in
5442*GNU*)
5443 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5444*)
5445 ac_count=0
5446 $as_echo_n 0123456789 >"conftest.in"
5447 while :
5448 do
5449 cat "conftest.in" "conftest.in" >"conftest.tmp"
5450 mv "conftest.tmp" "conftest.in"
5451 cp "conftest.in" "conftest.nl"
5452 $as_echo 'FGREP' >> "conftest.nl"
5453 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5455 as_fn_arith $ac_count + 1 && ac_count=$as_val
5456 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5457 # Best one so far, save it but keep looking for a better one
5458 ac_cv_path_FGREP="$ac_path_FGREP"
5459 ac_path_FGREP_max=$ac_count
5460 fi
5461 # 10*(2^10) chars as input seems more than enough
5462 test $ac_count -gt 10 && break
5463 done
5464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5465esac
5466
5467 $ac_path_FGREP_found && break 3
5468 done
5469 done
5470 done
5471IFS=$as_save_IFS
5472 if test -z "$ac_cv_path_FGREP"; then
5473 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5474 fi
5475else
5476 ac_cv_path_FGREP=$FGREP
5477fi
5478
5479 fi
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5482$as_echo "$ac_cv_path_FGREP" >&6; }
5483 FGREP="$ac_cv_path_FGREP"
5484
5485
5486test -z "$GREP" && GREP=grep
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506# Check whether --with-gnu-ld was given.
5507if test "${with_gnu_ld+set}" = set; then :
5508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5509else
5510 with_gnu_ld=no
5511fi
5512
5513ac_prog=ld
5514if test "$GCC" = yes; then
5515 # Check if gcc -print-prog-name=ld gives a path.
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5517$as_echo_n "checking for ld used by $CC... " >&6; }
5518 case $host in
5519 *-*-mingw*)
5520 # gcc leaves a trailing carriage return which upsets mingw
5521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5522 *)
5523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5524 esac
5525 case $ac_prog in
5526 # Accept absolute paths.
5527 [\\/]* | ?:[\\/]*)
5528 re_direlt='/[^/][^/]*/\.\./'
5529 # Canonicalize the pathname of ld
5530 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5531 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5532 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5533 done
5534 test -z "$LD" && LD="$ac_prog"
5535 ;;
5536 "")
5537 # If it fails, then pretend we aren't using GCC.
5538 ac_prog=ld
5539 ;;
5540 *)
5541 # If it is relative, then search for the first ld in PATH.
5542 with_gnu_ld=unknown
5543 ;;
5544 esac
5545elif test "$with_gnu_ld" = yes; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5547$as_echo_n "checking for GNU ld... " >&6; }
5548else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5550$as_echo_n "checking for non-GNU ld... " >&6; }
5551fi
5552if ${lt_cv_path_LD+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554else
5555 if test -z "$LD"; then
5556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5557 for ac_dir in $PATH; do
5558 IFS="$lt_save_ifs"
5559 test -z "$ac_dir" && ac_dir=.
5560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5561 lt_cv_path_LD="$ac_dir/$ac_prog"
5562 # Check to see if the program is GNU ld. I'd rather use --version,
5563 # but apparently some variants of GNU ld only accept -v.
5564 # Break only if it was the GNU/non-GNU ld that we prefer.
5565 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567 test "$with_gnu_ld" != no && break
5568 ;;
5569 *)
5570 test "$with_gnu_ld" != yes && break
5571 ;;
5572 esac
5573 fi
5574 done
5575 IFS="$lt_save_ifs"
5576else
5577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5578fi
5579fi
5580
5581LD="$lt_cv_path_LD"
5582if test -n "$LD"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5584$as_echo "$LD" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5591$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5592if ${lt_cv_prog_gnu_ld+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594else
5595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5596case `$LD -v 2>&1 </dev/null` in
5597*GNU* | *'with BFD'*)
5598 lt_cv_prog_gnu_ld=yes
5599 ;;
5600*)
5601 lt_cv_prog_gnu_ld=no
5602 ;;
5603esac
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5606$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5607with_gnu_ld=$lt_cv_prog_gnu_ld
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5618$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5619if ${lt_cv_path_NM+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 if test -n "$NM"; then
ab422974
NA
5623 # Let the user override the nm to test.
5624 lt_nm_to_check="$NM"
5625 else
5626 lt_nm_to_check="${ac_tool_prefix}nm"
5627 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5628 lt_nm_to_check="$lt_nm_to_check nm"
5629 fi
5630 fi
f3307109 5631 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634 IFS="$lt_save_ifs"
5635 test -z "$ac_dir" && ac_dir=.
f3307109
NA
5636 # Strip out any user-provided options from the nm to test twice,
5637 # the first time to test to see if nm (rather than its options) has
5638 # an explicit path, the second time to yield a file which can be
5639 # nm'ed itself.
5640 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5641 case "$tmp_nm_path" in
ab422974
NA
5642 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5643 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5644 esac
f3307109
NA
5645 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5646 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
5647 # Check to see if the nm accepts a BSD-compat flag.
5648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649 # nm: unknown option "B" ignored
f3307109 5650 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5651 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5652 break
5653 ;;
5654 *)
f3307109 5655 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5656 *$tmp_nm*)
5657 lt_cv_path_NM="$tmp_nm -p"
5658 break
5659 ;;
5660 *)
5661 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5662 continue # so that we can try to find one that supports BSD flags
5663 ;;
5664 esac
5665 ;;
5666 esac
5667 fi
5668 done
5669 IFS="$lt_save_ifs"
5670 done
5671 : ${lt_cv_path_NM=no}
5be7b669
L
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5674$as_echo "$lt_cv_path_NM" >&6; }
5675if test "$lt_cv_path_NM" != "no"; then
5676 NM="$lt_cv_path_NM"
5677else
5678 # Didn't find any BSD compatible name lister, look for dumpbin.
5679 if test -n "$DUMPBIN"; then :
5680 # Let the user override the test.
5681 else
5682 if test -n "$ac_tool_prefix"; then
5683 for ac_prog in dumpbin "link -dump"
5684 do
5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_DUMPBIN+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$DUMPBIN"; then
5693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712DUMPBIN=$ac_cv_prog_DUMPBIN
5713if test -n "$DUMPBIN"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5715$as_echo "$DUMPBIN" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722 test -n "$DUMPBIN" && break
5723 done
5724fi
5725if test -z "$DUMPBIN"; then
5726 ac_ct_DUMPBIN=$DUMPBIN
5727 for ac_prog in dumpbin "link -dump"
5728do
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730set dummy $ac_prog; ac_word=$2
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732$as_echo_n "checking for $ac_word... " >&6; }
5733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735else
5736 if test -n "$ac_ct_DUMPBIN"; then
5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750done
5751 done
5752IFS=$as_save_IFS
5753
5754fi
5755fi
5756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5757if test -n "$ac_ct_DUMPBIN"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5759$as_echo "$ac_ct_DUMPBIN" >&6; }
5760else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763fi
5764
5765
5766 test -n "$ac_ct_DUMPBIN" && break
5767done
5768
5769 if test "x$ac_ct_DUMPBIN" = x; then
5770 DUMPBIN=":"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773yes:)
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776ac_tool_warned=yes ;;
5777esac
5778 DUMPBIN=$ac_ct_DUMPBIN
5779 fi
5780fi
5781
5782 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5783 *COFF*)
5784 DUMPBIN="$DUMPBIN -symbols"
5785 ;;
5786 *)
5787 DUMPBIN=:
5788 ;;
5789 esac
5790 fi
5791
5792 if test "$DUMPBIN" != ":"; then
5793 NM="$DUMPBIN"
5794 fi
5795fi
5796test -z "$NM" && NM=nm
5797
5798
5799
5800
5801
5802
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5804$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5805if ${lt_cv_nm_interface+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 lt_cv_nm_interface="BSD nm"
5809 echo "int some_variable = 0;" > conftest.$ac_ext
5810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5811 (eval "$ac_compile" 2>conftest.err)
5812 cat conftest.err >&5
5813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5815 cat conftest.err >&5
5816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5817 cat conftest.out >&5
5818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5819 lt_cv_nm_interface="MS dumpbin"
5820 fi
5821 rm -f conftest*
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5824$as_echo "$lt_cv_nm_interface" >&6; }
5825
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5827$as_echo_n "checking whether ln -s works... " >&6; }
5828LN_S=$as_ln_s
5829if test "$LN_S" = "ln -s"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831$as_echo "yes" >&6; }
5832else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5834$as_echo "no, using $LN_S" >&6; }
5835fi
5836
5837# find the maximum length of command line arguments
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5840if ${lt_cv_sys_max_cmd_len+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842else
5843 i=0
5844 teststring="ABCD"
5845
5846 case $build_os in
5847 msdosdjgpp*)
5848 # On DJGPP, this test can blow up pretty badly due to problems in libc
5849 # (any single argument exceeding 2000 bytes causes a buffer overrun
5850 # during glob expansion). Even if it were fixed, the result of this
5851 # check would be larger than it should be.
5852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5853 ;;
5854
5855 gnu*)
5856 # Under GNU Hurd, this test is not required because there is
5857 # no limit to the length of command line arguments.
5858 # Libtool will interpret -1 as no limit whatsoever
5859 lt_cv_sys_max_cmd_len=-1;
5860 ;;
5861
5862 cygwin* | mingw* | cegcc*)
5863 # On Win9x/ME, this test blows up -- it succeeds, but takes
5864 # about 5 minutes as the teststring grows exponentially.
5865 # Worse, since 9x/ME are not pre-emptively multitasking,
5866 # you end up with a "frozen" computer, even though with patience
5867 # the test eventually succeeds (with a max line length of 256k).
5868 # Instead, let's just punt: use the minimum linelength reported by
5869 # all of the supported platforms: 8192 (on NT/2K/XP).
5870 lt_cv_sys_max_cmd_len=8192;
5871 ;;
5872
5873 mint*)
5874 # On MiNT this can take a long time and run out of memory.
5875 lt_cv_sys_max_cmd_len=8192;
5876 ;;
5877
5878 amigaos*)
5879 # On AmigaOS with pdksh, this test takes hours, literally.
5880 # So we just punt and use a minimum line length of 8192.
5881 lt_cv_sys_max_cmd_len=8192;
5882 ;;
5883
5884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5885 # This has been around since 386BSD, at least. Likely further.
5886 if test -x /sbin/sysctl; then
5887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5888 elif test -x /usr/sbin/sysctl; then
5889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5890 else
5891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5892 fi
5893 # And add a safety zone
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5896 ;;
5897
5898 interix*)
5899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5900 lt_cv_sys_max_cmd_len=196608
5901 ;;
5902
5903 osf*)
5904 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5905 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5906 # nice to cause kernel panics so lets avoid the loop below.
5907 # First set a reasonable default.
5908 lt_cv_sys_max_cmd_len=16384
5909 #
5910 if test -x /sbin/sysconfig; then
5911 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5912 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5913 esac
5914 fi
5915 ;;
5916 sco3.2v5*)
5917 lt_cv_sys_max_cmd_len=102400
5918 ;;
5919 sysv5* | sco5v6* | sysv4.2uw2*)
5920 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5921 if test -n "$kargmax"; then
5922 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5923 else
5924 lt_cv_sys_max_cmd_len=32768
5925 fi
5926 ;;
5927 *)
5928 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5929 if test -n "$lt_cv_sys_max_cmd_len"; then
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932 else
5933 # Make teststring a little bigger before we do anything with it.
5934 # a 1K string should be a reasonable start.
5935 for i in 1 2 3 4 5 6 7 8 ; do
5936 teststring=$teststring$teststring
5937 done
5938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5939 # If test is not a shell built-in, we'll probably end up computing a
5940 # maximum length that is only half of the actual maximum length, but
5941 # we can't tell.
5942 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5943 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5944 test $i != 17 # 1/2 MB should be enough
5945 do
5946 i=`expr $i + 1`
5947 teststring=$teststring$teststring
5948 done
5949 # Only check the string length outside the loop.
5950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5951 teststring=
5952 # Add a significant safety factor because C++ compilers can tack on
5953 # massive amounts of additional arguments before passing them to the
5954 # linker. It appears as though 1/2 is a usable value.
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5956 fi
5957 ;;
5958 esac
5959
5960fi
5961
5962if test -n $lt_cv_sys_max_cmd_len ; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5964$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5967$as_echo "none" >&6; }
5968fi
5969max_cmd_len=$lt_cv_sys_max_cmd_len
5970
5971
5972
5973
5974
5975
5976: ${CP="cp -f"}
5977: ${MV="mv -f"}
5978: ${RM="rm -f"}
5979
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5981$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5982# Try some XSI features
5983xsi_shell=no
5984( _lt_dummy="a/b/c"
5985 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5986 = c,a/b,, \
5987 && eval 'test $(( 1 + 1 )) -eq 2 \
5988 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5989 && xsi_shell=yes
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5991$as_echo "$xsi_shell" >&6; }
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5995$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5996lt_shell_append=no
5997( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5998 >/dev/null 2>&1 \
5999 && lt_shell_append=yes
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6001$as_echo "$lt_shell_append" >&6; }
6002
6003
6004if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6005 lt_unset=unset
6006else
6007 lt_unset=false
6008fi
6009
6010
6011
6012
6013
6014# test EBCDIC or ASCII
6015case `echo X|tr X '\101'` in
6016 A) # ASCII based system
6017 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6018 lt_SP2NL='tr \040 \012'
6019 lt_NL2SP='tr \015\012 \040\040'
6020 ;;
6021 *) # EBCDIC based system
6022 lt_SP2NL='tr \100 \n'
6023 lt_NL2SP='tr \r\n \100\100'
6024 ;;
6025esac
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6036$as_echo_n "checking for $LD option to reload object files... " >&6; }
6037if ${lt_cv_ld_reload_flag+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040 lt_cv_ld_reload_flag='-r'
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6043$as_echo "$lt_cv_ld_reload_flag" >&6; }
6044reload_flag=$lt_cv_ld_reload_flag
6045case $reload_flag in
6046"" | " "*) ;;
6047*) reload_flag=" $reload_flag" ;;
6048esac
6049reload_cmds='$LD$reload_flag -o $output$reload_objs'
6050case $host_os in
6051 darwin*)
6052 if test "$GCC" = yes; then
6053 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6054 else
6055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6056 fi
6057 ;;
6058esac
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6070set dummy ${ac_tool_prefix}objdump; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if ${ac_cv_prog_OBJDUMP+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075else
6076 if test -n "$OBJDUMP"; then
6077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090done
6091 done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096OBJDUMP=$ac_cv_prog_OBJDUMP
6097if test -n "$OBJDUMP"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6099$as_echo "$OBJDUMP" >&6; }
6100else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_OBJDUMP"; then
6108 ac_ct_OBJDUMP=$OBJDUMP
6109 # Extract the first word of "objdump", so it can be a program name with args.
6110set dummy objdump; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$ac_ct_OBJDUMP"; then
6117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131 done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6137if test -n "$ac_ct_OBJDUMP"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6139$as_echo "$ac_ct_OBJDUMP" >&6; }
6140else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145 if test "x$ac_ct_OBJDUMP" = x; then
6146 OBJDUMP="false"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154 OBJDUMP=$ac_ct_OBJDUMP
6155 fi
6156else
6157 OBJDUMP="$ac_cv_prog_OBJDUMP"
6158fi
6159
6160test -z "$OBJDUMP" && OBJDUMP=objdump
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6171$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6172if ${lt_cv_deplibs_check_method+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 lt_cv_file_magic_cmd='$MAGIC_CMD'
6176lt_cv_file_magic_test_file=
6177lt_cv_deplibs_check_method='unknown'
6178# Need to set the preceding variable on all platforms that support
6179# interlibrary dependencies.
6180# 'none' -- dependencies not supported.
6181# `unknown' -- same as none, but documents that we really don't know.
6182# 'pass_all' -- all dependencies passed with no checks.
6183# 'test_compile' -- check by making test program.
6184# 'file_magic [[regex]]' -- check by looking for files in library path
6185# which responds to the $file_magic_cmd with a given extended regex.
6186# If you have `file' or equivalent on your system and you're not sure
6187# whether `pass_all' will *always* work, you probably want this one.
6188
6189case $host_os in
6190aix[4-9]*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194beos*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198bsdi[45]*)
6199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6200 lt_cv_file_magic_cmd='/usr/bin/file -L'
6201 lt_cv_file_magic_test_file=/shlib/libc.so
6202 ;;
6203
6204cygwin*)
6205 # func_win32_libid is a shell function defined in ltmain.sh
6206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207 lt_cv_file_magic_cmd='func_win32_libid'
6208 ;;
6209
6210mingw* | pw32*)
6211 # Base MSYS/MinGW do not provide the 'file' command needed by
6212 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6213 # unless we find 'file', for example because we are cross-compiling.
6214 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6215 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6217 lt_cv_file_magic_cmd='func_win32_libid'
6218 else
6219 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6220 lt_cv_file_magic_cmd='$OBJDUMP -f'
6221 fi
6222 ;;
6223
6224cegcc*)
6225 # use the weaker test based on 'objdump'. See mingw*.
6226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6227 lt_cv_file_magic_cmd='$OBJDUMP -f'
6228 ;;
6229
6230darwin* | rhapsody*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234freebsd* | dragonfly*)
6235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236 case $host_cpu in
6237 i*86 )
6238 # Not sure whether the presence of OpenBSD here was a mistake.
6239 # Let's accept both of them until this is cleared up.
6240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6241 lt_cv_file_magic_cmd=/usr/bin/file
6242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6243 ;;
6244 esac
6245 else
6246 lt_cv_deplibs_check_method=pass_all
6247 fi
6248 ;;
6249
6250gnu*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254haiku*)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257
6258hpux10.20* | hpux11*)
6259 lt_cv_file_magic_cmd=/usr/bin/file
6260 case $host_cpu in
6261 ia64*)
6262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6264 ;;
6265 hppa*64*)
6266 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]'
6267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6268 ;;
6269 *)
6270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6271 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6272 ;;
6273 esac
6274 ;;
6275
6276interix[3-9]*)
6277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6279 ;;
6280
6281irix5* | irix6* | nonstopux*)
6282 case $LD in
6283 *-32|*"-32 ") libmagic=32-bit;;
6284 *-n32|*"-n32 ") libmagic=N32;;
6285 *-64|*"-64 ") libmagic=64-bit;;
6286 *) libmagic=never-match;;
6287 esac
6288 lt_cv_deplibs_check_method=pass_all
6289 ;;
6290
6291# This must be Linux ELF.
6292linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296netbsd*)
6297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6299 else
6300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6301 fi
6302 ;;
6303
6304newos6*)
6305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6308 ;;
6309
6310*nto* | *qnx*)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313
6314openbsd*)
6315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6317 else
6318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6319 fi
6320 ;;
6321
6322osf3* | osf4* | osf5*)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326rdos*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330solaris*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338sysv4 | sysv4.3*)
6339 case $host_vendor in
6340 motorola)
6341 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]'
6342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6343 ;;
6344 ncr)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347 sequent)
6348 lt_cv_file_magic_cmd='/bin/file'
6349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6350 ;;
6351 sni)
6352 lt_cv_file_magic_cmd='/bin/file'
6353 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6354 lt_cv_file_magic_test_file=/lib/libc.so
6355 ;;
6356 siemens)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359 pc)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362 esac
6363 ;;
6364
6365tpf*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
0ecd0f1c
OH
6368vxworks*)
6369 # Assume VxWorks cross toolchains are built on Linux, possibly
6370 # as canadian for Windows hosts.
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
5be7b669
L
6373esac
6374
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6377$as_echo "$lt_cv_deplibs_check_method" >&6; }
6378file_magic_cmd=$lt_cv_file_magic_cmd
6379deplibs_check_method=$lt_cv_deplibs_check_method
6380test -z "$deplibs_check_method" && deplibs_check_method=unknown
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
126f707e
L
6393plugin_option=
6394plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6395for plugin in $plugin_names; do
6396 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6397 if test x$plugin_so = x$plugin; then
6398 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6399 fi
6400 if test x$plugin_so != x$plugin; then
6401 plugin_option="--plugin $plugin_so"
6402 break
6403 fi
6404done
6405
5be7b669
L
6406if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6408set dummy ${ac_tool_prefix}ar; ac_word=$2
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410$as_echo_n "checking for $ac_word... " >&6; }
6411if ${ac_cv_prog_AR+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413else
6414 if test -n "$AR"; then
6415 ac_cv_prog_AR="$AR" # Let the user override the test.
6416else
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_AR="${ac_tool_prefix}ar"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428done
6429 done
6430IFS=$as_save_IFS
6431
6432fi
6433fi
6434AR=$ac_cv_prog_AR
6435if test -n "$AR"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6437$as_echo "$AR" >&6; }
6438else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440$as_echo "no" >&6; }
6441fi
6442
6443
6444fi
6445if test -z "$ac_cv_prog_AR"; then
6446 ac_ct_AR=$AR
6447 # Extract the first word of "ar", so it can be a program name with args.
6448set dummy ar; ac_word=$2
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
6451if ${ac_cv_prog_ac_ct_AR+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453else
6454 if test -n "$ac_ct_AR"; then
6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_AR="ar"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469 done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474ac_ct_AR=$ac_cv_prog_ac_ct_AR
6475if test -n "$ac_ct_AR"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6477$as_echo "$ac_ct_AR" >&6; }
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483 if test "x$ac_ct_AR" = x; then
6484 AR="false"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487yes:)
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490ac_tool_warned=yes ;;
6491esac
6492 AR=$ac_ct_AR
6493 fi
6494else
6495 AR="$ac_cv_prog_AR"
6496fi
6497
6498test -z "$AR" && AR=ar
126f707e
L
6499if test -n "$plugin_option"; then
6500 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6501 touch conftest.c
6502 $AR $plugin_option rc conftest.a conftest.c
6503 if test "$?" != 0; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6505$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6506 else
6507 AR="$AR $plugin_option"
6508 fi
6509 rm -f conftest.*
126f707e
L
6510 fi
6511fi
5be7b669
L
6512test -z "$AR_FLAGS" && AR_FLAGS=cru
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}strip; ac_word=$2
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if ${ac_cv_prog_STRIP+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 if test -n "$STRIP"; then
6533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547 done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552STRIP=$ac_cv_prog_STRIP
6553if test -n "$STRIP"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6555$as_echo "$STRIP" >&6; }
6556else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558$as_echo "no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_STRIP"; then
6564 ac_ct_STRIP=$STRIP
6565 # Extract the first word of "strip", so it can be a program name with args.
6566set dummy strip; ac_word=$2
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571else
6572 if test -n "$ac_ct_STRIP"; then
6573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_ac_ct_STRIP="strip"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587 done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6593if test -n "$ac_ct_STRIP"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6595$as_echo "$ac_ct_STRIP" >&6; }
6596else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
6599fi
6600
6601 if test "x$ac_ct_STRIP" = x; then
6602 STRIP=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608ac_tool_warned=yes ;;
6609esac
6610 STRIP=$ac_ct_STRIP
6611 fi
6612else
6613 STRIP="$ac_cv_prog_STRIP"
6614fi
6615
6616test -z "$STRIP" && STRIP=:
6617
6618
6619
6620
6621
6622
6623if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if ${ac_cv_prog_RANLIB+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630else
6631 if test -n "$RANLIB"; then
6632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646 done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651RANLIB=$ac_cv_prog_RANLIB
6652if test -n "$RANLIB"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6654$as_echo "$RANLIB" >&6; }
6655else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
6658fi
6659
6660
6661fi
6662if test -z "$ac_cv_prog_RANLIB"; then
6663 ac_ct_RANLIB=$RANLIB
6664 # Extract the first word of "ranlib", so it can be a program name with args.
6665set dummy ranlib; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670else
6671 if test -n "$ac_ct_RANLIB"; then
6672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_RANLIB="ranlib"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686 done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6692if test -n "$ac_ct_RANLIB"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6694$as_echo "$ac_ct_RANLIB" >&6; }
6695else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700 if test "x$ac_ct_RANLIB" = x; then
6701 RANLIB=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709 RANLIB=$ac_ct_RANLIB
6710 fi
6711else
6712 RANLIB="$ac_cv_prog_RANLIB"
6713fi
6714
6715test -z "$RANLIB" && RANLIB=:
126f707e
L
6716if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6717 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6718 RANLIB="$RANLIB $plugin_option"
6719 fi
6720fi
5be7b669
L
6721
6722
6723
6724
6725
6726
6727# Determine commands to create old-style static archives.
6728old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6729old_postinstall_cmds='chmod 644 $oldlib'
6730old_postuninstall_cmds=
6731
6732if test -n "$RANLIB"; then
6733 case $host_os in
6734 openbsd*)
6735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6736 ;;
6737 *)
6738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6739 ;;
6740 esac
6741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6742fi
6743
6744case $host_os in
6745 darwin*)
6746 lock_old_archive_extraction=yes ;;
6747 *)
6748 lock_old_archive_extraction=no ;;
6749esac
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789# If no C compiler was specified, use CC.
6790LTCC=${LTCC-"$CC"}
6791
6792# If no C compiler flags were specified, use CFLAGS.
6793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6794
6795# Allow CC to be a program name with arguments.
6796compiler=$CC
6797
6798
6799# Check for command to grab the raw symbol name followed by C symbol from nm.
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6801$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6802if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804else
6805
6806# These are sane defaults that work on at least a few old systems.
6807# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6808
6809# Character class describing NM global symbol codes.
6810symcode='[BCDEGRST]'
6811
6812# Regexp to match symbols that can be accessed directly from C.
6813sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6814
6815# Define system-specific variables.
6816case $host_os in
6817aix*)
6818 symcode='[BCDT]'
6819 ;;
6820cygwin* | mingw* | pw32* | cegcc*)
6821 symcode='[ABCDGISTW]'
6822 ;;
6823hpux*)
6824 if test "$host_cpu" = ia64; then
6825 symcode='[ABCDEGRST]'
6826 fi
6827 ;;
6828irix* | nonstopux*)
6829 symcode='[BCDEGRST]'
6830 ;;
6831osf*)
6832 symcode='[BCDEGQRST]'
6833 ;;
6834solaris*)
dc17ceb3 6835 symcode='[BCDRT]'
5be7b669
L
6836 ;;
6837sco3.2v5*)
6838 symcode='[DT]'
6839 ;;
6840sysv4.2uw2*)
6841 symcode='[DT]'
6842 ;;
6843sysv5* | sco5v6* | unixware* | OpenUNIX*)
6844 symcode='[ABDT]'
6845 ;;
6846sysv4)
6847 symcode='[DFNSTU]'
6848 ;;
6849esac
6850
6851# If we're using GNU nm, then use its standard symbol codes.
6852case `$NM -V 2>&1` in
6853*GNU* | *'with BFD'*)
6854 symcode='[ABCDGIRSTW]' ;;
6855esac
6856
6857# Transform an extracted symbol line into a proper C declaration.
6858# Some systems (esp. on ia64) link data and code symbols differently,
6859# so use this general approach.
6860lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6861
6862# Transform an extracted symbol line into symbol name and symbol address
6863lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6864lt_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'"
6865
6866# Handle CRLF in mingw tool chain
6867opt_cr=
6868case $build_os in
6869mingw*)
6870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6871 ;;
6872esac
6873
6874# Try without a prefix underscore, then with it.
6875for ac_symprfx in "" "_"; do
6876
6877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6878 symxfrm="\\1 $ac_symprfx\\2 \\2"
6879
6880 # Write the raw and C identifiers.
6881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6882 # Fake it for dumpbin and say T for any non-static function
6883 # and D for any global variable.
6884 # Also find C++ and __fastcall symbols from MSVC++,
6885 # which start with @ or ?.
6886 lt_cv_sys_global_symbol_pipe="$AWK '"\
6887" {last_section=section; section=\$ 3};"\
6888" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6889" \$ 0!~/External *\|/{next};"\
6890" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6891" {if(hide[section]) next};"\
6892" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6893" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6894" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6895" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6896" ' prfx=^$ac_symprfx"
6897 else
6898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6899 fi
6900
6901 # Check to see that the pipe works correctly.
6902 pipe_works=no
6903
6904 rm -f conftest*
6905 cat > conftest.$ac_ext <<_LT_EOF
6906#ifdef __cplusplus
6907extern "C" {
6908#endif
6909char nm_test_var;
6910void nm_test_func(void);
6911void nm_test_func(void){}
6912#ifdef __cplusplus
6913}
6914#endif
6915int main(){nm_test_var='a';nm_test_func();return(0);}
6916_LT_EOF
6917
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 # Now try to grab the symbols.
6924 nlist=conftest.nm
6925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6926 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6927 ac_status=$?
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929 test $ac_status = 0; } && test -s "$nlist"; then
6930 # Try sorting and uniquifying the output.
6931 if sort "$nlist" | uniq > "$nlist"T; then
6932 mv -f "$nlist"T "$nlist"
6933 else
6934 rm -f "$nlist"T
6935 fi
6936
6937 # Make sure that we snagged all the symbols we need.
6938 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6939 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6940 cat <<_LT_EOF > conftest.$ac_ext
6941#ifdef __cplusplus
6942extern "C" {
6943#endif
6944
6945_LT_EOF
6946 # Now generate the symbol file.
6947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6948
6949 cat <<_LT_EOF >> conftest.$ac_ext
6950
6951/* The mapping between symbol names and symbols. */
6952const struct {
6953 const char *name;
6954 void *address;
6955}
6956lt__PROGRAM__LTX_preloaded_symbols[] =
6957{
6958 { "@PROGRAM@", (void *) 0 },
6959_LT_EOF
6960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6961 cat <<\_LT_EOF >> conftest.$ac_ext
6962 {0, (void *) 0}
6963};
6964
6965/* This works around a problem in FreeBSD linker */
6966#ifdef FREEBSD_WORKAROUND
6967static const void *lt_preloaded_setup() {
6968 return lt__PROGRAM__LTX_preloaded_symbols;
6969}
6970#endif
6971
6972#ifdef __cplusplus
6973}
6974#endif
6975_LT_EOF
6976 # Now try linking the two files.
6977 mv conftest.$ac_objext conftstm.$ac_objext
6978 lt_save_LIBS="$LIBS"
6979 lt_save_CFLAGS="$CFLAGS"
6980 LIBS="conftstm.$ac_objext"
6981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6983 (eval $ac_link) 2>&5
6984 ac_status=$?
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6987 pipe_works=yes
6988 fi
6989 LIBS="$lt_save_LIBS"
6990 CFLAGS="$lt_save_CFLAGS"
6991 else
6992 echo "cannot find nm_test_func in $nlist" >&5
6993 fi
6994 else
6995 echo "cannot find nm_test_var in $nlist" >&5
6996 fi
6997 else
6998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999 fi
7000 else
7001 echo "$progname: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 fi
7004 rm -rf conftest* conftst*
7005
7006 # Do not use the global_symbol_pipe unless it works.
7007 if test "$pipe_works" = yes; then
7008 break
7009 else
7010 lt_cv_sys_global_symbol_pipe=
7011 fi
7012done
7013
7014fi
7015
7016if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017 lt_cv_sys_global_symbol_to_cdecl=
7018fi
7019if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7021$as_echo "failed" >&6; }
7022else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7024$as_echo "ok" >&6; }
7025fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
5be7b669
L
7046
7047
7048# Check whether --enable-libtool-lock was given.
7049if test "${enable_libtool_lock+set}" = set; then :
7050 enableval=$enable_libtool_lock;
7051fi
7052
7053test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7054
7055# Some flags need to be propagated to the compiler or linker for good
7056# libtool support.
7057case $host in
7058ia64-*-hpux*)
7059 # Find out which ABI we are using.
7060 echo 'int i;' > conftest.$ac_ext
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 case `/usr/bin/file conftest.$ac_objext` in
7067 *ELF-32*)
7068 HPUX_IA64_MODE="32"
7069 ;;
7070 *ELF-64*)
7071 HPUX_IA64_MODE="64"
7072 ;;
7073 esac
7074 fi
7075 rm -rf conftest*
7076 ;;
7077*-*-irix6*)
7078 # Find out which ABI we are using.
7079 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 if test "$lt_cv_prog_gnu_ld" = yes; then
7086 case `/usr/bin/file conftest.$ac_objext` in
7087 *32-bit*)
7088 LD="${LD-ld} -melf32bsmip"
7089 ;;
7090 *N32*)
7091 LD="${LD-ld} -melf32bmipn32"
7092 ;;
7093 *64-bit*)
7094 LD="${LD-ld} -melf64bmip"
7095 ;;
7096 esac
7097 else
7098 case `/usr/bin/file conftest.$ac_objext` in
7099 *32-bit*)
7100 LD="${LD-ld} -32"
7101 ;;
7102 *N32*)
7103 LD="${LD-ld} -n32"
7104 ;;
7105 *64-bit*)
7106 LD="${LD-ld} -64"
7107 ;;
7108 esac
7109 fi
7110 fi
7111 rm -rf conftest*
7112 ;;
7113
7114x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7115s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7116 # Find out which ABI we are using.
7117 echo 'int i;' > conftest.$ac_ext
7118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119 (eval $ac_compile) 2>&5
7120 ac_status=$?
7121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122 test $ac_status = 0; }; then
7123 case `/usr/bin/file conftest.o` in
7124 *32-bit*)
7125 case $host in
7126 x86_64-*kfreebsd*-gnu)
7127 LD="${LD-ld} -m elf_i386_fbsd"
7128 ;;
7129 x86_64-*linux*)
7130 case `/usr/bin/file conftest.o` in
7131 *x86-64*)
7132 LD="${LD-ld} -m elf32_x86_64"
7133 ;;
7134 *)
7135 LD="${LD-ld} -m elf_i386"
7136 ;;
7137 esac
7138 ;;
7139 powerpc64le-*linux*)
7140 LD="${LD-ld} -m elf32lppclinux"
7141 ;;
7142 powerpc64-*linux*)
7143 LD="${LD-ld} -m elf32ppclinux"
7144 ;;
7145 s390x-*linux*)
7146 LD="${LD-ld} -m elf_s390"
7147 ;;
7148 sparc64-*linux*)
7149 LD="${LD-ld} -m elf32_sparc"
7150 ;;
7151 esac
7152 ;;
7153 *64-bit*)
7154 case $host in
7155 x86_64-*kfreebsd*-gnu)
7156 LD="${LD-ld} -m elf_x86_64_fbsd"
7157 ;;
7158 x86_64-*linux*)
7159 LD="${LD-ld} -m elf_x86_64"
7160 ;;
7161 powerpcle-*linux*)
7162 LD="${LD-ld} -m elf64lppc"
7163 ;;
7164 powerpc-*linux*)
7165 LD="${LD-ld} -m elf64ppc"
7166 ;;
7167 s390*-*linux*|s390*-*tpf*)
7168 LD="${LD-ld} -m elf64_s390"
7169 ;;
7170 sparc*-*linux*)
7171 LD="${LD-ld} -m elf64_sparc"
7172 ;;
7173 esac
7174 ;;
7175 esac
7176 fi
7177 rm -rf conftest*
7178 ;;
7179
7180*-*-sco3.2v5*)
7181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7182 SAVE_CFLAGS="$CFLAGS"
7183 CFLAGS="$CFLAGS -belf"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7185$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7186if ${lt_cv_cc_needs_belf+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188else
7189 ac_ext=c
7190ac_cpp='$CPP $CPPFLAGS'
7191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h. */
7197
7198int
7199main ()
7200{
7201
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206if ac_fn_c_try_link "$LINENO"; then :
7207 lt_cv_cc_needs_belf=yes
7208else
7209 lt_cv_cc_needs_belf=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 ac_ext=c
7214ac_cpp='$CPP $CPPFLAGS'
7215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217ac_compiler_gnu=$ac_cv_c_compiler_gnu
7218
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7221$as_echo "$lt_cv_cc_needs_belf" >&6; }
7222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7224 CFLAGS="$SAVE_CFLAGS"
7225 fi
7226 ;;
7227sparc*-*solaris*)
7228 # Find out which ABI we are using.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `/usr/bin/file conftest.o` in
7236 *64-bit*)
7237 case $lt_cv_prog_gnu_ld in
7238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7239 *)
7240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7241 LD="${LD-ld} -64"
7242 fi
7243 ;;
7244 esac
7245 ;;
7246 esac
7247 fi
7248 rm -rf conftest*
7249 ;;
7250esac
7251
7252need_locks="$enable_libtool_lock"
7253
7254
7255 case $host_os in
7256 rhapsody* | darwin*)
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_prog_DSYMUTIL+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264else
7265 if test -n "$DSYMUTIL"; then
7266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280 done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285DSYMUTIL=$ac_cv_prog_DSYMUTIL
7286if test -n "$DSYMUTIL"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7288$as_echo "$DSYMUTIL" >&6; }
7289else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294
7295fi
7296if test -z "$ac_cv_prog_DSYMUTIL"; then
7297 ac_ct_DSYMUTIL=$DSYMUTIL
7298 # Extract the first word of "dsymutil", so it can be a program name with args.
7299set dummy dsymutil; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304else
7305 if test -n "$ac_ct_DSYMUTIL"; then
7306 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320 done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7326if test -n "$ac_ct_DSYMUTIL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7328$as_echo "$ac_ct_DSYMUTIL" >&6; }
7329else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334 if test "x$ac_ct_DSYMUTIL" = x; then
7335 DSYMUTIL=":"
7336 else
7337 case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343 DSYMUTIL=$ac_ct_DSYMUTIL
7344 fi
7345else
7346 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7347fi
7348
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if ${ac_cv_prog_NMEDIT+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356else
7357 if test -n "$NMEDIT"; then
7358 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371done
7372 done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377NMEDIT=$ac_cv_prog_NMEDIT
7378if test -n "$NMEDIT"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7380$as_echo "$NMEDIT" >&6; }
7381else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386
7387fi
7388if test -z "$ac_cv_prog_NMEDIT"; then
7389 ac_ct_NMEDIT=$NMEDIT
7390 # Extract the first word of "nmedit", so it can be a program name with args.
7391set dummy nmedit; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396else
7397 if test -n "$ac_ct_NMEDIT"; then
7398 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412 done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7418if test -n "$ac_ct_NMEDIT"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7420$as_echo "$ac_ct_NMEDIT" >&6; }
7421else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426 if test "x$ac_ct_NMEDIT" = x; then
7427 NMEDIT=":"
7428 else
7429 case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435 NMEDIT=$ac_ct_NMEDIT
7436 fi
7437else
7438 NMEDIT="$ac_cv_prog_NMEDIT"
7439fi
7440
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7443set dummy ${ac_tool_prefix}lipo; ac_word=$2
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445$as_echo_n "checking for $ac_word... " >&6; }
7446if ${ac_cv_prog_LIPO+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448else
7449 if test -n "$LIPO"; then
7450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463done
7464 done
7465IFS=$as_save_IFS
7466
7467fi
7468fi
7469LIPO=$ac_cv_prog_LIPO
7470if test -n "$LIPO"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7472$as_echo "$LIPO" >&6; }
7473else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476fi
7477
7478
7479fi
7480if test -z "$ac_cv_prog_LIPO"; then
7481 ac_ct_LIPO=$LIPO
7482 # Extract the first word of "lipo", so it can be a program name with args.
7483set dummy lipo; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 if test -n "$ac_ct_LIPO"; then
7490 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_LIPO="lipo"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503done
7504 done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7510if test -n "$ac_ct_LIPO"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7512$as_echo "$ac_ct_LIPO" >&6; }
7513else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518 if test "x$ac_ct_LIPO" = x; then
7519 LIPO=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522yes:)
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525ac_tool_warned=yes ;;
7526esac
7527 LIPO=$ac_ct_LIPO
7528 fi
7529else
7530 LIPO="$ac_cv_prog_LIPO"
7531fi
7532
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7535set dummy ${ac_tool_prefix}otool; ac_word=$2
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if ${ac_cv_prog_OTOOL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540else
7541 if test -n "$OTOOL"; then
7542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7543else
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555done
7556 done
7557IFS=$as_save_IFS
7558
7559fi
7560fi
7561OTOOL=$ac_cv_prog_OTOOL
7562if test -n "$OTOOL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7564$as_echo "$OTOOL" >&6; }
7565else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570
7571fi
7572if test -z "$ac_cv_prog_OTOOL"; then
7573 ac_ct_OTOOL=$OTOOL
7574 # Extract the first word of "otool", so it can be a program name with args.
7575set dummy otool; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580else
7581 if test -n "$ac_ct_OTOOL"; then
7582 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_ac_ct_OTOOL="otool"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596 done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7602if test -n "$ac_ct_OTOOL"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7604$as_echo "$ac_ct_OTOOL" >&6; }
7605else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610 if test "x$ac_ct_OTOOL" = x; then
7611 OTOOL=":"
7612 else
7613 case $cross_compiling:$ac_tool_warned in
7614yes:)
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617ac_tool_warned=yes ;;
7618esac
7619 OTOOL=$ac_ct_OTOOL
7620 fi
7621else
7622 OTOOL="$ac_cv_prog_OTOOL"
7623fi
7624
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7627set dummy ${ac_tool_prefix}otool64; ac_word=$2
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if ${ac_cv_prog_OTOOL64+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632else
7633 if test -n "$OTOOL64"; then
7634 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648 done
7649IFS=$as_save_IFS
7650
7651fi
7652fi
7653OTOOL64=$ac_cv_prog_OTOOL64
7654if test -n "$OTOOL64"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7656$as_echo "$OTOOL64" >&6; }
7657else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
7660fi
7661
7662
7663fi
7664if test -z "$ac_cv_prog_OTOOL64"; then
7665 ac_ct_OTOOL64=$OTOOL64
7666 # Extract the first word of "otool64", so it can be a program name with args.
7667set dummy otool64; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672else
7673 if test -n "$ac_ct_OTOOL64"; then
7674 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_ac_ct_OTOOL64="otool64"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687done
7688 done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7694if test -n "$ac_ct_OTOOL64"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7696$as_echo "$ac_ct_OTOOL64" >&6; }
7697else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702 if test "x$ac_ct_OTOOL64" = x; then
7703 OTOOL64=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706yes:)
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709ac_tool_warned=yes ;;
7710esac
7711 OTOOL64=$ac_ct_OTOOL64
7712 fi
7713else
7714 OTOOL64="$ac_cv_prog_OTOOL64"
7715fi
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7744$as_echo_n "checking for -single_module linker flag... " >&6; }
7745if ${lt_cv_apple_cc_single_mod+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747else
7748 lt_cv_apple_cc_single_mod=no
7749 if test -z "${LT_MULTI_MODULE}"; then
7750 # By default we will add the -single_module flag. You can override
7751 # by either setting the environment variable LT_MULTI_MODULE
7752 # non-empty at configure time, or by adding -multi_module to the
7753 # link flags.
7754 rm -rf libconftest.dylib*
7755 echo "int foo(void){return 1;}" > conftest.c
7756 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7757-dynamiclib -Wl,-single_module conftest.c" >&5
7758 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7759 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7760 _lt_result=$?
7761 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7762 lt_cv_apple_cc_single_mod=yes
7763 else
7764 cat conftest.err >&5
7765 fi
7766 rm -rf libconftest.dylib*
7767 rm -f conftest.*
7768 fi
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7771$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7773$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7774if ${lt_cv_ld_exported_symbols_list+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776else
7777 lt_cv_ld_exported_symbols_list=no
7778 save_LDFLAGS=$LDFLAGS
7779 echo "_main" > conftest.sym
7780 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h. */
7783
7784int
7785main ()
7786{
7787
7788 ;
7789 return 0;
7790}
7791_ACEOF
7792if ac_fn_c_try_link "$LINENO"; then :
7793 lt_cv_ld_exported_symbols_list=yes
7794else
7795 lt_cv_ld_exported_symbols_list=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 LDFLAGS="$save_LDFLAGS"
7800
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7803$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7805$as_echo_n "checking for -force_load linker flag... " >&6; }
7806if ${lt_cv_ld_force_load+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808else
7809 lt_cv_ld_force_load=no
7810 cat > conftest.c << _LT_EOF
7811int forced_loaded() { return 2;}
7812_LT_EOF
7813 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7814 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7815 echo "$AR cru libconftest.a conftest.o" >&5
7816 $AR cru libconftest.a conftest.o 2>&5
7817 cat > conftest.c << _LT_EOF
7818int main() { return 0;}
7819_LT_EOF
7820 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7821 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7822 _lt_result=$?
7823 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7824 lt_cv_ld_force_load=yes
7825 else
7826 cat conftest.err >&5
7827 fi
7828 rm -f conftest.err libconftest.a conftest conftest.c
7829 rm -rf conftest.dSYM
7830
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7833$as_echo "$lt_cv_ld_force_load" >&6; }
7834 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7835 # build without first building modern cctools / linker.
7836 case $host_cpu-$host_os in
7837 *-rhapsody* | *-darwin1.[012])
7838 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7839 *-darwin1.*)
7840 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7841 *-darwin*)
7842 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7843 # deployment target is forced to an earlier version.
7844 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6a6d3817 7845 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
5be7b669
L
7846 ;;
7847 10.[012][,.]*)
7848 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7849 ;;
7850 *)
7851 ;;
7852 esac
7853 ;;
7854 esac
7855 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7856 _lt_dar_single_mod='$single_module'
7857 fi
7858 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7859 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7860 else
7861 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7862 fi
7863 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7864 _lt_dsymutil='~$DSYMUTIL $lib || :'
7865 else
7866 _lt_dsymutil=
7867 fi
7868 ;;
7869 esac
7870
7871ac_ext=c
7872ac_cpp='$CPP $CPPFLAGS'
7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7877$as_echo_n "checking how to run the C preprocessor... " >&6; }
7878# On Suns, sometimes $CPP names a directory.
7879if test -n "$CPP" && test -d "$CPP"; then
7880 CPP=
7881fi
7882if test -z "$CPP"; then
7883 if ${ac_cv_prog_CPP+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885else
7886 # Double quotes because CPP needs to be expanded
7887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7888 do
7889 ac_preproc_ok=false
7890for ac_c_preproc_warn_flag in '' yes
7891do
7892 # Use a header file that comes with gcc, so configuring glibc
7893 # with a fresh cross-compiler works.
7894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7895 # <limits.h> exists even on freestanding compilers.
7896 # On the NeXT, cc -E runs the code through the compiler's parser,
7897 # not just through cpp. "Syntax error" is here to catch this case.
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h. */
7900#ifdef __STDC__
7901# include <limits.h>
7902#else
7903# include <assert.h>
7904#endif
7905 Syntax error
7906_ACEOF
7907if ac_fn_c_try_cpp "$LINENO"; then :
7908
7909else
7910 # Broken: fails on valid input.
7911continue
7912fi
7913rm -f conftest.err conftest.i conftest.$ac_ext
7914
7915 # OK, works on sane cases. Now check whether nonexistent headers
7916 # can be detected and how.
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h. */
7919#include <ac_nonexistent.h>
7920_ACEOF
7921if ac_fn_c_try_cpp "$LINENO"; then :
7922 # Broken: success on invalid input.
7923continue
7924else
7925 # Passes both tests.
7926ac_preproc_ok=:
7927break
7928fi
7929rm -f conftest.err conftest.i conftest.$ac_ext
7930
7931done
7932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7933rm -f conftest.i conftest.err conftest.$ac_ext
7934if $ac_preproc_ok; then :
7935 break
7936fi
7937
7938 done
7939 ac_cv_prog_CPP=$CPP
7940
7941fi
7942 CPP=$ac_cv_prog_CPP
7943else
7944 ac_cv_prog_CPP=$CPP
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7947$as_echo "$CPP" >&6; }
7948ac_preproc_ok=false
7949for ac_c_preproc_warn_flag in '' yes
7950do
7951 # Use a header file that comes with gcc, so configuring glibc
7952 # with a fresh cross-compiler works.
7953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 # <limits.h> exists even on freestanding compilers.
7955 # On the NeXT, cc -E runs the code through the compiler's parser,
7956 # not just through cpp. "Syntax error" is here to catch this case.
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h. */
7959#ifdef __STDC__
7960# include <limits.h>
7961#else
7962# include <assert.h>
7963#endif
7964 Syntax error
7965_ACEOF
7966if ac_fn_c_try_cpp "$LINENO"; then :
7967
7968else
7969 # Broken: fails on valid input.
7970continue
7971fi
7972rm -f conftest.err conftest.i conftest.$ac_ext
7973
7974 # OK, works on sane cases. Now check whether nonexistent headers
7975 # can be detected and how.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h. */
7978#include <ac_nonexistent.h>
7979_ACEOF
7980if ac_fn_c_try_cpp "$LINENO"; then :
7981 # Broken: success on invalid input.
7982continue
7983else
7984 # Passes both tests.
7985ac_preproc_ok=:
7986break
7987fi
7988rm -f conftest.err conftest.i conftest.$ac_ext
7989
7990done
7991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7992rm -f conftest.i conftest.err conftest.$ac_ext
7993if $ac_preproc_ok; then :
7994
7995else
7996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7998as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7999See \`config.log' for more details" "$LINENO" 5; }
8000fi
8001
8002ac_ext=c
8003ac_cpp='$CPP $CPPFLAGS'
8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8010$as_echo_n "checking for ANSI C header files... " >&6; }
8011if ${ac_cv_header_stdc+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h. */
8016#include <stdlib.h>
8017#include <stdarg.h>
8018#include <string.h>
8019#include <float.h>
8020
8021int
8022main ()
8023{
8024
8025 ;
8026 return 0;
8027}
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_header_stdc=yes
8031else
8032 ac_cv_header_stdc=no
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035
8036if test $ac_cv_header_stdc = yes; then
8037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h. */
8040#include <string.h>
8041
8042_ACEOF
8043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "memchr" >/dev/null 2>&1; then :
8045
8046else
8047 ac_cv_header_stdc=no
8048fi
8049rm -f conftest*
8050
8051fi
8052
8053if test $ac_cv_header_stdc = yes; then
8054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h. */
8057#include <stdlib.h>
8058
8059_ACEOF
8060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "free" >/dev/null 2>&1; then :
8062
8063else
8064 ac_cv_header_stdc=no
8065fi
8066rm -f conftest*
8067
8068fi
8069
8070if test $ac_cv_header_stdc = yes; then
8071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8072 if test "$cross_compiling" = yes; then :
8073 :
8074else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h. */
8077#include <ctype.h>
8078#include <stdlib.h>
8079#if ((' ' & 0x0FF) == 0x020)
8080# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8081# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082#else
8083# define ISLOWER(c) \
8084 (('a' <= (c) && (c) <= 'i') \
8085 || ('j' <= (c) && (c) <= 'r') \
8086 || ('s' <= (c) && (c) <= 'z'))
8087# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8088#endif
8089
8090#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8091int
8092main ()
8093{
8094 int i;
8095 for (i = 0; i < 256; i++)
8096 if (XOR (islower (i), ISLOWER (i))
8097 || toupper (i) != TOUPPER (i))
8098 return 2;
8099 return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_run "$LINENO"; then :
8103
8104else
8105 ac_cv_header_stdc=no
8106fi
8107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108 conftest.$ac_objext conftest.beam conftest.$ac_ext
8109fi
8110
8111fi
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8114$as_echo "$ac_cv_header_stdc" >&6; }
8115if test $ac_cv_header_stdc = yes; then
8116
8117$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8118
8119fi
8120
8121# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8122for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8123 inttypes.h stdint.h unistd.h
8124do :
8125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8127"
8128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8129 cat >>confdefs.h <<_ACEOF
8130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8131_ACEOF
8132
8133fi
8134
8135done
8136
8137
8138for ac_header in dlfcn.h
8139do :
8140 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8141"
8142if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8143 cat >>confdefs.h <<_ACEOF
8144#define HAVE_DLFCN_H 1
8145_ACEOF
8146
8147fi
8148
8149done
8150
8151
8152
8153
8154
8155
8156# Set options
8157
8158
8159
8160 enable_dlopen=no
8161
8162
8163 enable_win32_dll=no
8164
8165
8166 # Check whether --enable-shared was given.
8167if test "${enable_shared+set}" = set; then :
8168 enableval=$enable_shared; p=${PACKAGE-default}
8169 case $enableval in
8170 yes) enable_shared=yes ;;
8171 no) enable_shared=no ;;
8172 *)
8173 enable_shared=no
8174 # Look at the argument we got. We use all the common list separators.
8175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176 for pkg in $enableval; do
8177 IFS="$lt_save_ifs"
8178 if test "X$pkg" = "X$p"; then
8179 enable_shared=yes
8180 fi
8181 done
8182 IFS="$lt_save_ifs"
8183 ;;
8184 esac
8185else
8186 enable_shared=yes
8187fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 # Check whether --enable-static was given.
8198if test "${enable_static+set}" = set; then :
8199 enableval=$enable_static; p=${PACKAGE-default}
8200 case $enableval in
8201 yes) enable_static=yes ;;
8202 no) enable_static=no ;;
8203 *)
8204 enable_static=no
8205 # Look at the argument we got. We use all the common list separators.
8206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207 for pkg in $enableval; do
8208 IFS="$lt_save_ifs"
8209 if test "X$pkg" = "X$p"; then
8210 enable_static=yes
8211 fi
8212 done
8213 IFS="$lt_save_ifs"
8214 ;;
8215 esac
8216else
8217 enable_static=yes
8218fi
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229# Check whether --with-pic was given.
8230if test "${with_pic+set}" = set; then :
8231 withval=$with_pic; pic_mode="$withval"
8232else
8233 pic_mode=default
8234fi
8235
8236
8237test -z "$pic_mode" && pic_mode=default
8238
8239
8240
8241
8242
8243
8244
8245 # Check whether --enable-fast-install was given.
8246if test "${enable_fast_install+set}" = set; then :
8247 enableval=$enable_fast_install; p=${PACKAGE-default}
8248 case $enableval in
8249 yes) enable_fast_install=yes ;;
8250 no) enable_fast_install=no ;;
8251 *)
8252 enable_fast_install=no
8253 # Look at the argument we got. We use all the common list separators.
8254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8255 for pkg in $enableval; do
8256 IFS="$lt_save_ifs"
8257 if test "X$pkg" = "X$p"; then
8258 enable_fast_install=yes
8259 fi
8260 done
8261 IFS="$lt_save_ifs"
8262 ;;
8263 esac
8264else
8265 enable_fast_install=yes
8266fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278# This can be used to rebuild libtool when needed
8279LIBTOOL_DEPS="$ltmain"
8280
8281# Always use our own libtool.
8282LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309test -z "$LN_S" && LN_S="ln -s"
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324if test -n "${ZSH_VERSION+set}" ; then
8325 setopt NO_GLOB_SUBST
8326fi
8327
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329$as_echo_n "checking for objdir... " >&6; }
8330if ${lt_cv_objdir+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333 rm -f .libs 2>/dev/null
8334mkdir .libs 2>/dev/null
8335if test -d .libs; then
8336 lt_cv_objdir=.libs
8337else
8338 # MS-DOS does not allow filenames that begin with a dot.
8339 lt_cv_objdir=_libs
8340fi
8341rmdir .libs 2>/dev/null
8342fi
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344$as_echo "$lt_cv_objdir" >&6; }
8345objdir=$lt_cv_objdir
8346
8347
8348
8349
8350
8351cat >>confdefs.h <<_ACEOF
8352#define LT_OBJDIR "$lt_cv_objdir/"
8353_ACEOF
8354
8355
8356
8357
8358case $host_os in
8359aix3*)
8360 # AIX sometimes has problems with the GCC collect2 program. For some
8361 # reason, if we set the COLLECT_NAMES environment variable, the problems
8362 # vanish in a puff of smoke.
8363 if test "X${COLLECT_NAMES+set}" != Xset; then
8364 COLLECT_NAMES=
8365 export COLLECT_NAMES
8366 fi
8367 ;;
8368esac
8369
8370# Global variables:
8371ofile=libtool
8372can_build_shared=yes
8373
8374# All known linkers require a `.a' archive for static linking (except MSVC,
8375# which needs '.lib').
8376libext=a
8377
8378with_gnu_ld="$lt_cv_prog_gnu_ld"
8379
8380old_CC="$CC"
8381old_CFLAGS="$CFLAGS"
8382
8383# Set sane defaults for various variables
8384test -z "$CC" && CC=cc
8385test -z "$LTCC" && LTCC=$CC
8386test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8387test -z "$LD" && LD=ld
8388test -z "$ac_objext" && ac_objext=o
8389
8390for cc_temp in $compiler""; do
8391 case $cc_temp in
8392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394 \-*) ;;
8395 *) break;;
8396 esac
8397done
8398cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8399
8400
8401# Only perform the check for file, if the check method requires it
8402test -z "$MAGIC_CMD" && MAGIC_CMD=file
8403case $deplibs_check_method in
8404file_magic*)
8405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8407$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8408if ${lt_cv_path_MAGIC_CMD+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411 case $MAGIC_CMD in
8412[\\/*] | ?:[\\/]*)
8413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414 ;;
8415*)
8416 lt_save_MAGIC_CMD="$MAGIC_CMD"
8417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419 for ac_dir in $ac_dummy; do
8420 IFS="$lt_save_ifs"
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/${ac_tool_prefix}file; then
8423 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424 if test -n "$file_magic_test_file"; then
8425 case $deplibs_check_method in
8426 "file_magic "*)
8427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430 $EGREP "$file_magic_regex" > /dev/null; then
8431 :
8432 else
8433 cat <<_LT_EOF 1>&2
8434
8435*** Warning: the command libtool uses to detect shared libraries,
8436*** $file_magic_cmd, produces output that libtool cannot recognize.
8437*** The result is that libtool may fail to recognize shared libraries
8438*** as such. This will affect the creation of libtool libraries that
8439*** depend on shared libraries, but programs linked with such libtool
8440*** libraries will work regardless of this problem. Nevertheless, you
8441*** may want to report the problem to your system manager and/or to
8442*** bug-libtool@gnu.org
8443
8444_LT_EOF
8445 fi ;;
8446 esac
8447 fi
8448 break
8449 fi
8450 done
8451 IFS="$lt_save_ifs"
8452 MAGIC_CMD="$lt_save_MAGIC_CMD"
8453 ;;
8454esac
8455fi
8456
8457MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458if test -n "$MAGIC_CMD"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8460$as_echo "$MAGIC_CMD" >&6; }
8461else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463$as_echo "no" >&6; }
8464fi
8465
8466
8467
8468
8469
8470if test -z "$lt_cv_path_MAGIC_CMD"; then
8471 if test -n "$ac_tool_prefix"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8473$as_echo_n "checking for file... " >&6; }
8474if ${lt_cv_path_MAGIC_CMD+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476else
8477 case $MAGIC_CMD in
8478[\\/*] | ?:[\\/]*)
8479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8480 ;;
8481*)
8482 lt_save_MAGIC_CMD="$MAGIC_CMD"
8483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8485 for ac_dir in $ac_dummy; do
8486 IFS="$lt_save_ifs"
8487 test -z "$ac_dir" && ac_dir=.
8488 if test -f $ac_dir/file; then
8489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8490 if test -n "$file_magic_test_file"; then
8491 case $deplibs_check_method in
8492 "file_magic "*)
8493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8496 $EGREP "$file_magic_regex" > /dev/null; then
8497 :
8498 else
8499 cat <<_LT_EOF 1>&2
8500
8501*** Warning: the command libtool uses to detect shared libraries,
8502*** $file_magic_cmd, produces output that libtool cannot recognize.
8503*** The result is that libtool may fail to recognize shared libraries
8504*** as such. This will affect the creation of libtool libraries that
8505*** depend on shared libraries, but programs linked with such libtool
8506*** libraries will work regardless of this problem. Nevertheless, you
8507*** may want to report the problem to your system manager and/or to
8508*** bug-libtool@gnu.org
8509
8510_LT_EOF
8511 fi ;;
8512 esac
8513 fi
8514 break
8515 fi
8516 done
8517 IFS="$lt_save_ifs"
8518 MAGIC_CMD="$lt_save_MAGIC_CMD"
8519 ;;
8520esac
8521fi
8522
8523MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524if test -n "$MAGIC_CMD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8526$as_echo "$MAGIC_CMD" >&6; }
8527else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532
8533 else
8534 MAGIC_CMD=:
8535 fi
8536fi
8537
8538 fi
8539 ;;
8540esac
8541
8542# Use C for the default configuration in the libtool script
8543
8544lt_save_CC="$CC"
8545ac_ext=c
8546ac_cpp='$CPP $CPPFLAGS'
8547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8549ac_compiler_gnu=$ac_cv_c_compiler_gnu
8550
8551
8552# Source file extension for C test sources.
8553ac_ext=c
8554
8555# Object file extension for compiled C test sources.
8556objext=o
8557objext=$objext
8558
8559# Code to be used in simple compile tests
8560lt_simple_compile_test_code="int some_variable = 0;"
8561
8562# Code to be used in simple link tests
8563lt_simple_link_test_code='int main(){return(0);}'
8564
8565
8566
8567
8568
8569
8570
8571# If no C compiler was specified, use CC.
8572LTCC=${LTCC-"$CC"}
8573
8574# If no C compiler flags were specified, use CFLAGS.
8575LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8576
8577# Allow CC to be a program name with arguments.
8578compiler=$CC
8579
8580# Save the default compiler, since it gets overwritten when the other
8581# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8582compiler_DEFAULT=$CC
8583
8584# save warnings/boilerplate of simple test code
8585ac_outfile=conftest.$ac_objext
8586echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8587eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8588_lt_compiler_boilerplate=`cat conftest.err`
8589$RM conftest*
8590
8591ac_outfile=conftest.$ac_objext
8592echo "$lt_simple_link_test_code" >conftest.$ac_ext
8593eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594_lt_linker_boilerplate=`cat conftest.err`
8595$RM -r conftest*
8596
8597
8598## CAVEAT EMPTOR:
8599## There is no encapsulation within the following macros, do not change
8600## the running order or otherwise move them around unless you know exactly
8601## what you are doing...
8602if test -n "$compiler"; then
8603
8604lt_prog_compiler_no_builtin_flag=
8605
8606if test "$GCC" = yes; then
8607 case $cc_basename in
8608 nvcc*)
8609 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8610 *)
8611 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8612 esac
8613
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8615$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8616if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618else
8619 lt_cv_prog_compiler_rtti_exceptions=no
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622 lt_compiler_flag="-fno-rtti -fno-exceptions"
8623 # Insert the option either (1) after the last *FLAGS variable, or
8624 # (2) before a word containing "conftest.", or (3) at the end.
8625 # Note that $ac_compile itself does not contain backslashes and begins
8626 # with a dollar sign (not a hyphen), so the echo should work correctly.
8627 # The option is referenced via a variable to avoid confusing sed.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>conftest.err)
8634 ac_status=$?
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s "$ac_outfile"; then
8638 # The compiler can only warn and ignore the option if not recognized
8639 # So say no if there are warnings other than the usual output.
8640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler_rtti_exceptions=yes
8644 fi
8645 fi
8646 $RM conftest*
8647
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8650$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8651
8652if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8654else
8655 :
8656fi
8657
8658fi
8659
8660
8661
8662
8663
8664
8665 lt_prog_compiler_wl=
8666lt_prog_compiler_pic=
8667lt_prog_compiler_static=
8668
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8670$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8671
8672 if test "$GCC" = yes; then
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_static='-static'
8675
8676 case $host_os in
8677 aix*)
8678 # All AIX code is PIC.
8679 if test "$host_cpu" = ia64; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static='-Bstatic'
8682 fi
8683 lt_prog_compiler_pic='-fPIC'
8684 ;;
8685
8686 amigaos*)
8687 case $host_cpu in
8688 powerpc)
8689 # see comment about AmigaOS4 .so support
8690 lt_prog_compiler_pic='-fPIC'
8691 ;;
8692 m68k)
8693 # FIXME: we need at least 68020 code to build shared libraries, but
8694 # adding the `-m68020' flag to GCC prevents building anything better,
8695 # like `-m68040'.
8696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8697 ;;
8698 esac
8699 ;;
8700
8701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8702 # PIC is the default for these OSes.
8703 ;;
8704
8705 mingw* | cygwin* | pw32* | os2* | cegcc*)
8706 # This hack is so that the source file can tell whether it is being
8707 # built for inclusion in a dll (and should export symbols for example).
8708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8709 # (--disable-auto-import) libraries
8710 lt_prog_compiler_pic='-DDLL_EXPORT'
8711 ;;
8712
8713 darwin* | rhapsody*)
8714 # PIC is the default on this platform
8715 # Common symbols not allowed in MH_DYLIB files
8716 lt_prog_compiler_pic='-fno-common'
8717 ;;
8718
8719 haiku*)
8720 # PIC is the default for Haiku.
8721 # The "-static" flag exists, but is broken.
8722 lt_prog_compiler_static=
8723 ;;
8724
8725 hpux*)
8726 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8727 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8728 # sets the default TLS model and affects inlining.
8729 case $host_cpu in
8730 hppa*64*)
8731 # +Z the default
8732 ;;
8733 *)
8734 lt_prog_compiler_pic='-fPIC'
8735 ;;
8736 esac
8737 ;;
8738
8739 interix[3-9]*)
8740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8741 # Instead, we relocate shared libraries at runtime.
8742 ;;
8743
8744 msdosdjgpp*)
8745 # Just because we use GCC doesn't mean we suddenly get shared libraries
8746 # on systems that don't support them.
8747 lt_prog_compiler_can_build_shared=no
8748 enable_shared=no
8749 ;;
8750
8751 *nto* | *qnx*)
8752 # QNX uses GNU C++, but need to define -shared option too, otherwise
8753 # it will coredump.
8754 lt_prog_compiler_pic='-fPIC -shared'
8755 ;;
8756
8757 sysv4*MP*)
8758 if test -d /usr/nec; then
8759 lt_prog_compiler_pic=-Kconform_pic
8760 fi
8761 ;;
8762
8763 *)
8764 lt_prog_compiler_pic='-fPIC'
8765 ;;
8766 esac
8767
8768 case $cc_basename in
8769 nvcc*) # Cuda Compiler Driver 2.2
8770 lt_prog_compiler_wl='-Xlinker '
8771 lt_prog_compiler_pic='-Xcompiler -fPIC'
8772 ;;
8773 esac
8774 else
8775 # PORTME Check for flag to pass linker flags through the system compiler.
8776 case $host_os in
8777 aix*)
8778 lt_prog_compiler_wl='-Wl,'
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 now supports IA64 processor
8781 lt_prog_compiler_static='-Bstatic'
8782 else
8783 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8784 fi
8785 ;;
8786
8787 mingw* | cygwin* | pw32* | os2* | cegcc*)
8788 # This hack is so that the source file can tell whether it is being
8789 # built for inclusion in a dll (and should export symbols for example).
8790 lt_prog_compiler_pic='-DDLL_EXPORT'
8791 ;;
8792
8793 hpux9* | hpux10* | hpux11*)
8794 lt_prog_compiler_wl='-Wl,'
8795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8796 # not for PA HP-UX.
8797 case $host_cpu in
8798 hppa*64*|ia64*)
8799 # +Z the default
8800 ;;
8801 *)
8802 lt_prog_compiler_pic='+Z'
8803 ;;
8804 esac
8805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806 lt_prog_compiler_static='${wl}-a ${wl}archive'
8807 ;;
8808
8809 irix5* | irix6* | nonstopux*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC (with -KPIC) is the default.
8812 lt_prog_compiler_static='-non_shared'
8813 ;;
8814
8815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8816 case $cc_basename in
8817 # old Intel for x86_64 which still supported -KPIC.
8818 ecc*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-static'
8822 ;;
8823 # icc used to be incompatible with GCC.
8824 # ICC 10 doesn't accept -KPIC any more.
8825 icc* | ifort*)
8826 lt_prog_compiler_wl='-Wl,'
8827 lt_prog_compiler_pic='-fPIC'
8828 lt_prog_compiler_static='-static'
8829 ;;
8830 # Lahey Fortran 8.1.
8831 lf95*)
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='--shared'
8834 lt_prog_compiler_static='--static'
8835 ;;
8836 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8837 # Portland Group compilers (*not* the Pentium gcc compiler,
8838 # which looks to be a dead project)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fpic'
8841 lt_prog_compiler_static='-Bstatic'
8842 ;;
8843 ccc*)
8844 lt_prog_compiler_wl='-Wl,'
8845 # All Alpha code is PIC.
8846 lt_prog_compiler_static='-non_shared'
8847 ;;
8848 xl* | bgxl* | bgf* | mpixl*)
8849 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-qpic'
8852 lt_prog_compiler_static='-qstaticlink'
8853 ;;
8854 *)
8855 case `$CC -V 2>&1 | sed 5q` in
8856 *Sun\ F* | *Sun*Fortran*)
8857 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_wl=''
8861 ;;
8862 *Sun\ C*)
8863 # Sun C 5.9
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8867 ;;
8868 esac
8869 ;;
8870 esac
8871 ;;
8872
8873 newsos6)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877
8878 *nto* | *qnx*)
8879 # QNX uses GNU C++, but need to define -shared option too, otherwise
8880 # it will coredump.
8881 lt_prog_compiler_pic='-fPIC -shared'
8882 ;;
8883
8884 osf3* | osf4* | osf5*)
8885 lt_prog_compiler_wl='-Wl,'
8886 # All OSF/1 code is PIC.
8887 lt_prog_compiler_static='-non_shared'
8888 ;;
8889
8890 rdos*)
8891 lt_prog_compiler_static='-non_shared'
8892 ;;
8893
8894 solaris*)
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 case $cc_basename in
8898 f77* | f90* | f95*)
8899 lt_prog_compiler_wl='-Qoption ld ';;
8900 *)
8901 lt_prog_compiler_wl='-Wl,';;
8902 esac
8903 ;;
8904
8905 sunos4*)
8906 lt_prog_compiler_wl='-Qoption ld '
8907 lt_prog_compiler_pic='-PIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 ;;
8910
8911 sysv4 | sysv4.2uw2* | sysv4.3*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 ;;
8916
8917 sysv4*MP*)
8918 if test -d /usr/nec ;then
8919 lt_prog_compiler_pic='-Kconform_pic'
8920 lt_prog_compiler_static='-Bstatic'
8921 fi
8922 ;;
8923
8924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 ;;
8929
8930 unicos*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_can_build_shared=no
8933 ;;
8934
8935 uts4*)
8936 lt_prog_compiler_pic='-pic'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939
8940 *)
8941 lt_prog_compiler_can_build_shared=no
8942 ;;
8943 esac
8944 fi
8945
8946case $host_os in
8947 # For platforms which do not support PIC, -DPIC is meaningless:
8948 *djgpp*)
8949 lt_prog_compiler_pic=
8950 ;;
8951 *)
8952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8953 ;;
8954esac
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8956$as_echo "$lt_prog_compiler_pic" >&6; }
8957
8958
8959
8960
8961
8962
8963#
8964# Check to make sure the PIC flag actually works.
8965#
8966if test -n "$lt_prog_compiler_pic"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8968$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8969if ${lt_cv_prog_compiler_pic_works+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972 lt_cv_prog_compiler_pic_works=no
8973 ac_outfile=conftest.$ac_objext
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8976 # Insert the option either (1) after the last *FLAGS variable, or
8977 # (2) before a word containing "conftest.", or (3) at the end.
8978 # Note that $ac_compile itself does not contain backslashes and begins
8979 # with a dollar sign (not a hyphen), so the echo should work correctly.
8980 # The option is referenced via a variable to avoid confusing sed.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>conftest.err)
8987 ac_status=$?
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s "$ac_outfile"; then
8991 # The compiler can only warn and ignore the option if not recognized
8992 # So say no if there are warnings other than the usual output.
8993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler_pic_works=yes
8997 fi
8998 fi
8999 $RM conftest*
9000
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9003$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9004
9005if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9006 case $lt_prog_compiler_pic in
9007 "" | " "*) ;;
9008 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9009 esac
9010else
9011 lt_prog_compiler_pic=
9012 lt_prog_compiler_can_build_shared=no
9013fi
9014
9015fi
9016
9017
9018
9019
9020
9021
9022#
9023# Check to make sure the static flag actually works.
9024#
9025wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9027$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9028if ${lt_cv_prog_compiler_static_works+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030else
9031 lt_cv_prog_compiler_static_works=no
9032 save_LDFLAGS="$LDFLAGS"
9033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9036 # The linker can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 if test -s conftest.err; then
9039 # Append any errors to the config.log.
9040 cat conftest.err 1>&5
9041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_static_works=yes
9045 fi
9046 else
9047 lt_cv_prog_compiler_static_works=yes
9048 fi
9049 fi
9050 $RM -r conftest*
9051 LDFLAGS="$save_LDFLAGS"
9052
9053fi
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9055$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9056
9057if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9058 :
9059else
9060 lt_prog_compiler_static=
9061fi
9062
9063
9064
9065
9066
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9070$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9071if ${lt_cv_prog_compiler_c_o+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073else
9074 lt_cv_prog_compiler_c_o=no
9075 $RM -r conftest 2>/dev/null
9076 mkdir conftest
9077 cd conftest
9078 mkdir out
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080
9081 lt_compiler_flag="-o out/conftest2.$ac_objext"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>out/conftest.err)
9092 ac_status=$?
9093 cat out/conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9096 then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_c_o=yes
9103 fi
9104 fi
9105 chmod u+w . 2>&5
9106 $RM conftest*
9107 # SGI C++ compiler will create directory out/ii_files/ for
9108 # template instantiation
9109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9110 $RM out/* && rmdir out
9111 cd ..
9112 $RM -r conftest
9113 $RM conftest*
9114
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9117$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9118
9119
9120
9121
9122
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9125$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9126if ${lt_cv_prog_compiler_c_o+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128else
9129 lt_cv_prog_compiler_c_o=no
9130 $RM -r conftest 2>/dev/null
9131 mkdir conftest
9132 cd conftest
9133 mkdir out
9134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135
9136 lt_compiler_flag="-o out/conftest2.$ac_objext"
9137 # Insert the option either (1) after the last *FLAGS variable, or
9138 # (2) before a word containing "conftest.", or (3) at the end.
9139 # Note that $ac_compile itself does not contain backslashes and begins
9140 # with a dollar sign (not a hyphen), so the echo should work correctly.
9141 lt_compile=`echo "$ac_compile" | $SED \
9142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144 -e 's:$: $lt_compiler_flag:'`
9145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146 (eval "$lt_compile" 2>out/conftest.err)
9147 ac_status=$?
9148 cat out/conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9151 then
9152 # The compiler can only warn and ignore the option if not recognized
9153 # So say no if there are warnings
9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_c_o=yes
9158 fi
9159 fi
9160 chmod u+w . 2>&5
9161 $RM conftest*
9162 # SGI C++ compiler will create directory out/ii_files/ for
9163 # template instantiation
9164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9165 $RM out/* && rmdir out
9166 cd ..
9167 $RM -r conftest
9168 $RM conftest*
9169
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9172$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9173
9174
9175
9176
9177hard_links="nottested"
9178if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9179 # do not overwrite the value of need_locks provided by the user
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9181$as_echo_n "checking if we can lock with hard links... " >&6; }
9182 hard_links=yes
9183 $RM conftest*
9184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9185 touch conftest.a
9186 ln conftest.a conftest.b 2>&5 || hard_links=no
9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9189$as_echo "$hard_links" >&6; }
9190 if test "$hard_links" = no; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9192$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9193 need_locks=warn
9194 fi
9195else
9196 need_locks=no
9197fi
9198
9199
9200
9201
9202
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9205$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9206
9207 runpath_var=
9208 allow_undefined_flag=
9209 always_export_symbols=no
9210 archive_cmds=
9211 archive_expsym_cmds=
9212 compiler_needs_object=no
9213 enable_shared_with_static_runtimes=no
9214 export_dynamic_flag_spec=
9215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9216 hardcode_automatic=no
9217 hardcode_direct=no
9218 hardcode_direct_absolute=no
9219 hardcode_libdir_flag_spec=
9220 hardcode_libdir_flag_spec_ld=
9221 hardcode_libdir_separator=
9222 hardcode_minus_L=no
9223 hardcode_shlibpath_var=unsupported
9224 inherit_rpath=no
9225 link_all_deplibs=unknown
9226 module_cmds=
9227 module_expsym_cmds=
9228 old_archive_from_new_cmds=
9229 old_archive_from_expsyms_cmds=
9230 thread_safe_flag_spec=
9231 whole_archive_flag_spec=
9232 # include_expsyms should be a list of space-separated symbols to be *always*
9233 # included in the symbol list
9234 include_expsyms=
9235 # exclude_expsyms can be an extended regexp of symbols to exclude
9236 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9237 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9238 # as well as any symbol that contains `d'.
9239 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9240 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9241 # platforms (ab)use it in PIC code, but their linkers get confused if
9242 # the symbol is explicitly referenced. Since portable code cannot
9243 # rely on this symbol name, it's probably fine to never include it in
9244 # preloaded symbol tables.
9245 # Exclude shared library initialization/finalization symbols.
9246 extract_expsyms_cmds=
9247
9248 case $host_os in
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9251 # When not using gcc, we currently assume that we are using
9252 # Microsoft Visual C++.
9253 if test "$GCC" != yes; then
9254 with_gnu_ld=no
9255 fi
9256 ;;
9257 interix*)
9258 # we just hope/assume this is gcc and not c89 (= MSVC++)
9259 with_gnu_ld=yes
9260 ;;
9261 openbsd*)
9262 with_gnu_ld=no
9263 ;;
9264 esac
9265
9266 ld_shlibs=yes
9267
9268 # On some targets, GNU ld is compatible enough with the native linker
9269 # that we're better off using the native interface for both.
9270 lt_use_gnu_ld_interface=no
9271 if test "$with_gnu_ld" = yes; then
9272 case $host_os in
9273 aix*)
9274 # The AIX port of GNU ld has always aspired to compatibility
9275 # with the native linker. However, as the warning in the GNU ld
9276 # block says, versions before 2.19.5* couldn't really create working
9277 # shared libraries, regardless of the interface used.
9278 case `$LD -v 2>&1` in
9279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9282 *)
9283 lt_use_gnu_ld_interface=yes
9284 ;;
9285 esac
9286 ;;
9287 *)
9288 lt_use_gnu_ld_interface=yes
9289 ;;
9290 esac
9291 fi
9292
9293 if test "$lt_use_gnu_ld_interface" = yes; then
9294 # If archive_cmds runs LD, not CC, wlarc should be empty
9295 wlarc='${wl}'
9296
9297 # Set some defaults for GNU ld with shared library support. These
9298 # are reset later if shared libraries are not supported. Putting them
9299 # here allows them to be overridden if necessary.
9300 runpath_var=LD_RUN_PATH
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 export_dynamic_flag_spec='${wl}--export-dynamic'
9303 # ancient GNU ld didn't support --whole-archive et. al.
9304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9306 else
9307 whole_archive_flag_spec=
9308 fi
9309 supports_anon_versioning=no
9310 case `$LD -v 2>&1` in
9311 *GNU\ gold*) supports_anon_versioning=yes ;;
9312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9315 *\ 2.11.*) ;; # other 2.11 versions
9316 *) supports_anon_versioning=yes ;;
9317 esac
9318
9319 # See if GNU ld supports shared libraries.
9320 case $host_os in
9321 aix[3-9]*)
9322 # On AIX/PPC, the GNU linker is very broken
9323 if test "$host_cpu" != ia64; then
9324 ld_shlibs=no
9325 cat <<_LT_EOF 1>&2
9326
9327*** Warning: the GNU linker, at least up to release 2.19, is reported
9328*** to be unable to reliably create shared libraries on AIX.
9329*** Therefore, libtool is disabling shared libraries support. If you
9330*** really care for shared libraries, you may want to install binutils
9331*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9332*** You will then need to restart the configuration process.
9333
9334_LT_EOF
9335 fi
9336 ;;
9337
9338 amigaos*)
9339 case $host_cpu in
9340 powerpc)
9341 # see comment about AmigaOS4 .so support
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds=''
9344 ;;
9345 m68k)
9346 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)'
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 hardcode_minus_L=yes
9349 ;;
9350 esac
9351 ;;
9352
9353 beos*)
9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 allow_undefined_flag=unsupported
9356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9357 # support --undefined. This deserves some investigation. FIXME
9358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 else
9360 ld_shlibs=no
9361 fi
9362 ;;
9363
9364 cygwin* | mingw* | pw32* | cegcc*)
9365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9366 # as there is no search path for DLLs.
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 export_dynamic_flag_spec='${wl}--export-all-symbols'
9369 allow_undefined_flag=unsupported
9370 always_export_symbols=no
9371 enable_shared_with_static_runtimes=yes
9372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9373
9374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 # If the export-symbols file already is a .def file (1st line
9377 # is EXPORTS), use it as is; otherwise, prepend...
9378 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9379 cp $export_symbols $output_objdir/$soname.def;
9380 else
9381 echo EXPORTS > $output_objdir/$soname.def;
9382 cat $export_symbols >> $output_objdir/$soname.def;
9383 fi~
9384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 else
9386 ld_shlibs=no
9387 fi
9388 ;;
9389
9390 haiku*)
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392 link_all_deplibs=yes
9393 ;;
9394
9395 interix[3-9]*)
9396 hardcode_direct=no
9397 hardcode_shlibpath_var=no
9398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9399 export_dynamic_flag_spec='${wl}-E'
9400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9401 # Instead, shared libraries are loaded at an image base (0x10000000 by
9402 # default) and relocated if they conflict, which is a slow very memory
9403 # consuming and fragmenting process. To avoid this, we pick a random,
9404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9407 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'
9408 ;;
9409
9410 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9411 tmp_diet=no
9412 if test "$host_os" = linux-dietlibc; then
9413 case $cc_basename in
9414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9415 esac
9416 fi
9417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9418 && test "$tmp_diet" = no
9419 then
9420 tmp_addflag=' $pic_flag'
9421 tmp_sharedflag='-shared'
9422 case $cc_basename,$host_cpu in
9423 pgcc*) # Portland Group C compiler
9424 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'
9425 tmp_addflag=' $pic_flag'
9426 ;;
9427 pgf77* | pgf90* | pgf95* | pgfortran*)
9428 # Portland Group f77 and f90 compilers
9429 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'
9430 tmp_addflag=' $pic_flag -Mnomain' ;;
9431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9432 tmp_addflag=' -i_dynamic' ;;
9433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9434 tmp_addflag=' -i_dynamic -nofor_main' ;;
9435 ifc* | ifort*) # Intel Fortran compiler
9436 tmp_addflag=' -nofor_main' ;;
9437 lf95*) # Lahey Fortran 8.1
9438 whole_archive_flag_spec=
9439 tmp_sharedflag='--shared' ;;
9440 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9441 tmp_sharedflag='-qmkshrobj'
9442 tmp_addflag= ;;
9443 nvcc*) # Cuda Compiler Driver 2.2
9444 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'
9445 compiler_needs_object=yes
9446 ;;
9447 esac
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ C*) # Sun C 5.9
9450 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'
9451 compiler_needs_object=yes
9452 tmp_sharedflag='-G' ;;
9453 *Sun\ F*) # Sun Fortran 8.3
9454 tmp_sharedflag='-G' ;;
9455 esac
9456 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457
9458 if test "x$supports_anon_versioning" = xyes; then
9459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461 echo "local: *; };" >> $output_objdir/$libname.ver~
9462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9463 fi
9464
9465 case $cc_basename in
9466 xlf* | bgf* | bgxlf* | mpixlf*)
9467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9469 hardcode_libdir_flag_spec=
9470 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9471 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9472 if test "x$supports_anon_versioning" = xyes; then
9473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9475 echo "local: *; };" >> $output_objdir/$libname.ver~
9476 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9477 fi
9478 ;;
9479 esac
9480 else
9481 ld_shlibs=no
9482 fi
9483 ;;
9484
9485 netbsd*)
9486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9488 wlarc=
9489 else
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 fi
9493 ;;
9494
9495 solaris*)
9496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9497 ld_shlibs=no
9498 cat <<_LT_EOF 1>&2
9499
9500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9501*** create shared libraries on Solaris systems. Therefore, libtool
9502*** is disabling shared libraries support. We urge you to upgrade GNU
9503*** binutils to release 2.9.1 or newer. Another option is to modify
9504*** your PATH or compiler configuration so that the native linker is
9505*** used, and then restart.
9506
9507_LT_EOF
9508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9511 else
9512 ld_shlibs=no
9513 fi
9514 ;;
9515
9516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9517 case `$LD -v 2>&1` in
9518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9519 ld_shlibs=no
9520 cat <<_LT_EOF 1>&2
9521
9522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9523*** reliably create shared libraries on SCO systems. Therefore, libtool
9524*** is disabling shared libraries support. We urge you to upgrade GNU
9525*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9526*** your PATH or compiler configuration so that the native linker is
9527*** used, and then restart.
9528
9529_LT_EOF
9530 ;;
9531 *)
9532 # For security reasons, it is highly recommended that you always
9533 # use absolute paths for naming shared libraries, and exclude the
9534 # DT_RUNPATH tag from executables and libraries. But doing so
9535 # requires that you compile everything twice, which is a pain.
9536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540 else
9541 ld_shlibs=no
9542 fi
9543 ;;
9544 esac
9545 ;;
9546
9547 sunos4*)
9548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9549 wlarc=
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
9552 ;;
9553
9554 *)
9555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558 else
9559 ld_shlibs=no
9560 fi
9561 ;;
9562 esac
9563
9564 if test "$ld_shlibs" = no; then
9565 runpath_var=
9566 hardcode_libdir_flag_spec=
9567 export_dynamic_flag_spec=
9568 whole_archive_flag_spec=
9569 fi
9570 else
9571 # PORTME fill in a description of your system's linker (not GNU ld)
9572 case $host_os in
9573 aix3*)
9574 allow_undefined_flag=unsupported
9575 always_export_symbols=yes
9576 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'
9577 # Note: this linker hardcodes the directories in LIBPATH if there
9578 # are no directories specified by -L.
9579 hardcode_minus_L=yes
9580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9581 # Neither direct hardcoding nor static linking is supported with a
9582 # broken collect2.
9583 hardcode_direct=unsupported
9584 fi
9585 ;;
9586
9587 aix[4-9]*)
9588 if test "$host_cpu" = ia64; then
9589 # On IA64, the linker does run time linking by default, so we don't
9590 # have to do anything special.
9591 aix_use_runtimelinking=no
9592 exp_sym_flag='-Bexport'
9593 no_entry_flag=""
9594 else
9595 # If we're using GNU nm, then we don't want the "-C" option.
9596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9597 # Also, AIX nm treats weak defined symbols like other global
9598 # defined symbols, whereas GNU nm marks them as "W".
9599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9600 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'
9601 else
9602 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9603 fi
9604 aix_use_runtimelinking=no
9605
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9610 for ld_flag in $LDFLAGS; do
9611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9612 aix_use_runtimelinking=yes
9613 break
9614 fi
9615 done
9616 ;;
9617 esac
9618
9619 exp_sym_flag='-bexport'
9620 no_entry_flag='-bnoentry'
9621 fi
9622
9623 # When large executables or shared objects are built, AIX ld can
9624 # have problems creating the table of contents. If linking a library
9625 # or program results in "error TOC overflow" add -mminimal-toc to
9626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9628
9629 archive_cmds=''
9630 hardcode_direct=yes
9631 hardcode_direct_absolute=yes
9632 hardcode_libdir_separator=':'
9633 link_all_deplibs=yes
9634 file_list_spec='${wl}-f,'
9635
9636 if test "$GCC" = yes; then
9637 case $host_os in aix4.[012]|aix4.[012].*)
9638 # We only want to do this on AIX 4.2 and lower, the check
9639 # below for broken collect2 doesn't work under 4.3+
9640 collect2name=`${CC} -print-prog-name=collect2`
9641 if test -f "$collect2name" &&
9642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9643 then
9644 # We have reworked collect2
9645 :
9646 else
9647 # We have old collect2
9648 hardcode_direct=unsupported
9649 # It fails to find uninstalled libraries when the uninstalled
9650 # path is not listed in the libpath. Setting hardcode_minus_L
9651 # to unsupported forces relinking
9652 hardcode_minus_L=yes
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_libdir_separator=
9655 fi
9656 ;;
9657 esac
9658 shared_flag='-shared'
9659 if test "$aix_use_runtimelinking" = yes; then
9660 shared_flag="$shared_flag "'${wl}-G'
9661 fi
9662 else
9663 # not using gcc
9664 if test "$host_cpu" = ia64; then
9665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9666 # chokes on -Wl,-G. The following line is correct:
9667 shared_flag='-G'
9668 else
9669 if test "$aix_use_runtimelinking" = yes; then
9670 shared_flag='${wl}-G'
9671 else
9672 shared_flag='${wl}-bM:SRE'
9673 fi
9674 fi
9675 fi
9676
9677 export_dynamic_flag_spec='${wl}-bexpall'
9678 # It seems that -bexpall does not export symbols beginning with
9679 # underscore (_), so it is better to generate a list of symbols to export.
9680 always_export_symbols=yes
9681 if test "$aix_use_runtimelinking" = yes; then
9682 # Warning - without using the other runtime loading flags (-brtl),
9683 # -berok will link without error, but may produce a broken library.
9684 allow_undefined_flag='-berok'
9685 # Determine the default libpath from the value encoded in an
9686 # empty executable.
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h. */
9689
9690int
9691main ()
9692{
9693
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"; then :
9699
9700lt_aix_libpath_sed='
9701 /Import File Strings/,/^$/ {
9702 /^0/ {
9703 s/^0 *\(.*\)$/\1/
9704 p
9705 }
9706 }'
9707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708# Check for a 64-bit object if we didn't find anything.
9709if test -z "$aix_libpath"; then
9710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711fi
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9716
9717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 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"
9719 else
9720 if test "$host_cpu" = ia64; then
9721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9722 allow_undefined_flag="-z nodefs"
9723 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"
9724 else
9725 # Determine the default libpath from the value encoded in an
9726 # empty executable.
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h. */
9729
9730int
9731main ()
9732{
9733
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738if ac_fn_c_try_link "$LINENO"; then :
9739
9740lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9742 /^0/ {
9743 s/^0 *\(.*\)$/\1/
9744 p
9745 }
9746 }'
9747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748# Check for a 64-bit object if we didn't find anything.
9749if test -z "$aix_libpath"; then
9750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751fi
9752fi
9753rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9756
9757 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 # Warning - without using the other run time loading flags,
9759 # -berok will link without error, but may produce a broken library.
9760 no_undefined_flag=' ${wl}-bernotok'
9761 allow_undefined_flag=' ${wl}-berok'
9762 if test "$with_gnu_ld" = yes; then
9763 # We only use this code for GNU lds that support --whole-archive.
9764 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9765 else
9766 # Exported symbols can be pulled into shared objects from archives
9767 whole_archive_flag_spec='$convenience'
9768 fi
9769 archive_cmds_need_lc=yes
9770 # This is similar to how AIX traditionally builds its shared libraries.
9771 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'
9772 fi
9773 fi
9774 ;;
9775
9776 amigaos*)
9777 case $host_cpu in
9778 powerpc)
9779 # see comment about AmigaOS4 .so support
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 archive_expsym_cmds=''
9782 ;;
9783 m68k)
9784 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)'
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_minus_L=yes
9787 ;;
9788 esac
9789 ;;
9790
9791 bsdi[45]*)
9792 export_dynamic_flag_spec=-rdynamic
9793 ;;
9794
9795 cygwin* | mingw* | pw32* | cegcc*)
9796 # When not using gcc, we currently assume that we are using
9797 # Microsoft Visual C++.
9798 # hardcode_libdir_flag_spec is actually meaningless, as there is
9799 # no search path for DLLs.
9800 hardcode_libdir_flag_spec=' '
9801 allow_undefined_flag=unsupported
9802 # Tell ltmain to make .lib files, not .a files.
9803 libext=lib
9804 # Tell ltmain to make .dll files, not .so files.
9805 shrext_cmds=".dll"
9806 # FIXME: Setting linknames here is a bad hack.
9807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9808 # The linker will automatically build a .lib file if we build a DLL.
9809 old_archive_from_new_cmds='true'
9810 # FIXME: Should let the user specify the lib program.
9811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9812 fix_srcfile_path='`cygpath -w "$srcfile"`'
9813 enable_shared_with_static_runtimes=yes
9814 ;;
9815
9816 darwin* | rhapsody*)
9817
9818
6a6d3817
IS
9819
9820 # Publish an arg to allow the user to select that Darwin host (and target)
9821 # libraries should be given install-names like @rpath/libfoo.dylib. This
9822 # requires that the user of the library then adds an 'rpath' to the DSO that
9823 # needs access.
9824 # NOTE: there are defaults below, for systems that support rpaths. The person
9825 # configuring can override the defaults for any system version that supports
9826 # them - they are, however, forced off for system versions without support.
9827 # Check whether --enable-darwin-at-rpath was given.
9828if test "${enable_darwin_at_rpath+set}" = set; then :
9829 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9830 # This is not supported before macOS 10.5 / Darwin9.
9831 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9832 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9834$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9835 enable_darwin_at_rpath=no
9836 ;;
9837 esac
9838 fi
9839else
9840 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9841 # As above, before 10.5 / Darwin9 this does not work.
9842 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9843 enable_darwin_at_rpath=no
9844 ;;
9845
9846 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9847 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9848 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9849 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9851$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9852 enable_darwin_at_rpath=yes
9853 ;;
9854 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9855 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9856
9857 esac
9858
9859fi
9860
9861
5be7b669
L
9862 archive_cmds_need_lc=no
9863 hardcode_direct=no
9864 hardcode_automatic=yes
9865 hardcode_shlibpath_var=unsupported
9866 if test "$lt_cv_ld_force_load" = "yes"; then
9867 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\"`'
9868 else
9869 whole_archive_flag_spec=''
9870 fi
9871 link_all_deplibs=yes
9872 allow_undefined_flag="$_lt_dar_allow_undefined"
9873 case $cc_basename in
9874 ifort*) _lt_dar_can_shared=yes ;;
9875 *) _lt_dar_can_shared=$GCC ;;
9876 esac
9877 if test "$_lt_dar_can_shared" = "yes"; then
9878 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
9879 _lt_install_name='\$rpath/\$soname'
9880 if test "x$enable_darwin_at_rpath" = "xyes"; then
9881 _lt_install_name='@rpath/\$soname'
9882 fi
9883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
5be7b669 9884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 9885 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
5be7b669
L
9886 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}"
9887
9888 else
9889 ld_shlibs=no
9890 fi
9891
9892 ;;
9893
9894 dgux*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9901 # support. Future versions do this automatically, but an explicit c++rt0.o
9902 # does not break anything, and helps significantly (at the cost of a little
9903 # extra space).
9904 freebsd2.2*)
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9906 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_direct=yes
9908 hardcode_shlibpath_var=no
9909 ;;
9910
9911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9912 freebsd2.*)
9913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=yes
9915 hardcode_minus_L=yes
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9920 freebsd* | dragonfly*)
9921 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9922 hardcode_libdir_flag_spec='-R$libdir'
9923 hardcode_direct=yes
9924 hardcode_shlibpath_var=no
9925 ;;
9926
9927 hpux9*)
9928 if test "$GCC" = yes; then
9929 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'
9930 else
9931 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'
9932 fi
9933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 hardcode_direct=yes
9936
9937 # hardcode_minus_L: Not really in the search PATH,
9938 # but as the default location of the library.
9939 hardcode_minus_L=yes
9940 export_dynamic_flag_spec='${wl}-E'
9941 ;;
9942
9943 hpux10*)
9944 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9948 fi
9949 if test "$with_gnu_ld" = no; then
9950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9951 hardcode_libdir_flag_spec_ld='+b $libdir'
9952 hardcode_libdir_separator=:
9953 hardcode_direct=yes
9954 hardcode_direct_absolute=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 # hardcode_minus_L: Not really in the search PATH,
9957 # but as the default location of the library.
9958 hardcode_minus_L=yes
9959 fi
9960 ;;
9961
9962 hpux11*)
9963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9964 case $host_cpu in
9965 hppa*64*)
9966 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9967 ;;
9968 ia64*)
9969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9970 ;;
9971 *)
9972 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9973 ;;
9974 esac
9975 else
9976 case $host_cpu in
9977 hppa*64*)
9978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9979 ;;
9980 ia64*)
9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9982 ;;
9983 *)
9984
9985 # Older versions of the 11.00 compiler do not understand -b yet
9986 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9988$as_echo_n "checking if $CC understands -b... " >&6; }
9989if ${lt_cv_prog_compiler__b+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991else
9992 lt_cv_prog_compiler__b=no
9993 save_LDFLAGS="$LDFLAGS"
9994 LDFLAGS="$LDFLAGS -b"
9995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9997 # The linker can only warn and ignore the option if not recognized
9998 # So say no if there are warnings
9999 if test -s conftest.err; then
10000 # Append any errors to the config.log.
10001 cat conftest.err 1>&5
10002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10004 if diff conftest.exp conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler__b=yes
10006 fi
10007 else
10008 lt_cv_prog_compiler__b=yes
10009 fi
10010 fi
10011 $RM -r conftest*
10012 LDFLAGS="$save_LDFLAGS"
10013
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10016$as_echo "$lt_cv_prog_compiler__b" >&6; }
10017
10018if test x"$lt_cv_prog_compiler__b" = xyes; then
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020else
10021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10022fi
10023
10024 ;;
10025 esac
10026 fi
10027 if test "$with_gnu_ld" = no; then
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030
10031 case $host_cpu in
10032 hppa*64*|ia64*)
10033 hardcode_direct=no
10034 hardcode_shlibpath_var=no
10035 ;;
10036 *)
10037 hardcode_direct=yes
10038 hardcode_direct_absolute=yes
10039 export_dynamic_flag_spec='${wl}-E'
10040
10041 # hardcode_minus_L: Not really in the search PATH,
10042 # but as the default location of the library.
10043 hardcode_minus_L=yes
10044 ;;
10045 esac
10046 fi
10047 ;;
10048
10049 irix5* | irix6* | nonstopux*)
10050 if test "$GCC" = yes; then
10051 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'
10052 # Try to use the -exported_symbol ld option, if it does not
10053 # work, assume that -exports_file does not work either and
10054 # implicitly export all symbols.
10055 save_LDFLAGS="$LDFLAGS"
10056 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h. */
10059int foo(void) {}
10060_ACEOF
10061if ac_fn_c_try_link "$LINENO"; then :
10062 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'
10063
10064fi
10065rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LDFLAGS="$save_LDFLAGS"
10068 else
10069 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'
10070 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'
10071 fi
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 hardcode_libdir_separator=:
10075 inherit_rpath=yes
10076 link_all_deplibs=yes
10077 ;;
10078
10079 netbsd*)
10080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10082 else
10083 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10084 fi
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_direct=yes
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 newsos6)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 *nto* | *qnx*)
10099 ;;
10100
10101 openbsd*)
10102 if test -f /usr/libexec/ld.so; then
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 hardcode_direct_absolute=yes
10106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110 export_dynamic_flag_spec='${wl}-E'
10111 else
10112 case $host_os in
10113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-R$libdir'
10116 ;;
10117 *)
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120 ;;
10121 esac
10122 fi
10123 else
10124 ld_shlibs=no
10125 fi
10126 ;;
10127
10128 os2*)
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_minus_L=yes
10131 allow_undefined_flag=unsupported
10132 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'
10133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134 ;;
10135
10136 osf3*)
10137 if test "$GCC" = yes; then
10138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10140 else
10141 allow_undefined_flag=' -expect_unresolved \*'
10142 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'
10143 fi
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10147 ;;
10148
10149 osf4* | osf5*) # as osf3* with the addition of -msym flag
10150 if test "$GCC" = yes; then
10151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152 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'
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 else
10155 allow_undefined_flag=' -expect_unresolved \*'
10156 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'
10157 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~
10158 $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'
10159
10160 # Both c and cxx compiler support -rpath directly
10161 hardcode_libdir_flag_spec='-rpath $libdir'
10162 fi
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_separator=:
10165 ;;
10166
10167 solaris*)
10168 no_undefined_flag=' -z defs'
10169 if test "$GCC" = yes; then
10170 wlarc='${wl}'
10171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10174 else
10175 case `$CC -V 2>&1` in
10176 *"Compilers 5.0"*)
10177 wlarc=''
10178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181 ;;
10182 *)
10183 wlarc='${wl}'
10184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187 ;;
10188 esac
10189 fi
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_shlibpath_var=no
10192 case $host_os in
10193 solaris2.[0-5] | solaris2.[0-5].*) ;;
10194 *)
10195 # The compiler driver will combine and reorder linker options,
10196 # but understands `-z linker_flag'. GCC discards it without `$wl',
10197 # but is careful enough not to reorder.
10198 # Supported since Solaris 2.6 (maybe 2.5.1?)
10199 if test "$GCC" = yes; then
10200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10201 else
10202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203 fi
10204 ;;
10205 esac
10206 link_all_deplibs=yes
10207 ;;
10208
10209 sunos4*)
10210 if test "x$host_vendor" = xsequent; then
10211 # Use $CC to link under sequent, because it throws in some extra .o
10212 # files that make .init and .fini sections work.
10213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10214 else
10215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10216 fi
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_direct=yes
10219 hardcode_minus_L=yes
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 sysv4)
10224 case $host_vendor in
10225 sni)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_direct=yes # is this really true???
10228 ;;
10229 siemens)
10230 ## LD is ld it makes a PLAMLIB
10231 ## CC just makes a GrossModule.
10232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10233 reload_cmds='$CC -r -o $output$reload_objs'
10234 hardcode_direct=no
10235 ;;
10236 motorola)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10239 ;;
10240 esac
10241 runpath_var='LD_RUN_PATH'
10242 hardcode_shlibpath_var=no
10243 ;;
10244
10245 sysv4.3*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 export_dynamic_flag_spec='-Bexport'
10249 ;;
10250
10251 sysv4*MP*)
10252 if test -d /usr/nec; then
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_shlibpath_var=no
10255 runpath_var=LD_RUN_PATH
10256 hardcode_runpath_var=yes
10257 ld_shlibs=yes
10258 fi
10259 ;;
10260
10261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10262 no_undefined_flag='${wl}-z,text'
10263 archive_cmds_need_lc=no
10264 hardcode_shlibpath_var=no
10265 runpath_var='LD_RUN_PATH'
10266
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 fi
10274 ;;
10275
10276 sysv5* | sco3.2v5* | sco5v6*)
10277 # Note: We can NOT use -z defs as we might desire, because we do not
10278 # link with -lc, and that would cause any symbols used from libc to
10279 # always be unresolved, which means just about no library would
10280 # ever link correctly. If we're not using GNU ld we use -z text
10281 # though, which does catch some bad symbols but isn't as heavy-handed
10282 # as -z defs.
10283 no_undefined_flag='${wl}-z,text'
10284 allow_undefined_flag='${wl}-z,nodefs'
10285 archive_cmds_need_lc=no
10286 hardcode_shlibpath_var=no
10287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10288 hardcode_libdir_separator=':'
10289 link_all_deplibs=yes
10290 export_dynamic_flag_spec='${wl}-Bexport'
10291 runpath_var='LD_RUN_PATH'
10292
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 else
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 fi
10300 ;;
10301
10302 uts4*)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_shlibpath_var=no
10306 ;;
10307
10308 *)
10309 ld_shlibs=no
10310 ;;
10311 esac
10312
10313 if test x$host_vendor = xsni; then
10314 case $host in
10315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10316 export_dynamic_flag_spec='${wl}-Blargedynsym'
10317 ;;
10318 esac
10319 fi
10320 fi
10321
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10323$as_echo "$ld_shlibs" >&6; }
10324test "$ld_shlibs" = no && can_build_shared=no
10325
10326with_gnu_ld=$with_gnu_ld
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342#
10343# Do we need to explicitly link libc?
10344#
10345case "x$archive_cmds_need_lc" in
10346x|xyes)
10347 # Assume -lc should be added
10348 archive_cmds_need_lc=yes
10349
10350 if test "$enable_shared" = yes && test "$GCC" = yes; then
10351 case $archive_cmds in
10352 *'~'*)
10353 # FIXME: we may have to deal with multi-command sequences.
10354 ;;
10355 '$CC '*)
10356 # Test whether the compiler implicitly links with -lc since on some
10357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10358 # to ld, don't add -lc before -lgcc.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10360$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10361if ${lt_cv_archive_cmds_need_lc+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363else
10364 $RM conftest*
10365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10366
10367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10368 (eval $ac_compile) 2>&5
10369 ac_status=$?
10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371 test $ac_status = 0; } 2>conftest.err; then
10372 soname=conftest
10373 lib=conftest
10374 libobjs=conftest.$ac_objext
10375 deplibs=
10376 wl=$lt_prog_compiler_wl
10377 pic_flag=$lt_prog_compiler_pic
10378 compiler_flags=-v
10379 linker_flags=-v
10380 verstring=
10381 output_objdir=.
10382 libname=conftest
10383 lt_save_allow_undefined_flag=$allow_undefined_flag
10384 allow_undefined_flag=
10385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387 ac_status=$?
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }
10390 then
10391 lt_cv_archive_cmds_need_lc=no
10392 else
10393 lt_cv_archive_cmds_need_lc=yes
10394 fi
10395 allow_undefined_flag=$lt_save_allow_undefined_flag
10396 else
10397 cat conftest.err 1>&5
10398 fi
10399 $RM conftest*
10400
10401fi
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10403$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10405 ;;
10406 esac
10407 fi
10408 ;;
10409esac
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10568$as_echo_n "checking dynamic linker characteristics... " >&6; }
10569
10570if test "$GCC" = yes; then
10571 case $host_os in
10572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10573 *) lt_awk_arg="/^libraries:/" ;;
10574 esac
10575 case $host_os in
10576 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10577 *) lt_sed_strip_eq="s,=/,/,g" ;;
10578 esac
10579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10580 case $lt_search_path_spec in
10581 *\;*)
10582 # if the path contains ";" then we assume it to be the separator
10583 # otherwise default to the standard path separator (i.e. ":") - it is
10584 # assumed that no part of a normal pathname contains ";" but that should
10585 # okay in the real world where ";" in dirpaths is itself problematic.
10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10587 ;;
10588 *)
10589 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10590 ;;
10591 esac
10592 # Ok, now we have the path, separated by spaces, we can step through it
10593 # and add multilib dir if necessary.
10594 lt_tmp_lt_search_path_spec=
10595 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10596 for lt_sys_path in $lt_search_path_spec; do
10597 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10599 else
10600 test -d "$lt_sys_path" && \
10601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10602 fi
10603 done
10604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10605BEGIN {RS=" "; FS="/|\n";} {
10606 lt_foo="";
10607 lt_count=0;
10608 for (lt_i = NF; lt_i > 0; lt_i--) {
10609 if ($lt_i != "" && $lt_i != ".") {
10610 if ($lt_i == "..") {
10611 lt_count++;
10612 } else {
10613 if (lt_count == 0) {
10614 lt_foo="/" $lt_i lt_foo;
10615 } else {
10616 lt_count--;
10617 }
10618 }
10619 }
10620 }
10621 if (lt_foo != "") { lt_freq[lt_foo]++; }
10622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10623}'`
10624 # AWK program above erroneously prepends '/' to C:/dos/paths
10625 # for these hosts.
10626 case $host_os in
10627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10628 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10629 esac
10630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10631else
10632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10633fi
10634library_names_spec=
10635libname_spec='lib$name'
10636soname_spec=
10637shrext_cmds=".so"
10638postinstall_cmds=
10639postuninstall_cmds=
10640finish_cmds=
10641finish_eval=
10642shlibpath_var=
10643shlibpath_overrides_runpath=unknown
10644version_type=none
10645dynamic_linker="$host_os ld.so"
10646sys_lib_dlsearch_path_spec="/lib /usr/lib"
10647need_lib_prefix=unknown
10648hardcode_into_libs=no
10649
10650# when you set need_version to no, make sure it does not cause -set_version
10651# flags to be left without arguments
10652need_version=unknown
10653
10654case $host_os in
10655aix3*)
10656 version_type=linux
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10658 shlibpath_var=LIBPATH
10659
10660 # AIX 3 has no versioning support, so we append a major version to the name.
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 ;;
10663
10664aix[4-9]*)
10665 version_type=linux
10666 need_lib_prefix=no
10667 need_version=no
10668 hardcode_into_libs=yes
10669 if test "$host_cpu" = ia64; then
10670 # AIX 5 supports IA64
10671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 else
10674 # With GCC up to 2.95.x, collect2 would create an import file
10675 # for dependence libraries. The import file would start with
10676 # the line `#! .'. This would cause the generated library to
10677 # depend on `.', always an invalid library. This was fixed in
10678 # development snapshots of GCC prior to 3.0.
10679 case $host_os in
10680 aix4 | aix4.[01] | aix4.[01].*)
10681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10682 echo ' yes '
10683 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10684 :
10685 else
10686 can_build_shared=no
10687 fi
10688 ;;
10689 esac
10690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10691 # soname into executable. Probably we can add versioning support to
10692 # collect2, so additional links can be useful in future.
10693 if test "$aix_use_runtimelinking" = yes; then
10694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10695 # instead of lib<name>.a to let people know that these are not
10696 # typical AIX shared libraries.
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 else
10699 # We preserve .a as extension for shared libraries through AIX4.2
10700 # and later when we are not doing run time linking.
10701 library_names_spec='${libname}${release}.a $libname.a'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 fi
10704 shlibpath_var=LIBPATH
10705 fi
10706 ;;
10707
10708amigaos*)
10709 case $host_cpu in
10710 powerpc)
10711 # Since July 2007 AmigaOS4 officially supports .so libraries.
10712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 ;;
10715 m68k)
10716 library_names_spec='$libname.ixlibrary $libname.a'
10717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10718 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'
10719 ;;
10720 esac
10721 ;;
10722
10723beos*)
10724 library_names_spec='${libname}${shared_ext}'
10725 dynamic_linker="$host_os ld.so"
10726 shlibpath_var=LIBRARY_PATH
10727 ;;
10728
10729bsdi[45]*)
10730 version_type=linux
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10738 # the default ld.so.conf also contains /usr/contrib/lib and
10739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10740 # libtool to hard-code these into programs
10741 ;;
10742
10743cygwin* | mingw* | pw32* | cegcc*)
10744 version_type=windows
10745 shrext_cmds=".dll"
10746 need_version=no
10747 need_lib_prefix=no
10748
10749 case $GCC,$host_os in
10750 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10751 library_names_spec='$libname.dll.a'
10752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10753 postinstall_cmds='base_file=`basename \${file}`~
10754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10755 dldir=$destdir/`dirname \$dlpath`~
10756 test -d \$dldir || mkdir -p \$dldir~
10757 $install_prog $dir/$dlname \$dldir/$dlname~
10758 chmod a+x \$dldir/$dlname~
10759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10761 fi'
10762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10763 dlpath=$dir/\$dldll~
10764 $RM \$dlpath'
10765 shlibpath_overrides_runpath=yes
10766
10767 case $host_os in
10768 cygwin*)
10769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10771
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10773 ;;
10774 mingw* | cegcc*)
10775 # MinGW DLLs use traditional 'lib' prefix
10776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777 ;;
10778 pw32*)
10779 # pw32 DLLs use 'pw' prefix rather than 'lib'
10780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10781 ;;
10782 esac
10783 ;;
10784
10785 *)
10786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10787 ;;
10788 esac
10789 dynamic_linker='Win32 ld.exe'
10790 # FIXME: first we should search . and the directory the executable is in
10791 shlibpath_var=PATH
10792 ;;
10793
10794darwin* | rhapsody*)
10795 dynamic_linker="$host_os dyld"
10796 version_type=darwin
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10800 soname_spec='${libname}${release}${major}$shared_ext'
10801 shlibpath_overrides_runpath=yes
10802 shlibpath_var=DYLD_LIBRARY_PATH
10803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10804
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10807 ;;
10808
10809dgux*)
10810 version_type=linux
10811 need_lib_prefix=no
10812 need_version=no
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 ;;
10817
10818freebsd* | dragonfly*)
10819 # DragonFly does not have aout. When/if they implement a new
10820 # versioning mechanism, adjust this.
10821 if test -x /usr/bin/objformat; then
10822 objformat=`/usr/bin/objformat`
10823 else
10824 case $host_os in
10825 freebsd[23].*) objformat=aout ;;
10826 *) objformat=elf ;;
10827 esac
10828 fi
10829 version_type=freebsd-$objformat
10830 case $version_type in
10831 freebsd-elf*)
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 need_version=no
10834 need_lib_prefix=no
10835 ;;
10836 freebsd-*)
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10838 need_version=yes
10839 ;;
10840 esac
10841 shlibpath_var=LD_LIBRARY_PATH
10842 case $host_os in
10843 freebsd2.*)
10844 shlibpath_overrides_runpath=yes
10845 ;;
10846 freebsd3.[01]* | freebsdelf3.[01]*)
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10849 ;;
10850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10854 ;;
10855 *) # from 4.6 on, and DragonFly
10856 shlibpath_overrides_runpath=yes
10857 hardcode_into_libs=yes
10858 ;;
10859 esac
10860 ;;
10861
10862haiku*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 dynamic_linker="$host_os runtime_loader"
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
ead5103c 10871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5be7b669
L
10872 hardcode_into_libs=yes
10873 ;;
10874
10875hpux9* | hpux10* | hpux11*)
10876 # Give a soname corresponding to the major version so that dld.sl refuses to
10877 # link against other versions.
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 case $host_cpu in
10882 ia64*)
10883 shrext_cmds='.so'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.so"
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 if test "X$HPUX_IA64_MODE" = X32; then
10891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10892 else
10893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10894 fi
10895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10896 ;;
10897 hppa*64*)
10898 shrext_cmds='.sl'
10899 hardcode_into_libs=yes
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10907 ;;
10908 *)
10909 shrext_cmds='.sl'
10910 dynamic_linker="$host_os dld.sl"
10911 shlibpath_var=SHLIB_PATH
10912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 ;;
10916 esac
10917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918 postinstall_cmds='chmod 555 $lib'
10919 # or fails outright, so override atomically:
10920 install_override_mode=555
10921 ;;
10922
10923interix[3-9]*)
10924 version_type=linux
10925 need_lib_prefix=no
10926 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=no
10932 hardcode_into_libs=yes
10933 ;;
10934
10935irix5* | irix6* | nonstopux*)
10936 case $host_os in
10937 nonstopux*) version_type=nonstopux ;;
10938 *)
10939 if test "$lt_cv_prog_gnu_ld" = yes; then
10940 version_type=linux
10941 else
10942 version_type=irix
10943 fi ;;
10944 esac
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 case $host_os in
10950 irix5* | nonstopux*)
10951 libsuff= shlibsuff=
10952 ;;
10953 *)
10954 case $LD in # libtool.m4 will add one of these switches to LD
10955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956 libsuff= shlibsuff= libmagic=32-bit;;
10957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958 libsuff=32 shlibsuff=N32 libmagic=N32;;
10959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961 *) libsuff= shlibsuff= libmagic=never-match;;
10962 esac
10963 ;;
10964 esac
10965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966 shlibpath_overrides_runpath=no
10967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10969 hardcode_into_libs=yes
10970 ;;
10971
10972# No shared lib support for Linux oldld, aout, or coff.
10973linux*oldld* | linux*aout* | linux*coff*)
10974 dynamic_linker=no
10975 ;;
10976
10977# This must be Linux ELF.
10978
10979# uclinux* changes (here and below) have been submitted to the libtool
10980# project, but have not yet been accepted: they are GCC-local changes
10981# for the time being. (See
10982# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10983linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992
10993 # Some binutils ld are patched to set DT_RUNPATH
10994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996else
10997 lt_cv_shlibpath_overrides_runpath=no
10998 save_LDFLAGS=$LDFLAGS
10999 save_libdir=$libdir
11000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h. */
11004
11005int
11006main ()
11007{
11008
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11015 lt_cv_shlibpath_overrides_runpath=yes
11016fi
11017fi
11018rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LDFLAGS=$save_LDFLAGS
11021 libdir=$save_libdir
11022
11023fi
11024
11025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11026
11027 # This implies no fast_install, which is unacceptable.
11028 # Some rework will be needed to allow for fast_install
11029 # before this can be enabled.
11030 hardcode_into_libs=yes
11031
11032 # Append ld.so.conf contents to the search path
11033 if test -f /etc/ld.so.conf; then
11034 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' ' '`
11035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036 fi
11037
11038 # We used to test for /lib/ld.so.1 and disable shared libraries on
11039 # powerpc, because MkLinux only supported shared libraries with the
11040 # GNU dynamic linker. Since this was broken with cross compilers,
11041 # most powerpc-linux boxes support dynamic linking these days and
11042 # people can always --disable-shared, the test was removed, and we
11043 # assume the GNU/Linux dynamic linker is in use.
11044 dynamic_linker='GNU/Linux ld.so'
11045 ;;
11046
11047netbsd*)
11048 version_type=sunos
11049 need_lib_prefix=no
11050 need_version=no
11051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054 dynamic_linker='NetBSD (a.out) ld.so'
11055 else
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 dynamic_linker='NetBSD ld.elf_so'
11059 fi
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 ;;
11064
11065newsos6)
11066 version_type=linux
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 ;;
11071
11072*nto* | *qnx*)
11073 version_type=qnx
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 hardcode_into_libs=yes
11081 dynamic_linker='ldqnx.so'
11082 ;;
11083
11084openbsd*)
11085 version_type=sunos
11086 sys_lib_dlsearch_path_spec="/usr/lib"
11087 need_lib_prefix=no
11088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11089 case $host_os in
11090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11091 *) need_version=no ;;
11092 esac
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11097 case $host_os in
11098 openbsd2.[89] | openbsd2.[89].*)
11099 shlibpath_overrides_runpath=no
11100 ;;
11101 *)
11102 shlibpath_overrides_runpath=yes
11103 ;;
11104 esac
11105 else
11106 shlibpath_overrides_runpath=yes
11107 fi
11108 ;;
11109
11110os2*)
11111 libname_spec='$name'
11112 shrext_cmds=".dll"
11113 need_lib_prefix=no
11114 library_names_spec='$libname${shared_ext} $libname.a'
11115 dynamic_linker='OS/2 ld.exe'
11116 shlibpath_var=LIBPATH
11117 ;;
11118
11119osf3* | osf4* | osf5*)
11120 version_type=osf
11121 need_lib_prefix=no
11122 need_version=no
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11128 ;;
11129
11130rdos*)
11131 dynamic_linker=no
11132 ;;
11133
11134solaris*)
11135 version_type=linux
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 # ldd complains unless libraries are executable
11144 postinstall_cmds='chmod +x $lib'
11145 ;;
11146
11147sunos4*)
11148 version_type=sunos
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 if test "$with_gnu_ld" = yes; then
11154 need_lib_prefix=no
11155 fi
11156 need_version=yes
11157 ;;
11158
11159sysv4 | sysv4.3*)
11160 version_type=linux
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 case $host_vendor in
11165 sni)
11166 shlibpath_overrides_runpath=no
11167 need_lib_prefix=no
11168 runpath_var=LD_RUN_PATH
11169 ;;
11170 siemens)
11171 need_lib_prefix=no
11172 ;;
11173 motorola)
11174 need_lib_prefix=no
11175 need_version=no
11176 shlibpath_overrides_runpath=no
11177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178 ;;
11179 esac
11180 ;;
11181
11182sysv4*MP*)
11183 if test -d /usr/nec ;then
11184 version_type=linux
11185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11186 soname_spec='$libname${shared_ext}.$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 fi
11189 ;;
11190
11191sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11192 version_type=freebsd-elf
11193 need_lib_prefix=no
11194 need_version=no
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 hardcode_into_libs=yes
11200 if test "$with_gnu_ld" = yes; then
11201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202 else
11203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11204 case $host_os in
11205 sco3.2v5*)
11206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207 ;;
11208 esac
11209 fi
11210 sys_lib_dlsearch_path_spec='/usr/lib'
11211 ;;
11212
11213tpf*)
11214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11222 ;;
11223
11224uts4*)
11225 version_type=linux
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 ;;
11230
0ecd0f1c
OH
11231# Shared libraries for VwWorks, >= 7 only at this stage
11232# and (fpic) still incompatible with "large" code models
11233# in a few configurations. Only for RTP mode in any case,
11234# and upon explicit request at configure time.
11235vxworks7*)
11236 dynamic_linker=no
11237 case ${with_multisubdir}-${enable_shared} in
11238 *large*)
11239 ;;
11240 *mrtp*-yes)
11241 version_type=linux
11242 need_lib_prefix=no
11243 need_version=no
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 dynamic_linker="$host_os module_loader"
11247 ;;
11248 esac
11249 ;;
5be7b669
L
11250*)
11251 dynamic_linker=no
11252 ;;
11253esac
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11255$as_echo "$dynamic_linker" >&6; }
11256test "$dynamic_linker" = no && can_build_shared=no
11257
11258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11259if test "$GCC" = yes; then
11260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11261fi
11262
11263if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11265fi
11266if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11268fi
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11362$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11363hardcode_action=
11364if test -n "$hardcode_libdir_flag_spec" ||
11365 test -n "$runpath_var" ||
11366 test "X$hardcode_automatic" = "Xyes" ; then
11367
11368 # We can hardcode non-existent directories.
11369 if test "$hardcode_direct" != no &&
11370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11371 # have to relink, otherwise we might link with an installed library
11372 # when we should be linking with a yet-to-be-installed one
11373 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11374 test "$hardcode_minus_L" != no; then
11375 # Linking always hardcodes the temporary library directory.
11376 hardcode_action=relink
11377 else
11378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11379 hardcode_action=immediate
11380 fi
11381else
11382 # We cannot hardcode anything, or else we can only hardcode existing
11383 # directories.
11384 hardcode_action=unsupported
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11387$as_echo "$hardcode_action" >&6; }
11388
11389if test "$hardcode_action" = relink ||
11390 test "$inherit_rpath" = yes; then
11391 # Fast installation is not supported
11392 enable_fast_install=no
11393elif test "$shlibpath_overrides_runpath" = yes ||
11394 test "$enable_shared" = no; then
11395 # Fast installation is not necessary
11396 enable_fast_install=needless
11397fi
11398
11399
11400
11401
11402
11403
11404 if test "x$enable_dlopen" != xyes; then
11405 enable_dlopen=unknown
11406 enable_dlopen_self=unknown
11407 enable_dlopen_self_static=unknown
11408else
11409 lt_cv_dlopen=no
11410 lt_cv_dlopen_libs=
11411
11412 case $host_os in
11413 beos*)
11414 lt_cv_dlopen="load_add_on"
11415 lt_cv_dlopen_libs=
11416 lt_cv_dlopen_self=yes
11417 ;;
11418
11419 mingw* | pw32* | cegcc*)
11420 lt_cv_dlopen="LoadLibrary"
11421 lt_cv_dlopen_libs=
11422 ;;
11423
11424 cygwin*)
11425 lt_cv_dlopen="dlopen"
11426 lt_cv_dlopen_libs=
11427 ;;
11428
11429 darwin*)
11430 # if libdl is installed we need to link against it
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11432$as_echo_n "checking for dlopen in -ldl... " >&6; }
11433if ${ac_cv_lib_dl_dlopen+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435else
11436 ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldl $LIBS"
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h. */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char dlopen ();
11448int
11449main ()
11450{
11451return dlopen ();
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_dl_dlopen=yes
11458else
11459 ac_cv_lib_dl_dlopen=no
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463LIBS=$ac_check_lib_save_LIBS
11464fi
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11466$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11467if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11469else
11470
11471 lt_cv_dlopen="dyld"
11472 lt_cv_dlopen_libs=
11473 lt_cv_dlopen_self=yes
11474
11475fi
11476
11477 ;;
11478
11479 *)
11480 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11481if test "x$ac_cv_func_shl_load" = xyes; then :
11482 lt_cv_dlopen="shl_load"
11483else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11485$as_echo_n "checking for shl_load in -ldld... " >&6; }
11486if ${ac_cv_lib_dld_shl_load+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488else
11489 ac_check_lib_save_LIBS=$LIBS
11490LIBS="-ldld $LIBS"
11491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493
11494/* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500char shl_load ();
11501int
11502main ()
11503{
11504return shl_load ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_lib_dld_shl_load=yes
11511else
11512 ac_cv_lib_dld_shl_load=no
11513fi
11514rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516LIBS=$ac_check_lib_save_LIBS
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11519$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11520if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11521 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11522else
11523 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11524if test "x$ac_cv_func_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen"
11526else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528$as_echo_n "checking for dlopen in -ldl... " >&6; }
11529if ${ac_cv_lib_dl_dlopen+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 ac_check_lib_save_LIBS=$LIBS
11533LIBS="-ldl $LIBS"
11534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536
11537/* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540#ifdef __cplusplus
11541extern "C"
11542#endif
11543char dlopen ();
11544int
11545main ()
11546{
11547return dlopen ();
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_dl_dlopen=yes
11554else
11555 ac_cv_lib_dl_dlopen=no
11556fi
11557rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559LIBS=$ac_check_lib_save_LIBS
11560fi
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11567$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11568if ${ac_cv_lib_svld_dlopen+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-lsvld $LIBS"
11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char dlopen ();
11583int
11584main ()
11585{
11586return dlopen ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_svld_dlopen=yes
11593else
11594 ac_cv_lib_svld_dlopen=no
11595fi
11596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598LIBS=$ac_check_lib_save_LIBS
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11601$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11602if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11604else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11606$as_echo_n "checking for dld_link in -ldld... " >&6; }
11607if ${ac_cv_lib_dld_dld_link+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609else
11610 ac_check_lib_save_LIBS=$LIBS
11611LIBS="-ldld $LIBS"
11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h. */
11614
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char dld_link ();
11622int
11623main ()
11624{
11625return dld_link ();
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dld_dld_link=yes
11632else
11633 ac_cv_lib_dld_dld_link=no
11634fi
11635rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637LIBS=$ac_check_lib_save_LIBS
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11640$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11641if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11642 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11643fi
11644
11645
11646fi
11647
11648
11649fi
11650
11651
11652fi
11653
11654
11655fi
11656
11657
11658fi
11659
11660 ;;
11661 esac
11662
11663 if test "x$lt_cv_dlopen" != xno; then
11664 enable_dlopen=yes
11665 else
11666 enable_dlopen=no
11667 fi
11668
11669 case $lt_cv_dlopen in
11670 dlopen)
11671 save_CPPFLAGS="$CPPFLAGS"
11672 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11673
11674 save_LDFLAGS="$LDFLAGS"
11675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11676
11677 save_LIBS="$LIBS"
11678 LIBS="$lt_cv_dlopen_libs $LIBS"
11679
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11681$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11682if ${lt_cv_dlopen_self+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684else
11685 if test "$cross_compiling" = yes; then :
11686 lt_cv_dlopen_self=cross
11687else
11688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11689 lt_status=$lt_dlunknown
11690 cat > conftest.$ac_ext <<_LT_EOF
967d4171 11691#line 11691 "configure"
5be7b669
L
11692#include "confdefs.h"
11693
11694#if HAVE_DLFCN_H
11695#include <dlfcn.h>
11696#endif
11697
11698#include <stdio.h>
11699
11700#ifdef RTLD_GLOBAL
11701# define LT_DLGLOBAL RTLD_GLOBAL
11702#else
11703# ifdef DL_GLOBAL
11704# define LT_DLGLOBAL DL_GLOBAL
11705# else
11706# define LT_DLGLOBAL 0
11707# endif
11708#endif
11709
11710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11711 find out it does not work in some platform. */
11712#ifndef LT_DLLAZY_OR_NOW
11713# ifdef RTLD_LAZY
11714# define LT_DLLAZY_OR_NOW RTLD_LAZY
11715# else
11716# ifdef DL_LAZY
11717# define LT_DLLAZY_OR_NOW DL_LAZY
11718# else
11719# ifdef RTLD_NOW
11720# define LT_DLLAZY_OR_NOW RTLD_NOW
11721# else
11722# ifdef DL_NOW
11723# define LT_DLLAZY_OR_NOW DL_NOW
11724# else
11725# define LT_DLLAZY_OR_NOW 0
11726# endif
11727# endif
11728# endif
11729# endif
11730#endif
11731
11732/* When -fvisbility=hidden is used, assume the code has been annotated
11733 correspondingly for the symbols needed. */
11734#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11735void fnord () __attribute__((visibility("default")));
11736#endif
11737
11738void fnord () { int i=42; }
11739int main ()
11740{
11741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11742 int status = $lt_dlunknown;
11743
11744 if (self)
11745 {
11746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11747 else
11748 {
11749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11750 else puts (dlerror ());
11751 }
11752 /* dlclose (self); */
11753 }
11754 else
11755 puts (dlerror ());
11756
11757 return status;
11758}
11759_LT_EOF
11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11765 (./conftest; exit; ) >&5 2>/dev/null
11766 lt_status=$?
11767 case x$lt_status in
11768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11770 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11771 esac
11772 else :
11773 # compilation failed
11774 lt_cv_dlopen_self=no
11775 fi
11776fi
11777rm -fr conftest*
11778
11779
11780fi
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11782$as_echo "$lt_cv_dlopen_self" >&6; }
11783
11784 if test "x$lt_cv_dlopen_self" = xyes; then
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11787$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11788if ${lt_cv_dlopen_self_static+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791 if test "$cross_compiling" = yes; then :
11792 lt_cv_dlopen_self_static=cross
11793else
11794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11795 lt_status=$lt_dlunknown
11796 cat > conftest.$ac_ext <<_LT_EOF
967d4171 11797#line 11797 "configure"
5be7b669
L
11798#include "confdefs.h"
11799
11800#if HAVE_DLFCN_H
11801#include <dlfcn.h>
11802#endif
11803
11804#include <stdio.h>
11805
11806#ifdef RTLD_GLOBAL
11807# define LT_DLGLOBAL RTLD_GLOBAL
11808#else
11809# ifdef DL_GLOBAL
11810# define LT_DLGLOBAL DL_GLOBAL
11811# else
11812# define LT_DLGLOBAL 0
11813# endif
11814#endif
11815
11816/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11817 find out it does not work in some platform. */
11818#ifndef LT_DLLAZY_OR_NOW
11819# ifdef RTLD_LAZY
11820# define LT_DLLAZY_OR_NOW RTLD_LAZY
11821# else
11822# ifdef DL_LAZY
11823# define LT_DLLAZY_OR_NOW DL_LAZY
11824# else
11825# ifdef RTLD_NOW
11826# define LT_DLLAZY_OR_NOW RTLD_NOW
11827# else
11828# ifdef DL_NOW
11829# define LT_DLLAZY_OR_NOW DL_NOW
11830# else
11831# define LT_DLLAZY_OR_NOW 0
11832# endif
11833# endif
11834# endif
11835# endif
11836#endif
11837
11838/* When -fvisbility=hidden is used, assume the code has been annotated
11839 correspondingly for the symbols needed. */
11840#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11841void fnord () __attribute__((visibility("default")));
11842#endif
11843
11844void fnord () { int i=42; }
11845int main ()
11846{
11847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11848 int status = $lt_dlunknown;
11849
11850 if (self)
11851 {
11852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11853 else
11854 {
11855 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 else puts (dlerror ());
11857 }
11858 /* dlclose (self); */
11859 }
11860 else
11861 puts (dlerror ());
11862
11863 return status;
11864}
11865_LT_EOF
11866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11867 (eval $ac_link) 2>&5
11868 ac_status=$?
11869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11871 (./conftest; exit; ) >&5 2>/dev/null
11872 lt_status=$?
11873 case x$lt_status in
11874 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11875 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11876 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11877 esac
11878 else :
11879 # compilation failed
11880 lt_cv_dlopen_self_static=no
11881 fi
11882fi
11883rm -fr conftest*
11884
11885
11886fi
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11888$as_echo "$lt_cv_dlopen_self_static" >&6; }
11889 fi
11890
11891 CPPFLAGS="$save_CPPFLAGS"
11892 LDFLAGS="$save_LDFLAGS"
11893 LIBS="$save_LIBS"
11894 ;;
11895 esac
11896
11897 case $lt_cv_dlopen_self in
11898 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11899 *) enable_dlopen_self=unknown ;;
11900 esac
11901
11902 case $lt_cv_dlopen_self_static in
11903 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11904 *) enable_dlopen_self_static=unknown ;;
11905 esac
11906fi
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924striplib=
11925old_striplib=
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11927$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11928if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932$as_echo "yes" >&6; }
11933else
11934# FIXME - insert some real tests, host_os isn't really good enough
11935 case $host_os in
11936 darwin*)
11937 if test -n "$STRIP" ; then
11938 striplib="$STRIP -x"
11939 old_striplib="$STRIP -S"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941$as_echo "yes" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945 fi
11946 ;;
11947 *)
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
11950 ;;
11951 esac
11952fi
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 # Report which library types will actually be built
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11967$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11969$as_echo "$can_build_shared" >&6; }
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11972$as_echo_n "checking whether to build shared libraries... " >&6; }
11973 test "$can_build_shared" = "no" && enable_shared=no
11974
11975 # On AIX, shared libraries and static libraries use the same namespace, and
11976 # are all built from PIC.
11977 case $host_os in
11978 aix3*)
11979 test "$enable_shared" = yes && enable_static=no
11980 if test -n "$RANLIB"; then
11981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11982 postinstall_cmds='$RANLIB $lib'
11983 fi
11984 ;;
11985
11986 aix[4-9]*)
11987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11988 test "$enable_shared" = yes && enable_static=no
11989 fi
11990 ;;
11991 esac
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11993$as_echo "$enable_shared" >&6; }
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11996$as_echo_n "checking whether to build static libraries... " >&6; }
11997 # Make sure either enable_shared or enable_static is yes.
11998 test "$enable_shared" = yes || enable_static=yes
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12000$as_echo "$enable_static" >&6; }
12001
12002
12003
12004
12005fi
12006ac_ext=c
12007ac_cpp='$CPP $CPPFLAGS'
12008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011
12012CC="$lt_save_CC"
12013
12014 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12015 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12016 (test "X$CXX" != "Xg++"))) ; then
12017 ac_ext=cpp
12018ac_cpp='$CXXCPP $CPPFLAGS'
12019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12023$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12024if test -z "$CXXCPP"; then
12025 if ${ac_cv_prog_CXXCPP+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027else
12028 # Double quotes because CXXCPP needs to be expanded
12029 for CXXCPP in "$CXX -E" "/lib/cpp"
12030 do
12031 ac_preproc_ok=false
12032for ac_cxx_preproc_warn_flag in '' yes
12033do
12034 # Use a header file that comes with gcc, so configuring glibc
12035 # with a fresh cross-compiler works.
12036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 # <limits.h> exists even on freestanding compilers.
12038 # On the NeXT, cc -E runs the code through the compiler's parser,
12039 # not just through cpp. "Syntax error" is here to catch this case.
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h. */
12042#ifdef __STDC__
12043# include <limits.h>
12044#else
12045# include <assert.h>
12046#endif
12047 Syntax error
12048_ACEOF
12049if ac_fn_cxx_try_cpp "$LINENO"; then :
12050
12051else
12052 # Broken: fails on valid input.
12053continue
12054fi
12055rm -f conftest.err conftest.i conftest.$ac_ext
12056
12057 # OK, works on sane cases. Now check whether nonexistent headers
12058 # can be detected and how.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h. */
12061#include <ac_nonexistent.h>
12062_ACEOF
12063if ac_fn_cxx_try_cpp "$LINENO"; then :
12064 # Broken: success on invalid input.
12065continue
12066else
12067 # Passes both tests.
12068ac_preproc_ok=:
12069break
12070fi
12071rm -f conftest.err conftest.i conftest.$ac_ext
12072
12073done
12074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12075rm -f conftest.i conftest.err conftest.$ac_ext
12076if $ac_preproc_ok; then :
12077 break
12078fi
12079
12080 done
12081 ac_cv_prog_CXXCPP=$CXXCPP
12082
12083fi
12084 CXXCPP=$ac_cv_prog_CXXCPP
12085else
12086 ac_cv_prog_CXXCPP=$CXXCPP
12087fi
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12089$as_echo "$CXXCPP" >&6; }
12090ac_preproc_ok=false
12091for ac_cxx_preproc_warn_flag in '' yes
12092do
12093 # Use a header file that comes with gcc, so configuring glibc
12094 # with a fresh cross-compiler works.
12095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 # <limits.h> exists even on freestanding compilers.
12097 # On the NeXT, cc -E runs the code through the compiler's parser,
12098 # not just through cpp. "Syntax error" is here to catch this case.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h. */
12101#ifdef __STDC__
12102# include <limits.h>
12103#else
12104# include <assert.h>
12105#endif
12106 Syntax error
12107_ACEOF
12108if ac_fn_cxx_try_cpp "$LINENO"; then :
12109
12110else
12111 # Broken: fails on valid input.
12112continue
12113fi
12114rm -f conftest.err conftest.i conftest.$ac_ext
12115
12116 # OK, works on sane cases. Now check whether nonexistent headers
12117 # can be detected and how.
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h. */
12120#include <ac_nonexistent.h>
12121_ACEOF
12122if ac_fn_cxx_try_cpp "$LINENO"; then :
12123 # Broken: success on invalid input.
12124continue
12125else
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.i conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.i conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then :
12136
12137else
12138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12140as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12141See \`config.log' for more details" "$LINENO" 5; }
12142fi
12143
12144ac_ext=c
12145ac_cpp='$CPP $CPPFLAGS'
12146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150else
12151 _lt_caught_CXX_error=yes
12152fi
12153
12154ac_ext=cpp
12155ac_cpp='$CXXCPP $CPPFLAGS'
12156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12159
12160archive_cmds_need_lc_CXX=no
12161allow_undefined_flag_CXX=
12162always_export_symbols_CXX=no
12163archive_expsym_cmds_CXX=
12164compiler_needs_object_CXX=no
12165export_dynamic_flag_spec_CXX=
12166hardcode_direct_CXX=no
12167hardcode_direct_absolute_CXX=no
12168hardcode_libdir_flag_spec_CXX=
12169hardcode_libdir_flag_spec_ld_CXX=
12170hardcode_libdir_separator_CXX=
12171hardcode_minus_L_CXX=no
12172hardcode_shlibpath_var_CXX=unsupported
12173hardcode_automatic_CXX=no
12174inherit_rpath_CXX=no
12175module_cmds_CXX=
12176module_expsym_cmds_CXX=
12177link_all_deplibs_CXX=unknown
12178old_archive_cmds_CXX=$old_archive_cmds
12179reload_flag_CXX=$reload_flag
12180reload_cmds_CXX=$reload_cmds
12181no_undefined_flag_CXX=
12182whole_archive_flag_spec_CXX=
12183enable_shared_with_static_runtimes_CXX=no
12184
12185# Source file extension for C++ test sources.
12186ac_ext=cpp
12187
12188# Object file extension for compiled C++ test sources.
12189objext=o
12190objext_CXX=$objext
12191
12192# No sense in running all these tests if we already determined that
12193# the CXX compiler isn't working. Some variables (like enable_shared)
12194# are currently assumed to apply to all compilers on this platform,
12195# and will be corrupted by setting them based on a non-working compiler.
12196if test "$_lt_caught_CXX_error" != yes; then
12197 # Code to be used in simple compile tests
12198 lt_simple_compile_test_code="int some_variable = 0;"
12199
12200 # Code to be used in simple link tests
12201 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12202
12203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12204
12205
12206
12207
12208
12209
12210# If no C compiler was specified, use CC.
12211LTCC=${LTCC-"$CC"}
12212
12213# If no C compiler flags were specified, use CFLAGS.
12214LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12215
12216# Allow CC to be a program name with arguments.
12217compiler=$CC
12218
12219
12220 # save warnings/boilerplate of simple test code
12221 ac_outfile=conftest.$ac_objext
12222echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12223eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12224_lt_compiler_boilerplate=`cat conftest.err`
12225$RM conftest*
12226
12227 ac_outfile=conftest.$ac_objext
12228echo "$lt_simple_link_test_code" >conftest.$ac_ext
12229eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230_lt_linker_boilerplate=`cat conftest.err`
12231$RM -r conftest*
12232
12233
12234 # Allow CC to be a program name with arguments.
12235 lt_save_CC=$CC
12236 lt_save_LD=$LD
12237 lt_save_GCC=$GCC
12238 GCC=$GXX
12239 lt_save_with_gnu_ld=$with_gnu_ld
12240 lt_save_path_LD=$lt_cv_path_LD
12241 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12242 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12243 else
12244 $as_unset lt_cv_prog_gnu_ld
12245 fi
12246 if test -n "${lt_cv_path_LDCXX+set}"; then
12247 lt_cv_path_LD=$lt_cv_path_LDCXX
12248 else
12249 $as_unset lt_cv_path_LD
12250 fi
12251 test -z "${LDCXX+set}" || LD=$LDCXX
12252 CC=${CXX-"c++"}
12253 compiler=$CC
12254 compiler_CXX=$CC
12255 for cc_temp in $compiler""; do
12256 case $cc_temp in
12257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12259 \-*) ;;
12260 *) break;;
12261 esac
12262done
12263cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12264
12265
12266 if test -n "$compiler"; then
12267 # We don't want -fno-exception when compiling C++ code, so set the
12268 # no_builtin_flag separately
12269 if test "$GXX" = yes; then
12270 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12271 else
12272 lt_prog_compiler_no_builtin_flag_CXX=
12273 fi
12274
12275 if test "$GXX" = yes; then
12276 # Set up default GNU C++ configuration
12277
12278
12279
12280# Check whether --with-gnu-ld was given.
12281if test "${with_gnu_ld+set}" = set; then :
12282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12283else
12284 with_gnu_ld=no
12285fi
12286
12287ac_prog=ld
12288if test "$GCC" = yes; then
12289 # Check if gcc -print-prog-name=ld gives a path.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12291$as_echo_n "checking for ld used by $CC... " >&6; }
12292 case $host in
12293 *-*-mingw*)
12294 # gcc leaves a trailing carriage return which upsets mingw
12295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12296 *)
12297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12298 esac
12299 case $ac_prog in
12300 # Accept absolute paths.
12301 [\\/]* | ?:[\\/]*)
12302 re_direlt='/[^/][^/]*/\.\./'
12303 # Canonicalize the pathname of ld
12304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12307 done
12308 test -z "$LD" && LD="$ac_prog"
12309 ;;
12310 "")
12311 # If it fails, then pretend we aren't using GCC.
12312 ac_prog=ld
12313 ;;
12314 *)
12315 # If it is relative, then search for the first ld in PATH.
12316 with_gnu_ld=unknown
12317 ;;
12318 esac
12319elif test "$with_gnu_ld" = yes; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12321$as_echo_n "checking for GNU ld... " >&6; }
12322else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12324$as_echo_n "checking for non-GNU ld... " >&6; }
12325fi
12326if ${lt_cv_path_LD+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328else
12329 if test -z "$LD"; then
12330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12331 for ac_dir in $PATH; do
12332 IFS="$lt_save_ifs"
12333 test -z "$ac_dir" && ac_dir=.
12334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12335 lt_cv_path_LD="$ac_dir/$ac_prog"
12336 # Check to see if the program is GNU ld. I'd rather use --version,
12337 # but apparently some variants of GNU ld only accept -v.
12338 # Break only if it was the GNU/non-GNU ld that we prefer.
12339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12340 *GNU* | *'with BFD'*)
12341 test "$with_gnu_ld" != no && break
12342 ;;
12343 *)
12344 test "$with_gnu_ld" != yes && break
12345 ;;
12346 esac
12347 fi
12348 done
12349 IFS="$lt_save_ifs"
12350else
12351 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12352fi
12353fi
12354
12355LD="$lt_cv_path_LD"
12356if test -n "$LD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12358$as_echo "$LD" >&6; }
12359else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
12362fi
12363test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12365$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12366if ${lt_cv_prog_gnu_ld+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368else
12369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12370case `$LD -v 2>&1 </dev/null` in
12371*GNU* | *'with BFD'*)
12372 lt_cv_prog_gnu_ld=yes
12373 ;;
12374*)
12375 lt_cv_prog_gnu_ld=no
12376 ;;
12377esac
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12380$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12381with_gnu_ld=$lt_cv_prog_gnu_ld
12382
12383
12384
12385
12386
12387
12388
12389 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12390 # archiving commands below assume that GNU ld is being used.
12391 if test "$with_gnu_ld" = yes; then
12392 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 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'
12394
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12397
12398 # If archive_cmds runs LD, not CC, wlarc should be empty
12399 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12400 # investigate it a little bit more. (MM)
12401 wlarc='${wl}'
12402
12403 # ancient GNU ld didn't support --whole-archive et. al.
12404 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12405 $GREP 'no-whole-archive' > /dev/null; then
12406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12407 else
12408 whole_archive_flag_spec_CXX=
12409 fi
12410 else
12411 with_gnu_ld=no
12412 wlarc=
12413
12414 # A generic and very simple default shared library creation
12415 # command for GNU C++ for the case where it uses the native
12416 # linker, instead of GNU ld. If possible, this setting should
12417 # overridden to take advantage of the native linker features on
12418 # the platform it is being used on.
12419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12420 fi
12421
12422 # Commands to make compiler produce verbose output that lists
12423 # what "hidden" libraries, object files and flags are used when
12424 # linking a shared library.
12425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12426
12427 else
12428 GXX=no
12429 with_gnu_ld=no
12430 wlarc=
12431 fi
12432
12433 # PORTME: fill in a description of your system's C++ link characteristics
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12435$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12436 ld_shlibs_CXX=yes
12437 case $host_os in
12438 aix3*)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 ;;
12442 aix[4-9]*)
12443 if test "$host_cpu" = ia64; then
12444 # On IA64, the linker does run time linking by default, so we don't
12445 # have to do anything special.
12446 aix_use_runtimelinking=no
12447 exp_sym_flag='-Bexport'
12448 no_entry_flag=""
12449 else
12450 aix_use_runtimelinking=no
12451
12452 # Test if we are trying to use run time linking or normal
12453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12454 # need to do runtime linking.
12455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12456 for ld_flag in $LDFLAGS; do
12457 case $ld_flag in
12458 *-brtl*)
12459 aix_use_runtimelinking=yes
12460 break
12461 ;;
12462 esac
12463 done
12464 ;;
12465 esac
12466
12467 exp_sym_flag='-bexport'
12468 no_entry_flag='-bnoentry'
12469 fi
12470
12471 # When large executables or shared objects are built, AIX ld can
12472 # have problems creating the table of contents. If linking a library
12473 # or program results in "error TOC overflow" add -mminimal-toc to
12474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12476
12477 archive_cmds_CXX=''
12478 hardcode_direct_CXX=yes
12479 hardcode_direct_absolute_CXX=yes
12480 hardcode_libdir_separator_CXX=':'
12481 link_all_deplibs_CXX=yes
12482 file_list_spec_CXX='${wl}-f,'
12483
12484 if test "$GXX" = yes; then
12485 case $host_os in aix4.[012]|aix4.[012].*)
12486 # We only want to do this on AIX 4.2 and lower, the check
12487 # below for broken collect2 doesn't work under 4.3+
12488 collect2name=`${CC} -print-prog-name=collect2`
12489 if test -f "$collect2name" &&
12490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12491 then
12492 # We have reworked collect2
12493 :
12494 else
12495 # We have old collect2
12496 hardcode_direct_CXX=unsupported
12497 # It fails to find uninstalled libraries when the uninstalled
12498 # path is not listed in the libpath. Setting hardcode_minus_L
12499 # to unsupported forces relinking
12500 hardcode_minus_L_CXX=yes
12501 hardcode_libdir_flag_spec_CXX='-L$libdir'
12502 hardcode_libdir_separator_CXX=
12503 fi
12504 esac
12505 shared_flag='-shared'
12506 if test "$aix_use_runtimelinking" = yes; then
12507 shared_flag="$shared_flag "'${wl}-G'
12508 fi
12509 else
12510 # not using gcc
12511 if test "$host_cpu" = ia64; then
12512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12513 # chokes on -Wl,-G. The following line is correct:
12514 shared_flag='-G'
12515 else
12516 if test "$aix_use_runtimelinking" = yes; then
12517 shared_flag='${wl}-G'
12518 else
12519 shared_flag='${wl}-bM:SRE'
12520 fi
12521 fi
12522 fi
12523
12524 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12525 # It seems that -bexpall does not export symbols beginning with
12526 # underscore (_), so it is better to generate a list of symbols to
12527 # export.
12528 always_export_symbols_CXX=yes
12529 if test "$aix_use_runtimelinking" = yes; then
12530 # Warning - without using the other runtime loading flags (-brtl),
12531 # -berok will link without error, but may produce a broken library.
12532 allow_undefined_flag_CXX='-berok'
12533 # Determine the default libpath from the value encoded in an empty
12534 # executable.
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h. */
12537
12538int
12539main ()
12540{
12541
12542 ;
12543 return 0;
12544}
12545_ACEOF
12546if ac_fn_cxx_try_link "$LINENO"; then :
12547
12548lt_aix_libpath_sed='
12549 /Import File Strings/,/^$/ {
12550 /^0/ {
12551 s/^0 *\(.*\)$/\1/
12552 p
12553 }
12554 }'
12555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12556# Check for a 64-bit object if we didn't find anything.
12557if test -z "$aix_libpath"; then
12558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12559fi
12560fi
12561rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12564
12565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12566
12567 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"
12568 else
12569 if test "$host_cpu" = ia64; then
12570 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12571 allow_undefined_flag_CXX="-z nodefs"
12572 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"
12573 else
12574 # Determine the default libpath from the value encoded in an
12575 # empty executable.
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577/* end confdefs.h. */
12578
12579int
12580main ()
12581{
12582
12583 ;
12584 return 0;
12585}
12586_ACEOF
12587if ac_fn_cxx_try_link "$LINENO"; then :
12588
12589lt_aix_libpath_sed='
12590 /Import File Strings/,/^$/ {
12591 /^0/ {
12592 s/^0 *\(.*\)$/\1/
12593 p
12594 }
12595 }'
12596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597# Check for a 64-bit object if we didn't find anything.
12598if test -z "$aix_libpath"; then
12599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600fi
12601fi
12602rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12605
12606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12607 # Warning - without using the other run time loading flags,
12608 # -berok will link without error, but may produce a broken library.
12609 no_undefined_flag_CXX=' ${wl}-bernotok'
12610 allow_undefined_flag_CXX=' ${wl}-berok'
12611 if test "$with_gnu_ld" = yes; then
12612 # We only use this code for GNU lds that support --whole-archive.
12613 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12614 else
12615 # Exported symbols can be pulled into shared objects from archives
12616 whole_archive_flag_spec_CXX='$convenience'
12617 fi
12618 archive_cmds_need_lc_CXX=yes
12619 # This is similar to how AIX traditionally builds its shared
12620 # libraries.
12621 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'
12622 fi
12623 fi
12624 ;;
12625
12626 beos*)
12627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12628 allow_undefined_flag_CXX=unsupported
12629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12630 # support --undefined. This deserves some investigation. FIXME
12631 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 else
12633 ld_shlibs_CXX=no
12634 fi
12635 ;;
12636
12637 chorus*)
12638 case $cc_basename in
12639 *)
12640 # FIXME: insert proper C++ library support
12641 ld_shlibs_CXX=no
12642 ;;
12643 esac
12644 ;;
12645
12646 cygwin* | mingw* | pw32* | cegcc*)
12647 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12648 # as there is no search path for DLLs.
12649 hardcode_libdir_flag_spec_CXX='-L$libdir'
12650 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12651 allow_undefined_flag_CXX=unsupported
12652 always_export_symbols_CXX=no
12653 enable_shared_with_static_runtimes_CXX=yes
12654
12655 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12656 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'
12657 # If the export-symbols file already is a .def file (1st line
12658 # is EXPORTS), use it as is; otherwise, prepend...
12659 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12660 cp $export_symbols $output_objdir/$soname.def;
12661 else
12662 echo EXPORTS > $output_objdir/$soname.def;
12663 cat $export_symbols >> $output_objdir/$soname.def;
12664 fi~
12665 $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'
12666 else
12667 ld_shlibs_CXX=no
12668 fi
12669 ;;
12670 darwin* | rhapsody*)
12671
12672
6a6d3817
IS
12673
12674 # Publish an arg to allow the user to select that Darwin host (and target)
12675 # libraries should be given install-names like @rpath/libfoo.dylib. This
12676 # requires that the user of the library then adds an 'rpath' to the DSO that
12677 # needs access.
12678 # NOTE: there are defaults below, for systems that support rpaths. The person
12679 # configuring can override the defaults for any system version that supports
12680 # them - they are, however, forced off for system versions without support.
12681 # Check whether --enable-darwin-at-rpath was given.
12682if test "${enable_darwin_at_rpath+set}" = set; then :
12683 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12684 # This is not supported before macOS 10.5 / Darwin9.
12685 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12686 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12688$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12689 enable_darwin_at_rpath=no
12690 ;;
12691 esac
12692 fi
12693else
12694 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12695 # As above, before 10.5 / Darwin9 this does not work.
12696 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12697 enable_darwin_at_rpath=no
12698 ;;
12699
12700 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12701 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12702 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12703 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12705$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12706 enable_darwin_at_rpath=yes
12707 ;;
12708 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12709 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12710
12711 esac
12712
12713fi
12714
12715
5be7b669
L
12716 archive_cmds_need_lc_CXX=no
12717 hardcode_direct_CXX=no
12718 hardcode_automatic_CXX=yes
12719 hardcode_shlibpath_var_CXX=unsupported
12720 if test "$lt_cv_ld_force_load" = "yes"; then
12721 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\"`'
12722 else
12723 whole_archive_flag_spec_CXX=''
12724 fi
12725 link_all_deplibs_CXX=yes
12726 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12727 case $cc_basename in
12728 ifort*) _lt_dar_can_shared=yes ;;
12729 *) _lt_dar_can_shared=$GCC ;;
12730 esac
12731 if test "$_lt_dar_can_shared" = "yes"; then
12732 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
12733 _lt_install_name='\$rpath/\$soname'
12734 if test "x$enable_darwin_at_rpath" = "xyes"; then
12735 _lt_install_name='@rpath/\$soname'
12736 fi
12737 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
5be7b669 12738 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 12739 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
5be7b669
L
12740 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}"
12741 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
6a6d3817
IS
12742 _lt_install_name='\$rpath/\$soname'
12743 if test "x$enable_darwin_at_rpath" = "xyes"; then
12744 _lt_install_name='@rpath/\$soname'
12745 fi
12746 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
5be7b669
L
12747 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}"
12748 fi
12749
12750 else
12751 ld_shlibs_CXX=no
12752 fi
12753
12754 ;;
12755
12756 dgux*)
12757 case $cc_basename in
12758 ec++*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 ;;
12762 ghcx*)
12763 # Green Hills C++ Compiler
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 ;;
12767 *)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12770 ;;
12771 esac
12772 ;;
12773
12774 freebsd2.*)
12775 # C++ shared libraries reported to be fairly broken before
12776 # switch to ELF
12777 ld_shlibs_CXX=no
12778 ;;
12779
12780 freebsd-elf*)
12781 archive_cmds_need_lc_CXX=no
12782 ;;
12783
12784 freebsd* | dragonfly*)
12785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12786 # conventions
12787 ld_shlibs_CXX=yes
12788 ;;
12789
12790 gnu*)
12791 ;;
12792
12793 haiku*)
12794 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 link_all_deplibs_CXX=yes
12796 ;;
12797
12798 hpux9*)
12799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12800 hardcode_libdir_separator_CXX=:
12801 export_dynamic_flag_spec_CXX='${wl}-E'
12802 hardcode_direct_CXX=yes
12803 hardcode_minus_L_CXX=yes # Not in the search PATH,
12804 # but as the default
12805 # location of the library.
12806
12807 case $cc_basename in
12808 CC*)
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12811 ;;
12812 aCC*)
12813 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'
12814 # Commands to make compiler produce verbose output that lists
12815 # what "hidden" libraries, object files and flags are used when
12816 # linking a shared library.
12817 #
12818 # There doesn't appear to be a way to prevent this compiler from
12819 # explicitly linking system object files so we need to strip them
12820 # from the output so that they don't get included in the library
12821 # dependencies.
12822 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"'
12823 ;;
12824 *)
12825 if test "$GXX" = yes; then
12826 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'
12827 else
12828 # FIXME: insert proper C++ library support
12829 ld_shlibs_CXX=no
12830 fi
12831 ;;
12832 esac
12833 ;;
12834
12835 hpux10*|hpux11*)
12836 if test $with_gnu_ld = no; then
12837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator_CXX=:
12839
12840 case $host_cpu in
12841 hppa*64*|ia64*)
12842 ;;
12843 *)
12844 export_dynamic_flag_spec_CXX='${wl}-E'
12845 ;;
12846 esac
12847 fi
12848 case $host_cpu in
12849 hppa*64*|ia64*)
12850 hardcode_direct_CXX=no
12851 hardcode_shlibpath_var_CXX=no
12852 ;;
12853 *)
12854 hardcode_direct_CXX=yes
12855 hardcode_direct_absolute_CXX=yes
12856 hardcode_minus_L_CXX=yes # Not in the search PATH,
12857 # but as the default
12858 # location of the library.
12859 ;;
12860 esac
12861
12862 case $cc_basename in
12863 CC*)
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12866 ;;
12867 aCC*)
12868 case $host_cpu in
12869 hppa*64*)
12870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871 ;;
12872 ia64*)
12873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 ;;
12875 *)
12876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877 ;;
12878 esac
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12882 #
12883 # There doesn't appear to be a way to prevent this compiler from
12884 # explicitly linking system object files so we need to strip them
12885 # from the output so that they don't get included in the library
12886 # dependencies.
12887 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"'
12888 ;;
12889 *)
12890 if test "$GXX" = yes; then
12891 if test $with_gnu_ld = no; then
12892 case $host_cpu in
12893 hppa*64*)
12894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12895 ;;
12896 ia64*)
12897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12898 ;;
12899 *)
12900 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'
12901 ;;
12902 esac
12903 fi
12904 else
12905 # FIXME: insert proper C++ library support
12906 ld_shlibs_CXX=no
12907 fi
12908 ;;
12909 esac
12910 ;;
12911
12912 interix[3-9]*)
12913 hardcode_direct_CXX=no
12914 hardcode_shlibpath_var_CXX=no
12915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12916 export_dynamic_flag_spec_CXX='${wl}-E'
12917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12918 # Instead, shared libraries are loaded at an image base (0x10000000 by
12919 # default) and relocated if they conflict, which is a slow very memory
12920 # consuming and fragmenting process. To avoid this, we pick a random,
12921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12923 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'
12924 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'
12925 ;;
12926 irix5* | irix6*)
12927 case $cc_basename in
12928 CC*)
12929 # SGI C++
12930 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'
12931
12932 # Archives containing C++ object files must be created using
12933 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12934 # necessary to make sure instantiated templates are included
12935 # in the archive.
12936 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12937 ;;
12938 *)
12939 if test "$GXX" = yes; then
12940 if test "$with_gnu_ld" = no; then
12941 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'
12942 else
12943 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'
12944 fi
12945 fi
12946 link_all_deplibs_CXX=yes
12947 ;;
12948 esac
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12950 hardcode_libdir_separator_CXX=:
12951 inherit_rpath_CXX=yes
12952 ;;
12953
12954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12955 case $cc_basename in
12956 KCC*)
12957 # Kuck and Associates, Inc. (KAI) C++ Compiler
12958
12959 # KCC will only create a shared library if the output file
12960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12961 # to its proper name (with version) after linking.
12962 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'
12963 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'
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12967 #
12968 # There doesn't appear to be a way to prevent this compiler from
12969 # explicitly linking system object files so we need to strip them
12970 # from the output so that they don't get included in the library
12971 # dependencies.
12972 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"'
12973
12974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12976
12977 # Archives containing C++ object files must be created using
12978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12980 ;;
12981 icpc* | ecpc* )
12982 # Intel C++
12983 with_gnu_ld=yes
12984 # version 8.0 and above of icpc choke on multiply defined symbols
12985 # if we add $predep_objects and $postdep_objects, however 7.1 and
12986 # earlier do not add the objects themselves.
12987 case `$CC -V 2>&1` in
12988 *"Version 7."*)
12989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 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'
12991 ;;
12992 *) # Version 8.0 or newer
12993 tmp_idyn=
12994 case $host_cpu in
12995 ia64*) tmp_idyn=' -i_dynamic';;
12996 esac
12997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998 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'
12999 ;;
13000 esac
13001 archive_cmds_need_lc_CXX=no
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13005 ;;
13006 pgCC* | pgcpp*)
13007 # Portland Group C++ compiler
13008 case `$CC -V` in
13009 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13010 prelink_cmds_CXX='tpldir=Template.dir~
13011 rm -rf $tpldir~
13012 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13013 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13014 old_archive_cmds_CXX='tpldir=Template.dir~
13015 rm -rf $tpldir~
13016 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13017 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13018 $RANLIB $oldlib'
13019 archive_cmds_CXX='tpldir=Template.dir~
13020 rm -rf $tpldir~
13021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13023 archive_expsym_cmds_CXX='tpldir=Template.dir~
13024 rm -rf $tpldir~
13025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13026 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13027 ;;
13028 *) # Version 6 and above use weak symbols
13029 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13030 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'
13031 ;;
13032 esac
13033
13034 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036 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'
13037 ;;
13038 cxx*)
13039 # Compaq C++
13040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041 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'
13042
13043 runpath_var=LD_RUN_PATH
13044 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13045 hardcode_libdir_separator_CXX=:
13046
13047 # Commands to make compiler produce verbose output that lists
13048 # what "hidden" libraries, object files and flags are used when
13049 # linking a shared library.
13050 #
13051 # There doesn't appear to be a way to prevent this compiler from
13052 # explicitly linking system object files so we need to strip them
13053 # from the output so that they don't get included in the library
13054 # dependencies.
13055 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'
13056 ;;
13057 xl* | mpixl* | bgxl*)
13058 # IBM XL 8.0 on PPC, with GNU ld
13059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13061 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 if test "x$supports_anon_versioning" = xyes; then
13063 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13065 echo "local: *; };" >> $output_objdir/$libname.ver~
13066 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13067 fi
13068 ;;
13069 *)
13070 case `$CC -V 2>&1 | sed 5q` in
13071 *Sun\ C*)
13072 # Sun C++ 5.9
13073 no_undefined_flag_CXX=' -zdefs'
13074 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13075 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'
13076 hardcode_libdir_flag_spec_CXX='-R$libdir'
13077 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'
13078 compiler_needs_object_CXX=yes
13079
13080 # Not sure whether something based on
13081 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13082 # would be better.
13083 output_verbose_link_cmd='func_echo_all'
13084
13085 # Archives containing C++ object files must be created using
13086 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13087 # necessary to make sure instantiated templates are included
13088 # in the archive.
13089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13090 ;;
13091 esac
13092 ;;
13093 esac
13094 ;;
13095
13096 lynxos*)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 ;;
13100
13101 m88k*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13104 ;;
13105
13106 mvs*)
13107 case $cc_basename in
13108 cxx*)
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13111 ;;
13112 *)
13113 # FIXME: insert proper C++ library support
13114 ld_shlibs_CXX=no
13115 ;;
13116 esac
13117 ;;
13118
13119 netbsd*)
13120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13122 wlarc=
13123 hardcode_libdir_flag_spec_CXX='-R$libdir'
13124 hardcode_direct_CXX=yes
13125 hardcode_shlibpath_var_CXX=no
13126 fi
13127 # Workaround some broken pre-1.5 toolchains
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13129 ;;
13130
13131 *nto* | *qnx*)
13132 ld_shlibs_CXX=yes
13133 ;;
13134
13135 openbsd2*)
13136 # C++ shared libraries are fairly broken
13137 ld_shlibs_CXX=no
13138 ;;
13139
13140 openbsd*)
13141 if test -f /usr/libexec/ld.so; then
13142 hardcode_direct_CXX=yes
13143 hardcode_shlibpath_var_CXX=no
13144 hardcode_direct_absolute_CXX=yes
13145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13149 export_dynamic_flag_spec_CXX='${wl}-E'
13150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13151 fi
13152 output_verbose_link_cmd=func_echo_all
13153 else
13154 ld_shlibs_CXX=no
13155 fi
13156 ;;
13157
13158 osf3* | osf4* | osf5*)
13159 case $cc_basename in
13160 KCC*)
13161 # Kuck and Associates, Inc. (KAI) C++ Compiler
13162
13163 # KCC will only create a shared library if the output file
13164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13165 # to its proper name (with version) after linking.
13166 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'
13167
13168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13169 hardcode_libdir_separator_CXX=:
13170
13171 # Archives containing C++ object files must be created using
13172 # the KAI C++ compiler.
13173 case $host in
13174 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13175 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13176 esac
13177 ;;
13178 RCC*)
13179 # Rational C++ 2.4.1
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13182 ;;
13183 cxx*)
13184 case $host in
13185 osf3*)
13186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13187 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'
13188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189 ;;
13190 *)
13191 allow_undefined_flag_CXX=' -expect_unresolved \*'
13192 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'
13193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13194 echo "-hidden">> $lib.exp~
13195 $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~
13196 $RM $lib.exp'
13197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13198 ;;
13199 esac
13200
13201 hardcode_libdir_separator_CXX=:
13202
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 #
13207 # There doesn't appear to be a way to prevent this compiler from
13208 # explicitly linking system object files so we need to strip them
13209 # from the output so that they don't get included in the library
13210 # dependencies.
13211 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"'
13212 ;;
13213 *)
13214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13216 case $host in
13217 osf3*)
13218 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'
13219 ;;
13220 *)
13221 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'
13222 ;;
13223 esac
13224
13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226 hardcode_libdir_separator_CXX=:
13227
13228 # Commands to make compiler produce verbose output that lists
13229 # what "hidden" libraries, object files and flags are used when
13230 # linking a shared library.
13231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13232
13233 else
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 fi
13237 ;;
13238 esac
13239 ;;
13240
13241 psos*)
13242 # FIXME: insert proper C++ library support
13243 ld_shlibs_CXX=no
13244 ;;
13245
13246 sunos4*)
13247 case $cc_basename in
13248 CC*)
13249 # Sun C++ 4.x
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13252 ;;
13253 lcc*)
13254 # Lucid
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 ;;
13258 *)
13259 # FIXME: insert proper C++ library support
13260 ld_shlibs_CXX=no
13261 ;;
13262 esac
13263 ;;
13264
13265 solaris*)
13266 case $cc_basename in
13267 CC*)
13268 # Sun C++ 4.2, 5.x and Centerline C++
13269 archive_cmds_need_lc_CXX=yes
13270 no_undefined_flag_CXX=' -zdefs'
13271 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13273 $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'
13274
13275 hardcode_libdir_flag_spec_CXX='-R$libdir'
13276 hardcode_shlibpath_var_CXX=no
13277 case $host_os in
13278 solaris2.[0-5] | solaris2.[0-5].*) ;;
13279 *)
13280 # The compiler driver will combine and reorder linker options,
13281 # but understands `-z linker_flag'.
13282 # Supported since Solaris 2.6 (maybe 2.5.1?)
13283 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13284 ;;
13285 esac
13286 link_all_deplibs_CXX=yes
13287
13288 output_verbose_link_cmd='func_echo_all'
13289
13290 # Archives containing C++ object files must be created using
13291 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13292 # necessary to make sure instantiated templates are included
13293 # in the archive.
13294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13295 ;;
13296 gcx*)
13297 # Green Hills C++ Compiler
13298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13299
13300 # The C++ compiler must be used to create the archive.
13301 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13302 ;;
13303 *)
13304 # GNU C++ compiler with Solaris linker
13305 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13306 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13307 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13308 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13309 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13310 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13311
13312 # Commands to make compiler produce verbose output that lists
13313 # what "hidden" libraries, object files and flags are used when
13314 # linking a shared library.
13315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13316 else
13317 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13318 # platform.
13319 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13320 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13321 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13322
13323 # Commands to make compiler produce verbose output that lists
13324 # what "hidden" libraries, object files and flags are used when
13325 # linking a shared library.
13326 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13327 fi
13328
13329 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13330 case $host_os in
13331 solaris2.[0-5] | solaris2.[0-5].*) ;;
13332 *)
13333 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13334 ;;
13335 esac
13336 fi
13337 ;;
13338 esac
13339 ;;
13340
13341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13342 no_undefined_flag_CXX='${wl}-z,text'
13343 archive_cmds_need_lc_CXX=no
13344 hardcode_shlibpath_var_CXX=no
13345 runpath_var='LD_RUN_PATH'
13346
13347 case $cc_basename in
13348 CC*)
13349 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13351 ;;
13352 *)
13353 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355 ;;
13356 esac
13357 ;;
13358
13359 sysv5* | sco3.2v5* | sco5v6*)
13360 # Note: We can NOT use -z defs as we might desire, because we do not
13361 # link with -lc, and that would cause any symbols used from libc to
13362 # always be unresolved, which means just about no library would
13363 # ever link correctly. If we're not using GNU ld we use -z text
13364 # though, which does catch some bad symbols but isn't as heavy-handed
13365 # as -z defs.
13366 no_undefined_flag_CXX='${wl}-z,text'
13367 allow_undefined_flag_CXX='${wl}-z,nodefs'
13368 archive_cmds_need_lc_CXX=no
13369 hardcode_shlibpath_var_CXX=no
13370 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13371 hardcode_libdir_separator_CXX=':'
13372 link_all_deplibs_CXX=yes
13373 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13374 runpath_var='LD_RUN_PATH'
13375
13376 case $cc_basename in
13377 CC*)
13378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13381 '"$old_archive_cmds_CXX"
13382 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13383 '"$reload_cmds_CXX"
13384 ;;
13385 *)
13386 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 ;;
13389 esac
13390 ;;
13391
13392 tandem*)
13393 case $cc_basename in
13394 NCC*)
13395 # NonStop-UX NCC 3.20
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 ;;
13399 *)
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13402 ;;
13403 esac
13404 ;;
13405
13406 vxworks*)
0ecd0f1c
OH
13407 # For VxWorks ports, we assume the use of a GNU linker with
13408 # standard elf conventions.
13409 ld_shlibs_CXX=yes
5be7b669
L
13410 ;;
13411
13412 *)
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13415 ;;
13416 esac
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13419$as_echo "$ld_shlibs_CXX" >&6; }
13420 test "$ld_shlibs_CXX" = no && can_build_shared=no
13421
13422 GCC_CXX="$GXX"
13423 LD_CXX="$LD"
13424
13425 ## CAVEAT EMPTOR:
13426 ## There is no encapsulation within the following macros, do not change
13427 ## the running order or otherwise move them around unless you know exactly
13428 ## what you are doing...
13429 # Dependencies to place before and after the object being linked:
13430predep_objects_CXX=
13431postdep_objects_CXX=
13432predeps_CXX=
13433postdeps_CXX=
13434compiler_lib_search_path_CXX=
13435
13436cat > conftest.$ac_ext <<_LT_EOF
13437class Foo
13438{
13439public:
13440 Foo (void) { a = 0; }
13441private:
13442 int a;
13443};
13444_LT_EOF
13445
13446if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13447 (eval $ac_compile) 2>&5
13448 ac_status=$?
13449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450 test $ac_status = 0; }; then
13451 # Parse the compiler output and extract the necessary
13452 # objects, libraries and library flags.
13453
13454 # Sentinel used to keep track of whether or not we are before
13455 # the conftest object file.
13456 pre_test_object_deps_done=no
13457
13458 for p in `eval "$output_verbose_link_cmd"`; do
13459 case $p in
13460
13461 -L* | -R* | -l*)
13462 # Some compilers place space between "-{L,R}" and the path.
13463 # Remove the space.
13464 if test $p = "-L" ||
13465 test $p = "-R"; then
13466 prev=$p
13467 continue
13468 else
13469 prev=
13470 fi
13471
13472 if test "$pre_test_object_deps_done" = no; then
13473 case $p in
13474 -L* | -R*)
13475 # Internal compiler library paths should come after those
13476 # provided the user. The postdeps already come after the
13477 # user supplied libs so there is no need to process them.
13478 if test -z "$compiler_lib_search_path_CXX"; then
13479 compiler_lib_search_path_CXX="${prev}${p}"
13480 else
13481 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13482 fi
13483 ;;
13484 # The "-l" case would never come before the object being
13485 # linked, so don't bother handling this case.
13486 esac
13487 else
13488 if test -z "$postdeps_CXX"; then
13489 postdeps_CXX="${prev}${p}"
13490 else
13491 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13492 fi
13493 fi
13494 ;;
13495
13496 *.$objext)
13497 # This assumes that the test object file only shows up
13498 # once in the compiler output.
13499 if test "$p" = "conftest.$objext"; then
13500 pre_test_object_deps_done=yes
13501 continue
13502 fi
13503
13504 if test "$pre_test_object_deps_done" = no; then
13505 if test -z "$predep_objects_CXX"; then
13506 predep_objects_CXX="$p"
13507 else
13508 predep_objects_CXX="$predep_objects_CXX $p"
13509 fi
13510 else
13511 if test -z "$postdep_objects_CXX"; then
13512 postdep_objects_CXX="$p"
13513 else
13514 postdep_objects_CXX="$postdep_objects_CXX $p"
13515 fi
13516 fi
13517 ;;
13518
13519 *) ;; # Ignore the rest.
13520
13521 esac
13522 done
13523
13524 # Clean up.
13525 rm -f a.out a.exe
13526else
13527 echo "libtool.m4: error: problem compiling CXX test program"
13528fi
13529
13530$RM -f confest.$objext
13531
13532# PORTME: override above test on systems where it is broken
13533case $host_os in
13534interix[3-9]*)
13535 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13536 # hack all around it, let's just trust "g++" to DTRT.
13537 predep_objects_CXX=
13538 postdep_objects_CXX=
13539 postdeps_CXX=
13540 ;;
13541
13542linux*)
13543 case `$CC -V 2>&1 | sed 5q` in
13544 *Sun\ C*)
13545 # Sun C++ 5.9
13546
13547 # The more standards-conforming stlport4 library is
13548 # incompatible with the Cstd library. Avoid specifying
13549 # it if it's in CXXFLAGS. Ignore libCrun as
13550 # -library=stlport4 depends on it.
13551 case " $CXX $CXXFLAGS " in
13552 *" -library=stlport4 "*)
13553 solaris_use_stlport4=yes
13554 ;;
13555 esac
13556
13557 if test "$solaris_use_stlport4" != yes; then
13558 postdeps_CXX='-library=Cstd -library=Crun'
13559 fi
13560 ;;
13561 esac
13562 ;;
13563
13564solaris*)
13565 case $cc_basename in
13566 CC*)
13567 # The more standards-conforming stlport4 library is
13568 # incompatible with the Cstd library. Avoid specifying
13569 # it if it's in CXXFLAGS. Ignore libCrun as
13570 # -library=stlport4 depends on it.
13571 case " $CXX $CXXFLAGS " in
13572 *" -library=stlport4 "*)
13573 solaris_use_stlport4=yes
13574 ;;
13575 esac
13576
13577 # Adding this requires a known-good setup of shared libraries for
13578 # Sun compiler versions before 5.6, else PIC objects from an old
13579 # archive will be linked into the output, leading to subtle bugs.
13580 if test "$solaris_use_stlport4" != yes; then
13581 postdeps_CXX='-library=Cstd -library=Crun'
13582 fi
13583 ;;
13584 esac
13585 ;;
13586esac
13587
13588
13589case " $postdeps_CXX " in
13590*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13591esac
13592 compiler_lib_search_dirs_CXX=
13593if test -n "${compiler_lib_search_path_CXX}"; then
13594 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13595fi
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627 lt_prog_compiler_wl_CXX=
13628lt_prog_compiler_pic_CXX=
13629lt_prog_compiler_static_CXX=
13630
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13632$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13633
13634 # C++ specific cases for pic, static, wl, etc.
13635 if test "$GXX" = yes; then
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 lt_prog_compiler_static_CXX='-static'
13638
13639 case $host_os in
13640 aix*)
13641 # All AIX code is PIC.
13642 if test "$host_cpu" = ia64; then
13643 # AIX 5 now supports IA64 processor
13644 lt_prog_compiler_static_CXX='-Bstatic'
13645 fi
13646 lt_prog_compiler_pic_CXX='-fPIC'
13647 ;;
13648
13649 amigaos*)
13650 case $host_cpu in
13651 powerpc)
13652 # see comment about AmigaOS4 .so support
13653 lt_prog_compiler_pic_CXX='-fPIC'
13654 ;;
13655 m68k)
13656 # FIXME: we need at least 68020 code to build shared libraries, but
13657 # adding the `-m68020' flag to GCC prevents building anything better,
13658 # like `-m68040'.
13659 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13660 ;;
13661 esac
13662 ;;
13663
13664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13665 # PIC is the default for these OSes.
13666 ;;
13667 mingw* | cygwin* | os2* | pw32* | cegcc*)
13668 # This hack is so that the source file can tell whether it is being
13669 # built for inclusion in a dll (and should export symbols for example).
13670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13671 # (--disable-auto-import) libraries
13672 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13673 ;;
13674 darwin* | rhapsody*)
13675 # PIC is the default on this platform
13676 # Common symbols not allowed in MH_DYLIB files
13677 lt_prog_compiler_pic_CXX='-fno-common'
13678 ;;
13679 *djgpp*)
13680 # DJGPP does not support shared libraries at all
13681 lt_prog_compiler_pic_CXX=
13682 ;;
13683 haiku*)
13684 # PIC is the default for Haiku.
13685 # The "-static" flag exists, but is broken.
13686 lt_prog_compiler_static_CXX=
13687 ;;
13688 interix[3-9]*)
13689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13690 # Instead, we relocate shared libraries at runtime.
13691 ;;
13692 sysv4*MP*)
13693 if test -d /usr/nec; then
13694 lt_prog_compiler_pic_CXX=-Kconform_pic
13695 fi
13696 ;;
13697 hpux*)
13698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13700 # sets the default TLS model and affects inlining.
13701 case $host_cpu in
13702 hppa*64*)
13703 ;;
13704 *)
13705 lt_prog_compiler_pic_CXX='-fPIC'
13706 ;;
13707 esac
13708 ;;
13709 *qnx* | *nto*)
13710 # QNX uses GNU C++, but need to define -shared option too, otherwise
13711 # it will coredump.
13712 lt_prog_compiler_pic_CXX='-fPIC -shared'
13713 ;;
13714 *)
13715 lt_prog_compiler_pic_CXX='-fPIC'
13716 ;;
13717 esac
13718 else
13719 case $host_os in
13720 aix[4-9]*)
13721 # All AIX code is PIC.
13722 if test "$host_cpu" = ia64; then
13723 # AIX 5 now supports IA64 processor
13724 lt_prog_compiler_static_CXX='-Bstatic'
13725 else
13726 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13727 fi
13728 ;;
13729 chorus*)
13730 case $cc_basename in
13731 cxch68*)
13732 # Green Hills C++ Compiler
13733 # _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"
13734 ;;
13735 esac
13736 ;;
13737 dgux*)
13738 case $cc_basename in
13739 ec++*)
13740 lt_prog_compiler_pic_CXX='-KPIC'
13741 ;;
13742 ghcx*)
13743 # Green Hills C++ Compiler
13744 lt_prog_compiler_pic_CXX='-pic'
13745 ;;
13746 *)
13747 ;;
13748 esac
13749 ;;
13750 freebsd* | dragonfly*)
13751 # FreeBSD uses GNU C++
13752 ;;
13753 hpux9* | hpux10* | hpux11*)
13754 case $cc_basename in
13755 CC*)
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13758 if test "$host_cpu" != ia64; then
13759 lt_prog_compiler_pic_CXX='+Z'
13760 fi
13761 ;;
13762 aCC*)
13763 lt_prog_compiler_wl_CXX='-Wl,'
13764 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13765 case $host_cpu in
13766 hppa*64*|ia64*)
13767 # +Z the default
13768 ;;
13769 *)
13770 lt_prog_compiler_pic_CXX='+Z'
13771 ;;
13772 esac
13773 ;;
13774 *)
13775 ;;
13776 esac
13777 ;;
13778 interix*)
13779 # This is c89, which is MS Visual C++ (no shared libs)
13780 # Anyone wants to do a port?
13781 ;;
13782 irix5* | irix6* | nonstopux*)
13783 case $cc_basename in
13784 CC*)
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_static_CXX='-non_shared'
13787 # CC pic flag -KPIC is the default.
13788 ;;
13789 *)
13790 ;;
13791 esac
13792 ;;
13793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13794 case $cc_basename in
13795 KCC*)
13796 # KAI C++ Compiler
13797 lt_prog_compiler_wl_CXX='--backend -Wl,'
13798 lt_prog_compiler_pic_CXX='-fPIC'
13799 ;;
13800 ecpc* )
13801 # old Intel C++ for x86_64 which still supported -KPIC.
13802 lt_prog_compiler_wl_CXX='-Wl,'
13803 lt_prog_compiler_pic_CXX='-KPIC'
13804 lt_prog_compiler_static_CXX='-static'
13805 ;;
13806 icpc* )
13807 # Intel C++, used to be incompatible with GCC.
13808 # ICC 10 doesn't accept -KPIC any more.
13809 lt_prog_compiler_wl_CXX='-Wl,'
13810 lt_prog_compiler_pic_CXX='-fPIC'
13811 lt_prog_compiler_static_CXX='-static'
13812 ;;
13813 pgCC* | pgcpp*)
13814 # Portland Group C++ compiler
13815 lt_prog_compiler_wl_CXX='-Wl,'
13816 lt_prog_compiler_pic_CXX='-fpic'
13817 lt_prog_compiler_static_CXX='-Bstatic'
13818 ;;
13819 cxx*)
13820 # Compaq C++
13821 # Make sure the PIC flag is empty. It appears that all Alpha
13822 # Linux and Compaq Tru64 Unix objects are PIC.
13823 lt_prog_compiler_pic_CXX=
13824 lt_prog_compiler_static_CXX='-non_shared'
13825 ;;
13826 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13827 # IBM XL 8.0, 9.0 on PPC and BlueGene
13828 lt_prog_compiler_wl_CXX='-Wl,'
13829 lt_prog_compiler_pic_CXX='-qpic'
13830 lt_prog_compiler_static_CXX='-qstaticlink'
13831 ;;
13832 *)
13833 case `$CC -V 2>&1 | sed 5q` in
13834 *Sun\ C*)
13835 # Sun C++ 5.9
13836 lt_prog_compiler_pic_CXX='-KPIC'
13837 lt_prog_compiler_static_CXX='-Bstatic'
13838 lt_prog_compiler_wl_CXX='-Qoption ld '
13839 ;;
13840 esac
13841 ;;
13842 esac
13843 ;;
13844 lynxos*)
13845 ;;
13846 m88k*)
13847 ;;
13848 mvs*)
13849 case $cc_basename in
13850 cxx*)
13851 lt_prog_compiler_pic_CXX='-W c,exportall'
13852 ;;
13853 *)
13854 ;;
13855 esac
13856 ;;
13857 netbsd*)
13858 ;;
13859 *qnx* | *nto*)
13860 # QNX uses GNU C++, but need to define -shared option too, otherwise
13861 # it will coredump.
13862 lt_prog_compiler_pic_CXX='-fPIC -shared'
13863 ;;
13864 osf3* | osf4* | osf5*)
13865 case $cc_basename in
13866 KCC*)
13867 lt_prog_compiler_wl_CXX='--backend -Wl,'
13868 ;;
13869 RCC*)
13870 # Rational C++ 2.4.1
13871 lt_prog_compiler_pic_CXX='-pic'
13872 ;;
13873 cxx*)
13874 # Digital/Compaq C++
13875 lt_prog_compiler_wl_CXX='-Wl,'
13876 # Make sure the PIC flag is empty. It appears that all Alpha
13877 # Linux and Compaq Tru64 Unix objects are PIC.
13878 lt_prog_compiler_pic_CXX=
13879 lt_prog_compiler_static_CXX='-non_shared'
13880 ;;
13881 *)
13882 ;;
13883 esac
13884 ;;
13885 psos*)
13886 ;;
13887 solaris*)
13888 case $cc_basename in
13889 CC*)
13890 # Sun C++ 4.2, 5.x and Centerline C++
13891 lt_prog_compiler_pic_CXX='-KPIC'
13892 lt_prog_compiler_static_CXX='-Bstatic'
13893 lt_prog_compiler_wl_CXX='-Qoption ld '
13894 ;;
13895 gcx*)
13896 # Green Hills C++ Compiler
13897 lt_prog_compiler_pic_CXX='-PIC'
13898 ;;
13899 *)
13900 ;;
13901 esac
13902 ;;
13903 sunos4*)
13904 case $cc_basename in
13905 CC*)
13906 # Sun C++ 4.x
13907 lt_prog_compiler_pic_CXX='-pic'
13908 lt_prog_compiler_static_CXX='-Bstatic'
13909 ;;
13910 lcc*)
13911 # Lucid
13912 lt_prog_compiler_pic_CXX='-pic'
13913 ;;
13914 *)
13915 ;;
13916 esac
13917 ;;
13918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13919 case $cc_basename in
13920 CC*)
13921 lt_prog_compiler_wl_CXX='-Wl,'
13922 lt_prog_compiler_pic_CXX='-KPIC'
13923 lt_prog_compiler_static_CXX='-Bstatic'
13924 ;;
13925 esac
13926 ;;
13927 tandem*)
13928 case $cc_basename in
13929 NCC*)
13930 # NonStop-UX NCC 3.20
13931 lt_prog_compiler_pic_CXX='-KPIC'
13932 ;;
13933 *)
13934 ;;
13935 esac
13936 ;;
13937 vxworks*)
13938 ;;
13939 *)
13940 lt_prog_compiler_can_build_shared_CXX=no
13941 ;;
13942 esac
13943 fi
13944
13945case $host_os in
13946 # For platforms which do not support PIC, -DPIC is meaningless:
13947 *djgpp*)
13948 lt_prog_compiler_pic_CXX=
13949 ;;
13950 *)
13951 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13952 ;;
13953esac
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13955$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13956
13957
13958
13959#
13960# Check to make sure the PIC flag actually works.
13961#
13962if test -n "$lt_prog_compiler_pic_CXX"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13964$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13965if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967else
13968 lt_cv_prog_compiler_pic_works_CXX=no
13969 ac_outfile=conftest.$ac_objext
13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13971 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13972 # Insert the option either (1) after the last *FLAGS variable, or
13973 # (2) before a word containing "conftest.", or (3) at the end.
13974 # Note that $ac_compile itself does not contain backslashes and begins
13975 # with a dollar sign (not a hyphen), so the echo should work correctly.
13976 # The option is referenced via a variable to avoid confusing sed.
13977 lt_compile=`echo "$ac_compile" | $SED \
13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13980 -e 's:$: $lt_compiler_flag:'`
13981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13982 (eval "$lt_compile" 2>conftest.err)
13983 ac_status=$?
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 if (exit $ac_status) && test -s "$ac_outfile"; then
13987 # The compiler can only warn and ignore the option if not recognized
13988 # So say no if there are warnings other than the usual output.
13989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13992 lt_cv_prog_compiler_pic_works_CXX=yes
13993 fi
13994 fi
13995 $RM conftest*
13996
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13999$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14000
14001if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14002 case $lt_prog_compiler_pic_CXX in
14003 "" | " "*) ;;
14004 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14005 esac
14006else
14007 lt_prog_compiler_pic_CXX=
14008 lt_prog_compiler_can_build_shared_CXX=no
14009fi
14010
14011fi
14012
14013
14014
14015#
14016# Check to make sure the static flag actually works.
14017#
14018wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14020$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14021if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023else
14024 lt_cv_prog_compiler_static_works_CXX=no
14025 save_LDFLAGS="$LDFLAGS"
14026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14029 # The linker can only warn and ignore the option if not recognized
14030 # So say no if there are warnings
14031 if test -s conftest.err; then
14032 # Append any errors to the config.log.
14033 cat conftest.err 1>&5
14034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14036 if diff conftest.exp conftest.er2 >/dev/null; then
14037 lt_cv_prog_compiler_static_works_CXX=yes
14038 fi
14039 else
14040 lt_cv_prog_compiler_static_works_CXX=yes
14041 fi
14042 fi
14043 $RM -r conftest*
14044 LDFLAGS="$save_LDFLAGS"
14045
14046fi
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14048$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14049
14050if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14051 :
14052else
14053 lt_prog_compiler_static_CXX=
14054fi
14055
14056
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14060$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14061if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063else
14064 lt_cv_prog_compiler_c_o_CXX=no
14065 $RM -r conftest 2>/dev/null
14066 mkdir conftest
14067 cd conftest
14068 mkdir out
14069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14070
14071 lt_compiler_flag="-o out/conftest2.$ac_objext"
14072 # Insert the option either (1) after the last *FLAGS variable, or
14073 # (2) before a word containing "conftest.", or (3) at the end.
14074 # Note that $ac_compile itself does not contain backslashes and begins
14075 # with a dollar sign (not a hyphen), so the echo should work correctly.
14076 lt_compile=`echo "$ac_compile" | $SED \
14077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079 -e 's:$: $lt_compiler_flag:'`
14080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14081 (eval "$lt_compile" 2>out/conftest.err)
14082 ac_status=$?
14083 cat out/conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086 then
14087 # The compiler can only warn and ignore the option if not recognized
14088 # So say no if there are warnings
14089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14092 lt_cv_prog_compiler_c_o_CXX=yes
14093 fi
14094 fi
14095 chmod u+w . 2>&5
14096 $RM conftest*
14097 # SGI C++ compiler will create directory out/ii_files/ for
14098 # template instantiation
14099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14100 $RM out/* && rmdir out
14101 cd ..
14102 $RM -r conftest
14103 $RM conftest*
14104
14105fi
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14107$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14108
14109
14110
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14112$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14113if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115else
14116 lt_cv_prog_compiler_c_o_CXX=no
14117 $RM -r conftest 2>/dev/null
14118 mkdir conftest
14119 cd conftest
14120 mkdir out
14121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14122
14123 lt_compiler_flag="-o out/conftest2.$ac_objext"
14124 # Insert the option either (1) after the last *FLAGS variable, or
14125 # (2) before a word containing "conftest.", or (3) at the end.
14126 # Note that $ac_compile itself does not contain backslashes and begins
14127 # with a dollar sign (not a hyphen), so the echo should work correctly.
14128 lt_compile=`echo "$ac_compile" | $SED \
14129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14131 -e 's:$: $lt_compiler_flag:'`
14132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14133 (eval "$lt_compile" 2>out/conftest.err)
14134 ac_status=$?
14135 cat out/conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14138 then
14139 # The compiler can only warn and ignore the option if not recognized
14140 # So say no if there are warnings
14141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14144 lt_cv_prog_compiler_c_o_CXX=yes
14145 fi
14146 fi
14147 chmod u+w . 2>&5
14148 $RM conftest*
14149 # SGI C++ compiler will create directory out/ii_files/ for
14150 # template instantiation
14151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14152 $RM out/* && rmdir out
14153 cd ..
14154 $RM -r conftest
14155 $RM conftest*
14156
14157fi
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14159$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14160
14161
14162
14163
14164hard_links="nottested"
14165if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14166 # do not overwrite the value of need_locks provided by the user
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14168$as_echo_n "checking if we can lock with hard links... " >&6; }
14169 hard_links=yes
14170 $RM conftest*
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172 touch conftest.a
14173 ln conftest.a conftest.b 2>&5 || hard_links=no
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14176$as_echo "$hard_links" >&6; }
14177 if test "$hard_links" = no; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14180 need_locks=warn
14181 fi
14182else
14183 need_locks=no
14184fi
14185
14186
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14190
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 case $host_os in
14193 aix[4-9]*)
14194 # If we're using GNU nm, then we don't want the "-C" option.
14195 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14196 # Also, AIX nm treats weak defined symbols like other global defined
14197 # symbols, whereas GNU nm marks them as "W".
14198 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14199 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'
14200 else
14201 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14202 fi
14203 ;;
14204 pw32*)
14205 export_symbols_cmds_CXX="$ltdll_cmds"
14206 ;;
14207 cygwin* | mingw* | cegcc*)
14208 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'
14209 ;;
14210 *)
14211 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14212 ;;
14213 esac
14214 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14215
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14217$as_echo "$ld_shlibs_CXX" >&6; }
14218test "$ld_shlibs_CXX" = no && can_build_shared=no
14219
14220with_gnu_ld_CXX=$with_gnu_ld
14221
14222
14223
14224
14225
14226
14227#
14228# Do we need to explicitly link libc?
14229#
14230case "x$archive_cmds_need_lc_CXX" in
14231x|xyes)
14232 # Assume -lc should be added
14233 archive_cmds_need_lc_CXX=yes
14234
14235 if test "$enable_shared" = yes && test "$GCC" = yes; then
14236 case $archive_cmds_CXX in
14237 *'~'*)
14238 # FIXME: we may have to deal with multi-command sequences.
14239 ;;
14240 '$CC '*)
14241 # Test whether the compiler implicitly links with -lc since on some
14242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14243 # to ld, don't add -lc before -lgcc.
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14246if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248else
14249 $RM conftest*
14250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14251
14252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14253 (eval $ac_compile) 2>&5
14254 ac_status=$?
14255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256 test $ac_status = 0; } 2>conftest.err; then
14257 soname=conftest
14258 lib=conftest
14259 libobjs=conftest.$ac_objext
14260 deplibs=
14261 wl=$lt_prog_compiler_wl_CXX
14262 pic_flag=$lt_prog_compiler_pic_CXX
14263 compiler_flags=-v
14264 linker_flags=-v
14265 verstring=
14266 output_objdir=.
14267 libname=conftest
14268 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14269 allow_undefined_flag_CXX=
14270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14271 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14272 ac_status=$?
14273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14274 test $ac_status = 0; }
14275 then
14276 lt_cv_archive_cmds_need_lc_CXX=no
14277 else
14278 lt_cv_archive_cmds_need_lc_CXX=yes
14279 fi
14280 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14281 else
14282 cat conftest.err 1>&5
14283 fi
14284 $RM conftest*
14285
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14288$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14289 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14290 ;;
14291 esac
14292 fi
14293 ;;
14294esac
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14360$as_echo_n "checking dynamic linker characteristics... " >&6; }
14361
14362library_names_spec=
14363libname_spec='lib$name'
14364soname_spec=
14365shrext_cmds=".so"
14366postinstall_cmds=
14367postuninstall_cmds=
14368finish_cmds=
14369finish_eval=
14370shlibpath_var=
14371shlibpath_overrides_runpath=unknown
14372version_type=none
14373dynamic_linker="$host_os ld.so"
14374sys_lib_dlsearch_path_spec="/lib /usr/lib"
14375need_lib_prefix=unknown
14376hardcode_into_libs=no
14377
14378# when you set need_version to no, make sure it does not cause -set_version
14379# flags to be left without arguments
14380need_version=unknown
14381
14382case $host_os in
14383aix3*)
14384 version_type=linux
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14386 shlibpath_var=LIBPATH
14387
14388 # AIX 3 has no versioning support, so we append a major version to the name.
14389 soname_spec='${libname}${release}${shared_ext}$major'
14390 ;;
14391
14392aix[4-9]*)
14393 version_type=linux
14394 need_lib_prefix=no
14395 need_version=no
14396 hardcode_into_libs=yes
14397 if test "$host_cpu" = ia64; then
14398 # AIX 5 supports IA64
14399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 else
14402 # With GCC up to 2.95.x, collect2 would create an import file
14403 # for dependence libraries. The import file would start with
14404 # the line `#! .'. This would cause the generated library to
14405 # depend on `.', always an invalid library. This was fixed in
14406 # development snapshots of GCC prior to 3.0.
14407 case $host_os in
14408 aix4 | aix4.[01] | aix4.[01].*)
14409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14410 echo ' yes '
14411 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14412 :
14413 else
14414 can_build_shared=no
14415 fi
14416 ;;
14417 esac
14418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14419 # soname into executable. Probably we can add versioning support to
14420 # collect2, so additional links can be useful in future.
14421 if test "$aix_use_runtimelinking" = yes; then
14422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14423 # instead of lib<name>.a to let people know that these are not
14424 # typical AIX shared libraries.
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 else
14427 # We preserve .a as extension for shared libraries through AIX4.2
14428 # and later when we are not doing run time linking.
14429 library_names_spec='${libname}${release}.a $libname.a'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 fi
14432 shlibpath_var=LIBPATH
14433 fi
14434 ;;
14435
14436amigaos*)
14437 case $host_cpu in
14438 powerpc)
14439 # Since July 2007 AmigaOS4 officially supports .so libraries.
14440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 ;;
14443 m68k)
14444 library_names_spec='$libname.ixlibrary $libname.a'
14445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14446 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'
14447 ;;
14448 esac
14449 ;;
14450
14451beos*)
14452 library_names_spec='${libname}${shared_ext}'
14453 dynamic_linker="$host_os ld.so"
14454 shlibpath_var=LIBRARY_PATH
14455 ;;
14456
14457bsdi[45]*)
14458 version_type=linux
14459 need_version=no
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14466 # the default ld.so.conf also contains /usr/contrib/lib and
14467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14468 # libtool to hard-code these into programs
14469 ;;
14470
14471cygwin* | mingw* | pw32* | cegcc*)
14472 version_type=windows
14473 shrext_cmds=".dll"
14474 need_version=no
14475 need_lib_prefix=no
14476
14477 case $GCC,$host_os in
14478 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14479 library_names_spec='$libname.dll.a'
14480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14481 postinstall_cmds='base_file=`basename \${file}`~
14482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14483 dldir=$destdir/`dirname \$dlpath`~
14484 test -d \$dldir || mkdir -p \$dldir~
14485 $install_prog $dir/$dlname \$dldir/$dlname~
14486 chmod a+x \$dldir/$dlname~
14487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14489 fi'
14490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14491 dlpath=$dir/\$dldll~
14492 $RM \$dlpath'
14493 shlibpath_overrides_runpath=yes
14494
14495 case $host_os in
14496 cygwin*)
14497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14499
14500 ;;
14501 mingw* | cegcc*)
14502 # MinGW DLLs use traditional 'lib' prefix
14503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14504 ;;
14505 pw32*)
14506 # pw32 DLLs use 'pw' prefix rather than 'lib'
14507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14508 ;;
14509 esac
14510 ;;
14511
14512 *)
14513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14514 ;;
14515 esac
14516 dynamic_linker='Win32 ld.exe'
14517 # FIXME: first we should search . and the directory the executable is in
14518 shlibpath_var=PATH
14519 ;;
14520
14521darwin* | rhapsody*)
14522 dynamic_linker="$host_os dyld"
14523 version_type=darwin
14524 need_lib_prefix=no
14525 need_version=no
14526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14527 soname_spec='${libname}${release}${major}$shared_ext'
14528 shlibpath_overrides_runpath=yes
14529 shlibpath_var=DYLD_LIBRARY_PATH
14530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14531
14532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14533 ;;
14534
14535dgux*)
14536 version_type=linux
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 ;;
14543
14544freebsd* | dragonfly*)
14545 # DragonFly does not have aout. When/if they implement a new
14546 # versioning mechanism, adjust this.
14547 if test -x /usr/bin/objformat; then
14548 objformat=`/usr/bin/objformat`
14549 else
14550 case $host_os in
14551 freebsd[23].*) objformat=aout ;;
14552 *) objformat=elf ;;
14553 esac
14554 fi
14555 version_type=freebsd-$objformat
14556 case $version_type in
14557 freebsd-elf*)
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14559 need_version=no
14560 need_lib_prefix=no
14561 ;;
14562 freebsd-*)
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14564 need_version=yes
14565 ;;
14566 esac
14567 shlibpath_var=LD_LIBRARY_PATH
14568 case $host_os in
14569 freebsd2.*)
14570 shlibpath_overrides_runpath=yes
14571 ;;
14572 freebsd3.[01]* | freebsdelf3.[01]*)
14573 shlibpath_overrides_runpath=yes
14574 hardcode_into_libs=yes
14575 ;;
14576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14578 shlibpath_overrides_runpath=no
14579 hardcode_into_libs=yes
14580 ;;
14581 *) # from 4.6 on, and DragonFly
14582 shlibpath_overrides_runpath=yes
14583 hardcode_into_libs=yes
14584 ;;
14585 esac
14586 ;;
14587
14588haiku*)
14589 version_type=linux
14590 need_lib_prefix=no
14591 need_version=no
14592 dynamic_linker="$host_os runtime_loader"
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 shlibpath_var=LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
ead5103c 14597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5be7b669
L
14598 hardcode_into_libs=yes
14599 ;;
14600
14601hpux9* | hpux10* | hpux11*)
14602 # Give a soname corresponding to the major version so that dld.sl refuses to
14603 # link against other versions.
14604 version_type=sunos
14605 need_lib_prefix=no
14606 need_version=no
14607 case $host_cpu in
14608 ia64*)
14609 shrext_cmds='.so'
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.so"
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 if test "X$HPUX_IA64_MODE" = X32; then
14617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14618 else
14619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14620 fi
14621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14622 ;;
14623 hppa*64*)
14624 shrext_cmds='.sl'
14625 hardcode_into_libs=yes
14626 dynamic_linker="$host_os dld.sl"
14627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14633 ;;
14634 *)
14635 shrext_cmds='.sl'
14636 dynamic_linker="$host_os dld.sl"
14637 shlibpath_var=SHLIB_PATH
14638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 ;;
14642 esac
14643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14644 postinstall_cmds='chmod 555 $lib'
14645 # or fails outright, so override atomically:
14646 install_override_mode=555
14647 ;;
14648
14649interix[3-9]*)
14650 version_type=linux
14651 need_lib_prefix=no
14652 need_version=no
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 shlibpath_overrides_runpath=no
14658 hardcode_into_libs=yes
14659 ;;
14660
14661irix5* | irix6* | nonstopux*)
14662 case $host_os in
14663 nonstopux*) version_type=nonstopux ;;
14664 *)
14665 if test "$lt_cv_prog_gnu_ld" = yes; then
14666 version_type=linux
14667 else
14668 version_type=irix
14669 fi ;;
14670 esac
14671 need_lib_prefix=no
14672 need_version=no
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14675 case $host_os in
14676 irix5* | nonstopux*)
14677 libsuff= shlibsuff=
14678 ;;
14679 *)
14680 case $LD in # libtool.m4 will add one of these switches to LD
14681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14682 libsuff= shlibsuff= libmagic=32-bit;;
14683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14684 libsuff=32 shlibsuff=N32 libmagic=N32;;
14685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14687 *) libsuff= shlibsuff= libmagic=never-match;;
14688 esac
14689 ;;
14690 esac
14691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14692 shlibpath_overrides_runpath=no
14693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14695 hardcode_into_libs=yes
14696 ;;
14697
14698# No shared lib support for Linux oldld, aout, or coff.
14699linux*oldld* | linux*aout* | linux*coff*)
14700 dynamic_linker=no
14701 ;;
14702
14703# This must be Linux ELF.
14704
14705# uclinux* changes (here and below) have been submitted to the libtool
14706# project, but have not yet been accepted: they are GCC-local changes
14707# for the time being. (See
14708# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14709linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14710 version_type=linux
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=no
14718
14719 # Some binutils ld are patched to set DT_RUNPATH
14720 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722else
14723 lt_cv_shlibpath_overrides_runpath=no
14724 save_LDFLAGS=$LDFLAGS
14725 save_libdir=$libdir
14726 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14727 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729/* end confdefs.h. */
14730
14731int
14732main ()
14733{
14734
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739if ac_fn_cxx_try_link "$LINENO"; then :
14740 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14741 lt_cv_shlibpath_overrides_runpath=yes
14742fi
14743fi
14744rm -f core conftest.err conftest.$ac_objext \
14745 conftest$ac_exeext conftest.$ac_ext
14746 LDFLAGS=$save_LDFLAGS
14747 libdir=$save_libdir
14748
14749fi
14750
14751 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14752
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs=yes
14757
14758 # Append ld.so.conf contents to the search path
14759 if test -f /etc/ld.so.conf; then
14760 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' ' '`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14762 fi
14763
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14771 ;;
14772
14773netbsd*)
14774 version_type=sunos
14775 need_lib_prefix=no
14776 need_version=no
14777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14780 dynamic_linker='NetBSD (a.out) ld.so'
14781 else
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 dynamic_linker='NetBSD ld.elf_so'
14785 fi
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 hardcode_into_libs=yes
14789 ;;
14790
14791newsos6)
14792 version_type=linux
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
14796 ;;
14797
14798*nto* | *qnx*)
14799 version_type=qnx
14800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=no
14806 hardcode_into_libs=yes
14807 dynamic_linker='ldqnx.so'
14808 ;;
14809
14810openbsd*)
14811 version_type=sunos
14812 sys_lib_dlsearch_path_spec="/usr/lib"
14813 need_lib_prefix=no
14814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14815 case $host_os in
14816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14817 *) need_version=no ;;
14818 esac
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14823 case $host_os in
14824 openbsd2.[89] | openbsd2.[89].*)
14825 shlibpath_overrides_runpath=no
14826 ;;
14827 *)
14828 shlibpath_overrides_runpath=yes
14829 ;;
14830 esac
14831 else
14832 shlibpath_overrides_runpath=yes
14833 fi
14834 ;;
14835
14836os2*)
14837 libname_spec='$name'
14838 shrext_cmds=".dll"
14839 need_lib_prefix=no
14840 library_names_spec='$libname${shared_ext} $libname.a'
14841 dynamic_linker='OS/2 ld.exe'
14842 shlibpath_var=LIBPATH
14843 ;;
14844
14845osf3* | osf4* | osf5*)
14846 version_type=osf
14847 need_lib_prefix=no
14848 need_version=no
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14854 ;;
14855
14856rdos*)
14857 dynamic_linker=no
14858 ;;
14859
14860solaris*)
14861 version_type=linux
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14868 hardcode_into_libs=yes
14869 # ldd complains unless libraries are executable
14870 postinstall_cmds='chmod +x $lib'
14871 ;;
14872
14873sunos4*)
14874 version_type=sunos
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 if test "$with_gnu_ld" = yes; then
14880 need_lib_prefix=no
14881 fi
14882 need_version=yes
14883 ;;
14884
14885sysv4 | sysv4.3*)
14886 version_type=linux
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 case $host_vendor in
14891 sni)
14892 shlibpath_overrides_runpath=no
14893 need_lib_prefix=no
14894 runpath_var=LD_RUN_PATH
14895 ;;
14896 siemens)
14897 need_lib_prefix=no
14898 ;;
14899 motorola)
14900 need_lib_prefix=no
14901 need_version=no
14902 shlibpath_overrides_runpath=no
14903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14904 ;;
14905 esac
14906 ;;
14907
14908sysv4*MP*)
14909 if test -d /usr/nec ;then
14910 version_type=linux
14911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14912 soname_spec='$libname${shared_ext}.$major'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 fi
14915 ;;
14916
14917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14918 version_type=freebsd-elf
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 hardcode_into_libs=yes
14926 if test "$with_gnu_ld" = yes; then
14927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14928 else
14929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14930 case $host_os in
14931 sco3.2v5*)
14932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14933 ;;
14934 esac
14935 fi
14936 sys_lib_dlsearch_path_spec='/usr/lib'
14937 ;;
14938
14939tpf*)
14940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14948 ;;
14949
14950uts4*)
14951 version_type=linux
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 ;;
14956
0ecd0f1c
OH
14957# Shared libraries for VwWorks, >= 7 only at this stage
14958# and (fpic) still incompatible with "large" code models
14959# in a few configurations. Only for RTP mode in any case,
14960# and upon explicit request at configure time.
14961vxworks7*)
14962 dynamic_linker=no
14963 case ${with_multisubdir}-${enable_shared} in
14964 *large*)
14965 ;;
14966 *mrtp*-yes)
14967 version_type=linux
14968 need_lib_prefix=no
14969 need_version=no
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 dynamic_linker="$host_os module_loader"
14973 ;;
14974 esac
14975 ;;
5be7b669
L
14976*)
14977 dynamic_linker=no
14978 ;;
14979esac
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14981$as_echo "$dynamic_linker" >&6; }
14982test "$dynamic_linker" = no && can_build_shared=no
14983
14984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14985if test "$GCC" = yes; then
14986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14987fi
14988
14989if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14990 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14991fi
14992if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14993 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14994fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15034$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15035hardcode_action_CXX=
15036if test -n "$hardcode_libdir_flag_spec_CXX" ||
15037 test -n "$runpath_var_CXX" ||
15038 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15039
15040 # We can hardcode non-existent directories.
15041 if test "$hardcode_direct_CXX" != no &&
15042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15043 # have to relink, otherwise we might link with an installed library
15044 # when we should be linking with a yet-to-be-installed one
15045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15046 test "$hardcode_minus_L_CXX" != no; then
15047 # Linking always hardcodes the temporary library directory.
15048 hardcode_action_CXX=relink
15049 else
15050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15051 hardcode_action_CXX=immediate
15052 fi
15053else
15054 # We cannot hardcode anything, or else we can only hardcode existing
15055 # directories.
15056 hardcode_action_CXX=unsupported
15057fi
15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15059$as_echo "$hardcode_action_CXX" >&6; }
15060
15061if test "$hardcode_action_CXX" = relink ||
15062 test "$inherit_rpath_CXX" = yes; then
15063 # Fast installation is not supported
15064 enable_fast_install=no
15065elif test "$shlibpath_overrides_runpath" = yes ||
15066 test "$enable_shared" = no; then
15067 # Fast installation is not necessary
15068 enable_fast_install=needless
15069fi
15070
15071
15072
15073
15074
15075
15076
15077 fi # test -n "$compiler"
15078
15079 CC=$lt_save_CC
15080 LDCXX=$LD
15081 LD=$lt_save_LD
15082 GCC=$lt_save_GCC
15083 with_gnu_ld=$lt_save_with_gnu_ld
15084 lt_cv_path_LDCXX=$lt_cv_path_LD
15085 lt_cv_path_LD=$lt_save_path_LD
15086 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15087 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15088fi # test "$_lt_caught_CXX_error" != yes
15089
15090ac_ext=c
15091ac_cpp='$CPP $CPPFLAGS'
15092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094ac_compiler_gnu=$ac_cv_c_compiler_gnu
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108 ac_config_commands="$ac_config_commands libtool"
15109
15110
15111
15112
15113# Only expand once:
15114
15115
6a6d3817
IS
15116 if test x$enable_darwin_at_rpath = xyes; then
15117 ENABLE_DARWIN_AT_RPATH_TRUE=
15118 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15119else
15120 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15121 ENABLE_DARWIN_AT_RPATH_FALSE=
15122fi
15123
5be7b669
L
15124
15125if test -n "$ac_tool_prefix"; then
15126 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
15127set dummy ${ac_tool_prefix}readelf; ac_word=$2
15128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15129$as_echo_n "checking for $ac_word... " >&6; }
15130if ${ac_cv_prog_READELF+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 if test -n "$READELF"; then
15134 ac_cv_prog_READELF="$READELF" # Let the user override the test.
15135else
15136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137for as_dir in $PATH
15138do
15139 IFS=$as_save_IFS
15140 test -z "$as_dir" && as_dir=.
15141 for ac_exec_ext in '' $ac_executable_extensions; do
15142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15143 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
15144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 break 2
15146 fi
15147done
15148 done
15149IFS=$as_save_IFS
15150
15151fi
15152fi
15153READELF=$ac_cv_prog_READELF
15154if test -n "$READELF"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
15156$as_echo "$READELF" >&6; }
15157else
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15159$as_echo "no" >&6; }
15160fi
15161
15162
15163fi
15164if test -z "$ac_cv_prog_READELF"; then
15165 ac_ct_READELF=$READELF
15166 # Extract the first word of "readelf", so it can be a program name with args.
15167set dummy readelf; ac_word=$2
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15169$as_echo_n "checking for $ac_word... " >&6; }
15170if ${ac_cv_prog_ac_ct_READELF+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172else
15173 if test -n "$ac_ct_READELF"; then
15174 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
15175else
15176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177for as_dir in $PATH
15178do
15179 IFS=$as_save_IFS
15180 test -z "$as_dir" && as_dir=.
15181 for ac_exec_ext in '' $ac_executable_extensions; do
15182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15183 ac_cv_prog_ac_ct_READELF="readelf"
15184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15185 break 2
15186 fi
15187done
15188 done
15189IFS=$as_save_IFS
15190
15191fi
15192fi
15193ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
15194if test -n "$ac_ct_READELF"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15196$as_echo "$ac_ct_READELF" >&6; }
15197else
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15199$as_echo "no" >&6; }
15200fi
15201
15202 if test "x$ac_ct_READELF" = x; then
15203 READELF=""
15204 else
15205 case $cross_compiling:$ac_tool_warned in
15206yes:)
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15209ac_tool_warned=yes ;;
15210esac
15211 READELF=$ac_ct_READELF
15212 fi
15213else
15214 READELF="$ac_cv_prog_READELF"
15215fi
15216
15217
15218# Test for 64-bit build.
15219# The cast to long int works around a bug in the HP C Compiler
15220# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15221# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15222# This bug is HP SR number 8606223364.
15223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15224$as_echo_n "checking size of size_t... " >&6; }
15225if ${ac_cv_sizeof_size_t+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227else
15228 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15229
15230else
15231 if test "$ac_cv_type_size_t" = yes; then
15232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15234as_fn_error 77 "cannot compute sizeof (size_t)
15235See \`config.log' for more details" "$LINENO" 5; }
15236 else
15237 ac_cv_sizeof_size_t=0
15238 fi
15239fi
15240
15241fi
15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15243$as_echo "$ac_cv_sizeof_size_t" >&6; }
15244
15245
15246
15247cat >>confdefs.h <<_ACEOF
15248#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15249_ACEOF
15250
15251
15252
967d4171
TS
15253
15254
5be7b669 15255cat > local.exp <<EOF
967d4171 15256set SYSROOT_CFLAGS_FOR_TARGET "$SYSROOT_CFLAGS_FOR_TARGET"
5be7b669
L
15257set compiler_vendor "$ax_cv_c_compiler_vendor"
15258EOF
15259
15260
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15262$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15263 # Check whether --enable-maintainer-mode was given.
15264if test "${enable_maintainer_mode+set}" = set; then :
15265 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15266else
15267 USE_MAINTAINER_MODE=no
15268fi
15269
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15271$as_echo "$USE_MAINTAINER_MODE" >&6; }
15272 if test $USE_MAINTAINER_MODE = yes; then
15273 MAINTAINER_MODE_TRUE=
15274 MAINTAINER_MODE_FALSE='#'
15275else
15276 MAINTAINER_MODE_TRUE='#'
15277 MAINTAINER_MODE_FALSE=
15278fi
15279
15280 MAINT=$MAINTAINER_MODE_TRUE
15281
15282
15283
15284for ac_header in sys/memfd.h
15285do :
15286 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15287if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15288 cat >>confdefs.h <<_ACEOF
15289#define HAVE_SYS_MEMFD_H 1
15290_ACEOF
15291
15292fi
15293
15294done
15295
15296for ac_func in memfd_create
15297do :
15298 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15299if test "x$ac_cv_func_memfd_create" = xyes; then :
15300 cat >>confdefs.h <<_ACEOF
15301#define HAVE_MEMFD_CREATE 1
15302_ACEOF
15303
15304fi
15305done
15306
15307
15308for ac_header in sys/mman.h
15309do :
15310 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15311if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15312 cat >>confdefs.h <<_ACEOF
15313#define HAVE_SYS_MMAN_H 1
15314_ACEOF
15315
15316fi
15317
15318done
15319
15320for ac_func in mmap mkostemp mkstemp
15321do :
15322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15323ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15324if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15325 cat >>confdefs.h <<_ACEOF
15326#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15327_ACEOF
15328
15329fi
15330done
15331
15332
15333ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15334if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15335 libffi_header_sys_mman_h=yes
15336else
15337 libffi_header_sys_mman_h=no
15338fi
15339
15340
15341ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15342if test "x$ac_cv_func_mmap" = xyes; then :
15343 libffi_func_mmap=yes
15344else
15345 libffi_func_mmap=no
15346fi
15347
15348if test "$libffi_header_sys_mman_h" != yes \
15349 || test "$libffi_func_mmap" != yes; then
15350 ac_cv_func_mmap_file=no
15351 ac_cv_func_mmap_dev_zero=no
15352 ac_cv_func_mmap_anon=no
15353else
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15355$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15356if ${ac_cv_func_mmap_file+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358else
15359 # Add a system to this blacklist if
15360 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15361 # memory area containing the same data that you'd get if you applied
15362 # read() to the same fd. The only system known to have a problem here
15363 # is VMS, where text files have record structure.
15364 case "$host_os" in
15365 vms* | ultrix*)
15366 ac_cv_func_mmap_file=no ;;
15367 *)
15368 ac_cv_func_mmap_file=yes;;
15369 esac
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15372$as_echo "$ac_cv_func_mmap_file" >&6; }
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15374$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15375if ${ac_cv_func_mmap_dev_zero+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377else
15378 # Add a system to this blacklist if it has mmap() but /dev/zero
15379 # does not exist, or if mmapping /dev/zero does not give anonymous
15380 # zeroed pages with both the following properties:
15381 # 1. If you map N consecutive pages in with one call, and then
15382 # unmap any subset of those pages, the pages that were not
15383 # explicitly unmapped remain accessible.
15384 # 2. If you map two adjacent blocks of memory and then unmap them
15385 # both at once, they must both go away.
15386 # Systems known to be in this category are Windows (all variants),
15387 # VMS, and Darwin.
15388 case "$host_os" in
15389 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15390 ac_cv_func_mmap_dev_zero=no ;;
15391 *)
15392 ac_cv_func_mmap_dev_zero=yes;;
15393 esac
15394fi
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15396$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15397
15398 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15400$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15401if ${ac_cv_decl_map_anon+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403else
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405/* end confdefs.h. */
15406#include <sys/types.h>
15407#include <sys/mman.h>
15408#include <unistd.h>
15409
15410#ifndef MAP_ANONYMOUS
15411#define MAP_ANONYMOUS MAP_ANON
15412#endif
15413
15414int
15415main ()
15416{
15417int n = MAP_ANONYMOUS;
15418 ;
15419 return 0;
15420}
15421_ACEOF
15422if ac_fn_c_try_compile "$LINENO"; then :
15423 ac_cv_decl_map_anon=yes
15424else
15425 ac_cv_decl_map_anon=no
15426fi
15427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15430$as_echo "$ac_cv_decl_map_anon" >&6; }
15431
15432 if test $ac_cv_decl_map_anon = no; then
15433 ac_cv_func_mmap_anon=no
15434 else
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15436$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15437if ${ac_cv_func_mmap_anon+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439else
15440 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15441 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15442 # doesn't give anonymous zeroed pages with the same properties listed
15443 # above for use of /dev/zero.
15444 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15445 case "$host_os" in
15446 vms* | cygwin* | pe | mingw* | sco* | udk* )
15447 ac_cv_func_mmap_anon=no ;;
15448 *)
15449 ac_cv_func_mmap_anon=yes;;
15450 esac
15451fi
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15453$as_echo "$ac_cv_func_mmap_anon" >&6; }
15454 fi
15455fi
15456
15457if test $ac_cv_func_mmap_file = yes; then
15458
15459$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15460
15461fi
15462if test $ac_cv_func_mmap_dev_zero = yes; then
15463
15464$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15465
15466fi
15467if test $ac_cv_func_mmap_anon = yes; then
15468
15469$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15470
15471fi
15472
15473
15474 if test -d $srcdir/testsuite; then
15475 TESTSUBDIR_TRUE=
15476 TESTSUBDIR_FALSE='#'
15477else
15478 TESTSUBDIR_TRUE='#'
15479 TESTSUBDIR_FALSE=
15480fi
15481
15482
15483TARGETDIR="unknown"
15484HAVE_LONG_DOUBLE_VARIANT=0
15485
15486. ${srcdir}/configure.host
15487
15488if test -n "${UNSUPPORTED}"; then
15489 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15490fi
15491
15492
15493
15494
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15496$as_echo_n "checking for ANSI C header files... " >&6; }
15497if ${ac_cv_header_stdc+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501/* end confdefs.h. */
15502#include <stdlib.h>
15503#include <stdarg.h>
15504#include <string.h>
15505#include <float.h>
15506
15507int
15508main ()
15509{
15510
15511 ;
15512 return 0;
15513}
15514_ACEOF
15515if ac_fn_c_try_compile "$LINENO"; then :
15516 ac_cv_header_stdc=yes
15517else
15518 ac_cv_header_stdc=no
15519fi
15520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521
15522if test $ac_cv_header_stdc = yes; then
15523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525/* end confdefs.h. */
15526#include <string.h>
15527
15528_ACEOF
15529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15530 $EGREP "memchr" >/dev/null 2>&1; then :
15531
15532else
15533 ac_cv_header_stdc=no
15534fi
15535rm -f conftest*
15536
15537fi
15538
15539if test $ac_cv_header_stdc = yes; then
15540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h. */
15543#include <stdlib.h>
15544
15545_ACEOF
15546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547 $EGREP "free" >/dev/null 2>&1; then :
15548
15549else
15550 ac_cv_header_stdc=no
15551fi
15552rm -f conftest*
15553
15554fi
15555
15556if test $ac_cv_header_stdc = yes; then
15557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15558 if test "$cross_compiling" = yes; then :
15559 :
15560else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h. */
15563#include <ctype.h>
15564#include <stdlib.h>
15565#if ((' ' & 0x0FF) == 0x020)
15566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15568#else
15569# define ISLOWER(c) \
15570 (('a' <= (c) && (c) <= 'i') \
15571 || ('j' <= (c) && (c) <= 'r') \
15572 || ('s' <= (c) && (c) <= 'z'))
15573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15574#endif
15575
15576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15577int
15578main ()
15579{
15580 int i;
15581 for (i = 0; i < 256; i++)
15582 if (XOR (islower (i), ISLOWER (i))
15583 || toupper (i) != TOUPPER (i))
15584 return 2;
15585 return 0;
15586}
15587_ACEOF
15588if ac_fn_c_try_run "$LINENO"; then :
15589
15590else
15591 ac_cv_header_stdc=no
15592fi
15593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15594 conftest.$ac_objext conftest.beam conftest.$ac_ext
15595fi
15596
15597fi
15598fi
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15600$as_echo "$ac_cv_header_stdc" >&6; }
15601if test $ac_cv_header_stdc = yes; then
15602
15603$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15604
15605fi
15606
15607for ac_func in memcpy
15608do :
15609 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15610if test "x$ac_cv_func_memcpy" = xyes; then :
15611 cat >>confdefs.h <<_ACEOF
15612#define HAVE_MEMCPY 1
15613_ACEOF
15614
15615fi
15616done
15617
15618ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15619if test "x$ac_cv_type_size_t" = xyes; then :
15620
15621else
15622
15623cat >>confdefs.h <<_ACEOF
15624#define size_t unsigned int
15625_ACEOF
15626
15627fi
15628
15629# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15630# for constant arguments. Useless!
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15632$as_echo_n "checking for working alloca.h... " >&6; }
15633if ${ac_cv_working_alloca_h+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h. */
15638#include <alloca.h>
15639int
15640main ()
15641{
15642char *p = (char *) alloca (2 * sizeof (int));
15643 if (p) return 0;
15644 ;
15645 return 0;
15646}
15647_ACEOF
15648if ac_fn_c_try_link "$LINENO"; then :
15649 ac_cv_working_alloca_h=yes
15650else
15651 ac_cv_working_alloca_h=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655fi
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15657$as_echo "$ac_cv_working_alloca_h" >&6; }
15658if test $ac_cv_working_alloca_h = yes; then
15659
15660$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15661
15662fi
15663
15664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15665$as_echo_n "checking for alloca... " >&6; }
15666if ${ac_cv_func_alloca_works+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668else
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h. */
15671#ifdef __GNUC__
15672# define alloca __builtin_alloca
15673#else
15674# ifdef _MSC_VER
15675# include <malloc.h>
15676# define alloca _alloca
15677# else
15678# ifdef HAVE_ALLOCA_H
15679# include <alloca.h>
15680# else
15681# ifdef _AIX
15682 #pragma alloca
15683# else
15684# ifndef alloca /* predefined by HP cc +Olibcalls */
15685void *alloca (size_t);
15686# endif
15687# endif
15688# endif
15689# endif
15690#endif
15691
15692int
15693main ()
15694{
15695char *p = (char *) alloca (1);
15696 if (p) return 0;
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701if ac_fn_c_try_link "$LINENO"; then :
15702 ac_cv_func_alloca_works=yes
15703else
15704 ac_cv_func_alloca_works=no
15705fi
15706rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708fi
15709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15710$as_echo "$ac_cv_func_alloca_works" >&6; }
15711
15712if test $ac_cv_func_alloca_works = yes; then
15713
15714$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15715
15716else
15717 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15718# that cause trouble. Some versions do not even contain alloca or
15719# contain a buggy version. If you still want to use their alloca,
15720# use ar to extract alloca.o from them instead of compiling alloca.c.
15721
15722ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15723
15724$as_echo "#define C_ALLOCA 1" >>confdefs.h
15725
15726
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15728$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15729if ${ac_cv_os_cray+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733/* end confdefs.h. */
15734#if defined CRAY && ! defined CRAY2
15735webecray
15736#else
15737wenotbecray
15738#endif
15739
15740_ACEOF
15741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15742 $EGREP "webecray" >/dev/null 2>&1; then :
15743 ac_cv_os_cray=yes
15744else
15745 ac_cv_os_cray=no
15746fi
15747rm -f conftest*
15748
15749fi
15750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15751$as_echo "$ac_cv_os_cray" >&6; }
15752if test $ac_cv_os_cray = yes; then
15753 for ac_func in _getb67 GETB67 getb67; do
15754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15756if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15757
15758cat >>confdefs.h <<_ACEOF
15759#define CRAY_STACKSEG_END $ac_func
15760_ACEOF
15761
15762 break
15763fi
15764
15765 done
15766fi
15767
15768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15769$as_echo_n "checking stack direction for C alloca... " >&6; }
15770if ${ac_cv_c_stack_direction+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772else
15773 if test "$cross_compiling" = yes; then :
15774 ac_cv_c_stack_direction=0
15775else
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777/* end confdefs.h. */
15778$ac_includes_default
15779int
15780find_stack_direction (int *addr, int depth)
15781{
15782 int dir, dummy = 0;
15783 if (! addr)
15784 addr = &dummy;
15785 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15786 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15787 return dir + dummy;
15788}
15789
15790int
15791main (int argc, char **argv)
15792{
15793 return find_stack_direction (0, argc + !argv + 20) < 0;
15794}
15795_ACEOF
15796if ac_fn_c_try_run "$LINENO"; then :
15797 ac_cv_c_stack_direction=1
15798else
15799 ac_cv_c_stack_direction=-1
15800fi
15801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15802 conftest.$ac_objext conftest.beam conftest.$ac_ext
15803fi
15804
15805fi
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15807$as_echo "$ac_cv_c_stack_direction" >&6; }
15808cat >>confdefs.h <<_ACEOF
15809#define STACK_DIRECTION $ac_cv_c_stack_direction
15810_ACEOF
15811
15812
15813fi
15814
15815
15816# The cast to long int works around a bug in the HP C Compiler
15817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15819# This bug is HP SR number 8606223364.
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15821$as_echo_n "checking size of double... " >&6; }
15822if ${ac_cv_sizeof_double+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824else
15825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15826
15827else
15828 if test "$ac_cv_type_double" = yes; then
15829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15831as_fn_error 77 "cannot compute sizeof (double)
15832See \`config.log' for more details" "$LINENO" 5; }
15833 else
15834 ac_cv_sizeof_double=0
15835 fi
15836fi
15837
15838fi
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15840$as_echo "$ac_cv_sizeof_double" >&6; }
15841
15842
15843
15844cat >>confdefs.h <<_ACEOF
15845#define SIZEOF_DOUBLE $ac_cv_sizeof_double
15846_ACEOF
15847
15848
15849# The cast to long int works around a bug in the HP C Compiler
15850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15852# This bug is HP SR number 8606223364.
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15854$as_echo_n "checking size of long double... " >&6; }
15855if ${ac_cv_sizeof_long_double+:} false; then :
15856 $as_echo_n "(cached) " >&6
15857else
15858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15859
15860else
15861 if test "$ac_cv_type_long_double" = yes; then
15862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15864as_fn_error 77 "cannot compute sizeof (long double)
15865See \`config.log' for more details" "$LINENO" 5; }
15866 else
15867 ac_cv_sizeof_long_double=0
15868 fi
15869fi
15870
15871fi
15872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15873$as_echo "$ac_cv_sizeof_long_double" >&6; }
15874
15875
15876
15877cat >>confdefs.h <<_ACEOF
15878#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15879_ACEOF
15880
15881
15882
15883# Also AC_SUBST this variable for ffi.h.
15884if test -z "$HAVE_LONG_DOUBLE"; then
15885 HAVE_LONG_DOUBLE=0
15886 if test $ac_cv_sizeof_long_double != 0; then
15887 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15888
15889$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15890
15891 HAVE_LONG_DOUBLE=1
15892 else
15893 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15894 HAVE_LONG_DOUBLE=1
15895
15896$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15897
15898 fi
15899 fi
15900 fi
15901fi
15902
15903
15904
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15906$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15907if ${ac_cv_c_bigendian+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909else
15910 ac_cv_c_bigendian=unknown
15911 # See if we're dealing with a universal compiler.
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h. */
15914#ifndef __APPLE_CC__
15915 not a universal capable compiler
15916 #endif
15917 typedef int dummy;
15918
15919_ACEOF
15920if ac_fn_c_try_compile "$LINENO"; then :
15921
15922 # Check for potential -arch flags. It is not universal unless
15923 # there are at least two -arch flags with different values.
15924 ac_arch=
15925 ac_prev=
15926 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15927 if test -n "$ac_prev"; then
15928 case $ac_word in
15929 i?86 | x86_64 | ppc | ppc64)
15930 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15931 ac_arch=$ac_word
15932 else
15933 ac_cv_c_bigendian=universal
15934 break
15935 fi
15936 ;;
15937 esac
15938 ac_prev=
15939 elif test "x$ac_word" = "x-arch"; then
15940 ac_prev=arch
15941 fi
15942 done
15943fi
15944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 if test $ac_cv_c_bigendian = unknown; then
15946 # See if sys/param.h defines the BYTE_ORDER macro.
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948/* end confdefs.h. */
15949#include <sys/types.h>
15950 #include <sys/param.h>
15951
15952int
15953main ()
15954{
15955#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15956 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15957 && LITTLE_ENDIAN)
15958 bogus endian macros
15959 #endif
15960
15961 ;
15962 return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_compile "$LINENO"; then :
15966 # It does; now see whether it defined to BIG_ENDIAN or not.
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h. */
15969#include <sys/types.h>
15970 #include <sys/param.h>
15971
15972int
15973main ()
15974{
15975#if BYTE_ORDER != BIG_ENDIAN
15976 not big endian
15977 #endif
15978
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983if ac_fn_c_try_compile "$LINENO"; then :
15984 ac_cv_c_bigendian=yes
15985else
15986 ac_cv_c_bigendian=no
15987fi
15988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 fi
15992 if test $ac_cv_c_bigendian = unknown; then
15993 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995/* end confdefs.h. */
15996#include <limits.h>
15997
15998int
15999main ()
16000{
16001#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16002 bogus endian macros
16003 #endif
16004
16005 ;
16006 return 0;
16007}
16008_ACEOF
16009if ac_fn_c_try_compile "$LINENO"; then :
16010 # It does; now see whether it defined to _BIG_ENDIAN or not.
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h. */
16013#include <limits.h>
16014
16015int
16016main ()
16017{
16018#ifndef _BIG_ENDIAN
16019 not big endian
16020 #endif
16021
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_compile "$LINENO"; then :
16027 ac_cv_c_bigendian=yes
16028else
16029 ac_cv_c_bigendian=no
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032fi
16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 if test $ac_cv_c_bigendian = unknown; then
16036 # Compile a test program.
16037 if test "$cross_compiling" = yes; then :
16038 # Try to guess by grepping values from an object file.
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041short int ascii_mm[] =
16042 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16043 short int ascii_ii[] =
16044 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16045 int use_ascii (int i) {
16046 return ascii_mm[i] + ascii_ii[i];
16047 }
16048 short int ebcdic_ii[] =
16049 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16050 short int ebcdic_mm[] =
16051 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16052 int use_ebcdic (int i) {
16053 return ebcdic_mm[i] + ebcdic_ii[i];
16054 }
16055 extern int foo;
16056
16057int
16058main ()
16059{
16060return use_ascii (foo) == use_ebcdic (foo);
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065if ac_fn_c_try_compile "$LINENO"; then :
16066 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16067 ac_cv_c_bigendian=yes
16068 fi
16069 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16070 if test "$ac_cv_c_bigendian" = unknown; then
16071 ac_cv_c_bigendian=no
16072 else
16073 # finding both strings is unlikely to happen, but who knows?
16074 ac_cv_c_bigendian=unknown
16075 fi
16076 fi
16077fi
16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086
16087 /* Are we little or big endian? From Harbison&Steele. */
16088 union
16089 {
16090 long int l;
16091 char c[sizeof (long int)];
16092 } u;
16093 u.l = 1;
16094 return u.c[sizeof (long int) - 1] == 1;
16095
16096 ;
16097 return 0;
16098}
16099_ACEOF
16100if ac_fn_c_try_run "$LINENO"; then :
16101 ac_cv_c_bigendian=no
16102else
16103 ac_cv_c_bigendian=yes
16104fi
16105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16106 conftest.$ac_objext conftest.beam conftest.$ac_ext
16107fi
16108
16109 fi
16110fi
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16112$as_echo "$ac_cv_c_bigendian" >&6; }
16113 case $ac_cv_c_bigendian in #(
16114 yes)
16115 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16116;; #(
16117 no)
16118 ;; #(
16119 universal)
16120
16121$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16122
16123 ;; #(
16124 *)
16125 as_fn_error $? "unknown endianness
16126 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16127 esac
16128
16129
16130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16131$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16132if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134else
16135
16136 gcc_cv_as_cfi_pseudo_op=unknown
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138/* end confdefs.h. */
16139asm (".cfi_startproc\n\t.cfi_endproc");
16140int
16141main ()
16142{
16143
16144 ;
16145 return 0;
16146}
16147_ACEOF
16148if ac_fn_c_try_compile "$LINENO"; then :
16149 gcc_cv_as_cfi_pseudo_op=yes
16150else
16151 gcc_cv_as_cfi_pseudo_op=no
16152fi
16153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154
16155fi
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16157$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16158 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16159
16160$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16161
16162 fi
16163
16164
16165case "$TARGET" in
16166 SPARC)
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
16168$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
16169if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171else
16172
16173 save_CFLAGS="$CFLAGS"
16174 save_LDFLAGS="$LDFLAGS"
16175 CFLAGS="$CFLAGS -fpic"
16176 LDFLAGS="$LDFLAGS -shared"
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h. */
16179asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
16180int
16181main ()
16182{
16183
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188if ac_fn_c_try_link "$LINENO"; then :
16189 libffi_cv_as_sparc_ua_pcrel=yes
16190else
16191 libffi_cv_as_sparc_ua_pcrel=no
16192fi
16193rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 CFLAGS="$save_CFLAGS"
16196 LDFLAGS="$save_LDFLAGS"
16197fi
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
16199$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
16200 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
16201
16202$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
16203
16204 fi
16205
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
16207$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
16208if ${libffi_cv_as_register_pseudo_op+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210else
16211
16212 libffi_cv_as_register_pseudo_op=unknown
16213 # Check if we have .register
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h. */
16216
16217int
16218main ()
16219{
16220asm (".register %g2, #scratch");
16221 ;
16222 return 0;
16223}
16224_ACEOF
16225if ac_fn_c_try_compile "$LINENO"; then :
16226 libffi_cv_as_register_pseudo_op=yes
16227else
16228 libffi_cv_as_register_pseudo_op=no
16229fi
16230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231
16232fi
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
16234$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
16235 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
16236
16237$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
16238
16239 fi
16240 ;;
16241
16242 X86*)
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16244$as_echo_n "checking assembler supports pc related relocs... " >&6; }
16245if ${libffi_cv_as_x86_pcrel+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247else
16248
16249 libffi_cv_as_x86_pcrel=no
16250 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16251 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
16252 libffi_cv_as_x86_pcrel=yes
16253 fi
16254
16255fi
16256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
16257$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
16258 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
16259
16260$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16261
16262 fi
16263 ;;
16264
16265 S390)
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
16267$as_echo_n "checking compiler uses zarch features... " >&6; }
16268if ${libffi_cv_as_s390_zarch+:} false; then :
16269 $as_echo_n "(cached) " >&6
16270else
16271
16272 libffi_cv_as_s390_zarch=no
16273 echo 'void foo(void) { bar(); bar(); }' > conftest.c
16274 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
16275 if grep -q brasl conftest.s; then
16276 libffi_cv_as_s390_zarch=yes
16277 fi
16278 fi
16279
16280fi
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
16282$as_echo "$libffi_cv_as_s390_zarch" >&6; }
16283 if test "x$libffi_cv_as_s390_zarch" = xyes; then
16284
16285$as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16286
16287 fi
16288 ;;
16289esac
16290
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16292$as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16293if ${libffi_cv_as_ptrauth+:} false; then :
16294 $as_echo_n "(cached) " >&6
16295else
16296
16297 libffi_cv_as_ptrauth=unknown
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h. */
16300
16301int
16302main ()
16303{
16304
16305#ifdef __clang__
16306# if __has_feature(ptrauth_calls)
16307# define HAVE_PTRAUTH 1
16308# endif
16309#endif
16310
16311#ifndef HAVE_PTRAUTH
16312# error Pointer authentication not supported
16313#endif
16314
16315 ;
16316 return 0;
16317}
16318_ACEOF
16319if ac_fn_c_try_compile "$LINENO"; then :
16320 libffi_cv_as_ptrauth=yes
16321else
16322 libffi_cv_as_ptrauth=no
16323fi
16324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325
16326fi
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16328$as_echo "$libffi_cv_as_ptrauth" >&6; }
16329if test "x$libffi_cv_as_ptrauth" = xyes; then
16330
16331$as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16332
16333fi
16334
16335# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16336# Check whether --enable-pax_emutramp was given.
16337if test "${enable_pax_emutramp+set}" = set; then :
16338 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16339
16340$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16341
16342 fi
16343fi
16344
16345
16346FFI_EXEC_TRAMPOLINE_TABLE=0
16347case "$target" in
16348 *arm*-apple-* | aarch64-apple-*)
16349 FFI_EXEC_TRAMPOLINE_TABLE=1
16350
16351$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16352
16353 ;;
16354 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16355
16356$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16357
16358 ;;
16359esac
16360 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16361 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16362 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16363else
16364 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16365 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16366fi
16367
16368
16369
16370if test x$TARGET = xX86_64; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16372$as_echo_n "checking toolchain supports unwind section type... " >&6; }
16373if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375else
16376
16377 cat > conftest1.s << EOF
16378.text
16379.globl foo
16380foo:
16381jmp bar
16382.section .eh_frame,"a",@unwind
16383bar:
16384EOF
16385
16386 cat > conftest2.c << EOF
16387extern void foo();
16388int main(){foo();}
16389EOF
16390
16391 libffi_cv_as_x86_64_unwind_section_type=no
16392 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16393 # since the compiler can support it and not the linker (ie old binutils)
16394 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16395 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16396 libffi_cv_as_x86_64_unwind_section_type=yes
16397 fi
16398
16399fi
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16401$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16402 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16403
16404$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16405
16406 fi
16407fi
16408
16409if test "x$GCC" = "xyes"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16411$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16412if ${libffi_cv_ro_eh_frame+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414else
16415
16416 libffi_cv_ro_eh_frame=yes
16417 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16418 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16419 if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16420 libffi_cv_ro_eh_frame=no
16421 fi
16422 fi
16423 rm -f conftest.*
16424
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16427$as_echo "$libffi_cv_ro_eh_frame" >&6; }
16428 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16429
16430$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16431
16432
16433$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16434
16435 else
16436
16437$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16438
16439 fi
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16442$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16443if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445else
16446
16447 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16448 libffi_cv_hidden_visibility_attribute=no
16449 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16454 test $ac_status = 0; }; }; then
16455 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16456 libffi_cv_hidden_visibility_attribute=yes
16457 fi
16458 fi
16459 rm -f conftest.*
16460
16461fi
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16463$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16464 if test $libffi_cv_hidden_visibility_attribute = yes; then
16465
16466$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16467
16468 fi
16469fi
16470
16471# See if makeinfo has been installed and is modern enough
16472# that we can use it.
16473
16474 # Extract the first word of "makeinfo", so it can be a program name with args.
16475set dummy makeinfo; ac_word=$2
16476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16477$as_echo_n "checking for $ac_word... " >&6; }
16478if ${ac_cv_prog_MAKEINFO+:} false; then :
16479 $as_echo_n "(cached) " >&6
16480else
16481 if test -n "$MAKEINFO"; then
16482 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16483else
16484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16485for as_dir in $PATH
16486do
16487 IFS=$as_save_IFS
16488 test -z "$as_dir" && as_dir=.
16489 for ac_exec_ext in '' $ac_executable_extensions; do
16490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16491 ac_cv_prog_MAKEINFO="makeinfo"
16492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16493 break 2
16494 fi
16495done
16496 done
16497IFS=$as_save_IFS
16498
16499fi
16500fi
16501MAKEINFO=$ac_cv_prog_MAKEINFO
16502if test -n "$MAKEINFO"; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16504$as_echo "$MAKEINFO" >&6; }
16505else
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507$as_echo "no" >&6; }
16508fi
16509
16510
16511 if test -n "$MAKEINFO"; then
16512 # Found it, now check the version.
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16514$as_echo_n "checking for modern makeinfo... " >&6; }
16515if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517else
16518 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16519 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16520
16521 case $ac_prog_version in
16522 '') gcc_cv_prog_makeinfo_modern=no;;
16523 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
16524 *) gcc_cv_prog_makeinfo_modern=no;;
16525 esac
16526
16527fi
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16529$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16530 else
16531 gcc_cv_prog_makeinfo_modern=no
16532 fi
16533 if test $gcc_cv_prog_makeinfo_modern = no; then
16534 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16535 fi
16536
16537 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16538 BUILD_DOCS_TRUE=
16539 BUILD_DOCS_FALSE='#'
16540else
16541 BUILD_DOCS_TRUE='#'
16542 BUILD_DOCS_FALSE=
16543fi
16544
16545
16546
16547
16548
16549
16550
16551
16552TARGET_OBJ=
16553for i in $SOURCES; do
16554 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16555done
16556
16557
16558
16559
16560
16561# Check whether --enable-debug was given.
16562if test "${enable_debug+set}" = set; then :
16563 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16564
16565$as_echo "#define FFI_DEBUG 1" >>confdefs.h
16566
16567 fi
16568fi
16569
16570 if test "$enable_debug" = "yes"; then
16571 FFI_DEBUG_TRUE=
16572 FFI_DEBUG_FALSE='#'
16573else
16574 FFI_DEBUG_TRUE='#'
16575 FFI_DEBUG_FALSE=
16576fi
16577
16578
16579# Check whether --enable-structs was given.
16580if test "${enable_structs+set}" = set; then :
16581 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16582
16583$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16584
16585 fi
16586fi
16587
16588 if test "$enable_debug" = "yes"; then
16589 FFI_DEBUG_TRUE=
16590 FFI_DEBUG_FALSE='#'
16591else
16592 FFI_DEBUG_TRUE='#'
16593 FFI_DEBUG_FALSE=
16594fi
16595
16596
16597# Check whether --enable-raw-api was given.
16598if test "${enable_raw_api+set}" = set; then :
16599 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16600
16601$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16602
16603 fi
16604fi
16605
16606
16607# Check whether --enable-exec-static-tramp was given.
16608if test "${enable_exec_static_tramp+set}" = set; then :
16609 enableval=$enable_exec_static_tramp;
16610fi
16611
16612
16613if test "$enable_exec_static_tramp" = yes; then
16614case "$target" in
16615 *-cygwin*)
16616 ;;
16617 *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16618
16619$as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16620
16621 ;;
16622esac
16623fi
16624
16625# Check whether --enable-purify-safety was given.
16626if test "${enable_purify_safety+set}" = set; then :
16627 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16628
16629$as_echo "#define USING_PURIFY 1" >>confdefs.h
16630
16631 fi
16632fi
16633
16634
16635
16636# Check whether --with-toolexeclibdir was given.
16637if test "${with_toolexeclibdir+set}" = set; then :
16638 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16639 /)
16640 ;;
16641 */)
16642 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16643 ;;
16644esac
16645else
16646 with_toolexeclibdir=no
16647fi
16648
16649
16650
16651if test -n "$with_cross_host" &&
16652 test x"$with_cross_host" != x"no"; then
16653 toolexecdir='$(exec_prefix)/$(target_alias)'
16654 case ${with_toolexeclibdir} in
16655 no)
16656 toolexeclibdir='$(toolexecdir)/lib'
16657 ;;
16658 *)
16659 toolexeclibdir=${with_toolexeclibdir}
16660 ;;
16661 esac
16662else
16663 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16664 toolexeclibdir='$(libdir)'
16665fi
16666multi_os_directory=`$CC -print-multi-os-directory`
16667case $multi_os_directory in
16668 .) ;; # Avoid trailing /.
16669 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16670esac
16671
16672
16673
16674if test "${multilib}" = "yes"; then
16675 multilib_arg="--enable-multilib"
16676else
16677 multilib_arg=
16678fi
16679
16680# Check linker support.
16681
16682
16683# Check whether --with-gnu-ld was given.
16684if test "${with_gnu_ld+set}" = set; then :
16685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16686else
16687 with_gnu_ld=no
16688fi
16689
16690ac_prog=ld
16691if test "$GCC" = yes; then
16692 # Check if gcc -print-prog-name=ld gives a path.
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16694$as_echo_n "checking for ld used by $CC... " >&6; }
16695 case $host in
16696 *-*-mingw*)
16697 # gcc leaves a trailing carriage return which upsets mingw
16698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16699 *)
16700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16701 esac
16702 case $ac_prog in
16703 # Accept absolute paths.
16704 [\\/]* | ?:[\\/]*)
16705 re_direlt='/[^/][^/]*/\.\./'
16706 # Canonicalize the pathname of ld
16707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16710 done
16711 test -z "$LD" && LD="$ac_prog"
16712 ;;
16713 "")
16714 # If it fails, then pretend we aren't using GCC.
16715 ac_prog=ld
16716 ;;
16717 *)
16718 # If it is relative, then search for the first ld in PATH.
16719 with_gnu_ld=unknown
16720 ;;
16721 esac
16722elif test "$with_gnu_ld" = yes; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16724$as_echo_n "checking for GNU ld... " >&6; }
16725else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16727$as_echo_n "checking for non-GNU ld... " >&6; }
16728fi
16729if ${lt_cv_path_LD+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731else
16732 if test -z "$LD"; then
16733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16734 for ac_dir in $PATH; do
16735 IFS="$lt_save_ifs"
16736 test -z "$ac_dir" && ac_dir=.
16737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16738 lt_cv_path_LD="$ac_dir/$ac_prog"
16739 # Check to see if the program is GNU ld. I'd rather use --version,
16740 # but apparently some variants of GNU ld only accept -v.
16741 # Break only if it was the GNU/non-GNU ld that we prefer.
16742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16743 *GNU* | *'with BFD'*)
16744 test "$with_gnu_ld" != no && break
16745 ;;
16746 *)
16747 test "$with_gnu_ld" != yes && break
16748 ;;
16749 esac
16750 fi
16751 done
16752 IFS="$lt_save_ifs"
16753else
16754 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16755fi
16756fi
16757
16758LD="$lt_cv_path_LD"
16759if test -n "$LD"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16761$as_echo "$LD" >&6; }
16762else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
16765fi
16766test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16768$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16769if ${lt_cv_prog_gnu_ld+:} false; then :
16770 $as_echo_n "(cached) " >&6
16771else
16772 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16773case `$LD -v 2>&1 </dev/null` in
16774*GNU* | *'with BFD'*)
16775 lt_cv_prog_gnu_ld=yes
16776 ;;
16777*)
16778 lt_cv_prog_gnu_ld=no
16779 ;;
16780esac
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16783$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16784with_gnu_ld=$lt_cv_prog_gnu_ld
16785
16786
16787
16788
16789
16790
16791
16792 # If we're not using GNU ld, then there's no point in even trying these
16793 # tests. Check for that first. We should have already tested for gld
16794 # by now (in libtool), but require it now just to be safe...
16795 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16796 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16797
16798
16799
16800 # The name set by libtool depends on the version of libtool. Shame on us
16801 # for depending on an impl detail, but c'est la vie. Older versions used
16802 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16803 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16804 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16805 # set (hence we're using an older libtool), then set it.
16806 if test x${with_gnu_ld+set} != xset; then
16807 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16808 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16809 with_gnu_ld=no
16810 else
16811 with_gnu_ld=$ac_cv_prog_gnu_ld
16812 fi
16813 fi
16814
16815 # Start by getting the version number. I think the libtool test already
16816 # does some of this, but throws away the result.
16817 libat_ld_is_gold=no
16818 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16819 libat_ld_is_gold=yes
16820 fi
16821 libat_ld_is_lld=no
16822 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16823 libat_ld_is_lld=yes
16824 fi
16825
16826 ldver=`$LD --version 2>/dev/null |
16827 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16828
16829 libat_gnu_ld_version=`echo $ldver | \
16830 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16831
16832 # Set --gc-sections.
16833 if test "$with_gnu_ld" = "notbroken"; then
16834 # GNU ld it is! Joy and bunny rabbits!
16835
16836 # All these tests are for C++; save the language and the compiler flags.
16837 # Need to do this so that g++ won't try to link in libstdc++
16838 ac_test_CFLAGS="${CFLAGS+set}"
16839 ac_save_CFLAGS="$CFLAGS"
16840 CFLAGS='-x c++ -Wl,--gc-sections'
16841
16842 # Check for -Wl,--gc-sections
16843 # XXX This test is broken at the moment, as symbols required for linking
16844 # are now in libsupc++ (not built yet). In addition, this test has
16845 # cored on solaris in the past. In addition, --gc-sections doesn't
16846 # really work at the moment (keeps on discarding used sections, first
16847 # .eh_frame and now some of the glibc sections for iconv).
16848 # Bzzzzt. Thanks for playing, maybe next time.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16850$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16851 if test "$cross_compiling" = yes; then :
16852 ac_sectionLDflags=yes
16853else
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h. */
16856
16857 int main(void)
16858 {
16859 try { throw 1; }
16860 catch (...) { };
16861 return 0;
16862 }
16863
16864_ACEOF
16865if ac_fn_c_try_run "$LINENO"; then :
16866 ac_sectionLDflags=yes
16867else
16868 ac_sectionLDflags=no
16869fi
16870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16871 conftest.$ac_objext conftest.beam conftest.$ac_ext
16872fi
16873
16874 if test "$ac_test_CFLAGS" = set; then
16875 CFLAGS="$ac_save_CFLAGS"
16876 else
16877 # this is the suspicious part
16878 CFLAGS=''
16879 fi
16880 if test "$ac_sectionLDflags" = "yes"; then
16881 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16884$as_echo "$ac_sectionLDflags" >&6; }
16885 fi
16886
16887 # Set linker optimization flags.
16888 if test x"$with_gnu_ld" = x"yes"; then
16889 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16890 fi
16891
16892
16893
16894
16895
16896
16897 # Check whether --enable-symvers was given.
16898if test "${enable_symvers+set}" = set; then :
16899 enableval=$enable_symvers;
16900 case "$enableval" in
16901 yes|no|gnu*|sun) ;;
16902 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16903 esac
16904
16905else
16906 enable_symvers=yes
16907fi
16908
16909
16910
16911# If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16912# don't know enough about $LD to do tricks...
16913
16914
16915# Turn a 'yes' into a suitable default.
16916if test x$enable_symvers = xyes ; then
16917 # FIXME The following test is too strict, in theory.
16918 if test $enable_shared = no || test "x$LD" = x; then
16919 enable_symvers=no
16920 else
16921 if test $with_gnu_ld = yes ; then
16922 enable_symvers=gnu
16923 else
16924 case ${target_os} in
16925 # Sun symbol versioning exists since Solaris 2.5.
16926 solaris2.[5-9]* | solaris2.1[0-9]*)
16927 enable_symvers=sun ;;
16928 *)
16929 enable_symvers=no ;;
16930 esac
16931 fi
16932 fi
16933fi
16934
16935# Check if 'sun' was requested on non-Solaris 2 platforms.
16936if test x$enable_symvers = xsun ; then
16937 case ${target_os} in
16938 solaris2*)
16939 # All fine.
16940 ;;
16941 *)
16942 # Unlikely to work.
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16944$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16946$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16948$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16949 enable_symvers=no
16950 ;;
16951 esac
16952fi
16953
16954# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16955if test $enable_symvers != no; then
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16957$as_echo_n "checking for shared libgcc... " >&6; }
16958 ac_save_CFLAGS="$CFLAGS"
16959 CFLAGS=' -lgcc_s'
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961/* end confdefs.h. */
16962
16963int
16964main ()
16965{
16966return 0;
16967 ;
16968 return 0;
16969}
16970_ACEOF
16971if ac_fn_c_try_link "$LINENO"; then :
16972 libat_shared_libgcc=yes
16973else
16974 libat_shared_libgcc=no
16975fi
16976rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 CFLAGS="$ac_save_CFLAGS"
16979 if test $libat_shared_libgcc = no; then
16980 cat > conftest.c <<EOF
16981int main (void) { return 0; }
16982EOF
16983 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16984 -shared -shared-libgcc -o conftest.so \
16985 conftest.c -v 2>&1 >/dev/null \
16986 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16987 rm -f conftest.c conftest.so
16988 if test x${libat_libgcc_s_suffix+set} = xset; then
16989 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h. */
16992
16993int
16994main ()
16995{
16996return 0;
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001if ac_fn_c_try_link "$LINENO"; then :
17002 libat_shared_libgcc=yes
17003fi
17004rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 CFLAGS="$ac_save_CFLAGS"
17007 fi
17008 fi
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
17010$as_echo "$libat_shared_libgcc" >&6; }
17011fi
17012
17013# For GNU ld, we need at least this version. The format is described in
17014# LIBFFI_CHECK_LINKER_FEATURES above.
17015libat_min_gnu_ld_version=21400
17016# XXXXXXXXXXX libat_gnu_ld_version=21390
17017
17018# Check to see if unspecified "yes" value can win, given results above.
17019# Change "yes" into either "no" or a style name.
17020if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
17021 if test $with_gnu_ld = yes; then
17022 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
17023 enable_symvers=gnu
17024 elif test $libat_ld_is_gold = yes ; then
17025 enable_symvers=gnu
17026 elif test $libat_ld_is_lld = yes ; then
17027 enable_symvers=gnu
17028 else
17029 # The right tools, the right setup, but too old. Fallbacks?
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
17031$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17033$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17035$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
17037$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
17038 if test $libat_gnu_ld_version -ge 21200 ; then
17039 # Globbing fix is present, proper block support is not.
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17041$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17042 enable_symvers=no
17043 else
17044 # 2.11 or older.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17046$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17047 enable_symvers=no
17048 fi
17049 fi
17050 elif test $enable_symvers = sun; then
17051 : All interesting versions of Sun ld support sun style symbol versioning.
17052 else
17053 # just fail for now
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17055$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17057$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17059$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17061$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17062 enable_symvers=no
17063 fi
17064fi
17065if test $enable_symvers = gnu; then
17066
17067$as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17068
17069fi
17070
17071 if test $enable_symvers != no; then
17072 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
17073 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
17074else
17075 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
17076 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
17077fi
17078
17079 if test $enable_symvers = gnu; then
17080 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17081 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17082else
17083 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17084 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17085fi
17086
17087 if test $enable_symvers = sun; then
17088 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17089 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17090else
17091 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17092 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17093fi
17094
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17096$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17097
17098
17099# Determine what GCC version number to use in filesystem paths.
17100
17101 get_gcc_base_ver="cat"
17102
17103# Check whether --with-gcc-major-version-only was given.
17104if test "${with_gcc_major_version_only+set}" = set; then :
17105 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17106 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17107 fi
17108
17109fi
17110
17111
17112
17113
17114ac_config_commands="$ac_config_commands include"
17115
17116ac_config_commands="$ac_config_commands src"
17117
17118
17119ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
17120
17121
17122ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
17123
17124
17125cat >confcache <<\_ACEOF
17126# This file is a shell script that caches the results of configure
17127# tests run on this system so they can be shared between configure
17128# scripts and configure runs, see configure's option --config-cache.
17129# It is not useful on other systems. If it contains results you don't
17130# want to keep, you may remove or edit it.
17131#
17132# config.status only pays attention to the cache file if you give it
17133# the --recheck option to rerun configure.
17134#
17135# `ac_cv_env_foo' variables (set or unset) will be overridden when
17136# loading this file, other *unset* `ac_cv_foo' will be assigned the
17137# following values.
17138
17139_ACEOF
17140
17141# The following way of writing the cache mishandles newlines in values,
17142# but we know of no workaround that is simple, portable, and efficient.
17143# So, we kill variables containing newlines.
17144# Ultrix sh set writes to stderr and can't be redirected directly,
17145# and sets the high bit in the cache file unless we assign to the vars.
17146(
17147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17148 eval ac_val=\$$ac_var
17149 case $ac_val in #(
17150 *${as_nl}*)
17151 case $ac_var in #(
17152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17154 esac
17155 case $ac_var in #(
17156 _ | IFS | as_nl) ;; #(
17157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17158 *) { eval $ac_var=; unset $ac_var;} ;;
17159 esac ;;
17160 esac
17161 done
17162
17163 (set) 2>&1 |
17164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17165 *${as_nl}ac_space=\ *)
17166 # `set' does not quote correctly, so add quotes: double-quote
17167 # substitution turns \\\\ into \\, and sed turns \\ into \.
17168 sed -n \
17169 "s/'/'\\\\''/g;
17170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17171 ;; #(
17172 *)
17173 # `set' quotes correctly as required by POSIX, so do not add quotes.
17174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17175 ;;
17176 esac |
17177 sort
17178) |
17179 sed '
17180 /^ac_cv_env_/b end
17181 t clear
17182 :clear
17183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17184 t end
17185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17186 :end' >>confcache
17187if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17188 if test -w "$cache_file"; then
17189 if test "x$cache_file" != "x/dev/null"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17191$as_echo "$as_me: updating cache $cache_file" >&6;}
17192 if test ! -f "$cache_file" || test -h "$cache_file"; then
17193 cat confcache >"$cache_file"
17194 else
17195 case $cache_file in #(
17196 */* | ?:*)
17197 mv -f confcache "$cache_file"$$ &&
17198 mv -f "$cache_file"$$ "$cache_file" ;; #(
17199 *)
17200 mv -f confcache "$cache_file" ;;
17201 esac
17202 fi
17203 fi
17204 else
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17206$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17207 fi
17208fi
17209rm -f confcache
17210
17211test "x$prefix" = xNONE && prefix=$ac_default_prefix
17212# Let make expand exec_prefix.
17213test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17214
17215DEFS=-DHAVE_CONFIG_H
17216
17217ac_libobjs=
17218ac_ltlibobjs=
17219U=
17220for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17221 # 1. Remove the extension, and $U if already installed.
17222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17225 # will be set to the directory where LIBOBJS objects are built.
17226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17228done
17229LIBOBJS=$ac_libobjs
17230
17231LTLIBOBJS=$ac_ltlibobjs
17232
17233
17234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17235$as_echo_n "checking that generated files are newer than configure... " >&6; }
17236 if test -n "$am_sleep_pid"; then
17237 # Hide warnings about reused PIDs.
17238 wait $am_sleep_pid 2>/dev/null
17239 fi
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17241$as_echo "done" >&6; }
17242 if test -n "$EXEEXT"; then
17243 am__EXEEXT_TRUE=
17244 am__EXEEXT_FALSE='#'
17245else
17246 am__EXEEXT_TRUE='#'
17247 am__EXEEXT_FALSE=
17248fi
17249
17250if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17251 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17252Usually this means the macro was only invoked conditionally." "$LINENO" 5
17253fi
17254if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17255 as_fn_error $? "conditional \"AMDEP\" was never defined.
17256Usually this means the macro was only invoked conditionally." "$LINENO" 5
17257fi
17258if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17259 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17260Usually this means the macro was only invoked conditionally." "$LINENO" 5
17261fi
17262if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17263 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17264Usually this means the macro was only invoked conditionally." "$LINENO" 5
17265fi
17266if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17267 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17268Usually this means the macro was only invoked conditionally." "$LINENO" 5
17269fi
6a6d3817
IS
17270if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
17271 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
17272Usually this means the macro was only invoked conditionally." "$LINENO" 5
17273fi
5be7b669
L
17274if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17275 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17276Usually this means the macro was only invoked conditionally." "$LINENO" 5
17277fi
17278if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17279 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
17280Usually this means the macro was only invoked conditionally." "$LINENO" 5
17281fi
17282
17283if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
17284 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
17285Usually this means the macro was only invoked conditionally." "$LINENO" 5
17286fi
17287if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17288 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17289Usually this means the macro was only invoked conditionally." "$LINENO" 5
17290fi
17291if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17292 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17293Usually this means the macro was only invoked conditionally." "$LINENO" 5
17294fi
17295if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17296 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17297Usually this means the macro was only invoked conditionally." "$LINENO" 5
17298fi
17299if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17300 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17301Usually this means the macro was only invoked conditionally." "$LINENO" 5
17302fi
17303if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17304 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17305Usually this means the macro was only invoked conditionally." "$LINENO" 5
17306fi
17307if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17308 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17309Usually this means the macro was only invoked conditionally." "$LINENO" 5
17310fi
17311
17312: "${CONFIG_STATUS=./config.status}"
17313ac_write_fail=0
17314ac_clean_files_save=$ac_clean_files
17315ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17316{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17317$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17318as_write_fail=0
17319cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17320#! $SHELL
17321# Generated by $as_me.
17322# Run this file to recreate the current configuration.
17323# Compiler output produced by configure, useful for debugging
17324# configure, is in config.log if it exists.
17325
17326debug=false
17327ac_cs_recheck=false
17328ac_cs_silent=false
17329
17330SHELL=\${CONFIG_SHELL-$SHELL}
17331export SHELL
17332_ASEOF
17333cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17334## -------------------- ##
17335## M4sh Initialization. ##
17336## -------------------- ##
17337
17338# Be more Bourne compatible
17339DUALCASE=1; export DUALCASE # for MKS sh
17340if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17341 emulate sh
17342 NULLCMD=:
17343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17344 # is contrary to our usage. Disable this feature.
17345 alias -g '${1+"$@"}'='"$@"'
17346 setopt NO_GLOB_SUBST
17347else
17348 case `(set -o) 2>/dev/null` in #(
17349 *posix*) :
17350 set -o posix ;; #(
17351 *) :
17352 ;;
17353esac
17354fi
17355
17356
17357as_nl='
17358'
17359export as_nl
17360# Printing a long string crashes Solaris 7 /usr/bin/printf.
17361as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17362as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17363as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17364# Prefer a ksh shell builtin over an external printf program on Solaris,
17365# but without wasting forks for bash or zsh.
17366if test -z "$BASH_VERSION$ZSH_VERSION" \
17367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17368 as_echo='print -r --'
17369 as_echo_n='print -rn --'
17370elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17371 as_echo='printf %s\n'
17372 as_echo_n='printf %s'
17373else
17374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17375 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17376 as_echo_n='/usr/ucb/echo -n'
17377 else
17378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17379 as_echo_n_body='eval
17380 arg=$1;
17381 case $arg in #(
17382 *"$as_nl"*)
17383 expr "X$arg" : "X\\(.*\\)$as_nl";
17384 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17385 esac;
17386 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17387 '
17388 export as_echo_n_body
17389 as_echo_n='sh -c $as_echo_n_body as_echo'
17390 fi
17391 export as_echo_body
17392 as_echo='sh -c $as_echo_body as_echo'
17393fi
17394
17395# The user is always right.
17396if test "${PATH_SEPARATOR+set}" != set; then
17397 PATH_SEPARATOR=:
17398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17399 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17400 PATH_SEPARATOR=';'
17401 }
17402fi
17403
17404
17405# IFS
17406# We need space, tab and new line, in precisely that order. Quoting is
17407# there to prevent editors from complaining about space-tab.
17408# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17409# splitting by setting IFS to empty value.)
17410IFS=" "" $as_nl"
17411
17412# Find who we are. Look in the path if we contain no directory separator.
17413as_myself=
17414case $0 in #((
17415 *[\\/]* ) as_myself=$0 ;;
17416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17417for as_dir in $PATH
17418do
17419 IFS=$as_save_IFS
17420 test -z "$as_dir" && as_dir=.
17421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17422 done
17423IFS=$as_save_IFS
17424
17425 ;;
17426esac
17427# We did not find ourselves, most probably we were run as `sh COMMAND'
17428# in which case we are not to be found in the path.
17429if test "x$as_myself" = x; then
17430 as_myself=$0
17431fi
17432if test ! -f "$as_myself"; then
17433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17434 exit 1
17435fi
17436
17437# Unset variables that we do not need and which cause bugs (e.g. in
17438# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17439# suppresses any "Segmentation fault" message there. '((' could
17440# trigger a bug in pdksh 5.2.14.
17441for as_var in BASH_ENV ENV MAIL MAILPATH
17442do eval test x\${$as_var+set} = xset \
17443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17444done
17445PS1='$ '
17446PS2='> '
17447PS4='+ '
17448
17449# NLS nuisances.
17450LC_ALL=C
17451export LC_ALL
17452LANGUAGE=C
17453export LANGUAGE
17454
17455# CDPATH.
17456(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17457
17458
17459# as_fn_error STATUS ERROR [LINENO LOG_FD]
17460# ----------------------------------------
17461# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17462# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17463# script with STATUS, using 1 if that was 0.
17464as_fn_error ()
17465{
17466 as_status=$1; test $as_status -eq 0 && as_status=1
17467 if test "$4"; then
17468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17470 fi
17471 $as_echo "$as_me: error: $2" >&2
17472 as_fn_exit $as_status
17473} # as_fn_error
17474
17475
17476# as_fn_set_status STATUS
17477# -----------------------
17478# Set $? to STATUS, without forking.
17479as_fn_set_status ()
17480{
17481 return $1
17482} # as_fn_set_status
17483
17484# as_fn_exit STATUS
17485# -----------------
17486# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17487as_fn_exit ()
17488{
17489 set +e
17490 as_fn_set_status $1
17491 exit $1
17492} # as_fn_exit
17493
17494# as_fn_unset VAR
17495# ---------------
17496# Portably unset VAR.
17497as_fn_unset ()
17498{
17499 { eval $1=; unset $1;}
17500}
17501as_unset=as_fn_unset
17502# as_fn_append VAR VALUE
17503# ----------------------
17504# Append the text in VALUE to the end of the definition contained in VAR. Take
17505# advantage of any shell optimizations that allow amortized linear growth over
17506# repeated appends, instead of the typical quadratic growth present in naive
17507# implementations.
17508if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17509 eval 'as_fn_append ()
17510 {
17511 eval $1+=\$2
17512 }'
17513else
17514 as_fn_append ()
17515 {
17516 eval $1=\$$1\$2
17517 }
17518fi # as_fn_append
17519
17520# as_fn_arith ARG...
17521# ------------------
17522# Perform arithmetic evaluation on the ARGs, and store the result in the
17523# global $as_val. Take advantage of shells that can avoid forks. The arguments
17524# must be portable across $(()) and expr.
17525if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17526 eval 'as_fn_arith ()
17527 {
17528 as_val=$(( $* ))
17529 }'
17530else
17531 as_fn_arith ()
17532 {
17533 as_val=`expr "$@" || test $? -eq 1`
17534 }
17535fi # as_fn_arith
17536
17537
17538if expr a : '\(a\)' >/dev/null 2>&1 &&
17539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17540 as_expr=expr
17541else
17542 as_expr=false
17543fi
17544
17545if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17546 as_basename=basename
17547else
17548 as_basename=false
17549fi
17550
17551if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17552 as_dirname=dirname
17553else
17554 as_dirname=false
17555fi
17556
17557as_me=`$as_basename -- "$0" ||
17558$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17559 X"$0" : 'X\(//\)$' \| \
17560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17561$as_echo X/"$0" |
17562 sed '/^.*\/\([^/][^/]*\)\/*$/{
17563 s//\1/
17564 q
17565 }
17566 /^X\/\(\/\/\)$/{
17567 s//\1/
17568 q
17569 }
17570 /^X\/\(\/\).*/{
17571 s//\1/
17572 q
17573 }
17574 s/.*/./; q'`
17575
17576# Avoid depending upon Character Ranges.
17577as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17578as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17579as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17580as_cr_digits='0123456789'
17581as_cr_alnum=$as_cr_Letters$as_cr_digits
17582
17583ECHO_C= ECHO_N= ECHO_T=
17584case `echo -n x` in #(((((
17585-n*)
17586 case `echo 'xy\c'` in
17587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17588 xy) ECHO_C='\c';;
17589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17590 ECHO_T=' ';;
17591 esac;;
17592*)
17593 ECHO_N='-n';;
17594esac
17595
17596rm -f conf$$ conf$$.exe conf$$.file
17597if test -d conf$$.dir; then
17598 rm -f conf$$.dir/conf$$.file
17599else
17600 rm -f conf$$.dir
17601 mkdir conf$$.dir 2>/dev/null
17602fi
17603if (echo >conf$$.file) 2>/dev/null; then
17604 if ln -s conf$$.file conf$$ 2>/dev/null; then
17605 as_ln_s='ln -s'
17606 # ... but there are two gotchas:
17607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17609 # In both cases, we have to default to `cp -pR'.
17610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17611 as_ln_s='cp -pR'
17612 elif ln conf$$.file conf$$ 2>/dev/null; then
17613 as_ln_s=ln
17614 else
17615 as_ln_s='cp -pR'
17616 fi
17617else
17618 as_ln_s='cp -pR'
17619fi
17620rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17621rmdir conf$$.dir 2>/dev/null
17622
17623
17624# as_fn_mkdir_p
17625# -------------
17626# Create "$as_dir" as a directory, including parents if necessary.
17627as_fn_mkdir_p ()
17628{
17629
17630 case $as_dir in #(
17631 -*) as_dir=./$as_dir;;
17632 esac
17633 test -d "$as_dir" || eval $as_mkdir_p || {
17634 as_dirs=
17635 while :; do
17636 case $as_dir in #(
17637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17638 *) as_qdir=$as_dir;;
17639 esac
17640 as_dirs="'$as_qdir' $as_dirs"
17641 as_dir=`$as_dirname -- "$as_dir" ||
17642$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17643 X"$as_dir" : 'X\(//\)[^/]' \| \
17644 X"$as_dir" : 'X\(//\)$' \| \
17645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17646$as_echo X"$as_dir" |
17647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17648 s//\1/
17649 q
17650 }
17651 /^X\(\/\/\)[^/].*/{
17652 s//\1/
17653 q
17654 }
17655 /^X\(\/\/\)$/{
17656 s//\1/
17657 q
17658 }
17659 /^X\(\/\).*/{
17660 s//\1/
17661 q
17662 }
17663 s/.*/./; q'`
17664 test -d "$as_dir" && break
17665 done
17666 test -z "$as_dirs" || eval "mkdir $as_dirs"
17667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17668
17669
17670} # as_fn_mkdir_p
17671if mkdir -p . 2>/dev/null; then
17672 as_mkdir_p='mkdir -p "$as_dir"'
17673else
17674 test -d ./-p && rmdir ./-p
17675 as_mkdir_p=false
17676fi
17677
17678
17679# as_fn_executable_p FILE
17680# -----------------------
17681# Test if FILE is an executable regular file.
17682as_fn_executable_p ()
17683{
17684 test -f "$1" && test -x "$1"
17685} # as_fn_executable_p
17686as_test_x='test -x'
17687as_executable_p=as_fn_executable_p
17688
17689# Sed expression to map a string onto a valid CPP name.
17690as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17691
17692# Sed expression to map a string onto a valid variable name.
17693as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17694
17695
17696exec 6>&1
17697## ----------------------------------- ##
17698## Main body of $CONFIG_STATUS script. ##
17699## ----------------------------------- ##
17700_ASEOF
17701test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17702
17703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17704# Save the log message, to keep $0 and so on meaningful, and to
17705# report actual input values of CONFIG_FILES etc. instead of their
17706# values after options handling.
17707ac_log="
17708This file was extended by libffi $as_me 3.4.2, which was
17709generated by GNU Autoconf 2.69. Invocation command line was
17710
17711 CONFIG_FILES = $CONFIG_FILES
17712 CONFIG_HEADERS = $CONFIG_HEADERS
17713 CONFIG_LINKS = $CONFIG_LINKS
17714 CONFIG_COMMANDS = $CONFIG_COMMANDS
17715 $ $0 $@
17716
17717on `(hostname || uname -n) 2>/dev/null | sed 1q`
17718"
17719
17720_ACEOF
17721
17722case $ac_config_files in *"
17723"*) set x $ac_config_files; shift; ac_config_files=$*;;
17724esac
17725
17726case $ac_config_headers in *"
17727"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17728esac
17729
17730
17731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17732# Files that config.status was made for.
17733config_files="$ac_config_files"
17734config_headers="$ac_config_headers"
17735config_links="$ac_config_links"
17736config_commands="$ac_config_commands"
17737
17738_ACEOF
17739
17740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17741ac_cs_usage="\
17742\`$as_me' instantiates files and other configuration actions
17743from templates according to the current configuration. Unless the files
17744and actions are specified as TAGs, all are instantiated by default.
17745
17746Usage: $0 [OPTION]... [TAG]...
17747
17748 -h, --help print this help, then exit
17749 -V, --version print version number and configuration settings, then exit
17750 --config print configuration, then exit
17751 -q, --quiet, --silent
17752 do not print progress messages
17753 -d, --debug don't remove temporary files
17754 --recheck update $as_me by reconfiguring in the same conditions
17755 --file=FILE[:TEMPLATE]
17756 instantiate the configuration file FILE
17757 --header=FILE[:TEMPLATE]
17758 instantiate the configuration header FILE
17759
17760Configuration files:
17761$config_files
17762
17763Configuration headers:
17764$config_headers
17765
17766Configuration links:
17767$config_links
17768
17769Configuration commands:
17770$config_commands
17771
17772Report bugs to <http://github.com/libffi/libffi/issues>."
17773
17774_ACEOF
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17777ac_cs_version="\\
17778libffi config.status 3.4.2
17779configured by $0, generated by GNU Autoconf 2.69,
17780 with options \\"\$ac_cs_config\\"
17781
17782Copyright (C) 2012 Free Software Foundation, Inc.
17783This config.status script is free software; the Free Software Foundation
17784gives unlimited permission to copy, distribute and modify it."
17785
17786ac_pwd='$ac_pwd'
17787srcdir='$srcdir'
17788INSTALL='$INSTALL'
17789MKDIR_P='$MKDIR_P'
17790AWK='$AWK'
17791test -n "\$AWK" || AWK=awk
17792_ACEOF
17793
17794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795# The default lists apply if the user does not specify any file.
17796ac_need_defaults=:
17797while test $# != 0
17798do
17799 case $1 in
17800 --*=?*)
17801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17803 ac_shift=:
17804 ;;
17805 --*=)
17806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17807 ac_optarg=
17808 ac_shift=:
17809 ;;
17810 *)
17811 ac_option=$1
17812 ac_optarg=$2
17813 ac_shift=shift
17814 ;;
17815 esac
17816
17817 case $ac_option in
17818 # Handling of the options.
17819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17820 ac_cs_recheck=: ;;
17821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17822 $as_echo "$ac_cs_version"; exit ;;
17823 --config | --confi | --conf | --con | --co | --c )
17824 $as_echo "$ac_cs_config"; exit ;;
17825 --debug | --debu | --deb | --de | --d | -d )
17826 debug=: ;;
17827 --file | --fil | --fi | --f )
17828 $ac_shift
17829 case $ac_optarg in
17830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17831 '') as_fn_error $? "missing file argument" ;;
17832 esac
17833 as_fn_append CONFIG_FILES " '$ac_optarg'"
17834 ac_need_defaults=false;;
17835 --header | --heade | --head | --hea )
17836 $ac_shift
17837 case $ac_optarg in
17838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17839 esac
17840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17841 ac_need_defaults=false;;
17842 --he | --h)
17843 # Conflict between --help and --header
17844 as_fn_error $? "ambiguous option: \`$1'
17845Try \`$0 --help' for more information.";;
17846 --help | --hel | -h )
17847 $as_echo "$ac_cs_usage"; exit ;;
17848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17850 ac_cs_silent=: ;;
17851
17852 # This is an error.
17853 -*) as_fn_error $? "unrecognized option: \`$1'
17854Try \`$0 --help' for more information." ;;
17855
17856 *) as_fn_append ac_config_targets " $1"
17857 ac_need_defaults=false ;;
17858
17859 esac
17860 shift
17861done
17862
17863ac_configure_extra_args=
17864
17865if $ac_cs_silent; then
17866 exec 6>/dev/null
17867 ac_configure_extra_args="$ac_configure_extra_args --silent"
17868fi
17869
17870_ACEOF
17871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872if \$ac_cs_recheck; then
17873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17874 shift
17875 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17876 CONFIG_SHELL='$SHELL'
17877 export CONFIG_SHELL
17878 exec "\$@"
17879fi
17880
17881_ACEOF
17882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883exec 5>>config.log
17884{
17885 echo
17886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17887## Running $as_me. ##
17888_ASBOX
17889 $as_echo "$ac_log"
17890} >&5
17891
17892_ACEOF
17893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17894#
17895# INIT-COMMANDS
17896#
17897
17898srcdir="$srcdir"
17899host="$host"
17900target="$target"
17901with_multisubdir="$with_multisubdir"
17902with_multisrctop="$with_multisrctop"
17903with_target_subdir="$with_target_subdir"
17904ac_configure_args="${multilib_arg} ${ac_configure_args}"
17905multi_basedir="$multi_basedir"
17906CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17907CC="$CC"
17908CXX="$CXX"
17909GFORTRAN="$GFORTRAN"
17910GDC="$GDC"
17911AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17912
17913
17914# The HP-UX ksh and POSIX shell print the target directory to stdout
17915# if CDPATH is set.
17916(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17917
17918sed_quote_subst='$sed_quote_subst'
17919double_quote_subst='$double_quote_subst'
17920delay_variable_subst='$delay_variable_subst'
17921macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17922macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17923enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17924enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17925pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17926enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17927SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17928ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17929host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17930host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17931host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17932build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17933build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17934build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17935SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17936Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17937GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17938EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17939FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17940LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17941NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17942LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17943max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17944ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17945exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17946lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17947lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17948lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17949reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17950reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17951OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17952deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17953file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17954AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17955AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17956STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17957RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17958old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17959old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17960old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17961lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17962CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17963CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17964compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17965GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17966lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17967lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17968lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17969lt_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"`'
17970objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17971MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17972lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17973lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17974lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17975lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17976lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17977need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17978DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17979NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17980LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17981OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17982OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17983libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17984shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17985extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17986archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17987enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17988export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17989whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17990compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17991old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17992old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17993archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17994archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17995module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17996module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17997with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17998allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17999no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18000hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18001hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18002hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18003hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18004hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18005hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18006hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18007hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18008inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18009link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18010fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18011always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18012export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18013exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18014include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18015prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18016file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18017variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18018need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18019need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18020version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18021runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18022shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18023shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18024libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18025library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18026soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18027install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18028postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18029postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18030finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18031finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18032hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18033sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18034sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18035hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18036enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18037enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18038enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18039old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18040striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18041compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18042predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18043postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18044predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18045postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18046compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18047LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18048reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18049reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18050old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18051compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18052GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18053lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18054lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18055lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18056lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18057lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18058archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18059enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18060export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18061whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18062compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18063old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18064old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18065archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18066archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18068module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18069with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18070allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18071no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18072hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18073hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18074hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18075hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18076hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18077hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18078hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18079hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18080inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18081link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18082fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18083always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18084export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18085exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18086include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18087prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18088file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18089hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18090compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18091predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18092postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18093predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18094postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18095compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18096
18097LTCC='$LTCC'
18098LTCFLAGS='$LTCFLAGS'
18099compiler='$compiler_DEFAULT'
18100
18101# A function that is used when there is no print builtin or printf.
18102func_fallback_echo ()
18103{
18104 eval 'cat <<_LTECHO_EOF
18105\$1
18106_LTECHO_EOF'
18107}
18108
18109# Quote evaled strings.
18110for var in SHELL \
18111ECHO \
18112SED \
18113GREP \
18114EGREP \
18115FGREP \
18116LD \
18117NM \
18118LN_S \
18119lt_SP2NL \
18120lt_NL2SP \
18121reload_flag \
18122OBJDUMP \
18123deplibs_check_method \
18124file_magic_cmd \
18125AR \
18126AR_FLAGS \
18127STRIP \
18128RANLIB \
18129CC \
18130CFLAGS \
18131compiler \
18132lt_cv_sys_global_symbol_pipe \
18133lt_cv_sys_global_symbol_to_cdecl \
18134lt_cv_sys_global_symbol_to_c_name_address \
18135lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18136lt_prog_compiler_no_builtin_flag \
18137lt_prog_compiler_wl \
18138lt_prog_compiler_pic \
18139lt_prog_compiler_static \
18140lt_cv_prog_compiler_c_o \
18141need_locks \
18142DSYMUTIL \
18143NMEDIT \
18144LIPO \
18145OTOOL \
18146OTOOL64 \
18147shrext_cmds \
18148export_dynamic_flag_spec \
18149whole_archive_flag_spec \
18150compiler_needs_object \
18151with_gnu_ld \
18152allow_undefined_flag \
18153no_undefined_flag \
18154hardcode_libdir_flag_spec \
18155hardcode_libdir_flag_spec_ld \
18156hardcode_libdir_separator \
18157fix_srcfile_path \
18158exclude_expsyms \
18159include_expsyms \
18160file_list_spec \
18161variables_saved_for_relink \
18162libname_spec \
18163library_names_spec \
18164soname_spec \
18165install_override_mode \
18166finish_eval \
18167old_striplib \
18168striplib \
18169compiler_lib_search_dirs \
18170predep_objects \
18171postdep_objects \
18172predeps \
18173postdeps \
18174compiler_lib_search_path \
18175LD_CXX \
18176reload_flag_CXX \
18177compiler_CXX \
18178lt_prog_compiler_no_builtin_flag_CXX \
18179lt_prog_compiler_wl_CXX \
18180lt_prog_compiler_pic_CXX \
18181lt_prog_compiler_static_CXX \
18182lt_cv_prog_compiler_c_o_CXX \
18183export_dynamic_flag_spec_CXX \
18184whole_archive_flag_spec_CXX \
18185compiler_needs_object_CXX \
18186with_gnu_ld_CXX \
18187allow_undefined_flag_CXX \
18188no_undefined_flag_CXX \
18189hardcode_libdir_flag_spec_CXX \
18190hardcode_libdir_flag_spec_ld_CXX \
18191hardcode_libdir_separator_CXX \
18192fix_srcfile_path_CXX \
18193exclude_expsyms_CXX \
18194include_expsyms_CXX \
18195file_list_spec_CXX \
18196compiler_lib_search_dirs_CXX \
18197predep_objects_CXX \
18198postdep_objects_CXX \
18199predeps_CXX \
18200postdeps_CXX \
18201compiler_lib_search_path_CXX; do
18202 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18203 *[\\\\\\\`\\"\\\$]*)
18204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18205 ;;
18206 *)
18207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18208 ;;
18209 esac
18210done
18211
18212# Double-quote double-evaled strings.
18213for var in reload_cmds \
18214old_postinstall_cmds \
18215old_postuninstall_cmds \
18216old_archive_cmds \
18217extract_expsyms_cmds \
18218old_archive_from_new_cmds \
18219old_archive_from_expsyms_cmds \
18220archive_cmds \
18221archive_expsym_cmds \
18222module_cmds \
18223module_expsym_cmds \
18224export_symbols_cmds \
18225prelink_cmds \
18226postinstall_cmds \
18227postuninstall_cmds \
18228finish_cmds \
18229sys_lib_search_path_spec \
18230sys_lib_dlsearch_path_spec \
18231reload_cmds_CXX \
18232old_archive_cmds_CXX \
18233old_archive_from_new_cmds_CXX \
18234old_archive_from_expsyms_cmds_CXX \
18235archive_cmds_CXX \
18236archive_expsym_cmds_CXX \
18237module_cmds_CXX \
18238module_expsym_cmds_CXX \
18239export_symbols_cmds_CXX \
18240prelink_cmds_CXX; do
18241 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18242 *[\\\\\\\`\\"\\\$]*)
18243 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18244 ;;
18245 *)
18246 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18247 ;;
18248 esac
18249done
18250
18251ac_aux_dir='$ac_aux_dir'
18252xsi_shell='$xsi_shell'
18253lt_shell_append='$lt_shell_append'
18254
18255# See if we are running on zsh, and set the options which allow our
18256# commands through without removal of \ escapes INIT.
18257if test -n "\${ZSH_VERSION+set}" ; then
18258 setopt NO_GLOB_SUBST
18259fi
18260
18261
18262 PACKAGE='$PACKAGE'
18263 VERSION='$VERSION'
18264 TIMESTAMP='$TIMESTAMP'
18265 RM='$RM'
18266 ofile='$ofile'
18267
18268
18269
18270
18271
18272TARGETDIR="$TARGETDIR"
18273
18274_ACEOF
18275
18276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18277
18278# Handling of arguments.
18279for ac_config_target in $ac_config_targets
18280do
18281 case $ac_config_target in
18282 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
18283 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18285 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18286 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
18287 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
18288 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18289 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
18290 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18291 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18292 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18293 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18294 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18295
18296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18297 esac
18298done
18299
18300
18301# If the user did not use the arguments to specify the items to instantiate,
18302# then the envvar interface is used. Set only those that are not.
18303# We use the long form for the default assignment because of an extremely
18304# bizarre bug on SunOS 4.1.3.
18305if $ac_need_defaults; then
18306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18308 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18310fi
18311
18312# Have a temporary directory for convenience. Make it in the build tree
18313# simply because there is no reason against having it here, and in addition,
18314# creating and moving files from /tmp can sometimes cause problems.
18315# Hook for its removal unless debugging.
18316# Note that there is a small window in which the directory will not be cleaned:
18317# after its creation but before its name has been assigned to `$tmp'.
18318$debug ||
18319{
18320 tmp= ac_tmp=
18321 trap 'exit_status=$?
18322 : "${ac_tmp:=$tmp}"
18323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18324' 0
18325 trap 'as_fn_exit 1' 1 2 13 15
18326}
18327# Create a (secure) tmp directory for tmp files.
18328
18329{
18330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18331 test -d "$tmp"
18332} ||
18333{
18334 tmp=./conf$$-$RANDOM
18335 (umask 077 && mkdir "$tmp")
18336} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18337ac_tmp=$tmp
18338
18339# Set up the scripts for CONFIG_FILES section.
18340# No need to generate them if there are no CONFIG_FILES.
18341# This happens for instance with `./config.status config.h'.
18342if test -n "$CONFIG_FILES"; then
18343
18344
18345ac_cr=`echo X | tr X '\015'`
18346# On cygwin, bash can eat \r inside `` if the user requested igncr.
18347# But we know of no other shell where ac_cr would be empty at this
18348# point, so we can use a bashism as a fallback.
18349if test "x$ac_cr" = x; then
18350 eval ac_cr=\$\'\\r\'
18351fi
18352ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18353if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18354 ac_cs_awk_cr='\\r'
18355else
18356 ac_cs_awk_cr=$ac_cr
18357fi
18358
18359echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18360_ACEOF
18361
18362
18363{
18364 echo "cat >conf$$subs.awk <<_ACEOF" &&
18365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18366 echo "_ACEOF"
18367} >conf$$subs.sh ||
18368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18369ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18370ac_delim='%!_!# '
18371for ac_last_try in false false false false false :; do
18372 . ./conf$$subs.sh ||
18373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18374
18375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18376 if test $ac_delim_n = $ac_delim_num; then
18377 break
18378 elif $ac_last_try; then
18379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18380 else
18381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18382 fi
18383done
18384rm -f conf$$subs.sh
18385
18386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18388_ACEOF
18389sed -n '
18390h
18391s/^/S["/; s/!.*/"]=/
18392p
18393g
18394s/^[^!]*!//
18395:repl
18396t repl
18397s/'"$ac_delim"'$//
18398t delim
18399:nl
18400h
18401s/\(.\{148\}\)..*/\1/
18402t more1
18403s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18404p
18405n
18406b repl
18407:more1
18408s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18409p
18410g
18411s/.\{148\}//
18412t nl
18413:delim
18414h
18415s/\(.\{148\}\)..*/\1/
18416t more2
18417s/["\\]/\\&/g; s/^/"/; s/$/"/
18418p
18419b
18420:more2
18421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18422p
18423g
18424s/.\{148\}//
18425t delim
18426' <conf$$subs.awk | sed '
18427/^[^""]/{
18428 N
18429 s/\n//
18430}
18431' >>$CONFIG_STATUS || ac_write_fail=1
18432rm -f conf$$subs.awk
18433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434_ACAWK
18435cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18436 for (key in S) S_is_set[key] = 1
18437 FS = "\a"
18438
18439}
18440{
18441 line = $ 0
18442 nfields = split(line, field, "@")
18443 substed = 0
18444 len = length(field[1])
18445 for (i = 2; i < nfields; i++) {
18446 key = field[i]
18447 keylen = length(key)
18448 if (S_is_set[key]) {
18449 value = S[key]
18450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18451 len += length(value) + length(field[++i])
18452 substed = 1
18453 } else
18454 len += 1 + keylen
18455 }
18456
18457 print line
18458}
18459
18460_ACAWK
18461_ACEOF
18462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18465else
18466 cat
18467fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18469_ACEOF
18470
18471# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18472# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18473# trailing colons and then remove the whole line if VPATH becomes empty
18474# (actually we leave an empty line to preserve line numbers).
18475if test "x$srcdir" = x.; then
18476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18477h
18478s///
18479s/^/:/
18480s/[ ]*$/:/
18481s/:\$(srcdir):/:/g
18482s/:\${srcdir}:/:/g
18483s/:@srcdir@:/:/g
18484s/^:*//
18485s/:*$//
18486x
18487s/\(=[ ]*\).*/\1/
18488G
18489s/\n//
18490s/^[^=]*=[ ]*$//
18491}'
18492fi
18493
18494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18495fi # test -n "$CONFIG_FILES"
18496
18497# Set up the scripts for CONFIG_HEADERS section.
18498# No need to generate them if there are no CONFIG_HEADERS.
18499# This happens for instance with `./config.status Makefile'.
18500if test -n "$CONFIG_HEADERS"; then
18501cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18502BEGIN {
18503_ACEOF
18504
18505# Transform confdefs.h into an awk script `defines.awk', embedded as
18506# here-document in config.status, that substitutes the proper values into
18507# config.h.in to produce config.h.
18508
18509# Create a delimiter string that does not exist in confdefs.h, to ease
18510# handling of long lines.
18511ac_delim='%!_!# '
18512for ac_last_try in false false :; do
18513 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18514 if test -z "$ac_tt"; then
18515 break
18516 elif $ac_last_try; then
18517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18518 else
18519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18520 fi
18521done
18522
18523# For the awk script, D is an array of macro values keyed by name,
18524# likewise P contains macro parameters if any. Preserve backslash
18525# newline sequences.
18526
18527ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18528sed -n '
18529s/.\{148\}/&'"$ac_delim"'/g
18530t rset
18531:rset
18532s/^[ ]*#[ ]*define[ ][ ]*/ /
18533t def
18534d
18535:def
18536s/\\$//
18537t bsnl
18538s/["\\]/\\&/g
18539s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18540D["\1"]=" \3"/p
18541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18542d
18543:bsnl
18544s/["\\]/\\&/g
18545s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18546D["\1"]=" \3\\\\\\n"\\/p
18547t cont
18548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18549t cont
18550d
18551:cont
18552n
18553s/.\{148\}/&'"$ac_delim"'/g
18554t clear
18555:clear
18556s/\\$//
18557t bsnlc
18558s/["\\]/\\&/g; s/^/"/; s/$/"/p
18559d
18560:bsnlc
18561s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18562b cont
18563' <confdefs.h | sed '
18564s/'"$ac_delim"'/"\\\
18565"/g' >>$CONFIG_STATUS || ac_write_fail=1
18566
18567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 for (key in D) D_is_set[key] = 1
18569 FS = "\a"
18570}
18571/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18572 line = \$ 0
18573 split(line, arg, " ")
18574 if (arg[1] == "#") {
18575 defundef = arg[2]
18576 mac1 = arg[3]
18577 } else {
18578 defundef = substr(arg[1], 2)
18579 mac1 = arg[2]
18580 }
18581 split(mac1, mac2, "(") #)
18582 macro = mac2[1]
18583 prefix = substr(line, 1, index(line, defundef) - 1)
18584 if (D_is_set[macro]) {
18585 # Preserve the white space surrounding the "#".
18586 print prefix "define", macro P[macro] D[macro]
18587 next
18588 } else {
18589 # Replace #undef with comments. This is necessary, for example,
18590 # in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 if (defundef == "undef") {
18593 print "/*", prefix defundef, macro, "*/"
18594 next
18595 }
18596 }
18597}
18598{ print }
18599_ACAWK
18600_ACEOF
18601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18603fi # test -n "$CONFIG_HEADERS"
18604
18605
18606eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18607shift
18608for ac_tag
18609do
18610 case $ac_tag in
18611 :[FHLC]) ac_mode=$ac_tag; continue;;
18612 esac
18613 case $ac_mode$ac_tag in
18614 :[FHL]*:*);;
18615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18616 :[FH]-) ac_tag=-:-;;
18617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18618 esac
18619 ac_save_IFS=$IFS
18620 IFS=:
18621 set x $ac_tag
18622 IFS=$ac_save_IFS
18623 shift
18624 ac_file=$1
18625 shift
18626
18627 case $ac_mode in
18628 :L) ac_source=$1;;
18629 :[FH])
18630 ac_file_inputs=
18631 for ac_f
18632 do
18633 case $ac_f in
18634 -) ac_f="$ac_tmp/stdin";;
18635 *) # Look for the file first in the build tree, then in the source tree
18636 # (if the path is not absolute). The absolute path cannot be DOS-style,
18637 # because $ac_f cannot contain `:'.
18638 test -f "$ac_f" ||
18639 case $ac_f in
18640 [\\/$]*) false;;
18641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18642 esac ||
18643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18644 esac
18645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18646 as_fn_append ac_file_inputs " '$ac_f'"
18647 done
18648
18649 # Let's still pretend it is `configure' which instantiates (i.e., don't
18650 # use $as_me), people would be surprised to read:
18651 # /* config.h. Generated by config.status. */
18652 configure_input='Generated from '`
18653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18654 `' by configure.'
18655 if test x"$ac_file" != x-; then
18656 configure_input="$ac_file. $configure_input"
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18658$as_echo "$as_me: creating $ac_file" >&6;}
18659 fi
18660 # Neutralize special characters interpreted by sed in replacement strings.
18661 case $configure_input in #(
18662 *\&* | *\|* | *\\* )
18663 ac_sed_conf_input=`$as_echo "$configure_input" |
18664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18665 *) ac_sed_conf_input=$configure_input;;
18666 esac
18667
18668 case $ac_tag in
18669 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18671 esac
18672 ;;
18673 esac
18674
18675 ac_dir=`$as_dirname -- "$ac_file" ||
18676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$ac_file" : 'X\(//\)[^/]' \| \
18678 X"$ac_file" : 'X\(//\)$' \| \
18679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18680$as_echo X"$ac_file" |
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 s//\1/
18683 q
18684 }
18685 /^X\(\/\/\)[^/].*/{
18686 s//\1/
18687 q
18688 }
18689 /^X\(\/\/\)$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\(\/\).*/{
18694 s//\1/
18695 q
18696 }
18697 s/.*/./; q'`
18698 as_dir="$ac_dir"; as_fn_mkdir_p
18699 ac_builddir=.
18700
18701case "$ac_dir" in
18702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18703*)
18704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18705 # A ".." for each directory in $ac_dir_suffix.
18706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18707 case $ac_top_builddir_sub in
18708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18710 esac ;;
18711esac
18712ac_abs_top_builddir=$ac_pwd
18713ac_abs_builddir=$ac_pwd$ac_dir_suffix
18714# for backward compatibility:
18715ac_top_builddir=$ac_top_build_prefix
18716
18717case $srcdir in
18718 .) # We are building in place.
18719 ac_srcdir=.
18720 ac_top_srcdir=$ac_top_builddir_sub
18721 ac_abs_top_srcdir=$ac_pwd ;;
18722 [\\/]* | ?:[\\/]* ) # Absolute name.
18723 ac_srcdir=$srcdir$ac_dir_suffix;
18724 ac_top_srcdir=$srcdir
18725 ac_abs_top_srcdir=$srcdir ;;
18726 *) # Relative name.
18727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18728 ac_top_srcdir=$ac_top_build_prefix$srcdir
18729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18730esac
18731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18732
18733
18734 case $ac_mode in
18735 :F)
18736 #
18737 # CONFIG_FILE
18738 #
18739
18740 case $INSTALL in
18741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18743 esac
18744 ac_MKDIR_P=$MKDIR_P
18745 case $MKDIR_P in
18746 [\\/$]* | ?:[\\/]* ) ;;
18747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18748 esac
18749_ACEOF
18750
18751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18752# If the template does not know about datarootdir, expand it.
18753# FIXME: This hack should be removed a few years after 2.60.
18754ac_datarootdir_hack=; ac_datarootdir_seen=
18755ac_sed_dataroot='
18756/datarootdir/ {
18757 p
18758 q
18759}
18760/@datadir@/p
18761/@docdir@/p
18762/@infodir@/p
18763/@localedir@/p
18764/@mandir@/p'
18765case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18766*datarootdir*) ac_datarootdir_seen=yes;;
18767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18769$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18770_ACEOF
18771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18772 ac_datarootdir_hack='
18773 s&@datadir@&$datadir&g
18774 s&@docdir@&$docdir&g
18775 s&@infodir@&$infodir&g
18776 s&@localedir@&$localedir&g
18777 s&@mandir@&$mandir&g
18778 s&\\\${datarootdir}&$datarootdir&g' ;;
18779esac
18780_ACEOF
18781
18782# Neutralize VPATH when `$srcdir' = `.'.
18783# Shell code in configure.ac might set extrasub.
18784# FIXME: do we really want to maintain this feature?
18785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18786ac_sed_extra="$ac_vpsub
18787$extrasub
18788_ACEOF
18789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18790:t
18791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18792s|@configure_input@|$ac_sed_conf_input|;t t
18793s&@top_builddir@&$ac_top_builddir_sub&;t t
18794s&@top_build_prefix@&$ac_top_build_prefix&;t t
18795s&@srcdir@&$ac_srcdir&;t t
18796s&@abs_srcdir@&$ac_abs_srcdir&;t t
18797s&@top_srcdir@&$ac_top_srcdir&;t t
18798s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18799s&@builddir@&$ac_builddir&;t t
18800s&@abs_builddir@&$ac_abs_builddir&;t t
18801s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18802s&@INSTALL@&$ac_INSTALL&;t t
18803s&@MKDIR_P@&$ac_MKDIR_P&;t t
18804$ac_datarootdir_hack
18805"
18806eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18808
18809test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18812 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18814which seems to be undefined. Please make sure it is defined" >&5
18815$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18816which seems to be undefined. Please make sure it is defined" >&2;}
18817
18818 rm -f "$ac_tmp/stdin"
18819 case $ac_file in
18820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18822 esac \
18823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18824 ;;
18825 :H)
18826 #
18827 # CONFIG_HEADER
18828 #
18829 if test x"$ac_file" != x-; then
18830 {
18831 $as_echo "/* $configure_input */" \
18832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18833 } >"$ac_tmp/config.h" \
18834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18837$as_echo "$as_me: $ac_file is unchanged" >&6;}
18838 else
18839 rm -f "$ac_file"
18840 mv "$ac_tmp/config.h" "$ac_file" \
18841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18842 fi
18843 else
18844 $as_echo "/* $configure_input */" \
18845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18846 || as_fn_error $? "could not create -" "$LINENO" 5
18847 fi
18848# Compute "$ac_file"'s index in $config_headers.
18849_am_arg="$ac_file"
18850_am_stamp_count=1
18851for _am_header in $config_headers :; do
18852 case $_am_header in
18853 $_am_arg | $_am_arg:* )
18854 break ;;
18855 * )
18856 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18857 esac
18858done
18859echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18860$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861 X"$_am_arg" : 'X\(//\)[^/]' \| \
18862 X"$_am_arg" : 'X\(//\)$' \| \
18863 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18864$as_echo X"$_am_arg" |
18865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866 s//\1/
18867 q
18868 }
18869 /^X\(\/\/\)[^/].*/{
18870 s//\1/
18871 q
18872 }
18873 /^X\(\/\/\)$/{
18874 s//\1/
18875 q
18876 }
18877 /^X\(\/\).*/{
18878 s//\1/
18879 q
18880 }
18881 s/.*/./; q'`/stamp-h$_am_stamp_count
18882 ;;
18883 :L)
18884 #
18885 # CONFIG_LINK
18886 #
18887
18888 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18889 :
18890 else
18891 # Prefer the file from the source tree if names are identical.
18892 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18893 ac_source=$srcdir/$ac_source
18894 fi
18895
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18897$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18898
18899 if test ! -r "$ac_source"; then
18900 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18901 fi
18902 rm -f "$ac_file"
18903
18904 # Try a relative symlink, then a hard link, then a copy.
18905 case $ac_source in
18906 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18907 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18908 esac
18909 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18910 ln "$ac_source" "$ac_file" 2>/dev/null ||
18911 cp -p "$ac_source" "$ac_file" ||
18912 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18913 fi
18914 ;;
18915 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18916$as_echo "$as_me: executing $ac_file commands" >&6;}
18917 ;;
18918 esac
18919
18920
18921 case $ac_file$ac_mode in
18922 "default-1":C)
18923# Only add multilib support code if we just rebuilt the top-level
18924# Makefile.
18925case " $CONFIG_FILES " in
18926 *" Makefile "*)
18927 ac_file=Makefile . ${multi_basedir}/config-ml.in
18928 ;;
18929esac ;;
18930 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18931 # Older Autoconf quotes --file arguments for eval, but not when files
18932 # are listed without --file. Let's play safe and only enable the eval
18933 # if we detect the quoting.
18934 case $CONFIG_FILES in
18935 *\'*) eval set x "$CONFIG_FILES" ;;
18936 *) set x $CONFIG_FILES ;;
18937 esac
18938 shift
18939 for mf
18940 do
18941 # Strip MF so we end up with the name of the file.
18942 mf=`echo "$mf" | sed -e 's/:.*$//'`
18943 # Check whether this is an Automake generated Makefile or not.
18944 # We used to match only the files named 'Makefile.in', but
18945 # some people rename them; so instead we look at the file content.
18946 # Grep'ing the first line is not enough: some people post-process
18947 # each Makefile.in and add a new line on top of each file to say so.
18948 # Grep'ing the whole file is not good either: AIX grep has a line
18949 # limit of 2048, but all sed's we know have understand at least 4000.
18950 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18951 dirpart=`$as_dirname -- "$mf" ||
18952$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953 X"$mf" : 'X\(//\)[^/]' \| \
18954 X"$mf" : 'X\(//\)$' \| \
18955 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18956$as_echo X"$mf" |
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18958 s//\1/
18959 q
18960 }
18961 /^X\(\/\/\)[^/].*/{
18962 s//\1/
18963 q
18964 }
18965 /^X\(\/\/\)$/{
18966 s//\1/
18967 q
18968 }
18969 /^X\(\/\).*/{
18970 s//\1/
18971 q
18972 }
18973 s/.*/./; q'`
18974 else
18975 continue
18976 fi
18977 # Extract the definition of DEPDIR, am__include, and am__quote
18978 # from the Makefile without running 'make'.
18979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18980 test -z "$DEPDIR" && continue
18981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18982 test -z "$am__include" && continue
18983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18984 # Find all dependency output files, they are included files with
18985 # $(DEPDIR) in their names. We invoke sed twice because it is the
18986 # simplest approach to changing $(DEPDIR) to its actual value in the
18987 # expansion.
18988 for file in `sed -n "
18989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18991 # Make sure the directory exists.
18992 test -f "$dirpart/$file" && continue
18993 fdir=`$as_dirname -- "$file" ||
18994$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18995 X"$file" : 'X\(//\)[^/]' \| \
18996 X"$file" : 'X\(//\)$' \| \
18997 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18998$as_echo X"$file" |
18999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19000 s//\1/
19001 q
19002 }
19003 /^X\(\/\/\)[^/].*/{
19004 s//\1/
19005 q
19006 }
19007 /^X\(\/\/\)$/{
19008 s//\1/
19009 q
19010 }
19011 /^X\(\/\).*/{
19012 s//\1/
19013 q
19014 }
19015 s/.*/./; q'`
19016 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19017 # echo "creating $dirpart/$file"
19018 echo '# dummy' > "$dirpart/$file"
19019 done
19020 done
19021}
19022 ;;
19023 "libtool":C)
19024
19025 # See if we are running on zsh, and set the options which allow our
19026 # commands through without removal of \ escapes.
19027 if test -n "${ZSH_VERSION+set}" ; then
19028 setopt NO_GLOB_SUBST
19029 fi
19030
19031 cfgfile="${ofile}T"
19032 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19033 $RM "$cfgfile"
19034
19035 cat <<_LT_EOF >> "$cfgfile"
19036#! $SHELL
19037
19038# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19039# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19041# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19042#
19043# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19044# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19045# Written by Gordon Matzigkeit, 1996
19046#
19047# This file is part of GNU Libtool.
19048#
19049# GNU Libtool is free software; you can redistribute it and/or
19050# modify it under the terms of the GNU General Public License as
19051# published by the Free Software Foundation; either version 2 of
19052# the License, or (at your option) any later version.
19053#
19054# As a special exception to the GNU General Public License,
19055# if you distribute this file as part of a program or library that
19056# is built using GNU Libtool, you may include this file under the
19057# same distribution terms that you use for the rest of that program.
19058#
19059# GNU Libtool is distributed in the hope that it will be useful,
19060# but WITHOUT ANY WARRANTY; without even the implied warranty of
19061# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19062# GNU General Public License for more details.
19063#
19064# You should have received a copy of the GNU General Public License
19065# along with GNU Libtool; see the file COPYING. If not, a copy
19066# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19067# obtained by writing to the Free Software Foundation, Inc.,
19068# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19069
19070
19071# The names of the tagged configurations supported by this script.
19072available_tags="CXX "
19073
19074# ### BEGIN LIBTOOL CONFIG
19075
19076# Which release of libtool.m4 was used?
19077macro_version=$macro_version
19078macro_revision=$macro_revision
19079
19080# Whether or not to build shared libraries.
19081build_libtool_libs=$enable_shared
19082
19083# Whether or not to build static libraries.
19084build_old_libs=$enable_static
19085
19086# What type of objects to build.
19087pic_mode=$pic_mode
19088
19089# Whether or not to optimize for fast installation.
19090fast_install=$enable_fast_install
19091
19092# Shell to use when invoking shell scripts.
19093SHELL=$lt_SHELL
19094
19095# An echo program that protects backslashes.
19096ECHO=$lt_ECHO
19097
19098# The host system.
19099host_alias=$host_alias
19100host=$host
19101host_os=$host_os
19102
19103# The build system.
19104build_alias=$build_alias
19105build=$build
19106build_os=$build_os
19107
19108# A sed program that does not truncate output.
19109SED=$lt_SED
19110
19111# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19112Xsed="\$SED -e 1s/^X//"
19113
19114# A grep program that handles long lines.
19115GREP=$lt_GREP
19116
19117# An ERE matcher.
19118EGREP=$lt_EGREP
19119
19120# A literal string matcher.
19121FGREP=$lt_FGREP
19122
19123# A BSD- or MS-compatible name lister.
19124NM=$lt_NM
19125
19126# Whether we need soft or hard links.
19127LN_S=$lt_LN_S
19128
19129# What is the maximum length of a command?
19130max_cmd_len=$max_cmd_len
19131
19132# Object file suffix (normally "o").
19133objext=$ac_objext
19134
19135# Executable file suffix (normally "").
19136exeext=$exeext
19137
19138# whether the shell understands "unset".
19139lt_unset=$lt_unset
19140
19141# turn spaces into newlines.
19142SP2NL=$lt_lt_SP2NL
19143
19144# turn newlines into spaces.
19145NL2SP=$lt_lt_NL2SP
19146
19147# An object symbol dumper.
19148OBJDUMP=$lt_OBJDUMP
19149
19150# Method to check whether dependent libraries are shared objects.
19151deplibs_check_method=$lt_deplibs_check_method
19152
19153# Command to use when deplibs_check_method == "file_magic".
19154file_magic_cmd=$lt_file_magic_cmd
19155
19156# The archiver.
19157AR=$lt_AR
19158AR_FLAGS=$lt_AR_FLAGS
19159
19160# A symbol stripping program.
19161STRIP=$lt_STRIP
19162
19163# Commands used to install an old-style archive.
19164RANLIB=$lt_RANLIB
19165old_postinstall_cmds=$lt_old_postinstall_cmds
19166old_postuninstall_cmds=$lt_old_postuninstall_cmds
19167
19168# Whether to use a lock for old archive extraction.
19169lock_old_archive_extraction=$lock_old_archive_extraction
19170
19171# A C compiler.
19172LTCC=$lt_CC
19173
19174# LTCC compiler flags.
19175LTCFLAGS=$lt_CFLAGS
19176
19177# Take the output of nm and produce a listing of raw symbols and C names.
19178global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19179
19180# Transform the output of nm in a proper C declaration.
19181global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19182
19183# Transform the output of nm in a C name address pair.
19184global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19185
19186# Transform the output of nm in a C name address pair when lib prefix is needed.
19187global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19188
19189# The name of the directory that contains temporary libtool files.
19190objdir=$objdir
19191
19192# Used to examine libraries when file_magic_cmd begins with "file".
19193MAGIC_CMD=$MAGIC_CMD
19194
19195# Must we lock files when doing compilation?
19196need_locks=$lt_need_locks
19197
19198# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19199DSYMUTIL=$lt_DSYMUTIL
19200
19201# Tool to change global to local symbols on Mac OS X.
19202NMEDIT=$lt_NMEDIT
19203
19204# Tool to manipulate fat objects and archives on Mac OS X.
19205LIPO=$lt_LIPO
19206
19207# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19208OTOOL=$lt_OTOOL
19209
19210# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19211OTOOL64=$lt_OTOOL64
19212
19213# Old archive suffix (normally "a").
19214libext=$libext
19215
19216# Shared library suffix (normally ".so").
19217shrext_cmds=$lt_shrext_cmds
19218
19219# The commands to extract the exported symbol list from a shared archive.
19220extract_expsyms_cmds=$lt_extract_expsyms_cmds
19221
19222# Variables whose values should be saved in libtool wrapper scripts and
19223# restored at link time.
19224variables_saved_for_relink=$lt_variables_saved_for_relink
19225
19226# Do we need the "lib" prefix for modules?
19227need_lib_prefix=$need_lib_prefix
19228
19229# Do we need a version for libraries?
19230need_version=$need_version
19231
19232# Library versioning type.
19233version_type=$version_type
19234
19235# Shared library runtime path variable.
19236runpath_var=$runpath_var
19237
19238# Shared library path variable.
19239shlibpath_var=$shlibpath_var
19240
19241# Is shlibpath searched before the hard-coded library search path?
19242shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19243
19244# Format of library name prefix.
19245libname_spec=$lt_libname_spec
19246
19247# List of archive names. First name is the real one, the rest are links.
19248# The last name is the one that the linker finds with -lNAME
19249library_names_spec=$lt_library_names_spec
19250
19251# The coded name of the library, if different from the real name.
19252soname_spec=$lt_soname_spec
19253
19254# Permission mode override for installation of shared libraries.
19255install_override_mode=$lt_install_override_mode
19256
19257# Command to use after installation of a shared archive.
19258postinstall_cmds=$lt_postinstall_cmds
19259
19260# Command to use after uninstallation of a shared archive.
19261postuninstall_cmds=$lt_postuninstall_cmds
19262
19263# Commands used to finish a libtool library installation in a directory.
19264finish_cmds=$lt_finish_cmds
19265
19266# As "finish_cmds", except a single script fragment to be evaled but
19267# not shown.
19268finish_eval=$lt_finish_eval
19269
19270# Whether we should hardcode library paths into libraries.
19271hardcode_into_libs=$hardcode_into_libs
19272
19273# Compile-time system search path for libraries.
19274sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19275
19276# Run-time system search path for libraries.
19277sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19278
19279# Whether dlopen is supported.
19280dlopen_support=$enable_dlopen
19281
19282# Whether dlopen of programs is supported.
19283dlopen_self=$enable_dlopen_self
19284
19285# Whether dlopen of statically linked programs is supported.
19286dlopen_self_static=$enable_dlopen_self_static
19287
19288# Commands to strip libraries.
19289old_striplib=$lt_old_striplib
19290striplib=$lt_striplib
19291
19292
19293# The linker used to build libraries.
19294LD=$lt_LD
19295
19296# How to create reloadable object files.
19297reload_flag=$lt_reload_flag
19298reload_cmds=$lt_reload_cmds
19299
19300# Commands used to build an old-style archive.
19301old_archive_cmds=$lt_old_archive_cmds
19302
19303# A language specific compiler.
19304CC=$lt_compiler
19305
19306# Is the compiler the GNU compiler?
19307with_gcc=$GCC
19308
19309# Compiler flag to turn off builtin functions.
19310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19311
19312# How to pass a linker flag through the compiler.
19313wl=$lt_lt_prog_compiler_wl
19314
19315# Additional compiler flags for building library objects.
19316pic_flag=$lt_lt_prog_compiler_pic
19317
19318# Compiler flag to prevent dynamic linking.
19319link_static_flag=$lt_lt_prog_compiler_static
19320
19321# Does compiler simultaneously support -c and -o options?
19322compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19323
19324# Whether or not to add -lc for building shared libraries.
19325build_libtool_need_lc=$archive_cmds_need_lc
19326
19327# Whether or not to disallow shared libs when runtime libs are static.
19328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19329
19330# Compiler flag to allow reflexive dlopens.
19331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19332
19333# Compiler flag to generate shared objects directly from archives.
19334whole_archive_flag_spec=$lt_whole_archive_flag_spec
19335
19336# Whether the compiler copes with passing no objects directly.
19337compiler_needs_object=$lt_compiler_needs_object
19338
19339# Create an old-style archive from a shared archive.
19340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19341
19342# Create a temporary old-style archive to link instead of a shared archive.
19343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19344
19345# Commands used to build a shared archive.
19346archive_cmds=$lt_archive_cmds
19347archive_expsym_cmds=$lt_archive_expsym_cmds
19348
19349# Commands used to build a loadable module if different from building
19350# a shared archive.
19351module_cmds=$lt_module_cmds
19352module_expsym_cmds=$lt_module_expsym_cmds
19353
19354# Whether we are building with GNU ld or not.
19355with_gnu_ld=$lt_with_gnu_ld
19356
19357# Flag that allows shared libraries with undefined symbols to be built.
19358allow_undefined_flag=$lt_allow_undefined_flag
19359
19360# Flag that enforces no undefined symbols.
19361no_undefined_flag=$lt_no_undefined_flag
19362
19363# Flag to hardcode \$libdir into a binary during linking.
19364# This must work even if \$libdir does not exist
19365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19366
19367# If ld is used when linking, flag to hardcode \$libdir into a binary
19368# during linking. This must work even if \$libdir does not exist.
19369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19370
19371# Whether we need a single "-rpath" flag with a separated argument.
19372hardcode_libdir_separator=$lt_hardcode_libdir_separator
19373
19374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19375# DIR into the resulting binary.
19376hardcode_direct=$hardcode_direct
19377
19378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19379# DIR into the resulting binary and the resulting library dependency is
19380# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19381# library is relocated.
19382hardcode_direct_absolute=$hardcode_direct_absolute
19383
19384# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19385# into the resulting binary.
19386hardcode_minus_L=$hardcode_minus_L
19387
19388# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19389# into the resulting binary.
19390hardcode_shlibpath_var=$hardcode_shlibpath_var
19391
19392# Set to "yes" if building a shared library automatically hardcodes DIR
19393# into the library and all subsequent libraries and executables linked
19394# against it.
19395hardcode_automatic=$hardcode_automatic
19396
19397# Set to yes if linker adds runtime paths of dependent libraries
19398# to runtime path list.
19399inherit_rpath=$inherit_rpath
19400
19401# Whether libtool must link a program against all its dependency libraries.
19402link_all_deplibs=$link_all_deplibs
19403
19404# Fix the shell variable \$srcfile for the compiler.
19405fix_srcfile_path=$lt_fix_srcfile_path
19406
19407# Set to "yes" if exported symbols are required.
19408always_export_symbols=$always_export_symbols
19409
19410# The commands to list exported symbols.
19411export_symbols_cmds=$lt_export_symbols_cmds
19412
19413# Symbols that should not be listed in the preloaded symbols.
19414exclude_expsyms=$lt_exclude_expsyms
19415
19416# Symbols that must always be exported.
19417include_expsyms=$lt_include_expsyms
19418
19419# Commands necessary for linking programs (against libraries) with templates.
19420prelink_cmds=$lt_prelink_cmds
19421
19422# Specify filename containing input files.
19423file_list_spec=$lt_file_list_spec
19424
19425# How to hardcode a shared library path into an executable.
19426hardcode_action=$hardcode_action
19427
19428# The directories searched by this compiler when creating a shared library.
19429compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19430
19431# Dependencies to place before and after the objects being linked to
19432# create a shared library.
19433predep_objects=$lt_predep_objects
19434postdep_objects=$lt_postdep_objects
19435predeps=$lt_predeps
19436postdeps=$lt_postdeps
19437
19438# The library search path used internally by the compiler when linking
19439# a shared library.
19440compiler_lib_search_path=$lt_compiler_lib_search_path
19441
19442# ### END LIBTOOL CONFIG
19443
19444_LT_EOF
19445
19446 case $host_os in
19447 aix3*)
19448 cat <<\_LT_EOF >> "$cfgfile"
19449# AIX sometimes has problems with the GCC collect2 program. For some
19450# reason, if we set the COLLECT_NAMES environment variable, the problems
19451# vanish in a puff of smoke.
19452if test "X${COLLECT_NAMES+set}" != Xset; then
19453 COLLECT_NAMES=
19454 export COLLECT_NAMES
19455fi
19456_LT_EOF
19457 ;;
19458 esac
19459
19460
19461ltmain="$ac_aux_dir/ltmain.sh"
19462
19463
19464 # We use sed instead of cat because bash on DJGPP gets confused if
19465 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19466 # text mode, it properly converts lines to CR/LF. This bash problem
19467 # is reportedly fixed, but why not run on old versions too?
19468 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19469 || (rm -f "$cfgfile"; exit 1)
19470
19471 case $xsi_shell in
19472 yes)
19473 cat << \_LT_EOF >> "$cfgfile"
19474
19475# func_dirname file append nondir_replacement
19476# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19477# otherwise set result to NONDIR_REPLACEMENT.
19478func_dirname ()
19479{
19480 case ${1} in
19481 */*) func_dirname_result="${1%/*}${2}" ;;
19482 * ) func_dirname_result="${3}" ;;
19483 esac
19484}
19485
19486# func_basename file
19487func_basename ()
19488{
19489 func_basename_result="${1##*/}"
19490}
19491
19492# func_dirname_and_basename file append nondir_replacement
19493# perform func_basename and func_dirname in a single function
19494# call:
19495# dirname: Compute the dirname of FILE. If nonempty,
19496# add APPEND to the result, otherwise set result
19497# to NONDIR_REPLACEMENT.
19498# value returned in "$func_dirname_result"
19499# basename: Compute filename of FILE.
19500# value retuned in "$func_basename_result"
19501# Implementation must be kept synchronized with func_dirname
19502# and func_basename. For efficiency, we do not delegate to
19503# those functions but instead duplicate the functionality here.
19504func_dirname_and_basename ()
19505{
19506 case ${1} in
19507 */*) func_dirname_result="${1%/*}${2}" ;;
19508 * ) func_dirname_result="${3}" ;;
19509 esac
19510 func_basename_result="${1##*/}"
19511}
19512
19513# func_stripname prefix suffix name
19514# strip PREFIX and SUFFIX off of NAME.
19515# PREFIX and SUFFIX must not contain globbing or regex special
19516# characters, hashes, percent signs, but SUFFIX may contain a leading
19517# dot (in which case that matches only a dot).
19518func_stripname ()
19519{
19520 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19521 # positional parameters, so assign one to ordinary parameter first.
19522 func_stripname_result=${3}
19523 func_stripname_result=${func_stripname_result#"${1}"}
19524 func_stripname_result=${func_stripname_result%"${2}"}
19525}
19526
19527# func_opt_split
19528func_opt_split ()
19529{
19530 func_opt_split_opt=${1%%=*}
19531 func_opt_split_arg=${1#*=}
19532}
19533
19534# func_lo2o object
19535func_lo2o ()
19536{
19537 case ${1} in
19538 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19539 *) func_lo2o_result=${1} ;;
19540 esac
19541}
19542
19543# func_xform libobj-or-source
19544func_xform ()
19545{
19546 func_xform_result=${1%.*}.lo
19547}
19548
19549# func_arith arithmetic-term...
19550func_arith ()
19551{
19552 func_arith_result=$(( $* ))
19553}
19554
19555# func_len string
19556# STRING may not start with a hyphen.
19557func_len ()
19558{
19559 func_len_result=${#1}
19560}
19561
19562_LT_EOF
19563 ;;
19564 *) # Bourne compatible functions.
19565 cat << \_LT_EOF >> "$cfgfile"
19566
19567# func_dirname file append nondir_replacement
19568# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19569# otherwise set result to NONDIR_REPLACEMENT.
19570func_dirname ()
19571{
19572 # Extract subdirectory from the argument.
19573 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19574 if test "X$func_dirname_result" = "X${1}"; then
19575 func_dirname_result="${3}"
19576 else
19577 func_dirname_result="$func_dirname_result${2}"
19578 fi
19579}
19580
19581# func_basename file
19582func_basename ()
19583{
19584 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19585}
19586
19587
19588# func_stripname prefix suffix name
19589# strip PREFIX and SUFFIX off of NAME.
19590# PREFIX and SUFFIX must not contain globbing or regex special
19591# characters, hashes, percent signs, but SUFFIX may contain a leading
19592# dot (in which case that matches only a dot).
19593# func_strip_suffix prefix name
19594func_stripname ()
19595{
19596 case ${2} in
19597 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19598 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19599 esac
19600}
19601
19602# sed scripts:
19603my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19604my_sed_long_arg='1s/^-[^=]*=//'
19605
19606# func_opt_split
19607func_opt_split ()
19608{
19609 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19610 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19611}
19612
19613# func_lo2o object
19614func_lo2o ()
19615{
19616 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19617}
19618
19619# func_xform libobj-or-source
19620func_xform ()
19621{
19622 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19623}
19624
19625# func_arith arithmetic-term...
19626func_arith ()
19627{
19628 func_arith_result=`expr "$@"`
19629}
19630
19631# func_len string
19632# STRING may not start with a hyphen.
19633func_len ()
19634{
19635 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19636}
19637
19638_LT_EOF
19639esac
19640
19641case $lt_shell_append in
19642 yes)
19643 cat << \_LT_EOF >> "$cfgfile"
19644
19645# func_append var value
19646# Append VALUE to the end of shell variable VAR.
19647func_append ()
19648{
19649 eval "$1+=\$2"
19650}
19651_LT_EOF
19652 ;;
19653 *)
19654 cat << \_LT_EOF >> "$cfgfile"
19655
19656# func_append var value
19657# Append VALUE to the end of shell variable VAR.
19658func_append ()
19659{
19660 eval "$1=\$$1\$2"
19661}
19662
19663_LT_EOF
19664 ;;
19665 esac
19666
19667
19668 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19669 || (rm -f "$cfgfile"; exit 1)
19670
19671 mv -f "$cfgfile" "$ofile" ||
19672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19673 chmod +x "$ofile"
19674
19675
19676 cat <<_LT_EOF >> "$ofile"
19677
19678# ### BEGIN LIBTOOL TAG CONFIG: CXX
19679
19680# The linker used to build libraries.
19681LD=$lt_LD_CXX
19682
19683# How to create reloadable object files.
19684reload_flag=$lt_reload_flag_CXX
19685reload_cmds=$lt_reload_cmds_CXX
19686
19687# Commands used to build an old-style archive.
19688old_archive_cmds=$lt_old_archive_cmds_CXX
19689
19690# A language specific compiler.
19691CC=$lt_compiler_CXX
19692
19693# Is the compiler the GNU compiler?
19694with_gcc=$GCC_CXX
19695
19696# Compiler flag to turn off builtin functions.
19697no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19698
19699# How to pass a linker flag through the compiler.
19700wl=$lt_lt_prog_compiler_wl_CXX
19701
19702# Additional compiler flags for building library objects.
19703pic_flag=$lt_lt_prog_compiler_pic_CXX
19704
19705# Compiler flag to prevent dynamic linking.
19706link_static_flag=$lt_lt_prog_compiler_static_CXX
19707
19708# Does compiler simultaneously support -c and -o options?
19709compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19710
19711# Whether or not to add -lc for building shared libraries.
19712build_libtool_need_lc=$archive_cmds_need_lc_CXX
19713
19714# Whether or not to disallow shared libs when runtime libs are static.
19715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19716
19717# Compiler flag to allow reflexive dlopens.
19718export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19719
19720# Compiler flag to generate shared objects directly from archives.
19721whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19722
19723# Whether the compiler copes with passing no objects directly.
19724compiler_needs_object=$lt_compiler_needs_object_CXX
19725
19726# Create an old-style archive from a shared archive.
19727old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19728
19729# Create a temporary old-style archive to link instead of a shared archive.
19730old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19731
19732# Commands used to build a shared archive.
19733archive_cmds=$lt_archive_cmds_CXX
19734archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19735
19736# Commands used to build a loadable module if different from building
19737# a shared archive.
19738module_cmds=$lt_module_cmds_CXX
19739module_expsym_cmds=$lt_module_expsym_cmds_CXX
19740
19741# Whether we are building with GNU ld or not.
19742with_gnu_ld=$lt_with_gnu_ld_CXX
19743
19744# Flag that allows shared libraries with undefined symbols to be built.
19745allow_undefined_flag=$lt_allow_undefined_flag_CXX
19746
19747# Flag that enforces no undefined symbols.
19748no_undefined_flag=$lt_no_undefined_flag_CXX
19749
19750# Flag to hardcode \$libdir into a binary during linking.
19751# This must work even if \$libdir does not exist
19752hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19753
19754# If ld is used when linking, flag to hardcode \$libdir into a binary
19755# during linking. This must work even if \$libdir does not exist.
19756hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19757
19758# Whether we need a single "-rpath" flag with a separated argument.
19759hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19760
19761# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19762# DIR into the resulting binary.
19763hardcode_direct=$hardcode_direct_CXX
19764
19765# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19766# DIR into the resulting binary and the resulting library dependency is
19767# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19768# library is relocated.
19769hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19770
19771# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19772# into the resulting binary.
19773hardcode_minus_L=$hardcode_minus_L_CXX
19774
19775# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19776# into the resulting binary.
19777hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19778
19779# Set to "yes" if building a shared library automatically hardcodes DIR
19780# into the library and all subsequent libraries and executables linked
19781# against it.
19782hardcode_automatic=$hardcode_automatic_CXX
19783
19784# Set to yes if linker adds runtime paths of dependent libraries
19785# to runtime path list.
19786inherit_rpath=$inherit_rpath_CXX
19787
19788# Whether libtool must link a program against all its dependency libraries.
19789link_all_deplibs=$link_all_deplibs_CXX
19790
19791# Fix the shell variable \$srcfile for the compiler.
19792fix_srcfile_path=$lt_fix_srcfile_path_CXX
19793
19794# Set to "yes" if exported symbols are required.
19795always_export_symbols=$always_export_symbols_CXX
19796
19797# The commands to list exported symbols.
19798export_symbols_cmds=$lt_export_symbols_cmds_CXX
19799
19800# Symbols that should not be listed in the preloaded symbols.
19801exclude_expsyms=$lt_exclude_expsyms_CXX
19802
19803# Symbols that must always be exported.
19804include_expsyms=$lt_include_expsyms_CXX
19805
19806# Commands necessary for linking programs (against libraries) with templates.
19807prelink_cmds=$lt_prelink_cmds_CXX
19808
19809# Specify filename containing input files.
19810file_list_spec=$lt_file_list_spec_CXX
19811
19812# How to hardcode a shared library path into an executable.
19813hardcode_action=$hardcode_action_CXX
19814
19815# The directories searched by this compiler when creating a shared library.
19816compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19817
19818# Dependencies to place before and after the objects being linked to
19819# create a shared library.
19820predep_objects=$lt_predep_objects_CXX
19821postdep_objects=$lt_postdep_objects_CXX
19822predeps=$lt_predeps_CXX
19823postdeps=$lt_postdeps_CXX
19824
19825# The library search path used internally by the compiler when linking
19826# a shared library.
19827compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19828
19829# ### END LIBTOOL TAG CONFIG: CXX
19830_LT_EOF
19831
19832 ;;
19833 "include":C) test -d include || mkdir include ;;
19834 "src":C)
19835test -d src || mkdir src
19836test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19837 ;;
19838
19839 esac
19840done # for ac_tag
19841
19842
19843as_fn_exit 0
19844_ACEOF
19845ac_clean_files=$ac_clean_files_save
19846
19847test $ac_write_fail = 0 ||
19848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19849
19850
19851# configure is writing to config.log, and then calls config.status.
19852# config.status does its own redirection, appending to config.log.
19853# Unfortunately, on DOS this fails, as config.log is still kept open
19854# by configure, so config.status won't be able to write to it; its
19855# output is simply discarded. So we exec the FD to /dev/null,
19856# effectively closing config.log, so it can be properly (re)opened and
19857# appended to by config.status. When coming back to configure, we
19858# need to make the FD available again.
19859if test "$no_create" != yes; then
19860 ac_cs_success=:
19861 ac_config_status_args=
19862 test "$silent" = yes &&
19863 ac_config_status_args="$ac_config_status_args --quiet"
19864 exec 5>/dev/null
19865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19866 exec 5>>config.log
19867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19868 # would make configure fail if this is the last instruction.
19869 $ac_cs_success || as_fn_exit 1
19870fi
19871if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19873$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19874fi
19875
This page took 2.138585 seconds and 6 git commands to generate.