2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nlopt 2.4.2.
5 # Report bugs to <stevenj@alum.mit.edu>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $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
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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
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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
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 :
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
248 if test "x$CONFIG_SHELL" != x; then :
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.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $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
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."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: stevenj@alum.mit.edu about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
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
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
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.
421 as_status=$1; test $as_status -eq 0 && as_status=1
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
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
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. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='nlopt'
593 PACKAGE_VERSION='2.4.2'
594 PACKAGE_STRING='nlopt 2.4.2'
595 PACKAGE_BUGREPORT='stevenj@alum.mit.edu'
598 ac_unique_file="api/nlopt.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
732 MAINTAINER_MODE_FALSE
746 INSTALL_STRIP_PROGRAM
788 program_transform_name
801 enable_option_checking
803 enable_maintainer_mode
805 enable_dependency_tracking
821 ac_precious_vars='build_alias
844 # Initialize some variables set by options.
846 ac_init_version=false
847 ac_unrecognized_opts=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name=s,x,x,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures nlopt 2.4.2 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/nlopt]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of nlopt 2.4.2:";;
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-silent-rules less verbose build output (undo: "make V=1")
1461 --disable-silent-rules verbose build output (undo: "make V=0")
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465 --enable-shared[=PKGS] build shared libraries [default=no]
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-debug compile with extra runtime checks for debugging
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot=DIR Search for dependent libraries within DIR
1483 (or the compiler's sysroot if not specified).
1484 --with-cxx include C++-based routines
1485 --with-mthreads use -mthreads compiler flag
1486 --without-threadlocal no thread-local storage keyword
1487 --without-guile don't compile Guile plugin
1488 --without-python don't compile Python plugin
1489 --without-octave don't compile Octave plugin
1490 --without-matlab don't compile Matlab plugin
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1505 where to install Guile plug-ins
1506 PYTHON the Python interpreter
1508 python-config program
1510 where to install GNU Octave .oct plug-ins
1512 where to install GNU Octave .m plug-ins
1513 MKOCTFILE name of mkoctfile program to compile Octave plug-ins
1515 where to install Matlab .mex plug-ins
1516 MEX name of mex program to compile Matlab plug-ins
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1521 Report bugs to <stevenj@alum.mit.edu>.
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1584 nlopt configure 2.4.2
1585 generated by GNU Autoconf 2.69
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1634 } # ac_fn_c_try_compile
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_c_try_link
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1699 if ac_fn_c_try_compile "$LINENO"; then :
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_c_check_header_compile
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } > conftest.i && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=$ac_status
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1815 # include <limits.h>
1817 # include <assert.h>
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1844 if ac_fn_c_try_link "$LINENO"; then :
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_func
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_cxx_try_compile
1897 # ac_fn_cxx_try_cpp LINENO
1898 # ------------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_cpp ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_cpp conftest.$ac_ext"
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } > conftest.i && {
1919 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_cxx_try_cpp
1934 # ac_fn_cxx_try_link LINENO
1935 # -------------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_cxx_try_link ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 test -x conftest$ac_exeext
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_cxx_try_link
1980 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1985 ac_fn_c_check_header_mongrel ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if eval \${$3+:} false; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_header_compiler=yes
2009 ac_header_compiler=no
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 if ac_fn_c_try_cpp "$LINENO"; then :
2023 ac_header_preproc=yes
2025 ac_header_preproc=no
2027 rm -f conftest.err conftest.i conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ( $as_echo "## ----------------------------------- ##
2051 ## Report this to stevenj@alum.mit.edu ##
2052 ## ----------------------------------- ##"
2053 ) | sed "s/^/$as_me: WARNING: /" >&2
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2061 eval "$3=\$ac_header_compiler"
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 } # ac_fn_c_check_header_mongrel
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 ac_fn_c_compute_int ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=$ac_mid; break
2115 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2116 if test $ac_lo -le $ac_mid; then
2120 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) < 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2194 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2206 static long int longval () { return $2; }
2207 static unsigned long int ulongval () { return $2; }
2214 FILE *f = fopen ("conftest.val", "w");
2219 long int i = longval ();
2222 fprintf (f, "%ld", i);
2226 unsigned long int i = ulongval ();
2229 fprintf (f, "%lu", i);
2231 /* Do not output a trailing newline, as this causes \r\n confusion
2232 on some platforms. */
2233 return ferror (f) || fclose (f) != 0;
2239 if ac_fn_c_try_run "$LINENO"; then :
2240 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2245 conftest.$ac_objext conftest.beam conftest.$ac_ext
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_c_compute_int
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if eval \${$3+:} false; then :
2264 $as_echo_n "(cached) " >&6
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2292 if ac_fn_c_try_compile "$LINENO"; then :
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_type
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by nlopt $as_me 2.4.2, which was
2312 generated by GNU Autoconf 2.69. Invocation command line was
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_must_keep_next=false
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 -* ) ac_must_keep_next=true ;;
2404 as_fn_append ac_configure_args " '$ac_arg'"
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2426 # The following way of writing the cache mishandles newlines in values,
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2462 for ac_var in $ac_subst_vars
2464 eval ac_val=\$$ac_var
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2477 for ac_var in $ac_subst_files
2479 eval ac_val=\$$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2512 $as_echo "/* confdefs.h */" > confdefs.h
2514 # Predefined preprocessor variables.
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2552 elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 # Check that the precious variables saved in the cache have kept the same
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 SHARED_VERSION_INFO="8:2:8" # CURRENT:REVISION:AGE
2662 am__api_version='1.14'
2665 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2666 if test -f "$ac_dir/install-sh"; then
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2670 elif test -f "$ac_dir/install.sh"; then
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2674 elif test -f "$ac_dir/shtool"; then
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 if test -z "$ac_aux_dir"; then
2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2693 # Find a good install program. We prefer a C program (faster),
2694 # so one script is as good as another. But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # OS/2's system install, which has a completely different semantic
2705 # ./install, which can be erroneously created by make from ./install.sh.
2706 # Reject install programs that cannot install multiple files.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2709 if test -z "$INSTALL"; then
2710 if ${ac_cv_path_install+:} false; then :
2711 $as_echo_n "(cached) " >&6
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 # Account for people who put trailing slashes in PATH elements.
2719 case $as_dir/ in #((
2720 ./ | .// | /[cC]/* | \
2721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2725 # OSF1 and SCO ODT 3.0 have their own names for install.
2726 # Don't use installbsd from OSF since it installs stuff as root
2728 for ac_prog in ginstall scoinst install; do
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2731 if test $ac_prog = install &&
2732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # AIX install. It has an incompatible calling convention.
2735 elif test $ac_prog = install &&
2736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # program-specific install script used by HP pwplus--don't use.
2740 rm -rf conftest.one conftest.two conftest.dir
2741 echo one > conftest.one
2742 echo two > conftest.two
2744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745 test -s conftest.one && test -s conftest.two &&
2746 test -s conftest.dir/conftest.one &&
2747 test -s conftest.dir/conftest.two
2749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2762 rm -rf conftest.one conftest.two conftest.dir
2765 if test "${ac_cv_path_install+set}" = set; then
2766 INSTALL=$ac_cv_path_install
2768 # As a last resort, use the slow shell script. Don't cache a
2769 # value for INSTALL within a source directory, because that will
2770 # break other packages using the cache if that directory is
2771 # removed, or if the value is a relative name.
2772 INSTALL=$ac_install_sh
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776 $as_echo "$INSTALL" >&6; }
2778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779 # It thinks the first close brace ends the variable substitution.
2780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787 $as_echo_n "checking whether build environment is sane... " >&6; }
2788 # Reject unsafe characters in $srcdir or the absolute working directory
2789 # name. Accept space and tab only in the latter.
2793 *[\\\"\#\$\&\'\`$am_lf]*)
2794 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2797 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2798 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2801 # Do 'set' in a subshell so we don't clobber the current shell's
2802 # arguments. Must try -L first in case configure is actually a
2803 # symlink; some systems play weird games with the mod time of symlinks
2804 # (eg FreeBSD returns the mod time of the symlink's containing
2808 for am_try in 1 2; do
2809 echo "timestamp, slept: $am_has_slept" > conftest.file
2810 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811 if test "$*" = "X"; then
2813 set X `ls -t "$srcdir/configure" conftest.file`
2815 if test "$*" != "X $srcdir/configure conftest.file" \
2816 && test "$*" != "X conftest.file $srcdir/configure"; then
2818 # If neither matched, then we have a broken ls. This can happen
2819 # if, for instance, CONFIG_SHELL is bash and it inherits a
2820 # broken ls alias from the environment. This has actually
2821 # happened. Such a system could not be considered "sane".
2822 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2823 alias in your environment" "$LINENO" 5
2825 if test "$2" = conftest.file || test $am_try -eq 2; then
2832 test "$2" = conftest.file
2838 as_fn_error $? "newly created file is older than distributed files!
2839 Check your system clock" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 # If we didn't sleep, we still need to ensure time stamps of config.status and
2844 # generated files are strictly newer.
2846 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2853 test "$program_prefix" != NONE &&
2854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855 # Use a double $ so make ignores it.
2856 test "$program_suffix" != NONE &&
2857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858 # Double any \ or $.
2859 # By default was `s,x,x', remove it if useless.
2860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2863 # expand $ac_aux_dir to an absolute path
2864 am_aux_dir=`cd $ac_aux_dir && pwd`
2866 if test x"${MISSING+set}" != xset; then
2869 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2871 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2874 # Use eval to expand $SHELL
2875 if eval "$MISSING --is-lightweight"; then
2876 am_missing_run="$MISSING "
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2883 if test x"${install_sh}" != xset; then
2886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888 install_sh="\${SHELL} $am_aux_dir/install-sh"
2892 # Installed binaries are usually stripped using 'strip' when the user
2893 # run "make install-strip". However 'strip' might not be the right
2894 # tool to use in cross-compilation environments, therefore Automake
2895 # will honor the 'STRIP' environment variable to overrule this program.
2896 if test "$cross_compiling" != no; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}strip; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_STRIP+:} false; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$STRIP"; then
2906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 STRIP=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 $as_echo "$STRIP" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$ac_cv_prog_STRIP"; then
2938 # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$ac_ct_STRIP"; then
2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_STRIP="strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966 if test -n "$ac_ct_STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968 $as_echo "$ac_ct_STRIP" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2974 if test "x$ac_ct_STRIP" = x; then
2977 case $cross_compiling:$ac_tool_warned in
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2986 STRIP="$ac_cv_prog_STRIP"
2990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994 if test -z "$MKDIR_P"; then
2995 if ${ac_cv_path_mkdir+:} false; then :
2996 $as_echo_n "(cached) " >&6
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3002 test -z "$as_dir" && as_dir=.
3003 for ac_prog in mkdir gmkdir; do
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir (GNU coreutils) '* | \
3008 'mkdir (coreutils) '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3020 test -d ./--version && rmdir ./--version
3021 if test "${ac_cv_path_mkdir+set}" = set; then
3022 MKDIR_P="$ac_cv_path_mkdir -p"
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P="$ac_install_sh -d"
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 $as_echo "$MKDIR_P" >&6; }
3034 for ac_prog in gawk mawk nawk awk
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_AWK+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$AWK"; then
3044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_AWK="$ac_prog"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$AWK"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 $as_echo "$AWK" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3073 test -n "$AWK" && break
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 cat >conftest.make <<\_ACEOF
3086 @echo '@@@%%%=$(MAKE)=@@@%%%'
3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3091 eval ac_cv_prog_make_${ac_make}_set=yes;;
3093 eval ac_cv_prog_make_${ac_make}_set=no;;
3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 SET_MAKE="MAKE=${MAKE-make}"
3107 rm -rf .tst 2>/dev/null
3108 mkdir .tst 2>/dev/null
3109 if test -d .tst; then
3114 rmdir .tst 2>/dev/null
3116 # Check whether --enable-silent-rules was given.
3117 if test "${enable_silent_rules+set}" = set; then :
3118 enableval=$enable_silent_rules;
3121 case $enable_silent_rules in # (((
3122 yes) AM_DEFAULT_VERBOSITY=0;;
3123 no) AM_DEFAULT_VERBOSITY=1;;
3124 *) AM_DEFAULT_VERBOSITY=1;;
3126 am_make=${MAKE-make}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3129 if ${am_cv_make_support_nested_variables+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 if $as_echo 'TRUE=$(BAR$(V))
3138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139 am_cv_make_support_nested_variables=yes
3141 am_cv_make_support_nested_variables=no
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3146 if test $am_cv_make_support_nested_variables = yes; then
3148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3150 AM_V=$AM_DEFAULT_VERBOSITY
3151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157 # is not polluted with repeated "-I."
3158 am__isrc=' -I$(srcdir)'
3159 # test to see if srcdir already configured
3160 if test -f $srcdir/config.status; then
3161 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3175 # Define the identity of the package.
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE "$PACKAGE"
3185 cat >>confdefs.h <<_ACEOF
3186 #define VERSION "$VERSION"
3189 # Some tools Automake needs.
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3205 # For better backward compatibility. To be removed once Automake 1.9.x
3206 # dies out for good. For more background, see:
3207 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3208 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3209 mkdir_p='$(MKDIR_P)'
3211 # We need awk for the "check" target. The system "awk" is bad on
3213 # Always define AMTAR for backward compatibility. Yes, it's still used
3214 # in the wild :-( We should find a proper way to deprecate it ...
3218 # We'll loop over all known methods to create a tar archive until one works.
3219 _am_tools='gnutar pax cpio none'
3221 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3228 # POSIX will say in a future version that running "rm -f" with no argument
3229 # is OK; and we want to be able to make that assumption in our Makefile
3230 # recipes. So use an aggressive probe to check that the usage we want is
3231 # actually supported "in the wild" to an acceptable degree.
3232 # See automake bug#10828.
3233 # To make any issue more visible, cause the running configure to be aborted
3234 # by default if the 'rm' program in use doesn't match our expectations; the
3235 # user can still override this though.
3236 if rm -f && rm -fr && rm -rf; then : OK; else
3240 Your 'rm' program seems unable to run without file operands specified
3241 on the command line, even when the '-f' option is present. This is contrary
3242 to the behaviour of most rm programs out there, and not conforming with
3243 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3245 Please tell bug-automake@gnu.org about your system, including the value
3246 of your $PATH and any error possibly output before this message. This
3247 can help us improve future automake versions.
3250 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3251 echo 'Configuration will proceed anyway, since you have set the' >&2
3252 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3256 Aborting the configuration process, to ensure you take notice of the issue.
3258 You can download and install GNU coreutils to get an 'rm' implementation
3259 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3261 If you want to complete the configuration process using your problematic
3262 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3263 to "yes", and re-run configure.
3266 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3269 ac_config_headers="$ac_config_headers config.h"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3274 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3275 # Check whether --enable-maintainer-mode was given.
3276 if test "${enable_maintainer_mode+set}" = set; then :
3277 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3279 USE_MAINTAINER_MODE=no
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3283 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3284 if test $USE_MAINTAINER_MODE = yes; then
3285 MAINTAINER_MODE_TRUE=
3286 MAINTAINER_MODE_FALSE='#'
3288 MAINTAINER_MODE_TRUE='#'
3289 MAINTAINER_MODE_FALSE=
3292 MAINT=$MAINTAINER_MODE_TRUE
3296 # Check whether --enable-shared was given.
3297 if test "${enable_shared+set}" = set; then :
3298 enableval=$enable_shared; p=${PACKAGE-default}
3300 yes) enable_shared=yes ;;
3301 no) enable_shared=no ;;
3304 # Look at the argument we got. We use all the common list separators.
3305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3306 for pkg in $enableval; do
3308 if test "X$pkg" = "X$p"; then
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3371 if test -z "$ac_cv_prog_CC"; then
3373 # Extract the first word of "gcc", so it can be a program name with args.
3374 set dummy gcc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="gcc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3409 if test "x$ac_ct_CC" = x; then
3412 case $cross_compiling:$ac_tool_warned in
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}cc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="${ac_tool_prefix}cc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3465 if test -z "$CC"; then
3466 # Extract the first word of "cc", so it can be a program name with args.
3467 set dummy cc; 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; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3485 ac_prog_rejected=yes
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 if test $ac_prog_rejected = yes; then
3497 # We found a bogon in the path, so make sure we never use it.
3498 set dummy $ac_cv_prog_CC
3500 if test $# != 0; then
3501 # We chose a different compiler from the bogus one.
3502 # However, it has the same basename, so the bogon will be chosen
3503 # first if we set CC to just the basename; use the full file name.
3505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3521 if test -z "$CC"; then
3522 if test -n "$ac_tool_prefix"; then
3523 for ac_prog in cl.exe
3525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3562 test -n "$CC" && break
3565 if test -z "$CC"; then
3567 for ac_prog in cl.exe
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_ac_ct_CC="$ac_prog"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597 if test -n "$ac_ct_CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599 $as_echo "$ac_ct_CC" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3606 test -n "$ac_ct_CC" && break
3609 if test "x$ac_ct_CC" = x; then
3612 case $cross_compiling:$ac_tool_warned in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "no acceptable C compiler found in \$PATH
3628 See \`config.log' for more details" "$LINENO" 5; }
3630 # Provide some information about the compiler.
3631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3634 for ac_option in --version -v -V -qversion; do
3635 { { ac_try="$ac_compiler $ac_option >&5"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644 if test -s conftest.err; then
3646 ... rest of stderr output deleted ...
3647 10q' conftest.err >conftest.er1
3648 cat conftest.er1 >&5
3650 rm -f conftest.er1 conftest.err
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3666 ac_clean_files_save=$ac_clean_files
3667 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3668 # Try to create an executable without -o first, disregard a.out.
3669 # It will help us diagnose broken compilers, and finding out an intuition
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3672 $as_echo_n "checking whether the C compiler works... " >&6; }
3673 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3675 # The possible output files:
3676 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3679 for ac_file in $ac_files
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3688 if { { ac_try="$ac_link_default"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link_default") 2>&5
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3701 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3702 # so that the user can short-circuit this test for compilers unknown to
3704 for ac_file in $ac_files ''
3706 test -f "$ac_file" || continue
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3711 # We found the default executable, but exeext='' is most
3715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719 # We set ac_cv_exeext here because the later test for it is not
3720 # safe: cross compilers may not add the suffix if given an `-o'
3721 # argument, so we may need to know it at that point already.
3722 # Even if this section looks crufty: it has the advantage of
3729 test "$ac_cv_exeext" = no && ac_cv_exeext=
3734 if test -z "$ac_file"; then :
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error 77 "C compiler cannot create executables
3743 See \`config.log' for more details" "$LINENO" 5; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746 $as_echo "yes" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3749 $as_echo_n "checking for C compiler default output file name... " >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3751 $as_echo "$ac_file" >&6; }
3752 ac_exeext=$ac_cv_exeext
3754 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3755 ac_clean_files=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3757 $as_echo_n "checking for suffix of executables... " >&6; }
3758 if { { ac_try="$ac_link"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_link") 2>&5
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }; then :
3769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3771 # work properly (i.e., refer to `conftest.exe'), while it won't with
3773 for ac_file in conftest.exe conftest conftest.*; do
3774 test -f "$ac_file" || continue
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 rm -f conftest conftest$ac_cv_exeext
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3790 $as_echo "$ac_cv_exeext" >&6; }
3792 rm -f conftest.$ac_ext
3793 EXEEXT=$ac_cv_exeext
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3801 FILE *f = fopen ("conftest.out", "w");
3802 return ferror (f) || fclose (f) != 0;
3808 ac_clean_files="$ac_clean_files conftest.out"
3809 # Check that the compiler produces executables we can run. If not, either
3810 # the compiler is broken, or we cross compile.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3812 $as_echo_n "checking whether we are cross compiling... " >&6; }
3813 if test "$cross_compiling" != yes; then
3814 { { ac_try="$ac_link"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3825 if { ac_try='./conftest$ac_cv_exeext'
3826 { { case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_try") 2>&5
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; }; then
3838 if test "$cross_compiling" = maybe; then
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot run C compiled programs.
3844 If you meant to cross compile, use \`--host'.
3845 See \`config.log' for more details" "$LINENO" 5; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3850 $as_echo "$cross_compiling" >&6; }
3852 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3853 ac_clean_files=$ac_clean_files_save
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855 $as_echo_n "checking for suffix of object files... " >&6; }
3856 if ${ac_cv_objext+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 rm -f conftest.o conftest.obj
3871 if { { ac_try="$ac_compile"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_compile") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 for ac_file in conftest.o conftest.obj conftest.*; do
3883 test -f "$ac_file" || continue;
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "cannot compute suffix of object files: cannot compile
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902 $as_echo "$ac_cv_objext" >&6; }
3903 OBJEXT=$ac_cv_objext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3907 if ${ac_cv_c_compiler_gnu+:} false; then :
3908 $as_echo_n "(cached) " >&6
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3924 if ac_fn_c_try_compile "$LINENO"; then :
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3935 if test $ac_compiler_gnu = yes; then
3940 ac_test_CFLAGS=${CFLAGS+set}
3941 ac_save_CFLAGS=$CFLAGS
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3944 if ${ac_cv_prog_cc_g+:} false; then :
3945 $as_echo_n "(cached) " >&6
3947 ac_save_c_werror_flag=$ac_c_werror_flag
3948 ac_c_werror_flag=yes
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 if ac_fn_c_try_compile "$LINENO"; then :
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3977 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4004 $as_echo "$ac_cv_prog_cc_g" >&6; }
4005 if test "$ac_test_CFLAGS" = set; then
4006 CFLAGS=$ac_save_CFLAGS
4007 elif test $ac_cv_prog_cc_g = yes; then
4008 if test "$GCC" = yes; then
4014 if test "$GCC" = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4022 if ${ac_cv_prog_cc_c89+:} false; then :
4023 $as_echo_n "(cached) " >&6
4025 ac_cv_prog_cc_c89=no
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4033 struct buf { int x; };
4034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035 static char *e (p, i)
4041 static char *f (char * (*g) (char **, int), char **p, ...)
4046 s = g (p, va_arg (v,int));
4051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4052 function prototypes and stuff, but not '\xHH' hex character constants.
4053 These don't provoke an error unfortunately, instead are silently treated
4054 as 'x'. The following induces an error, until -std is added to get
4055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4056 array size at least. It's necessary to write '\x00'==0 to get something
4057 that's true only with -std. */
4058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061 inside strings and character constants. */
4063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4065 int test (int i, double x);
4066 struct s1 {int (*f) (int a);};
4067 struct s2 {int (*f) (double a);};
4068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4082 CC="$ac_save_CC $ac_arg"
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_cv_prog_cc_c89=$ac_arg
4086 rm -f core conftest.err conftest.$ac_objext
4087 test "x$ac_cv_prog_cc_c89" != "xno" && break
4089 rm -f conftest.$ac_ext
4094 case "x$ac_cv_prog_cc_c89" in
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4097 $as_echo "none needed" >&6; } ;;
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4100 $as_echo "unsupported" >&6; } ;;
4102 CC="$CC $ac_cv_prog_cc_c89"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4104 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4106 if test "x$ac_cv_prog_cc_c89" != xno; then :
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4122 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4123 if ${am_cv_prog_cc_c_o+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 # Make sure it works both with $CC and with simple cc.
4138 # Following AC_PROG_CC_C_O, we do the test twice because some
4139 # compilers refuse to overwrite an existing .o file with -o,
4140 # though they will create one.
4141 am_cv_prog_cc_c_o=yes
4143 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4144 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } \
4148 && test -f conftest2.$ac_objext; then
4151 am_cv_prog_cc_c_o=no
4155 rm -f core conftest*
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4159 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4160 if test "$am_cv_prog_cc_c_o" != yes; then
4161 # Losing compiler, so override with the script.
4162 # FIXME: It is wrong to rewrite CC.
4163 # But if we don't then we get into trouble of one sort or another.
4164 # A longer-term fix would be to have automake use am__CC in this case,
4165 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166 CC="$am_aux_dir/compile $CC"
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 DEPDIR="${am__leading_dot}deps"
4176 ac_config_commands="$ac_config_commands depfiles"
4179 am_make=${MAKE-make}
4180 cat > confinc << 'END'
4182 @echo this is the am__doit target
4185 # If we don't find an include directive, just comment out the code.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4191 # First try GNU make style include.
4192 echo "include confinc" > confmf
4193 # Ignore all kinds of additional output from 'make'.
4194 case `$am_make -s -f confmf 2> /dev/null` in #(
4195 *the\ am__doit\ target*)
4201 # Now try BSD make style include.
4202 if test "$am__include" = "#"; then
4203 echo '.include "confinc"' > confmf
4204 case `$am_make -s -f confmf 2> /dev/null` in #(
4205 *the\ am__doit\ target*)
4206 am__include=.include
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4215 $as_echo "$_am_result" >&6; }
4216 rm -f confinc confmf
4218 # Check whether --enable-dependency-tracking was given.
4219 if test "${enable_dependency_tracking+set}" = set; then :
4220 enableval=$enable_dependency_tracking;
4223 if test "x$enable_dependency_tracking" != xno; then
4224 am_depcomp="$ac_aux_dir/depcomp"
4228 if test "x$enable_dependency_tracking" != xno; then
4238 depcc="$CC" am_compiler_list=
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4241 $as_echo_n "checking dependency style of $depcc... " >&6; }
4242 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246 # We make a subdir and do the tests there. Otherwise we can end up
4247 # making bogus files that we don't know about and never remove. For
4248 # instance it was reported that on HP-UX the gcc test will end up
4249 # making a dummy file named 'D' -- because '-MD' means "put the output
4253 # Copy depcomp to subdir because otherwise we won't find it if we're
4254 # using a relative directory.
4255 cp "$am_depcomp" conftest.dir
4257 # We will build objects and dependencies in a subdirectory because
4258 # it helps to detect inapplicable dependency modes. For instance
4259 # both Tru64's cc and ICC support -MD to output dependencies as a
4260 # side effect of compilation, but ICC will put the dependencies in
4261 # the current directory while Tru64 will put them in the object
4265 am_cv_CC_dependencies_compiler_type=none
4266 if test "$am_compiler_list" = ""; then
4267 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4270 case " $depcc " in #(
4271 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4274 for depmode in $am_compiler_list; do
4275 # Setup a source with many dependencies, because some compilers
4276 # like to wrap large dependency lists on column 80 (with \), and
4277 # we should not choose a depcomp mode which is confused by this.
4279 # We need to recreate these files for each test, as the compiler may
4280 # overwrite some of them when testing with obscure command lines.
4281 # This happens at least with the AIX C compiler.
4283 for i in 1 2 3 4 5 6; do
4284 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4285 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4286 # Solaris 10 /bin/sh.
4287 echo '/* dummy */' > sub/conftst$i.h
4289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4292 # mode. It turns out that the SunPro C++ compiler does not properly
4293 # handle '-M -o', and we need to detect this. Also, some Intel
4294 # versions had trouble with output in subdirs.
4295 am__obj=sub/conftest.${OBJEXT-o}
4296 am__minus_obj="-o $am__obj"
4299 # This depmode causes a compiler race in universal mode.
4300 test "$am__universal" = false || continue
4303 # After this tag, mechanisms are not by side-effect, so they'll
4304 # only be used when explicitly requested.
4305 if test "x$enable_dependency_tracking" = xyes; then
4311 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4312 # This compiler won't grok '-c -o', but also, the minuso test has
4313 # not run yet. These depmodes are late enough in the game, and
4314 # so weak that their functioning should not be impacted.
4315 am__obj=conftest.${OBJEXT-o}
4320 if depmode=$depmode \
4321 source=sub/conftest.c object=$am__obj \
4322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4323 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4324 >/dev/null 2>conftest.err &&
4325 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4328 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4329 # icc doesn't choke on unknown options, it will just issue warnings
4330 # or remarks (even with -Werror). So we grep stderr for any message
4331 # that says an option was ignored or not supported.
4332 # When given -MP, icc 7.0 and 7.1 complain thusly:
4333 # icc: Command line warning: ignoring option '-M'; no argument required
4334 # The diagnosis changed in icc 8.0:
4335 # icc: Command line remark: option '-MP' not supported
4336 if (grep 'ignoring option' conftest.err ||
4337 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4338 am_cv_CC_dependencies_compiler_type=$depmode
4347 am_cv_CC_dependencies_compiler_type=none
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4352 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4353 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4356 test "x$enable_dependency_tracking" != xno \
4357 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359 am__fastdepCC_FALSE='#'
4361 am__fastdepCC_TRUE='#'
4362 am__fastdepCC_FALSE=
4366 case $ac_cv_prog_cc_stdc in #(
4368 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4371 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4372 if ${ac_cv_prog_cc_c99+:} false; then :
4373 $as_echo_n "(cached) " >&6
4375 ac_cv_prog_cc_c99=no
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 #include <stdbool.h>
4385 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4386 #define debug(...) fprintf (stderr, __VA_ARGS__)
4387 #define showlist(...) puts (#__VA_ARGS__)
4388 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4390 test_varargs_macros (void)
4395 debug ("X = %d\n", x);
4396 showlist (The first, second, and third items.);
4397 report (x>y, "x is %d but y is %d", x, y);
4400 // Check long long types.
4401 #define BIG64 18446744073709551615ull
4402 #define BIG32 4294967295ul
4403 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4405 your preprocessor is broken;
4409 your preprocessor is broken;
4411 static long long int bignum = -9223372036854775807LL;
4412 static unsigned long long int ubignum = BIG64;
4414 struct incomplete_array
4422 const wchar_t *name;
4426 typedef const char *ccp;
4429 test_restrict (ccp restrict text)
4431 // See if C++-style comments work.
4432 // Iterate through items via the restricted pointer.
4433 // Also check for declarations in for loops.
4434 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4439 // Check varargs and va_copy.
4441 test_varargs (const char *format, ...)
4444 va_start (args, format);
4446 va_copy (args_copy, args);
4457 str = va_arg (args_copy, const char *);
4460 number = va_arg (args_copy, int);
4463 fnumber = va_arg (args_copy, double);
4478 _Bool success = false;
4481 if (test_restrict ("String literal") == 0)
4483 char *restrict newvar = "Another string";
4486 test_varargs ("s, d' f .", "string", 65, 34.234);
4487 test_varargs_macros ();
4489 // Check flexible array members.
4490 struct incomplete_array *ia =
4491 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4493 for (int i = 0; i < ia->datasize; ++i)
4494 ia->data[i] = i * 1.234;
4496 // Check named initializers.
4497 struct named_init ni = {
4499 .name = L"Test wide string",
4500 .average = 543.34343,
4505 int dynamic_array[ni.number];
4506 dynamic_array[ni.number - 1] = 543;
4508 // work around unused variable warnings
4509 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4510 || dynamic_array[ni.number - 1] != 543);
4516 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4518 CC="$ac_save_CC $ac_arg"
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_prog_cc_c99=$ac_arg
4522 rm -f core conftest.err conftest.$ac_objext
4523 test "x$ac_cv_prog_cc_c99" != "xno" && break
4525 rm -f conftest.$ac_ext
4530 case "x$ac_cv_prog_cc_c99" in
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4533 $as_echo "none needed" >&6; } ;;
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4536 $as_echo "unsupported" >&6; } ;;
4538 CC="$CC $ac_cv_prog_cc_c99"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4540 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4542 if test "x$ac_cv_prog_cc_c99" != xno; then :
4543 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4547 if ${ac_cv_prog_cc_c89+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 ac_cv_prog_cc_c89=no
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4558 struct buf { int x; };
4559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4560 static char *e (p, i)
4566 static char *f (char * (*g) (char **, int), char **p, ...)
4571 s = g (p, va_arg (v,int));
4576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4577 function prototypes and stuff, but not '\xHH' hex character constants.
4578 These don't provoke an error unfortunately, instead are silently treated
4579 as 'x'. The following induces an error, until -std is added to get
4580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4581 array size at least. It's necessary to write '\x00'==0 to get something
4582 that's true only with -std. */
4583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4586 inside strings and character constants. */
4588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4590 int test (int i, double x);
4591 struct s1 {int (*f) (int a);};
4592 struct s2 {int (*f) (double a);};
4593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4607 CC="$ac_save_CC $ac_arg"
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_prog_cc_c89=$ac_arg
4611 rm -f core conftest.err conftest.$ac_objext
4612 test "x$ac_cv_prog_cc_c89" != "xno" && break
4614 rm -f conftest.$ac_ext
4619 case "x$ac_cv_prog_cc_c89" in
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4622 $as_echo "none needed" >&6; } ;;
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4625 $as_echo "unsupported" >&6; } ;;
4627 CC="$CC $ac_cv_prog_cc_c89"
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4629 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4631 if test "x$ac_cv_prog_cc_c89" != xno; then :
4632 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4634 ac_cv_prog_cc_stdc=no
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4641 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4642 if ${ac_cv_prog_cc_stdc+:} false; then :
4643 $as_echo_n "(cached) " >&6
4646 case $ac_cv_prog_cc_stdc in #(
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649 $as_echo "unsupported" >&6; } ;; #(
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4652 $as_echo "none needed" >&6; } ;; #(
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4655 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4660 $as_echo_n "checking whether ln -s works... " >&6; }
4662 if test "$LN_S" = "ln -s"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4664 $as_echo "yes" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4667 $as_echo "no, using $LN_S" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4674 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4675 $as_echo_n "(cached) " >&6
4677 cat >conftest.make <<\_ACEOF
4680 @echo '@@@%%%=$(MAKE)=@@@%%%'
4682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4685 eval ac_cv_prog_make_${ac_make}_set=yes;;
4687 eval ac_cv_prog_make_${ac_make}_set=no;;
4691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4693 $as_echo "yes" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 SET_MAKE="MAKE=${MAKE-make}"
4701 # Make sure we can run config.sub.
4702 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4703 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4706 $as_echo_n "checking build system type... " >&6; }
4707 if ${ac_cv_build+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_build_alias=$build_alias
4711 test "x$ac_build_alias" = x &&
4712 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4713 test "x$ac_build_alias" = x &&
4714 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4715 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4720 $as_echo "$ac_cv_build" >&6; }
4721 case $ac_cv_build in
4723 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4726 ac_save_IFS=$IFS; IFS='-'
4732 # Remember, the first character of IFS is used to create $*,
4733 # except with old shells:
4736 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4740 $as_echo_n "checking host system type... " >&6; }
4741 if ${ac_cv_host+:} false; then :
4742 $as_echo_n "(cached) " >&6
4744 if test "x$host_alias" = x; then
4745 ac_cv_host=$ac_cv_build
4747 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4753 $as_echo "$ac_cv_host" >&6; }
4756 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4759 ac_save_IFS=$IFS; IFS='-'
4765 # Remember, the first character of IFS is used to create $*,
4766 # except with old shells:
4769 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4772 enable_win32_dll=yes
4775 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}as; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_AS+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -n "$AS"; then
4785 ac_cv_prog_AS="$AS" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_AS="${ac_tool_prefix}as"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 if test -n "$AS"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4807 $as_echo "$AS" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4815 if test -z "$ac_cv_prog_AS"; then
4817 # Extract the first word of "as", so it can be a program name with args.
4818 set dummy as; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$ac_ct_AS"; then
4825 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834 ac_cv_prog_ac_ct_AS="as"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4845 if test -n "$ac_ct_AS"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4847 $as_echo "$ac_ct_AS" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4853 if test "x$ac_ct_AS" = x; then
4856 case $cross_compiling:$ac_tool_warned in
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4868 if test -n "$ac_tool_prefix"; then
4869 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4870 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_DLLTOOL+:} false; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$DLLTOOL"; then
4877 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 DLLTOOL=$ac_cv_prog_DLLTOOL
4897 if test -n "$DLLTOOL"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4899 $as_echo "$DLLTOOL" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4907 if test -z "$ac_cv_prog_DLLTOOL"; then
4908 ac_ct_DLLTOOL=$DLLTOOL
4909 # Extract the first word of "dlltool", so it can be a program name with args.
4910 set dummy dlltool; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$ac_ct_DLLTOOL"; then
4917 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4937 if test -n "$ac_ct_DLLTOOL"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4939 $as_echo "$ac_ct_DLLTOOL" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4945 if test "x$ac_ct_DLLTOOL" = x; then
4948 case $cross_compiling:$ac_tool_warned in
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned=yes ;;
4954 DLLTOOL=$ac_ct_DLLTOOL
4957 DLLTOOL="$ac_cv_prog_DLLTOOL"
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_OBJDUMP+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$OBJDUMP"; then
4969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 OBJDUMP=$ac_cv_prog_OBJDUMP
4989 if test -n "$OBJDUMP"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4991 $as_echo "$OBJDUMP" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4999 if test -z "$ac_cv_prog_OBJDUMP"; then
5000 ac_ct_OBJDUMP=$OBJDUMP
5001 # Extract the first word of "objdump", so it can be a program name with args.
5002 set dummy objdump; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$ac_ct_OBJDUMP"; then
5009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029 if test -n "$ac_ct_OBJDUMP"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5031 $as_echo "$ac_ct_OBJDUMP" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5037 if test "x$ac_ct_OBJDUMP" = x; then
5040 case $cross_compiling:$ac_tool_warned in
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5046 OBJDUMP=$ac_ct_OBJDUMP
5049 OBJDUMP="$ac_cv_prog_OBJDUMP"
5055 test -z "$AS" && AS=as
5061 test -z "$DLLTOOL" && DLLTOOL=dlltool
5067 test -z "$OBJDUMP" && OBJDUMP=objdump
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5083 macro_version='2.4.2'
5084 macro_revision='1.3337'
5098 ltmain="$ac_aux_dir/ltmain.sh"
5100 # Backslashify metacharacters that are still active within
5101 # double-quoted strings.
5102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5104 # Same as above, but do not quote variable references.
5105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5107 # Sed substitution to delay expansion of an escaped shell variable in a
5108 # double_quote_subst'ed string.
5109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5111 # Sed substitution to delay expansion of an escaped single quote.
5112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5114 # Sed substitution to avoid accidental globbing in evaled expressions
5115 no_glob_subst='s/\*/\\\*/g'
5117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5122 $as_echo_n "checking how to print strings... " >&6; }
5123 # Test print first, because it will be a builtin if present.
5124 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5130 # Use this function as a fallback that always works.
5131 func_fallback_echo ()
5133 eval 'cat <<_LTECHO_EOF
5137 ECHO='func_fallback_echo'
5140 # func_echo_all arg...
5141 # Invoke $ECHO with all args, space-separated.
5148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5149 $as_echo "printf" >&6; } ;;
5150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5151 $as_echo "print -r" >&6; } ;;
5152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5153 $as_echo "cat" >&6; } ;;
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5171 if ${ac_cv_path_SED+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5175 for ac_i in 1 2 3 4 5 6 7; do
5176 ac_script="$ac_script$as_nl$ac_script"
5178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5179 { ac_script=; unset ac_script;}
5180 if test -z "$SED"; then
5181 ac_path_SED_found=false
5182 # Loop through the user's path and test for each of PROGNAME-LIST
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_prog in sed gsed; do
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5191 as_fn_executable_p "$ac_path_SED" || continue
5192 # Check for GNU ac_path_SED and select it if it is found.
5193 # Check for GNU $ac_path_SED
5194 case `"$ac_path_SED" --version 2>&1` in
5196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5199 $as_echo_n 0123456789 >"conftest.in"
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 $as_echo '' >> "conftest.nl"
5206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_SED_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_SED="$ac_path_SED"
5212 ac_path_SED_max=$ac_count
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 $ac_path_SED_found && break 3
5225 if test -z "$ac_cv_path_SED"; then
5226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234 $as_echo "$ac_cv_path_SED" >&6; }
5235 SED="$ac_cv_path_SED"
5238 test -z "$SED" && SED=sed
5239 Xsed="$SED -e 1s/^X//"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5253 if ${ac_cv_path_GREP+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -z "$GREP"; then
5257 ac_path_GREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in grep ggrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5267 as_fn_executable_p "$ac_path_GREP" || continue
5268 # Check for GNU ac_path_GREP and select it if it is found.
5269 # Check for GNU $ac_path_GREP
5270 case `"$ac_path_GREP" --version 2>&1` in
5272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5275 $as_echo_n 0123456789 >"conftest.in"
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'GREP' >> "conftest.nl"
5282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_GREP="$ac_path_GREP"
5288 ac_path_GREP_max=$ac_count
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 $ac_path_GREP_found && break 3
5301 if test -z "$ac_cv_path_GREP"; then
5302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 ac_cv_path_GREP=$GREP
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5310 $as_echo "$ac_cv_path_GREP" >&6; }
5311 GREP="$ac_cv_path_GREP"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5315 $as_echo_n "checking for egrep... " >&6; }
5316 if ${ac_cv_path_EGREP+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5320 then ac_cv_path_EGREP="$GREP -E"
5322 if test -z "$EGREP"; then
5323 ac_path_EGREP_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329 test -z "$as_dir" && as_dir=.
5330 for ac_prog in egrep; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5333 as_fn_executable_p "$ac_path_EGREP" || continue
5334 # Check for GNU ac_path_EGREP and select it if it is found.
5335 # Check for GNU $ac_path_EGREP
5336 case `"$ac_path_EGREP" --version 2>&1` in
5338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5341 $as_echo_n 0123456789 >"conftest.in"
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 $as_echo 'EGREP' >> "conftest.nl"
5348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_EGREP="$ac_path_EGREP"
5354 ac_path_EGREP_max=$ac_count
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 $ac_path_EGREP_found && break 3
5367 if test -z "$ac_cv_path_EGREP"; then
5368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371 ac_cv_path_EGREP=$EGREP
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5377 $as_echo "$ac_cv_path_EGREP" >&6; }
5378 EGREP="$ac_cv_path_EGREP"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5382 $as_echo_n "checking for fgrep... " >&6; }
5383 if ${ac_cv_path_FGREP+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5387 then ac_cv_path_FGREP="$GREP -F"
5389 if test -z "$FGREP"; then
5390 ac_path_FGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 test -z "$as_dir" && as_dir=.
5397 for ac_prog in fgrep; do
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5400 as_fn_executable_p "$ac_path_FGREP" || continue
5401 # Check for GNU ac_path_FGREP and select it if it is found.
5402 # Check for GNU $ac_path_FGREP
5403 case `"$ac_path_FGREP" --version 2>&1` in
5405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5408 $as_echo_n 0123456789 >"conftest.in"
5411 cat "conftest.in" "conftest.in" >"conftest.tmp"
5412 mv "conftest.tmp" "conftest.in"
5413 cp "conftest.in" "conftest.nl"
5414 $as_echo 'FGREP' >> "conftest.nl"
5415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417 as_fn_arith $ac_count + 1 && ac_count=$as_val
5418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5419 # Best one so far, save it but keep looking for a better one
5420 ac_cv_path_FGREP="$ac_path_FGREP"
5421 ac_path_FGREP_max=$ac_count
5423 # 10*(2^10) chars as input seems more than enough
5424 test $ac_count -gt 10 && break
5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 $ac_path_FGREP_found && break 3
5434 if test -z "$ac_cv_path_FGREP"; then
5435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 ac_cv_path_FGREP=$FGREP
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5444 $as_echo "$ac_cv_path_FGREP" >&6; }
5445 FGREP="$ac_cv_path_FGREP"
5448 test -z "$GREP" && GREP=grep
5468 # Check whether --with-gnu-ld was given.
5469 if test "${with_gnu_ld+set}" = set; then :
5470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5476 if test "$GCC" = yes; then
5477 # Check if gcc -print-prog-name=ld gives a path.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5479 $as_echo_n "checking for ld used by $CC... " >&6; }
5482 # gcc leaves a trailing carriage return which upsets mingw
5483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5488 # Accept absolute paths.
5490 re_direlt='/[^/][^/]*/\.\./'
5491 # Canonicalize the pathname of ld
5492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5496 test -z "$LD" && LD="$ac_prog"
5499 # If it fails, then pretend we aren't using GCC.
5503 # If it is relative, then search for the first ld in PATH.
5507 elif test "$with_gnu_ld" = yes; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5509 $as_echo_n "checking for GNU ld... " >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5512 $as_echo_n "checking for non-GNU ld... " >&6; }
5514 if ${lt_cv_path_LD+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 if test -z "$LD"; then
5518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5519 for ac_dir in $PATH; do
5521 test -z "$ac_dir" && ac_dir=.
5522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5523 lt_cv_path_LD="$ac_dir/$ac_prog"
5524 # Check to see if the program is GNU ld. I'd rather use --version,
5525 # but apparently some variants of GNU ld only accept -v.
5526 # Break only if it was the GNU/non-GNU ld that we prefer.
5527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5528 *GNU* | *'with BFD'*)
5529 test "$with_gnu_ld" != no && break
5532 test "$with_gnu_ld" != yes && break
5539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5544 if test -n "$LD"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5546 $as_echo "$LD" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5554 if ${lt_cv_prog_gnu_ld+:} false; then :
5555 $as_echo_n "(cached) " >&6
5557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5558 case `$LD -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 lt_cv_prog_gnu_ld=yes
5563 lt_cv_prog_gnu_ld=no
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5569 with_gnu_ld=$lt_cv_prog_gnu_ld
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5580 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5581 if ${lt_cv_path_NM+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$NM"; then
5585 # Let the user override the test.
5588 lt_nm_to_check="${ac_tool_prefix}nm"
5589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5590 lt_nm_to_check="$lt_nm_to_check nm"
5592 for lt_tmp_nm in $lt_nm_to_check; do
5593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5596 test -z "$ac_dir" && ac_dir=.
5597 tmp_nm="$ac_dir/$lt_tmp_nm"
5598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5599 # Check to see if the nm accepts a BSD-compat flag.
5600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5601 # nm: unknown option "B" ignored
5602 # Tru64's nm complains that /dev/null is an invalid object file
5603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5604 */dev/null* | *'Invalid file or object type'*)
5605 lt_cv_path_NM="$tmp_nm -B"
5609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5611 lt_cv_path_NM="$tmp_nm -p"
5615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5616 continue # so that we can try to find one that supports BSD flags
5625 : ${lt_cv_path_NM=no}
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5629 $as_echo "$lt_cv_path_NM" >&6; }
5630 if test "$lt_cv_path_NM" != "no"; then
5633 # Didn't find any BSD compatible name lister, look for dumpbin.
5634 if test -n "$DUMPBIN"; then :
5635 # Let the user override the test.
5637 if test -n "$ac_tool_prefix"; then
5638 for ac_prog in dumpbin "link -dump"
5640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_DUMPBIN+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$DUMPBIN"; then
5648 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 DUMPBIN=$ac_cv_prog_DUMPBIN
5668 if test -n "$DUMPBIN"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5670 $as_echo "$DUMPBIN" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5677 test -n "$DUMPBIN" && break
5680 if test -z "$DUMPBIN"; then
5681 ac_ct_DUMPBIN=$DUMPBIN
5682 for ac_prog in dumpbin "link -dump"
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 if test -n "$ac_ct_DUMPBIN"; then
5692 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5712 if test -n "$ac_ct_DUMPBIN"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5714 $as_echo "$ac_ct_DUMPBIN" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 test -n "$ac_ct_DUMPBIN" && break
5724 if test "x$ac_ct_DUMPBIN" = x; then
5727 case $cross_compiling:$ac_tool_warned in
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5733 DUMPBIN=$ac_ct_DUMPBIN
5737 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5739 DUMPBIN="$DUMPBIN -symbols"
5747 if test "$DUMPBIN" != ":"; then
5751 test -z "$NM" && NM=nm
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5760 if ${lt_cv_nm_interface+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 lt_cv_nm_interface="BSD nm"
5764 echo "int some_variable = 0;" > conftest.$ac_ext
5765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5766 (eval "$ac_compile" 2>conftest.err)
5767 cat conftest.err >&5
5768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5770 cat conftest.err >&5
5771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5772 cat conftest.out >&5
5773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5774 lt_cv_nm_interface="MS dumpbin"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5779 $as_echo "$lt_cv_nm_interface" >&6; }
5781 # find the maximum length of command line arguments
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5784 if ${lt_cv_sys_max_cmd_len+:} false; then :
5785 $as_echo_n "(cached) " >&6
5792 # On DJGPP, this test can blow up pretty badly due to problems in libc
5793 # (any single argument exceeding 2000 bytes causes a buffer overrun
5794 # during glob expansion). Even if it were fixed, the result of this
5795 # check would be larger than it should be.
5796 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5800 # Under GNU Hurd, this test is not required because there is
5801 # no limit to the length of command line arguments.
5802 # Libtool will interpret -1 as no limit whatsoever
5803 lt_cv_sys_max_cmd_len=-1;
5806 cygwin* | mingw* | cegcc*)
5807 # On Win9x/ME, this test blows up -- it succeeds, but takes
5808 # about 5 minutes as the teststring grows exponentially.
5809 # Worse, since 9x/ME are not pre-emptively multitasking,
5810 # you end up with a "frozen" computer, even though with patience
5811 # the test eventually succeeds (with a max line length of 256k).
5812 # Instead, let's just punt: use the minimum linelength reported by
5813 # all of the supported platforms: 8192 (on NT/2K/XP).
5814 lt_cv_sys_max_cmd_len=8192;
5818 # On MiNT this can take a long time and run out of memory.
5819 lt_cv_sys_max_cmd_len=8192;
5823 # On AmigaOS with pdksh, this test takes hours, literally.
5824 # So we just punt and use a minimum line length of 8192.
5825 lt_cv_sys_max_cmd_len=8192;
5828 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5829 # This has been around since 386BSD, at least. Likely further.
5830 if test -x /sbin/sysctl; then
5831 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5832 elif test -x /usr/sbin/sysctl; then
5833 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5837 # And add a safety zone
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5844 lt_cv_sys_max_cmd_len=196608
5848 # The test takes a long time on OS/2.
5849 lt_cv_sys_max_cmd_len=8192
5853 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5854 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5855 # nice to cause kernel panics so lets avoid the loop below.
5856 # First set a reasonable default.
5857 lt_cv_sys_max_cmd_len=16384
5859 if test -x /sbin/sysconfig; then
5860 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5861 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866 lt_cv_sys_max_cmd_len=102400
5868 sysv5* | sco5v6* | sysv4.2uw2*)
5869 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5870 if test -n "$kargmax"; then
5871 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5873 lt_cv_sys_max_cmd_len=32768
5877 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5878 if test -n "$lt_cv_sys_max_cmd_len"; then
5879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5882 # Make teststring a little bigger before we do anything with it.
5883 # a 1K string should be a reasonable start.
5884 for i in 1 2 3 4 5 6 7 8 ; do
5885 teststring=$teststring$teststring
5887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5888 # If test is not a shell built-in, we'll probably end up computing a
5889 # maximum length that is only half of the actual maximum length, but
5891 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5892 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5893 test $i != 17 # 1/2 MB should be enough
5896 teststring=$teststring$teststring
5898 # Only check the string length outside the loop.
5899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5901 # Add a significant safety factor because C++ compilers can tack on
5902 # massive amounts of additional arguments before passing them to the
5903 # linker. It appears as though 1/2 is a usable value.
5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5911 if test -n $lt_cv_sys_max_cmd_len ; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5913 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5916 $as_echo "none" >&6; }
5918 max_cmd_len=$lt_cv_sys_max_cmd_len
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5930 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5931 # Try some XSI features
5934 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5936 && eval 'test $(( 1 + 1 )) -eq 2 \
5937 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5940 $as_echo "$xsi_shell" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5944 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5946 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5948 && lt_shell_append=yes
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5950 $as_echo "$lt_shell_append" >&6; }
5953 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5963 # test EBCDIC or ASCII
5964 case `echo X|tr X '\101'` in
5965 A) # ASCII based system
5966 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5967 lt_SP2NL='tr \040 \012'
5968 lt_NL2SP='tr \015\012 \040\040'
5970 *) # EBCDIC based system
5971 lt_SP2NL='tr \100 \n'
5972 lt_NL2SP='tr \r\n \100\100'
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5985 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5986 if ${lt_cv_to_host_file_cmd+:} false; then :
5987 $as_echo_n "(cached) " >&6
5992 *-*-mingw* ) # actually msys
5993 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5996 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5998 * ) # otherwise, assume *nix
5999 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6005 *-*-mingw* ) # actually msys
6006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6009 lt_cv_to_host_file_cmd=func_convert_file_noop
6011 * ) # otherwise, assume *nix
6012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6016 * ) # unhandled hosts (and "normal" native builds)
6017 lt_cv_to_host_file_cmd=func_convert_file_noop
6023 to_host_file_cmd=$lt_cv_to_host_file_cmd
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6025 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6032 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6033 if ${lt_cv_to_tool_file_cmd+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 #assume ordinary cross tools, or native build.
6037 lt_cv_to_tool_file_cmd=func_convert_file_noop
6041 *-*-mingw* ) # actually msys
6042 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6050 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6052 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6059 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6060 if ${lt_cv_ld_reload_flag+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 lt_cv_ld_reload_flag='-r'
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6066 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6067 reload_flag=$lt_cv_ld_reload_flag
6068 case $reload_flag in
6070 *) reload_flag=" $reload_flag" ;;
6072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6074 cygwin* | mingw* | pw32* | cegcc*)
6075 if test "$GCC" != yes; then
6080 if test "$GCC" = yes; then
6081 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_OBJDUMP+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$OBJDUMP"; then
6105 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 OBJDUMP=$ac_cv_prog_OBJDUMP
6125 if test -n "$OBJDUMP"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6127 $as_echo "$OBJDUMP" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_prog_OBJDUMP"; then
6136 ac_ct_OBJDUMP=$OBJDUMP
6137 # Extract the first word of "objdump", so it can be a program name with args.
6138 set dummy objdump; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$ac_ct_OBJDUMP"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6165 if test -n "$ac_ct_OBJDUMP"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6167 $as_echo "$ac_ct_OBJDUMP" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6173 if test "x$ac_ct_OBJDUMP" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6182 OBJDUMP=$ac_ct_OBJDUMP
6185 OBJDUMP="$ac_cv_prog_OBJDUMP"
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6196 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6197 if ${lt_cv_deplibs_check_method+:} false; then :
6198 $as_echo_n "(cached) " >&6
6200 lt_cv_file_magic_cmd='$MAGIC_CMD'
6201 lt_cv_file_magic_test_file=
6202 lt_cv_deplibs_check_method='unknown'
6203 # Need to set the preceding variable on all platforms that support
6204 # interlibrary dependencies.
6205 # 'none' -- dependencies not supported.
6206 # `unknown' -- same as none, but documents that we really don't know.
6207 # 'pass_all' -- all dependencies passed with no checks.
6208 # 'test_compile' -- check by making test program.
6209 # 'file_magic [[regex]]' -- check by looking for files in library path
6210 # which responds to the $file_magic_cmd with a given extended regex.
6211 # If you have `file' or equivalent on your system and you're not sure
6212 # whether `pass_all' will *always* work, you probably want this one.
6216 lt_cv_deplibs_check_method=pass_all
6220 lt_cv_deplibs_check_method=pass_all
6224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6225 lt_cv_file_magic_cmd='/usr/bin/file -L'
6226 lt_cv_file_magic_test_file=/shlib/libc.so
6230 # func_win32_libid is a shell function defined in ltmain.sh
6231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6232 lt_cv_file_magic_cmd='func_win32_libid'
6236 # Base MSYS/MinGW do not provide the 'file' command needed by
6237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6238 # unless we find 'file', for example because we are cross-compiling.
6239 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6240 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6241 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6242 lt_cv_file_magic_cmd='func_win32_libid'
6244 # Keep this pattern in sync with the one in func_win32_libid.
6245 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6246 lt_cv_file_magic_cmd='$OBJDUMP -f'
6251 # use the weaker test based on 'objdump'. See mingw*.
6252 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6253 lt_cv_file_magic_cmd='$OBJDUMP -f'
6256 darwin* | rhapsody*)
6257 lt_cv_deplibs_check_method=pass_all
6260 freebsd* | dragonfly*)
6261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 # Not sure whether the presence of OpenBSD here was a mistake.
6265 # Let's accept both of them until this is cleared up.
6266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6267 lt_cv_file_magic_cmd=/usr/bin/file
6268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6272 lt_cv_deplibs_check_method=pass_all
6277 lt_cv_deplibs_check_method=pass_all
6281 lt_cv_deplibs_check_method=pass_all
6284 hpux10.20* | hpux11*)
6285 lt_cv_file_magic_cmd=/usr/bin/file
6288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6292 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]'
6293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6297 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6307 irix5* | irix6* | nonstopux*)
6309 *-32|*"-32 ") libmagic=32-bit;;
6310 *-n32|*"-n32 ") libmagic=N32;;
6311 *-64|*"-64 ") libmagic=64-bit;;
6312 *) libmagic=never-match;;
6314 lt_cv_deplibs_check_method=pass_all
6317 # This must be glibc/ELF.
6318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6319 lt_cv_deplibs_check_method=pass_all
6323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6332 lt_cv_file_magic_cmd=/usr/bin/file
6333 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6337 lt_cv_deplibs_check_method=pass_all
6341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6348 osf3* | osf4* | osf5*)
6349 lt_cv_deplibs_check_method=pass_all
6353 lt_cv_deplibs_check_method=pass_all
6357 lt_cv_deplibs_check_method=pass_all
6360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6361 lt_cv_deplibs_check_method=pass_all
6365 case $host_vendor in
6367 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]'
6368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6371 lt_cv_deplibs_check_method=pass_all
6374 lt_cv_file_magic_cmd='/bin/file'
6375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6378 lt_cv_file_magic_cmd='/bin/file'
6379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6380 lt_cv_file_magic_test_file=/lib/libc.so
6383 lt_cv_deplibs_check_method=pass_all
6386 lt_cv_deplibs_check_method=pass_all
6392 lt_cv_deplibs_check_method=pass_all
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6398 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6402 if test "$build" = "$host"; then
6405 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6408 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6414 file_magic_cmd=$lt_cv_file_magic_cmd
6415 deplibs_check_method=$lt_cv_deplibs_check_method
6416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_DLLTOOL+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$DLLTOOL"; then
6448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 DLLTOOL=$ac_cv_prog_DLLTOOL
6468 if test -n "$DLLTOOL"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6470 $as_echo "$DLLTOOL" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6478 if test -z "$ac_cv_prog_DLLTOOL"; then
6479 ac_ct_DLLTOOL=$DLLTOOL
6480 # Extract the first word of "dlltool", so it can be a program name with args.
6481 set dummy dlltool; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_DLLTOOL"; then
6488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6508 if test -n "$ac_ct_DLLTOOL"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6510 $as_echo "$ac_ct_DLLTOOL" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6516 if test "x$ac_ct_DLLTOOL" = x; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6525 DLLTOOL=$ac_ct_DLLTOOL
6528 DLLTOOL="$ac_cv_prog_DLLTOOL"
6531 test -z "$DLLTOOL" && DLLTOOL=dlltool
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6540 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6541 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6542 $as_echo_n "(cached) " >&6
6544 lt_cv_sharedlib_from_linklib_cmd='unknown'
6547 cygwin* | mingw* | pw32* | cegcc*)
6548 # two different shell functions defined in ltmain.sh
6549 # decide which to use based on capabilities of $DLLTOOL
6550 case `$DLLTOOL --help 2>&1` in
6551 *--identify-strict*)
6552 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6555 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6560 # fallback: assume linklib IS sharedlib
6561 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6567 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6568 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6569 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6578 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_AR+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$AR"; then
6589 ac_cv_prog_AR="$AR" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 if test -n "$AR"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6611 $as_echo "$AR" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6618 test -n "$AR" && break
6621 if test -z "$AR"; then
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_AR"; then
6633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_AR="$ac_prog"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6653 if test -n "$ac_ct_AR"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6655 $as_echo "$ac_ct_AR" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6662 test -n "$ac_ct_AR" && break
6665 if test "x$ac_ct_AR" = x; then
6668 case $cross_compiling:$ac_tool_warned in
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6692 $as_echo_n "checking for archiver @FILE support... " >&6; }
6693 if ${lt_cv_ar_at_file+:} false; then :
6694 $as_echo_n "(cached) " >&6
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 echo conftest.$ac_objext > conftest.lst
6710 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6712 (eval $lt_ar_try) 2>&5
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; }
6716 if test "$ac_status" -eq 0; then
6717 # Ensure the archiver fails upon bogus file names.
6718 rm -f conftest.$ac_objext libconftest.a
6719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6720 (eval $lt_ar_try) 2>&5
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }
6724 if test "$ac_status" -ne 0; then
6728 rm -f conftest.* libconftest.a
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6735 $as_echo "$lt_cv_ar_at_file" >&6; }
6737 if test "x$lt_cv_ar_at_file" = xno; then
6740 archiver_list_spec=$lt_cv_ar_at_file
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}strip; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_STRIP+:} false; then :
6755 $as_echo_n "(cached) " >&6
6757 if test -n "$STRIP"; then
6758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 STRIP=$ac_cv_prog_STRIP
6778 if test -n "$STRIP"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6780 $as_echo "$STRIP" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6788 if test -z "$ac_cv_prog_STRIP"; then
6790 # Extract the first word of "strip", so it can be a program name with args.
6791 set dummy strip; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$ac_ct_STRIP"; then
6798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_STRIP="strip"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818 if test -n "$ac_ct_STRIP"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6820 $as_echo "$ac_ct_STRIP" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6826 if test "x$ac_ct_STRIP" = x; then
6829 case $cross_compiling:$ac_tool_warned in
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6838 STRIP="$ac_cv_prog_STRIP"
6841 test -z "$STRIP" && STRIP=:
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_RANLIB+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$RANLIB"; then
6857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 RANLIB=$ac_cv_prog_RANLIB
6877 if test -n "$RANLIB"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6879 $as_echo "$RANLIB" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6887 if test -z "$ac_cv_prog_RANLIB"; then
6888 ac_ct_RANLIB=$RANLIB
6889 # Extract the first word of "ranlib", so it can be a program name with args.
6890 set dummy ranlib; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6894 $as_echo_n "(cached) " >&6
6896 if test -n "$ac_ct_RANLIB"; then
6897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_ac_ct_RANLIB="ranlib"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917 if test -n "$ac_ct_RANLIB"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6919 $as_echo "$ac_ct_RANLIB" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6925 if test "x$ac_ct_RANLIB" = x; then
6928 case $cross_compiling:$ac_tool_warned in
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6934 RANLIB=$ac_ct_RANLIB
6937 RANLIB="$ac_cv_prog_RANLIB"
6940 test -z "$RANLIB" && RANLIB=:
6947 # Determine commands to create old-style static archives.
6948 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6949 old_postinstall_cmds='chmod 644 $oldlib'
6950 old_postuninstall_cmds=
6952 if test -n "$RANLIB"; then
6955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6958 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6961 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6966 lock_old_archive_extraction=yes ;;
6968 lock_old_archive_extraction=no ;;
7009 # If no C compiler was specified, use CC.
7012 # If no C compiler flags were specified, use CFLAGS.
7013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7015 # Allow CC to be a program name with arguments.
7019 # Check for command to grab the raw symbol name followed by C symbol from nm.
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7021 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7022 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7023 $as_echo_n "(cached) " >&6
7026 # These are sane defaults that work on at least a few old systems.
7027 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7029 # Character class describing NM global symbol codes.
7030 symcode='[BCDEGRST]'
7032 # Regexp to match symbols that can be accessed directly from C.
7033 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7035 # Define system-specific variables.
7040 cygwin* | mingw* | pw32* | cegcc*)
7041 symcode='[ABCDGISTW]'
7044 if test "$host_cpu" = ia64; then
7045 symcode='[ABCDEGRST]'
7049 symcode='[BCDEGRST]'
7052 symcode='[BCDEGQRST]'
7063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7071 # If we're using GNU nm, then use its standard symbol codes.
7072 case `$NM -V 2>&1` in
7073 *GNU* | *'with BFD'*)
7074 symcode='[ABCDGIRSTW]' ;;
7077 # Transform an extracted symbol line into a proper C declaration.
7078 # Some systems (esp. on ia64) link data and code symbols differently,
7079 # so use this general approach.
7080 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7082 # Transform an extracted symbol line into symbol name and symbol address
7083 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7084 lt_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'"
7086 # Handle CRLF in mingw tool chain
7090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7094 # Try without a prefix underscore, then with it.
7095 for ac_symprfx in "" "_"; do
7097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7098 symxfrm="\\1 $ac_symprfx\\2 \\2"
7100 # Write the raw and C identifiers.
7101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7102 # Fake it for dumpbin and say T for any non-static function
7103 # and D for any global variable.
7104 # Also find C++ and __fastcall symbols from MSVC++,
7105 # which start with @ or ?.
7106 lt_cv_sys_global_symbol_pipe="$AWK '"\
7107 " {last_section=section; section=\$ 3};"\
7108 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7109 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7110 " \$ 0!~/External *\|/{next};"\
7111 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7112 " {if(hide[section]) next};"\
7113 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7114 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7115 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7116 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7117 " ' prfx=^$ac_symprfx"
7119 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7121 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7123 # Check to see that the pipe works correctly.
7127 cat > conftest.$ac_ext <<_LT_EOF
7132 void nm_test_func(void);
7133 void nm_test_func(void){}
7137 int main(){nm_test_var='a';nm_test_func();return(0);}
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141 (eval $ac_compile) 2>&5
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; then
7145 # Now try to grab the symbols.
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7148 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; } && test -s "$nlist"; then
7152 # Try sorting and uniquifying the output.
7153 if sort "$nlist" | uniq > "$nlist"T; then
7154 mv -f "$nlist"T "$nlist"
7159 # Make sure that we snagged all the symbols we need.
7160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7162 cat <<_LT_EOF > conftest.$ac_ext
7163 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7164 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7165 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7166 relocations are performed -- see ld's documentation on pseudo-relocs. */
7167 # define LT_DLSYM_CONST
7168 #elif defined(__osf__)
7169 /* This system does not cope well with relocations in const data. */
7170 # define LT_DLSYM_CONST
7172 # define LT_DLSYM_CONST const
7180 # Now generate the symbol file.
7181 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7183 cat <<_LT_EOF >> conftest.$ac_ext
7185 /* The mapping between symbol names and symbols. */
7186 LT_DLSYM_CONST struct {
7190 lt__PROGRAM__LTX_preloaded_symbols[] =
7192 { "@PROGRAM@", (void *) 0 },
7194 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7195 cat <<\_LT_EOF >> conftest.$ac_ext
7199 /* This works around a problem in FreeBSD linker */
7200 #ifdef FREEBSD_WORKAROUND
7201 static const void *lt_preloaded_setup() {
7202 return lt__PROGRAM__LTX_preloaded_symbols;
7210 # Now try linking the two files.
7211 mv conftest.$ac_objext conftstm.$ac_objext
7212 lt_globsym_save_LIBS=$LIBS
7213 lt_globsym_save_CFLAGS=$CFLAGS
7214 LIBS="conftstm.$ac_objext"
7215 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7217 (eval $ac_link) 2>&5
7219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7223 LIBS=$lt_globsym_save_LIBS
7224 CFLAGS=$lt_globsym_save_CFLAGS
7226 echo "cannot find nm_test_func in $nlist" >&5
7229 echo "cannot find nm_test_var in $nlist" >&5
7232 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7235 echo "$progname: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 rm -rf conftest* conftst*
7240 # Do not use the global_symbol_pipe unless it works.
7241 if test "$pipe_works" = yes; then
7244 lt_cv_sys_global_symbol_pipe=
7250 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7251 lt_cv_sys_global_symbol_to_cdecl=
7253 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7255 $as_echo "failed" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7258 $as_echo "ok" >&6; }
7261 # Response file support.
7262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7263 nm_file_list_spec='@'
7264 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7265 nm_file_list_spec='@'
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7295 $as_echo_n "checking for sysroot... " >&6; }
7297 # Check whether --with-sysroot was given.
7298 if test "${with_sysroot+set}" = set; then :
7299 withval=$with_sysroot;
7306 case ${with_sysroot} in #(
7308 if test "$GCC" = yes; then
7309 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7313 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7319 $as_echo "${with_sysroot}" >&6; }
7320 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7325 $as_echo "${lt_sysroot:-no}" >&6; }
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338 # Some flags need to be propagated to the compiler or linker for good
7342 # Find out which ABI we are using.
7343 echo 'int i;' > conftest.$ac_ext
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7361 # Find out which ABI we are using.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test "$lt_cv_prog_gnu_ld" = yes; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7371 LD="${LD-ld} -melf32bsmip"
7374 LD="${LD-ld} -melf32bmipn32"
7377 LD="${LD-ld} -melf64bmip"
7381 case `/usr/bin/file conftest.$ac_objext` in
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7409 x86_64-*kfreebsd*-gnu)
7410 LD="${LD-ld} -m elf_i386_fbsd"
7413 LD="${LD-ld} -m elf_i386"
7415 ppc64-*linux*|powerpc64-*linux*)
7416 LD="${LD-ld} -m elf32ppclinux"
7419 LD="${LD-ld} -m elf_s390"
7422 LD="${LD-ld} -m elf32_sparc"
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_x86_64_fbsd"
7432 LD="${LD-ld} -m elf_x86_64"
7434 ppc*-*linux*|powerpc*-*linux*)
7435 LD="${LD-ld} -m elf64ppc"
7437 s390*-*linux*|s390*-*tpf*)
7438 LD="${LD-ld} -m elf64_s390"
7441 LD="${LD-ld} -m elf64_sparc"
7451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7452 SAVE_CFLAGS="$CFLAGS"
7453 CFLAGS="$CFLAGS -belf"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7455 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7456 if ${lt_cv_cc_needs_belf+:} false; then :
7457 $as_echo_n "(cached) " >&6
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 lt_cv_cc_needs_belf=yes
7479 lt_cv_cc_needs_belf=no
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7491 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7492 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7494 CFLAGS="$SAVE_CFLAGS"
7498 # Find out which ABI we are using.
7499 echo 'int i;' > conftest.$ac_ext
7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501 (eval $ac_compile) 2>&5
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; then
7505 case `/usr/bin/file conftest.o` in
7507 case $lt_cv_prog_gnu_ld in
7511 LD="${LD-ld} -m elf_x86_64"
7514 LD="${LD-ld} -m elf64_sparc"
7517 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7518 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7535 need_locks="$enable_libtool_lock"
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}mt; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$MANIFEST_TOOL"; then
7546 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7566 if test -n "$MANIFEST_TOOL"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7568 $as_echo "$MANIFEST_TOOL" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7576 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7577 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7578 # Extract the first word of "mt", so it can be a program name with args.
7579 set dummy mt; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7583 $as_echo_n "(cached) " >&6
7585 if test -n "$ac_ct_MANIFEST_TOOL"; then
7586 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7606 if test -n "$ac_ct_MANIFEST_TOOL"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7608 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7614 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7617 case $cross_compiling:$ac_tool_warned in
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7623 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7626 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7629 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7631 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7632 if ${lt_cv_path_mainfest_tool+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 lt_cv_path_mainfest_tool=no
7636 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7637 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7638 cat conftest.err >&5
7639 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7640 lt_cv_path_mainfest_tool=yes
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7645 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7646 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7656 rhapsody* | darwin*)
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$DSYMUTIL"; then
7666 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7686 if test -n "$DSYMUTIL"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7688 $as_echo "$DSYMUTIL" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_DSYMUTIL"; then
7697 ac_ct_DSYMUTIL=$DSYMUTIL
7698 # Extract the first word of "dsymutil", so it can be a program name with args.
7699 set dummy dsymutil; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_DSYMUTIL"; then
7706 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7726 if test -n "$ac_ct_DSYMUTIL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7728 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_DSYMUTIL" = x; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7743 DSYMUTIL=$ac_ct_DSYMUTIL
7746 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_NMEDIT+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$NMEDIT"; then
7758 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 NMEDIT=$ac_cv_prog_NMEDIT
7778 if test -n "$NMEDIT"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7780 $as_echo "$NMEDIT" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 if test -z "$ac_cv_prog_NMEDIT"; then
7789 ac_ct_NMEDIT=$NMEDIT
7790 # Extract the first word of "nmedit", so it can be a program name with args.
7791 set dummy nmedit; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$ac_ct_NMEDIT"; then
7798 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7818 if test -n "$ac_ct_NMEDIT"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7820 $as_echo "$ac_ct_NMEDIT" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_ct_NMEDIT" = x; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7835 NMEDIT=$ac_ct_NMEDIT
7838 NMEDIT="$ac_cv_prog_NMEDIT"
7841 if test -n "$ac_tool_prefix"; then
7842 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if ${ac_cv_prog_LIPO+:} false; then :
7847 $as_echo_n "(cached) " >&6
7849 if test -n "$LIPO"; then
7850 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 LIPO=$ac_cv_prog_LIPO
7870 if test -n "$LIPO"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7872 $as_echo "$LIPO" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 if test -z "$ac_cv_prog_LIPO"; then
7882 # Extract the first word of "lipo", so it can be a program name with args.
7883 set dummy lipo; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7887 $as_echo_n "(cached) " >&6
7889 if test -n "$ac_ct_LIPO"; then
7890 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_ac_ct_LIPO="lipo"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7910 if test -n "$ac_ct_LIPO"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7912 $as_echo "$ac_ct_LIPO" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7918 if test "x$ac_ct_LIPO" = x; then
7921 case $cross_compiling:$ac_tool_warned in
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned=yes ;;
7930 LIPO="$ac_cv_prog_LIPO"
7933 if test -n "$ac_tool_prefix"; then
7934 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}otool; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_prog_OTOOL+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 if test -n "$OTOOL"; then
7942 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 OTOOL=$ac_cv_prog_OTOOL
7962 if test -n "$OTOOL"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7964 $as_echo "$OTOOL" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7972 if test -z "$ac_cv_prog_OTOOL"; then
7974 # Extract the first word of "otool", so it can be a program name with args.
7975 set dummy otool; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7979 $as_echo_n "(cached) " >&6
7981 if test -n "$ac_ct_OTOOL"; then
7982 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_ac_ct_OTOOL="otool"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8002 if test -n "$ac_ct_OTOOL"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8004 $as_echo "$ac_ct_OTOOL" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8010 if test "x$ac_ct_OTOOL" = x; then
8013 case $cross_compiling:$ac_tool_warned in
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8022 OTOOL="$ac_cv_prog_OTOOL"
8025 if test -n "$ac_tool_prefix"; then
8026 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8027 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if ${ac_cv_prog_OTOOL64+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 if test -n "$OTOOL64"; then
8034 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 OTOOL64=$ac_cv_prog_OTOOL64
8054 if test -n "$OTOOL64"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8056 $as_echo "$OTOOL64" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8064 if test -z "$ac_cv_prog_OTOOL64"; then
8065 ac_ct_OTOOL64=$OTOOL64
8066 # Extract the first word of "otool64", so it can be a program name with args.
8067 set dummy otool64; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8071 $as_echo_n "(cached) " >&6
8073 if test -n "$ac_ct_OTOOL64"; then
8074 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_ac_ct_OTOOL64="otool64"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8094 if test -n "$ac_ct_OTOOL64"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8096 $as_echo "$ac_ct_OTOOL64" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8102 if test "x$ac_ct_OTOOL64" = x; then
8105 case $cross_compiling:$ac_tool_warned in
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109 ac_tool_warned=yes ;;
8111 OTOOL64=$ac_ct_OTOOL64
8114 OTOOL64="$ac_cv_prog_OTOOL64"
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8144 $as_echo_n "checking for -single_module linker flag... " >&6; }
8145 if ${lt_cv_apple_cc_single_mod+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 lt_cv_apple_cc_single_mod=no
8149 if test -z "${LT_MULTI_MODULE}"; then
8150 # By default we will add the -single_module flag. You can override
8151 # by either setting the environment variable LT_MULTI_MODULE
8152 # non-empty at configure time, or by adding -multi_module to the
8154 rm -rf libconftest.dylib*
8155 echo "int foo(void){return 1;}" > conftest.c
8156 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8157 -dynamiclib -Wl,-single_module conftest.c" >&5
8158 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8161 # If there is a non-empty error log, and "single_module"
8162 # appears in it, assume the flag caused a linker warning
8163 if test -s conftest.err && $GREP single_module conftest.err; then
8164 cat conftest.err >&5
8165 # Otherwise, if the output was created with a 0 exit code from
8166 # the compiler, it worked.
8167 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8168 lt_cv_apple_cc_single_mod=yes
8170 cat conftest.err >&5
8172 rm -rf libconftest.dylib*
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8177 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8180 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8181 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_ld_exported_symbols_list=no
8185 save_LDFLAGS=$LDFLAGS
8186 echo "_main" > conftest.sym
8187 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8199 if ac_fn_c_try_link "$LINENO"; then :
8200 lt_cv_ld_exported_symbols_list=yes
8202 lt_cv_ld_exported_symbols_list=no
8204 rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 LDFLAGS="$save_LDFLAGS"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8213 $as_echo_n "checking for -force_load linker flag... " >&6; }
8214 if ${lt_cv_ld_force_load+:} false; then :
8215 $as_echo_n "(cached) " >&6
8217 lt_cv_ld_force_load=no
8218 cat > conftest.c << _LT_EOF
8219 int forced_loaded() { return 2;}
8221 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8222 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8223 echo "$AR cru libconftest.a conftest.o" >&5
8224 $AR cru libconftest.a conftest.o 2>&5
8225 echo "$RANLIB libconftest.a" >&5
8226 $RANLIB libconftest.a 2>&5
8227 cat > conftest.c << _LT_EOF
8228 int main() { return 0;}
8230 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8231 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8233 if test -s conftest.err && $GREP force_load conftest.err; then
8234 cat conftest.err >&5
8235 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8236 lt_cv_ld_force_load=yes
8238 cat conftest.err >&5
8240 rm -f conftest.err libconftest.a conftest conftest.c
8241 rm -rf conftest.dSYM
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8245 $as_echo "$lt_cv_ld_force_load" >&6; }
8247 rhapsody* | darwin1.[012])
8248 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8251 darwin*) # darwin 5.x on
8252 # if running on 10.5 or later, the deployment target defaults
8253 # to the OS version, if on x86, and 10.4, the deployment
8254 # target defaults to 10.4. Don't you love it?
8255 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8256 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8257 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8261 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8266 _lt_dar_single_mod='$single_module'
8268 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8269 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8271 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8273 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8274 _lt_dsymutil='~$DSYMUTIL $lib || :'
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8287 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8288 # On Suns, sometimes $CPP names a directory.
8289 if test -n "$CPP" && test -d "$CPP"; then
8292 if test -z "$CPP"; then
8293 if ${ac_cv_prog_CPP+:} false; then :
8294 $as_echo_n "(cached) " >&6
8296 # Double quotes because CPP needs to be expanded
8297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8300 for ac_c_preproc_warn_flag in '' yes
8302 # Use a header file that comes with gcc, so configuring glibc
8303 # with a fresh cross-compiler works.
8304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305 # <limits.h> exists even on freestanding compilers.
8306 # On the NeXT, cc -E runs the code through the compiler's parser,
8307 # not just through cpp. "Syntax error" is here to catch this case.
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8311 # include <limits.h>
8313 # include <assert.h>
8317 if ac_fn_c_try_cpp "$LINENO"; then :
8320 # Broken: fails on valid input.
8323 rm -f conftest.err conftest.i conftest.$ac_ext
8325 # OK, works on sane cases. Now check whether nonexistent headers
8326 # can be detected and how.
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 #include <ac_nonexistent.h>
8331 if ac_fn_c_try_cpp "$LINENO"; then :
8332 # Broken: success on invalid input.
8335 # Passes both tests.
8339 rm -f conftest.err conftest.i conftest.$ac_ext
8342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8343 rm -f conftest.i conftest.err conftest.$ac_ext
8344 if $ac_preproc_ok; then :
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8357 $as_echo "$CPP" >&6; }
8359 for ac_c_preproc_warn_flag in '' yes
8361 # Use a header file that comes with gcc, so configuring glibc
8362 # with a fresh cross-compiler works.
8363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8364 # <limits.h> exists even on freestanding compilers.
8365 # On the NeXT, cc -E runs the code through the compiler's parser,
8366 # not just through cpp. "Syntax error" is here to catch this case.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8370 # include <limits.h>
8372 # include <assert.h>
8376 if ac_fn_c_try_cpp "$LINENO"; then :
8379 # Broken: fails on valid input.
8382 rm -f conftest.err conftest.i conftest.$ac_ext
8384 # OK, works on sane cases. Now check whether nonexistent headers
8385 # can be detected and how.
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #include <ac_nonexistent.h>
8390 if ac_fn_c_try_cpp "$LINENO"; then :
8391 # Broken: success on invalid input.
8394 # Passes both tests.
8398 rm -f conftest.err conftest.i conftest.$ac_ext
8401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8402 rm -f conftest.i conftest.err conftest.$ac_ext
8403 if $ac_preproc_ok; then :
8406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8408 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8409 See \`config.log' for more details" "$LINENO" 5; }
8413 ac_cpp='$CPP $CPPFLAGS'
8414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8420 $as_echo_n "checking for ANSI C header files... " >&6; }
8421 if ${ac_cv_header_stdc+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 ac_cv_header_stdc=yes
8442 ac_cv_header_stdc=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 if test $ac_cv_header_stdc = yes; then
8447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8454 $EGREP "memchr" >/dev/null 2>&1; then :
8457 ac_cv_header_stdc=no
8463 if test $ac_cv_header_stdc = yes; then
8464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8471 $EGREP "free" >/dev/null 2>&1; then :
8474 ac_cv_header_stdc=no
8480 if test $ac_cv_header_stdc = yes; then
8481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8482 if test "$cross_compiling" = yes; then :
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8489 #if ((' ' & 0x0FF) == 0x020)
8490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8493 # define ISLOWER(c) \
8494 (('a' <= (c) && (c) <= 'i') \
8495 || ('j' <= (c) && (c) <= 'r') \
8496 || ('s' <= (c) && (c) <= 'z'))
8497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8505 for (i = 0; i < 256; i++)
8506 if (XOR (islower (i), ISLOWER (i))
8507 || toupper (i) != TOUPPER (i))
8512 if ac_fn_c_try_run "$LINENO"; then :
8515 ac_cv_header_stdc=no
8517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8518 conftest.$ac_objext conftest.beam conftest.$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8524 $as_echo "$ac_cv_header_stdc" >&6; }
8525 if test $ac_cv_header_stdc = yes; then
8527 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8532 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8533 inttypes.h stdint.h unistd.h
8535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8539 cat >>confdefs.h <<_ACEOF
8540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8548 for ac_header in dlfcn.h
8550 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8552 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8553 cat >>confdefs.h <<_ACEOF
8554 #define HAVE_DLFCN_H 1
8574 # Check whether --enable-static was given.
8575 if test "${enable_static+set}" = set; then :
8576 enableval=$enable_static; p=${PACKAGE-default}
8578 yes) enable_static=yes ;;
8579 no) enable_static=no ;;
8582 # Look at the argument we got. We use all the common list separators.
8583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8584 for pkg in $enableval; do
8586 if test "X$pkg" = "X$p"; then
8606 # Check whether --with-pic was given.
8607 if test "${with_pic+set}" = set; then :
8608 withval=$with_pic; lt_p=${PACKAGE-default}
8610 yes|no) pic_mode=$withval ;;
8613 # Look at the argument we got. We use all the common list separators.
8614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615 for lt_pkg in $withval; do
8617 if test "X$lt_pkg" = "X$lt_p"; then
8629 test -z "$pic_mode" && pic_mode=default
8637 # Check whether --enable-fast-install was given.
8638 if test "${enable_fast_install+set}" = set; then :
8639 enableval=$enable_fast_install; p=${PACKAGE-default}
8641 yes) enable_fast_install=yes ;;
8642 no) enable_fast_install=no ;;
8644 enable_fast_install=no
8645 # Look at the argument we got. We use all the common list separators.
8646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8647 for pkg in $enableval; do
8649 if test "X$pkg" = "X$p"; then
8650 enable_fast_install=yes
8657 enable_fast_install=yes
8670 # This can be used to rebuild libtool when needed
8671 LIBTOOL_DEPS="$ltmain"
8673 # Always use our own libtool.
8674 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8705 test -z "$LN_S" && LN_S="ln -s"
8720 if test -n "${ZSH_VERSION+set}" ; then
8721 setopt NO_GLOB_SUBST
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8725 $as_echo_n "checking for objdir... " >&6; }
8726 if ${lt_cv_objdir+:} false; then :
8727 $as_echo_n "(cached) " >&6
8729 rm -f .libs 2>/dev/null
8730 mkdir .libs 2>/dev/null
8731 if test -d .libs; then
8734 # MS-DOS does not allow filenames that begin with a dot.
8737 rmdir .libs 2>/dev/null
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8740 $as_echo "$lt_cv_objdir" >&6; }
8741 objdir=$lt_cv_objdir
8747 cat >>confdefs.h <<_ACEOF
8748 #define LT_OBJDIR "$lt_cv_objdir/"
8756 # AIX sometimes has problems with the GCC collect2 program. For some
8757 # reason, if we set the COLLECT_NAMES environment variable, the problems
8758 # vanish in a puff of smoke.
8759 if test "X${COLLECT_NAMES+set}" != Xset; then
8761 export COLLECT_NAMES
8768 can_build_shared=yes
8770 # All known linkers require a `.a' archive for static linking (except MSVC,
8771 # which needs '.lib').
8774 with_gnu_ld="$lt_cv_prog_gnu_ld"
8777 old_CFLAGS="$CFLAGS"
8779 # Set sane defaults for various variables
8780 test -z "$CC" && CC=cc
8781 test -z "$LTCC" && LTCC=$CC
8782 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8783 test -z "$LD" && LD=ld
8784 test -z "$ac_objext" && ac_objext=o
8786 for cc_temp in $compiler""; do
8788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8794 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8797 # Only perform the check for file, if the check method requires it
8798 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8799 case $deplibs_check_method in
8801 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8803 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8804 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8805 $as_echo_n "(cached) " >&6
8809 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8812 lt_save_MAGIC_CMD="$MAGIC_CMD"
8813 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8814 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8815 for ac_dir in $ac_dummy; do
8817 test -z "$ac_dir" && ac_dir=.
8818 if test -f $ac_dir/${ac_tool_prefix}file; then
8819 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8820 if test -n "$file_magic_test_file"; then
8821 case $deplibs_check_method in
8823 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8825 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8826 $EGREP "$file_magic_regex" > /dev/null; then
8831 *** Warning: the command libtool uses to detect shared libraries,
8832 *** $file_magic_cmd, produces output that libtool cannot recognize.
8833 *** The result is that libtool may fail to recognize shared libraries
8834 *** as such. This will affect the creation of libtool libraries that
8835 *** depend on shared libraries, but programs linked with such libtool
8836 *** libraries will work regardless of this problem. Nevertheless, you
8837 *** may want to report the problem to your system manager and/or to
8838 *** bug-libtool@gnu.org
8848 MAGIC_CMD="$lt_save_MAGIC_CMD"
8853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8854 if test -n "$MAGIC_CMD"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8856 $as_echo "$MAGIC_CMD" >&6; }
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8866 if test -z "$lt_cv_path_MAGIC_CMD"; then
8867 if test -n "$ac_tool_prefix"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8869 $as_echo_n "checking for file... " >&6; }
8870 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8871 $as_echo_n "(cached) " >&6
8875 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8878 lt_save_MAGIC_CMD="$MAGIC_CMD"
8879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8880 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8881 for ac_dir in $ac_dummy; do
8883 test -z "$ac_dir" && ac_dir=.
8884 if test -f $ac_dir/file; then
8885 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8886 if test -n "$file_magic_test_file"; then
8887 case $deplibs_check_method in
8889 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8891 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8892 $EGREP "$file_magic_regex" > /dev/null; then
8897 *** Warning: the command libtool uses to detect shared libraries,
8898 *** $file_magic_cmd, produces output that libtool cannot recognize.
8899 *** The result is that libtool may fail to recognize shared libraries
8900 *** as such. This will affect the creation of libtool libraries that
8901 *** depend on shared libraries, but programs linked with such libtool
8902 *** libraries will work regardless of this problem. Nevertheless, you
8903 *** may want to report the problem to your system manager and/or to
8904 *** bug-libtool@gnu.org
8914 MAGIC_CMD="$lt_save_MAGIC_CMD"
8919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8920 if test -n "$MAGIC_CMD"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8922 $as_echo "$MAGIC_CMD" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8938 # Use C for the default configuration in the libtool script
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8948 # Source file extension for C test sources.
8951 # Object file extension for compiled C test sources.
8955 # Code to be used in simple compile tests
8956 lt_simple_compile_test_code="int some_variable = 0;"
8958 # Code to be used in simple link tests
8959 lt_simple_link_test_code='int main(){return(0);}'
8967 # If no C compiler was specified, use CC.
8970 # If no C compiler flags were specified, use CFLAGS.
8971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8973 # Allow CC to be a program name with arguments.
8976 # Save the default compiler, since it gets overwritten when the other
8977 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8978 compiler_DEFAULT=$CC
8980 # save warnings/boilerplate of simple test code
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8983 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8984 _lt_compiler_boilerplate=`cat conftest.err`
8987 ac_outfile=conftest.$ac_objext
8988 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8989 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8990 _lt_linker_boilerplate=`cat conftest.err`
8995 ## There is no encapsulation within the following macros, do not change
8996 ## the running order or otherwise move them around unless you know exactly
8997 ## what you are doing...
8998 if test -n "$compiler"; then
9000 lt_prog_compiler_no_builtin_flag=
9002 if test "$GCC" = yes; then
9003 case $cc_basename in
9005 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9007 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9011 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9012 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9013 $as_echo_n "(cached) " >&6
9015 lt_cv_prog_compiler_rtti_exceptions=no
9016 ac_outfile=conftest.$ac_objext
9017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018 lt_compiler_flag="-fno-rtti -fno-exceptions"
9019 # Insert the option either (1) after the last *FLAGS variable, or
9020 # (2) before a word containing "conftest.", or (3) at the end.
9021 # Note that $ac_compile itself does not contain backslashes and begins
9022 # with a dollar sign (not a hyphen), so the echo should work correctly.
9023 # The option is referenced via a variable to avoid confusing sed.
9024 lt_compile=`echo "$ac_compile" | $SED \
9025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9027 -e 's:$: $lt_compiler_flag:'`
9028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9029 (eval "$lt_compile" 2>conftest.err)
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 if (exit $ac_status) && test -s "$ac_outfile"; then
9034 # The compiler can only warn and ignore the option if not recognized
9035 # So say no if there are warnings other than the usual output.
9036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9039 lt_cv_prog_compiler_rtti_exceptions=yes
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9046 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9049 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9061 lt_prog_compiler_wl=
9062 lt_prog_compiler_pic=
9063 lt_prog_compiler_static=
9066 if test "$GCC" = yes; then
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_static='-static'
9072 # All AIX code is PIC.
9073 if test "$host_cpu" = ia64; then
9074 # AIX 5 now supports IA64 processor
9075 lt_prog_compiler_static='-Bstatic'
9082 # see comment about AmigaOS4 .so support
9083 lt_prog_compiler_pic='-fPIC'
9086 # FIXME: we need at least 68020 code to build shared libraries, but
9087 # adding the `-m68020' flag to GCC prevents building anything better,
9089 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9095 # PIC is the default for these OSes.
9098 mingw* | cygwin* | pw32* | os2* | cegcc*)
9099 # This hack is so that the source file can tell whether it is being
9100 # built for inclusion in a dll (and should export symbols for example).
9101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9102 # (--disable-auto-import) libraries
9103 lt_prog_compiler_pic='-DDLL_EXPORT'
9106 darwin* | rhapsody*)
9107 # PIC is the default on this platform
9108 # Common symbols not allowed in MH_DYLIB files
9109 lt_prog_compiler_pic='-fno-common'
9113 # PIC is the default for Haiku.
9114 # The "-static" flag exists, but is broken.
9115 lt_prog_compiler_static=
9119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9121 # sets the default TLS model and affects inlining.
9127 lt_prog_compiler_pic='-fPIC'
9133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9134 # Instead, we relocate shared libraries at runtime.
9138 # Just because we use GCC doesn't mean we suddenly get shared libraries
9139 # on systems that don't support them.
9140 lt_prog_compiler_can_build_shared=no
9145 # QNX uses GNU C++, but need to define -shared option too, otherwise
9147 lt_prog_compiler_pic='-fPIC -shared'
9151 if test -d /usr/nec; then
9152 lt_prog_compiler_pic=-Kconform_pic
9157 lt_prog_compiler_pic='-fPIC'
9161 case $cc_basename in
9162 nvcc*) # Cuda Compiler Driver 2.2
9163 lt_prog_compiler_wl='-Xlinker '
9164 if test -n "$lt_prog_compiler_pic"; then
9165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9170 # PORTME Check for flag to pass linker flags through the system compiler.
9173 lt_prog_compiler_wl='-Wl,'
9174 if test "$host_cpu" = ia64; then
9175 # AIX 5 now supports IA64 processor
9176 lt_prog_compiler_static='-Bstatic'
9178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9182 mingw* | cygwin* | pw32* | os2* | cegcc*)
9183 # This hack is so that the source file can tell whether it is being
9184 # built for inclusion in a dll (and should export symbols for example).
9185 lt_prog_compiler_pic='-DDLL_EXPORT'
9188 hpux9* | hpux10* | hpux11*)
9189 lt_prog_compiler_wl='-Wl,'
9190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197 lt_prog_compiler_pic='+Z'
9200 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9201 lt_prog_compiler_static='${wl}-a ${wl}archive'
9204 irix5* | irix6* | nonstopux*)
9205 lt_prog_compiler_wl='-Wl,'
9206 # PIC (with -KPIC) is the default.
9207 lt_prog_compiler_static='-non_shared'
9210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9211 case $cc_basename in
9212 # old Intel for x86_64 which still supported -KPIC.
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-KPIC'
9216 lt_prog_compiler_static='-static'
9218 # icc used to be incompatible with GCC.
9219 # ICC 10 doesn't accept -KPIC any more.
9221 lt_prog_compiler_wl='-Wl,'
9222 lt_prog_compiler_pic='-fPIC'
9223 lt_prog_compiler_static='-static'
9225 # Lahey Fortran 8.1.
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='--shared'
9229 lt_prog_compiler_static='--static'
9232 # NAG Fortran compiler
9233 lt_prog_compiler_wl='-Wl,-Wl,,'
9234 lt_prog_compiler_pic='-PIC'
9235 lt_prog_compiler_static='-Bstatic'
9237 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9238 # Portland Group compilers (*not* the Pentium gcc compiler,
9239 # which looks to be a dead project)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-fpic'
9242 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_wl='-Wl,'
9246 # All Alpha code is PIC.
9247 lt_prog_compiler_static='-non_shared'
9249 xl* | bgxl* | bgf* | mpixl*)
9250 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-qpic'
9253 lt_prog_compiler_static='-qstaticlink'
9256 case `$CC -V 2>&1 | sed 5q` in
9257 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9258 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 lt_prog_compiler_wl=''
9263 *Sun\ F* | *Sun*Fortran*)
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-Bstatic'
9266 lt_prog_compiler_wl='-Qoption ld '
9270 lt_prog_compiler_pic='-KPIC'
9271 lt_prog_compiler_static='-Bstatic'
9272 lt_prog_compiler_wl='-Wl,'
9274 *Intel*\ [CF]*Compiler*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-fPIC'
9277 lt_prog_compiler_static='-static'
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='-fpic'
9282 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_pic='-KPIC'
9291 lt_prog_compiler_static='-Bstatic'
9295 # QNX uses GNU C++, but need to define -shared option too, otherwise
9297 lt_prog_compiler_pic='-fPIC -shared'
9300 osf3* | osf4* | osf5*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # All OSF/1 code is PIC.
9303 lt_prog_compiler_static='-non_shared'
9307 lt_prog_compiler_static='-non_shared'
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
9313 case $cc_basename in
9314 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9315 lt_prog_compiler_wl='-Qoption ld ';;
9317 lt_prog_compiler_wl='-Wl,';;
9322 lt_prog_compiler_wl='-Qoption ld '
9323 lt_prog_compiler_pic='-PIC'
9324 lt_prog_compiler_static='-Bstatic'
9327 sysv4 | sysv4.2uw2* | sysv4.3*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9334 if test -d /usr/nec ;then
9335 lt_prog_compiler_pic='-Kconform_pic'
9336 lt_prog_compiler_static='-Bstatic'
9340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-KPIC'
9343 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_can_build_shared=no
9352 lt_prog_compiler_pic='-pic'
9353 lt_prog_compiler_static='-Bstatic'
9357 lt_prog_compiler_can_build_shared=no
9363 # For platforms which do not support PIC, -DPIC is meaningless:
9365 lt_prog_compiler_pic=
9368 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9374 if ${lt_cv_prog_compiler_pic+:} false; then :
9375 $as_echo_n "(cached) " >&6
9377 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9380 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9381 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9384 # Check to make sure the PIC flag actually works.
9386 if test -n "$lt_prog_compiler_pic"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9389 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9390 $as_echo_n "(cached) " >&6
9392 lt_cv_prog_compiler_pic_works=no
9393 ac_outfile=conftest.$ac_objext
9394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9396 # Insert the option either (1) after the last *FLAGS variable, or
9397 # (2) before a word containing "conftest.", or (3) at the end.
9398 # Note that $ac_compile itself does not contain backslashes and begins
9399 # with a dollar sign (not a hyphen), so the echo should work correctly.
9400 # The option is referenced via a variable to avoid confusing sed.
9401 lt_compile=`echo "$ac_compile" | $SED \
9402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404 -e 's:$: $lt_compiler_flag:'`
9405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9406 (eval "$lt_compile" 2>conftest.err)
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 if (exit $ac_status) && test -s "$ac_outfile"; then
9411 # The compiler can only warn and ignore the option if not recognized
9412 # So say no if there are warnings other than the usual output.
9413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler_pic_works=yes
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9423 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9425 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9426 case $lt_prog_compiler_pic in
9428 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9431 lt_prog_compiler_pic=
9432 lt_prog_compiler_can_build_shared=no
9448 # Check to make sure the static flag actually works.
9450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9452 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9453 if ${lt_cv_prog_compiler_static_works+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 lt_cv_prog_compiler_static_works=no
9457 save_LDFLAGS="$LDFLAGS"
9458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9461 # The linker can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 if test -s conftest.err; then
9464 # Append any errors to the config.log.
9465 cat conftest.err 1>&5
9466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_cv_prog_compiler_static_works=yes
9472 lt_cv_prog_compiler_static_works=yes
9476 LDFLAGS="$save_LDFLAGS"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9480 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9482 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9485 lt_prog_compiler_static=
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9496 if ${lt_cv_prog_compiler_c_o+:} false; then :
9497 $as_echo_n "(cached) " >&6
9499 lt_cv_prog_compiler_c_o=no
9500 $RM -r conftest 2>/dev/null
9504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506 lt_compiler_flag="-o out/conftest2.$ac_objext"
9507 # Insert the option either (1) after the last *FLAGS variable, or
9508 # (2) before a word containing "conftest.", or (3) at the end.
9509 # Note that $ac_compile itself does not contain backslashes and begins
9510 # with a dollar sign (not a hyphen), so the echo should work correctly.
9511 lt_compile=`echo "$ac_compile" | $SED \
9512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9514 -e 's:$: $lt_compiler_flag:'`
9515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9516 (eval "$lt_compile" 2>out/conftest.err)
9518 cat out/conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9522 # The compiler can only warn and ignore the option if not recognized
9523 # So say no if there are warnings
9524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler_c_o=yes
9532 # SGI C++ compiler will create directory out/ii_files/ for
9533 # template instantiation
9534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9535 $RM out/* && rmdir out
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9542 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9551 if ${lt_cv_prog_compiler_c_o+:} false; then :
9552 $as_echo_n "(cached) " >&6
9554 lt_cv_prog_compiler_c_o=no
9555 $RM -r conftest 2>/dev/null
9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9561 lt_compiler_flag="-o out/conftest2.$ac_objext"
9562 # Insert the option either (1) after the last *FLAGS variable, or
9563 # (2) before a word containing "conftest.", or (3) at the end.
9564 # Note that $ac_compile itself does not contain backslashes and begins
9565 # with a dollar sign (not a hyphen), so the echo should work correctly.
9566 lt_compile=`echo "$ac_compile" | $SED \
9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9569 -e 's:$: $lt_compiler_flag:'`
9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9571 (eval "$lt_compile" 2>out/conftest.err)
9573 cat out/conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9577 # The compiler can only warn and ignore the option if not recognized
9578 # So say no if there are warnings
9579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9582 lt_cv_prog_compiler_c_o=yes
9587 # SGI C++ compiler will create directory out/ii_files/ for
9588 # template instantiation
9589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9590 $RM out/* && rmdir out
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9602 hard_links="nottested"
9603 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9604 # do not overwrite the value of need_locks provided by the user
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9606 $as_echo_n "checking if we can lock with hard links... " >&6; }
9609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9611 ln conftest.a conftest.b 2>&5 || hard_links=no
9612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9614 $as_echo "$hard_links" >&6; }
9615 if test "$hard_links" = no; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9617 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9633 allow_undefined_flag=
9634 always_export_symbols=no
9636 archive_expsym_cmds=
9637 compiler_needs_object=no
9638 enable_shared_with_static_runtimes=no
9639 export_dynamic_flag_spec=
9640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9641 hardcode_automatic=no
9643 hardcode_direct_absolute=no
9644 hardcode_libdir_flag_spec=
9645 hardcode_libdir_separator=
9647 hardcode_shlibpath_var=unsupported
9649 link_all_deplibs=unknown
9652 old_archive_from_new_cmds=
9653 old_archive_from_expsyms_cmds=
9654 thread_safe_flag_spec=
9655 whole_archive_flag_spec=
9656 # include_expsyms should be a list of space-separated symbols to be *always*
9657 # included in the symbol list
9659 # exclude_expsyms can be an extended regexp of symbols to exclude
9660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9662 # as well as any symbol that contains `d'.
9663 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9665 # platforms (ab)use it in PIC code, but their linkers get confused if
9666 # the symbol is explicitly referenced. Since portable code cannot
9667 # rely on this symbol name, it's probably fine to never include it in
9668 # preloaded symbol tables.
9669 # Exclude shared library initialization/finalization symbols.
9670 extract_expsyms_cmds=
9673 cygwin* | mingw* | pw32* | cegcc*)
9674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675 # When not using gcc, we currently assume that we are using
9676 # Microsoft Visual C++.
9677 if test "$GCC" != yes; then
9682 # we just hope/assume this is gcc and not c89 (= MSVC++)
9692 # On some targets, GNU ld is compatible enough with the native linker
9693 # that we're better off using the native interface for both.
9694 lt_use_gnu_ld_interface=no
9695 if test "$with_gnu_ld" = yes; then
9698 # The AIX port of GNU ld has always aspired to compatibility
9699 # with the native linker. However, as the warning in the GNU ld
9700 # block says, versions before 2.19.5* couldn't really create working
9701 # shared libraries, regardless of the interface used.
9702 case `$LD -v 2>&1` in
9703 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9704 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9705 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9707 lt_use_gnu_ld_interface=yes
9712 lt_use_gnu_ld_interface=yes
9717 if test "$lt_use_gnu_ld_interface" = yes; then
9718 # If archive_cmds runs LD, not CC, wlarc should be empty
9721 # Set some defaults for GNU ld with shared library support. These
9722 # are reset later if shared libraries are not supported. Putting them
9723 # here allows them to be overridden if necessary.
9724 runpath_var=LD_RUN_PATH
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 export_dynamic_flag_spec='${wl}--export-dynamic'
9727 # ancient GNU ld didn't support --whole-archive et. al.
9728 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9731 whole_archive_flag_spec=
9733 supports_anon_versioning=no
9734 case `$LD -v 2>&1` in
9735 *GNU\ gold*) supports_anon_versioning=yes ;;
9736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9739 *\ 2.11.*) ;; # other 2.11 versions
9740 *) supports_anon_versioning=yes ;;
9743 # See if GNU ld supports shared libraries.
9746 # On AIX/PPC, the GNU linker is very broken
9747 if test "$host_cpu" != ia64; then
9751 *** Warning: the GNU linker, at least up to release 2.19, is reported
9752 *** to be unable to reliably create shared libraries on AIX.
9753 *** Therefore, libtool is disabling shared libraries support. If you
9754 *** really care for shared libraries, you may want to install binutils
9755 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9756 *** You will then need to restart the configuration process.
9765 # see comment about AmigaOS4 .so support
9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 archive_expsym_cmds=''
9770 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)'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_minus_L=yes
9778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9779 allow_undefined_flag=unsupported
9780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9781 # support --undefined. This deserves some investigation. FIXME
9782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788 cygwin* | mingw* | pw32* | cegcc*)
9789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9790 # as there is no search path for DLLs.
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 export_dynamic_flag_spec='${wl}--export-all-symbols'
9793 allow_undefined_flag=unsupported
9794 always_export_symbols=no
9795 enable_shared_with_static_runtimes=yes
9796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9797 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9799 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9801 # If the export-symbols file already is a .def file (1st line
9802 # is EXPORTS), use it as is; otherwise, prepend...
9803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9804 cp $export_symbols $output_objdir/$soname.def;
9806 echo EXPORTS > $output_objdir/$soname.def;
9807 cat $export_symbols >> $output_objdir/$soname.def;
9809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817 link_all_deplibs=yes
9822 hardcode_shlibpath_var=no
9823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9824 export_dynamic_flag_spec='${wl}-E'
9825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9826 # Instead, shared libraries are loaded at an image base (0x10000000 by
9827 # default) and relocated if they conflict, which is a slow very memory
9828 # consuming and fragmenting process. To avoid this, we pick a random,
9829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9832 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'
9835 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9837 if test "$host_os" = linux-dietlibc; then
9838 case $cc_basename in
9839 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9842 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9843 && test "$tmp_diet" = no
9845 tmp_addflag=' $pic_flag'
9846 tmp_sharedflag='-shared'
9847 case $cc_basename,$host_cpu in
9848 pgcc*) # Portland Group C compiler
9849 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'
9850 tmp_addflag=' $pic_flag'
9852 pgf77* | pgf90* | pgf95* | pgfortran*)
9853 # Portland Group f77 and f90 compilers
9854 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'
9855 tmp_addflag=' $pic_flag -Mnomain' ;;
9856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9857 tmp_addflag=' -i_dynamic' ;;
9858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9859 tmp_addflag=' -i_dynamic -nofor_main' ;;
9860 ifc* | ifort*) # Intel Fortran compiler
9861 tmp_addflag=' -nofor_main' ;;
9862 lf95*) # Lahey Fortran 8.1
9863 whole_archive_flag_spec=
9864 tmp_sharedflag='--shared' ;;
9865 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9866 tmp_sharedflag='-qmkshrobj'
9868 nvcc*) # Cuda Compiler Driver 2.2
9869 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'
9870 compiler_needs_object=yes
9873 case `$CC -V 2>&1 | sed 5q` in
9874 *Sun\ C*) # Sun C 5.9
9875 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'
9876 compiler_needs_object=yes
9877 tmp_sharedflag='-G' ;;
9878 *Sun\ F*) # Sun Fortran 8.3
9879 tmp_sharedflag='-G' ;;
9881 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 if test "x$supports_anon_versioning" = xyes; then
9884 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9886 echo "local: *; };" >> $output_objdir/$libname.ver~
9887 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9890 case $cc_basename in
9891 xlf* | bgf* | bgxlf* | mpixlf*)
9892 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9893 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9896 if test "x$supports_anon_versioning" = xyes; then
9897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9899 echo "local: *; };" >> $output_objdir/$libname.ver~
9900 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9925 *** create shared libraries on Solaris systems. Therefore, libtool
9926 *** is disabling shared libraries support. We urge you to upgrade GNU
9927 *** binutils to release 2.9.1 or newer. Another option is to modify
9928 *** your PATH or compiler configuration so that the native linker is
9929 *** used, and then restart.
9932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9941 case `$LD -v 2>&1` in
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9947 *** reliably create shared libraries on SCO systems. Therefore, libtool
9948 *** is disabling shared libraries support. We urge you to upgrade GNU
9949 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9950 *** your PATH or compiler configuration so that the native linker is
9951 *** used, and then restart.
9956 # For security reasons, it is highly recommended that you always
9957 # use absolute paths for naming shared libraries, and exclude the
9958 # DT_RUNPATH tag from executables and libraries. But doing so
9959 # requires that you compile everything twice, which is a pain.
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975 hardcode_shlibpath_var=no
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9988 if test "$ld_shlibs" = no; then
9990 hardcode_libdir_flag_spec=
9991 export_dynamic_flag_spec=
9992 whole_archive_flag_spec=
9995 # PORTME fill in a description of your system's linker (not GNU ld)
9998 allow_undefined_flag=unsupported
9999 always_export_symbols=yes
10000 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'
10001 # Note: this linker hardcodes the directories in LIBPATH if there
10002 # are no directories specified by -L.
10003 hardcode_minus_L=yes
10004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10005 # Neither direct hardcoding nor static linking is supported with a
10007 hardcode_direct=unsupported
10012 if test "$host_cpu" = ia64; then
10013 # On IA64, the linker does run time linking by default, so we don't
10014 # have to do anything special.
10015 aix_use_runtimelinking=no
10016 exp_sym_flag='-Bexport'
10019 # If we're using GNU nm, then we don't want the "-C" option.
10020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10021 # Also, AIX nm treats weak defined symbols like other global
10022 # defined symbols, whereas GNU nm marks them as "W".
10023 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10024 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'
10026 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10028 aix_use_runtimelinking=no
10030 # Test if we are trying to use run time linking or normal
10031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10032 # need to do runtime linking.
10033 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10034 for ld_flag in $LDFLAGS; do
10035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10036 aix_use_runtimelinking=yes
10043 exp_sym_flag='-bexport'
10044 no_entry_flag='-bnoentry'
10047 # When large executables or shared objects are built, AIX ld can
10048 # have problems creating the table of contents. If linking a library
10049 # or program results in "error TOC overflow" add -mminimal-toc to
10050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10054 hardcode_direct=yes
10055 hardcode_direct_absolute=yes
10056 hardcode_libdir_separator=':'
10057 link_all_deplibs=yes
10058 file_list_spec='${wl}-f,'
10060 if test "$GCC" = yes; then
10061 case $host_os in aix4.[012]|aix4.[012].*)
10062 # We only want to do this on AIX 4.2 and lower, the check
10063 # below for broken collect2 doesn't work under 4.3+
10064 collect2name=`${CC} -print-prog-name=collect2`
10065 if test -f "$collect2name" &&
10066 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10068 # We have reworked collect2
10071 # We have old collect2
10072 hardcode_direct=unsupported
10073 # It fails to find uninstalled libraries when the uninstalled
10074 # path is not listed in the libpath. Setting hardcode_minus_L
10075 # to unsupported forces relinking
10076 hardcode_minus_L=yes
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_libdir_separator=
10082 shared_flag='-shared'
10083 if test "$aix_use_runtimelinking" = yes; then
10084 shared_flag="$shared_flag "'${wl}-G'
10088 if test "$host_cpu" = ia64; then
10089 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10090 # chokes on -Wl,-G. The following line is correct:
10093 if test "$aix_use_runtimelinking" = yes; then
10094 shared_flag='${wl}-G'
10096 shared_flag='${wl}-bM:SRE'
10101 export_dynamic_flag_spec='${wl}-bexpall'
10102 # It seems that -bexpall does not export symbols beginning with
10103 # underscore (_), so it is better to generate a list of symbols to export.
10104 always_export_symbols=yes
10105 if test "$aix_use_runtimelinking" = yes; then
10106 # Warning - without using the other runtime loading flags (-brtl),
10107 # -berok will link without error, but may produce a broken library.
10108 allow_undefined_flag='-berok'
10109 # Determine the default libpath from the value encoded in an
10110 # empty executable.
10111 if test "${lt_cv_aix_libpath+set}" = set; then
10112 aix_libpath=$lt_cv_aix_libpath
10114 if ${lt_cv_aix_libpath_+:} false; then :
10115 $as_echo_n "(cached) " >&6
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10128 if ac_fn_c_try_link "$LINENO"; then :
10130 lt_aix_libpath_sed='
10131 /Import File Strings/,/^$/ {
10133 s/^0 *\([^ ]*\) *$/\1/
10137 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138 # Check for a 64-bit object if we didn't find anything.
10139 if test -z "$lt_cv_aix_libpath_"; then
10140 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 if test -z "$lt_cv_aix_libpath_"; then
10146 lt_cv_aix_libpath_="/usr/lib:/lib"
10151 aix_libpath=$lt_cv_aix_libpath_
10154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10155 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"
10157 if test "$host_cpu" = ia64; then
10158 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10159 allow_undefined_flag="-z nodefs"
10160 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"
10162 # Determine the default libpath from the value encoded in an
10163 # empty executable.
10164 if test "${lt_cv_aix_libpath+set}" = set; then
10165 aix_libpath=$lt_cv_aix_libpath
10167 if ${lt_cv_aix_libpath_+:} false; then :
10168 $as_echo_n "(cached) " >&6
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10181 if ac_fn_c_try_link "$LINENO"; then :
10183 lt_aix_libpath_sed='
10184 /Import File Strings/,/^$/ {
10186 s/^0 *\([^ ]*\) *$/\1/
10190 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 # Check for a 64-bit object if we didn't find anything.
10192 if test -z "$lt_cv_aix_libpath_"; then
10193 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$lt_cv_aix_libpath_"; then
10199 lt_cv_aix_libpath_="/usr/lib:/lib"
10204 aix_libpath=$lt_cv_aix_libpath_
10207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10208 # Warning - without using the other run time loading flags,
10209 # -berok will link without error, but may produce a broken library.
10210 no_undefined_flag=' ${wl}-bernotok'
10211 allow_undefined_flag=' ${wl}-berok'
10212 if test "$with_gnu_ld" = yes; then
10213 # We only use this code for GNU lds that support --whole-archive.
10214 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10216 # Exported symbols can be pulled into shared objects from archives
10217 whole_archive_flag_spec='$convenience'
10219 archive_cmds_need_lc=yes
10220 # This is similar to how AIX traditionally builds its shared libraries.
10221 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'
10229 # see comment about AmigaOS4 .so support
10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231 archive_expsym_cmds=''
10234 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)'
10235 hardcode_libdir_flag_spec='-L$libdir'
10236 hardcode_minus_L=yes
10242 export_dynamic_flag_spec=-rdynamic
10245 cygwin* | mingw* | pw32* | cegcc*)
10246 # When not using gcc, we currently assume that we are using
10247 # Microsoft Visual C++.
10248 # hardcode_libdir_flag_spec is actually meaningless, as there is
10249 # no search path for DLLs.
10250 case $cc_basename in
10253 hardcode_libdir_flag_spec=' '
10254 allow_undefined_flag=unsupported
10255 always_export_symbols=yes
10257 # Tell ltmain to make .lib files, not .a files.
10259 # Tell ltmain to make .dll files, not .so files.
10261 # FIXME: Setting linknames here is a bad hack.
10262 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10263 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10264 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10266 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10268 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10270 # The linker will not automatically build a static lib if we build a DLL.
10271 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10272 enable_shared_with_static_runtimes=yes
10273 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10276 old_postinstall_cmds='chmod 644 $oldlib'
10277 postlink_cmds='lt_outputfile="@OUTPUT@"~
10278 lt_tool_outputfile="@TOOL_OUTPUT@"~
10279 case $lt_outputfile in
10282 lt_outputfile="$lt_outputfile.exe"
10283 lt_tool_outputfile="$lt_tool_outputfile.exe"
10286 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10287 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10288 $RM "$lt_outputfile.manifest";
10292 # Assume MSVC wrapper
10293 hardcode_libdir_flag_spec=' '
10294 allow_undefined_flag=unsupported
10295 # Tell ltmain to make .lib files, not .a files.
10297 # Tell ltmain to make .dll files, not .so files.
10299 # FIXME: Setting linknames here is a bad hack.
10300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10301 # The linker will automatically build a .lib file if we build a DLL.
10302 old_archive_from_new_cmds='true'
10303 # FIXME: Should let the user specify the lib program.
10304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10305 enable_shared_with_static_runtimes=yes
10310 darwin* | rhapsody*)
10313 archive_cmds_need_lc=no
10315 hardcode_automatic=yes
10316 hardcode_shlibpath_var=unsupported
10317 if test "$lt_cv_ld_force_load" = "yes"; then
10318 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\"`'
10321 whole_archive_flag_spec=''
10323 link_all_deplibs=yes
10324 allow_undefined_flag="$_lt_dar_allow_undefined"
10325 case $cc_basename in
10326 ifort*) _lt_dar_can_shared=yes ;;
10327 *) _lt_dar_can_shared=$GCC ;;
10329 if test "$_lt_dar_can_shared" = "yes"; then
10330 output_verbose_link_cmd=func_echo_all
10331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10333 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10334 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}"
10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_shlibpath_var=no
10348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10349 # support. Future versions do this automatically, but an explicit c++rt0.o
10350 # does not break anything, and helps significantly (at the cost of a little
10353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10354 hardcode_libdir_flag_spec='-R$libdir'
10355 hardcode_direct=yes
10356 hardcode_shlibpath_var=no
10359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=yes
10363 hardcode_minus_L=yes
10364 hardcode_shlibpath_var=no
10367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10368 freebsd* | dragonfly*)
10369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10370 hardcode_libdir_flag_spec='-R$libdir'
10371 hardcode_direct=yes
10372 hardcode_shlibpath_var=no
10376 if test "$GCC" = yes; then
10377 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10379 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'
10381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10382 hardcode_libdir_separator=:
10383 hardcode_direct=yes
10385 # hardcode_minus_L: Not really in the search PATH,
10386 # but as the default location of the library.
10387 hardcode_minus_L=yes
10388 export_dynamic_flag_spec='${wl}-E'
10392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10393 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10397 if test "$with_gnu_ld" = no; then
10398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10399 hardcode_libdir_separator=:
10400 hardcode_direct=yes
10401 hardcode_direct_absolute=yes
10402 export_dynamic_flag_spec='${wl}-E'
10403 # hardcode_minus_L: Not really in the search PATH,
10404 # but as the default location of the library.
10405 hardcode_minus_L=yes
10410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10432 # Older versions of the 11.00 compiler do not understand -b yet
10433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10435 $as_echo_n "checking if $CC understands -b... " >&6; }
10436 if ${lt_cv_prog_compiler__b+:} false; then :
10437 $as_echo_n "(cached) " >&6
10439 lt_cv_prog_compiler__b=no
10440 save_LDFLAGS="$LDFLAGS"
10441 LDFLAGS="$LDFLAGS -b"
10442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10444 # The linker can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test -s conftest.err; then
10447 # Append any errors to the config.log.
10448 cat conftest.err 1>&5
10449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10451 if diff conftest.exp conftest.er2 >/dev/null; then
10452 lt_cv_prog_compiler__b=yes
10455 lt_cv_prog_compiler__b=yes
10459 LDFLAGS="$save_LDFLAGS"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10465 if test x"$lt_cv_prog_compiler__b" = xyes; then
10466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10474 if test "$with_gnu_ld" = no; then
10475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10476 hardcode_libdir_separator=:
10481 hardcode_shlibpath_var=no
10484 hardcode_direct=yes
10485 hardcode_direct_absolute=yes
10486 export_dynamic_flag_spec='${wl}-E'
10488 # hardcode_minus_L: Not really in the search PATH,
10489 # but as the default location of the library.
10490 hardcode_minus_L=yes
10496 irix5* | irix6* | nonstopux*)
10497 if test "$GCC" = yes; then
10498 archive_cmds='$CC -shared $pic_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'
10499 # Try to use the -exported_symbol ld option, if it does not
10500 # work, assume that -exports_file does not work either and
10501 # implicitly export all symbols.
10502 # This should be the same for all languages, so no per-tag cache variable.
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10504 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10505 if ${lt_cv_irix_exported_symbol+:} false; then :
10506 $as_echo_n "(cached) " >&6
10508 save_LDFLAGS="$LDFLAGS"
10509 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 int foo (void) { return 0; }
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 lt_cv_irix_exported_symbol=yes
10517 lt_cv_irix_exported_symbol=no
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LDFLAGS="$save_LDFLAGS"
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10524 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10525 if test "$lt_cv_irix_exported_symbol" = yes; then
10526 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10529 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'
10530 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'
10532 archive_cmds_need_lc='no'
10533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534 hardcode_libdir_separator=:
10536 link_all_deplibs=yes
10540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10543 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_direct=yes
10553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10554 hardcode_libdir_separator=:
10555 hardcode_shlibpath_var=no
10562 if test -f /usr/libexec/ld.so; then
10563 hardcode_direct=yes
10564 hardcode_shlibpath_var=no
10565 hardcode_direct_absolute=yes
10566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10570 export_dynamic_flag_spec='${wl}-E'
10573 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_libdir_flag_spec='-R$libdir'
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10589 hardcode_libdir_flag_spec='-L$libdir'
10590 hardcode_minus_L=yes
10591 allow_undefined_flag=unsupported
10592 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'
10593 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10597 if test "$GCC" = yes; then
10598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10599 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'
10601 allow_undefined_flag=' -expect_unresolved \*'
10602 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'
10604 archive_cmds_need_lc='no'
10605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10606 hardcode_libdir_separator=:
10609 osf4* | osf5*) # as osf3* with the addition of -msym flag
10610 if test "$GCC" = yes; then
10611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10612 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 allow_undefined_flag=' -expect_unresolved \*'
10616 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'
10617 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~
10618 $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'
10620 # Both c and cxx compiler support -rpath directly
10621 hardcode_libdir_flag_spec='-rpath $libdir'
10623 archive_cmds_need_lc='no'
10624 hardcode_libdir_separator=:
10628 no_undefined_flag=' -z defs'
10629 if test "$GCC" = yes; then
10631 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10635 case `$CC -V 2>&1` in
10638 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10644 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10646 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10650 hardcode_libdir_flag_spec='-R$libdir'
10651 hardcode_shlibpath_var=no
10653 solaris2.[0-5] | solaris2.[0-5].*) ;;
10655 # The compiler driver will combine and reorder linker options,
10656 # but understands `-z linker_flag'. GCC discards it without `$wl',
10657 # but is careful enough not to reorder.
10658 # Supported since Solaris 2.6 (maybe 2.5.1?)
10659 if test "$GCC" = yes; then
10660 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10666 link_all_deplibs=yes
10670 if test "x$host_vendor" = xsequent; then
10671 # Use $CC to link under sequent, because it throws in some extra .o
10672 # files that make .init and .fini sections work.
10673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 hardcode_direct=yes
10679 hardcode_minus_L=yes
10680 hardcode_shlibpath_var=no
10684 case $host_vendor in
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_direct=yes # is this really true???
10690 ## LD is ld it makes a PLAMLIB
10691 ## CC just makes a GrossModule.
10692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10693 reload_cmds='$CC -r -o $output$reload_objs'
10697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10701 runpath_var='LD_RUN_PATH'
10702 hardcode_shlibpath_var=no
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_shlibpath_var=no
10708 export_dynamic_flag_spec='-Bexport'
10712 if test -d /usr/nec; then
10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 hardcode_shlibpath_var=no
10715 runpath_var=LD_RUN_PATH
10716 hardcode_runpath_var=yes
10721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10722 no_undefined_flag='${wl}-z,text'
10723 archive_cmds_need_lc=no
10724 hardcode_shlibpath_var=no
10725 runpath_var='LD_RUN_PATH'
10727 if test "$GCC" = yes; then
10728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 sysv5* | sco3.2v5* | sco5v6*)
10737 # Note: We can NOT use -z defs as we might desire, because we do not
10738 # link with -lc, and that would cause any symbols used from libc to
10739 # always be unresolved, which means just about no library would
10740 # ever link correctly. If we're not using GNU ld we use -z text
10741 # though, which does catch some bad symbols but isn't as heavy-handed
10743 no_undefined_flag='${wl}-z,text'
10744 allow_undefined_flag='${wl}-z,nodefs'
10745 archive_cmds_need_lc=no
10746 hardcode_shlibpath_var=no
10747 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10748 hardcode_libdir_separator=':'
10749 link_all_deplibs=yes
10750 export_dynamic_flag_spec='${wl}-Bexport'
10751 runpath_var='LD_RUN_PATH'
10753 if test "$GCC" = yes; then
10754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_libdir_flag_spec='-L$libdir'
10765 hardcode_shlibpath_var=no
10773 if test x$host_vendor = xsni; then
10775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10776 export_dynamic_flag_spec='${wl}-Blargedynsym'
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10783 $as_echo "$ld_shlibs" >&6; }
10784 test "$ld_shlibs" = no && can_build_shared=no
10786 with_gnu_ld=$with_gnu_ld
10803 # Do we need to explicitly link libc?
10805 case "x$archive_cmds_need_lc" in
10807 # Assume -lc should be added
10808 archive_cmds_need_lc=yes
10810 if test "$enable_shared" = yes && test "$GCC" = yes; then
10811 case $archive_cmds in
10813 # FIXME: we may have to deal with multi-command sequences.
10816 # Test whether the compiler implicitly links with -lc since on some
10817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10818 # to ld, don't add -lc before -lgcc.
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10820 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10821 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10822 $as_echo_n "(cached) " >&6
10825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10828 (eval $ac_compile) 2>&5
10830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831 test $ac_status = 0; } 2>conftest.err; then
10834 libobjs=conftest.$ac_objext
10836 wl=$lt_prog_compiler_wl
10837 pic_flag=$lt_prog_compiler_pic
10843 lt_save_allow_undefined_flag=$allow_undefined_flag
10844 allow_undefined_flag=
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10846 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; }
10851 lt_cv_archive_cmds_need_lc=no
10853 lt_cv_archive_cmds_need_lc=yes
10855 allow_undefined_flag=$lt_save_allow_undefined_flag
10857 cat conftest.err 1>&5
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10863 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10864 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11025 if test "$GCC" = yes; then
11027 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11028 *) lt_awk_arg="/^libraries:/" ;;
11031 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11032 *) lt_sed_strip_eq="s,=/,/,g" ;;
11034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11035 case $lt_search_path_spec in
11037 # if the path contains ";" then we assume it to be the separator
11038 # otherwise default to the standard path separator (i.e. ":") - it is
11039 # assumed that no part of a normal pathname contains ";" but that should
11040 # okay in the real world where ";" in dirpaths is itself problematic.
11041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11047 # Ok, now we have the path, separated by spaces, we can step through it
11048 # and add multilib dir if necessary.
11049 lt_tmp_lt_search_path_spec=
11050 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11051 for lt_sys_path in $lt_search_path_spec; do
11052 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11055 test -d "$lt_sys_path" && \
11056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11060 BEGIN {RS=" "; FS="/|\n";} {
11063 for (lt_i = NF; lt_i > 0; lt_i--) {
11064 if ($lt_i != "" && $lt_i != ".") {
11065 if ($lt_i == "..") {
11068 if (lt_count == 0) {
11069 lt_foo="/" $lt_i lt_foo;
11076 if (lt_foo != "") { lt_freq[lt_foo]++; }
11077 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11079 # AWK program above erroneously prepends '/' to C:/dos/paths
11082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11083 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089 library_names_spec=
11090 libname_spec='lib$name'
11094 postuninstall_cmds=
11098 shlibpath_overrides_runpath=unknown
11100 dynamic_linker="$host_os ld.so"
11101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11102 need_lib_prefix=unknown
11103 hardcode_into_libs=no
11105 # when you set need_version to no, make sure it does not cause -set_version
11106 # flags to be left without arguments
11107 need_version=unknown
11111 version_type=linux # correct to gnu/linux during the next big refactor
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11113 shlibpath_var=LIBPATH
11115 # AIX 3 has no versioning support, so we append a major version to the name.
11116 soname_spec='${libname}${release}${shared_ext}$major'
11120 version_type=linux # correct to gnu/linux during the next big refactor
11123 hardcode_into_libs=yes
11124 if test "$host_cpu" = ia64; then
11125 # AIX 5 supports IA64
11126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11127 shlibpath_var=LD_LIBRARY_PATH
11129 # With GCC up to 2.95.x, collect2 would create an import file
11130 # for dependence libraries. The import file would start with
11131 # the line `#! .'. This would cause the generated library to
11132 # depend on `.', always an invalid library. This was fixed in
11133 # development snapshots of GCC prior to 3.0.
11135 aix4 | aix4.[01] | aix4.[01].*)
11136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11141 can_build_shared=no
11145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11146 # soname into executable. Probably we can add versioning support to
11147 # collect2, so additional links can be useful in future.
11148 if test "$aix_use_runtimelinking" = yes; then
11149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11150 # instead of lib<name>.a to let people know that these are not
11151 # typical AIX shared libraries.
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 # We preserve .a as extension for shared libraries through AIX4.2
11155 # and later when we are not doing run time linking.
11156 library_names_spec='${libname}${release}.a $libname.a'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11159 shlibpath_var=LIBPATH
11166 # Since July 2007 AmigaOS4 officially supports .so libraries.
11167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 library_names_spec='$libname.ixlibrary $libname.a'
11172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11173 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'
11179 library_names_spec='${libname}${shared_ext}'
11180 dynamic_linker="$host_os ld.so"
11181 shlibpath_var=LIBRARY_PATH
11185 version_type=linux # correct to gnu/linux during the next big refactor
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11193 # the default ld.so.conf also contains /usr/contrib/lib and
11194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11195 # libtool to hard-code these into programs
11198 cygwin* | mingw* | pw32* | cegcc*)
11199 version_type=windows
11204 case $GCC,$cc_basename in
11207 library_names_spec='$libname.dll.a'
11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11209 postinstall_cmds='base_file=`basename \${file}`~
11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11211 dldir=$destdir/`dirname \$dlpath`~
11212 test -d \$dldir || mkdir -p \$dldir~
11213 $install_prog $dir/$dlname \$dldir/$dlname~
11214 chmod a+x \$dldir/$dlname~
11215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11219 dlpath=$dir/\$dldll~
11221 shlibpath_overrides_runpath=yes
11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11231 # MinGW DLLs use traditional 'lib' prefix
11232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235 # pw32 DLLs use 'pw' prefix rather than 'lib'
11236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239 dynamic_linker='Win32 ld.exe'
11244 libname_spec='$name'
11245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246 library_names_spec='${libname}.dll.lib'
11250 sys_lib_search_path_spec=
11253 for lt_path in $LIB
11256 # Let DOS variable expansion print the short 8.3 style file name.
11257 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11258 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11261 # Convert to MSYS style.
11262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11265 # Convert to unix form, then to dos form, then back to unix form
11266 # but this time dos style (no spaces!) so that the unix form looks
11267 # like /cygdrive/c/PROGRA~1:/cygdr...
11268 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11269 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11270 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11273 sys_lib_search_path_spec="$LIB"
11274 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11275 # It is most probably a Windows format PATH.
11276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11280 # FIXME: find the short name or the path components, as spaces are
11281 # common. (e.g. "Program Files" -> "PROGRA~1")
11285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11286 postinstall_cmds='base_file=`basename \${file}`~
11287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11288 dldir=$destdir/`dirname \$dlpath`~
11289 test -d \$dldir || mkdir -p \$dldir~
11290 $install_prog $dir/$dlname \$dldir/$dlname'
11291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11292 dlpath=$dir/\$dldll~
11294 shlibpath_overrides_runpath=yes
11295 dynamic_linker='Win32 link.exe'
11299 # Assume MSVC wrapper
11300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11301 dynamic_linker='Win32 ld.exe'
11304 # FIXME: first we should search . and the directory the executable is in
11308 darwin* | rhapsody*)
11309 dynamic_linker="$host_os dyld"
11310 version_type=darwin
11313 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11314 soname_spec='${libname}${release}${major}$shared_ext'
11315 shlibpath_overrides_runpath=yes
11316 shlibpath_var=DYLD_LIBRARY_PATH
11317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11324 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11332 freebsd* | dragonfly*)
11333 # DragonFly does not have aout. When/if they implement a new
11334 # versioning mechanism, adjust this.
11335 if test -x /usr/bin/objformat; then
11336 objformat=`/usr/bin/objformat`
11339 freebsd[23].*) objformat=aout ;;
11340 *) objformat=elf ;;
11343 version_type=freebsd-$objformat
11344 case $version_type in
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11355 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11360 freebsd3.[01]* | freebsdelf3.[01]*)
11361 shlibpath_overrides_runpath=yes
11362 hardcode_into_libs=yes
11364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11366 shlibpath_overrides_runpath=no
11367 hardcode_into_libs=yes
11369 *) # from 4.6 on, and DragonFly
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11377 version_type=linux # correct to gnu/linux during the next big refactor
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 shlibpath_overrides_runpath=no
11384 hardcode_into_libs=yes
11388 version_type=linux # correct to gnu/linux during the next big refactor
11391 dynamic_linker="$host_os runtime_loader"
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 shlibpath_var=LIBRARY_PATH
11395 shlibpath_overrides_runpath=yes
11396 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11397 hardcode_into_libs=yes
11400 hpux9* | hpux10* | hpux11*)
11401 # Give a soname corresponding to the major version so that dld.sl refuses to
11402 # link against other versions.
11409 hardcode_into_libs=yes
11410 dynamic_linker="$host_os dld.so"
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 if test "X$HPUX_IA64_MODE" = X32; then
11416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11424 hardcode_into_libs=yes
11425 dynamic_linker="$host_os dld.sl"
11426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11435 dynamic_linker="$host_os dld.sl"
11436 shlibpath_var=SHLIB_PATH
11437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11442 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11443 postinstall_cmds='chmod 555 $lib'
11444 # or fails outright, so override atomically:
11445 install_override_mode=555
11449 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=no
11457 hardcode_into_libs=yes
11460 irix5* | irix6* | nonstopux*)
11462 nonstopux*) version_type=nonstopux ;;
11464 if test "$lt_cv_prog_gnu_ld" = yes; then
11465 version_type=linux # correct to gnu/linux during the next big refactor
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11475 irix5* | nonstopux*)
11476 libsuff= shlibsuff=
11479 case $LD in # libtool.m4 will add one of these switches to LD
11480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11481 libsuff= shlibsuff= libmagic=32-bit;;
11482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11483 libsuff=32 shlibsuff=N32 libmagic=N32;;
11484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11486 *) libsuff= shlibsuff= libmagic=never-match;;
11490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11491 shlibpath_overrides_runpath=no
11492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11494 hardcode_into_libs=yes
11497 # No shared lib support for Linux oldld, aout, or coff.
11498 linux*oldld* | linux*aout* | linux*coff*)
11502 # This must be glibc/ELF.
11503 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11504 version_type=linux # correct to gnu/linux during the next big refactor
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=no
11513 # Some binutils ld are patched to set DT_RUNPATH
11514 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 lt_cv_shlibpath_overrides_runpath=no
11518 save_LDFLAGS=$LDFLAGS
11519 save_libdir=$libdir
11520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11535 lt_cv_shlibpath_overrides_runpath=yes
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LDFLAGS=$save_LDFLAGS
11541 libdir=$save_libdir
11545 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11547 # This implies no fast_install, which is unacceptable.
11548 # Some rework will be needed to allow for fast_install
11549 # before this can be enabled.
11550 hardcode_into_libs=yes
11552 # Append ld.so.conf contents to the search path
11553 if test -f /etc/ld.so.conf; then
11554 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' ' '`
11555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11558 # We used to test for /lib/ld.so.1 and disable shared libraries on
11559 # powerpc, because MkLinux only supported shared libraries with the
11560 # GNU dynamic linker. Since this was broken with cross compilers,
11561 # most powerpc-linux boxes support dynamic linking these days and
11562 # people can always --disable-shared, the test was removed, and we
11563 # assume the GNU/Linux dynamic linker is in use.
11564 dynamic_linker='GNU/Linux ld.so'
11571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11574 dynamic_linker='NetBSD (a.out) ld.so'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 dynamic_linker='NetBSD ld.elf_so'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11586 version_type=linux # correct to gnu/linux during the next big refactor
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 hardcode_into_libs=yes
11601 dynamic_linker='ldqnx.so'
11606 sys_lib_dlsearch_path_spec="/usr/lib"
11608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11611 *) need_version=no ;;
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11618 openbsd2.[89] | openbsd2.[89].*)
11619 shlibpath_overrides_runpath=no
11622 shlibpath_overrides_runpath=yes
11626 shlibpath_overrides_runpath=yes
11631 libname_spec='$name'
11634 library_names_spec='$libname${shared_ext} $libname.a'
11635 dynamic_linker='OS/2 ld.exe'
11636 shlibpath_var=LIBPATH
11639 osf3* | osf4* | osf5*)
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11655 version_type=linux # correct to gnu/linux during the next big refactor
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11663 # ldd complains unless libraries are executable
11664 postinstall_cmds='chmod +x $lib'
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673 if test "$with_gnu_ld" = yes; then
11680 version_type=linux # correct to gnu/linux during the next big refactor
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 case $host_vendor in
11686 shlibpath_overrides_runpath=no
11688 runpath_var=LD_RUN_PATH
11696 shlibpath_overrides_runpath=no
11697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11703 if test -d /usr/nec ;then
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11706 soname_spec='$libname${shared_ext}.$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11712 version_type=freebsd-elf
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 if test "$with_gnu_ld" = yes; then
11721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11730 sys_lib_dlsearch_path_spec='/usr/lib'
11734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11735 version_type=linux # correct to gnu/linux during the next big refactor
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=no
11741 hardcode_into_libs=yes
11745 version_type=linux # correct to gnu/linux during the next big refactor
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11756 $as_echo "$dynamic_linker" >&6; }
11757 test "$dynamic_linker" = no && can_build_shared=no
11759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11760 if test "$GCC" = yes; then
11761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11863 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11865 if test -n "$hardcode_libdir_flag_spec" ||
11866 test -n "$runpath_var" ||
11867 test "X$hardcode_automatic" = "Xyes" ; then
11869 # We can hardcode non-existent directories.
11870 if test "$hardcode_direct" != no &&
11871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11872 # have to relink, otherwise we might link with an installed library
11873 # when we should be linking with a yet-to-be-installed one
11874 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11875 test "$hardcode_minus_L" != no; then
11876 # Linking always hardcodes the temporary library directory.
11877 hardcode_action=relink
11879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11880 hardcode_action=immediate
11883 # We cannot hardcode anything, or else we can only hardcode existing
11885 hardcode_action=unsupported
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11888 $as_echo "$hardcode_action" >&6; }
11890 if test "$hardcode_action" = relink ||
11891 test "$inherit_rpath" = yes; then
11892 # Fast installation is not supported
11893 enable_fast_install=no
11894 elif test "$shlibpath_overrides_runpath" = yes ||
11895 test "$enable_shared" = no; then
11896 # Fast installation is not necessary
11897 enable_fast_install=needless
11905 if test "x$enable_dlopen" != xyes; then
11906 enable_dlopen=unknown
11907 enable_dlopen_self=unknown
11908 enable_dlopen_self_static=unknown
11915 lt_cv_dlopen="load_add_on"
11917 lt_cv_dlopen_self=yes
11920 mingw* | pw32* | cegcc*)
11921 lt_cv_dlopen="LoadLibrary"
11926 lt_cv_dlopen="dlopen"
11931 # if libdl is installed we need to link against it
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11933 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11934 if ${ac_cv_lib_dl_dlopen+:} false; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS=$LIBS
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dl_dlopen=yes
11960 ac_cv_lib_dl_dlopen=no
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11967 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11968 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11972 lt_cv_dlopen="dyld"
11974 lt_cv_dlopen_self=yes
11981 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11982 if test "x$ac_cv_func_shl_load" = xyes; then :
11983 lt_cv_dlopen="shl_load"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11986 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11987 if ${ac_cv_lib_dld_shl_load+:} false; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_check_lib_save_LIBS=$LIBS
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12005 return shl_load ();
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dld_shl_load=yes
12013 ac_cv_lib_dld_shl_load=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12020 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12021 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12022 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12024 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12025 if test "x$ac_cv_func_dlopen" = xyes; then :
12026 lt_cv_dlopen="dlopen"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12029 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12030 if ${ac_cv_lib_dl_dlopen+:} false; then :
12031 $as_echo_n "(cached) " >&6
12033 ac_check_lib_save_LIBS=$LIBS
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dl_dlopen=yes
12056 ac_cv_lib_dl_dlopen=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12064 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12069 if ${ac_cv_lib_svld_dlopen+:} false; then :
12070 $as_echo_n "(cached) " >&6
12072 ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-lsvld $LIBS"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_svld_dlopen=yes
12095 ac_cv_lib_svld_dlopen=no
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12102 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12103 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12107 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12108 if ${ac_cv_lib_dld_dld_link+:} false; then :
12109 $as_echo_n "(cached) " >&6
12111 ac_check_lib_save_LIBS=$LIBS
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12126 return dld_link ();
12131 if ac_fn_c_try_link "$LINENO"; then :
12132 ac_cv_lib_dld_dld_link=yes
12134 ac_cv_lib_dld_dld_link=no
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12141 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12142 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12143 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12164 if test "x$lt_cv_dlopen" != xno; then
12170 case $lt_cv_dlopen in
12172 save_CPPFLAGS="$CPPFLAGS"
12173 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12175 save_LDFLAGS="$LDFLAGS"
12176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12179 LIBS="$lt_cv_dlopen_libs $LIBS"
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12182 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12183 if ${lt_cv_dlopen_self+:} false; then :
12184 $as_echo_n "(cached) " >&6
12186 if test "$cross_compiling" = yes; then :
12187 lt_cv_dlopen_self=cross
12189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190 lt_status=$lt_dlunknown
12191 cat > conftest.$ac_ext <<_LT_EOF
12192 #line $LINENO "configure"
12193 #include "confdefs.h"
12202 # define LT_DLGLOBAL RTLD_GLOBAL
12205 # define LT_DLGLOBAL DL_GLOBAL
12207 # define LT_DLGLOBAL 0
12211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12212 find out it does not work in some platform. */
12213 #ifndef LT_DLLAZY_OR_NOW
12215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12218 # define LT_DLLAZY_OR_NOW DL_LAZY
12221 # define LT_DLLAZY_OR_NOW RTLD_NOW
12224 # define LT_DLLAZY_OR_NOW DL_NOW
12226 # define LT_DLLAZY_OR_NOW 0
12233 /* When -fvisbility=hidden is used, assume the code has been annotated
12234 correspondingly for the symbols needed. */
12235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 int fnord () __attribute__((visibility("default")));
12239 int fnord () { return 42; }
12242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243 int status = $lt_dlunknown;
12247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12251 else puts (dlerror ());
12253 /* dlclose (self); */
12261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12262 (eval $ac_link) 2>&5
12264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266 (./conftest; exit; ) >&5 2>/dev/null
12268 case x$lt_status in
12269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12271 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12274 # compilation failed
12275 lt_cv_dlopen_self=no
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12283 $as_echo "$lt_cv_dlopen_self" >&6; }
12285 if test "x$lt_cv_dlopen_self" = xyes; then
12286 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12289 if ${lt_cv_dlopen_self_static+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 if test "$cross_compiling" = yes; then :
12293 lt_cv_dlopen_self_static=cross
12295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296 lt_status=$lt_dlunknown
12297 cat > conftest.$ac_ext <<_LT_EOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12308 # define LT_DLGLOBAL RTLD_GLOBAL
12311 # define LT_DLGLOBAL DL_GLOBAL
12313 # define LT_DLGLOBAL 0
12317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12318 find out it does not work in some platform. */
12319 #ifndef LT_DLLAZY_OR_NOW
12321 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12324 # define LT_DLLAZY_OR_NOW DL_LAZY
12327 # define LT_DLLAZY_OR_NOW RTLD_NOW
12330 # define LT_DLLAZY_OR_NOW DL_NOW
12332 # define LT_DLLAZY_OR_NOW 0
12339 /* When -fvisbility=hidden is used, assume the code has been annotated
12340 correspondingly for the symbols needed. */
12341 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 int fnord () __attribute__((visibility("default")));
12345 int fnord () { return 42; }
12348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12349 int status = $lt_dlunknown;
12353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12356 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357 else puts (dlerror ());
12359 /* dlclose (self); */
12367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12368 (eval $ac_link) 2>&5
12370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12372 (./conftest; exit; ) >&5 2>/dev/null
12374 case x$lt_status in
12375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12377 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12380 # compilation failed
12381 lt_cv_dlopen_self_static=no
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12389 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12392 CPPFLAGS="$save_CPPFLAGS"
12393 LDFLAGS="$save_LDFLAGS"
12398 case $lt_cv_dlopen_self in
12399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12400 *) enable_dlopen_self=unknown ;;
12403 case $lt_cv_dlopen_self_static in
12404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12405 *) enable_dlopen_self_static=unknown ;;
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12428 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12431 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433 $as_echo "yes" >&6; }
12435 # FIXME - insert some real tests, host_os isn't really good enough
12438 if test -n "$STRIP" ; then
12439 striplib="$STRIP -x"
12440 old_striplib="$STRIP -S"
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12442 $as_echo "yes" >&6; }
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12466 # Report which library types will actually be built
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12468 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12470 $as_echo "$can_build_shared" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12473 $as_echo_n "checking whether to build shared libraries... " >&6; }
12474 test "$can_build_shared" = "no" && enable_shared=no
12476 # On AIX, shared libraries and static libraries use the same namespace, and
12477 # are all built from PIC.
12480 test "$enable_shared" = yes && enable_static=no
12481 if test -n "$RANLIB"; then
12482 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12483 postinstall_cmds='$RANLIB $lib'
12488 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12489 test "$enable_shared" = yes && enable_static=no
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12494 $as_echo "$enable_shared" >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12497 $as_echo_n "checking whether to build static libraries... " >&6; }
12498 # Make sure either enable_shared or enable_static is yes.
12499 test "$enable_shared" = yes || enable_static=yes
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12501 $as_echo "$enable_static" >&6; }
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12529 ac_config_commands="$ac_config_commands libtool"
12534 # Only expand once:
12540 # Check whether --with-cxx was given.
12541 if test "${with_cxx+set}" = set; then :
12542 withval=$with_cxx; with_cxx=$withval
12547 if test "x$with_cxx" = xyes; then
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12560 if test -z "$CXX"; then
12561 if test -n "$CCC"; then
12564 if test -n "$ac_tool_prefix"; then
12565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_CXX+:} false; then :
12572 $as_echo_n "(cached) " >&6
12574 if test -n "$CXX"; then
12575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 CXX=$ac_cv_prog_CXX
12595 if test -n "$CXX"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12597 $as_echo "$CXX" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12604 test -n "$CXX" && break
12607 if test -z "$CXX"; then
12609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12611 # Extract the first word of "$ac_prog", so it can be a program name with args.
12612 set dummy $ac_prog; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12616 $as_echo_n "(cached) " >&6
12618 if test -n "$ac_ct_CXX"; then
12619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_ac_ct_CXX="$ac_prog"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12639 if test -n "$ac_ct_CXX"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12641 $as_echo "$ac_ct_CXX" >&6; }
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12648 test -n "$ac_ct_CXX" && break
12651 if test "x$ac_ct_CXX" = x; then
12654 case $cross_compiling:$ac_tool_warned in
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658 ac_tool_warned=yes ;;
12666 # Provide some information about the compiler.
12667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12670 for ac_option in --version -v -V -qversion; do
12671 { { ac_try="$ac_compiler $ac_option >&5"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12677 $as_echo "$ac_try_echo"; } >&5
12678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12680 if test -s conftest.err; then
12682 ... rest of stderr output deleted ...
12683 10q' conftest.err >conftest.er1
12684 cat conftest.er1 >&5
12686 rm -f conftest.er1 conftest.err
12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688 test $ac_status = 0; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12693 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12710 if ac_fn_cxx_try_compile "$LINENO"; then :
12711 ac_compiler_gnu=yes
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12721 if test $ac_compiler_gnu = yes; then
12726 ac_test_CXXFLAGS=${CXXFLAGS+set}
12727 ac_save_CXXFLAGS=$CXXFLAGS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12730 if ${ac_cv_prog_cxx_g+:} false; then :
12731 $as_echo_n "(cached) " >&6
12733 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12734 ac_cxx_werror_flag=yes
12735 ac_cv_prog_cxx_g=no
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12748 if ac_fn_cxx_try_compile "$LINENO"; then :
12749 ac_cv_prog_cxx_g=yes
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12763 if ac_fn_cxx_try_compile "$LINENO"; then :
12766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12779 if ac_fn_cxx_try_compile "$LINENO"; then :
12780 ac_cv_prog_cxx_g=yes
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12791 if test "$ac_test_CXXFLAGS" = set; then
12792 CXXFLAGS=$ac_save_CXXFLAGS
12793 elif test $ac_cv_prog_cxx_g = yes; then
12794 if test "$GXX" = yes; then
12800 if test "$GXX" = yes; then
12807 ac_cpp='$CPP $CPPFLAGS'
12808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812 depcc="$CXX" am_compiler_list=
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12815 $as_echo_n "checking dependency style of $depcc... " >&6; }
12816 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12817 $as_echo_n "(cached) " >&6
12819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12820 # We make a subdir and do the tests there. Otherwise we can end up
12821 # making bogus files that we don't know about and never remove. For
12822 # instance it was reported that on HP-UX the gcc test will end up
12823 # making a dummy file named 'D' -- because '-MD' means "put the output
12825 rm -rf conftest.dir
12827 # Copy depcomp to subdir because otherwise we won't find it if we're
12828 # using a relative directory.
12829 cp "$am_depcomp" conftest.dir
12831 # We will build objects and dependencies in a subdirectory because
12832 # it helps to detect inapplicable dependency modes. For instance
12833 # both Tru64's cc and ICC support -MD to output dependencies as a
12834 # side effect of compilation, but ICC will put the dependencies in
12835 # the current directory while Tru64 will put them in the object
12839 am_cv_CXX_dependencies_compiler_type=none
12840 if test "$am_compiler_list" = ""; then
12841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12843 am__universal=false
12844 case " $depcc " in #(
12845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12848 for depmode in $am_compiler_list; do
12849 # Setup a source with many dependencies, because some compilers
12850 # like to wrap large dependency lists on column 80 (with \), and
12851 # we should not choose a depcomp mode which is confused by this.
12853 # We need to recreate these files for each test, as the compiler may
12854 # overwrite some of them when testing with obscure command lines.
12855 # This happens at least with the AIX C compiler.
12857 for i in 1 2 3 4 5 6; do
12858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12859 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12860 # Solaris 10 /bin/sh.
12861 echo '/* dummy */' > sub/conftst$i.h
12863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12865 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12866 # mode. It turns out that the SunPro C++ compiler does not properly
12867 # handle '-M -o', and we need to detect this. Also, some Intel
12868 # versions had trouble with output in subdirs.
12869 am__obj=sub/conftest.${OBJEXT-o}
12870 am__minus_obj="-o $am__obj"
12873 # This depmode causes a compiler race in universal mode.
12874 test "$am__universal" = false || continue
12877 # After this tag, mechanisms are not by side-effect, so they'll
12878 # only be used when explicitly requested.
12879 if test "x$enable_dependency_tracking" = xyes; then
12885 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12886 # This compiler won't grok '-c -o', but also, the minuso test has
12887 # not run yet. These depmodes are late enough in the game, and
12888 # so weak that their functioning should not be impacted.
12889 am__obj=conftest.${OBJEXT-o}
12894 if depmode=$depmode \
12895 source=sub/conftest.c object=$am__obj \
12896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12898 >/dev/null 2>conftest.err &&
12899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12903 # icc doesn't choke on unknown options, it will just issue warnings
12904 # or remarks (even with -Werror). So we grep stderr for any message
12905 # that says an option was ignored or not supported.
12906 # When given -MP, icc 7.0 and 7.1 complain thusly:
12907 # icc: Command line warning: ignoring option '-M'; no argument required
12908 # The diagnosis changed in icc 8.0:
12909 # icc: Command line remark: option '-MP' not supported
12910 if (grep 'ignoring option' conftest.err ||
12911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12912 am_cv_CXX_dependencies_compiler_type=$depmode
12919 rm -rf conftest.dir
12921 am_cv_CXX_dependencies_compiler_type=none
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12926 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12927 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12930 test "x$enable_dependency_tracking" != xno \
12931 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12932 am__fastdepCXX_TRUE=
12933 am__fastdepCXX_FALSE='#'
12935 am__fastdepCXX_TRUE='#'
12936 am__fastdepCXX_FALSE=
12942 func_stripname_cnf ()
12945 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12946 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12948 } # func_stripname_cnf
12950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12951 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12952 (test "X$CXX" != "Xg++"))) ; then
12954 ac_cpp='$CXXCPP $CPPFLAGS'
12955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12959 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12960 if test -z "$CXXCPP"; then
12961 if ${ac_cv_prog_CXXCPP+:} false; then :
12962 $as_echo_n "(cached) " >&6
12964 # Double quotes because CXXCPP needs to be expanded
12965 for CXXCPP in "$CXX -E" "/lib/cpp"
12967 ac_preproc_ok=false
12968 for ac_cxx_preproc_warn_flag in '' yes
12970 # Use a header file that comes with gcc, so configuring glibc
12971 # with a fresh cross-compiler works.
12972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12973 # <limits.h> exists even on freestanding compilers.
12974 # On the NeXT, cc -E runs the code through the compiler's parser,
12975 # not just through cpp. "Syntax error" is here to catch this case.
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 # include <limits.h>
12981 # include <assert.h>
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12988 # Broken: fails on valid input.
12991 rm -f conftest.err conftest.i conftest.$ac_ext
12993 # OK, works on sane cases. Now check whether nonexistent headers
12994 # can be detected and how.
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997 #include <ac_nonexistent.h>
12999 if ac_fn_cxx_try_cpp "$LINENO"; then :
13000 # Broken: success on invalid input.
13003 # Passes both tests.
13007 rm -f conftest.err conftest.i conftest.$ac_ext
13010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13011 rm -f conftest.i conftest.err conftest.$ac_ext
13012 if $ac_preproc_ok; then :
13017 ac_cv_prog_CXXCPP=$CXXCPP
13020 CXXCPP=$ac_cv_prog_CXXCPP
13022 ac_cv_prog_CXXCPP=$CXXCPP
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13025 $as_echo "$CXXCPP" >&6; }
13026 ac_preproc_ok=false
13027 for ac_cxx_preproc_warn_flag in '' yes
13029 # Use a header file that comes with gcc, so configuring glibc
13030 # with a fresh cross-compiler works.
13031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032 # <limits.h> exists even on freestanding compilers.
13033 # On the NeXT, cc -E runs the code through the compiler's parser,
13034 # not just through cpp. "Syntax error" is here to catch this case.
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13038 # include <limits.h>
13040 # include <assert.h>
13044 if ac_fn_cxx_try_cpp "$LINENO"; then :
13047 # Broken: fails on valid input.
13050 rm -f conftest.err conftest.i conftest.$ac_ext
13052 # OK, works on sane cases. Now check whether nonexistent headers
13053 # can be detected and how.
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #include <ac_nonexistent.h>
13058 if ac_fn_cxx_try_cpp "$LINENO"; then :
13059 # Broken: success on invalid input.
13062 # Passes both tests.
13066 rm -f conftest.err conftest.i conftest.$ac_ext
13069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13070 rm -f conftest.i conftest.err conftest.$ac_ext
13071 if $ac_preproc_ok; then :
13074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13076 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13077 See \`config.log' for more details" "$LINENO" 5; }
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087 _lt_caught_CXX_error=yes
13091 ac_cpp='$CXXCPP $CPPFLAGS'
13092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13096 archive_cmds_need_lc_CXX=no
13097 allow_undefined_flag_CXX=
13098 always_export_symbols_CXX=no
13099 archive_expsym_cmds_CXX=
13100 compiler_needs_object_CXX=no
13101 export_dynamic_flag_spec_CXX=
13102 hardcode_direct_CXX=no
13103 hardcode_direct_absolute_CXX=no
13104 hardcode_libdir_flag_spec_CXX=
13105 hardcode_libdir_separator_CXX=
13106 hardcode_minus_L_CXX=no
13107 hardcode_shlibpath_var_CXX=unsupported
13108 hardcode_automatic_CXX=no
13109 inherit_rpath_CXX=no
13111 module_expsym_cmds_CXX=
13112 link_all_deplibs_CXX=unknown
13113 old_archive_cmds_CXX=$old_archive_cmds
13114 reload_flag_CXX=$reload_flag
13115 reload_cmds_CXX=$reload_cmds
13116 no_undefined_flag_CXX=
13117 whole_archive_flag_spec_CXX=
13118 enable_shared_with_static_runtimes_CXX=no
13120 # Source file extension for C++ test sources.
13123 # Object file extension for compiled C++ test sources.
13127 # No sense in running all these tests if we already determined that
13128 # the CXX compiler isn't working. Some variables (like enable_shared)
13129 # are currently assumed to apply to all compilers on this platform,
13130 # and will be corrupted by setting them based on a non-working compiler.
13131 if test "$_lt_caught_CXX_error" != yes; then
13132 # Code to be used in simple compile tests
13133 lt_simple_compile_test_code="int some_variable = 0;"
13135 # Code to be used in simple link tests
13136 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13145 # If no C compiler was specified, use CC.
13148 # If no C compiler flags were specified, use CFLAGS.
13149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13151 # Allow CC to be a program name with arguments.
13155 # save warnings/boilerplate of simple test code
13156 ac_outfile=conftest.$ac_objext
13157 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13159 _lt_compiler_boilerplate=`cat conftest.err`
13162 ac_outfile=conftest.$ac_objext
13163 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13165 _lt_linker_boilerplate=`cat conftest.err`
13169 # Allow CC to be a program name with arguments.
13171 lt_save_CFLAGS=$CFLAGS
13175 lt_save_with_gnu_ld=$with_gnu_ld
13176 lt_save_path_LD=$lt_cv_path_LD
13177 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13178 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13180 $as_unset lt_cv_prog_gnu_ld
13182 if test -n "${lt_cv_path_LDCXX+set}"; then
13183 lt_cv_path_LD=$lt_cv_path_LDCXX
13185 $as_unset lt_cv_path_LD
13187 test -z "${LDCXX+set}" || LD=$LDCXX
13192 for cc_temp in $compiler""; do
13194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13203 if test -n "$compiler"; then
13204 # We don't want -fno-exception when compiling C++ code, so set the
13205 # no_builtin_flag separately
13206 if test "$GXX" = yes; then
13207 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13209 lt_prog_compiler_no_builtin_flag_CXX=
13212 if test "$GXX" = yes; then
13213 # Set up default GNU C++ configuration
13217 # Check whether --with-gnu-ld was given.
13218 if test "${with_gnu_ld+set}" = set; then :
13219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13225 if test "$GCC" = yes; then
13226 # Check if gcc -print-prog-name=ld gives a path.
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13228 $as_echo_n "checking for ld used by $CC... " >&6; }
13231 # gcc leaves a trailing carriage return which upsets mingw
13232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13237 # Accept absolute paths.
13239 re_direlt='/[^/][^/]*/\.\./'
13240 # Canonicalize the pathname of ld
13241 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13242 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13243 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13245 test -z "$LD" && LD="$ac_prog"
13248 # If it fails, then pretend we aren't using GCC.
13252 # If it is relative, then search for the first ld in PATH.
13253 with_gnu_ld=unknown
13256 elif test "$with_gnu_ld" = yes; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13258 $as_echo_n "checking for GNU ld... " >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13261 $as_echo_n "checking for non-GNU ld... " >&6; }
13263 if ${lt_cv_path_LD+:} false; then :
13264 $as_echo_n "(cached) " >&6
13266 if test -z "$LD"; then
13267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13268 for ac_dir in $PATH; do
13270 test -z "$ac_dir" && ac_dir=.
13271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13272 lt_cv_path_LD="$ac_dir/$ac_prog"
13273 # Check to see if the program is GNU ld. I'd rather use --version,
13274 # but apparently some variants of GNU ld only accept -v.
13275 # Break only if it was the GNU/non-GNU ld that we prefer.
13276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13277 *GNU* | *'with BFD'*)
13278 test "$with_gnu_ld" != no && break
13281 test "$with_gnu_ld" != yes && break
13288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13292 LD="$lt_cv_path_LD"
13293 if test -n "$LD"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13295 $as_echo "$LD" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13303 if ${lt_cv_prog_gnu_ld+:} false; then :
13304 $as_echo_n "(cached) " >&6
13306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13307 case `$LD -v 2>&1 </dev/null` in
13308 *GNU* | *'with BFD'*)
13309 lt_cv_prog_gnu_ld=yes
13312 lt_cv_prog_gnu_ld=no
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13318 with_gnu_ld=$lt_cv_prog_gnu_ld
13326 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13327 # archiving commands below assume that GNU ld is being used.
13328 if test "$with_gnu_ld" = yes; then
13329 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 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'
13332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13335 # If archive_cmds runs LD, not CC, wlarc should be empty
13336 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13337 # investigate it a little bit more. (MM)
13340 # ancient GNU ld didn't support --whole-archive et. al.
13341 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13342 $GREP 'no-whole-archive' > /dev/null; then
13343 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13345 whole_archive_flag_spec_CXX=
13351 # A generic and very simple default shared library creation
13352 # command for GNU C++ for the case where it uses the native
13353 # linker, instead of GNU ld. If possible, this setting should
13354 # overridden to take advantage of the native linker features on
13355 # the platform it is being used on.
13356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13359 # Commands to make compiler produce verbose output that lists
13360 # what "hidden" libraries, object files and flags are used when
13361 # linking a shared library.
13362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13370 # PORTME: fill in a description of your system's C++ link characteristics
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13376 # FIXME: insert proper C++ library support
13380 if test "$host_cpu" = ia64; then
13381 # On IA64, the linker does run time linking by default, so we don't
13382 # have to do anything special.
13383 aix_use_runtimelinking=no
13384 exp_sym_flag='-Bexport'
13387 aix_use_runtimelinking=no
13389 # Test if we are trying to use run time linking or normal
13390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13391 # need to do runtime linking.
13392 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13393 for ld_flag in $LDFLAGS; do
13396 aix_use_runtimelinking=yes
13404 exp_sym_flag='-bexport'
13405 no_entry_flag='-bnoentry'
13408 # When large executables or shared objects are built, AIX ld can
13409 # have problems creating the table of contents. If linking a library
13410 # or program results in "error TOC overflow" add -mminimal-toc to
13411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13414 archive_cmds_CXX=''
13415 hardcode_direct_CXX=yes
13416 hardcode_direct_absolute_CXX=yes
13417 hardcode_libdir_separator_CXX=':'
13418 link_all_deplibs_CXX=yes
13419 file_list_spec_CXX='${wl}-f,'
13421 if test "$GXX" = yes; then
13422 case $host_os in aix4.[012]|aix4.[012].*)
13423 # We only want to do this on AIX 4.2 and lower, the check
13424 # below for broken collect2 doesn't work under 4.3+
13425 collect2name=`${CC} -print-prog-name=collect2`
13426 if test -f "$collect2name" &&
13427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13429 # We have reworked collect2
13432 # We have old collect2
13433 hardcode_direct_CXX=unsupported
13434 # It fails to find uninstalled libraries when the uninstalled
13435 # path is not listed in the libpath. Setting hardcode_minus_L
13436 # to unsupported forces relinking
13437 hardcode_minus_L_CXX=yes
13438 hardcode_libdir_flag_spec_CXX='-L$libdir'
13439 hardcode_libdir_separator_CXX=
13442 shared_flag='-shared'
13443 if test "$aix_use_runtimelinking" = yes; then
13444 shared_flag="$shared_flag "'${wl}-G'
13448 if test "$host_cpu" = ia64; then
13449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13450 # chokes on -Wl,-G. The following line is correct:
13453 if test "$aix_use_runtimelinking" = yes; then
13454 shared_flag='${wl}-G'
13456 shared_flag='${wl}-bM:SRE'
13461 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13462 # It seems that -bexpall does not export symbols beginning with
13463 # underscore (_), so it is better to generate a list of symbols to
13465 always_export_symbols_CXX=yes
13466 if test "$aix_use_runtimelinking" = yes; then
13467 # Warning - without using the other runtime loading flags (-brtl),
13468 # -berok will link without error, but may produce a broken library.
13469 allow_undefined_flag_CXX='-berok'
13470 # Determine the default libpath from the value encoded in an empty
13472 if test "${lt_cv_aix_libpath+set}" = set; then
13473 aix_libpath=$lt_cv_aix_libpath
13475 if ${lt_cv_aix_libpath__CXX+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13489 if ac_fn_cxx_try_link "$LINENO"; then :
13491 lt_aix_libpath_sed='
13492 /Import File Strings/,/^$/ {
13494 s/^0 *\([^ ]*\) *$/\1/
13498 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13499 # Check for a 64-bit object if we didn't find anything.
13500 if test -z "$lt_cv_aix_libpath__CXX"; then
13501 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 if test -z "$lt_cv_aix_libpath__CXX"; then
13507 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13512 aix_libpath=$lt_cv_aix_libpath__CXX
13515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13517 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"
13519 if test "$host_cpu" = ia64; then
13520 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13521 allow_undefined_flag_CXX="-z nodefs"
13522 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"
13524 # Determine the default libpath from the value encoded in an
13525 # empty executable.
13526 if test "${lt_cv_aix_libpath+set}" = set; then
13527 aix_libpath=$lt_cv_aix_libpath
13529 if ${lt_cv_aix_libpath__CXX+:} false; then :
13530 $as_echo_n "(cached) " >&6
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13543 if ac_fn_cxx_try_link "$LINENO"; then :
13545 lt_aix_libpath_sed='
13546 /Import File Strings/,/^$/ {
13548 s/^0 *\([^ ]*\) *$/\1/
13552 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13553 # Check for a 64-bit object if we didn't find anything.
13554 if test -z "$lt_cv_aix_libpath__CXX"; then
13555 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 if test -z "$lt_cv_aix_libpath__CXX"; then
13561 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13566 aix_libpath=$lt_cv_aix_libpath__CXX
13569 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13570 # Warning - without using the other run time loading flags,
13571 # -berok will link without error, but may produce a broken library.
13572 no_undefined_flag_CXX=' ${wl}-bernotok'
13573 allow_undefined_flag_CXX=' ${wl}-berok'
13574 if test "$with_gnu_ld" = yes; then
13575 # We only use this code for GNU lds that support --whole-archive.
13576 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13578 # Exported symbols can be pulled into shared objects from archives
13579 whole_archive_flag_spec_CXX='$convenience'
13581 archive_cmds_need_lc_CXX=yes
13582 # This is similar to how AIX traditionally builds its shared
13584 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'
13590 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13591 allow_undefined_flag_CXX=unsupported
13592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13593 # support --undefined. This deserves some investigation. FIXME
13594 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601 case $cc_basename in
13603 # FIXME: insert proper C++ library support
13609 cygwin* | mingw* | pw32* | cegcc*)
13610 case $GXX,$cc_basename in
13613 # hardcode_libdir_flag_spec is actually meaningless, as there is
13614 # no search path for DLLs.
13615 hardcode_libdir_flag_spec_CXX=' '
13616 allow_undefined_flag_CXX=unsupported
13617 always_export_symbols_CXX=yes
13618 file_list_spec_CXX='@'
13619 # Tell ltmain to make .lib files, not .a files.
13621 # Tell ltmain to make .dll files, not .so files.
13623 # FIXME: Setting linknames here is a bad hack.
13624 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13625 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13626 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13628 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13630 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13632 # The linker will not automatically build a static lib if we build a DLL.
13633 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13634 enable_shared_with_static_runtimes_CXX=yes
13636 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13637 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13638 lt_tool_outputfile="@TOOL_OUTPUT@"~
13639 case $lt_outputfile in
13642 lt_outputfile="$lt_outputfile.exe"
13643 lt_tool_outputfile="$lt_tool_outputfile.exe"
13646 func_to_tool_file "$lt_outputfile"~
13647 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13648 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13649 $RM "$lt_outputfile.manifest";
13654 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13655 # as there is no search path for DLLs.
13656 hardcode_libdir_flag_spec_CXX='-L$libdir'
13657 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13658 allow_undefined_flag_CXX=unsupported
13659 always_export_symbols_CXX=no
13660 enable_shared_with_static_runtimes_CXX=yes
13662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13663 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'
13664 # If the export-symbols file already is a .def file (1st line
13665 # is EXPORTS), use it as is; otherwise, prepend...
13666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13667 cp $export_symbols $output_objdir/$soname.def;
13669 echo EXPORTS > $output_objdir/$soname.def;
13670 cat $export_symbols >> $output_objdir/$soname.def;
13672 $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'
13679 darwin* | rhapsody*)
13682 archive_cmds_need_lc_CXX=no
13683 hardcode_direct_CXX=no
13684 hardcode_automatic_CXX=yes
13685 hardcode_shlibpath_var_CXX=unsupported
13686 if test "$lt_cv_ld_force_load" = "yes"; then
13687 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\"`'
13690 whole_archive_flag_spec_CXX=''
13692 link_all_deplibs_CXX=yes
13693 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13694 case $cc_basename in
13695 ifort*) _lt_dar_can_shared=yes ;;
13696 *) _lt_dar_can_shared=$GCC ;;
13698 if test "$_lt_dar_can_shared" = "yes"; then
13699 output_verbose_link_cmd=func_echo_all
13700 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13701 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13702 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13703 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}"
13704 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13705 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13706 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}"
13716 case $cc_basename in
13718 # FIXME: insert proper C++ library support
13722 # Green Hills C++ Compiler
13723 # FIXME: insert proper C++ library support
13727 # FIXME: insert proper C++ library support
13734 # C++ shared libraries reported to be fairly broken before
13740 archive_cmds_need_lc_CXX=no
13743 freebsd* | dragonfly*)
13744 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13753 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 link_all_deplibs_CXX=yes
13758 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13759 hardcode_libdir_separator_CXX=:
13760 export_dynamic_flag_spec_CXX='${wl}-E'
13761 hardcode_direct_CXX=yes
13762 hardcode_minus_L_CXX=yes # Not in the search PATH,
13763 # but as the default
13764 # location of the library.
13766 case $cc_basename in
13768 # FIXME: insert proper C++ library support
13772 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'
13773 # Commands to make compiler produce verbose output that lists
13774 # what "hidden" libraries, object files and flags are used when
13775 # linking a shared library.
13777 # There doesn't appear to be a way to prevent this compiler from
13778 # explicitly linking system object files so we need to strip them
13779 # from the output so that they don't get included in the library
13781 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"'
13784 if test "$GXX" = yes; then
13785 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13787 # FIXME: insert proper C++ library support
13795 if test $with_gnu_ld = no; then
13796 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13797 hardcode_libdir_separator_CXX=:
13803 export_dynamic_flag_spec_CXX='${wl}-E'
13809 hardcode_direct_CXX=no
13810 hardcode_shlibpath_var_CXX=no
13813 hardcode_direct_CXX=yes
13814 hardcode_direct_absolute_CXX=yes
13815 hardcode_minus_L_CXX=yes # Not in the search PATH,
13816 # but as the default
13817 # location of the library.
13821 case $cc_basename in
13823 # FIXME: insert proper C++ library support
13829 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13832 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13838 # Commands to make compiler produce verbose output that lists
13839 # what "hidden" libraries, object files and flags are used when
13840 # linking a shared library.
13842 # There doesn't appear to be a way to prevent this compiler from
13843 # explicitly linking system object files so we need to strip them
13844 # from the output so that they don't get included in the library
13846 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"'
13849 if test "$GXX" = yes; then
13850 if test $with_gnu_ld = no; then
13853 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13856 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13859 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13864 # FIXME: insert proper C++ library support
13872 hardcode_direct_CXX=no
13873 hardcode_shlibpath_var_CXX=no
13874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13875 export_dynamic_flag_spec_CXX='${wl}-E'
13876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13877 # Instead, shared libraries are loaded at an image base (0x10000000 by
13878 # default) and relocated if they conflict, which is a slow very memory
13879 # consuming and fragmenting process. To avoid this, we pick a random,
13880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13882 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'
13883 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'
13886 case $cc_basename in
13889 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'
13891 # Archives containing C++ object files must be created using
13892 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13893 # necessary to make sure instantiated templates are included
13895 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13898 if test "$GXX" = yes; then
13899 if test "$with_gnu_ld" = no; then
13900 archive_cmds_CXX='$CC -shared $pic_flag -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'
13902 archive_cmds_CXX='$CC -shared $pic_flag -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'
13905 link_all_deplibs_CXX=yes
13908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13909 hardcode_libdir_separator_CXX=:
13910 inherit_rpath_CXX=yes
13913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13914 case $cc_basename in
13916 # Kuck and Associates, Inc. (KAI) C++ Compiler
13918 # KCC will only create a shared library if the output file
13919 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13920 # to its proper name (with version) after linking.
13921 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'
13922 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'
13923 # Commands to make compiler produce verbose output that lists
13924 # what "hidden" libraries, object files and flags are used when
13925 # linking a shared library.
13927 # There doesn't appear to be a way to prevent this compiler from
13928 # explicitly linking system object files so we need to strip them
13929 # from the output so that they don't get included in the library
13931 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"'
13933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13936 # Archives containing C++ object files must be created using
13937 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13938 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13943 # version 8.0 and above of icpc choke on multiply defined symbols
13944 # if we add $predep_objects and $postdep_objects, however 7.1 and
13945 # earlier do not add the objects themselves.
13946 case `$CC -V 2>&1` in
13948 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13949 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'
13951 *) # Version 8.0 or newer
13954 ia64*) tmp_idyn=' -i_dynamic';;
13956 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13957 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'
13960 archive_cmds_need_lc_CXX=no
13961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13963 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13966 # Portland Group C++ compiler
13968 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13969 prelink_cmds_CXX='tpldir=Template.dir~
13971 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13972 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13973 old_archive_cmds_CXX='tpldir=Template.dir~
13975 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13976 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13978 archive_cmds_CXX='tpldir=Template.dir~
13980 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13981 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13982 archive_expsym_cmds_CXX='tpldir=Template.dir~
13984 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13985 $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'
13987 *) # Version 6 and above use weak symbols
13988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13989 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'
13993 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13995 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'
13999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 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'
14002 runpath_var=LD_RUN_PATH
14003 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14004 hardcode_libdir_separator_CXX=:
14006 # Commands to make compiler produce verbose output that lists
14007 # what "hidden" libraries, object files and flags are used when
14008 # linking a shared library.
14010 # There doesn't appear to be a way to prevent this compiler from
14011 # explicitly linking system object files so we need to strip them
14012 # from the output so that they don't get included in the library
14014 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'
14016 xl* | mpixl* | bgxl*)
14017 # IBM XL 8.0 on PPC, with GNU ld
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14020 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021 if test "x$supports_anon_versioning" = xyes; then
14022 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14024 echo "local: *; };" >> $output_objdir/$libname.ver~
14025 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14029 case `$CC -V 2>&1 | sed 5q` in
14032 no_undefined_flag_CXX=' -zdefs'
14033 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14034 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'
14035 hardcode_libdir_flag_spec_CXX='-R$libdir'
14036 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'
14037 compiler_needs_object_CXX=yes
14039 # Not sure whether something based on
14040 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14042 output_verbose_link_cmd='func_echo_all'
14044 # Archives containing C++ object files must be created using
14045 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14046 # necessary to make sure instantiated templates are included
14048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14056 # FIXME: insert proper C++ library support
14061 # FIXME: insert proper C++ library support
14066 case $cc_basename in
14068 # FIXME: insert proper C++ library support
14072 # FIXME: insert proper C++ library support
14079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14082 hardcode_libdir_flag_spec_CXX='-R$libdir'
14083 hardcode_direct_CXX=yes
14084 hardcode_shlibpath_var_CXX=no
14086 # Workaround some broken pre-1.5 toolchains
14087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14095 # C++ shared libraries are fairly broken
14100 if test -f /usr/libexec/ld.so; then
14101 hardcode_direct_CXX=yes
14102 hardcode_shlibpath_var_CXX=no
14103 hardcode_direct_absolute_CXX=yes
14104 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14107 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14108 export_dynamic_flag_spec_CXX='${wl}-E'
14109 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14111 output_verbose_link_cmd=func_echo_all
14117 osf3* | osf4* | osf5*)
14118 case $cc_basename in
14120 # Kuck and Associates, Inc. (KAI) C++ Compiler
14122 # KCC will only create a shared library if the output file
14123 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14124 # to its proper name (with version) after linking.
14125 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'
14127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14128 hardcode_libdir_separator_CXX=:
14130 # Archives containing C++ object files must be created using
14131 # the KAI C++ compiler.
14133 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14134 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14138 # Rational C++ 2.4.1
14139 # FIXME: insert proper C++ library support
14145 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14146 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'
14147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14150 allow_undefined_flag_CXX=' -expect_unresolved \*'
14151 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'
14152 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14153 echo "-hidden">> $lib.exp~
14154 $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~
14156 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14160 hardcode_libdir_separator_CXX=:
14162 # Commands to make compiler produce verbose output that lists
14163 # what "hidden" libraries, object files and flags are used when
14164 # linking a shared library.
14166 # There doesn't appear to be a way to prevent this compiler from
14167 # explicitly linking system object files so we need to strip them
14168 # from the output so that they don't get included in the library
14170 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"'
14173 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14177 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'
14180 archive_cmds_CXX='$CC -shared $pic_flag -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'
14184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14185 hardcode_libdir_separator_CXX=:
14187 # Commands to make compiler produce verbose output that lists
14188 # what "hidden" libraries, object files and flags are used when
14189 # linking a shared library.
14190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14193 # FIXME: insert proper C++ library support
14201 # FIXME: insert proper C++ library support
14206 case $cc_basename in
14209 # FIXME: insert proper C++ library support
14214 # FIXME: insert proper C++ library support
14218 # FIXME: insert proper C++ library support
14225 case $cc_basename in
14227 # Sun C++ 4.2, 5.x and Centerline C++
14228 archive_cmds_need_lc_CXX=yes
14229 no_undefined_flag_CXX=' -zdefs'
14230 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14231 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14232 $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'
14234 hardcode_libdir_flag_spec_CXX='-R$libdir'
14235 hardcode_shlibpath_var_CXX=no
14237 solaris2.[0-5] | solaris2.[0-5].*) ;;
14239 # The compiler driver will combine and reorder linker options,
14240 # but understands `-z linker_flag'.
14241 # Supported since Solaris 2.6 (maybe 2.5.1?)
14242 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14245 link_all_deplibs_CXX=yes
14247 output_verbose_link_cmd='func_echo_all'
14249 # Archives containing C++ object files must be created using
14250 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14251 # necessary to make sure instantiated templates are included
14253 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14256 # Green Hills C++ Compiler
14257 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14259 # The C++ compiler must be used to create the archive.
14260 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14263 # GNU C++ compiler with Solaris linker
14264 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14265 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14266 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14267 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14268 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14269 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14271 # Commands to make compiler produce verbose output that lists
14272 # what "hidden" libraries, object files and flags are used when
14273 # linking a shared library.
14274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14276 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14278 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14279 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14282 # Commands to make compiler produce verbose output that lists
14283 # what "hidden" libraries, object files and flags are used when
14284 # linking a shared library.
14285 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14288 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14290 solaris2.[0-5] | solaris2.[0-5].*) ;;
14292 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14300 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14301 no_undefined_flag_CXX='${wl}-z,text'
14302 archive_cmds_need_lc_CXX=no
14303 hardcode_shlibpath_var_CXX=no
14304 runpath_var='LD_RUN_PATH'
14306 case $cc_basename in
14308 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14318 sysv5* | sco3.2v5* | sco5v6*)
14319 # Note: We can NOT use -z defs as we might desire, because we do not
14320 # link with -lc, and that would cause any symbols used from libc to
14321 # always be unresolved, which means just about no library would
14322 # ever link correctly. If we're not using GNU ld we use -z text
14323 # though, which does catch some bad symbols but isn't as heavy-handed
14325 no_undefined_flag_CXX='${wl}-z,text'
14326 allow_undefined_flag_CXX='${wl}-z,nodefs'
14327 archive_cmds_need_lc_CXX=no
14328 hardcode_shlibpath_var_CXX=no
14329 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14330 hardcode_libdir_separator_CXX=':'
14331 link_all_deplibs_CXX=yes
14332 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14333 runpath_var='LD_RUN_PATH'
14335 case $cc_basename in
14337 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14338 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14340 '"$old_archive_cmds_CXX"
14341 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14342 '"$reload_cmds_CXX"
14345 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 case $cc_basename in
14354 # NonStop-UX NCC 3.20
14355 # FIXME: insert proper C++ library support
14359 # FIXME: insert proper C++ library support
14366 # FIXME: insert proper C++ library support
14371 # FIXME: insert proper C++ library support
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14377 $as_echo "$ld_shlibs_CXX" >&6; }
14378 test "$ld_shlibs_CXX" = no && can_build_shared=no
14384 ## There is no encapsulation within the following macros, do not change
14385 ## the running order or otherwise move them around unless you know exactly
14386 ## what you are doing...
14387 # Dependencies to place before and after the object being linked:
14388 predep_objects_CXX=
14389 postdep_objects_CXX=
14392 compiler_lib_search_path_CXX=
14394 cat > conftest.$ac_ext <<_LT_EOF
14398 Foo (void) { a = 0; }
14405 _lt_libdeps_save_CFLAGS=$CFLAGS
14406 case "$CC $CFLAGS " in #(
14407 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14408 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14409 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14413 (eval $ac_compile) 2>&5
14415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14416 test $ac_status = 0; }; then
14417 # Parse the compiler output and extract the necessary
14418 # objects, libraries and library flags.
14420 # Sentinel used to keep track of whether or not we are before
14421 # the conftest object file.
14422 pre_test_object_deps_done=no
14424 for p in `eval "$output_verbose_link_cmd"`; do
14425 case ${prev}${p} in
14428 # Some compilers place space between "-{L,R}" and the path.
14429 # Remove the space.
14430 if test $p = "-L" ||
14431 test $p = "-R"; then
14436 # Expand the sysroot to ease extracting the directories later.
14437 if test -z "$prev"; then
14439 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14440 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14441 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14445 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14447 if test "$pre_test_object_deps_done" = no; then
14450 # Internal compiler library paths should come after those
14451 # provided the user. The postdeps already come after the
14452 # user supplied libs so there is no need to process them.
14453 if test -z "$compiler_lib_search_path_CXX"; then
14454 compiler_lib_search_path_CXX="${prev}${p}"
14456 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14459 # The "-l" case would never come before the object being
14460 # linked, so don't bother handling this case.
14463 if test -z "$postdeps_CXX"; then
14464 postdeps_CXX="${prev}${p}"
14466 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14472 *.lto.$objext) ;; # Ignore GCC LTO objects
14474 # This assumes that the test object file only shows up
14475 # once in the compiler output.
14476 if test "$p" = "conftest.$objext"; then
14477 pre_test_object_deps_done=yes
14481 if test "$pre_test_object_deps_done" = no; then
14482 if test -z "$predep_objects_CXX"; then
14483 predep_objects_CXX="$p"
14485 predep_objects_CXX="$predep_objects_CXX $p"
14488 if test -z "$postdep_objects_CXX"; then
14489 postdep_objects_CXX="$p"
14491 postdep_objects_CXX="$postdep_objects_CXX $p"
14496 *) ;; # Ignore the rest.
14504 echo "libtool.m4: error: problem compiling CXX test program"
14507 $RM -f confest.$objext
14508 CFLAGS=$_lt_libdeps_save_CFLAGS
14510 # PORTME: override above test on systems where it is broken
14513 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14514 # hack all around it, let's just trust "g++" to DTRT.
14515 predep_objects_CXX=
14516 postdep_objects_CXX=
14521 case `$CC -V 2>&1 | sed 5q` in
14525 # The more standards-conforming stlport4 library is
14526 # incompatible with the Cstd library. Avoid specifying
14527 # it if it's in CXXFLAGS. Ignore libCrun as
14528 # -library=stlport4 depends on it.
14529 case " $CXX $CXXFLAGS " in
14530 *" -library=stlport4 "*)
14531 solaris_use_stlport4=yes
14535 if test "$solaris_use_stlport4" != yes; then
14536 postdeps_CXX='-library=Cstd -library=Crun'
14543 case $cc_basename in
14545 # The more standards-conforming stlport4 library is
14546 # incompatible with the Cstd library. Avoid specifying
14547 # it if it's in CXXFLAGS. Ignore libCrun as
14548 # -library=stlport4 depends on it.
14549 case " $CXX $CXXFLAGS " in
14550 *" -library=stlport4 "*)
14551 solaris_use_stlport4=yes
14555 # Adding this requires a known-good setup of shared libraries for
14556 # Sun compiler versions before 5.6, else PIC objects from an old
14557 # archive will be linked into the output, leading to subtle bugs.
14558 if test "$solaris_use_stlport4" != yes; then
14559 postdeps_CXX='-library=Cstd -library=Crun'
14567 case " $postdeps_CXX " in
14568 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14570 compiler_lib_search_dirs_CXX=
14571 if test -n "${compiler_lib_search_path_CXX}"; then
14572 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14605 lt_prog_compiler_wl_CXX=
14606 lt_prog_compiler_pic_CXX=
14607 lt_prog_compiler_static_CXX=
14610 # C++ specific cases for pic, static, wl, etc.
14611 if test "$GXX" = yes; then
14612 lt_prog_compiler_wl_CXX='-Wl,'
14613 lt_prog_compiler_static_CXX='-static'
14617 # All AIX code is PIC.
14618 if test "$host_cpu" = ia64; then
14619 # AIX 5 now supports IA64 processor
14620 lt_prog_compiler_static_CXX='-Bstatic'
14627 # see comment about AmigaOS4 .so support
14628 lt_prog_compiler_pic_CXX='-fPIC'
14631 # FIXME: we need at least 68020 code to build shared libraries, but
14632 # adding the `-m68020' flag to GCC prevents building anything better,
14634 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14640 # PIC is the default for these OSes.
14642 mingw* | cygwin* | os2* | pw32* | cegcc*)
14643 # This hack is so that the source file can tell whether it is being
14644 # built for inclusion in a dll (and should export symbols for example).
14645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14646 # (--disable-auto-import) libraries
14647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14649 darwin* | rhapsody*)
14650 # PIC is the default on this platform
14651 # Common symbols not allowed in MH_DYLIB files
14652 lt_prog_compiler_pic_CXX='-fno-common'
14655 # DJGPP does not support shared libraries at all
14656 lt_prog_compiler_pic_CXX=
14659 # PIC is the default for Haiku.
14660 # The "-static" flag exists, but is broken.
14661 lt_prog_compiler_static_CXX=
14664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14665 # Instead, we relocate shared libraries at runtime.
14668 if test -d /usr/nec; then
14669 lt_prog_compiler_pic_CXX=-Kconform_pic
14673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14675 # sets the default TLS model and affects inlining.
14680 lt_prog_compiler_pic_CXX='-fPIC'
14685 # QNX uses GNU C++, but need to define -shared option too, otherwise
14686 # it will coredump.
14687 lt_prog_compiler_pic_CXX='-fPIC -shared'
14690 lt_prog_compiler_pic_CXX='-fPIC'
14696 # All AIX code is PIC.
14697 if test "$host_cpu" = ia64; then
14698 # AIX 5 now supports IA64 processor
14699 lt_prog_compiler_static_CXX='-Bstatic'
14701 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14705 case $cc_basename in
14707 # Green Hills C++ Compiler
14708 # _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"
14712 mingw* | cygwin* | os2* | pw32* | cegcc*)
14713 # This hack is so that the source file can tell whether it is being
14714 # built for inclusion in a dll (and should export symbols for example).
14715 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14718 case $cc_basename in
14720 lt_prog_compiler_pic_CXX='-KPIC'
14723 # Green Hills C++ Compiler
14724 lt_prog_compiler_pic_CXX='-pic'
14730 freebsd* | dragonfly*)
14731 # FreeBSD uses GNU C++
14733 hpux9* | hpux10* | hpux11*)
14734 case $cc_basename in
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14738 if test "$host_cpu" != ia64; then
14739 lt_prog_compiler_pic_CXX='+Z'
14743 lt_prog_compiler_wl_CXX='-Wl,'
14744 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14750 lt_prog_compiler_pic_CXX='+Z'
14759 # This is c89, which is MS Visual C++ (no shared libs)
14760 # Anyone wants to do a port?
14762 irix5* | irix6* | nonstopux*)
14763 case $cc_basename in
14765 lt_prog_compiler_wl_CXX='-Wl,'
14766 lt_prog_compiler_static_CXX='-non_shared'
14767 # CC pic flag -KPIC is the default.
14773 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14774 case $cc_basename in
14777 lt_prog_compiler_wl_CXX='--backend -Wl,'
14778 lt_prog_compiler_pic_CXX='-fPIC'
14781 # old Intel C++ for x86_64 which still supported -KPIC.
14782 lt_prog_compiler_wl_CXX='-Wl,'
14783 lt_prog_compiler_pic_CXX='-KPIC'
14784 lt_prog_compiler_static_CXX='-static'
14787 # Intel C++, used to be incompatible with GCC.
14788 # ICC 10 doesn't accept -KPIC any more.
14789 lt_prog_compiler_wl_CXX='-Wl,'
14790 lt_prog_compiler_pic_CXX='-fPIC'
14791 lt_prog_compiler_static_CXX='-static'
14794 # Portland Group C++ compiler
14795 lt_prog_compiler_wl_CXX='-Wl,'
14796 lt_prog_compiler_pic_CXX='-fpic'
14797 lt_prog_compiler_static_CXX='-Bstatic'
14801 # Make sure the PIC flag is empty. It appears that all Alpha
14802 # Linux and Compaq Tru64 Unix objects are PIC.
14803 lt_prog_compiler_pic_CXX=
14804 lt_prog_compiler_static_CXX='-non_shared'
14806 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14807 # IBM XL 8.0, 9.0 on PPC and BlueGene
14808 lt_prog_compiler_wl_CXX='-Wl,'
14809 lt_prog_compiler_pic_CXX='-qpic'
14810 lt_prog_compiler_static_CXX='-qstaticlink'
14813 case `$CC -V 2>&1 | sed 5q` in
14816 lt_prog_compiler_pic_CXX='-KPIC'
14817 lt_prog_compiler_static_CXX='-Bstatic'
14818 lt_prog_compiler_wl_CXX='-Qoption ld '
14829 case $cc_basename in
14831 lt_prog_compiler_pic_CXX='-W c,exportall'
14840 # QNX uses GNU C++, but need to define -shared option too, otherwise
14841 # it will coredump.
14842 lt_prog_compiler_pic_CXX='-fPIC -shared'
14844 osf3* | osf4* | osf5*)
14845 case $cc_basename in
14847 lt_prog_compiler_wl_CXX='--backend -Wl,'
14850 # Rational C++ 2.4.1
14851 lt_prog_compiler_pic_CXX='-pic'
14854 # Digital/Compaq C++
14855 lt_prog_compiler_wl_CXX='-Wl,'
14856 # Make sure the PIC flag is empty. It appears that all Alpha
14857 # Linux and Compaq Tru64 Unix objects are PIC.
14858 lt_prog_compiler_pic_CXX=
14859 lt_prog_compiler_static_CXX='-non_shared'
14868 case $cc_basename in
14870 # Sun C++ 4.2, 5.x and Centerline C++
14871 lt_prog_compiler_pic_CXX='-KPIC'
14872 lt_prog_compiler_static_CXX='-Bstatic'
14873 lt_prog_compiler_wl_CXX='-Qoption ld '
14876 # Green Hills C++ Compiler
14877 lt_prog_compiler_pic_CXX='-PIC'
14884 case $cc_basename in
14887 lt_prog_compiler_pic_CXX='-pic'
14888 lt_prog_compiler_static_CXX='-Bstatic'
14892 lt_prog_compiler_pic_CXX='-pic'
14898 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14899 case $cc_basename in
14901 lt_prog_compiler_wl_CXX='-Wl,'
14902 lt_prog_compiler_pic_CXX='-KPIC'
14903 lt_prog_compiler_static_CXX='-Bstatic'
14908 case $cc_basename in
14910 # NonStop-UX NCC 3.20
14911 lt_prog_compiler_pic_CXX='-KPIC'
14920 lt_prog_compiler_can_build_shared_CXX=no
14926 # For platforms which do not support PIC, -DPIC is meaningless:
14928 lt_prog_compiler_pic_CXX=
14931 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14937 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14938 $as_echo_n "(cached) " >&6
14940 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14943 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14944 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14947 # Check to make sure the PIC flag actually works.
14949 if test -n "$lt_prog_compiler_pic_CXX"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14951 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14952 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14953 $as_echo_n "(cached) " >&6
14955 lt_cv_prog_compiler_pic_works_CXX=no
14956 ac_outfile=conftest.$ac_objext
14957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 # The option is referenced via a variable to avoid confusing sed.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>conftest.err)
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s "$ac_outfile"; then
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings other than the usual output.
14976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14979 lt_cv_prog_compiler_pic_works_CXX=yes
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14986 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14988 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14989 case $lt_prog_compiler_pic_CXX in
14991 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14994 lt_prog_compiler_pic_CXX=
14995 lt_prog_compiler_can_build_shared_CXX=no
15005 # Check to make sure the static flag actually works.
15007 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15009 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15010 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15011 $as_echo_n "(cached) " >&6
15013 lt_cv_prog_compiler_static_works_CXX=no
15014 save_LDFLAGS="$LDFLAGS"
15015 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15016 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15018 # The linker can only warn and ignore the option if not recognized
15019 # So say no if there are warnings
15020 if test -s conftest.err; then
15021 # Append any errors to the config.log.
15022 cat conftest.err 1>&5
15023 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15025 if diff conftest.exp conftest.er2 >/dev/null; then
15026 lt_cv_prog_compiler_static_works_CXX=yes
15029 lt_cv_prog_compiler_static_works_CXX=yes
15033 LDFLAGS="$save_LDFLAGS"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15037 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15039 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15042 lt_prog_compiler_static_CXX=
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15050 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15051 $as_echo_n "(cached) " >&6
15053 lt_cv_prog_compiler_c_o_CXX=no
15054 $RM -r conftest 2>/dev/null
15058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 lt_compiler_flag="-o out/conftest2.$ac_objext"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 lt_compile=`echo "$ac_compile" | $SED \
15066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068 -e 's:$: $lt_compiler_flag:'`
15069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15070 (eval "$lt_compile" 2>out/conftest.err)
15072 cat out/conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings
15078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15081 lt_cv_prog_compiler_c_o_CXX=yes
15086 # SGI C++ compiler will create directory out/ii_files/ for
15087 # template instantiation
15088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15089 $RM out/* && rmdir out
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15096 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15102 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15103 $as_echo_n "(cached) " >&6
15105 lt_cv_prog_compiler_c_o_CXX=no
15106 $RM -r conftest 2>/dev/null
15110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15112 lt_compiler_flag="-o out/conftest2.$ac_objext"
15113 # Insert the option either (1) after the last *FLAGS variable, or
15114 # (2) before a word containing "conftest.", or (3) at the end.
15115 # Note that $ac_compile itself does not contain backslashes and begins
15116 # with a dollar sign (not a hyphen), so the echo should work correctly.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>out/conftest.err)
15124 cat out/conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15128 # The compiler can only warn and ignore the option if not recognized
15129 # So say no if there are warnings
15130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15133 lt_cv_prog_compiler_c_o_CXX=yes
15138 # SGI C++ compiler will create directory out/ii_files/ for
15139 # template instantiation
15140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15141 $RM out/* && rmdir out
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15153 hard_links="nottested"
15154 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15155 # do not overwrite the value of need_locks provided by the user
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15157 $as_echo_n "checking if we can lock with hard links... " >&6; }
15160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15162 ln conftest.a conftest.b 2>&5 || hard_links=no
15163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15165 $as_echo "$hard_links" >&6; }
15166 if test "$hard_links" = no; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15168 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15178 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15180 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15181 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15184 # If we're using GNU nm, then we don't want the "-C" option.
15185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15186 # Also, AIX nm treats weak defined symbols like other global defined
15187 # symbols, whereas GNU nm marks them as "W".
15188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15189 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'
15191 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15195 export_symbols_cmds_CXX="$ltdll_cmds"
15197 cygwin* | mingw* | cegcc*)
15198 case $cc_basename in
15200 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15203 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15204 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15209 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15214 $as_echo "$ld_shlibs_CXX" >&6; }
15215 test "$ld_shlibs_CXX" = no && can_build_shared=no
15217 with_gnu_ld_CXX=$with_gnu_ld
15225 # Do we need to explicitly link libc?
15227 case "x$archive_cmds_need_lc_CXX" in
15229 # Assume -lc should be added
15230 archive_cmds_need_lc_CXX=yes
15232 if test "$enable_shared" = yes && test "$GCC" = yes; then
15233 case $archive_cmds_CXX in
15235 # FIXME: we may have to deal with multi-command sequences.
15238 # Test whether the compiler implicitly links with -lc since on some
15239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15240 # to ld, don't add -lc before -lgcc.
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15242 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15243 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15244 $as_echo_n "(cached) " >&6
15247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15250 (eval $ac_compile) 2>&5
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; } 2>conftest.err; then
15256 libobjs=conftest.$ac_objext
15258 wl=$lt_prog_compiler_wl_CXX
15259 pic_flag=$lt_prog_compiler_pic_CXX
15265 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15266 allow_undefined_flag_CXX=
15267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15268 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15271 test $ac_status = 0; }
15273 lt_cv_archive_cmds_need_lc_CXX=no
15275 lt_cv_archive_cmds_need_lc_CXX=yes
15277 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15279 cat conftest.err 1>&5
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15285 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15286 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15357 library_names_spec=
15358 libname_spec='lib$name'
15362 postuninstall_cmds=
15366 shlibpath_overrides_runpath=unknown
15368 dynamic_linker="$host_os ld.so"
15369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15370 need_lib_prefix=unknown
15371 hardcode_into_libs=no
15373 # when you set need_version to no, make sure it does not cause -set_version
15374 # flags to be left without arguments
15375 need_version=unknown
15379 version_type=linux # correct to gnu/linux during the next big refactor
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15381 shlibpath_var=LIBPATH
15383 # AIX 3 has no versioning support, so we append a major version to the name.
15384 soname_spec='${libname}${release}${shared_ext}$major'
15388 version_type=linux # correct to gnu/linux during the next big refactor
15391 hardcode_into_libs=yes
15392 if test "$host_cpu" = ia64; then
15393 # AIX 5 supports IA64
15394 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15397 # With GCC up to 2.95.x, collect2 would create an import file
15398 # for dependence libraries. The import file would start with
15399 # the line `#! .'. This would cause the generated library to
15400 # depend on `.', always an invalid library. This was fixed in
15401 # development snapshots of GCC prior to 3.0.
15403 aix4 | aix4.[01] | aix4.[01].*)
15404 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15406 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15409 can_build_shared=no
15413 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15414 # soname into executable. Probably we can add versioning support to
15415 # collect2, so additional links can be useful in future.
15416 if test "$aix_use_runtimelinking" = yes; then
15417 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15418 # instead of lib<name>.a to let people know that these are not
15419 # typical AIX shared libraries.
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422 # We preserve .a as extension for shared libraries through AIX4.2
15423 # and later when we are not doing run time linking.
15424 library_names_spec='${libname}${release}.a $libname.a'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LIBPATH
15434 # Since July 2007 AmigaOS4 officially supports .so libraries.
15435 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 library_names_spec='$libname.ixlibrary $libname.a'
15440 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15441 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'
15447 library_names_spec='${libname}${shared_ext}'
15448 dynamic_linker="$host_os ld.so"
15449 shlibpath_var=LIBRARY_PATH
15453 version_type=linux # correct to gnu/linux during the next big refactor
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15461 # the default ld.so.conf also contains /usr/contrib/lib and
15462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15463 # libtool to hard-code these into programs
15466 cygwin* | mingw* | pw32* | cegcc*)
15467 version_type=windows
15472 case $GCC,$cc_basename in
15475 library_names_spec='$libname.dll.a'
15476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15477 postinstall_cmds='base_file=`basename \${file}`~
15478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15479 dldir=$destdir/`dirname \$dlpath`~
15480 test -d \$dldir || mkdir -p \$dldir~
15481 $install_prog $dir/$dlname \$dldir/$dlname~
15482 chmod a+x \$dldir/$dlname~
15483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15487 dlpath=$dir/\$dldll~
15489 shlibpath_overrides_runpath=yes
15493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15498 # MinGW DLLs use traditional 'lib' prefix
15499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15502 # pw32 DLLs use 'pw' prefix rather than 'lib'
15503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506 dynamic_linker='Win32 ld.exe'
15511 libname_spec='$name'
15512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15513 library_names_spec='${libname}.dll.lib'
15517 sys_lib_search_path_spec=
15520 for lt_path in $LIB
15523 # Let DOS variable expansion print the short 8.3 style file name.
15524 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15525 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15528 # Convert to MSYS style.
15529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15532 # Convert to unix form, then to dos form, then back to unix form
15533 # but this time dos style (no spaces!) so that the unix form looks
15534 # like /cygdrive/c/PROGRA~1:/cygdr...
15535 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15536 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15537 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15540 sys_lib_search_path_spec="$LIB"
15541 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15542 # It is most probably a Windows format PATH.
15543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15547 # FIXME: find the short name or the path components, as spaces are
15548 # common. (e.g. "Program Files" -> "PROGRA~1")
15552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15553 postinstall_cmds='base_file=`basename \${file}`~
15554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15555 dldir=$destdir/`dirname \$dlpath`~
15556 test -d \$dldir || mkdir -p \$dldir~
15557 $install_prog $dir/$dlname \$dldir/$dlname'
15558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15559 dlpath=$dir/\$dldll~
15561 shlibpath_overrides_runpath=yes
15562 dynamic_linker='Win32 link.exe'
15566 # Assume MSVC wrapper
15567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15568 dynamic_linker='Win32 ld.exe'
15571 # FIXME: first we should search . and the directory the executable is in
15575 darwin* | rhapsody*)
15576 dynamic_linker="$host_os dyld"
15577 version_type=darwin
15580 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15581 soname_spec='${libname}${release}${major}$shared_ext'
15582 shlibpath_overrides_runpath=yes
15583 shlibpath_var=DYLD_LIBRARY_PATH
15584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15586 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15590 version_type=linux # correct to gnu/linux during the next big refactor
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15598 freebsd* | dragonfly*)
15599 # DragonFly does not have aout. When/if they implement a new
15600 # versioning mechanism, adjust this.
15601 if test -x /usr/bin/objformat; then
15602 objformat=`/usr/bin/objformat`
15605 freebsd[23].*) objformat=aout ;;
15606 *) objformat=elf ;;
15609 version_type=freebsd-$objformat
15610 case $version_type in
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15621 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=yes
15626 freebsd3.[01]* | freebsdelf3.[01]*)
15627 shlibpath_overrides_runpath=yes
15628 hardcode_into_libs=yes
15630 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15631 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15632 shlibpath_overrides_runpath=no
15633 hardcode_into_libs=yes
15635 *) # from 4.6 on, and DragonFly
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15643 version_type=linux # correct to gnu/linux during the next big refactor
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=no
15650 hardcode_into_libs=yes
15654 version_type=linux # correct to gnu/linux during the next big refactor
15657 dynamic_linker="$host_os runtime_loader"
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 shlibpath_var=LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15663 hardcode_into_libs=yes
15666 hpux9* | hpux10* | hpux11*)
15667 # Give a soname corresponding to the major version so that dld.sl refuses to
15668 # link against other versions.
15675 hardcode_into_libs=yes
15676 dynamic_linker="$host_os dld.so"
15677 shlibpath_var=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 if test "X$HPUX_IA64_MODE" = X32; then
15682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15690 hardcode_into_libs=yes
15691 dynamic_linker="$host_os dld.sl"
15692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15701 dynamic_linker="$host_os dld.sl"
15702 shlibpath_var=SHLIB_PATH
15703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15708 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15709 postinstall_cmds='chmod 555 $lib'
15710 # or fails outright, so override atomically:
15711 install_override_mode=555
15715 version_type=linux # correct to gnu/linux during the next big refactor
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=no
15723 hardcode_into_libs=yes
15726 irix5* | irix6* | nonstopux*)
15728 nonstopux*) version_type=nonstopux ;;
15730 if test "$lt_cv_prog_gnu_ld" = yes; then
15731 version_type=linux # correct to gnu/linux during the next big refactor
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15741 irix5* | nonstopux*)
15742 libsuff= shlibsuff=
15745 case $LD in # libtool.m4 will add one of these switches to LD
15746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15747 libsuff= shlibsuff= libmagic=32-bit;;
15748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15749 libsuff=32 shlibsuff=N32 libmagic=N32;;
15750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15752 *) libsuff= shlibsuff= libmagic=never-match;;
15756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15757 shlibpath_overrides_runpath=no
15758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15760 hardcode_into_libs=yes
15763 # No shared lib support for Linux oldld, aout, or coff.
15764 linux*oldld* | linux*aout* | linux*coff*)
15768 # This must be glibc/ELF.
15769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15770 version_type=linux # correct to gnu/linux during the next big refactor
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=no
15779 # Some binutils ld are patched to set DT_RUNPATH
15780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15781 $as_echo_n "(cached) " >&6
15783 lt_cv_shlibpath_overrides_runpath=no
15784 save_LDFLAGS=$LDFLAGS
15785 save_libdir=$libdir
15786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15799 if ac_fn_cxx_try_link "$LINENO"; then :
15800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15801 lt_cv_shlibpath_overrides_runpath=yes
15804 rm -f core conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LDFLAGS=$save_LDFLAGS
15807 libdir=$save_libdir
15811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15813 # This implies no fast_install, which is unacceptable.
15814 # Some rework will be needed to allow for fast_install
15815 # before this can be enabled.
15816 hardcode_into_libs=yes
15818 # Append ld.so.conf contents to the search path
15819 if test -f /etc/ld.so.conf; then
15820 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' ' '`
15821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15824 # We used to test for /lib/ld.so.1 and disable shared libraries on
15825 # powerpc, because MkLinux only supported shared libraries with the
15826 # GNU dynamic linker. Since this was broken with cross compilers,
15827 # most powerpc-linux boxes support dynamic linking these days and
15828 # people can always --disable-shared, the test was removed, and we
15829 # assume the GNU/Linux dynamic linker is in use.
15830 dynamic_linker='GNU/Linux ld.so'
15837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15840 dynamic_linker='NetBSD (a.out) ld.so'
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15844 dynamic_linker='NetBSD ld.elf_so'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes
15848 hardcode_into_libs=yes
15852 version_type=linux # correct to gnu/linux during the next big refactor
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=yes
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 shlibpath_overrides_runpath=no
15866 hardcode_into_libs=yes
15867 dynamic_linker='ldqnx.so'
15872 sys_lib_dlsearch_path_spec="/usr/lib"
15874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15877 *) need_version=no ;;
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15884 openbsd2.[89] | openbsd2.[89].*)
15885 shlibpath_overrides_runpath=no
15888 shlibpath_overrides_runpath=yes
15892 shlibpath_overrides_runpath=yes
15897 libname_spec='$name'
15900 library_names_spec='$libname${shared_ext} $libname.a'
15901 dynamic_linker='OS/2 ld.exe'
15902 shlibpath_var=LIBPATH
15905 osf3* | osf4* | osf5*)
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15921 version_type=linux # correct to gnu/linux during the next big refactor
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath=yes
15928 hardcode_into_libs=yes
15929 # ldd complains unless libraries are executable
15930 postinstall_cmds='chmod +x $lib'
15935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15937 shlibpath_var=LD_LIBRARY_PATH
15938 shlibpath_overrides_runpath=yes
15939 if test "$with_gnu_ld" = yes; then
15946 version_type=linux # correct to gnu/linux during the next big refactor
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 case $host_vendor in
15952 shlibpath_overrides_runpath=no
15954 runpath_var=LD_RUN_PATH
15962 shlibpath_overrides_runpath=no
15963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15969 if test -d /usr/nec ;then
15970 version_type=linux # correct to gnu/linux during the next big refactor
15971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15972 soname_spec='$libname${shared_ext}.$major'
15973 shlibpath_var=LD_LIBRARY_PATH
15977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15978 version_type=freebsd-elf
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15982 soname_spec='${libname}${release}${shared_ext}$major'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath=yes
15985 hardcode_into_libs=yes
15986 if test "$with_gnu_ld" = yes; then
15987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15996 sys_lib_dlsearch_path_spec='/usr/lib'
16000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16001 version_type=linux # correct to gnu/linux during the next big refactor
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=no
16007 hardcode_into_libs=yes
16011 version_type=linux # correct to gnu/linux during the next big refactor
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 shlibpath_var=LD_LIBRARY_PATH
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16022 $as_echo "$dynamic_linker" >&6; }
16023 test "$dynamic_linker" = no && can_build_shared=no
16025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16026 if test "$GCC" = yes; then
16027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16031 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16033 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16075 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16076 hardcode_action_CXX=
16077 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16078 test -n "$runpath_var_CXX" ||
16079 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16081 # We can hardcode non-existent directories.
16082 if test "$hardcode_direct_CXX" != no &&
16083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16084 # have to relink, otherwise we might link with an installed library
16085 # when we should be linking with a yet-to-be-installed one
16086 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16087 test "$hardcode_minus_L_CXX" != no; then
16088 # Linking always hardcodes the temporary library directory.
16089 hardcode_action_CXX=relink
16091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16092 hardcode_action_CXX=immediate
16095 # We cannot hardcode anything, or else we can only hardcode existing
16097 hardcode_action_CXX=unsupported
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16100 $as_echo "$hardcode_action_CXX" >&6; }
16102 if test "$hardcode_action_CXX" = relink ||
16103 test "$inherit_rpath_CXX" = yes; then
16104 # Fast installation is not supported
16105 enable_fast_install=no
16106 elif test "$shlibpath_overrides_runpath" = yes ||
16107 test "$enable_shared" = no; then
16108 # Fast installation is not necessary
16109 enable_fast_install=needless
16118 fi # test -n "$compiler"
16121 CFLAGS=$lt_save_CFLAGS
16125 with_gnu_ld=$lt_save_with_gnu_ld
16126 lt_cv_path_LDCXX=$lt_cv_path_LD
16127 lt_cv_path_LD=$lt_save_path_LD
16128 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16129 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16130 fi # test "$_lt_caught_CXX_error" != yes
16133 ac_cpp='$CPP $CPPFLAGS'
16134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16139 if test "x$with_cxx" = xyes; then
16141 $as_echo "#define WITH_CXX 1" >>confdefs.h
16143 NLOPT_SUFFIX="_cxx"
16150 # Check whether --with-mthreads was given.
16151 if test "${with_mthreads+set}" = set; then :
16152 withval=$with_mthreads; with_mthrads=$withval
16157 if test "x$with_mthreads" = xyes; then
16158 CFLAGS="$CFLAGS -mthreads"
16159 CXXFLAGS="$CXXFLAGS -mthreads"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16163 $as_echo_n "checking for ANSI C header files... " >&6; }
16164 if ${ac_cv_header_stdc+:} false; then :
16165 $as_echo_n "(cached) " >&6
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #include <stdlib.h>
16170 #include <stdarg.h>
16171 #include <string.h>
16182 if ac_fn_c_try_compile "$LINENO"; then :
16183 ac_cv_header_stdc=yes
16185 ac_cv_header_stdc=no
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 if test $ac_cv_header_stdc = yes; then
16190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 #include <string.h>
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "memchr" >/dev/null 2>&1; then :
16200 ac_cv_header_stdc=no
16206 if test $ac_cv_header_stdc = yes; then
16207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210 #include <stdlib.h>
16213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16214 $EGREP "free" >/dev/null 2>&1; then :
16217 ac_cv_header_stdc=no
16223 if test $ac_cv_header_stdc = yes; then
16224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16225 if test "$cross_compiling" = yes; then :
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16231 #include <stdlib.h>
16232 #if ((' ' & 0x0FF) == 0x020)
16233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16236 # define ISLOWER(c) \
16237 (('a' <= (c) && (c) <= 'i') \
16238 || ('j' <= (c) && (c) <= 'r') \
16239 || ('s' <= (c) && (c) <= 'z'))
16240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16248 for (i = 0; i < 256; i++)
16249 if (XOR (islower (i), ISLOWER (i))
16250 || toupper (i) != TOUPPER (i))
16255 if ac_fn_c_try_run "$LINENO"; then :
16258 ac_cv_header_stdc=no
16260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16261 conftest.$ac_objext conftest.beam conftest.$ac_ext
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16267 $as_echo "$ac_cv_header_stdc" >&6; }
16268 if test $ac_cv_header_stdc = yes; then
16270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16275 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16276 if ${ac_cv_header_time+:} false; then :
16277 $as_echo_n "(cached) " >&6
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #include <sys/types.h>
16282 #include <sys/time.h>
16288 if ((struct tm *) 0)
16294 if ac_fn_c_try_compile "$LINENO"; then :
16295 ac_cv_header_time=yes
16297 ac_cv_header_time=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16302 $as_echo "$ac_cv_header_time" >&6; }
16303 if test $ac_cv_header_time = yes; then
16305 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16309 for ac_header in unistd.h getopt.h stdint.h
16311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16312 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16314 cat >>confdefs.h <<_ACEOF
16315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16324 if ${ac_cv_c_const+:} false; then :
16325 $as_echo_n "(cached) " >&6
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16334 #ifndef __cplusplus
16335 /* Ultrix mips cc rejects this sort of thing. */
16336 typedef int charset[2];
16337 const charset cs = { 0, 0 };
16338 /* SunOS 4.1.1 cc rejects this. */
16339 char const *const *pcpcc;
16341 /* NEC SVR4.0.2 mips cc rejects this. */
16342 struct point {int x, y;};
16343 static struct point const zero = {0,0};
16344 /* AIX XL C 1.02.0.0 rejects this.
16345 It does not let you subtract one const X* pointer from another in
16346 an arm of an if-expression whose if-part is not a constant
16348 const char *g = "string";
16349 pcpcc = &g + (g ? g-g : 0);
16350 /* HPUX 7.0 cc rejects these. */
16352 ppc = (char**) pcpcc;
16353 pcpcc = (char const *const *) ppc;
16354 { /* SCO 3.2v4 cc rejects this sort of thing. */
16357 char const *s = 0 ? (char *) 0 : (char const *) 0;
16362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16363 int x[] = {25, 17};
16364 const int *foo = &x[0];
16367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16368 typedef const int *iptr;
16372 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16374 struct s { int j; const int *ap[3]; } bx;
16375 struct s *b = &bx; b->j = 5;
16377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16378 const int foo = 10;
16379 if (!foo) return 0;
16381 return !cs[0] && !zero.x;
16388 if ac_fn_c_try_compile "$LINENO"; then :
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16396 $as_echo "$ac_cv_c_const" >&6; }
16397 if test $ac_cv_c_const = no; then
16399 $as_echo "#define const /**/" >>confdefs.h
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16404 $as_echo_n "checking for inline... " >&6; }
16405 if ${ac_cv_c_inline+:} false; then :
16406 $as_echo_n "(cached) " >&6
16409 for ac_kw in inline __inline__ __inline; do
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #ifndef __cplusplus
16414 static $ac_kw foo_t static_foo () {return 0; }
16415 $ac_kw foo_t foo () {return 0; }
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 ac_cv_c_inline=$ac_kw
16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 test "$ac_cv_c_inline" != no && break
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16428 $as_echo "$ac_cv_c_inline" >&6; }
16430 case $ac_cv_c_inline in
16433 case $ac_cv_c_inline in
16435 *) ac_val=$ac_cv_c_inline;;
16437 cat >>confdefs.h <<_ACEOF
16438 #ifndef __cplusplus
16439 #define inline $ac_val
16446 # Check whether --with-threadlocal was given.
16447 if test "${with_threadlocal+set}" = set; then :
16448 withval=$with_threadlocal; with_ax_c_threadlocal=$withval
16450 with_ax_c_threadlocal=yes
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C thread-local keyword" >&5
16454 $as_echo_n "checking for C thread-local keyword... " >&6; }
16455 if ${ax_cv_c_threadlocal+:} false; then :
16456 $as_echo_n "(cached) " >&6
16458 if test "x$with_ax_c_threadlocal" = xno; then
16459 ax_cv_c_threadlocal=disabled
16461 ax_cv_c_threadlocal=unsupported
16464 ac_cpp='$CPP $CPPFLAGS'
16465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16469 for ax_kw in __thread "__declspec(thread)"; do
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16476 static $ax_kw int x = 0;
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482 ax_cv_c_threadlocal=$ax_kw; break
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 ac_cpp='$CPP $CPPFLAGS'
16488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_threadlocal" >&5
16496 $as_echo "$ax_cv_c_threadlocal" >&6; }
16497 ax_kw="$ax_cv_c_threadlocal"
16498 if test "x$ax_kw" = xunsupported; then ax_kw=""; fi
16499 if test "x$ax_kw" = xdisabled; then ax_kw=""; fi
16501 cat >>confdefs.h <<_ACEOF
16502 #define THREADLOCAL $ax_kw
16505 if test "$ax_cv_c_threadlocal" = unsupported; then
16512 # The cast to long int works around a bug in the HP C Compiler
16513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16515 # This bug is HP SR number 8606223364.
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16517 $as_echo_n "checking size of unsigned int... " >&6; }
16518 if ${ac_cv_sizeof_unsigned_int+:} false; then :
16519 $as_echo_n "(cached) " >&6
16521 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
16524 if test "$ac_cv_type_unsigned_int" = yes; then
16525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16527 as_fn_error 77 "cannot compute sizeof (unsigned int)
16528 See \`config.log' for more details" "$LINENO" 5; }
16530 ac_cv_sizeof_unsigned_int=0
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16536 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16540 cat >>confdefs.h <<_ACEOF
16541 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16545 # The cast to long int works around a bug in the HP C Compiler
16546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16548 # This bug is HP SR number 8606223364.
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16550 $as_echo_n "checking size of unsigned long... " >&6; }
16551 if ${ac_cv_sizeof_unsigned_long+:} false; then :
16552 $as_echo_n "(cached) " >&6
16554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
16557 if test "$ac_cv_type_unsigned_long" = yes; then
16558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16560 as_fn_error 77 "cannot compute sizeof (unsigned long)
16561 See \`config.log' for more details" "$LINENO" 5; }
16563 ac_cv_sizeof_unsigned_long=0
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16569 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16573 cat >>confdefs.h <<_ACEOF
16574 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16578 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default
16579 #ifdef HAVE_STDINT_H
16580 # include <stdint.h>
16583 if test "x$ac_cv_type_uint32_t" = xyes; then :
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_UINT32_T 1
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16594 $as_echo_n "checking for sin in -lm... " >&6; }
16595 if ${ac_cv_lib_m_sin+:} false; then :
16596 $as_echo_n "(cached) " >&6
16598 ac_check_lib_save_LIBS=$LIBS
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16618 if ac_fn_c_try_link "$LINENO"; then :
16619 ac_cv_lib_m_sin=yes
16623 rm -f core conftest.err conftest.$ac_objext \
16624 conftest$ac_exeext conftest.$ac_ext
16625 LIBS=$ac_check_lib_save_LIBS
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16628 $as_echo "$ac_cv_lib_m_sin" >&6; }
16629 if test "x$ac_cv_lib_m_sin" = xyes; then :
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_LIBM 1
16638 for ac_func in BSDgettimeofday gettimeofday time qsort_r getpid
16640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16643 cat >>confdefs.h <<_ACEOF
16644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid syscall" >&5
16652 $as_echo_n "checking for gettid syscall... " >&6; }
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 #include <unistd.h>
16656 #include <sys/syscall.h>
16661 syscall(SYS_gettid);
16666 if ac_fn_c_try_link "$LINENO"; then :
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 if test "$ok" = "yes"; then
16675 $as_echo "#define HAVE_GETTID_SYSCALL 1" >>confdefs.h
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16679 $as_echo "${ok}" >&6; }
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16682 $as_echo_n "checking for isnan... " >&6; }
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16690 if (!isnan(3.14159)) isnan(2.7183);
16695 if ac_fn_c_try_link "$LINENO"; then :
16700 rm -f core conftest.err conftest.$ac_objext \
16701 conftest$ac_exeext conftest.$ac_ext
16702 if test "$ok" = "yes"; then
16704 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16708 $as_echo "${ok}" >&6; }
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16711 $as_echo_n "checking for isinf... " >&6; }
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16719 if (!isinf(3.14159)) isinf(2.7183);
16724 if ac_fn_c_try_link "$LINENO"; then :
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731 if test "$ok" = "yes"; then
16733 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16737 $as_echo "${ok}" >&6; }
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
16740 $as_echo_n "checking for copysign... " >&6; }
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16748 double x = copysign(3.14159, -2.7183);
16753 if ac_fn_c_try_link "$LINENO"; then :
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext conftest.$ac_ext
16760 if test "$ok" = "yes"; then
16762 $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16766 $as_echo "${ok}" >&6; }
16770 # Check whether --with-guile was given.
16771 if test "${with_guile+set}" = set; then :
16772 withval=$with_guile; with_guile=$withval
16778 # Check whether --with-python was given.
16779 if test "${with_python+set}" = set; then :
16780 withval=$with_python; with_python=$withval
16786 if test "$enable_shared" = no; then
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python and Guile wrappers require --enable-shared; disabling" >&5
16788 $as_echo "$as_me: WARNING: Python and Guile wrappers require --enable-shared; disabling" >&2;}
16789 GUILE_CONFIG=unknown
16793 if test "x$with_guile" = xno; then
16794 GUILE_CONFIG=unknown
16798 # Extract the first word of "guile-config", so it can be a program name with args.
16799 set dummy guile-config; ac_word=$2
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16801 $as_echo_n "checking for $ac_word... " >&6; }
16802 if ${ac_cv_prog_GUILE_CONFIG+:} false; then :
16803 $as_echo_n "(cached) " >&6
16805 if test -n "$GUILE_CONFIG"; then
16806 ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test.
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_prog_GUILE_CONFIG="guile-config"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 test -z "$ac_cv_prog_GUILE_CONFIG" && ac_cv_prog_GUILE_CONFIG="unknown"
16826 GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG
16827 if test -n "$GUILE_CONFIG"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
16829 $as_echo "$GUILE_CONFIG" >&6; }
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16836 if test "x$GUILE_CONFIG" = "xunknown"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find guile-config, disabling Guile wrapper" >&5
16838 $as_echo "$as_me: WARNING: can't find guile-config, disabling Guile wrapper" >&2;}
16840 save_CPPFLAGS=$CPPFLAGS
16842 GUILE_CPPFLAGS=`$GUILE_CONFIG compile`
16843 GUILE_LIBS=`$GUILE_CONFIG link`
16844 CPPFLAGS="$CPPFLAGS $GUILE_CPPFLAGS"
16845 LIBS="$GUILE_LIBS $LIBS"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking to guile works" >&5
16847 $as_echo_n "checking if linking to guile works... " >&6; }
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16857 char scm_is_vector ();
16861 return scm_is_vector ();
16866 if ac_fn_c_try_link "$LINENO"; then :
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16868 $as_echo "yes" >&6; }
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 $as_echo "no" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile-config is broken" >&5
16873 $as_echo "$as_me: WARNING: guile-config is broken" >&2;}
16874 GUILE_CONFIG="unknown"
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878 CPPFLAGS=$save_CPPFLAGS
16881 # Extract the first word of "guile", so it can be a program name with args.
16882 set dummy guile; ac_word=$2
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884 $as_echo_n "checking for $ac_word... " >&6; }
16885 if ${ac_cv_prog_GUILE+:} false; then :
16886 $as_echo_n "(cached) " >&6
16888 if test -n "$GUILE"; then
16889 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_prog_GUILE="guile"
16899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16906 test -z "$ac_cv_prog_GUILE" && ac_cv_prog_GUILE="unknown"
16909 GUILE=$ac_cv_prog_GUILE
16910 if test -n "$GUILE"; then
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
16912 $as_echo "$GUILE" >&6; }
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16915 $as_echo "no" >&6; }
16919 if test "x$GUILE" = xunknown; then
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find guile, disabling Guile wrapper" >&5
16921 $as_echo "$as_me: WARNING: can't find guile, disabling Guile wrapper" >&2;}
16922 GUILE_CONFIG=unknown
16923 elif test x"$GUILE_INSTALL_DIR" = "x"; then
16924 for ac_prog in guile-config
16926 # Extract the first word of "$ac_prog", so it can be a program name with args.
16927 set dummy $ac_prog; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_prog_GUILE_CONFIG+:} false; then :
16931 $as_echo_n "(cached) " >&6
16933 if test -n "$GUILE_CONFIG"; then
16934 ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test.
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_prog_GUILE_CONFIG="$ac_prog"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953 GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG
16954 if test -n "$GUILE_CONFIG"; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
16956 $as_echo "$GUILE_CONFIG" >&6; }
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16963 test -n "$GUILE_CONFIG" && break
16965 test -n "$GUILE_CONFIG" || GUILE_CONFIG="echo"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking guile prefix" >&5
16968 $as_echo_n "checking guile prefix... " >&6; }
16969 GUILE_PREFIX=`$GUILE_CONFIG info prefix`
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_PREFIX" >&5
16971 $as_echo "$GUILE_PREFIX" >&6; }
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile installation directory" >&5
16973 $as_echo_n "checking for Guile installation directory... " >&6; }
16974 GUILE_INSTALL_DIR=`guile -c '(display (%site-dir))'`
16975 if test "$prefix" != "NONE"; then
16976 # strip guile install path to honor prefix
16977 GUILE_INSTALL_DIR=`echo "$GUILE_INSTALL_DIR" | sed "s|$GUILE_PREFIX|$prefix|g"`
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_INSTALL_DIR" >&5
16981 $as_echo "$GUILE_INSTALL_DIR" >&6; }
16986 if test "x$with_python" = xno; then
16996 # Find any Python interpreter.
16997 if test -z "$PYTHON"; then
16998 for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
17000 # Extract the first word of "$ac_prog", so it can be a program name with args.
17001 set dummy $ac_prog; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_path_PYTHON+:} false; then :
17005 $as_echo_n "(cached) " >&6
17009 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $PATH
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17030 PYTHON=$ac_cv_path_PYTHON
17031 if test -n "$PYTHON"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17033 $as_echo "$PYTHON" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17040 test -n "$PYTHON" && break
17042 test -n "$PYTHON" || PYTHON=":"
17045 am_display_PYTHON=python
17048 if test "$PYTHON" = :; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17054 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17055 if ${am_cv_python_version+:} false; then :
17056 $as_echo_n "(cached) " >&6
17058 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17061 $as_echo "$am_cv_python_version" >&6; }
17062 PYTHON_VERSION=$am_cv_python_version
17066 PYTHON_PREFIX='${prefix}'
17068 PYTHON_EXEC_PREFIX='${exec_prefix}'
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17073 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17074 if ${am_cv_python_platform+:} false; then :
17075 $as_echo_n "(cached) " >&6
17077 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17080 $as_echo "$am_cv_python_platform" >&6; }
17081 PYTHON_PLATFORM=$am_cv_python_platform
17084 # Just factor out some code duplication.
17085 am_python_setup_sysconfig="\
17087 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17088 # with python 3.x. See automake bug#10227.
17091 except ImportError:
17092 can_use_sysconfig = 0
17094 can_use_sysconfig = 1
17095 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17096 # <https://github.com/pypa/virtualenv/issues/118>
17098 from platform import python_implementation
17099 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17100 can_use_sysconfig = 0
17101 except ImportError:
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17106 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17107 if ${am_cv_python_pythondir+:} false; then :
17108 $as_echo_n "(cached) " >&6
17110 if test "x$prefix" = xNONE
17112 am_py_prefix=$ac_default_prefix
17114 am_py_prefix=$prefix
17116 am_cv_python_pythondir=`$PYTHON -c "
17117 $am_python_setup_sysconfig
17118 if can_use_sysconfig:
17119 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17121 from distutils import sysconfig
17122 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17123 sys.stdout.write(sitedir)"`
17124 case $am_cv_python_pythondir in
17126 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17127 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17130 case $am_py_prefix in
17133 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17141 $as_echo "$am_cv_python_pythondir" >&6; }
17142 pythondir=$am_cv_python_pythondir
17146 pkgpythondir=\${pythondir}/$PACKAGE
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17150 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17151 if ${am_cv_python_pyexecdir+:} false; then :
17152 $as_echo_n "(cached) " >&6
17154 if test "x$exec_prefix" = xNONE
17156 am_py_exec_prefix=$am_py_prefix
17158 am_py_exec_prefix=$exec_prefix
17160 am_cv_python_pyexecdir=`$PYTHON -c "
17161 $am_python_setup_sysconfig
17162 if can_use_sysconfig:
17163 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17165 from distutils import sysconfig
17166 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17167 sys.stdout.write(sitedir)"`
17168 case $am_cv_python_pyexecdir in
17169 $am_py_exec_prefix*)
17170 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17171 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17174 case $am_py_exec_prefix in
17177 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17185 $as_echo "$am_cv_python_pyexecdir" >&6; }
17186 pyexecdir=$am_cv_python_pyexecdir
17190 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17197 if test $have_python = yes; then
17199 for ac_prog in python$PYTHON_VERSION-config python-config
17201 # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
17206 $as_echo_n "(cached) " >&6
17208 case $PYTHON_CONFIG in
17210 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 as_dummy="`dirname $PYTHON`:$PATH"
17215 for as_dir in $as_dummy
17218 test -z "$as_dir" && as_dir=.
17219 for ac_exec_ext in '' $ac_executable_extensions; do
17220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17232 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
17233 if test -n "$PYTHON_CONFIG"; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
17235 $as_echo "$PYTHON_CONFIG" >&6; }
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17242 test -n "$PYTHON_CONFIG" && break
17244 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="unknown"
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include flags" >&5
17247 $as_echo_n "checking for Python include flags... " >&6; }
17248 if test "x$PYTHON_CONFIG" = "xunknown"; then
17249 pinc=-I`echo "import distutils.sysconfig; print (distutils.sysconfig.get_python_inc())" | $PYTHON - 2>/dev/null`
17250 test "x$pinc" = "x-I" && pinc=""
17252 pinc=`$PYTHON_CONFIG --includes 2>/dev/null`
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pinc:-unknown}" >&5
17255 $as_echo "${pinc:-unknown}" >&6; }
17256 PYTHON_INCLUDES="$pinc"
17257 save_CPPFLAGS=$CPPFLAGS
17258 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
17259 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
17260 if test "x$ac_cv_header_Python_h" = xyes; then :
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Python wrappers" >&5
17264 $as_echo "$as_me: WARNING: disabling Python wrappers" >&2;}
17269 if test $have_python = yes; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Numpy include directory" >&5
17271 $as_echo_n "checking for Numpy include directory... " >&6; }
17272 pinc=`echo "import numpy; print (numpy.get_include())" | $PYTHON - 2>/dev/null`
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pinc:-unknown}" >&5
17274 $as_echo "${pinc:-unknown}" >&6; }
17275 test -n "$pinc" && PYTHON_INCLUDES="$PYTHON_INCLUDES -I$pinc"
17276 CPPFLAGS="$save_CPPFLAGS $PYTHON_INCLUDES"
17277 ac_fn_c_check_header_compile "$LINENO" "numpy/arrayobject.h" "ac_cv_header_numpy_arrayobject_h" "#include <Python.h>
17279 if test "x$ac_cv_header_numpy_arrayobject_h" = xyes; then :
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Python wrappers" >&5
17284 $as_echo "$as_me: WARNING: disabling Python wrappers" >&2;}
17290 CPPFLAGS=$save_CPPFLAGS
17295 fi # if enable_shared
17301 if test x"$GUILE_CONFIG" != "xunknown"; then
17303 WITH_GUILE_FALSE='#'
17305 WITH_GUILE_TRUE='#'
17309 if test x"$have_python" = "xyes"; then
17311 WITH_PYTHON_FALSE='#'
17313 WITH_PYTHON_TRUE='#'
17324 # Check whether --with-octave was given.
17325 if test "${with_octave+set}" = set; then :
17326 withval=$with_octave; with_octave=$withval
17332 for ac_prog in mkoctfile
17334 # Extract the first word of "$ac_prog", so it can be a program name with args.
17335 set dummy $ac_prog; ac_word=$2
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17337 $as_echo_n "checking for $ac_word... " >&6; }
17338 if ${ac_cv_prog_MKOCTFILE+:} false; then :
17339 $as_echo_n "(cached) " >&6
17341 if test -n "$MKOCTFILE"; then
17342 ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
17344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 for as_dir in $PATH
17348 test -z "$as_dir" && as_dir=.
17349 for ac_exec_ext in '' $ac_executable_extensions; do
17350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17351 ac_cv_prog_MKOCTFILE="$ac_prog"
17352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17361 MKOCTFILE=$ac_cv_prog_MKOCTFILE
17362 if test -n "$MKOCTFILE"; then
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
17364 $as_echo "$MKOCTFILE" >&6; }
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17371 test -n "$MKOCTFILE" && break
17373 test -n "$MKOCTFILE" || MKOCTFILE="echo"
17376 if test x"$with_octave" = xno; then
17378 elif test "$MKOCTFILE" = "echo"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mkoctfile: won't be able to compile GNU Octave plugin" >&5
17380 $as_echo "$as_me: WARNING: can't find mkoctfile: won't be able to compile GNU Octave plugin" >&2;}
17382 elif test x"$OCT_INSTALL_DIR" = "x"; then
17383 # try to find installation directory
17384 for ac_prog in octave
17386 # Extract the first word of "$ac_prog", so it can be a program name with args.
17387 set dummy $ac_prog; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_prog_OCTAVE+:} false; then :
17391 $as_echo_n "(cached) " >&6
17393 if test -n "$OCTAVE"; then
17394 ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17400 test -z "$as_dir" && as_dir=.
17401 for ac_exec_ext in '' $ac_executable_extensions; do
17402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17403 ac_cv_prog_OCTAVE="$ac_prog"
17404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17413 OCTAVE=$ac_cv_prog_OCTAVE
17414 if test -n "$OCTAVE"; then
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
17416 $as_echo "$OCTAVE" >&6; }
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17423 test -n "$OCTAVE" && break
17425 test -n "$OCTAVE" || OCTAVE="echo"
17427 for ac_prog in octave-config
17429 # Extract the first word of "$ac_prog", so it can be a program name with args.
17430 set dummy $ac_prog; ac_word=$2
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17432 $as_echo_n "checking for $ac_word... " >&6; }
17433 if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
17434 $as_echo_n "(cached) " >&6
17436 if test -n "$OCTAVE_CONFIG"; then
17437 ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17443 test -z "$as_dir" && as_dir=.
17444 for ac_exec_ext in '' $ac_executable_extensions; do
17445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17446 ac_cv_prog_OCTAVE_CONFIG="$ac_prog"
17447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17456 OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
17457 if test -n "$OCTAVE_CONFIG"; then
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
17459 $as_echo "$OCTAVE_CONFIG" >&6; }
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17466 test -n "$OCTAVE_CONFIG" && break
17468 test -n "$OCTAVE_CONFIG" || OCTAVE_CONFIG="echo"
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking octave prefix" >&5
17472 $as_echo_n "checking octave prefix... " >&6; }
17473 OCTAVE_PREFIX=`$OCTAVE_CONFIG --print PREFIX 2> /dev/null`
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_PREFIX" >&5
17475 $as_echo "$OCTAVE_PREFIX" >&6; }
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave plugins go" >&5
17478 $as_echo_n "checking where octave plugins go... " >&6; }
17479 OCT_INSTALL_DIR=`$OCTAVE_CONFIG --oct-site-dir 2> /dev/null | grep '/'`
17480 if test -z "$OCT_INSTALL_DIR"; then
17481 OCT_INSTALL_DIR=`$OCTAVE_CONFIG --print OCTFILEDIR 2> /dev/null | grep '/'`
17483 if test -z "$OCT_INSTALL_DIR"; then
17484 OCT_INSTALL_DIR=`echo "path" | $OCTAVE -q 2> /dev/null | grep "/oct/" | head -1`
17486 if test -z "$OCT_INSTALL_DIR"; then
17487 OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/oct" | head -1`
17489 if test -n "$OCT_INSTALL_DIR"; then
17490 if test "$prefix" != "NONE"; then
17491 # strip octave install path to honor prefix
17492 OCT_INSTALL_DIR=`echo "$OCT_INSTALL_DIR" | sed "s|$OCTAVE_PREFIX|$prefix|g"`
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCT_INSTALL_DIR" >&5
17495 $as_echo "$OCT_INSTALL_DIR" >&6; }
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17498 $as_echo "unknown" >&6; }
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave plugins: won't be able to compile octave plugin" >&5
17500 $as_echo "$as_me: WARNING: can't find where to install octave plugins: won't be able to compile octave plugin" >&2;}
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave scripts go" >&5
17504 $as_echo_n "checking where octave scripts go... " >&6; }
17505 M_INSTALL_DIR=`$OCTAVE_CONFIG --m-site-dir 2> /dev/null | grep '/'`
17506 if test -z "$M_INSTALL_DIR"; then
17507 M_INSTALL_DIR=`$OCTAVE_CONFIG --print FCNFILEDIR 2> /dev/null | grep '/'`
17509 if test -z "$M_INSTALL_DIR"; then
17510 M_INSTALL_DIR=`echo "path" | $OCTAVE -q 2> /dev/null | grep "/m" | head -1`
17512 if test -z "$M_INSTALL_DIR"; then
17513 M_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/m" | head -1`
17515 if test -n "$M_INSTALL_DIR"; then
17516 if test "$prefix" != "NONE"; then
17517 # strip octave install path to honor prefix
17518 M_INSTALL_DIR=`echo "$M_INSTALL_DIR" | sed "s|$OCTAVE_PREFIX|$prefix|g"`
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M_INSTALL_DIR" >&5
17521 $as_echo "$M_INSTALL_DIR" >&6; }
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17524 $as_echo "unknown" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave scripts: won't be able to install octave plugin" >&5
17526 $as_echo "$as_me: WARNING: can't find where to install octave scripts: won't be able to install octave plugin" >&2;}
17529 elif test x"$M_INSTALL_DIR" = "x"; then # user-specified OCT_INSTALL_DIR
17530 M_INSTALL_DIR=$OCT_INSTALL_DIR
17533 if test x"$OCT_INSTALL_DIR" != "x"; then
17534 if test "$enable_shared" = no; then
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkoctfile requires --enable-shared; won't compile Octave plugin" >&5
17536 $as_echo "$as_me: WARNING: mkoctfile requires --enable-shared; won't compile Octave plugin" >&2;}
17541 if test x"$OCT_INSTALL_DIR" != "x"; then
17543 WITH_OCTAVE_FALSE='#'
17545 WITH_OCTAVE_TRUE='#'
17555 # Check whether --with-matlab was given.
17556 if test "${with_matlab+set}" = set; then :
17557 withval=$with_matlab; with_matlab=$withval
17567 # Extract the first word of "$ac_prog", so it can be a program name with args.
17568 set dummy $ac_prog; ac_word=$2
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17570 $as_echo_n "checking for $ac_word... " >&6; }
17571 if ${ac_cv_prog_MEX+:} false; then :
17572 $as_echo_n "(cached) " >&6
17574 if test -n "$MEX"; then
17575 ac_cv_prog_MEX="$MEX" # Let the user override the test.
17577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17581 test -z "$as_dir" && as_dir=.
17582 for ac_exec_ext in '' $ac_executable_extensions; do
17583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17584 ac_cv_prog_MEX="$ac_prog"
17585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17594 MEX=$ac_cv_prog_MEX
17595 if test -n "$MEX"; then
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&5
17597 $as_echo "$MEX" >&6; }
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17600 $as_echo "no" >&6; }
17604 test -n "$MEX" && break
17606 test -n "$MEX" || MEX="echo"
17608 if test x"$with_matlab" = xno; then
17610 elif test "$MEX" = "echo"; then
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mex: won't be able to compile Matlab plugin" >&5
17612 $as_echo "$as_me: WARNING: can't find mex: won't be able to compile Matlab plugin" >&2;}
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension of compiled mex files" >&5
17616 $as_echo_n "checking for extension of compiled mex files... " >&6; }
17618 cat > conftest.c <<EOF
17620 void mexFunction(int nlhs, mxArray *plhs[],
17621 int nrhs, const mxArray *prhs[]) { }
17623 if $MEX conftest.c >&5 2>&5; then
17624 MEXSUFF=`ls conftest.m* | head -1 | cut -d'.' -f2`
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXSUFF" >&5
17626 $as_echo "$MEXSUFF" >&6; }
17627 for ac_prog in matlab
17629 # Extract the first word of "$ac_prog", so it can be a program name with args.
17630 set dummy $ac_prog; ac_word=$2
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17632 $as_echo_n "checking for $ac_word... " >&6; }
17633 if ${ac_cv_prog_MATLAB+:} false; then :
17634 $as_echo_n "(cached) " >&6
17636 if test -n "$MATLAB"; then
17637 ac_cv_prog_MATLAB="$MATLAB" # Let the user override the test.
17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17640 for as_dir in $PATH
17643 test -z "$as_dir" && as_dir=.
17644 for ac_exec_ext in '' $ac_executable_extensions; do
17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17646 ac_cv_prog_MATLAB="$ac_prog"
17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17656 MATLAB=$ac_cv_prog_MATLAB
17657 if test -n "$MATLAB"; then
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
17659 $as_echo "$MATLAB" >&6; }
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662 $as_echo "no" >&6; }
17666 test -n "$MATLAB" && break
17668 test -n "$MATLAB" || MATLAB="echo"
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $MEX failed to compile a simple file; won't compile Matlab plugin" >&5
17672 $as_echo "$as_me: WARNING: $MEX failed to compile a simple file; won't compile Matlab plugin" >&2;}
17677 if test x"$MATLAB" != xecho; then
17678 if test "$enable_shared" = no; then
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17680 $as_echo "no" >&6; }
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mex requires --enable-shared; won't compile Matlab plugin" >&5
17682 $as_echo "$as_me: WARNING: mex requires --enable-shared; won't compile Matlab plugin" >&2;}
17688 if test x"$MATLAB" != xecho; then
17689 # try to find installation directory
17690 if test x"$MEX_INSTALL_DIR" = "x"; then
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MATLAB mex installation dir" >&5
17692 $as_echo_n "checking for MATLAB mex installation dir... " >&6; }
17693 MEX_INSTALL_DIR=`matlab -nodisplay -nodesktop -nojvm -r 'path;quit' | grep toolbox/local |sed 's,^[^/]*,,g' |sort |head -1`
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX_INSTALL_DIR" >&5
17695 $as_echo "$MEX_INSTALL_DIR" >&6; }
17696 if test x`basename "$MEX_INSTALL_DIR"` != xlocal; then
17699 if test x"$MEX_INSTALL_DIR" = "x"; then
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find reasonable Matlab installation directory; Matlab plugins will not be compiled unless you manually specify MEX_INSTALL_DIR" >&5
17701 $as_echo "$as_me: WARNING: can't find reasonable Matlab installation directory; Matlab plugins will not be compiled unless you manually specify MEX_INSTALL_DIR" >&2;}
17708 if test x"$MEX_INSTALL_DIR" != "x"; then
17710 WITH_MATLAB_FALSE='#'
17712 WITH_MATLAB_TRUE='#'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working HUGE_VAL" >&5
17722 $as_echo_n "checking for working HUGE_VAL... " >&6; }
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17729 double x = -HUGE_VAL;
17734 if ac_fn_c_try_compile "$LINENO"; then :
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17736 $as_echo "ok" >&6; }
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17743 #define HUGE_VAL __builtin_huge_val()
17748 double x = -HUGE_VAL;
17753 if ac_fn_c_try_compile "$LINENO"; then :
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __builtin_huge_val()" >&5
17755 $as_echo "__builtin_huge_val()" >&6; }
17757 $as_echo "#define REPLACEMENT_HUGE_VAL __builtin_huge_val()" >>confdefs.h
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17761 $as_echo "unknown" >&6; }
17762 as_fn_error $? "broken HUGE_VAL macro with this compiler, unknown workaround" "$LINENO" 5
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 # Check whether --enable-debug was given.
17770 if test "${enable_debug+set}" = set; then :
17771 enableval=$enable_debug; ok=$enableval
17776 if test "$ok" = "yes"; then
17778 $as_echo "#define DEBUG 1" >>confdefs.h
17782 if test "${enable_debug}" = "yes"; then
17788 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
17789 if test $ac_cv_c_compiler_gnu = yes; then
17790 if test "$ac_test_CFLAGS" != "set"; then
17791 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations"
17793 if test "$ac_test_CXXFLAGS" != "set"; then
17794 CXXFLAGS="$CXXFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -Wshadow -Wwrite-strings -Wredundant-decls -Wundef -Wconversion"
17796 if test "x$with_cxx" = xyes; then
17802 vers=`echo ${VERSION}.0.0 | cut -d. -f1`
17804 cat >>confdefs.h <<_ACEOF
17805 #define MAJOR_VERSION $vers
17808 vers=`echo ${VERSION}.0.0 | cut -d. -f2`
17810 cat >>confdefs.h <<_ACEOF
17811 #define MINOR_VERSION $vers
17814 vers=`echo ${VERSION}.0.0 | cut -d. -f3`
17816 cat >>confdefs.h <<_ACEOF
17817 #define BUGFIX_VERSION $vers
17822 ac_config_files="$ac_config_files Makefile nlopt.pc api/Makefile util/Makefile octave/Makefile direct/Makefile cdirect/Makefile stogo/Makefile praxis/Makefile luksan/Makefile crs/Makefile mlsl/Makefile mma/Makefile cobyla/Makefile newuoa/Makefile neldermead/Makefile auglag/Makefile bobyqa/Makefile isres/Makefile slsqp/Makefile esch/Makefile test/Makefile swig/Makefile swig/nlopt.scm"
17825 cat >confcache <<\_ACEOF
17826 # This file is a shell script that caches the results of configure
17827 # tests run on this system so they can be shared between configure
17828 # scripts and configure runs, see configure's option --config-cache.
17829 # It is not useful on other systems. If it contains results you don't
17830 # want to keep, you may remove or edit it.
17832 # config.status only pays attention to the cache file if you give it
17833 # the --recheck option to rerun configure.
17835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17837 # following values.
17841 # The following way of writing the cache mishandles newlines in values,
17842 # but we know of no workaround that is simple, portable, and efficient.
17843 # So, we kill variables containing newlines.
17844 # Ultrix sh set writes to stderr and can't be redirected directly,
17845 # and sets the high bit in the cache file unless we assign to the vars.
17847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17848 eval ac_val=\$$ac_var
17852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17856 _ | IFS | as_nl) ;; #(
17857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17858 *) { eval $ac_var=; unset $ac_var;} ;;
17864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17865 *${as_nl}ac_space=\ *)
17866 # `set' does not quote correctly, so add quotes: double-quote
17867 # substitution turns \\\\ into \\, and sed turns \\ into \.
17870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17873 # `set' quotes correctly as required by POSIX, so do not add quotes.
17874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17888 if test -w "$cache_file"; then
17889 if test "x$cache_file" != "x/dev/null"; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17891 $as_echo "$as_me: updating cache $cache_file" >&6;}
17892 if test ! -f "$cache_file" || test -h "$cache_file"; then
17893 cat confcache >"$cache_file"
17895 case $cache_file in #(
17897 mv -f confcache "$cache_file"$$ &&
17898 mv -f "$cache_file"$$ "$cache_file" ;; #(
17900 mv -f confcache "$cache_file" ;;
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17912 # Let make expand exec_prefix.
17913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17915 DEFS=-DHAVE_CONFIG_H
17919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17920 # 1. Remove the extension, and $U if already installed.
17921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17922 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17923 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17924 # will be set to the directory where LIBOBJS objects are built.
17925 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17926 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17928 LIBOBJS=$ac_libobjs
17930 LTLIBOBJS=$ac_ltlibobjs
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17934 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17935 if test -n "$am_sleep_pid"; then
17936 # Hide warnings about reused PIDs.
17937 wait $am_sleep_pid 2>/dev/null
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17940 $as_echo "done" >&6; }
17941 if test -n "$EXEEXT"; then
17943 am__EXEEXT_FALSE='#'
17945 am__EXEEXT_TRUE='#'
17949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17954 as_fn_error $? "conditional \"AMDEP\" was never defined.
17955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17958 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17961 if test -z "${WITH_CXX_TRUE}" && test -z "${WITH_CXX_FALSE}"; then
17962 as_fn_error $? "conditional \"WITH_CXX\" was never defined.
17963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17966 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17969 if test -z "${WITH_GUILE_TRUE}" && test -z "${WITH_GUILE_FALSE}"; then
17970 as_fn_error $? "conditional \"WITH_GUILE\" was never defined.
17971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17973 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
17974 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
17975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17977 if test -z "${WITH_OCTAVE_TRUE}" && test -z "${WITH_OCTAVE_FALSE}"; then
17978 as_fn_error $? "conditional \"WITH_OCTAVE\" was never defined.
17979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17981 if test -z "${WITH_MATLAB_TRUE}" && test -z "${WITH_MATLAB_FALSE}"; then
17982 as_fn_error $? "conditional \"WITH_MATLAB\" was never defined.
17983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17986 : "${CONFIG_STATUS=./config.status}"
17988 ac_clean_files_save=$ac_clean_files
17989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17991 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17993 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17995 # Generated by $as_me.
17996 # Run this file to recreate the current configuration.
17997 # Compiler output produced by configure, useful for debugging
17998 # configure, is in config.log if it exists.
18001 ac_cs_recheck=false
18004 SHELL=\${CONFIG_SHELL-$SHELL}
18007 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18008 ## -------------------- ##
18009 ## M4sh Initialization. ##
18010 ## -------------------- ##
18012 # Be more Bourne compatible
18013 DUALCASE=1; export DUALCASE # for MKS sh
18014 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18017 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18018 # is contrary to our usage. Disable this feature.
18019 alias -g '${1+"$@"}'='"$@"'
18020 setopt NO_GLOB_SUBST
18022 case `(set -o) 2>/dev/null` in #(
18034 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18035 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18038 # Prefer a ksh shell builtin over an external printf program on Solaris,
18039 # but without wasting forks for bash or zsh.
18040 if test -z "$BASH_VERSION$ZSH_VERSION" \
18041 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18042 as_echo='print -r --'
18043 as_echo_n='print -rn --'
18044 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18045 as_echo='printf %s\n'
18046 as_echo_n='printf %s'
18048 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18049 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18050 as_echo_n='/usr/ucb/echo -n'
18052 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18053 as_echo_n_body='eval
18057 expr "X$arg" : "X\\(.*\\)$as_nl";
18058 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18060 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18062 export as_echo_n_body
18063 as_echo_n='sh -c $as_echo_n_body as_echo'
18065 export as_echo_body
18066 as_echo='sh -c $as_echo_body as_echo'
18069 # The user is always right.
18070 if test "${PATH_SEPARATOR+set}" != set; then
18072 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18073 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18080 # We need space, tab and new line, in precisely that order. Quoting is
18081 # there to prevent editors from complaining about space-tab.
18082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18083 # splitting by setting IFS to empty value.)
18086 # Find who we are. Look in the path if we contain no directory separator.
18089 *[\\/]* ) as_myself=$0 ;;
18090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18091 for as_dir in $PATH
18094 test -z "$as_dir" && as_dir=.
18095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18101 # We did not find ourselves, most probably we were run as `sh COMMAND'
18102 # in which case we are not to be found in the path.
18103 if test "x$as_myself" = x; then
18106 if test ! -f "$as_myself"; then
18107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18111 # Unset variables that we do not need and which cause bugs (e.g. in
18112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18113 # suppresses any "Segmentation fault" message there. '((' could
18114 # trigger a bug in pdksh 5.2.14.
18115 for as_var in BASH_ENV ENV MAIL MAILPATH
18116 do eval test x\${$as_var+set} = xset \
18117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18133 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18134 # ----------------------------------------
18135 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18136 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18137 # script with STATUS, using 1 if that was 0.
18140 as_status=$1; test $as_status -eq 0 && as_status=1
18142 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18143 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18145 $as_echo "$as_me: error: $2" >&2
18146 as_fn_exit $as_status
18150 # as_fn_set_status STATUS
18151 # -----------------------
18152 # Set $? to STATUS, without forking.
18153 as_fn_set_status ()
18156 } # as_fn_set_status
18158 # as_fn_exit STATUS
18159 # -----------------
18160 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18164 as_fn_set_status $1
18170 # Portably unset VAR.
18173 { eval $1=; unset $1;}
18175 as_unset=as_fn_unset
18176 # as_fn_append VAR VALUE
18177 # ----------------------
18178 # Append the text in VALUE to the end of the definition contained in VAR. Take
18179 # advantage of any shell optimizations that allow amortized linear growth over
18180 # repeated appends, instead of the typical quadratic growth present in naive
18182 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18183 eval 'as_fn_append ()
18194 # as_fn_arith ARG...
18195 # ------------------
18196 # Perform arithmetic evaluation on the ARGs, and store the result in the
18197 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18198 # must be portable across $(()) and expr.
18199 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18200 eval 'as_fn_arith ()
18207 as_val=`expr "$@" || test $? -eq 1`
18212 if expr a : '\(a\)' >/dev/null 2>&1 &&
18213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18220 as_basename=basename
18225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18231 as_me=`$as_basename -- "$0" ||
18232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18233 X"$0" : 'X\(//\)$' \| \
18234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18236 sed '/^.*\/\([^/][^/]*\)\/*$/{
18250 # Avoid depending upon Character Ranges.
18251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18254 as_cr_digits='0123456789'
18255 as_cr_alnum=$as_cr_Letters$as_cr_digits
18257 ECHO_C= ECHO_N= ECHO_T=
18258 case `echo -n x` in #(((((
18260 case `echo 'xy\c'` in
18261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18263 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18270 rm -f conf$$ conf$$.exe conf$$.file
18271 if test -d conf$$.dir; then
18272 rm -f conf$$.dir/conf$$.file
18275 mkdir conf$$.dir 2>/dev/null
18277 if (echo >conf$$.file) 2>/dev/null; then
18278 if ln -s conf$$.file conf$$ 2>/dev/null; then
18280 # ... but there are two gotchas:
18281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18283 # In both cases, we have to default to `cp -pR'.
18284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18286 elif ln conf$$.file conf$$ 2>/dev/null; then
18294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18295 rmdir conf$$.dir 2>/dev/null
18300 # Create "$as_dir" as a directory, including parents if necessary.
18305 -*) as_dir=./$as_dir;;
18307 test -d "$as_dir" || eval $as_mkdir_p || {
18311 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18312 *) as_qdir=$as_dir;;
18314 as_dirs="'$as_qdir' $as_dirs"
18315 as_dir=`$as_dirname -- "$as_dir" ||
18316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317 X"$as_dir" : 'X\(//\)[^/]' \| \
18318 X"$as_dir" : 'X\(//\)$' \| \
18319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18320 $as_echo X"$as_dir" |
18321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18325 /^X\(\/\/\)[^/].*/{
18338 test -d "$as_dir" && break
18340 test -z "$as_dirs" || eval "mkdir $as_dirs"
18341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18345 if mkdir -p . 2>/dev/null; then
18346 as_mkdir_p='mkdir -p "$as_dir"'
18348 test -d ./-p && rmdir ./-p
18353 # as_fn_executable_p FILE
18354 # -----------------------
18355 # Test if FILE is an executable regular file.
18356 as_fn_executable_p ()
18358 test -f "$1" && test -x "$1"
18359 } # as_fn_executable_p
18360 as_test_x='test -x'
18361 as_executable_p=as_fn_executable_p
18363 # Sed expression to map a string onto a valid CPP name.
18364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18366 # Sed expression to map a string onto a valid variable name.
18367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18371 ## ----------------------------------- ##
18372 ## Main body of $CONFIG_STATUS script. ##
18373 ## ----------------------------------- ##
18375 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 # Save the log message, to keep $0 and so on meaningful, and to
18379 # report actual input values of CONFIG_FILES etc. instead of their
18380 # values after options handling.
18382 This file was extended by nlopt $as_me 2.4.2, which was
18383 generated by GNU Autoconf 2.69. Invocation command line was
18385 CONFIG_FILES = $CONFIG_FILES
18386 CONFIG_HEADERS = $CONFIG_HEADERS
18387 CONFIG_LINKS = $CONFIG_LINKS
18388 CONFIG_COMMANDS = $CONFIG_COMMANDS
18391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18396 case $ac_config_files in *"
18397 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18400 case $ac_config_headers in *"
18401 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406 # Files that config.status was made for.
18407 config_files="$ac_config_files"
18408 config_headers="$ac_config_headers"
18409 config_commands="$ac_config_commands"
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18415 \`$as_me' instantiates files and other configuration actions
18416 from templates according to the current configuration. Unless the files
18417 and actions are specified as TAGs, all are instantiated by default.
18419 Usage: $0 [OPTION]... [TAG]...
18421 -h, --help print this help, then exit
18422 -V, --version print version number and configuration settings, then exit
18423 --config print configuration, then exit
18424 -q, --quiet, --silent
18425 do not print progress messages
18426 -d, --debug don't remove temporary files
18427 --recheck update $as_me by reconfiguring in the same conditions
18428 --file=FILE[:TEMPLATE]
18429 instantiate the configuration file FILE
18430 --header=FILE[:TEMPLATE]
18431 instantiate the configuration header FILE
18433 Configuration files:
18436 Configuration headers:
18439 Configuration commands:
18442 Report bugs to <stevenj@alum.mit.edu>."
18445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18446 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18448 nlopt config.status 2.4.2
18449 configured by $0, generated by GNU Autoconf 2.69,
18450 with options \\"\$ac_cs_config\\"
18452 Copyright (C) 2012 Free Software Foundation, Inc.
18453 This config.status script is free software; the Free Software Foundation
18454 gives unlimited permission to copy, distribute and modify it."
18461 test -n "\$AWK" || AWK=awk
18464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465 # The default lists apply if the user does not specify any file.
18471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18488 # Handling of the options.
18489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18492 $as_echo "$ac_cs_version"; exit ;;
18493 --config | --confi | --conf | --con | --co | --c )
18494 $as_echo "$ac_cs_config"; exit ;;
18495 --debug | --debu | --deb | --de | --d | -d )
18497 --file | --fil | --fi | --f )
18500 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18501 '') as_fn_error $? "missing file argument" ;;
18503 as_fn_append CONFIG_FILES " '$ac_optarg'"
18504 ac_need_defaults=false;;
18505 --header | --heade | --head | --hea )
18508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18510 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18511 ac_need_defaults=false;;
18513 # Conflict between --help and --header
18514 as_fn_error $? "ambiguous option: \`$1'
18515 Try \`$0 --help' for more information.";;
18516 --help | --hel | -h )
18517 $as_echo "$ac_cs_usage"; exit ;;
18518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18522 # This is an error.
18523 -*) as_fn_error $? "unrecognized option: \`$1'
18524 Try \`$0 --help' for more information." ;;
18526 *) as_fn_append ac_config_targets " $1"
18527 ac_need_defaults=false ;;
18533 ac_configure_extra_args=
18535 if $ac_cs_silent; then
18537 ac_configure_extra_args="$ac_configure_extra_args --silent"
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 if \$ac_cs_recheck; then
18543 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18545 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18546 CONFIG_SHELL='$SHELL'
18547 export CONFIG_SHELL
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18557 ## Running $as_me. ##
18563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18570 # The HP-UX ksh and POSIX shell print the target directory to stdout
18571 # if CDPATH is set.
18572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18574 sed_quote_subst='$sed_quote_subst'
18575 double_quote_subst='$double_quote_subst'
18576 delay_variable_subst='$delay_variable_subst'
18577 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18578 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18580 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18581 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18582 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18583 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18586 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18587 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18588 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18589 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18590 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18591 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18592 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18593 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18594 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18595 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18596 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18597 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18598 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18599 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18600 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18601 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18602 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18603 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18604 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18605 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18606 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18607 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18608 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18609 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18610 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18611 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18612 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18613 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18614 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18615 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18616 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18617 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18618 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18619 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18620 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18621 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18622 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18623 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18624 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18625 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18626 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18627 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18628 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18629 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18630 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18631 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18632 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18633 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18634 lt_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"`'
18635 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18636 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18637 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18638 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18639 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18640 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18641 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18642 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18643 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18644 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18645 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18646 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18647 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18648 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18649 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18650 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18651 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18652 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18653 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18654 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18655 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18656 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18657 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18658 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18659 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18660 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18661 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18662 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18663 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18664 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18665 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18666 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18667 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18668 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18669 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18670 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18671 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18672 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18673 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18674 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18675 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18676 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18677 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18678 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18679 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18680 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18681 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18682 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18683 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18684 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18685 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18686 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18687 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18688 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18689 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18690 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18691 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18692 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18693 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18694 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18695 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18696 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18697 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18698 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18699 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18700 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18701 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18702 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18703 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18704 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18705 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18706 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18707 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18708 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18709 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18710 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18711 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18712 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18713 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18714 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18715 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18716 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18717 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18718 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18719 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18720 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18721 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18722 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18723 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18724 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18725 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18726 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18727 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18728 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18729 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18730 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18731 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18732 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18733 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18734 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18735 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18736 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18737 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18738 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18739 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18740 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18741 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18742 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18743 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18744 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18745 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18746 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18747 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18748 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18749 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18750 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18751 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18752 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18753 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18754 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18755 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18756 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18757 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18758 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18759 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18760 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18761 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18764 LTCFLAGS='$LTCFLAGS'
18765 compiler='$compiler_DEFAULT'
18767 # A function that is used when there is no print builtin or printf.
18768 func_fallback_echo ()
18770 eval 'cat <<_LTECHO_EOF
18775 # Quote evaled strings.
18792 deplibs_check_method \
18796 sharedlib_from_linklib_cmd \
18799 archiver_list_spec \
18805 lt_cv_sys_global_symbol_pipe \
18806 lt_cv_sys_global_symbol_to_cdecl \
18807 lt_cv_sys_global_symbol_to_c_name_address \
18808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18809 nm_file_list_spec \
18810 lt_prog_compiler_no_builtin_flag \
18811 lt_prog_compiler_pic \
18812 lt_prog_compiler_wl \
18813 lt_prog_compiler_static \
18814 lt_cv_prog_compiler_c_o \
18823 export_dynamic_flag_spec \
18824 whole_archive_flag_spec \
18825 compiler_needs_object \
18827 allow_undefined_flag \
18828 no_undefined_flag \
18829 hardcode_libdir_flag_spec \
18830 hardcode_libdir_separator \
18834 variables_saved_for_relink \
18836 library_names_spec \
18838 install_override_mode \
18842 compiler_lib_search_dirs \
18847 compiler_lib_search_path \
18851 lt_prog_compiler_no_builtin_flag_CXX \
18852 lt_prog_compiler_pic_CXX \
18853 lt_prog_compiler_wl_CXX \
18854 lt_prog_compiler_static_CXX \
18855 lt_cv_prog_compiler_c_o_CXX \
18856 export_dynamic_flag_spec_CXX \
18857 whole_archive_flag_spec_CXX \
18858 compiler_needs_object_CXX \
18860 allow_undefined_flag_CXX \
18861 no_undefined_flag_CXX \
18862 hardcode_libdir_flag_spec_CXX \
18863 hardcode_libdir_separator_CXX \
18864 exclude_expsyms_CXX \
18865 include_expsyms_CXX \
18866 file_list_spec_CXX \
18867 compiler_lib_search_dirs_CXX \
18868 predep_objects_CXX \
18869 postdep_objects_CXX \
18872 compiler_lib_search_path_CXX; do
18873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18874 *[\\\\\\\`\\"\\\$]*)
18875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18883 # Double-quote double-evaled strings.
18884 for var in reload_cmds \
18885 old_postinstall_cmds \
18886 old_postuninstall_cmds \
18888 extract_expsyms_cmds \
18889 old_archive_from_new_cmds \
18890 old_archive_from_expsyms_cmds \
18892 archive_expsym_cmds \
18894 module_expsym_cmds \
18895 export_symbols_cmds \
18899 postuninstall_cmds \
18901 sys_lib_search_path_spec \
18902 sys_lib_dlsearch_path_spec \
18904 old_archive_cmds_CXX \
18905 old_archive_from_new_cmds_CXX \
18906 old_archive_from_expsyms_cmds_CXX \
18908 archive_expsym_cmds_CXX \
18910 module_expsym_cmds_CXX \
18911 export_symbols_cmds_CXX \
18913 postlink_cmds_CXX; do
18914 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18915 *[\\\\\\\`\\"\\\$]*)
18916 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18919 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18924 ac_aux_dir='$ac_aux_dir'
18925 xsi_shell='$xsi_shell'
18926 lt_shell_append='$lt_shell_append'
18928 # See if we are running on zsh, and set the options which allow our
18929 # commands through without removal of \ escapes INIT.
18930 if test -n "\${ZSH_VERSION+set}" ; then
18931 setopt NO_GLOB_SUBST
18937 TIMESTAMP='$TIMESTAMP'
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18950 # Handling of arguments.
18951 for ac_config_target in $ac_config_targets
18953 case $ac_config_target in
18954 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18955 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18956 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18958 "nlopt.pc") CONFIG_FILES="$CONFIG_FILES nlopt.pc" ;;
18959 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
18960 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
18961 "octave/Makefile") CONFIG_FILES="$CONFIG_FILES octave/Makefile" ;;
18962 "direct/Makefile") CONFIG_FILES="$CONFIG_FILES direct/Makefile" ;;
18963 "cdirect/Makefile") CONFIG_FILES="$CONFIG_FILES cdirect/Makefile" ;;
18964 "stogo/Makefile") CONFIG_FILES="$CONFIG_FILES stogo/Makefile" ;;
18965 "praxis/Makefile") CONFIG_FILES="$CONFIG_FILES praxis/Makefile" ;;
18966 "luksan/Makefile") CONFIG_FILES="$CONFIG_FILES luksan/Makefile" ;;
18967 "crs/Makefile") CONFIG_FILES="$CONFIG_FILES crs/Makefile" ;;
18968 "mlsl/Makefile") CONFIG_FILES="$CONFIG_FILES mlsl/Makefile" ;;
18969 "mma/Makefile") CONFIG_FILES="$CONFIG_FILES mma/Makefile" ;;
18970 "cobyla/Makefile") CONFIG_FILES="$CONFIG_FILES cobyla/Makefile" ;;
18971 "newuoa/Makefile") CONFIG_FILES="$CONFIG_FILES newuoa/Makefile" ;;
18972 "neldermead/Makefile") CONFIG_FILES="$CONFIG_FILES neldermead/Makefile" ;;
18973 "auglag/Makefile") CONFIG_FILES="$CONFIG_FILES auglag/Makefile" ;;
18974 "bobyqa/Makefile") CONFIG_FILES="$CONFIG_FILES bobyqa/Makefile" ;;
18975 "isres/Makefile") CONFIG_FILES="$CONFIG_FILES isres/Makefile" ;;
18976 "slsqp/Makefile") CONFIG_FILES="$CONFIG_FILES slsqp/Makefile" ;;
18977 "esch/Makefile") CONFIG_FILES="$CONFIG_FILES esch/Makefile" ;;
18978 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18979 "swig/Makefile") CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
18980 "swig/nlopt.scm") CONFIG_FILES="$CONFIG_FILES swig/nlopt.scm" ;;
18982 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18987 # If the user did not use the arguments to specify the items to instantiate,
18988 # then the envvar interface is used. Set only those that are not.
18989 # We use the long form for the default assignment because of an extremely
18990 # bizarre bug on SunOS 4.1.3.
18991 if $ac_need_defaults; then
18992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18994 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18997 # Have a temporary directory for convenience. Make it in the build tree
18998 # simply because there is no reason against having it here, and in addition,
18999 # creating and moving files from /tmp can sometimes cause problems.
19000 # Hook for its removal unless debugging.
19001 # Note that there is a small window in which the directory will not be cleaned:
19002 # after its creation but before its name has been assigned to `$tmp'.
19006 trap 'exit_status=$?
19007 : "${ac_tmp:=$tmp}"
19008 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19010 trap 'as_fn_exit 1' 1 2 13 15
19012 # Create a (secure) tmp directory for tmp files.
19015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19019 tmp=./conf$$-$RANDOM
19020 (umask 077 && mkdir "$tmp")
19021 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19024 # Set up the scripts for CONFIG_FILES section.
19025 # No need to generate them if there are no CONFIG_FILES.
19026 # This happens for instance with `./config.status config.h'.
19027 if test -n "$CONFIG_FILES"; then
19030 ac_cr=`echo X | tr X '\015'`
19031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19032 # But we know of no other shell where ac_cr would be empty at this
19033 # point, so we can use a bashism as a fallback.
19034 if test "x$ac_cr" = x; then
19035 eval ac_cr=\$\'\\r\'
19037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19041 ac_cs_awk_cr=$ac_cr
19044 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19049 echo "cat >conf$$subs.awk <<_ACEOF" &&
19050 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19052 } >conf$$subs.sh ||
19053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19054 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19056 for ac_last_try in false false false false false :; do
19057 . ./conf$$subs.sh ||
19058 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19060 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19061 if test $ac_delim_n = $ac_delim_num; then
19063 elif $ac_last_try; then
19064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19069 rm -f conf$$subs.sh
19071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19072 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19076 s/^/S["/; s/!.*/"]=/
19086 s/\(.\{148\}\)..*/\1/
19088 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19100 s/\(.\{148\}\)..*/\1/
19102 s/["\\]/\\&/g; s/^/"/; s/$/"/
19106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19111 ' <conf$$subs.awk | sed '
19116 ' >>$CONFIG_STATUS || ac_write_fail=1
19117 rm -f conf$$subs.awk
19118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19121 for (key in S) S_is_set[key] = 1
19127 nfields = split(line, field, "@")
19129 len = length(field[1])
19130 for (i = 2; i < nfields; i++) {
19132 keylen = length(key)
19133 if (S_is_set[key]) {
19135 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19136 len += length(value) + length(field[++i])
19147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19149 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19152 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19153 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19156 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19157 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19158 # trailing colons and then remove the whole line if VPATH becomes empty
19159 # (actually we leave an empty line to preserve line numbers).
19160 if test "x$srcdir" = x.; then
19161 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19180 fi # test -n "$CONFIG_FILES"
19182 # Set up the scripts for CONFIG_HEADERS section.
19183 # No need to generate them if there are no CONFIG_HEADERS.
19184 # This happens for instance with `./config.status Makefile'.
19185 if test -n "$CONFIG_HEADERS"; then
19186 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19190 # Transform confdefs.h into an awk script `defines.awk', embedded as
19191 # here-document in config.status, that substitutes the proper values into
19192 # config.h.in to produce config.h.
19194 # Create a delimiter string that does not exist in confdefs.h, to ease
19195 # handling of long lines.
19197 for ac_last_try in false false :; do
19198 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19199 if test -z "$ac_tt"; then
19201 elif $ac_last_try; then
19202 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19208 # For the awk script, D is an array of macro values keyed by name,
19209 # likewise P contains macro parameters if any. Preserve backslash
19210 # newline sequences.
19212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19214 s/.\{148\}/&'"$ac_delim"'/g
19217 s/^[ ]*#[ ]*define[ ][ ]*/ /
19224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19231 D["\1"]=" \3\\\\\\n"\\/p
19233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19238 s/.\{148\}/&'"$ac_delim"'/g
19243 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19246 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19248 ' <confdefs.h | sed '
19249 s/'"$ac_delim"'/"\\\
19250 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19253 for (key in D) D_is_set[key] = 1
19256 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19258 split(line, arg, " ")
19259 if (arg[1] == "#") {
19263 defundef = substr(arg[1], 2)
19266 split(mac1, mac2, "(") #)
19268 prefix = substr(line, 1, index(line, defundef) - 1)
19269 if (D_is_set[macro]) {
19270 # Preserve the white space surrounding the "#".
19271 print prefix "define", macro P[macro] D[macro]
19274 # Replace #undef with comments. This is necessary, for example,
19275 # in the case of _POSIX_SOURCE, which is predefined and required
19276 # on some systems where configure will not decide to define it.
19277 if (defundef == "undef") {
19278 print "/*", prefix defundef, macro, "*/"
19286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19287 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19288 fi # test -n "$CONFIG_HEADERS"
19291 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19296 :[FHLC]) ac_mode=$ac_tag; continue;;
19298 case $ac_mode$ac_tag in
19300 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19301 :[FH]-) ac_tag=-:-;;
19302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19319 -) ac_f="$ac_tmp/stdin";;
19320 *) # Look for the file first in the build tree, then in the source tree
19321 # (if the path is not absolute). The absolute path cannot be DOS-style,
19322 # because $ac_f cannot contain `:'.
19326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19328 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19330 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19331 as_fn_append ac_file_inputs " '$ac_f'"
19334 # Let's still pretend it is `configure' which instantiates (i.e., don't
19335 # use $as_me), people would be surprised to read:
19336 # /* config.h. Generated by config.status. */
19337 configure_input='Generated from '`
19338 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19340 if test x"$ac_file" != x-; then
19341 configure_input="$ac_file. $configure_input"
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19343 $as_echo "$as_me: creating $ac_file" >&6;}
19345 # Neutralize special characters interpreted by sed in replacement strings.
19346 case $configure_input in #(
19347 *\&* | *\|* | *\\* )
19348 ac_sed_conf_input=`$as_echo "$configure_input" |
19349 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19350 *) ac_sed_conf_input=$configure_input;;
19354 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19360 ac_dir=`$as_dirname -- "$ac_file" ||
19361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19362 X"$ac_file" : 'X\(//\)[^/]' \| \
19363 X"$ac_file" : 'X\(//\)$' \| \
19364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19365 $as_echo X"$ac_file" |
19366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19370 /^X\(\/\/\)[^/].*/{
19383 as_dir="$ac_dir"; as_fn_mkdir_p
19387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19390 # A ".." for each directory in $ac_dir_suffix.
19391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19392 case $ac_top_builddir_sub in
19393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19397 ac_abs_top_builddir=$ac_pwd
19398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19399 # for backward compatibility:
19400 ac_top_builddir=$ac_top_build_prefix
19403 .) # We are building in place.
19405 ac_top_srcdir=$ac_top_builddir_sub
19406 ac_abs_top_srcdir=$ac_pwd ;;
19407 [\\/]* | ?:[\\/]* ) # Absolute name.
19408 ac_srcdir=$srcdir$ac_dir_suffix;
19409 ac_top_srcdir=$srcdir
19410 ac_abs_top_srcdir=$srcdir ;;
19411 *) # Relative name.
19412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19413 ac_top_srcdir=$ac_top_build_prefix$srcdir
19414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19429 ac_MKDIR_P=$MKDIR_P
19431 [\\/$]* | ?:[\\/]* ) ;;
19432 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19437 # If the template does not know about datarootdir, expand it.
19438 # FIXME: This hack should be removed a few years after 2.60.
19439 ac_datarootdir_hack=; ac_datarootdir_seen=
19450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19451 *datarootdir*) ac_datarootdir_seen=yes;;
19452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19457 ac_datarootdir_hack='
19458 s&@datadir@&$datadir&g
19459 s&@docdir@&$docdir&g
19460 s&@infodir@&$infodir&g
19461 s&@localedir@&$localedir&g
19462 s&@mandir@&$mandir&g
19463 s&\\\${datarootdir}&$datarootdir&g' ;;
19467 # Neutralize VPATH when `$srcdir' = `.'.
19468 # Shell code in configure.ac might set extrasub.
19469 # FIXME: do we really want to maintain this feature?
19470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19471 ac_sed_extra="$ac_vpsub
19474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19477 s|@configure_input@|$ac_sed_conf_input|;t t
19478 s&@top_builddir@&$ac_top_builddir_sub&;t t
19479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19480 s&@srcdir@&$ac_srcdir&;t t
19481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19482 s&@top_srcdir@&$ac_top_srcdir&;t t
19483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19484 s&@builddir@&$ac_builddir&;t t
19485 s&@abs_builddir@&$ac_abs_builddir&;t t
19486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19487 s&@INSTALL@&$ac_INSTALL&;t t
19488 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19489 $ac_datarootdir_hack
19491 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19492 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19494 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19495 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19496 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19497 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19499 which seems to be undefined. Please make sure it is defined" >&5
19500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19501 which seems to be undefined. Please make sure it is defined" >&2;}
19503 rm -f "$ac_tmp/stdin"
19505 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19506 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19514 if test x"$ac_file" != x-; then
19516 $as_echo "/* $configure_input */" \
19517 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19518 } >"$ac_tmp/config.h" \
19519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19520 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19525 mv "$ac_tmp/config.h" "$ac_file" \
19526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19529 $as_echo "/* $configure_input */" \
19530 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19531 || as_fn_error $? "could not create -" "$LINENO" 5
19533 # Compute "$ac_file"'s index in $config_headers.
19536 for _am_header in $config_headers :; do
19537 case $_am_header in
19538 $_am_arg | $_am_arg:* )
19541 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19544 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19545 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546 X"$_am_arg" : 'X\(//\)[^/]' \| \
19547 X"$_am_arg" : 'X\(//\)$' \| \
19548 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19549 $as_echo X"$_am_arg" |
19550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19554 /^X\(\/\/\)[^/].*/{
19566 s/.*/./; q'`/stamp-h$_am_stamp_count
19569 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19570 $as_echo "$as_me: executing $ac_file commands" >&6;}
19575 case $ac_file$ac_mode in
19576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19577 # Older Autoconf quotes --file arguments for eval, but not when files
19578 # are listed without --file. Let's play safe and only enable the eval
19579 # if we detect the quoting.
19580 case $CONFIG_FILES in
19581 *\'*) eval set x "$CONFIG_FILES" ;;
19582 *) set x $CONFIG_FILES ;;
19587 # Strip MF so we end up with the name of the file.
19588 mf=`echo "$mf" | sed -e 's/:.*$//'`
19589 # Check whether this is an Automake generated Makefile or not.
19590 # We used to match only the files named 'Makefile.in', but
19591 # some people rename them; so instead we look at the file content.
19592 # Grep'ing the first line is not enough: some people post-process
19593 # each Makefile.in and add a new line on top of each file to say so.
19594 # Grep'ing the whole file is not good either: AIX grep has a line
19595 # limit of 2048, but all sed's we know have understand at least 4000.
19596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19597 dirpart=`$as_dirname -- "$mf" ||
19598 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19599 X"$mf" : 'X\(//\)[^/]' \| \
19600 X"$mf" : 'X\(//\)$' \| \
19601 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19607 /^X\(\/\/\)[^/].*/{
19623 # Extract the definition of DEPDIR, am__include, and am__quote
19624 # from the Makefile without running 'make'.
19625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19626 test -z "$DEPDIR" && continue
19627 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19628 test -z "$am__include" && continue
19629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19630 # Find all dependency output files, they are included files with
19631 # $(DEPDIR) in their names. We invoke sed twice because it is the
19632 # simplest approach to changing $(DEPDIR) to its actual value in the
19634 for file in `sed -n "
19635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19637 # Make sure the directory exists.
19638 test -f "$dirpart/$file" && continue
19639 fdir=`$as_dirname -- "$file" ||
19640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19641 X"$file" : 'X\(//\)[^/]' \| \
19642 X"$file" : 'X\(//\)$' \| \
19643 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19644 $as_echo X"$file" |
19645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19649 /^X\(\/\/\)[^/].*/{
19662 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19663 # echo "creating $dirpart/$file"
19664 echo '# dummy' > "$dirpart/$file"
19671 # See if we are running on zsh, and set the options which allow our
19672 # commands through without removal of \ escapes.
19673 if test -n "${ZSH_VERSION+set}" ; then
19674 setopt NO_GLOB_SUBST
19677 cfgfile="${ofile}T"
19678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19681 cat <<_LT_EOF >> "$cfgfile"
19684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19689 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19690 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19692 # Written by Gordon Matzigkeit, 1996
19694 # This file is part of GNU Libtool.
19696 # GNU Libtool is free software; you can redistribute it and/or
19697 # modify it under the terms of the GNU General Public License as
19698 # published by the Free Software Foundation; either version 2 of
19699 # the License, or (at your option) any later version.
19701 # As a special exception to the GNU General Public License,
19702 # if you distribute this file as part of a program or library that
19703 # is built using GNU Libtool, you may include this file under the
19704 # same distribution terms that you use for the rest of that program.
19706 # GNU Libtool is distributed in the hope that it will be useful,
19707 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19709 # GNU General Public License for more details.
19711 # You should have received a copy of the GNU General Public License
19712 # along with GNU Libtool; see the file COPYING. If not, a copy
19713 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19714 # obtained by writing to the Free Software Foundation, Inc.,
19715 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19718 # The names of the tagged configurations supported by this script.
19719 available_tags="CXX "
19721 # ### BEGIN LIBTOOL CONFIG
19723 # Whether or not to build shared libraries.
19724 build_libtool_libs=$enable_shared
19726 # Assembler program.
19729 # DLL creation program.
19730 DLLTOOL=$lt_DLLTOOL
19732 # Object dumper program.
19733 OBJDUMP=$lt_OBJDUMP
19735 # Which release of libtool.m4 was used?
19736 macro_version=$macro_version
19737 macro_revision=$macro_revision
19739 # Whether or not to build static libraries.
19740 build_old_libs=$enable_static
19742 # What type of objects to build.
19745 # Whether or not to optimize for fast installation.
19746 fast_install=$enable_fast_install
19748 # Shell to use when invoking shell scripts.
19751 # An echo program that protects backslashes.
19754 # The PATH separator for the build system.
19755 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19758 host_alias=$host_alias
19762 # The build system.
19763 build_alias=$build_alias
19767 # A sed program that does not truncate output.
19770 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19771 Xsed="\$SED -e 1s/^X//"
19773 # A grep program that handles long lines.
19779 # A literal string matcher.
19782 # A BSD- or MS-compatible name lister.
19785 # Whether we need soft or hard links.
19788 # What is the maximum length of a command?
19789 max_cmd_len=$max_cmd_len
19791 # Object file suffix (normally "o").
19794 # Executable file suffix (normally "").
19797 # whether the shell understands "unset".
19800 # turn spaces into newlines.
19803 # turn newlines into spaces.
19806 # convert \$build file names to \$host format.
19807 to_host_file_cmd=$lt_cv_to_host_file_cmd
19809 # convert \$build files to toolchain format.
19810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19812 # Method to check whether dependent libraries are shared objects.
19813 deplibs_check_method=$lt_deplibs_check_method
19815 # Command to use when deplibs_check_method = "file_magic".
19816 file_magic_cmd=$lt_file_magic_cmd
19818 # How to find potential files when deplibs_check_method = "file_magic".
19819 file_magic_glob=$lt_file_magic_glob
19821 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19822 want_nocaseglob=$lt_want_nocaseglob
19824 # Command to associate shared and link libraries.
19825 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19830 # Flags to create an archive.
19831 AR_FLAGS=$lt_AR_FLAGS
19833 # How to feed a file listing to the archiver.
19834 archiver_list_spec=$lt_archiver_list_spec
19836 # A symbol stripping program.
19839 # Commands used to install an old-style archive.
19841 old_postinstall_cmds=$lt_old_postinstall_cmds
19842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19844 # Whether to use a lock for old archive extraction.
19845 lock_old_archive_extraction=$lock_old_archive_extraction
19850 # LTCC compiler flags.
19851 LTCFLAGS=$lt_CFLAGS
19853 # Take the output of nm and produce a listing of raw symbols and C names.
19854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19856 # Transform the output of nm in a proper C declaration.
19857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19859 # Transform the output of nm in a C name address pair.
19860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19862 # Transform the output of nm in a C name address pair when lib prefix is needed.
19863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19865 # Specify filename containing input files for \$NM.
19866 nm_file_list_spec=$lt_nm_file_list_spec
19868 # The root where to search for dependent libraries,and in which our libraries should be installed.
19869 lt_sysroot=$lt_sysroot
19871 # The name of the directory that contains temporary libtool files.
19874 # Used to examine libraries when file_magic_cmd begins with "file".
19875 MAGIC_CMD=$MAGIC_CMD
19877 # Must we lock files when doing compilation?
19878 need_locks=$lt_need_locks
19881 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19884 DSYMUTIL=$lt_DSYMUTIL
19886 # Tool to change global to local symbols on Mac OS X.
19889 # Tool to manipulate fat objects and archives on Mac OS X.
19892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19896 OTOOL64=$lt_OTOOL64
19898 # Old archive suffix (normally "a").
19901 # Shared library suffix (normally ".so").
19902 shrext_cmds=$lt_shrext_cmds
19904 # The commands to extract the exported symbol list from a shared archive.
19905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19907 # Variables whose values should be saved in libtool wrapper scripts and
19908 # restored at link time.
19909 variables_saved_for_relink=$lt_variables_saved_for_relink
19911 # Do we need the "lib" prefix for modules?
19912 need_lib_prefix=$need_lib_prefix
19914 # Do we need a version for libraries?
19915 need_version=$need_version
19917 # Library versioning type.
19918 version_type=$version_type
19920 # Shared library runtime path variable.
19921 runpath_var=$runpath_var
19923 # Shared library path variable.
19924 shlibpath_var=$shlibpath_var
19926 # Is shlibpath searched before the hard-coded library search path?
19927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19929 # Format of library name prefix.
19930 libname_spec=$lt_libname_spec
19932 # List of archive names. First name is the real one, the rest are links.
19933 # The last name is the one that the linker finds with -lNAME
19934 library_names_spec=$lt_library_names_spec
19936 # The coded name of the library, if different from the real name.
19937 soname_spec=$lt_soname_spec
19939 # Permission mode override for installation of shared libraries.
19940 install_override_mode=$lt_install_override_mode
19942 # Command to use after installation of a shared archive.
19943 postinstall_cmds=$lt_postinstall_cmds
19945 # Command to use after uninstallation of a shared archive.
19946 postuninstall_cmds=$lt_postuninstall_cmds
19948 # Commands used to finish a libtool library installation in a directory.
19949 finish_cmds=$lt_finish_cmds
19951 # As "finish_cmds", except a single script fragment to be evaled but
19953 finish_eval=$lt_finish_eval
19955 # Whether we should hardcode library paths into libraries.
19956 hardcode_into_libs=$hardcode_into_libs
19958 # Compile-time system search path for libraries.
19959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19961 # Run-time system search path for libraries.
19962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19964 # Whether dlopen is supported.
19965 dlopen_support=$enable_dlopen
19967 # Whether dlopen of programs is supported.
19968 dlopen_self=$enable_dlopen_self
19970 # Whether dlopen of statically linked programs is supported.
19971 dlopen_self_static=$enable_dlopen_self_static
19973 # Commands to strip libraries.
19974 old_striplib=$lt_old_striplib
19975 striplib=$lt_striplib
19978 # The linker used to build libraries.
19981 # How to create reloadable object files.
19982 reload_flag=$lt_reload_flag
19983 reload_cmds=$lt_reload_cmds
19985 # Commands used to build an old-style archive.
19986 old_archive_cmds=$lt_old_archive_cmds
19988 # A language specific compiler.
19991 # Is the compiler the GNU compiler?
19994 # Compiler flag to turn off builtin functions.
19995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19997 # Additional compiler flags for building library objects.
19998 pic_flag=$lt_lt_prog_compiler_pic
20000 # How to pass a linker flag through the compiler.
20001 wl=$lt_lt_prog_compiler_wl
20003 # Compiler flag to prevent dynamic linking.
20004 link_static_flag=$lt_lt_prog_compiler_static
20006 # Does compiler simultaneously support -c and -o options?
20007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20009 # Whether or not to add -lc for building shared libraries.
20010 build_libtool_need_lc=$archive_cmds_need_lc
20012 # Whether or not to disallow shared libs when runtime libs are static.
20013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20015 # Compiler flag to allow reflexive dlopens.
20016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20018 # Compiler flag to generate shared objects directly from archives.
20019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20021 # Whether the compiler copes with passing no objects directly.
20022 compiler_needs_object=$lt_compiler_needs_object
20024 # Create an old-style archive from a shared archive.
20025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20027 # Create a temporary old-style archive to link instead of a shared archive.
20028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20030 # Commands used to build a shared archive.
20031 archive_cmds=$lt_archive_cmds
20032 archive_expsym_cmds=$lt_archive_expsym_cmds
20034 # Commands used to build a loadable module if different from building
20035 # a shared archive.
20036 module_cmds=$lt_module_cmds
20037 module_expsym_cmds=$lt_module_expsym_cmds
20039 # Whether we are building with GNU ld or not.
20040 with_gnu_ld=$lt_with_gnu_ld
20042 # Flag that allows shared libraries with undefined symbols to be built.
20043 allow_undefined_flag=$lt_allow_undefined_flag
20045 # Flag that enforces no undefined symbols.
20046 no_undefined_flag=$lt_no_undefined_flag
20048 # Flag to hardcode \$libdir into a binary during linking.
20049 # This must work even if \$libdir does not exist
20050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20052 # Whether we need a single "-rpath" flag with a separated argument.
20053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20056 # DIR into the resulting binary.
20057 hardcode_direct=$hardcode_direct
20059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20060 # DIR into the resulting binary and the resulting library dependency is
20061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20062 # library is relocated.
20063 hardcode_direct_absolute=$hardcode_direct_absolute
20065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20066 # into the resulting binary.
20067 hardcode_minus_L=$hardcode_minus_L
20069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20070 # into the resulting binary.
20071 hardcode_shlibpath_var=$hardcode_shlibpath_var
20073 # Set to "yes" if building a shared library automatically hardcodes DIR
20074 # into the library and all subsequent libraries and executables linked
20076 hardcode_automatic=$hardcode_automatic
20078 # Set to yes if linker adds runtime paths of dependent libraries
20079 # to runtime path list.
20080 inherit_rpath=$inherit_rpath
20082 # Whether libtool must link a program against all its dependency libraries.
20083 link_all_deplibs=$link_all_deplibs
20085 # Set to "yes" if exported symbols are required.
20086 always_export_symbols=$always_export_symbols
20088 # The commands to list exported symbols.
20089 export_symbols_cmds=$lt_export_symbols_cmds
20091 # Symbols that should not be listed in the preloaded symbols.
20092 exclude_expsyms=$lt_exclude_expsyms
20094 # Symbols that must always be exported.
20095 include_expsyms=$lt_include_expsyms
20097 # Commands necessary for linking programs (against libraries) with templates.
20098 prelink_cmds=$lt_prelink_cmds
20100 # Commands necessary for finishing linking programs.
20101 postlink_cmds=$lt_postlink_cmds
20103 # Specify filename containing input files.
20104 file_list_spec=$lt_file_list_spec
20106 # How to hardcode a shared library path into an executable.
20107 hardcode_action=$hardcode_action
20109 # The directories searched by this compiler when creating a shared library.
20110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20112 # Dependencies to place before and after the objects being linked to
20113 # create a shared library.
20114 predep_objects=$lt_predep_objects
20115 postdep_objects=$lt_postdep_objects
20116 predeps=$lt_predeps
20117 postdeps=$lt_postdeps
20119 # The library search path used internally by the compiler when linking
20120 # a shared library.
20121 compiler_lib_search_path=$lt_compiler_lib_search_path
20123 # ### END LIBTOOL CONFIG
20129 cat <<\_LT_EOF >> "$cfgfile"
20130 # AIX sometimes has problems with the GCC collect2 program. For some
20131 # reason, if we set the COLLECT_NAMES environment variable, the problems
20132 # vanish in a puff of smoke.
20133 if test "X${COLLECT_NAMES+set}" != Xset; then
20135 export COLLECT_NAMES
20142 ltmain="$ac_aux_dir/ltmain.sh"
20145 # We use sed instead of cat because bash on DJGPP gets confused if
20146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20147 # text mode, it properly converts lines to CR/LF. This bash problem
20148 # is reportedly fixed, but why not run on old versions too?
20149 sed '$q' "$ltmain" >> "$cfgfile" \
20150 || (rm -f "$cfgfile"; exit 1)
20152 if test x"$xsi_shell" = xyes; then
20153 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20157 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20158 \ * ) func_dirname_result="${3}" ;;\
20160 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20161 && mv -f "$cfgfile.tmp" "$cfgfile" \
20162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20163 test 0 -eq $? || _lt_function_replace_fail=:
20166 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20169 \ func_basename_result="${1##*/}"\
20170 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20171 && mv -f "$cfgfile.tmp" "$cfgfile" \
20172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20173 test 0 -eq $? || _lt_function_replace_fail=:
20176 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20177 func_dirname_and_basename ()\
20180 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20181 \ * ) func_dirname_result="${3}" ;;\
20183 \ func_basename_result="${1##*/}"\
20184 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20185 && mv -f "$cfgfile.tmp" "$cfgfile" \
20186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20187 test 0 -eq $? || _lt_function_replace_fail=:
20190 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20193 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20194 \ # positional parameters, so assign one to ordinary parameter first.\
20195 \ func_stripname_result=${3}\
20196 \ func_stripname_result=${func_stripname_result#"${1}"}\
20197 \ func_stripname_result=${func_stripname_result%"${2}"}\
20198 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20199 && mv -f "$cfgfile.tmp" "$cfgfile" \
20200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20201 test 0 -eq $? || _lt_function_replace_fail=:
20204 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20205 func_split_long_opt ()\
20207 \ func_split_long_opt_name=${1%%=*}\
20208 \ func_split_long_opt_arg=${1#*=}\
20209 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20210 && mv -f "$cfgfile.tmp" "$cfgfile" \
20211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20212 test 0 -eq $? || _lt_function_replace_fail=:
20215 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20216 func_split_short_opt ()\
20218 \ func_split_short_opt_arg=${1#??}\
20219 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20220 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20221 && mv -f "$cfgfile.tmp" "$cfgfile" \
20222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20223 test 0 -eq $? || _lt_function_replace_fail=:
20226 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20230 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20231 \ *) func_lo2o_result=${1} ;;\
20233 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20234 && mv -f "$cfgfile.tmp" "$cfgfile" \
20235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20236 test 0 -eq $? || _lt_function_replace_fail=:
20239 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20242 func_xform_result=${1%.*}.lo\
20243 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20244 && mv -f "$cfgfile.tmp" "$cfgfile" \
20245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20246 test 0 -eq $? || _lt_function_replace_fail=:
20249 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20252 func_arith_result=$(( $* ))\
20253 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20254 && mv -f "$cfgfile.tmp" "$cfgfile" \
20255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20256 test 0 -eq $? || _lt_function_replace_fail=:
20259 sed -e '/^func_len ()$/,/^} # func_len /c\
20262 func_len_result=${#1}\
20263 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20264 && mv -f "$cfgfile.tmp" "$cfgfile" \
20265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20266 test 0 -eq $? || _lt_function_replace_fail=:
20270 if test x"$lt_shell_append" = xyes; then
20271 sed -e '/^func_append ()$/,/^} # func_append /c\
20274 eval "${1}+=\\${2}"\
20275 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20276 && mv -f "$cfgfile.tmp" "$cfgfile" \
20277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20278 test 0 -eq $? || _lt_function_replace_fail=:
20281 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20282 func_append_quoted ()\
20284 \ func_quote_for_eval "${2}"\
20285 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20286 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20287 && mv -f "$cfgfile.tmp" "$cfgfile" \
20288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20289 test 0 -eq $? || _lt_function_replace_fail=:
20292 # Save a `func_append' function call where possible by direct use of '+='
20293 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20294 && mv -f "$cfgfile.tmp" "$cfgfile" \
20295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20296 test 0 -eq $? || _lt_function_replace_fail=:
20298 # Save a `func_append' function call even when '+=' is not available
20299 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20300 && mv -f "$cfgfile.tmp" "$cfgfile" \
20301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20302 test 0 -eq $? || _lt_function_replace_fail=:
20305 if test x"$_lt_function_replace_fail" = x":"; then
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20307 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20311 mv -f "$cfgfile" "$ofile" ||
20312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20316 cat <<_LT_EOF >> "$ofile"
20318 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20320 # The linker used to build libraries.
20323 # How to create reloadable object files.
20324 reload_flag=$lt_reload_flag_CXX
20325 reload_cmds=$lt_reload_cmds_CXX
20327 # Commands used to build an old-style archive.
20328 old_archive_cmds=$lt_old_archive_cmds_CXX
20330 # A language specific compiler.
20331 CC=$lt_compiler_CXX
20333 # Is the compiler the GNU compiler?
20336 # Compiler flag to turn off builtin functions.
20337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20339 # Additional compiler flags for building library objects.
20340 pic_flag=$lt_lt_prog_compiler_pic_CXX
20342 # How to pass a linker flag through the compiler.
20343 wl=$lt_lt_prog_compiler_wl_CXX
20345 # Compiler flag to prevent dynamic linking.
20346 link_static_flag=$lt_lt_prog_compiler_static_CXX
20348 # Does compiler simultaneously support -c and -o options?
20349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20351 # Whether or not to add -lc for building shared libraries.
20352 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20354 # Whether or not to disallow shared libs when runtime libs are static.
20355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20357 # Compiler flag to allow reflexive dlopens.
20358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20360 # Compiler flag to generate shared objects directly from archives.
20361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20363 # Whether the compiler copes with passing no objects directly.
20364 compiler_needs_object=$lt_compiler_needs_object_CXX
20366 # Create an old-style archive from a shared archive.
20367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20369 # Create a temporary old-style archive to link instead of a shared archive.
20370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20372 # Commands used to build a shared archive.
20373 archive_cmds=$lt_archive_cmds_CXX
20374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20376 # Commands used to build a loadable module if different from building
20377 # a shared archive.
20378 module_cmds=$lt_module_cmds_CXX
20379 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20381 # Whether we are building with GNU ld or not.
20382 with_gnu_ld=$lt_with_gnu_ld_CXX
20384 # Flag that allows shared libraries with undefined symbols to be built.
20385 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20387 # Flag that enforces no undefined symbols.
20388 no_undefined_flag=$lt_no_undefined_flag_CXX
20390 # Flag to hardcode \$libdir into a binary during linking.
20391 # This must work even if \$libdir does not exist
20392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20394 # Whether we need a single "-rpath" flag with a separated argument.
20395 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20398 # DIR into the resulting binary.
20399 hardcode_direct=$hardcode_direct_CXX
20401 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20402 # DIR into the resulting binary and the resulting library dependency is
20403 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20404 # library is relocated.
20405 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20407 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20408 # into the resulting binary.
20409 hardcode_minus_L=$hardcode_minus_L_CXX
20411 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20412 # into the resulting binary.
20413 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20415 # Set to "yes" if building a shared library automatically hardcodes DIR
20416 # into the library and all subsequent libraries and executables linked
20418 hardcode_automatic=$hardcode_automatic_CXX
20420 # Set to yes if linker adds runtime paths of dependent libraries
20421 # to runtime path list.
20422 inherit_rpath=$inherit_rpath_CXX
20424 # Whether libtool must link a program against all its dependency libraries.
20425 link_all_deplibs=$link_all_deplibs_CXX
20427 # Set to "yes" if exported symbols are required.
20428 always_export_symbols=$always_export_symbols_CXX
20430 # The commands to list exported symbols.
20431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20433 # Symbols that should not be listed in the preloaded symbols.
20434 exclude_expsyms=$lt_exclude_expsyms_CXX
20436 # Symbols that must always be exported.
20437 include_expsyms=$lt_include_expsyms_CXX
20439 # Commands necessary for linking programs (against libraries) with templates.
20440 prelink_cmds=$lt_prelink_cmds_CXX
20442 # Commands necessary for finishing linking programs.
20443 postlink_cmds=$lt_postlink_cmds_CXX
20445 # Specify filename containing input files.
20446 file_list_spec=$lt_file_list_spec_CXX
20448 # How to hardcode a shared library path into an executable.
20449 hardcode_action=$hardcode_action_CXX
20451 # The directories searched by this compiler when creating a shared library.
20452 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20454 # Dependencies to place before and after the objects being linked to
20455 # create a shared library.
20456 predep_objects=$lt_predep_objects_CXX
20457 postdep_objects=$lt_postdep_objects_CXX
20458 predeps=$lt_predeps_CXX
20459 postdeps=$lt_postdeps_CXX
20461 # The library search path used internally by the compiler when linking
20462 # a shared library.
20463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20465 # ### END LIBTOOL TAG CONFIG: CXX
20476 ac_clean_files=$ac_clean_files_save
20478 test $ac_write_fail = 0 ||
20479 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20482 # configure is writing to config.log, and then calls config.status.
20483 # config.status does its own redirection, appending to config.log.
20484 # Unfortunately, on DOS this fails, as config.log is still kept open
20485 # by configure, so config.status won't be able to write to it; its
20486 # output is simply discarded. So we exec the FD to /dev/null,
20487 # effectively closing config.log, so it can be properly (re)opened and
20488 # appended to by config.status. When coming back to configure, we
20489 # need to make the FD available again.
20490 if test "$no_create" != yes; then
20492 ac_config_status_args=
20493 test "$silent" = yes &&
20494 ac_config_status_args="$ac_config_status_args --quiet"
20496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20499 # would make configure fail if this is the last instruction.
20500 $ac_cs_success || as_fn_exit 1
20502 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20504 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}