2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 # Factoring default headers for most tests.
707 ac_includes_default="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
742 ac_subst_vars='am__EXEEXT_FALSE
752 HAVE_XSLT_PROCESSOR_FALSE
753 HAVE_XSLT_PROCESSOR_TRUE
759 LIB_Q_GPSMM_ENABLE_FALSE
760 LIB_Q_GPSMM_ENABLE_TRUE
763 LIBGPSMM_ENABLE_FALSE
775 CLIENTDEBUG_ENABLE_FALSE
776 CLIENTDEBUG_ENABLE_TRUE
834 PYTHON_DISTUTILS_SCRIPTDIR
835 PYTHON_DISTUTILS_LIBDIR
873 INSTALL_STRIP_PROGRAM
915 program_transform_name
928 enable_option_checking
929 enable_dependency_tracking
968 enable_fixed_port_speed
981 ac_precious_vars='build_alias
1003 # Initialize some variables set by options.
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1017 program_transform_name=s,x,x,
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE}'
1042 infodir='${datarootdir}/info'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1055 # If the previous option needs an argument, assign it.
1056 if test -n "$ac_prev"; then
1057 eval $ac_prev=\$ac_option
1063 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068 # Accept the important Cygnus configure options, so we can diagnose typos.
1070 case $ac_dashdash$ac_option in
1074 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077 bindir=$ac_optarg ;;
1079 -build | --build | --buil | --bui | --bu)
1080 ac_prev=build_alias ;;
1081 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082 build_alias=$ac_optarg ;;
1084 -cache-file | --cache-file | --cache-fil | --cache-fi \
1085 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086 ac_prev=cache_file ;;
1087 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089 cache_file=$ac_optarg ;;
1091 --config-cache | -C)
1092 cache_file=config.cache ;;
1094 -datadir | --datadir | --datadi | --datad)
1096 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097 datadir=$ac_optarg ;;
1099 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100 | --dataroo | --dataro | --datar)
1101 ac_prev=datarootdir ;;
1102 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104 datarootdir=$ac_optarg ;;
1106 -disable-* | --disable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval enable_$ac_useropt=no ;;
1122 -docdir | --docdir | --docdi | --doc | --do)
1124 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125 docdir=$ac_optarg ;;
1127 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130 dvidir=$ac_optarg ;;
1132 -enable-* | --enable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval enable_$ac_useropt=\$ac_optarg ;;
1148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150 | --exec | --exe | --ex)
1151 ac_prev=exec_prefix ;;
1152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154 | --exec=* | --exe=* | --ex=*)
1155 exec_prefix=$ac_optarg ;;
1157 -gas | --gas | --ga | --g)
1158 # Obsolete; use --with-gas.
1161 -help | --help | --hel | --he | -h)
1162 ac_init_help=long ;;
1163 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164 ac_init_help=recursive ;;
1165 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166 ac_init_help=short ;;
1168 -host | --host | --hos | --ho)
1169 ac_prev=host_alias ;;
1170 -host=* | --host=* | --hos=* | --ho=*)
1171 host_alias=$ac_optarg ;;
1173 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177 htmldir=$ac_optarg ;;
1179 -includedir | --includedir | --includedi | --included | --include \
1180 | --includ | --inclu | --incl | --inc)
1181 ac_prev=includedir ;;
1182 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183 | --includ=* | --inclu=* | --incl=* | --inc=*)
1184 includedir=$ac_optarg ;;
1186 -infodir | --infodir | --infodi | --infod | --info | --inf)
1188 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189 infodir=$ac_optarg ;;
1191 -libdir | --libdir | --libdi | --libd)
1193 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194 libdir=$ac_optarg ;;
1196 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197 | --libexe | --libex | --libe)
1198 ac_prev=libexecdir ;;
1199 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200 | --libexe=* | --libex=* | --libe=*)
1201 libexecdir=$ac_optarg ;;
1203 -localedir | --localedir | --localedi | --localed | --locale)
1204 ac_prev=localedir ;;
1205 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206 localedir=$ac_optarg ;;
1208 -localstatedir | --localstatedir | --localstatedi | --localstated \
1209 | --localstate | --localstat | --localsta | --localst | --locals)
1210 ac_prev=localstatedir ;;
1211 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213 localstatedir=$ac_optarg ;;
1215 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218 mandir=$ac_optarg ;;
1220 -nfp | --nfp | --nf)
1221 # Obsolete; use --without-fp.
1224 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225 | --no-cr | --no-c | -n)
1228 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1232 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234 | --oldin | --oldi | --old | --ol | --o)
1235 ac_prev=oldincludedir ;;
1236 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239 oldincludedir=$ac_optarg ;;
1241 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244 prefix=$ac_optarg ;;
1246 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247 | --program-pre | --program-pr | --program-p)
1248 ac_prev=program_prefix ;;
1249 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251 program_prefix=$ac_optarg ;;
1253 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254 | --program-suf | --program-su | --program-s)
1255 ac_prev=program_suffix ;;
1256 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258 program_suffix=$ac_optarg ;;
1260 -program-transform-name | --program-transform-name \
1261 | --program-transform-nam | --program-transform-na \
1262 | --program-transform-n | --program-transform- \
1263 | --program-transform | --program-transfor \
1264 | --program-transfo | --program-transf \
1265 | --program-trans | --program-tran \
1266 | --progr-tra | --program-tr | --program-t)
1267 ac_prev=program_transform_name ;;
1268 -program-transform-name=* | --program-transform-name=* \
1269 | --program-transform-nam=* | --program-transform-na=* \
1270 | --program-transform-n=* | --program-transform-=* \
1271 | --program-transform=* | --program-transfor=* \
1272 | --program-transfo=* | --program-transf=* \
1273 | --program-trans=* | --program-tran=* \
1274 | --progr-tra=* | --program-tr=* | --program-t=*)
1275 program_transform_name=$ac_optarg ;;
1277 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280 pdfdir=$ac_optarg ;;
1282 -psdir | --psdir | --psdi | --psd | --ps)
1284 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1291 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295 sbindir=$ac_optarg ;;
1297 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299 | --sharedst | --shareds | --shared | --share | --shar \
1301 ac_prev=sharedstatedir ;;
1302 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306 sharedstatedir=$ac_optarg ;;
1308 -site | --site | --sit)
1310 -site=* | --site=* | --sit=*)
1313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316 srcdir=$ac_optarg ;;
1318 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319 | --syscon | --sysco | --sysc | --sys | --sy)
1320 ac_prev=sysconfdir ;;
1321 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323 sysconfdir=$ac_optarg ;;
1325 -target | --target | --targe | --targ | --tar | --ta | --t)
1326 ac_prev=target_alias ;;
1327 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328 target_alias=$ac_optarg ;;
1330 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1333 -version | --version | --versio | --versi | --vers | -V)
1334 ac_init_version=: ;;
1337 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340 as_fn_error $? "invalid package name: $ac_useropt"
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1350 eval with_$ac_useropt=\$ac_optarg ;;
1352 -without-* | --without-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error $? "invalid package name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1366 eval with_$ac_useropt=no ;;
1369 # Obsolete; use --with-x.
1372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373 | --x-incl | --x-inc | --x-in | --x-i)
1374 ac_prev=x_includes ;;
1375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377 x_includes=$ac_optarg ;;
1379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381 ac_prev=x_libraries ;;
1382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384 x_libraries=$ac_optarg ;;
1386 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387 Try \`$0 --help' for more information"
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 case $ac_envvar in #(
1394 '' | [0-9]* | *[!_$as_cr_alnum]* )
1395 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1397 eval $ac_envvar=\$ac_optarg
1398 export $ac_envvar ;;
1401 # FIXME: should be removed in autoconf 3.0.
1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 if test -n "$ac_prev"; then
1412 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413 as_fn_error $? "missing argument to $ac_option"
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 # Check all directory arguments for consistency.
1425 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426 datadir sysconfdir sharedstatedir localstatedir includedir \
1427 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428 libdir localedir mandir
1430 eval ac_val=\$$ac_var
1431 # Remove trailing slashes.
1434 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435 eval $ac_var=\$ac_val;;
1437 # Be sure to have absolute directory names.
1439 [\\/$]* | ?:[\\/]* ) continue;;
1440 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1450 target=$target_alias
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x; then
1454 if test "x$build_alias" = x; then
1455 cross_compiling=maybe
1456 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457 If a cross compiler is detected then cross compile mode will be used" >&2
1458 elif test "x$build_alias" != "x$host_alias"; then
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466 test "$silent" = yes && exec 6>/dev/null
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error $? "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error $? "pwd does not report name of working directory"
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var in $ac_precious_vars; do
1530 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_${ac_var}_value=\$${ac_var}
1532 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures this package to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking ...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1611 if test -n "$ac_init_help"; then
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --disable-dependency-tracking speeds up one-time build
1620 --enable-dependency-tracking do not reject slow dependency extractors
1621 --enable-shared[=PKGS] build shared libraries [default=yes]
1622 --enable-static[=PKGS] build static libraries [default=yes]
1623 --enable-fast-install[=PKGS]
1624 optimize for fast installation [default=yes]
1625 --disable-libtool-lock avoid locking (might break parallel builds)
1626 --disable-nmea disable NMEA support
1627 --disable-oncore disable Motorola OnCore chipset support
1628 --disable-sirf disable SiRF chipset support
1629 --disable-superstar2 disable SuperStarII chipset support
1630 --disable-tsip disable Trimble TSIP support
1631 --disable-fv18 disable San Jose Navigation FV-18 support
1632 --disable-tripmate disable DeLorme TripMate support
1633 --disable-earthmate disable DeLorme EarthMate Zodiac support
1634 --disable-itrax disable iTrax hardware support
1635 --disable-ashtech disable Ashtech support
1636 --disable-navcom disable Navcom support
1637 --disable-garmin disable Garmin kernel driver support
1638 --enable-garmintxt enable Garmin Simple Text support
1639 --enable-tnt disable True North Technologies support
1640 --disable-oceanserver disable OceanServer support
1641 --disable-ubx disable UBX Protocol support
1642 --disable-evermore disable EverMore binary support
1643 --disable-mtk3301 disable MTK-3301 support
1644 --disable-gpsclock disable GPSClock support
1645 --disable-rtcm104v2 disable rtcm104v2 support
1646 --disable-rtcm104v3 disable rtcm104v3 support
1647 --disable-ntrip disable NTRIP support
1648 --disable-aivdm disable Aivdm support
1649 --disable-timing disable latency timing support
1650 --disable-clientdebug disable client debugging support
1651 --disable-oldstyle disable oldstyle (pre-JSON) protocol support
1652 --enable-profiling enable profiling support
1653 --disable-ntpshm disable NTP time hinting support
1654 --disable-pps disable PPS time syncing support
1655 --enable-pps-on-cts Enable PPS pulse on CTS rather than DCD
1656 --enable-gpsd-user=username
1657 GPSD privilege revocation user
1658 --enable-gpsd-group=groupname
1659 GPSD privilege revocation group, use if /dev/ttyS0
1661 --enable-fixed-port-speed=nnn
1662 compile with fixed serial port speed
1663 --enable-bluetooth Enable support for Bluetooth GPS devices via BlueZ
1665 --enable-dbus enable DBUS support
1666 --enable-max-clients=nnn
1667 compile with limited maximum clients
1668 --enable-max-devices=nnn
1669 compile with maximum allowed devices
1670 --disable-reconfigure do not allow gpsd to change device settings
1671 --disable-controlsend do not allow gpsctl/gpsmon to change device settings
1672 --enable-raw enable raw measurement processing
1673 --enable-squelch squelch gpsd_report and gpsd_hexdump to save cpu
1674 --disable-libgpsmm don't build C++ bindings
1675 --disable-libQgpsmm don't build QT bindings
1676 --disable-ipv6 don't build IPv6 support
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1685 Some influential environment variables:
1686 CC C compiler command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1689 nonstandard directory <lib dir>
1690 LIBS libraries to pass to the linker, e.g. -l<library>
1691 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1692 you have headers in a nonstandard directory <include dir>
1694 CXX C++ compiler command
1695 CXXFLAGS C++ compiler flags
1696 CXXCPP C++ preprocessor
1697 PKG_CONFIG path to pkg-config utility
1699 directories to add to pkg-config's search path
1701 path overriding pkg-config's built-in search path
1703 C compiler flags for LIBUSB, overriding pkg-config
1704 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1706 C compiler flags for QtNetwork, overriding pkg-config
1708 linker flags for QtNetwork, overriding pkg-config
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to the package provider.
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1743 .) # We are building in place.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1777 generated by GNU Autoconf 2.67
1779 Copyright (C) 2010 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 as_fn_set_status $ac_retval
1826 } # ac_fn_c_try_compile
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if { { ac_try="$ac_cpp conftest.$ac_ext"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } > conftest.i && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval "test \"\${$3+set}\"" = set; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval "test \"\${$3+set}\"" = set; then :
1877 $as_echo_n "(cached) " >&6
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval "test \"\${$3+set}\"" = set; then :
1940 $as_echo_n "(cached) " >&6
1942 eval "$3=\$ac_header_compiler"
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 } # ac_fn_c_check_header_mongrel
1952 # ac_fn_c_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 ac_retval=$ac_status
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 as_fn_set_status $ac_retval
1994 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists and can be compiled using the include files in
1997 # INCLUDES, setting the cache variable VAR accordingly.
1998 ac_fn_c_check_header_compile ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval "test \"\${$3+set}\"" = set; then :
2004 $as_echo_n "(cached) " >&6
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 } # ac_fn_c_check_header_compile
2025 # ac_fn_c_try_link LINENO
2026 # -----------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
2032 if { { ac_try="$ac_link"
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_link") 2>conftest.err
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest$ac_exeext && {
2051 test "$cross_compiling" = yes ||
2052 $as_test_x conftest$ac_exeext
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2061 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063 # interfere with the next link command; also delete a directory that is
2064 # left behind by Apple's compiler. We do this before executing the actions.
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 as_fn_set_status $ac_retval
2069 } # ac_fn_c_try_link
2071 # ac_fn_c_check_func LINENO FUNC VAR
2072 # ----------------------------------
2073 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2074 ac_fn_c_check_func ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval "test \"\${$3+set}\"" = set; then :
2080 $as_echo_n "(cached) " >&6
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2086 #define $2 innocuous_$2
2088 /* System header to define __stub macros and hopefully few prototypes,
2089 which can conflict with char $2 (); below.
2090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2091 <limits.h> exists even on freestanding compilers. */
2094 # include <limits.h>
2096 # include <assert.h>
2101 /* Override any GCC internal prototype to avoid an error.
2102 Use char because int might match the return type of a GCC
2103 builtin and then its argument prototype would still apply. */
2108 /* The GNU C library defines this for functions which it implements
2109 to always fail with ENOSYS. Some functions are actually named
2110 something starting with __ and the normal name is an alias. */
2111 #if defined __stub_$2 || defined __stub___$2
2123 if ac_fn_c_try_link "$LINENO"; then :
2128 rm -f core conftest.err conftest.$ac_objext \
2129 conftest$ac_exeext conftest.$ac_ext
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136 } # ac_fn_c_check_func
2138 # ac_fn_cxx_try_compile LINENO
2139 # ----------------------------
2140 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_cxx_try_compile ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 rm -f conftest.$ac_objext
2145 if { { ac_try="$ac_compile"
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_compile") 2>conftest.err
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && {
2161 test -z "$ac_cxx_werror_flag" ||
2162 test ! -s conftest.err
2163 } && test -s conftest.$ac_objext; then :
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 as_fn_set_status $ac_retval
2174 } # ac_fn_cxx_try_compile
2176 # ac_fn_cxx_try_cpp LINENO
2177 # ------------------------
2178 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_cxx_try_cpp ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { { ac_try="$ac_cpp conftest.$ac_ext"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } > conftest.i && {
2198 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2199 test ! -s conftest.err
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 as_fn_set_status $ac_retval
2211 } # ac_fn_cxx_try_cpp
2213 # ac_fn_cxx_try_link LINENO
2214 # -------------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_cxx_try_link ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 rm -f conftest.$ac_objext conftest$ac_exeext
2220 if { { ac_try="$ac_link"
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>conftest.err
2229 if test -s conftest.err; then
2230 grep -v '^ *+' conftest.err >conftest.er1
2231 cat conftest.er1 >&5
2232 mv -f conftest.er1 conftest.err
2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && {
2236 test -z "$ac_cxx_werror_flag" ||
2237 test ! -s conftest.err
2238 } && test -s conftest$ac_exeext && {
2239 test "$cross_compiling" = yes ||
2240 $as_test_x conftest$ac_exeext
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2250 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2251 # interfere with the next link command; also delete a directory that is
2252 # left behind by Apple's compiler. We do this before executing the actions.
2253 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2257 } # ac_fn_cxx_try_link
2259 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2260 # --------------------------------------------
2261 # Tries to find the compile-time value of EXPR in a program that includes
2262 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2264 ac_fn_c_compute_int ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if test "$cross_compiling" = yes; then
2268 # Depending upon the size, compute the lo and hi bounds.
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) >= 0)];
2282 if ac_fn_c_try_compile "$LINENO"; then :
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 ac_hi=$ac_mid; break
2301 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2302 if test $ac_lo -le $ac_mid; then
2306 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) < 0)];
2324 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2333 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_lo=$ac_mid; break
2343 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344 if test $ac_mid -le $ac_hi; then
2348 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 # Binary search between lo and hi bounds.
2359 while test "x$ac_lo" != "x$ac_hi"; do
2360 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2374 if ac_fn_c_try_compile "$LINENO"; then :
2377 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2389 static long int longval () { return $2; }
2390 static unsigned long int ulongval () { return $2; }
2397 FILE *f = fopen ("conftest.val", "w");
2402 long int i = longval ();
2405 fprintf (f, "%ld", i);
2409 unsigned long int i = ulongval ();
2412 fprintf (f, "%lu", i);
2414 /* Do not output a trailing newline, as this causes \r\n confusion
2415 on some platforms. */
2416 return ferror (f) || fclose (f) != 0;
2422 if ac_fn_c_try_run "$LINENO"; then :
2423 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2428 conftest.$ac_objext conftest.beam conftest.$ac_ext
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 as_fn_set_status $ac_retval
2435 } # ac_fn_c_compute_int
2437 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438 # ----------------------------------------------------
2439 # Tries to find if the field MEMBER exists in type AGGR, after including
2440 # INCLUDES, setting cache variable VAR accordingly.
2441 ac_fn_c_check_member ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445 $as_echo_n "checking for $2.$3... " >&6; }
2446 if eval "test \"\${$4+set}\"" = set; then :
2447 $as_echo_n "(cached) " >&6
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2462 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2472 if (sizeof ac_aggr.$3)
2478 if ac_fn_c_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492 } # ac_fn_c_check_member
2494 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2495 # ---------------------------------------------
2496 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2498 ac_fn_c_check_decl ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 as_decl_name=`echo $2|sed 's/ *(.*//'`
2502 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2504 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2505 if eval "test \"\${$3+set}\"" = set; then :
2506 $as_echo_n "(cached) " >&6
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2514 #ifndef $as_decl_name
2516 (void) $as_decl_use;
2518 (void) $as_decl_name;
2526 if ac_fn_c_try_compile "$LINENO"; then :
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_check_decl
2539 cat >config.log <<_ACEOF
2540 This file contains any messages produced by compilers while
2541 running configure, to aid debugging if configure makes a mistake.
2543 It was created by $as_me, which was
2544 generated by GNU Autoconf 2.67. Invocation command line was
2556 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2557 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2558 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2559 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2560 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2562 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2563 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2565 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2566 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2567 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2568 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2569 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2570 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2571 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 $as_echo "PATH: $as_dir"
2596 # Keep a trace of the command line.
2597 # Strip out --no-create and --no-recursion so they do not pile up.
2598 # Strip out --silent because we don't want to record it for future runs.
2599 # Also quote any args containing shell meta-characters.
2600 # Make two passes to allow for proper duplicate-argument suppression.
2604 ac_must_keep_next=false
2610 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2612 | -silent | --silent | --silen | --sile | --sil)
2615 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2620 as_fn_append ac_configure_args1 " '$ac_arg'"
2621 if test $ac_must_keep_next = true; then
2622 ac_must_keep_next=false # Got value, back to normal.
2625 *=* | --config-cache | -C | -disable-* | --disable-* \
2626 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2627 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2628 | -with-* | --with-* | -without-* | --without-* | --x)
2629 case "$ac_configure_args0 " in
2630 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2633 -* ) ac_must_keep_next=true ;;
2636 as_fn_append ac_configure_args " '$ac_arg'"
2641 { ac_configure_args0=; unset ac_configure_args0;}
2642 { ac_configure_args1=; unset ac_configure_args1;}
2644 # When interrupted or exit'd, cleanup temporary files, and complete
2645 # config.log. We remove comments because anyway the quotes in there
2646 # would cause problems or look ugly.
2647 # WARNING: Use '\'' to represent an apostrophe within the trap.
2648 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2649 trap 'exit_status=$?
2650 # Save into config.log some information that might help in debugging.
2654 $as_echo "## ---------------- ##
2655 ## Cache variables. ##
2656 ## ---------------- ##"
2658 # The following way of writing the cache mishandles newlines in values,
2660 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2661 eval ac_val=\$$ac_var
2665 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2669 _ | IFS | as_nl) ;; #(
2670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2671 *) { eval $ac_var=; unset $ac_var;} ;;
2676 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2677 *${as_nl}ac_space=\ *)
2679 "s/'\''/'\''\\\\'\'''\''/g;
2680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2690 $as_echo "## ----------------- ##
2691 ## Output variables. ##
2692 ## ----------------- ##"
2694 for ac_var in $ac_subst_vars
2696 eval ac_val=\$$ac_var
2698 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2700 $as_echo "$ac_var='\''$ac_val'\''"
2704 if test -n "$ac_subst_files"; then
2705 $as_echo "## ------------------- ##
2706 ## File substitutions. ##
2707 ## ------------------- ##"
2709 for ac_var in $ac_subst_files
2711 eval ac_val=\$$ac_var
2713 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2715 $as_echo "$ac_var='\''$ac_val'\''"
2720 if test -s confdefs.h; then
2721 $as_echo "## ----------- ##
2728 test "$ac_signal" != 0 &&
2729 $as_echo "$as_me: caught signal $ac_signal"
2730 $as_echo "$as_me: exit $exit_status"
2732 rm -f core *.core core.conftest.* &&
2733 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2736 for ac_signal in 1 2 13 15; do
2737 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2742 rm -f -r conftest* confdefs.h
2744 $as_echo "/* confdefs.h */" > confdefs.h
2746 # Predefined preprocessor variables.
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_NAME "$PACKAGE_NAME"
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_STRING "$PACKAGE_STRING"
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_URL "$PACKAGE_URL"
2773 # Let the site file select an alternate cache file if it wants to.
2774 # Prefer an explicitly selected file to automatically selected ones.
2777 if test -n "$CONFIG_SITE"; then
2778 # We do not want a PATH search for config.site.
2779 case $CONFIG_SITE in #((
2780 -*) ac_site_file1=./$CONFIG_SITE;;
2781 */*) ac_site_file1=$CONFIG_SITE;;
2782 *) ac_site_file1=./$CONFIG_SITE;;
2784 elif test "x$prefix" != xNONE; then
2785 ac_site_file1=$prefix/share/config.site
2786 ac_site_file2=$prefix/etc/config.site
2788 ac_site_file1=$ac_default_prefix/share/config.site
2789 ac_site_file2=$ac_default_prefix/etc/config.site
2791 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2793 test "x$ac_site_file" = xNONE && continue
2794 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2796 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2797 sed 's/^/| /' "$ac_site_file" >&5
2799 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 as_fn_error $? "failed to load site script $ac_site_file
2802 See \`config.log' for more details" "$LINENO" 5 ; }
2806 if test -r "$cache_file"; then
2807 # Some versions of bash will fail to source /dev/null (special files
2808 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2809 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2811 $as_echo "$as_me: loading cache $cache_file" >&6;}
2813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2814 *) . "./$cache_file";;
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2819 $as_echo "$as_me: creating cache $cache_file" >&6;}
2823 # Check that the precious variables saved in the cache have kept the same
2825 ac_cache_corrupted=false
2826 for ac_var in $ac_precious_vars; do
2827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2828 eval ac_new_set=\$ac_env_${ac_var}_set
2829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2830 eval ac_new_val=\$ac_env_${ac_var}_value
2831 case $ac_old_set,$ac_new_set in
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2834 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2835 ac_cache_corrupted=: ;;
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2838 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2839 ac_cache_corrupted=: ;;
2842 if test "x$ac_old_val" != "x$ac_new_val"; then
2843 # differences in whitespace do not lead to failure.
2844 ac_old_val_w=`echo x $ac_old_val`
2845 ac_new_val_w=`echo x $ac_new_val`
2846 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2848 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2849 ac_cache_corrupted=:
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2852 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2853 eval $ac_var=\$ac_old_val
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2856 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2858 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2861 # Pass precious variables to config.status.
2862 if test "$ac_new_set" = set; then
2864 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2865 *) ac_arg=$ac_var=$ac_new_val ;;
2867 case " $ac_configure_args " in
2868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2869 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2873 if $ac_cache_corrupted; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2877 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2878 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2880 ## -------------------- ##
2881 ## Main body of script. ##
2882 ## -------------------- ##
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 am__api_version='1.11'
2894 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2895 if test -f "$ac_dir/install-sh"; then
2897 ac_install_sh="$ac_aux_dir/install-sh -c"
2899 elif test -f "$ac_dir/install.sh"; then
2901 ac_install_sh="$ac_aux_dir/install.sh -c"
2903 elif test -f "$ac_dir/shtool"; then
2905 ac_install_sh="$ac_aux_dir/shtool install -c"
2909 if test -z "$ac_aux_dir"; then
2910 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2913 # These three variables are undocumented and unsupported,
2914 # and are intended to be withdrawn in a future Autoconf release.
2915 # They can cause serious problems if a builder's source tree is in a directory
2916 # whose full name contains unusual characters.
2917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2922 # Find a good install program. We prefer a C program (faster),
2923 # so one script is as good as another. But avoid the broken or
2924 # incompatible versions:
2925 # SysV /etc/install, /usr/sbin/install
2926 # SunOS /usr/etc/install
2927 # IRIX /sbin/install
2929 # AmigaOS /C/install, which installs bootblocks on floppy discs
2930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2933 # OS/2's system install, which has a completely different semantic
2934 # ./install, which can be erroneously created by make from ./install.sh.
2935 # Reject install programs that cannot install multiple files.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2937 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2938 if test -z "$INSTALL"; then
2939 if test "${ac_cv_path_install+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 # Account for people who put trailing slashes in PATH elements.
2948 case $as_dir/ in #((
2949 ./ | .// | /[cC]/* | \
2950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2954 # OSF1 and SCO ODT 3.0 have their own names for install.
2955 # Don't use installbsd from OSF since it installs stuff as root
2957 for ac_prog in ginstall scoinst install; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2960 if test $ac_prog = install &&
2961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962 # AIX install. It has an incompatible calling convention.
2964 elif test $ac_prog = install &&
2965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # program-specific install script used by HP pwplus--don't use.
2969 rm -rf conftest.one conftest.two conftest.dir
2970 echo one > conftest.one
2971 echo two > conftest.two
2973 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2974 test -s conftest.one && test -s conftest.two &&
2975 test -s conftest.dir/conftest.one &&
2976 test -s conftest.dir/conftest.two
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 rm -rf conftest.one conftest.two conftest.dir
2994 if test "${ac_cv_path_install+set}" = set; then
2995 INSTALL=$ac_cv_path_install
2997 # As a last resort, use the slow shell script. Don't cache a
2998 # value for INSTALL within a source directory, because that will
2999 # break other packages using the cache if that directory is
3000 # removed, or if the value is a relative name.
3001 INSTALL=$ac_install_sh
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3005 $as_echo "$INSTALL" >&6; }
3007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3008 # It thinks the first close brace ends the variable substitution.
3009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3016 $as_echo_n "checking whether build environment is sane... " >&6; }
3019 echo timestamp > conftest.file
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3033 # Do `set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3040 if test "$*" = "X"; then
3042 set X `ls -t "$srcdir/configure" conftest.file`
3045 if test "$*" != "X $srcdir/configure conftest.file" \
3046 && test "$*" != "X conftest.file $srcdir/configure"; then
3048 # If neither matched, then we have a broken ls. This can happen
3049 # if, for instance, CONFIG_SHELL is bash and it inherits a
3050 # broken ls alias from the environment. This has actually
3051 # happened. Such a system could not be considered "sane".
3052 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3053 alias in your environment" "$LINENO" 5
3056 test "$2" = conftest.file
3062 as_fn_error $? "newly created file is older than distributed files!
3063 Check your system clock" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 $as_echo "yes" >&6; }
3067 test "$program_prefix" != NONE &&
3068 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3069 # Use a double $ so make ignores it.
3070 test "$program_suffix" != NONE &&
3071 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3072 # Double any \ or $.
3073 # By default was `s,x,x', remove it if useless.
3074 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3075 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3077 # expand $ac_aux_dir to an absolute path
3078 am_aux_dir=`cd $ac_aux_dir && pwd`
3080 if test x"${MISSING+set}" != xset; then
3083 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3085 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3088 # Use eval to expand $SHELL
3089 if eval "$MISSING --run true"; then
3090 am_missing_run="$MISSING --run "
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3094 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3097 if test x"${install_sh}" != xset; then
3100 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3102 install_sh="\${SHELL} $am_aux_dir/install-sh"
3106 # Installed binaries are usually stripped using `strip' when the user
3107 # run `make install-strip'. However `strip' might not be the right
3108 # tool to use in cross-compilation environments, therefore Automake
3109 # will honor the `STRIP' environment variable to overrule this program.
3110 if test "$cross_compiling" != no; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_STRIP+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$STRIP"; then
3120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 STRIP=$ac_cv_prog_STRIP
3140 if test -n "$STRIP"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3142 $as_echo "$STRIP" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$ac_cv_prog_STRIP"; then
3152 # Extract the first word of "strip", so it can be a program name with args.
3153 set dummy strip; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$ac_ct_STRIP"; then
3160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_STRIP="strip"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3180 if test -n "$ac_ct_STRIP"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3182 $as_echo "$ac_ct_STRIP" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3188 if test "x$ac_ct_STRIP" = x; then
3191 case $cross_compiling:$ac_tool_warned in
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3200 STRIP="$ac_cv_prog_STRIP"
3204 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3207 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3208 if test -z "$MKDIR_P"; then
3209 if test "${ac_cv_path_mkdir+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3216 test -z "$as_dir" && as_dir=.
3217 for ac_prog in mkdir gmkdir; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3220 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3221 'mkdir (GNU coreutils) '* | \
3222 'mkdir (coreutils) '* | \
3223 'mkdir (fileutils) '4.1*)
3224 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3234 test -d ./--version && rmdir ./--version
3235 if test "${ac_cv_path_mkdir+set}" = set; then
3236 MKDIR_P="$ac_cv_path_mkdir -p"
3238 # As a last resort, use the slow shell script. Don't cache a
3239 # value for MKDIR_P within a source directory, because that will
3240 # break other packages using the cache if that directory is
3241 # removed, or if the value is a relative name.
3242 MKDIR_P="$ac_install_sh -d"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3246 $as_echo "$MKDIR_P" >&6; }
3250 [\\/$]* | ?:[\\/]*) ;;
3251 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3254 for ac_prog in gawk mawk nawk awk
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_AWK+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$AWK"; then
3264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_AWK="$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test -n "$AWK"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3286 $as_echo "$AWK" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3293 test -n "$AWK" && break
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3299 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3300 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3301 $as_echo_n "(cached) " >&6
3303 cat >conftest.make <<\_ACEOF
3306 @echo '@@@%%%=$(MAKE)=@@@%%%'
3308 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3311 eval ac_cv_prog_make_${ac_make}_set=yes;;
3313 eval ac_cv_prog_make_${ac_make}_set=no;;
3317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 SET_MAKE="MAKE=${MAKE-make}"
3327 rm -rf .tst 2>/dev/null
3328 mkdir .tst 2>/dev/null
3329 if test -d .tst; then
3334 rmdir .tst 2>/dev/null
3336 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3337 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3338 # is not polluted with repeated "-I."
3339 am__isrc=' -I$(srcdir)'
3340 # test to see if srcdir already configured
3341 if test -f $srcdir/config.status; then
3342 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3346 # test whether we have cygpath
3347 if test -z "$CYGPATH_W"; then
3348 if (cygpath --version) >/dev/null 2>/dev/null; then
3349 CYGPATH_W='cygpath -w'
3356 # Define the identity of the package.
3361 cat >>confdefs.h <<_ACEOF
3362 #define PACKAGE "$PACKAGE"
3366 cat >>confdefs.h <<_ACEOF
3367 #define VERSION "$VERSION"
3370 # Some tools Automake needs.
3372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3386 # We need awk for the "check" target. The system "awk" is bad on
3388 # Always define AMTAR for backward compatibility.
3390 AMTAR=${AMTAR-"${am_missing_run}tar"}
3392 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3398 ac_config_headers="$ac_config_headers gpsd_config.h"
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 # Due to a longstanding Autoconf bug (Autoconf 2.50 to at least 2.63),
3410 # any macro that is AC_REQUIREd at any point must be AC_REQUIREd
3411 # *before* it is directly expanded. The macros below were being
3412 # directly expanded before being AC_REQUIREd, so we AC_REQUIRE them
3413 # early to prevent out-of-order expansion problems. See the threads
3415 # http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3416 # http://lists.gnu.org/archive/html/autoconf-patches/2008-12/msg00058.html
3417 # http://lists.gnu.org/archive/html/bug-autoconf/2009-01/msg00019.html
3418 # http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00247.html
3420 DEPDIR="${am__leading_dot}deps"
3422 ac_config_commands="$ac_config_commands depfiles"
3425 am_make=${MAKE-make}
3426 cat > confinc << 'END'
3428 @echo this is the am__doit target
3431 # If we don't find an include directive, just comment out the code.
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3433 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3437 # First try GNU make style include.
3438 echo "include confinc" > confmf
3439 # Ignore all kinds of additional output from `make'.
3440 case `$am_make -s -f confmf 2> /dev/null` in #(
3441 *the\ am__doit\ target*)
3447 # Now try BSD make style include.
3448 if test "$am__include" = "#"; then
3449 echo '.include "confinc"' > confmf
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target*)
3452 am__include=.include
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3461 $as_echo "$_am_result" >&6; }
3462 rm -f confinc confmf
3464 # Check whether --enable-dependency-tracking was given.
3465 if test "${enable_dependency_tracking+set}" = set; then :
3466 enableval=$enable_dependency_tracking;
3469 if test "x$enable_dependency_tracking" != xno; then
3470 am_depcomp="$ac_aux_dir/depcomp"
3473 if test "x$enable_dependency_tracking" != xno; then
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3526 if test -z "$ac_cv_prog_CC"; then
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3564 if test "x$ac_ct_CC" = x; then
3567 case $cross_compiling:$ac_tool_warned in
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected=yes
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy $ac_cv_prog_CC
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl.exe
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$CC" && break
3720 if test -z "$CC"; then
3722 for ac_prog in cl.exe
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3761 test -n "$ac_ct_CC" && break
3764 if test "x$ac_ct_CC" = x; then
3767 case $cross_compiling:$ac_tool_warned in
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789 for ac_option in --version -v -V -qversion; do
3790 { { ac_try="$ac_compiler $ac_option >&5"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 if test -s conftest.err; then
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3805 rm -f conftest.er1 conftest.err
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3827 $as_echo_n "checking whether the C compiler works... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3834 for ac_file in $ac_files
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 if { { ac_try="$ac_link_default"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3859 for ac_file in $ac_files ''
3861 test -f "$ac_file" || continue
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3866 # We found the default executable, but exeext='' is most
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3889 if test -z "$ac_file"; then :
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error 77 "C compiler cannot create executables
3898 See \`config.log' for more details" "$LINENO" 5 ; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904 $as_echo_n "checking for C compiler default output file name... " >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 ac_exeext=$ac_cv_exeext
3909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details" "$LINENO" 5 ; }
3943 rm -f conftest conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3956 FILE *f = fopen ("conftest.out", "w");
3957 return ferror (f) || fclose (f) != 0;
3963 ac_clean_files="$ac_clean_files conftest.out"
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 if test "$cross_compiling" != yes; then
3969 { { ac_try="$ac_link"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980 if { ac_try='./conftest$ac_cv_exeext'
3981 { { case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_try") 2>&5
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }; }; then
3993 if test "$cross_compiling" = maybe; then
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error $? "cannot run C compiled programs.
3999 If you meant to cross compile, use \`--host'.
4000 See \`config.log' for more details" "$LINENO" 5 ; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4005 $as_echo "$cross_compiling" >&6; }
4007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4008 ac_clean_files=$ac_clean_files_save
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4010 $as_echo_n "checking for suffix of object files... " >&6; }
4011 if test "${ac_cv_objext+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 rm -f conftest.o conftest.obj
4026 if { { ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_compile") 2>&5
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; then :
4037 for ac_file in conftest.o conftest.obj conftest.*; do
4038 test -f "$ac_file" || continue;
4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot compute suffix of object files: cannot compile
4052 See \`config.log' for more details" "$LINENO" 5 ; }
4054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4057 $as_echo "$ac_cv_objext" >&6; }
4058 OBJEXT=$ac_cv_objext
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4062 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4079 if ac_fn_c_try_compile "$LINENO"; then :
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4090 if test $ac_compiler_gnu = yes; then
4095 ac_test_CFLAGS=${CFLAGS+set}
4096 ac_save_CFLAGS=$CFLAGS
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4099 if test "${ac_cv_prog_cc_g+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4102 ac_save_c_werror_flag=$ac_c_werror_flag
4103 ac_c_werror_flag=yes
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 if ac_fn_c_try_compile "$LINENO"; then :
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159 $as_echo "$ac_cv_prog_cc_g" >&6; }
4160 if test "$ac_test_CFLAGS" = set; then
4161 CFLAGS=$ac_save_CFLAGS
4162 elif test $ac_cv_prog_cc_g = yes; then
4163 if test "$GCC" = yes; then
4169 if test "$GCC" = yes; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4180 ac_cv_prog_cc_c89=no
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4186 #include <sys/types.h>
4187 #include <sys/stat.h>
4188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4189 struct buf { int x; };
4190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191 static char *e (p, i)
4197 static char *f (char * (*g) (char **, int), char **p, ...)
4202 s = g (p, va_arg (v,int));
4207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4208 function prototypes and stuff, but not '\xHH' hex character constants.
4209 These don't provoke an error unfortunately, instead are silently treated
4210 as 'x'. The following induces an error, until -std is added to get
4211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4212 array size at least. It's necessary to write '\x00'==0 to get something
4213 that's true only with -std. */
4214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217 inside strings and character constants. */
4219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4221 int test (int i, double x);
4222 struct s1 {int (*f) (int a);};
4223 struct s2 {int (*f) (double a);};
4224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_c89=$ac_arg
4242 rm -f core conftest.err conftest.$ac_objext
4243 test "x$ac_cv_prog_cc_c89" != "xno" && break
4245 rm -f conftest.$ac_ext
4250 case "x$ac_cv_prog_cc_c89" in
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253 $as_echo "none needed" >&6; } ;;
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256 $as_echo "unsupported" >&6; } ;;
4258 CC="$CC $ac_cv_prog_cc_c89"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4262 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 depcc="$CC" am_compiler_list=
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4275 $as_echo_n "checking dependency style of $depcc... " >&6; }
4276 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4280 # We make a subdir and do the tests there. Otherwise we can end up
4281 # making bogus files that we don't know about and never remove. For
4282 # instance it was reported that on HP-UX the gcc test will end up
4283 # making a dummy file named `D' -- because `-MD' means `put the output
4286 # Copy depcomp to subdir because otherwise we won't find it if we're
4287 # using a relative directory.
4288 cp "$am_depcomp" conftest.dir
4290 # We will build objects and dependencies in a subdirectory because
4291 # it helps to detect inapplicable dependency modes. For instance
4292 # both Tru64's cc and ICC support -MD to output dependencies as a
4293 # side effect of compilation, but ICC will put the dependencies in
4294 # the current directory while Tru64 will put them in the object
4298 am_cv_CC_dependencies_compiler_type=none
4299 if test "$am_compiler_list" = ""; then
4300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4303 case " $depcc " in #(
4304 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4307 for depmode in $am_compiler_list; do
4308 # Setup a source with many dependencies, because some compilers
4309 # like to wrap large dependency lists on column 80 (with \), and
4310 # we should not choose a depcomp mode which is confused by this.
4312 # We need to recreate these files for each test, as the compiler may
4313 # overwrite some of them when testing with obscure command lines.
4314 # This happens at least with the AIX C compiler.
4316 for i in 1 2 3 4 5 6; do
4317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4319 # Solaris 8's {/usr,}/bin/sh.
4320 touch sub/conftst$i.h
4322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4324 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4325 # mode. It turns out that the SunPro C++ compiler does not properly
4326 # handle `-M -o', and we need to detect this. Also, some Intel
4327 # versions had trouble with output in subdirs
4328 am__obj=sub/conftest.${OBJEXT-o}
4329 am__minus_obj="-o $am__obj"
4332 # This depmode causes a compiler race in universal mode.
4333 test "$am__universal" = false || continue
4336 # after this tag, mechanisms are not by side-effect, so they'll
4337 # only be used when explicitly requested
4338 if test "x$enable_dependency_tracking" = xyes; then
4344 msvisualcpp | msvcmsys)
4345 # This compiler won't grok `-c -o', but also, the minuso test has
4346 # not run yet. These depmodes are late enough in the game, and
4347 # so weak that their functioning should not be impacted.
4348 am__obj=conftest.${OBJEXT-o}
4353 if depmode=$depmode \
4354 source=sub/conftest.c object=$am__obj \
4355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4356 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4357 >/dev/null 2>conftest.err &&
4358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4360 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4362 # icc doesn't choke on unknown options, it will just issue warnings
4363 # or remarks (even with -Werror). So we grep stderr for any message
4364 # that says an option was ignored or not supported.
4365 # When given -MP, icc 7.0 and 7.1 complain thusly:
4366 # icc: Command line warning: ignoring option '-M'; no argument required
4367 # The diagnosis changed in icc 8.0:
4368 # icc: Command line remark: option '-MP' not supported
4369 if (grep 'ignoring option' conftest.err ||
4370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4371 am_cv_CC_dependencies_compiler_type=$depmode
4380 am_cv_CC_dependencies_compiler_type=none
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4385 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4389 test "x$enable_dependency_tracking" != xno \
4390 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392 am__fastdepCC_FALSE='#'
4394 am__fastdepCC_TRUE='#'
4395 am__fastdepCC_FALSE=
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4406 # On Suns, sometimes $CPP names a directory.
4407 if test -n "$CPP" && test -d "$CPP"; then
4410 if test -z "$CPP"; then
4411 if test "${ac_cv_prog_CPP+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 # Double quotes because CPP needs to be expanded
4415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4418 for ac_c_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4429 # include <limits.h>
4431 # include <assert.h>
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4438 # Broken: fails on valid input.
4441 rm -f conftest.err conftest.i conftest.$ac_ext
4443 # OK, works on sane cases. Now check whether nonexistent headers
4444 # can be detected and how.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <ac_nonexistent.h>
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4450 # Broken: success on invalid input.
4453 # Passes both tests.
4457 rm -f conftest.err conftest.i conftest.$ac_ext
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.i conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then :
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4475 $as_echo "$CPP" >&6; }
4477 for ac_c_preproc_warn_flag in '' yes
4479 # Use a header file that comes with gcc, so configuring glibc
4480 # with a fresh cross-compiler works.
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 # <limits.h> exists even on freestanding compilers.
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
4484 # not just through cpp. "Syntax error" is here to catch this case.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4488 # include <limits.h>
4490 # include <assert.h>
4494 if ac_fn_c_try_cpp "$LINENO"; then :
4497 # Broken: fails on valid input.
4500 rm -f conftest.err conftest.i conftest.$ac_ext
4502 # OK, works on sane cases. Now check whether nonexistent headers
4503 # can be detected and how.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <ac_nonexistent.h>
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4509 # Broken: success on invalid input.
4512 # Passes both tests.
4516 rm -f conftest.err conftest.i conftest.$ac_ext
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520 rm -f conftest.i conftest.err conftest.$ac_ext
4521 if $ac_preproc_ok; then :
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4527 See \`config.log' for more details" "$LINENO" 5 ; }
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if test "${ac_cv_path_GREP+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4560 $as_echo_n 0123456789 >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 $ac_path_GREP_found && break 3
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if test "${ac_cv_path_EGREP+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4626 $as_echo_n 0123456789 >"conftest.in"
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 $ac_path_EGREP_found && break 3
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4671 # ACREQUIRE_BUGFIX done
4678 if test -n "$PYTHON"; then
4679 # If the user set $PYTHON, use it and don't search something else.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
4681 $as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
4683 # split strings by '.' and convert to numeric. Append some zeros
4684 # because we need at least 4 digits for the hex conversion.
4685 # map returns an iterator in Python 3.0 and a list in 2.x
4686 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
4688 # xrange is not present in Python 3.0 and range returns an iterator
4689 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4690 sys.exit(sys.hexversion < minverhex)"
4691 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4692 ($PYTHON -c "$prog") >&5 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; then :
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697 $as_echo "yes" >&6; }
4699 as_fn_error $? "too old" "$LINENO" 5
4701 am_display_PYTHON=$PYTHON
4703 # Otherwise, try each interpreter until we find one that satisfies
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
4706 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
4707 if test "${am_cv_pathless_PYTHON+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4711 for am_cv_pathless_PYTHON in python2.6 python2.5 python2.4 python none; do
4712 test "$am_cv_pathless_PYTHON" = none && break
4714 # split strings by '.' and convert to numeric. Append some zeros
4715 # because we need at least 4 digits for the hex conversion.
4716 # map returns an iterator in Python 3.0 and a list in 2.x
4717 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
4719 # xrange is not present in Python 3.0 and range returns an iterator
4720 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4721 sys.exit(sys.hexversion < minverhex)"
4722 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4723 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; then :
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
4732 $as_echo "$am_cv_pathless_PYTHON" >&6; }
4733 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4734 if test "$am_cv_pathless_PYTHON" = none; then
4737 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4738 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_PYTHON+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4746 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 PYTHON=$ac_cv_path_PYTHON
4768 if test -n "$PYTHON"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4770 $as_echo "$PYTHON" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 am_display_PYTHON=$am_cv_pathless_PYTHON
4782 if test "$PYTHON" = :; then
4783 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
4788 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
4789 if test "${am_cv_python_version+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4792 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
4795 $as_echo "$am_cv_python_version" >&6; }
4796 PYTHON_VERSION=$am_cv_python_version
4800 PYTHON_PREFIX='${prefix}'
4802 PYTHON_EXEC_PREFIX='${exec_prefix}'
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
4807 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
4808 if test "${am_cv_python_platform+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4811 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
4814 $as_echo "$am_cv_python_platform" >&6; }
4815 PYTHON_PLATFORM=$am_cv_python_platform
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
4821 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
4822 if test "${am_cv_python_pythondir+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4825 if test "x$prefix" = xNONE
4827 am_py_prefix=$ac_default_prefix
4829 am_py_prefix=$prefix
4831 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
4832 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4833 case $am_cv_python_pythondir in
4835 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
4836 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
4839 case $am_py_prefix in
4842 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
4850 $as_echo "$am_cv_python_pythondir" >&6; }
4851 pythondir=$am_cv_python_pythondir
4855 pkgpythondir=\${pythondir}/$PACKAGE
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
4859 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
4860 if test "${am_cv_python_pyexecdir+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test "x$exec_prefix" = xNONE
4865 am_py_exec_prefix=$am_py_prefix
4867 am_py_exec_prefix=$exec_prefix
4869 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
4870 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4871 case $am_cv_python_pyexecdir in
4872 $am_py_exec_prefix*)
4873 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
4874 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
4877 case $am_py_exec_prefix in
4880 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
4888 $as_echo "$am_cv_python_pyexecdir" >&6; }
4889 pyexecdir=$am_cv_python_pyexecdir
4893 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4901 if test "x$PYTHON" = "x"; then
4902 # Extract the first word of "python", so it can be a program name with args.
4903 set dummy python; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_path_PYTHON+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4911 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="none"
4933 PYTHON=$ac_cv_path_PYTHON
4934 if test -n "$PYTHON"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4936 $as_echo "$PYTHON" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4945 if test "x$PYTHON" = "xnone"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python interpreter not found, Python support disabled." >&5
4947 $as_echo "$as_me: WARNING: *** Python interpreter not found, Python support disabled." >&2;}
4951 if test "x$ac_python" = "xyes"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version and location" >&5
4953 $as_echo_n "checking Python version and location... " >&6; }
4954 PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"`
4955 PYTHON_VERSION_MAJOR=`$PYTHON -c "import sys; print('%d' % (sys.version_info[0]));"`
4956 PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print('%d' % (sys.version_info[1]));"`
4957 PYTHON_VERSION="${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX" >&5
4959 $as_echo "$PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX" >&6; }
4961 PYTHON_CFLAGS="-DHAVE_PYTHON -I$PYTHON_PREFIX/include/python$PYTHON_VERSION"
4963 # Define the directories we ask setup.py to install the
4964 # modules/extensions and scripts to. The way chosen here reproduces
4965 # the internal behaviour of distutils. Unfortunately distutils does
4966 # not export the pre-defined/configured directories, so we have to
4967 # define them on our own. For default installations of distutils the
4968 # chosen values here will match what distutils uses.
4969 # See Makefile.am to see how they're used with setup.py.
4970 PYTHON_DISTUTILS_LIBDIR=`$PYTHON -c 'import distutils.util; import sys; print ("build/lib.%s-%s" %(distutils.util.get_platform(), sys.version[0:3]))'`
4971 PYTHON_DISTUTILS_SCRIPTDIR=`$PYTHON -c 'import sys; print ("build/scripts-%s" %(sys.version[0:3], ))'`
4973 OLD_CPPFLAGS="$CPPFLAGS"
4974 OLD_CXXFLAGS="$CXXFLAGS"
4975 CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
4976 CXXFLAGS="$CXXFLAGS $PYTHON_CFLAGS"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4981 $as_echo_n "checking for ANSI C header files... " >&6; }
4982 if test "${ac_cv_header_stdc+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_cv_header_stdc=yes
5003 ac_cv_header_stdc=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 $EGREP "memchr" >/dev/null 2>&1; then :
5018 ac_cv_header_stdc=no
5024 if test $ac_cv_header_stdc = yes; then
5025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "free" >/dev/null 2>&1; then :
5035 ac_cv_header_stdc=no
5041 if test $ac_cv_header_stdc = yes; then
5042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043 if test "$cross_compiling" = yes; then :
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5050 #if ((' ' & 0x0FF) == 0x020)
5051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5054 # define ISLOWER(c) \
5055 (('a' <= (c) && (c) <= 'i') \
5056 || ('j' <= (c) && (c) <= 'r') \
5057 || ('s' <= (c) && (c) <= 'z'))
5058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066 for (i = 0; i < 256; i++)
5067 if (XOR (islower (i), ISLOWER (i))
5068 || toupper (i) != TOUPPER (i))
5073 if ac_fn_c_try_run "$LINENO"; then :
5076 ac_cv_header_stdc=no
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5079 conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5085 $as_echo "$ac_cv_header_stdc" >&6; }
5086 if test $ac_cv_header_stdc = yes; then
5088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5094 inttypes.h stdint.h unistd.h
5096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5100 cat >>confdefs.h <<_ACEOF
5101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 for ac_header in Python.h
5111 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_Python_h" = x""yes; then :
5113 cat >>confdefs.h <<_ACEOF
5114 #define HAVE_PYTHON_H 1
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python include files not found! You should install the Python development package. Python support disabled" >&5
5119 $as_echo "$as_me: WARNING: *** Python include files not found! You should install the Python development package. Python support disabled" >&2;}; ac_python=no
5124 CPPFLAGS="$OLD_CPPFLAGS"
5125 CXXFLAGS="$OLD_CXXFLAGS"
5127 if test "x$ac_python" = "xyes"; then
5133 for pylibpath in '/usr/lib' $PYTHON_PREFIX/lib $PYTHON_PREFIX/lib/python$PYTHON_VERSION/config; do
5134 eval `echo unset ac_cv_lib_python$PYTHON_VERSION'___'Py_Finalize | tr '.' '_'`
5137 LIBS="$LIBS -L$pylibpath $PYTHON_LIBS"
5138 as_ac_Lib=`$as_echo "ac_cv_lib_python$PYTHON_VERSION''_Py_Finalize" | $as_tr_sh`
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Finalize in -lpython$PYTHON_VERSION" >&5
5140 $as_echo_n "checking for Py_Finalize in -lpython$PYTHON_VERSION... " >&6; }
5141 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
5142 $as_echo_n "(cached) " >&6
5144 ac_check_lib_save_LIBS=$LIBS
5145 LIBS="-lpython$PYTHON_VERSION $PYTHON_DEPS $LIBS"
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5149 /* Override any GCC internal prototype to avoid an error.
5150 Use char because int might match the return type of a GCC
5151 builtin and then its argument prototype would still apply. */
5155 char Py_Finalize ();
5159 return Py_Finalize ();
5164 if ac_fn_c_try_link "$LINENO"; then :
5165 eval "$as_ac_Lib=yes"
5167 eval "$as_ac_Lib=no"
5169 rm -f core conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5173 eval ac_res=\$$as_ac_Lib
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5175 $as_echo "$ac_res" >&6; }
5176 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5177 PYTHON_LIBS="-L$pylibpath -lpython$PYTHON_VERSION $PYTHON_DEPS"; ac_python=yes
5181 if test "x$ac_python" = "xyes"; then
5186 if test "x$ac_python" != "xyes"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Python development libraries required" >&5
5188 $as_echo "$as_me: WARNING: *** Python development libraries required" >&2;}
5193 if test "x$python_install" = "xyes"; then
5194 pkgpythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION"/site-packages/gpsd"
5198 if test x"$ac_python" = xyes; then
5200 HAVE_PYTHON_FALSE='#'
5202 HAVE_PYTHON_TRUE='#'
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5208 $as_echo_n "checking whether ln -s works... " >&6; }
5210 if test "$LN_S" = "ln -s"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212 $as_echo "yes" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5215 $as_echo "no, using $LN_S" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5221 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5222 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 cat >conftest.make <<\_ACEOF
5228 @echo '@@@%%%=$(MAKE)=@@@%%%'
5230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5233 eval ac_cv_prog_make_${ac_make}_set=yes;;
5235 eval ac_cv_prog_make_${ac_make}_set=no;;
5239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 SET_MAKE="MAKE=${MAKE-make}"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5253 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5258 macro_version='2.2.6b'
5259 macro_revision='1.3017'
5273 ltmain="$ac_aux_dir/ltmain.sh"
5275 # Make sure we can run config.sub.
5276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5277 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5280 $as_echo_n "checking build system type... " >&6; }
5281 if test "${ac_cv_build+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 ac_build_alias=$build_alias
5285 test "x$ac_build_alias" = x &&
5286 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5287 test "x$ac_build_alias" = x &&
5288 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5289 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5290 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5294 $as_echo "$ac_cv_build" >&6; }
5295 case $ac_cv_build in
5297 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5300 ac_save_IFS=$IFS; IFS='-'
5306 # Remember, the first character of IFS is used to create $*,
5307 # except with old shells:
5310 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5314 $as_echo_n "checking host system type... " >&6; }
5315 if test "${ac_cv_host+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 if test "x$host_alias" = x; then
5319 ac_cv_host=$ac_cv_build
5321 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5327 $as_echo "$ac_cv_host" >&6; }
5330 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5333 ac_save_IFS=$IFS; IFS='-'
5339 # Remember, the first character of IFS is used to create $*,
5340 # except with old shells:
5343 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5347 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5348 if test "${ac_cv_path_SED+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5351 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5352 for ac_i in 1 2 3 4 5 6 7; do
5353 ac_script="$ac_script$as_nl$ac_script"
5355 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5356 { ac_script=; unset ac_script;}
5357 if test -z "$SED"; then
5358 ac_path_SED_found=false
5359 # Loop through the user's path and test for each of PROGNAME-LIST
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_prog in sed gsed; do
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5368 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5369 # Check for GNU ac_path_SED and select it if it is found.
5370 # Check for GNU $ac_path_SED
5371 case `"$ac_path_SED" --version 2>&1` in
5373 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5376 $as_echo_n 0123456789 >"conftest.in"
5379 cat "conftest.in" "conftest.in" >"conftest.tmp"
5380 mv "conftest.tmp" "conftest.in"
5381 cp "conftest.in" "conftest.nl"
5382 $as_echo '' >> "conftest.nl"
5383 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385 as_fn_arith $ac_count + 1 && ac_count=$as_val
5386 if test $ac_count -gt ${ac_path_SED_max-0}; then
5387 # Best one so far, save it but keep looking for a better one
5388 ac_cv_path_SED="$ac_path_SED"
5389 ac_path_SED_max=$ac_count
5391 # 10*(2^10) chars as input seems more than enough
5392 test $ac_count -gt 10 && break
5394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 $ac_path_SED_found && break 3
5402 if test -z "$ac_cv_path_SED"; then
5403 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5411 $as_echo "$ac_cv_path_SED" >&6; }
5412 SED="$ac_cv_path_SED"
5415 test -z "$SED" && SED=sed
5416 Xsed="$SED -e 1s/^X//"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5429 $as_echo_n "checking for fgrep... " >&6; }
5430 if test "${ac_cv_path_FGREP+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5433 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5434 then ac_cv_path_FGREP="$GREP -F"
5436 if test -z "$FGREP"; then
5437 ac_path_FGREP_found=false
5438 # Loop through the user's path and test for each of PROGNAME-LIST
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5443 test -z "$as_dir" && as_dir=.
5444 for ac_prog in fgrep; do
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5447 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5448 # Check for GNU ac_path_FGREP and select it if it is found.
5449 # Check for GNU $ac_path_FGREP
5450 case `"$ac_path_FGREP" --version 2>&1` in
5452 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5455 $as_echo_n 0123456789 >"conftest.in"
5458 cat "conftest.in" "conftest.in" >"conftest.tmp"
5459 mv "conftest.tmp" "conftest.in"
5460 cp "conftest.in" "conftest.nl"
5461 $as_echo 'FGREP' >> "conftest.nl"
5462 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5464 as_fn_arith $ac_count + 1 && ac_count=$as_val
5465 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5466 # Best one so far, save it but keep looking for a better one
5467 ac_cv_path_FGREP="$ac_path_FGREP"
5468 ac_path_FGREP_max=$ac_count
5470 # 10*(2^10) chars as input seems more than enough
5471 test $ac_count -gt 10 && break
5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476 $ac_path_FGREP_found && break 3
5481 if test -z "$ac_cv_path_FGREP"; then
5482 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5485 ac_cv_path_FGREP=$FGREP
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5491 $as_echo "$ac_cv_path_FGREP" >&6; }
5492 FGREP="$ac_cv_path_FGREP"
5495 test -z "$GREP" && GREP=grep
5515 # Check whether --with-gnu-ld was given.
5516 if test "${with_gnu_ld+set}" = set; then :
5517 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5523 if test "$GCC" = yes; then
5524 # Check if gcc -print-prog-name=ld gives a path.
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5526 $as_echo_n "checking for ld used by $CC... " >&6; }
5529 # gcc leaves a trailing carriage return which upsets mingw
5530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5535 # Accept absolute paths.
5537 re_direlt='/[^/][^/]*/\.\./'
5538 # Canonicalize the pathname of ld
5539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5543 test -z "$LD" && LD="$ac_prog"
5546 # If it fails, then pretend we aren't using GCC.
5550 # If it is relative, then search for the first ld in PATH.
5554 elif test "$with_gnu_ld" = yes; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5556 $as_echo_n "checking for GNU ld... " >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5559 $as_echo_n "checking for non-GNU ld... " >&6; }
5561 if test "${lt_cv_path_LD+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5564 if test -z "$LD"; then
5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566 for ac_dir in $PATH; do
5568 test -z "$ac_dir" && ac_dir=.
5569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5570 lt_cv_path_LD="$ac_dir/$ac_prog"
5571 # Check to see if the program is GNU ld. I'd rather use --version,
5572 # but apparently some variants of GNU ld only accept -v.
5573 # Break only if it was the GNU/non-GNU ld that we prefer.
5574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
5576 test "$with_gnu_ld" != no && break
5579 test "$with_gnu_ld" != yes && break
5586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5591 if test -n "$LD"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5593 $as_echo "$LD" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5598 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5601 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5605 case `$LD -v 2>&1 </dev/null` in
5606 *GNU* | *'with BFD'*)
5607 lt_cv_prog_gnu_ld=yes
5610 lt_cv_prog_gnu_ld=no
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5616 with_gnu_ld=$lt_cv_prog_gnu_ld
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5627 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5628 if test "${lt_cv_path_NM+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -n "$NM"; then
5632 # Let the user override the test.
5635 lt_nm_to_check="${ac_tool_prefix}nm"
5636 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5637 lt_nm_to_check="$lt_nm_to_check nm"
5639 for lt_tmp_nm in $lt_nm_to_check; do
5640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5641 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5643 test -z "$ac_dir" && ac_dir=.
5644 tmp_nm="$ac_dir/$lt_tmp_nm"
5645 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5646 # Check to see if the nm accepts a BSD-compat flag.
5647 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5648 # nm: unknown option "B" ignored
5649 # Tru64's nm complains that /dev/null is an invalid object file
5650 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5651 */dev/null* | *'Invalid file or object type'*)
5652 lt_cv_path_NM="$tmp_nm -B"
5656 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5658 lt_cv_path_NM="$tmp_nm -p"
5662 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5663 continue # so that we can try to find one that supports BSD flags
5672 : ${lt_cv_path_NM=no}
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5676 $as_echo "$lt_cv_path_NM" >&6; }
5677 if test "$lt_cv_path_NM" != "no"; then
5680 # Didn't find any BSD compatible name lister, look for dumpbin.
5681 if test -n "$ac_tool_prefix"; then
5682 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685 set dummy $ac_tool_prefix$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 test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5691 if test -n "$DUMPBIN"; then
5692 ac_cv_prog_DUMPBIN="$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 DUMPBIN=$ac_cv_prog_DUMPBIN
5712 if test -n "$DUMPBIN"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5714 $as_echo "$DUMPBIN" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 test -n "$DUMPBIN" && break
5724 if test -z "$DUMPBIN"; then
5725 ac_ct_DUMPBIN=$DUMPBIN
5726 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$ac_ct_DUMPBIN"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756 if test -n "$ac_ct_DUMPBIN"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5758 $as_echo "$ac_ct_DUMPBIN" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5765 test -n "$ac_ct_DUMPBIN" && break
5768 if test "x$ac_ct_DUMPBIN" = x; then
5771 case $cross_compiling:$ac_tool_warned in
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5777 DUMPBIN=$ac_ct_DUMPBIN
5782 if test "$DUMPBIN" != ":"; then
5786 test -z "$NM" && NM=nm
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5794 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5795 if test "${lt_cv_nm_interface+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5798 lt_cv_nm_interface="BSD nm"
5799 echo "int some_variable = 0;" > conftest.$ac_ext
5800 (eval echo "\"\$as_me:5800: $ac_compile\"" >&5)
5801 (eval "$ac_compile" 2>conftest.err)
5802 cat conftest.err >&5
5803 (eval echo "\"\$as_me:5803: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5804 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5805 cat conftest.err >&5
5806 (eval echo "\"\$as_me:5806: output\"" >&5)
5807 cat conftest.out >&5
5808 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5809 lt_cv_nm_interface="MS dumpbin"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5814 $as_echo "$lt_cv_nm_interface" >&6; }
5816 # find the maximum length of command line arguments
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5827 # On DJGPP, this test can blow up pretty badly due to problems in libc
5828 # (any single argument exceeding 2000 bytes causes a buffer overrun
5829 # during glob expansion). Even if it were fixed, the result of this
5830 # check would be larger than it should be.
5831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5835 # Under GNU Hurd, this test is not required because there is
5836 # no limit to the length of command line arguments.
5837 # Libtool will interpret -1 as no limit whatsoever
5838 lt_cv_sys_max_cmd_len=-1;
5841 cygwin* | mingw* | cegcc*)
5842 # On Win9x/ME, this test blows up -- it succeeds, but takes
5843 # about 5 minutes as the teststring grows exponentially.
5844 # Worse, since 9x/ME are not pre-emptively multitasking,
5845 # you end up with a "frozen" computer, even though with patience
5846 # the test eventually succeeds (with a max line length of 256k).
5847 # Instead, let's just punt: use the minimum linelength reported by
5848 # all of the supported platforms: 8192 (on NT/2K/XP).
5849 lt_cv_sys_max_cmd_len=8192;
5853 # On AmigaOS with pdksh, this test takes hours, literally.
5854 # So we just punt and use a minimum line length of 8192.
5855 lt_cv_sys_max_cmd_len=8192;
5858 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5859 # This has been around since 386BSD, at least. Likely further.
5860 if test -x /sbin/sysctl; then
5861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5862 elif test -x /usr/sbin/sysctl; then
5863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5865 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5867 # And add a safety zone
5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5873 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5874 lt_cv_sys_max_cmd_len=196608
5878 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5879 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5880 # nice to cause kernel panics so lets avoid the loop below.
5881 # First set a reasonable default.
5882 lt_cv_sys_max_cmd_len=16384
5884 if test -x /sbin/sysconfig; then
5885 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5886 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5891 lt_cv_sys_max_cmd_len=102400
5893 sysv5* | sco5v6* | sysv4.2uw2*)
5894 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5895 if test -n "$kargmax"; then
5896 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5898 lt_cv_sys_max_cmd_len=32768
5902 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5903 if test -n "$lt_cv_sys_max_cmd_len"; then
5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5907 # Make teststring a little bigger before we do anything with it.
5908 # a 1K string should be a reasonable start.
5909 for i in 1 2 3 4 5 6 7 8 ; do
5910 teststring=$teststring$teststring
5912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5913 # If test is not a shell built-in, we'll probably end up computing a
5914 # maximum length that is only half of the actual maximum length, but
5916 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5917 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5918 test $i != 17 # 1/2 MB should be enough
5921 teststring=$teststring$teststring
5923 # Only check the string length outside the loop.
5924 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5926 # Add a significant safety factor because C++ compilers can tack on
5927 # massive amounts of additional arguments before passing them to the
5928 # linker. It appears as though 1/2 is a usable value.
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5936 if test -n $lt_cv_sys_max_cmd_len ; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5941 $as_echo "none" >&6; }
5943 max_cmd_len=$lt_cv_sys_max_cmd_len
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5956 # Try some XSI features
5959 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5961 && eval 'test $(( 1 + 1 )) -eq 2 \
5962 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5965 $as_echo "$xsi_shell" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5973 && lt_shell_append=yes
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5975 $as_echo "$lt_shell_append" >&6; }
5978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5988 # test EBCDIC or ASCII
5989 case `echo X|tr X '\101'` in
5990 A) # ASCII based system
5991 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5992 lt_SP2NL='tr \040 \012'
5993 lt_NL2SP='tr \015\012 \040\040'
5995 *) # EBCDIC based system
5996 lt_SP2NL='tr \100 \n'
5997 lt_NL2SP='tr \r\n \100\100'
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6011 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 lt_cv_ld_reload_flag='-r'
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6018 reload_flag=$lt_cv_ld_reload_flag
6019 case $reload_flag in
6021 *) reload_flag=" $reload_flag" ;;
6023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6026 if test "$GCC" = yes; then
6027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6050 if test -n "$OBJDUMP"; then
6051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 OBJDUMP=$ac_cv_prog_OBJDUMP
6071 if test -n "$OBJDUMP"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6073 $as_echo "$OBJDUMP" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6081 if test -z "$ac_cv_prog_OBJDUMP"; then
6082 ac_ct_OBJDUMP=$OBJDUMP
6083 # Extract the first word of "objdump", so it can be a program name with args.
6084 set dummy objdump; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6090 if test -n "$ac_ct_OBJDUMP"; then
6091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6111 if test -n "$ac_ct_OBJDUMP"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6113 $as_echo "$ac_ct_OBJDUMP" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6119 if test "x$ac_ct_OBJDUMP" = x; then
6122 case $cross_compiling:$ac_tool_warned in
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126 ac_tool_warned=yes ;;
6128 OBJDUMP=$ac_ct_OBJDUMP
6131 OBJDUMP="$ac_cv_prog_OBJDUMP"
6134 test -z "$OBJDUMP" && OBJDUMP=objdump
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6146 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 lt_cv_file_magic_cmd='$MAGIC_CMD'
6150 lt_cv_file_magic_test_file=
6151 lt_cv_deplibs_check_method='unknown'
6152 # Need to set the preceding variable on all platforms that support
6153 # interlibrary dependencies.
6154 # 'none' -- dependencies not supported.
6155 # `unknown' -- same as none, but documents that we really don't know.
6156 # 'pass_all' -- all dependencies passed with no checks.
6157 # 'test_compile' -- check by making test program.
6158 # 'file_magic [[regex]]' -- check by looking for files in library path
6159 # which responds to the $file_magic_cmd with a given extended regex.
6160 # If you have `file' or equivalent on your system and you're not sure
6161 # whether `pass_all' will *always* work, you probably want this one.
6165 lt_cv_deplibs_check_method=pass_all
6169 lt_cv_deplibs_check_method=pass_all
6173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6174 lt_cv_file_magic_cmd='/usr/bin/file -L'
6175 lt_cv_file_magic_test_file=/shlib/libc.so
6179 # func_win32_libid is a shell function defined in ltmain.sh
6180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6181 lt_cv_file_magic_cmd='func_win32_libid'
6185 # Base MSYS/MinGW do not provide the 'file' command needed by
6186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6187 # unless we find 'file', for example because we are cross-compiling.
6188 if ( file / ) >/dev/null 2>&1; then
6189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6190 lt_cv_file_magic_cmd='func_win32_libid'
6192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6198 # use the weaker test based on 'objdump'. See mingw*.
6199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6200 lt_cv_file_magic_cmd='$OBJDUMP -f'
6203 darwin* | rhapsody*)
6204 lt_cv_deplibs_check_method=pass_all
6207 freebsd* | dragonfly*)
6208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6211 # Not sure whether the presence of OpenBSD here was a mistake.
6212 # Let's accept both of them until this is cleared up.
6213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6214 lt_cv_file_magic_cmd=/usr/bin/file
6215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6219 lt_cv_deplibs_check_method=pass_all
6224 lt_cv_deplibs_check_method=pass_all
6227 hpux10.20* | hpux11*)
6228 lt_cv_file_magic_cmd=/usr/bin/file
6231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6250 irix5* | irix6* | nonstopux*)
6252 *-32|*"-32 ") libmagic=32-bit;;
6253 *-n32|*"-n32 ") libmagic=N32;;
6254 *-64|*"-64 ") libmagic=64-bit;;
6255 *) libmagic=never-match;;
6257 lt_cv_deplibs_check_method=pass_all
6260 # This must be Linux ELF.
6261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6262 lt_cv_deplibs_check_method=pass_all
6265 netbsd* | netbsdelf*-gnu)
6266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6275 lt_cv_file_magic_cmd=/usr/bin/file
6276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6280 lt_cv_deplibs_check_method=pass_all
6284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6291 osf3* | osf4* | osf5*)
6292 lt_cv_deplibs_check_method=pass_all
6296 lt_cv_deplibs_check_method=pass_all
6300 lt_cv_deplibs_check_method=pass_all
6303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6304 lt_cv_deplibs_check_method=pass_all
6308 case $host_vendor in
6310 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]'
6311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6314 lt_cv_deplibs_check_method=pass_all
6317 lt_cv_file_magic_cmd='/bin/file'
6318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6321 lt_cv_file_magic_cmd='/bin/file'
6322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6323 lt_cv_file_magic_test_file=/lib/libc.so
6326 lt_cv_deplibs_check_method=pass_all
6329 lt_cv_deplibs_check_method=pass_all
6335 lt_cv_deplibs_check_method=pass_all
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6342 file_magic_cmd=$lt_cv_file_magic_cmd
6343 deplibs_check_method=$lt_cv_deplibs_check_method
6344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6357 if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}ar; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_AR+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6365 if test -n "$AR"; then
6366 ac_cv_prog_AR="$AR" # Let the user override the test.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_AR="${ac_tool_prefix}ar"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 if test -n "$AR"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6388 $as_echo "$AR" >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6396 if test -z "$ac_cv_prog_AR"; then
6398 # Extract the first word of "ar", so it can be a program name with args.
6399 set dummy ar; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$ac_ct_AR"; then
6406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_ac_ct_AR="ar"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6426 if test -n "$ac_ct_AR"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6428 $as_echo "$ac_ct_AR" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6434 if test "x$ac_ct_AR" = x; then
6437 case $cross_compiling:$ac_tool_warned in
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6441 ac_tool_warned=yes ;;
6449 test -z "$AR" && AR=ar
6450 test -z "$AR_FLAGS" && AR_FLAGS=cru
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}strip; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_STRIP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -n "$STRIP"; then
6471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 STRIP=$ac_cv_prog_STRIP
6491 if test -n "$STRIP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6493 $as_echo "$STRIP" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6501 if test -z "$ac_cv_prog_STRIP"; then
6503 # Extract the first word of "strip", so it can be a program name with args.
6504 set dummy strip; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_STRIP"; then
6511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_STRIP="strip"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6531 if test -n "$ac_ct_STRIP"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6533 $as_echo "$ac_ct_STRIP" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6539 if test "x$ac_ct_STRIP" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6551 STRIP="$ac_cv_prog_STRIP"
6554 test -z "$STRIP" && STRIP=:
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 if test -n "$RANLIB"; then
6570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 RANLIB=$ac_cv_prog_RANLIB
6590 if test -n "$RANLIB"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6592 $as_echo "$RANLIB" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6600 if test -z "$ac_cv_prog_RANLIB"; then
6601 ac_ct_RANLIB=$RANLIB
6602 # Extract the first word of "ranlib", so it can be a program name with args.
6603 set dummy ranlib; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
6609 if test -n "$ac_ct_RANLIB"; then
6610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_RANLIB="ranlib"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6630 if test -n "$ac_ct_RANLIB"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6632 $as_echo "$ac_ct_RANLIB" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6638 if test "x$ac_ct_RANLIB" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6647 RANLIB=$ac_ct_RANLIB
6650 RANLIB="$ac_cv_prog_RANLIB"
6653 test -z "$RANLIB" && RANLIB=:
6660 # Determine commands to create old-style static archives.
6661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6662 old_postinstall_cmds='chmod 644 $oldlib'
6663 old_postuninstall_cmds=
6665 if test -n "$RANLIB"; then
6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6710 # If no C compiler was specified, use CC.
6713 # If no C compiler flags were specified, use CFLAGS.
6714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6716 # Allow CC to be a program name with arguments.
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736 # Define system-specific variables.
6741 cygwin* | mingw* | pw32* | cegcc*)
6742 symcode='[ABCDGISTW]'
6745 if test "$host_cpu" = ia64; then
6746 symcode='[ABCDEGRST]'
6750 symcode='[BCDEGRST]'
6753 symcode='[BCDEGQRST]'
6764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6772 # If we're using GNU nm, then use its standard symbol codes.
6773 case `$NM -V 2>&1` in
6774 *GNU* | *'with BFD'*)
6775 symcode='[ABCDGIRSTW]' ;;
6778 # Transform an extracted symbol line into a proper C declaration.
6779 # Some systems (esp. on ia64) link data and code symbols differently,
6780 # so use this general approach.
6781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6783 # Transform an extracted symbol line into symbol name and symbol address
6784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6785 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'"
6787 # Handle CRLF in mingw tool chain
6791 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6795 # Try without a prefix underscore, then with it.
6796 for ac_symprfx in "" "_"; do
6798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6799 symxfrm="\\1 $ac_symprfx\\2 \\2"
6801 # Write the raw and C identifiers.
6802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6803 # Fake it for dumpbin and say T for any non-static function
6804 # and D for any global variable.
6805 # Also find C++ and __fastcall symbols from MSVC++,
6806 # which start with @ or ?.
6807 lt_cv_sys_global_symbol_pipe="$AWK '"\
6808 " {last_section=section; section=\$ 3};"\
6809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 " \$ 0!~/External *\|/{next};"\
6811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 " {if(hide[section]) next};"\
6813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 " ' prfx=^$ac_symprfx"
6819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6822 # Check to see that the pipe works correctly.
6826 cat > conftest.$ac_ext <<_LT_EOF
6831 void nm_test_func(void);
6832 void nm_test_func(void){}
6836 int main(){nm_test_var='a';nm_test_func();return(0);}
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 # Now try to grab the symbols.
6846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6847 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850 test $ac_status = 0; } && test -s "$nlist"; then
6851 # Try sorting and uniquifying the output.
6852 if sort "$nlist" | uniq > "$nlist"T; then
6853 mv -f "$nlist"T "$nlist"
6858 # Make sure that we snagged all the symbols we need.
6859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6861 cat <<_LT_EOF > conftest.$ac_ext
6867 # Now generate the symbol file.
6868 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6870 cat <<_LT_EOF >> conftest.$ac_ext
6872 /* The mapping between symbol names and symbols. */
6877 lt__PROGRAM__LTX_preloaded_symbols[] =
6879 { "@PROGRAM@", (void *) 0 },
6881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6882 cat <<\_LT_EOF >> conftest.$ac_ext
6886 /* This works around a problem in FreeBSD linker */
6887 #ifdef FREEBSD_WORKAROUND
6888 static const void *lt_preloaded_setup() {
6889 return lt__PROGRAM__LTX_preloaded_symbols;
6897 # Now try linking the two files.
6898 mv conftest.$ac_objext conftstm.$ac_objext
6899 lt_save_LIBS="$LIBS"
6900 lt_save_CFLAGS="$CFLAGS"
6901 LIBS="conftstm.$ac_objext"
6902 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6904 (eval $ac_link) 2>&5
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6910 LIBS="$lt_save_LIBS"
6911 CFLAGS="$lt_save_CFLAGS"
6913 echo "cannot find nm_test_func in $nlist" >&5
6916 echo "cannot find nm_test_var in $nlist" >&5
6919 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6922 echo "$progname: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6925 rm -rf conftest* conftst*
6927 # Do not use the global_symbol_pipe unless it works.
6928 if test "$pipe_works" = yes; then
6931 lt_cv_sys_global_symbol_pipe=
6937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6938 lt_cv_sys_global_symbol_to_cdecl=
6940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6942 $as_echo "failed" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6945 $as_echo "ok" >&6; }
6969 # Check whether --enable-libtool-lock was given.
6970 if test "${enable_libtool_lock+set}" = set; then :
6971 enableval=$enable_libtool_lock;
6974 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6976 # Some flags need to be propagated to the compiler or linker for good
6980 # Find out which ABI we are using.
6981 echo 'int i;' > conftest.$ac_ext
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983 (eval $ac_compile) 2>&5
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; }; then
6987 case `/usr/bin/file conftest.$ac_objext` in
6999 # Find out which ABI we are using.
7000 echo '#line 7000 "configure"' > conftest.$ac_ext
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 if test "$lt_cv_prog_gnu_ld" = yes; then
7007 case `/usr/bin/file conftest.$ac_objext` in
7009 LD="${LD-ld} -melf32bsmip"
7012 LD="${LD-ld} -melf32bmipn32"
7015 LD="${LD-ld} -melf64bmip"
7019 case `/usr/bin/file conftest.$ac_objext` in
7035 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7036 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7037 # Find out which ABI we are using.
7038 echo 'int i;' > conftest.$ac_ext
7039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040 (eval $ac_compile) 2>&5
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }; then
7044 case `/usr/bin/file conftest.o` in
7047 x86_64-*kfreebsd*-gnu)
7048 LD="${LD-ld} -m elf_i386_fbsd"
7051 LD="${LD-ld} -m elf_i386"
7053 ppc64-*linux*|powerpc64-*linux*)
7054 LD="${LD-ld} -m elf32ppclinux"
7057 LD="${LD-ld} -m elf_s390"
7060 LD="${LD-ld} -m elf32_sparc"
7066 x86_64-*kfreebsd*-gnu)
7067 LD="${LD-ld} -m elf_x86_64_fbsd"
7070 LD="${LD-ld} -m elf_x86_64"
7072 ppc*-*linux*|powerpc*-*linux*)
7073 LD="${LD-ld} -m elf64ppc"
7075 s390*-*linux*|s390*-*tpf*)
7076 LD="${LD-ld} -m elf64_s390"
7079 LD="${LD-ld} -m elf64_sparc"
7089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7090 SAVE_CFLAGS="$CFLAGS"
7091 CFLAGS="$CFLAGS -belf"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7093 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7094 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7098 ac_cpp='$CPP $CPPFLAGS'
7099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7114 if ac_fn_c_try_link "$LINENO"; then :
7115 lt_cv_cc_needs_belf=yes
7117 lt_cv_cc_needs_belf=no
7119 rm -f core conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7129 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7130 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7132 CFLAGS="$SAVE_CFLAGS"
7136 # Find out which ABI we are using.
7137 echo 'int i;' > conftest.$ac_ext
7138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7139 (eval $ac_compile) 2>&5
7141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142 test $ac_status = 0; }; then
7143 case `/usr/bin/file conftest.o` in
7145 case $lt_cv_prog_gnu_ld in
7146 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7160 need_locks="$enable_libtool_lock"
7164 rhapsody* | darwin*)
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$DSYMUTIL"; then
7174 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194 if test -n "$DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7196 $as_echo "$DSYMUTIL" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7204 if test -z "$ac_cv_prog_DSYMUTIL"; then
7205 ac_ct_DSYMUTIL=$DSYMUTIL
7206 # Extract the first word of "dsymutil", so it can be a program name with args.
7207 set dummy dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$ac_ct_DSYMUTIL"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234 if test -n "$ac_ct_DSYMUTIL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7242 if test "x$ac_ct_DSYMUTIL" = x; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7251 DSYMUTIL=$ac_ct_DSYMUTIL
7254 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$NMEDIT"; then
7266 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 NMEDIT=$ac_cv_prog_NMEDIT
7286 if test -n "$NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7288 $as_echo "$NMEDIT" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7296 if test -z "$ac_cv_prog_NMEDIT"; then
7297 ac_ct_NMEDIT=$NMEDIT
7298 # Extract the first word of "nmedit", so it can be a program name with args.
7299 set dummy nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7305 if test -n "$ac_ct_NMEDIT"; then
7306 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326 if test -n "$ac_ct_NMEDIT"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7328 $as_echo "$ac_ct_NMEDIT" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7334 if test "x$ac_ct_NMEDIT" = x; then
7337 case $cross_compiling:$ac_tool_warned in
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7343 NMEDIT=$ac_ct_NMEDIT
7346 NMEDIT="$ac_cv_prog_NMEDIT"
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_LIPO+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$LIPO"; then
7358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 LIPO=$ac_cv_prog_LIPO
7378 if test -n "$LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7380 $as_echo "$LIPO" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7388 if test -z "$ac_cv_prog_LIPO"; then
7390 # Extract the first word of "lipo", so it can be a program name with args.
7391 set dummy lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$ac_ct_LIPO"; then
7398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_ac_ct_LIPO="lipo"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7418 if test -n "$ac_ct_LIPO"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7420 $as_echo "$ac_ct_LIPO" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 if test "x$ac_ct_LIPO" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7438 LIPO="$ac_cv_prog_LIPO"
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$OTOOL"; then
7450 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 OTOOL=$ac_cv_prog_OTOOL
7470 if test -n "$OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7472 $as_echo "$OTOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7480 if test -z "$ac_cv_prog_OTOOL"; then
7482 # Extract the first word of "otool", so it can be a program name with args.
7483 set dummy otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 if test -n "$ac_ct_OTOOL"; then
7490 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_prog_ac_ct_OTOOL="otool"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7510 if test -n "$ac_ct_OTOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7512 $as_echo "$ac_ct_OTOOL" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 if test "x$ac_ct_OTOOL" = x; then
7521 case $cross_compiling:$ac_tool_warned in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7530 OTOOL="$ac_cv_prog_OTOOL"
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$OTOOL64"; then
7542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 OTOOL64=$ac_cv_prog_OTOOL64
7562 if test -n "$OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7564 $as_echo "$OTOOL64" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7572 if test -z "$ac_cv_prog_OTOOL64"; then
7573 ac_ct_OTOOL64=$OTOOL64
7574 # Extract the first word of "otool64", so it can be a program name with args.
7575 set dummy otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$ac_ct_OTOOL64"; then
7582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_ac_ct_OTOOL64="otool64"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7602 if test -n "$ac_ct_OTOOL64"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7604 $as_echo "$ac_ct_OTOOL64" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7610 if test "x$ac_ct_OTOOL64" = x; then
7613 case $cross_compiling:$ac_tool_warned in
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7619 OTOOL64=$ac_ct_OTOOL64
7622 OTOOL64="$ac_cv_prog_OTOOL64"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7652 $as_echo_n "checking for -single_module linker flag... " >&6; }
7653 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 lt_cv_apple_cc_single_mod=no
7657 if test -z "${LT_MULTI_MODULE}"; then
7658 # By default we will add the -single_module flag. You can override
7659 # by either setting the environment variable LT_MULTI_MODULE
7660 # non-empty at configure time, or by adding -multi_module to the
7662 rm -rf libconftest.dylib*
7663 echo "int foo(void){return 1;}" > conftest.c
7664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7665 -dynamiclib -Wl,-single_module conftest.c" >&5
7666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7669 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7670 lt_cv_apple_cc_single_mod=yes
7672 cat conftest.err >&5
7674 rm -rf libconftest.dylib*
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7681 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7682 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 lt_cv_ld_exported_symbols_list=no
7686 save_LDFLAGS=$LDFLAGS
7687 echo "_main" > conftest.sym
7688 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7700 if ac_fn_c_try_link "$LINENO"; then :
7701 lt_cv_ld_exported_symbols_list=yes
7703 lt_cv_ld_exported_symbols_list=no
7705 rm -f core conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7707 LDFLAGS="$save_LDFLAGS"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7711 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7713 rhapsody* | darwin1.[012])
7714 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7716 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7717 darwin*) # darwin 5.x on
7718 # if running on 10.5 or later, the deployment target defaults
7719 # to the OS version, if on x86, and 10.4, the deployment
7720 # target defaults to 10.4. Don't you love it?
7721 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7722 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7725 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7732 _lt_dar_single_mod='$single_module'
7734 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7735 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7737 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7739 if test "$DSYMUTIL" != ":"; then
7740 _lt_dsymutil='~$DSYMUTIL $lib || :'
7747 for ac_header in dlfcn.h
7749 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7751 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DLFCN_H 1
7772 # Check whether --enable-shared was given.
7773 if test "${enable_shared+set}" = set; then :
7774 enableval=$enable_shared; p=${PACKAGE-default}
7776 yes) enable_shared=yes ;;
7777 no) enable_shared=no ;;
7780 # Look at the argument we got. We use all the common list separators.
7781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7782 for pkg in $enableval; do
7784 if test "X$pkg" = "X$p"; then
7803 # Check whether --enable-static was given.
7804 if test "${enable_static+set}" = set; then :
7805 enableval=$enable_static; p=${PACKAGE-default}
7807 yes) enable_static=yes ;;
7808 no) enable_static=no ;;
7811 # Look at the argument we got. We use all the common list separators.
7812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7813 for pkg in $enableval; do
7815 if test "X$pkg" = "X$p"; then
7835 # Check whether --with-pic was given.
7836 if test "${with_pic+set}" = set; then :
7837 withval=$with_pic; pic_mode="$withval"
7843 test -z "$pic_mode" && pic_mode=default
7851 # Check whether --enable-fast-install was given.
7852 if test "${enable_fast_install+set}" = set; then :
7853 enableval=$enable_fast_install; p=${PACKAGE-default}
7855 yes) enable_fast_install=yes ;;
7856 no) enable_fast_install=no ;;
7858 enable_fast_install=no
7859 # Look at the argument we got. We use all the common list separators.
7860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7861 for pkg in $enableval; do
7863 if test "X$pkg" = "X$p"; then
7864 enable_fast_install=yes
7871 enable_fast_install=yes
7884 # This can be used to rebuild libtool when needed
7885 LIBTOOL_DEPS="$ltmain"
7887 # Always use our own libtool.
7888 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7914 test -z "$LN_S" && LN_S="ln -s"
7929 if test -n "${ZSH_VERSION+set}" ; then
7930 setopt NO_GLOB_SUBST
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7934 $as_echo_n "checking for objdir... " >&6; }
7935 if test "${lt_cv_objdir+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 rm -f .libs 2>/dev/null
7939 mkdir .libs 2>/dev/null
7940 if test -d .libs; then
7943 # MS-DOS does not allow filenames that begin with a dot.
7946 rmdir .libs 2>/dev/null
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7949 $as_echo "$lt_cv_objdir" >&6; }
7950 objdir=$lt_cv_objdir
7956 cat >>confdefs.h <<_ACEOF
7957 #define LT_OBJDIR "$lt_cv_objdir/"
7978 # AIX sometimes has problems with the GCC collect2 program. For some
7979 # reason, if we set the COLLECT_NAMES environment variable, the problems
7980 # vanish in a puff of smoke.
7981 if test "X${COLLECT_NAMES+set}" != Xset; then
7983 export COLLECT_NAMES
7988 # Sed substitution that helps us do robust quoting. It backslashifies
7989 # metacharacters that are still active within double-quoted strings.
7990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7992 # Same as above, but do not quote variable references.
7993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7995 # Sed substitution to delay expansion of an escaped shell variable in a
7996 # double_quote_subst'ed string.
7997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7999 # Sed substitution to delay expansion of an escaped single quote.
8000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8002 # Sed substitution to avoid accidental globbing in evaled expressions
8003 no_glob_subst='s/\*/\\\*/g'
8007 can_build_shared=yes
8009 # All known linkers require a `.a' archive for static linking (except MSVC,
8010 # which needs '.lib').
8013 with_gnu_ld="$lt_cv_prog_gnu_ld"
8016 old_CFLAGS="$CFLAGS"
8018 # Set sane defaults for various variables
8019 test -z "$CC" && CC=cc
8020 test -z "$LTCC" && LTCC=$CC
8021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8022 test -z "$LD" && LD=ld
8023 test -z "$ac_objext" && ac_objext=o
8025 for cc_temp in $compiler""; do
8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8036 # Only perform the check for file, if the check method requires it
8037 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8038 case $deplibs_check_method in
8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8042 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8051 lt_save_MAGIC_CMD="$MAGIC_CMD"
8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8054 for ac_dir in $ac_dummy; do
8056 test -z "$ac_dir" && ac_dir=.
8057 if test -f $ac_dir/${ac_tool_prefix}file; then
8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8059 if test -n "$file_magic_test_file"; then
8060 case $deplibs_check_method in
8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8065 $EGREP "$file_magic_regex" > /dev/null; then
8070 *** Warning: the command libtool uses to detect shared libraries,
8071 *** $file_magic_cmd, produces output that libtool cannot recognize.
8072 *** The result is that libtool may fail to recognize shared libraries
8073 *** as such. This will affect the creation of libtool libraries that
8074 *** depend on shared libraries, but programs linked with such libtool
8075 *** libraries will work regardless of this problem. Nevertheless, you
8076 *** may want to report the problem to your system manager and/or to
8077 *** bug-libtool@gnu.org
8087 MAGIC_CMD="$lt_save_MAGIC_CMD"
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if test -n "$MAGIC_CMD"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8095 $as_echo "$MAGIC_CMD" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8105 if test -z "$lt_cv_path_MAGIC_CMD"; then
8106 if test -n "$ac_tool_prefix"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8108 $as_echo_n "checking for file... " >&6; }
8109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8117 lt_save_MAGIC_CMD="$MAGIC_CMD"
8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8120 for ac_dir in $ac_dummy; do
8122 test -z "$ac_dir" && ac_dir=.
8123 if test -f $ac_dir/file; then
8124 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8125 if test -n "$file_magic_test_file"; then
8126 case $deplibs_check_method in
8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8131 $EGREP "$file_magic_regex" > /dev/null; then
8136 *** Warning: the command libtool uses to detect shared libraries,
8137 *** $file_magic_cmd, produces output that libtool cannot recognize.
8138 *** The result is that libtool may fail to recognize shared libraries
8139 *** as such. This will affect the creation of libtool libraries that
8140 *** depend on shared libraries, but programs linked with such libtool
8141 *** libraries will work regardless of this problem. Nevertheless, you
8142 *** may want to report the problem to your system manager and/or to
8143 *** bug-libtool@gnu.org
8153 MAGIC_CMD="$lt_save_MAGIC_CMD"
8158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8159 if test -n "$MAGIC_CMD"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8161 $as_echo "$MAGIC_CMD" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8177 # Use C for the default configuration in the libtool script
8181 ac_cpp='$CPP $CPPFLAGS'
8182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187 # Source file extension for C test sources.
8190 # Object file extension for compiled C test sources.
8194 # Code to be used in simple compile tests
8195 lt_simple_compile_test_code="int some_variable = 0;"
8197 # Code to be used in simple link tests
8198 lt_simple_link_test_code='int main(){return(0);}'
8206 # If no C compiler was specified, use CC.
8209 # If no C compiler flags were specified, use CFLAGS.
8210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8212 # Allow CC to be a program name with arguments.
8215 # Save the default compiler, since it gets overwritten when the other
8216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8217 compiler_DEFAULT=$CC
8219 # save warnings/boilerplate of simple test code
8220 ac_outfile=conftest.$ac_objext
8221 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8223 _lt_compiler_boilerplate=`cat conftest.err`
8226 ac_outfile=conftest.$ac_objext
8227 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229 _lt_linker_boilerplate=`cat conftest.err`
8233 if test -n "$compiler"; then
8235 lt_prog_compiler_no_builtin_flag=
8237 if test "$GCC" = yes; then
8238 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8245 lt_cv_prog_compiler_rtti_exceptions=no
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="-fno-rtti -fno-exceptions"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:8258: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>conftest.err)
8261 cat conftest.err >&5
8262 echo "$as_me:8262: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
8266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_rtti_exceptions=yes
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8278 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8291 lt_prog_compiler_wl=
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_static=
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8298 if test "$GCC" = yes; then
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_static='-static'
8304 # All AIX code is PIC.
8305 if test "$host_cpu" = ia64; then
8306 # AIX 5 now supports IA64 processor
8307 lt_prog_compiler_static='-Bstatic'
8314 # see comment about AmigaOS4 .so support
8315 lt_prog_compiler_pic='-fPIC'
8318 # FIXME: we need at least 68020 code to build shared libraries, but
8319 # adding the `-m68020' flag to GCC prevents building anything better,
8321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8327 # PIC is the default for these OSes.
8330 mingw* | cygwin* | pw32* | os2* | cegcc*)
8331 # This hack is so that the source file can tell whether it is being
8332 # built for inclusion in a dll (and should export symbols for example).
8333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8334 # (--disable-auto-import) libraries
8335 lt_prog_compiler_pic='-DDLL_EXPORT'
8338 darwin* | rhapsody*)
8339 # PIC is the default on this platform
8340 # Common symbols not allowed in MH_DYLIB files
8341 lt_prog_compiler_pic='-fno-common'
8345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8347 # sets the default TLS model and affects inlining.
8353 lt_prog_compiler_pic='-fPIC'
8359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8360 # Instead, we relocate shared libraries at runtime.
8364 # Just because we use GCC doesn't mean we suddenly get shared libraries
8365 # on systems that don't support them.
8366 lt_prog_compiler_can_build_shared=no
8371 # QNX uses GNU C++, but need to define -shared option too, otherwise
8373 lt_prog_compiler_pic='-fPIC -shared'
8377 if test -d /usr/nec; then
8378 lt_prog_compiler_pic=-Kconform_pic
8383 lt_prog_compiler_pic='-fPIC'
8387 # PORTME Check for flag to pass linker flags through the system compiler.
8390 lt_prog_compiler_wl='-Wl,'
8391 if test "$host_cpu" = ia64; then
8392 # AIX 5 now supports IA64 processor
8393 lt_prog_compiler_static='-Bstatic'
8395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8399 mingw* | cygwin* | pw32* | os2* | cegcc*)
8400 # This hack is so that the source file can tell whether it is being
8401 # built for inclusion in a dll (and should export symbols for example).
8402 lt_prog_compiler_pic='-DDLL_EXPORT'
8405 hpux9* | hpux10* | hpux11*)
8406 lt_prog_compiler_wl='-Wl,'
8407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8414 lt_prog_compiler_pic='+Z'
8417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418 lt_prog_compiler_static='${wl}-a ${wl}archive'
8421 irix5* | irix6* | nonstopux*)
8422 lt_prog_compiler_wl='-Wl,'
8423 # PIC (with -KPIC) is the default.
8424 lt_prog_compiler_static='-non_shared'
8427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428 case $cc_basename in
8429 # old Intel for x86_64 which still supported -KPIC.
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-static'
8435 # icc used to be incompatible with GCC.
8436 # ICC 10 doesn't accept -KPIC any more.
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_pic='-fPIC'
8440 lt_prog_compiler_static='-static'
8442 # Lahey Fortran 8.1.
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='--shared'
8446 lt_prog_compiler_static='--static'
8448 pgcc* | pgf77* | pgf90* | pgf95*)
8449 # Portland Group compilers (*not* the Pentium gcc compiler,
8450 # which looks to be a dead project)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='-fpic'
8453 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl='-Wl,'
8457 # All Alpha code is PIC.
8458 lt_prog_compiler_static='-non_shared'
8461 # IBM XL C 8.0/Fortran 10.1 on PPC
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-qpic'
8464 lt_prog_compiler_static='-qstaticlink'
8467 case `$CC -V 2>&1 | sed 5q` in
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_wl='-Wl,'
8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl=''
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8493 lt_prog_compiler_pic='-fPIC -shared'
8496 osf3* | osf4* | osf5*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # All OSF/1 code is PIC.
8499 lt_prog_compiler_static='-non_shared'
8503 lt_prog_compiler_static='-non_shared'
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 case $cc_basename in
8511 lt_prog_compiler_wl='-Qoption ld ';;
8513 lt_prog_compiler_wl='-Wl,';;
8518 lt_prog_compiler_wl='-Qoption ld '
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8523 sysv4 | sysv4.2uw2* | sysv4.3*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8530 if test -d /usr/nec ;then
8531 lt_prog_compiler_pic='-Kconform_pic'
8532 lt_prog_compiler_static='-Bstatic'
8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_can_build_shared=no
8548 lt_prog_compiler_pic='-pic'
8549 lt_prog_compiler_static='-Bstatic'
8553 lt_prog_compiler_can_build_shared=no
8559 # For platforms which do not support PIC, -DPIC is meaningless:
8561 lt_prog_compiler_pic=
8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8568 $as_echo "$lt_prog_compiler_pic" >&6; }
8576 # Check to make sure the PIC flag actually works.
8578 if test -n "$lt_prog_compiler_pic"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8581 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8584 lt_cv_prog_compiler_pic_works=no
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 # The option is referenced via a variable to avoid confusing sed.
8593 lt_compile=`echo "$ac_compile" | $SED \
8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596 -e 's:$: $lt_compiler_flag:'`
8597 (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598 (eval "$lt_compile" 2>conftest.err)
8600 cat conftest.err >&5
8601 echo "$as_me:8601: \$? = $ac_status" >&5
8602 if (exit $ac_status) && test -s "$ac_outfile"; then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings other than the usual output.
8605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_pic_works=yes
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8617 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8618 case $lt_prog_compiler_pic in
8620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_can_build_shared=no
8635 # Check to make sure the static flag actually works.
8637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8640 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 lt_cv_prog_compiler_static_works=no
8644 save_LDFLAGS="$LDFLAGS"
8645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8648 # The linker can only warn and ignore the option if not recognized
8649 # So say no if there are warnings
8650 if test -s conftest.err; then
8651 # Append any errors to the config.log.
8652 cat conftest.err 1>&5
8653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8655 if diff conftest.exp conftest.er2 >/dev/null; then
8656 lt_cv_prog_compiler_static_works=yes
8659 lt_cv_prog_compiler_static_works=yes
8663 LDFLAGS="$save_LDFLAGS"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8669 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8672 lt_prog_compiler_static=
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8686 lt_cv_prog_compiler_c_o=no
8687 $RM -r conftest 2>/dev/null
8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8693 lt_compiler_flag="-o out/conftest2.$ac_objext"
8694 # Insert the option either (1) after the last *FLAGS variable, or
8695 # (2) before a word containing "conftest.", or (3) at the end.
8696 # Note that $ac_compile itself does not contain backslashes and begins
8697 # with a dollar sign (not a hyphen), so the echo should work correctly.
8698 lt_compile=`echo "$ac_compile" | $SED \
8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701 -e 's:$: $lt_compiler_flag:'`
8702 (eval echo "\"\$as_me:8702: $lt_compile\"" >&5)
8703 (eval "$lt_compile" 2>out/conftest.err)
8705 cat out/conftest.err >&5
8706 echo "$as_me:8706: \$? = $ac_status" >&5
8707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8709 # The compiler can only warn and ignore the option if not recognized
8710 # So say no if there are warnings
8711 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8714 lt_cv_prog_compiler_c_o=yes
8719 # SGI C++ compiler will create directory out/ii_files/ for
8720 # template instantiation
8721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8722 $RM out/* && rmdir out
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8738 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8741 lt_cv_prog_compiler_c_o=no
8742 $RM -r conftest 2>/dev/null
8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748 lt_compiler_flag="-o out/conftest2.$ac_objext"
8749 # Insert the option either (1) after the last *FLAGS variable, or
8750 # (2) before a word containing "conftest.", or (3) at the end.
8751 # Note that $ac_compile itself does not contain backslashes and begins
8752 # with a dollar sign (not a hyphen), so the echo should work correctly.
8753 lt_compile=`echo "$ac_compile" | $SED \
8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756 -e 's:$: $lt_compiler_flag:'`
8757 (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758 (eval "$lt_compile" 2>out/conftest.err)
8760 cat out/conftest.err >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8764 # The compiler can only warn and ignore the option if not recognized
8765 # So say no if there are warnings
8766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_c_o=yes
8774 # SGI C++ compiler will create directory out/ii_files/ for
8775 # template instantiation
8776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8777 $RM out/* && rmdir out
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8789 hard_links="nottested"
8790 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8791 # do not overwrite the value of need_locks provided by the user
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8793 $as_echo_n "checking if we can lock with hard links... " >&6; }
8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 ln conftest.a conftest.b 2>&5 || hard_links=no
8799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8801 $as_echo "$hard_links" >&6; }
8802 if test "$hard_links" = no; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8820 allow_undefined_flag=
8821 always_export_symbols=no
8823 archive_expsym_cmds=
8824 compiler_needs_object=no
8825 enable_shared_with_static_runtimes=no
8826 export_dynamic_flag_spec=
8827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8828 hardcode_automatic=no
8830 hardcode_direct_absolute=no
8831 hardcode_libdir_flag_spec=
8832 hardcode_libdir_flag_spec_ld=
8833 hardcode_libdir_separator=
8835 hardcode_shlibpath_var=unsupported
8837 link_all_deplibs=unknown
8840 old_archive_from_new_cmds=
8841 old_archive_from_expsyms_cmds=
8842 thread_safe_flag_spec=
8843 whole_archive_flag_spec=
8844 # include_expsyms should be a list of space-separated symbols to be *always*
8845 # included in the symbol list
8847 # exclude_expsyms can be an extended regexp of symbols to exclude
8848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850 # as well as any symbol that contains `d'.
8851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853 # platforms (ab)use it in PIC code, but their linkers get confused if
8854 # the symbol is explicitly referenced. Since portable code cannot
8855 # rely on this symbol name, it's probably fine to never include it in
8856 # preloaded symbol tables.
8857 # Exclude shared library initialization/finalization symbols.
8858 extract_expsyms_cmds=
8861 cygwin* | mingw* | pw32* | cegcc*)
8862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863 # When not using gcc, we currently assume that we are using
8864 # Microsoft Visual C++.
8865 if test "$GCC" != yes; then
8870 # we just hope/assume this is gcc and not c89 (= MSVC++)
8876 linux* | k*bsd*-gnu)
8882 if test "$with_gnu_ld" = yes; then
8883 # If archive_cmds runs LD, not CC, wlarc should be empty
8886 # Set some defaults for GNU ld with shared library support. These
8887 # are reset later if shared libraries are not supported. Putting them
8888 # here allows them to be overridden if necessary.
8889 runpath_var=LD_RUN_PATH
8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891 export_dynamic_flag_spec='${wl}--export-dynamic'
8892 # ancient GNU ld didn't support --whole-archive et. al.
8893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8894 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8896 whole_archive_flag_spec=
8898 supports_anon_versioning=no
8899 case `$LD -v 2>&1` in
8900 *GNU\ gold*) supports_anon_versioning=yes ;;
8901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8904 *\ 2.11.*) ;; # other 2.11 versions
8905 *) supports_anon_versioning=yes ;;
8908 # See if GNU ld supports shared libraries.
8911 # On AIX/PPC, the GNU linker is very broken
8912 if test "$host_cpu" != ia64; then
8916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8917 *** to be unable to reliably create shared libraries on AIX.
8918 *** Therefore, libtool is disabling shared libraries support. If you
8919 *** really care for shared libraries, you may want to modify your PATH
8920 *** so that a non-GNU linker is found, and then restart.
8929 # see comment about AmigaOS4 .so support
8930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 archive_expsym_cmds=''
8934 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)'
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_minus_L=yes
8942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8943 allow_undefined_flag=unsupported
8944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8945 # support --undefined. This deserves some investigation. FIXME
8946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8954 # as there is no search path for DLLs.
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 allow_undefined_flag=unsupported
8957 always_export_symbols=no
8958 enable_shared_with_static_runtimes=yes
8959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8963 # If the export-symbols file already is a .def file (1st line
8964 # is EXPORTS), use it as is; otherwise, prepend...
8965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8966 cp $export_symbols $output_objdir/$soname.def;
8968 echo EXPORTS > $output_objdir/$soname.def;
8969 cat $export_symbols >> $output_objdir/$soname.def;
8971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8979 hardcode_shlibpath_var=no
8980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8981 export_dynamic_flag_spec='${wl}-E'
8982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8983 # Instead, shared libraries are loaded at an image base (0x10000000 by
8984 # default) and relocated if they conflict, which is a slow very memory
8985 # consuming and fragmenting process. To avoid this, we pick a random,
8986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8989 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'
8992 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8994 if test "$host_os" = linux-dietlibc; then
8995 case $cc_basename in
8996 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8999 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9000 && test "$tmp_diet" = no
9003 tmp_sharedflag='-shared'
9004 case $cc_basename,$host_cpu in
9005 pgcc*) # Portland Group C compiler
9006 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9007 tmp_addflag=' $pic_flag'
9009 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9010 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9011 tmp_addflag=' $pic_flag -Mnomain' ;;
9012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9013 tmp_addflag=' -i_dynamic' ;;
9014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9015 tmp_addflag=' -i_dynamic -nofor_main' ;;
9016 ifc* | ifort*) # Intel Fortran compiler
9017 tmp_addflag=' -nofor_main' ;;
9018 lf95*) # Lahey Fortran 8.1
9019 whole_archive_flag_spec=
9020 tmp_sharedflag='--shared' ;;
9021 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9022 tmp_sharedflag='-qmkshrobj'
9025 case `$CC -V 2>&1 | sed 5q` in
9026 *Sun\ C*) # Sun C 5.9
9027 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9028 compiler_needs_object=yes
9029 tmp_sharedflag='-G' ;;
9030 *Sun\ F*) # Sun Fortran 8.3
9031 tmp_sharedflag='-G' ;;
9033 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 if test "x$supports_anon_versioning" = xyes; then
9036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9038 echo "local: *; };" >> $output_objdir/$libname.ver~
9039 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9042 case $cc_basename in
9044 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9045 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9046 hardcode_libdir_flag_spec=
9047 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9048 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9049 if test "x$supports_anon_versioning" = xyes; then
9050 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9052 echo "local: *; };" >> $output_objdir/$libname.ver~
9053 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9062 netbsd* | netbsdelf*-gnu)
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9073 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9077 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9078 *** create shared libraries on Solaris systems. Therefore, libtool
9079 *** is disabling shared libraries support. We urge you to upgrade GNU
9080 *** binutils to release 2.9.1 or newer. Another option is to modify
9081 *** your PATH or compiler configuration so that the native linker is
9082 *** used, and then restart.
9085 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9094 case `$LD -v 2>&1` in
9095 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9099 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9100 *** reliably create shared libraries on SCO systems. Therefore, libtool
9101 *** is disabling shared libraries support. We urge you to upgrade GNU
9102 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9103 *** your PATH or compiler configuration so that the native linker is
9104 *** used, and then restart.
9109 # For security reasons, it is highly recommended that you always
9110 # use absolute paths for naming shared libraries, and exclude the
9111 # DT_RUNPATH tag from executables and libraries. But doing so
9112 # requires that you compile everything twice, which is a pain.
9113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9128 hardcode_shlibpath_var=no
9132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141 if test "$ld_shlibs" = no; then
9143 hardcode_libdir_flag_spec=
9144 export_dynamic_flag_spec=
9145 whole_archive_flag_spec=
9148 # PORTME fill in a description of your system's linker (not GNU ld)
9151 allow_undefined_flag=unsupported
9152 always_export_symbols=yes
9153 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'
9154 # Note: this linker hardcodes the directories in LIBPATH if there
9155 # are no directories specified by -L.
9156 hardcode_minus_L=yes
9157 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9158 # Neither direct hardcoding nor static linking is supported with a
9160 hardcode_direct=unsupported
9165 if test "$host_cpu" = ia64; then
9166 # On IA64, the linker does run time linking by default, so we don't
9167 # have to do anything special.
9168 aix_use_runtimelinking=no
9169 exp_sym_flag='-Bexport'
9172 # If we're using GNU nm, then we don't want the "-C" option.
9173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9174 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9175 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9177 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'
9179 aix_use_runtimelinking=no
9181 # Test if we are trying to use run time linking or normal
9182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9183 # need to do runtime linking.
9184 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9185 for ld_flag in $LDFLAGS; do
9186 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9187 aix_use_runtimelinking=yes
9194 exp_sym_flag='-bexport'
9195 no_entry_flag='-bnoentry'
9198 # When large executables or shared objects are built, AIX ld can
9199 # have problems creating the table of contents. If linking a library
9200 # or program results in "error TOC overflow" add -mminimal-toc to
9201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9206 hardcode_direct_absolute=yes
9207 hardcode_libdir_separator=':'
9208 link_all_deplibs=yes
9209 file_list_spec='${wl}-f,'
9211 if test "$GCC" = yes; then
9212 case $host_os in aix4.[012]|aix4.[012].*)
9213 # We only want to do this on AIX 4.2 and lower, the check
9214 # below for broken collect2 doesn't work under 4.3+
9215 collect2name=`${CC} -print-prog-name=collect2`
9216 if test -f "$collect2name" &&
9217 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9219 # We have reworked collect2
9222 # We have old collect2
9223 hardcode_direct=unsupported
9224 # It fails to find uninstalled libraries when the uninstalled
9225 # path is not listed in the libpath. Setting hardcode_minus_L
9226 # to unsupported forces relinking
9227 hardcode_minus_L=yes
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_libdir_separator=
9233 shared_flag='-shared'
9234 if test "$aix_use_runtimelinking" = yes; then
9235 shared_flag="$shared_flag "'${wl}-G'
9240 if test "$host_cpu" = ia64; then
9241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9242 # chokes on -Wl,-G. The following line is correct:
9245 if test "$aix_use_runtimelinking" = yes; then
9246 shared_flag='${wl}-G'
9248 shared_flag='${wl}-bM:SRE'
9253 export_dynamic_flag_spec='${wl}-bexpall'
9254 # It seems that -bexpall does not export symbols beginning with
9255 # underscore (_), so it is better to generate a list of symbols to export.
9256 always_export_symbols=yes
9257 if test "$aix_use_runtimelinking" = yes; then
9258 # Warning - without using the other runtime loading flags (-brtl),
9259 # -berok will link without error, but may produce a broken library.
9260 allow_undefined_flag='-berok'
9261 # Determine the default libpath from the value encoded in an
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9274 if ac_fn_c_try_link "$LINENO"; then :
9276 lt_aix_libpath_sed='
9277 /Import File Strings/,/^$/ {
9283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9284 # Check for a 64-bit object if we didn't find anything.
9285 if test -z "$aix_libpath"; then
9286 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289 rm -f core conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9296 if test "$host_cpu" = ia64; then
9297 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9298 allow_undefined_flag="-z nodefs"
9299 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"
9301 # Determine the default libpath from the value encoded in an
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9314 if ac_fn_c_try_link "$LINENO"; then :
9316 lt_aix_libpath_sed='
9317 /Import File Strings/,/^$/ {
9323 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9324 # Check for a 64-bit object if we didn't find anything.
9325 if test -z "$aix_libpath"; then
9326 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329 rm -f core conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9334 # Warning - without using the other run time loading flags,
9335 # -berok will link without error, but may produce a broken library.
9336 no_undefined_flag=' ${wl}-bernotok'
9337 allow_undefined_flag=' ${wl}-berok'
9338 # Exported symbols can be pulled into shared objects from archives
9339 whole_archive_flag_spec='$convenience'
9340 archive_cmds_need_lc=yes
9341 # This is similar to how AIX traditionally builds its shared libraries.
9342 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'
9350 # see comment about AmigaOS4 .so support
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds=''
9355 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)'
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_minus_L=yes
9363 export_dynamic_flag_spec=-rdynamic
9366 cygwin* | mingw* | pw32* | cegcc*)
9367 # When not using gcc, we currently assume that we are using
9368 # Microsoft Visual C++.
9369 # hardcode_libdir_flag_spec is actually meaningless, as there is
9370 # no search path for DLLs.
9371 hardcode_libdir_flag_spec=' '
9372 allow_undefined_flag=unsupported
9373 # Tell ltmain to make .lib files, not .a files.
9375 # Tell ltmain to make .dll files, not .so files.
9377 # FIXME: Setting linknames here is a bad hack.
9378 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9379 # The linker will automatically build a .lib file if we build a DLL.
9380 old_archive_from_new_cmds='true'
9381 # FIXME: Should let the user specify the lib program.
9382 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9383 fix_srcfile_path='`cygpath -w "$srcfile"`'
9384 enable_shared_with_static_runtimes=yes
9387 darwin* | rhapsody*)
9390 archive_cmds_need_lc=no
9392 hardcode_automatic=yes
9393 hardcode_shlibpath_var=unsupported
9394 whole_archive_flag_spec=''
9395 link_all_deplibs=yes
9396 allow_undefined_flag="$_lt_dar_allow_undefined"
9397 case $cc_basename in
9398 ifort*) _lt_dar_can_shared=yes ;;
9399 *) _lt_dar_can_shared=$GCC ;;
9401 if test "$_lt_dar_can_shared" = "yes"; then
9402 output_verbose_link_cmd=echo
9403 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9404 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9405 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}"
9406 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}"
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425 # support. Future versions do this automatically, but an explicit c++rt0.o
9426 # does not break anything, and helps significantly (at the cost of a little
9429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_shlibpath_var=no
9435 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_minus_L=yes
9440 hardcode_shlibpath_var=no
9443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444 freebsd* | dragonfly*)
9445 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9452 if test "$GCC" = yes; then
9453 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9455 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'
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9461 # hardcode_minus_L: Not really in the search PATH,
9462 # but as the default location of the library.
9463 hardcode_minus_L=yes
9464 export_dynamic_flag_spec='${wl}-E'
9468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9469 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9473 if test "$with_gnu_ld" = no; then
9474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475 hardcode_libdir_flag_spec_ld='+b $libdir'
9476 hardcode_libdir_separator=:
9478 hardcode_direct_absolute=yes
9479 export_dynamic_flag_spec='${wl}-E'
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9490 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512 if test "$with_gnu_ld" = no; then
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_separator=:
9519 hardcode_shlibpath_var=no
9523 hardcode_direct_absolute=yes
9524 export_dynamic_flag_spec='${wl}-E'
9526 # hardcode_minus_L: Not really in the search PATH,
9527 # but as the default location of the library.
9528 hardcode_minus_L=yes
9534 irix5* | irix6* | nonstopux*)
9535 if test "$GCC" = yes; then
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9537 # Try to use the -exported_symbol ld option, if it does not
9538 # work, assume that -exports_file does not work either and
9539 # implicitly export all symbols.
9540 save_LDFLAGS="$LDFLAGS"
9541 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9546 if ac_fn_c_try_link "$LINENO"; then :
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9550 rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LDFLAGS="$save_LDFLAGS"
9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9557 archive_cmds_need_lc='no'
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 hardcode_libdir_separator=:
9561 link_all_deplibs=yes
9564 netbsd* | netbsdelf*-gnu)
9565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9568 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9570 hardcode_libdir_flag_spec='-R$libdir'
9572 hardcode_shlibpath_var=no
9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 hardcode_libdir_separator=:
9580 hardcode_shlibpath_var=no
9587 if test -f /usr/libexec/ld.so; then
9589 hardcode_shlibpath_var=no
9590 hardcode_direct_absolute=yes
9591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9595 export_dynamic_flag_spec='${wl}-E'
9598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600 hardcode_libdir_flag_spec='-R$libdir'
9603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_minus_L=yes
9616 allow_undefined_flag=unsupported
9617 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'
9618 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9622 if test "$GCC" = yes; then
9623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9624 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9626 allow_undefined_flag=' -expect_unresolved \*'
9627 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 hardcode_libdir_separator=:
9634 osf4* | osf5*) # as osf3* with the addition of -msym flag
9635 if test "$GCC" = yes; then
9636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640 allow_undefined_flag=' -expect_unresolved \*'
9641 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9642 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~
9643 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9645 # Both c and cxx compiler support -rpath directly
9646 hardcode_libdir_flag_spec='-rpath $libdir'
9648 archive_cmds_need_lc='no'
9649 hardcode_libdir_separator=:
9653 no_undefined_flag=' -z defs'
9654 if test "$GCC" = yes; then
9656 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9660 case `$CC -V 2>&1` in
9663 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9669 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9671 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_shlibpath_var=no
9678 solaris2.[0-5] | solaris2.[0-5].*) ;;
9680 # The compiler driver will combine and reorder linker options,
9681 # but understands `-z linker_flag'. GCC discards it without `$wl',
9682 # but is careful enough not to reorder.
9683 # Supported since Solaris 2.6 (maybe 2.5.1?)
9684 if test "$GCC" = yes; then
9685 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9687 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9691 link_all_deplibs=yes
9695 if test "x$host_vendor" = xsequent; then
9696 # Use $CC to link under sequent, because it throws in some extra .o
9697 # files that make .init and .fini sections work.
9698 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_minus_L=yes
9705 hardcode_shlibpath_var=no
9709 case $host_vendor in
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_direct=yes # is this really true???
9715 ## LD is ld it makes a PLAMLIB
9716 ## CC just makes a GrossModule.
9717 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9718 reload_cmds='$CC -r -o $output$reload_objs'
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9726 runpath_var='LD_RUN_PATH'
9727 hardcode_shlibpath_var=no
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_shlibpath_var=no
9733 export_dynamic_flag_spec='-Bexport'
9737 if test -d /usr/nec; then
9738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_shlibpath_var=no
9740 runpath_var=LD_RUN_PATH
9741 hardcode_runpath_var=yes
9746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9747 no_undefined_flag='${wl}-z,text'
9748 archive_cmds_need_lc=no
9749 hardcode_shlibpath_var=no
9750 runpath_var='LD_RUN_PATH'
9752 if test "$GCC" = yes; then
9753 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 sysv5* | sco3.2v5* | sco5v6*)
9762 # Note: We can NOT use -z defs as we might desire, because we do not
9763 # link with -lc, and that would cause any symbols used from libc to
9764 # always be unresolved, which means just about no library would
9765 # ever link correctly. If we're not using GNU ld we use -z text
9766 # though, which does catch some bad symbols but isn't as heavy-handed
9768 no_undefined_flag='${wl}-z,text'
9769 allow_undefined_flag='${wl}-z,nodefs'
9770 archive_cmds_need_lc=no
9771 hardcode_shlibpath_var=no
9772 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9773 hardcode_libdir_separator=':'
9774 link_all_deplibs=yes
9775 export_dynamic_flag_spec='${wl}-Bexport'
9776 runpath_var='LD_RUN_PATH'
9778 if test "$GCC" = yes; then
9779 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_shlibpath_var=no
9798 if test x$host_vendor = xsni; then
9800 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9801 export_dynamic_flag_spec='${wl}-Blargedynsym'
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9808 $as_echo "$ld_shlibs" >&6; }
9809 test "$ld_shlibs" = no && can_build_shared=no
9811 with_gnu_ld=$with_gnu_ld
9828 # Do we need to explicitly link libc?
9830 case "x$archive_cmds_need_lc" in
9832 # Assume -lc should be added
9833 archive_cmds_need_lc=yes
9835 if test "$enable_shared" = yes && test "$GCC" = yes; then
9836 case $archive_cmds in
9838 # FIXME: we may have to deal with multi-command sequences.
9841 # Test whether the compiler implicitly links with -lc since on some
9842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9843 # to ld, don't add -lc before -lgcc.
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850 (eval $ac_compile) 2>&5
9852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853 test $ac_status = 0; } 2>conftest.err; then
9856 libobjs=conftest.$ac_objext
9858 wl=$lt_prog_compiler_wl
9859 pic_flag=$lt_prog_compiler_pic
9865 lt_save_allow_undefined_flag=$allow_undefined_flag
9866 allow_undefined_flag=
9867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9868 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871 test $ac_status = 0; }
9873 archive_cmds_need_lc=no
9875 archive_cmds_need_lc=yes
9877 allow_undefined_flag=$lt_save_allow_undefined_flag
9879 cat conftest.err 1>&5
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9883 $as_echo "$archive_cmds_need_lc" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10047 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10049 if test "$GCC" = yes; then
10051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10052 *) lt_awk_arg="/^libraries:/" ;;
10054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10055 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10056 # if the path contains ";" then we assume it to be the separator
10057 # otherwise default to the standard path separator (i.e. ":") - it is
10058 # assumed that no part of a normal pathname contains ";" but that should
10059 # okay in the real world where ";" in dirpaths is itself problematic.
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10064 # Ok, now we have the path, separated by spaces, we can step through it
10065 # and add multilib dir if necessary.
10066 lt_tmp_lt_search_path_spec=
10067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10068 for lt_sys_path in $lt_search_path_spec; do
10069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10072 test -d "$lt_sys_path" && \
10073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10076 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10077 BEGIN {RS=" "; FS="/|\n";} {
10080 for (lt_i = NF; lt_i > 0; lt_i--) {
10081 if ($lt_i != "" && $lt_i != ".") {
10082 if ($lt_i == "..") {
10085 if (lt_count == 0) {
10086 lt_foo="/" $lt_i lt_foo;
10093 if (lt_foo != "") { lt_freq[lt_foo]++; }
10094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10096 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10100 library_names_spec=
10101 libname_spec='lib$name'
10105 postuninstall_cmds=
10109 shlibpath_overrides_runpath=unknown
10111 dynamic_linker="$host_os ld.so"
10112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10113 need_lib_prefix=unknown
10114 hardcode_into_libs=no
10116 # when you set need_version to no, make sure it does not cause -set_version
10117 # flags to be left without arguments
10118 need_version=unknown
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10124 shlibpath_var=LIBPATH
10126 # AIX 3 has no versioning support, so we append a major version to the name.
10127 soname_spec='${libname}${release}${shared_ext}$major'
10134 hardcode_into_libs=yes
10135 if test "$host_cpu" = ia64; then
10136 # AIX 5 supports IA64
10137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10138 shlibpath_var=LD_LIBRARY_PATH
10140 # With GCC up to 2.95.x, collect2 would create an import file
10141 # for dependence libraries. The import file would start with
10142 # the line `#! .'. This would cause the generated library to
10143 # depend on `.', always an invalid library. This was fixed in
10144 # development snapshots of GCC prior to 3.0.
10146 aix4 | aix4.[01] | aix4.[01].*)
10147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10152 can_build_shared=no
10156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10157 # soname into executable. Probably we can add versioning support to
10158 # collect2, so additional links can be useful in future.
10159 if test "$aix_use_runtimelinking" = yes; then
10160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10161 # instead of lib<name>.a to let people know that these are not
10162 # typical AIX shared libraries.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 # We preserve .a as extension for shared libraries through AIX4.2
10166 # and later when we are not doing run time linking.
10167 library_names_spec='${libname}${release}.a $libname.a'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10170 shlibpath_var=LIBPATH
10177 # Since July 2007 AmigaOS4 officially supports .so libraries.
10178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 library_names_spec='$libname.ixlibrary $libname.a'
10183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10184 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10190 library_names_spec='${libname}${shared_ext}'
10191 dynamic_linker="$host_os ld.so"
10192 shlibpath_var=LIBRARY_PATH
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10204 # the default ld.so.conf also contains /usr/contrib/lib and
10205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10206 # libtool to hard-code these into programs
10209 cygwin* | mingw* | pw32* | cegcc*)
10210 version_type=windows
10215 case $GCC,$host_os in
10216 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10217 library_names_spec='$libname.dll.a'
10218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10219 postinstall_cmds='base_file=`basename \${file}`~
10220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10221 dldir=$destdir/`dirname \$dlpath`~
10222 test -d \$dldir || mkdir -p \$dldir~
10223 $install_prog $dir/$dlname \$dldir/$dlname~
10224 chmod a+x \$dldir/$dlname~
10225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10229 dlpath=$dir/\$dldll~
10231 shlibpath_overrides_runpath=yes
10235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10240 # MinGW DLLs use traditional 'lib' prefix
10241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10243 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10244 # It is most probably a Windows format PATH printed by
10245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10246 # path with ; separators, and with drive letters. We can handle the
10247 # drive letters (cygwin fileutils understands them), so leave them,
10248 # especially as we might pass files found there to a mingw objdump,
10249 # which wouldn't understand a cygwinified path. Ahh.
10250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10256 # pw32 DLLs use 'pw' prefix rather than 'lib'
10257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10266 dynamic_linker='Win32 ld.exe'
10267 # FIXME: first we should search . and the directory the executable is in
10271 darwin* | rhapsody*)
10272 dynamic_linker="$host_os dyld"
10273 version_type=darwin
10276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10277 soname_spec='${libname}${release}${major}$shared_ext'
10278 shlibpath_overrides_runpath=yes
10279 shlibpath_var=DYLD_LIBRARY_PATH
10280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10299 freebsd* | dragonfly*)
10300 # DragonFly does not have aout. When/if they implement a new
10301 # versioning mechanism, adjust this.
10302 if test -x /usr/bin/objformat; then
10303 objformat=`/usr/bin/objformat`
10306 freebsd[123]*) objformat=aout ;;
10307 *) objformat=elf ;;
10310 version_type=freebsd-$objformat
10311 case $version_type in
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10322 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10327 freebsd3.[01]* | freebsdelf3.[01]*)
10328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10336 *) # from 4.6 on, and DragonFly
10337 shlibpath_overrides_runpath=yes
10338 hardcode_into_libs=yes
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 hardcode_into_libs=yes
10353 hpux9* | hpux10* | hpux11*)
10354 # Give a soname corresponding to the major version so that dld.sl refuses to
10355 # link against other versions.
10362 hardcode_into_libs=yes
10363 dynamic_linker="$host_os dld.so"
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 if test "X$HPUX_IA64_MODE" = X32; then
10369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377 hardcode_into_libs=yes
10378 dynamic_linker="$host_os dld.sl"
10379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388 dynamic_linker="$host_os dld.sl"
10389 shlibpath_var=SHLIB_PATH
10390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10396 postinstall_cmds='chmod 555 $lib'
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=no
10408 hardcode_into_libs=yes
10411 irix5* | irix6* | nonstopux*)
10413 nonstopux*) version_type=nonstopux ;;
10415 if test "$lt_cv_prog_gnu_ld" = yes; then
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10426 irix5* | nonstopux*)
10427 libsuff= shlibsuff=
10430 case $LD in # libtool.m4 will add one of these switches to LD
10431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10432 libsuff= shlibsuff= libmagic=32-bit;;
10433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10434 libsuff=32 shlibsuff=N32 libmagic=N32;;
10435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10437 *) libsuff= shlibsuff= libmagic=never-match;;
10441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10442 shlibpath_overrides_runpath=no
10443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10445 hardcode_into_libs=yes
10448 # No shared lib support for Linux oldld, aout, or coff.
10449 linux*oldld* | linux*aout* | linux*coff*)
10453 # This must be Linux ELF.
10454 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=no
10463 # Some binutils ld are patched to set DT_RUNPATH
10464 save_LDFLAGS=$LDFLAGS
10465 save_libdir=$libdir
10466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10481 shlibpath_overrides_runpath=yes
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LDFLAGS=$save_LDFLAGS
10487 libdir=$save_libdir
10489 # This implies no fast_install, which is unacceptable.
10490 # Some rework will be needed to allow for fast_install
10491 # before this can be enabled.
10492 hardcode_into_libs=yes
10494 # Append ld.so.conf contents to the search path
10495 if test -f /etc/ld.so.conf; then
10496 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;/^$/d' | tr '\n' ' '`
10497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10500 # We used to test for /lib/ld.so.1 and disable shared libraries on
10501 # powerpc, because MkLinux only supported shared libraries with the
10502 # GNU dynamic linker. Since this was broken with cross compilers,
10503 # most powerpc-linux boxes support dynamic linking these days and
10504 # people can always --disable-shared, the test was removed, and we
10505 # assume the GNU/Linux dynamic linker is in use.
10506 dynamic_linker='GNU/Linux ld.so'
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10518 dynamic_linker='NetBSD ld.elf_so'
10525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528 dynamic_linker='NetBSD (a.out) ld.so'
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 dynamic_linker='NetBSD ld.elf_so'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes
10536 hardcode_into_libs=yes
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10555 dynamic_linker='ldqnx.so'
10560 sys_lib_dlsearch_path_spec="/usr/lib"
10562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10564 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10565 *) need_version=no ;;
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10572 openbsd2.[89] | openbsd2.[89].*)
10573 shlibpath_overrides_runpath=no
10576 shlibpath_overrides_runpath=yes
10580 shlibpath_overrides_runpath=yes
10585 libname_spec='$name'
10588 library_names_spec='$libname${shared_ext} $libname.a'
10589 dynamic_linker='OS/2 ld.exe'
10590 shlibpath_var=LIBPATH
10593 osf3* | osf4* | osf5*)
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10617 # ldd complains unless libraries are executable
10618 postinstall_cmds='chmod +x $lib'
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 if test "$with_gnu_ld" = yes; then
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 case $host_vendor in
10640 shlibpath_overrides_runpath=no
10642 runpath_var=LD_RUN_PATH
10650 shlibpath_overrides_runpath=no
10651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10657 if test -d /usr/nec ;then
10659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10660 soname_spec='$libname${shared_ext}.$major'
10661 shlibpath_var=LD_LIBRARY_PATH
10665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10666 version_type=freebsd-elf
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 if test "$with_gnu_ld" = yes; then
10675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10684 sys_lib_dlsearch_path_spec='/usr/lib'
10688 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10695 hardcode_into_libs=yes
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10710 $as_echo "$dynamic_linker" >&6; }
10711 test "$dynamic_linker" = no && can_build_shared=no
10713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10714 if test "$GCC" = yes; then
10715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10718 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10719 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10721 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10722 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10814 if test -n "$hardcode_libdir_flag_spec" ||
10815 test -n "$runpath_var" ||
10816 test "X$hardcode_automatic" = "Xyes" ; then
10818 # We can hardcode non-existent directories.
10819 if test "$hardcode_direct" != no &&
10820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10821 # have to relink, otherwise we might link with an installed library
10822 # when we should be linking with a yet-to-be-installed one
10823 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10824 test "$hardcode_minus_L" != no; then
10825 # Linking always hardcodes the temporary library directory.
10826 hardcode_action=relink
10828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10829 hardcode_action=immediate
10832 # We cannot hardcode anything, or else we can only hardcode existing
10834 hardcode_action=unsupported
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10837 $as_echo "$hardcode_action" >&6; }
10839 if test "$hardcode_action" = relink ||
10840 test "$inherit_rpath" = yes; then
10841 # Fast installation is not supported
10842 enable_fast_install=no
10843 elif test "$shlibpath_overrides_runpath" = yes ||
10844 test "$enable_shared" = no; then
10845 # Fast installation is not necessary
10846 enable_fast_install=needless
10854 if test "x$enable_dlopen" != xyes; then
10855 enable_dlopen=unknown
10856 enable_dlopen_self=unknown
10857 enable_dlopen_self_static=unknown
10864 lt_cv_dlopen="load_add_on"
10866 lt_cv_dlopen_self=yes
10869 mingw* | pw32* | cegcc*)
10870 lt_cv_dlopen="LoadLibrary"
10875 lt_cv_dlopen="dlopen"
10880 # if libdl is installed we need to link against it
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10886 ac_check_lib_save_LIBS=$LIBS
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 ac_cv_lib_dl_dlopen=yes
10909 ac_cv_lib_dl_dlopen=no
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10916 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10917 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10921 lt_cv_dlopen="dyld"
10923 lt_cv_dlopen_self=yes
10930 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10931 if test "x$ac_cv_func_shl_load" = x""yes; then :
10932 lt_cv_dlopen="shl_load"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10935 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10939 ac_check_lib_save_LIBS=$LIBS
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10954 return shl_load ();
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_dld_shl_load=yes
10962 ac_cv_lib_dld_shl_load=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10969 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10970 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10973 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10974 if test "x$ac_cv_func_dlopen" = x""yes; then :
10975 lt_cv_dlopen="dlopen"
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10982 ac_check_lib_save_LIBS=$LIBS
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 ac_cv_lib_dl_dlopen=yes
11005 ac_cv_lib_dl_dlopen=no
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-lsvld $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_svld_dlopen=yes
11044 ac_cv_lib_svld_dlopen=no
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11051 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11052 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11056 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11060 ac_check_lib_save_LIBS=$LIBS
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11075 return dld_link ();
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 ac_cv_lib_dld_dld_link=yes
11083 ac_cv_lib_dld_dld_link=no
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11090 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11091 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11113 if test "x$lt_cv_dlopen" != xno; then
11119 case $lt_cv_dlopen in
11121 save_CPPFLAGS="$CPPFLAGS"
11122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11124 save_LDFLAGS="$LDFLAGS"
11125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11128 LIBS="$lt_cv_dlopen_libs $LIBS"
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11131 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11132 if test "${lt_cv_dlopen_self+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 if test "$cross_compiling" = yes; then :
11136 lt_cv_dlopen_self=cross
11138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139 lt_status=$lt_dlunknown
11140 cat > conftest.$ac_ext <<_LT_EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11151 # define LT_DLGLOBAL RTLD_GLOBAL
11154 # define LT_DLGLOBAL DL_GLOBAL
11156 # define LT_DLGLOBAL 0
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161 find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11167 # define LT_DLLAZY_OR_NOW DL_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_NOW
11173 # define LT_DLLAZY_OR_NOW DL_NOW
11175 # define LT_DLLAZY_OR_NOW 0
11182 void fnord() { int i=42;}
11185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186 int status = $lt_dlunknown;
11190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192 /* dlclose (self); */
11200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11201 (eval $ac_link) 2>&5
11203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11205 (./conftest; exit; ) >&5 2>/dev/null
11207 case x$lt_status in
11208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11210 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11213 # compilation failed
11214 lt_cv_dlopen_self=no
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11222 $as_echo "$lt_cv_dlopen_self" >&6; }
11224 if test "x$lt_cv_dlopen_self" = xyes; then
11225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11227 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11228 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 if test "$cross_compiling" = yes; then :
11232 lt_cv_dlopen_self_static=cross
11234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235 lt_status=$lt_dlunknown
11236 cat > conftest.$ac_ext <<_LT_EOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11247 # define LT_DLGLOBAL RTLD_GLOBAL
11250 # define LT_DLGLOBAL DL_GLOBAL
11252 # define LT_DLGLOBAL 0
11256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257 find out it does not work in some platform. */
11258 #ifndef LT_DLLAZY_OR_NOW
11260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11263 # define LT_DLLAZY_OR_NOW DL_LAZY
11266 # define LT_DLLAZY_OR_NOW RTLD_NOW
11269 # define LT_DLLAZY_OR_NOW DL_NOW
11271 # define LT_DLLAZY_OR_NOW 0
11278 void fnord() { int i=42;}
11281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11282 int status = $lt_dlunknown;
11286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11288 /* dlclose (self); */
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297 (eval $ac_link) 2>&5
11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301 (./conftest; exit; ) >&5 2>/dev/null
11303 case x$lt_status in
11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11309 # compilation failed
11310 lt_cv_dlopen_self_static=no
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11321 CPPFLAGS="$save_CPPFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11327 case $lt_cv_dlopen_self in
11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329 *) enable_dlopen_self=unknown ;;
11332 case $lt_cv_dlopen_self_static in
11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334 *) enable_dlopen_self_static=unknown ;;
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11364 # FIXME - insert some real tests, host_os isn't really good enough
11367 if test -n "$STRIP" ; then
11368 striplib="$STRIP -x"
11369 old_striplib="$STRIP -S"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11395 # Report which library types will actually be built
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403 test "$can_build_shared" = "no" && enable_shared=no
11405 # On AIX, shared libraries and static libraries use the same namespace, and
11406 # are all built from PIC.
11409 test "$enable_shared" = yes && enable_static=no
11410 if test -n "$RANLIB"; then
11411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412 postinstall_cmds='$RANLIB $lib'
11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418 test "$enable_shared" = yes && enable_static=no
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427 # Make sure either enable_shared or enable_static is yes.
11428 test "$enable_shared" = yes || enable_static=yes
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456 ac_config_commands="$ac_config_commands libtool"
11461 # Only expand once:
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11469 if test -z "$CXX"; then
11470 if test -n "$CCC"; then
11473 if test -n "$ac_tool_prefix"; then
11474 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if test "${ac_cv_prog_CXX+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11483 if test -n "$CXX"; then
11484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 CXX=$ac_cv_prog_CXX
11504 if test -n "$CXX"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11506 $as_echo "$CXX" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11513 test -n "$CXX" && break
11516 if test -z "$CXX"; then
11518 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11520 # Extract the first word of "$ac_prog", so it can be a program name with args.
11521 set dummy $ac_prog; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11527 if test -n "$ac_ct_CXX"; then
11528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537 ac_cv_prog_ac_ct_CXX="$ac_prog"
11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11548 if test -n "$ac_ct_CXX"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11550 $as_echo "$ac_ct_CXX" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11557 test -n "$ac_ct_CXX" && break
11560 if test "x$ac_ct_CXX" = x; then
11563 case $cross_compiling:$ac_tool_warned in
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11567 ac_tool_warned=yes ;;
11575 # Provide some information about the compiler.
11576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11579 for ac_option in --version -v -V -qversion; do
11580 { { ac_try="$ac_compiler $ac_option >&5"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11586 $as_echo "$ac_try_echo"; } >&5
11587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11589 if test -s conftest.err; then
11591 ... rest of stderr output deleted ...
11592 10q' conftest.err >conftest.er1
11593 cat conftest.er1 >&5
11595 rm -f conftest.er1 conftest.err
11596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597 test $ac_status = 0; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11601 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11602 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11619 if ac_fn_cxx_try_compile "$LINENO"; then :
11620 ac_compiler_gnu=yes
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11629 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11630 if test $ac_compiler_gnu = yes; then
11635 ac_test_CXXFLAGS=${CXXFLAGS+set}
11636 ac_save_CXXFLAGS=$CXXFLAGS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11638 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11639 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11642 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11643 ac_cxx_werror_flag=yes
11644 ac_cv_prog_cxx_g=no
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11657 if ac_fn_cxx_try_compile "$LINENO"; then :
11658 ac_cv_prog_cxx_g=yes
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11672 if ac_fn_cxx_try_compile "$LINENO"; then :
11675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11688 if ac_fn_cxx_try_compile "$LINENO"; then :
11689 ac_cv_prog_cxx_g=yes
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11699 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11700 if test "$ac_test_CXXFLAGS" = set; then
11701 CXXFLAGS=$ac_save_CXXFLAGS
11702 elif test $ac_cv_prog_cxx_g = yes; then
11703 if test "$GXX" = yes; then
11709 if test "$GXX" = yes; then
11716 ac_cpp='$CPP $CPPFLAGS'
11717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721 depcc="$CXX" am_compiler_list=
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11724 $as_echo_n "checking dependency style of $depcc... " >&6; }
11725 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11729 # We make a subdir and do the tests there. Otherwise we can end up
11730 # making bogus files that we don't know about and never remove. For
11731 # instance it was reported that on HP-UX the gcc test will end up
11732 # making a dummy file named `D' -- because `-MD' means `put the output
11735 # Copy depcomp to subdir because otherwise we won't find it if we're
11736 # using a relative directory.
11737 cp "$am_depcomp" conftest.dir
11739 # We will build objects and dependencies in a subdirectory because
11740 # it helps to detect inapplicable dependency modes. For instance
11741 # both Tru64's cc and ICC support -MD to output dependencies as a
11742 # side effect of compilation, but ICC will put the dependencies in
11743 # the current directory while Tru64 will put them in the object
11747 am_cv_CXX_dependencies_compiler_type=none
11748 if test "$am_compiler_list" = ""; then
11749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11751 am__universal=false
11752 case " $depcc " in #(
11753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11756 for depmode in $am_compiler_list; do
11757 # Setup a source with many dependencies, because some compilers
11758 # like to wrap large dependency lists on column 80 (with \), and
11759 # we should not choose a depcomp mode which is confused by this.
11761 # We need to recreate these files for each test, as the compiler may
11762 # overwrite some of them when testing with obscure command lines.
11763 # This happens at least with the AIX C compiler.
11765 for i in 1 2 3 4 5 6; do
11766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11767 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11768 # Solaris 8's {/usr,}/bin/sh.
11769 touch sub/conftst$i.h
11771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11774 # mode. It turns out that the SunPro C++ compiler does not properly
11775 # handle `-M -o', and we need to detect this. Also, some Intel
11776 # versions had trouble with output in subdirs
11777 am__obj=sub/conftest.${OBJEXT-o}
11778 am__minus_obj="-o $am__obj"
11781 # This depmode causes a compiler race in universal mode.
11782 test "$am__universal" = false || continue
11785 # after this tag, mechanisms are not by side-effect, so they'll
11786 # only be used when explicitly requested
11787 if test "x$enable_dependency_tracking" = xyes; then
11793 msvisualcpp | msvcmsys)
11794 # This compiler won't grok `-c -o', but also, the minuso test has
11795 # not run yet. These depmodes are late enough in the game, and
11796 # so weak that their functioning should not be impacted.
11797 am__obj=conftest.${OBJEXT-o}
11802 if depmode=$depmode \
11803 source=sub/conftest.c object=$am__obj \
11804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11806 >/dev/null 2>conftest.err &&
11807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11811 # icc doesn't choke on unknown options, it will just issue warnings
11812 # or remarks (even with -Werror). So we grep stderr for any message
11813 # that says an option was ignored or not supported.
11814 # When given -MP, icc 7.0 and 7.1 complain thusly:
11815 # icc: Command line warning: ignoring option '-M'; no argument required
11816 # The diagnosis changed in icc 8.0:
11817 # icc: Command line remark: option '-MP' not supported
11818 if (grep 'ignoring option' conftest.err ||
11819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11820 am_cv_CXX_dependencies_compiler_type=$depmode
11827 rm -rf conftest.dir
11829 am_cv_CXX_dependencies_compiler_type=none
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11834 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11835 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11838 test "x$enable_dependency_tracking" != xno \
11839 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11840 am__fastdepCXX_TRUE=
11841 am__fastdepCXX_FALSE='#'
11843 am__fastdepCXX_TRUE='#'
11844 am__fastdepCXX_FALSE=
11850 ac_cpp='$CXXCPP $CPPFLAGS'
11851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854 if test -z "$CXX"; then
11855 if test -n "$CCC"; then
11858 if test -n "$ac_tool_prefix"; then
11859 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if test "${ac_cv_prog_CXX+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11868 if test -n "$CXX"; then
11869 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11878 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 CXX=$ac_cv_prog_CXX
11889 if test -n "$CXX"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11891 $as_echo "$CXX" >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11898 test -n "$CXX" && break
11901 if test -z "$CXX"; then
11903 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11905 # Extract the first word of "$ac_prog", so it can be a program name with args.
11906 set dummy $ac_prog; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 if test -n "$ac_ct_CXX"; then
11913 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_prog_ac_ct_CXX="$ac_prog"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11933 if test -n "$ac_ct_CXX"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11935 $as_echo "$ac_ct_CXX" >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11942 test -n "$ac_ct_CXX" && break
11945 if test "x$ac_ct_CXX" = x; then
11948 case $cross_compiling:$ac_tool_warned in
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11952 ac_tool_warned=yes ;;
11960 # Provide some information about the compiler.
11961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11964 for ac_option in --version -v -V -qversion; do
11965 { { ac_try="$ac_compiler $ac_option >&5"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11971 $as_echo "$ac_try_echo"; } >&5
11972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11974 if test -s conftest.err; then
11976 ... rest of stderr output deleted ...
11977 10q' conftest.err >conftest.er1
11978 cat conftest.er1 >&5
11980 rm -f conftest.er1 conftest.err
11981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11982 test $ac_status = 0; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11986 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
12004 if ac_fn_cxx_try_compile "$LINENO"; then :
12005 ac_compiler_gnu=yes
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12014 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12015 if test $ac_compiler_gnu = yes; then
12020 ac_test_CXXFLAGS=${CXXFLAGS+set}
12021 ac_save_CXXFLAGS=$CXXFLAGS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12023 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12024 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12028 ac_cxx_werror_flag=yes
12029 ac_cv_prog_cxx_g=no
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12042 if ac_fn_cxx_try_compile "$LINENO"; then :
12043 ac_cv_prog_cxx_g=yes
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12057 if ac_fn_cxx_try_compile "$LINENO"; then :
12060 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12073 if ac_fn_cxx_try_compile "$LINENO"; then :
12074 ac_cv_prog_cxx_g=yes
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12084 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12085 if test "$ac_test_CXXFLAGS" = set; then
12086 CXXFLAGS=$ac_save_CXXFLAGS
12087 elif test $ac_cv_prog_cxx_g = yes; then
12088 if test "$GXX" = yes; then
12094 if test "$GXX" = yes; then
12101 ac_cpp='$CPP $CPPFLAGS'
12102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106 depcc="$CXX" am_compiler_list=
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12109 $as_echo_n "checking dependency style of $depcc... " >&6; }
12110 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12114 # We make a subdir and do the tests there. Otherwise we can end up
12115 # making bogus files that we don't know about and never remove. For
12116 # instance it was reported that on HP-UX the gcc test will end up
12117 # making a dummy file named `D' -- because `-MD' means `put the output
12120 # Copy depcomp to subdir because otherwise we won't find it if we're
12121 # using a relative directory.
12122 cp "$am_depcomp" conftest.dir
12124 # We will build objects and dependencies in a subdirectory because
12125 # it helps to detect inapplicable dependency modes. For instance
12126 # both Tru64's cc and ICC support -MD to output dependencies as a
12127 # side effect of compilation, but ICC will put the dependencies in
12128 # the current directory while Tru64 will put them in the object
12132 am_cv_CXX_dependencies_compiler_type=none
12133 if test "$am_compiler_list" = ""; then
12134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12136 am__universal=false
12137 case " $depcc " in #(
12138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12141 for depmode in $am_compiler_list; do
12142 # Setup a source with many dependencies, because some compilers
12143 # like to wrap large dependency lists on column 80 (with \), and
12144 # we should not choose a depcomp mode which is confused by this.
12146 # We need to recreate these files for each test, as the compiler may
12147 # overwrite some of them when testing with obscure command lines.
12148 # This happens at least with the AIX C compiler.
12150 for i in 1 2 3 4 5 6; do
12151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12153 # Solaris 8's {/usr,}/bin/sh.
12154 touch sub/conftst$i.h
12156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12158 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12159 # mode. It turns out that the SunPro C++ compiler does not properly
12160 # handle `-M -o', and we need to detect this. Also, some Intel
12161 # versions had trouble with output in subdirs
12162 am__obj=sub/conftest.${OBJEXT-o}
12163 am__minus_obj="-o $am__obj"
12166 # This depmode causes a compiler race in universal mode.
12167 test "$am__universal" = false || continue
12170 # after this tag, mechanisms are not by side-effect, so they'll
12171 # only be used when explicitly requested
12172 if test "x$enable_dependency_tracking" = xyes; then
12178 msvisualcpp | msvcmsys)
12179 # This compiler won't grok `-c -o', but also, the minuso test has
12180 # not run yet. These depmodes are late enough in the game, and
12181 # so weak that their functioning should not be impacted.
12182 am__obj=conftest.${OBJEXT-o}
12187 if depmode=$depmode \
12188 source=sub/conftest.c object=$am__obj \
12189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12191 >/dev/null 2>conftest.err &&
12192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12196 # icc doesn't choke on unknown options, it will just issue warnings
12197 # or remarks (even with -Werror). So we grep stderr for any message
12198 # that says an option was ignored or not supported.
12199 # When given -MP, icc 7.0 and 7.1 complain thusly:
12200 # icc: Command line warning: ignoring option '-M'; no argument required
12201 # The diagnosis changed in icc 8.0:
12202 # icc: Command line remark: option '-MP' not supported
12203 if (grep 'ignoring option' conftest.err ||
12204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12205 am_cv_CXX_dependencies_compiler_type=$depmode
12212 rm -rf conftest.dir
12214 am_cv_CXX_dependencies_compiler_type=none
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12219 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12220 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12223 test "x$enable_dependency_tracking" != xno \
12224 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12225 am__fastdepCXX_TRUE=
12226 am__fastdepCXX_FALSE='#'
12228 am__fastdepCXX_TRUE='#'
12229 am__fastdepCXX_FALSE=
12233 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12234 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12235 (test "X$CXX" != "Xg++"))) ; then
12237 ac_cpp='$CXXCPP $CPPFLAGS'
12238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12242 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12243 if test -z "$CXXCPP"; then
12244 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12247 # Double quotes because CXXCPP needs to be expanded
12248 for CXXCPP in "$CXX -E" "/lib/cpp"
12250 ac_preproc_ok=false
12251 for ac_cxx_preproc_warn_flag in '' yes
12253 # Use a header file that comes with gcc, so configuring glibc
12254 # with a fresh cross-compiler works.
12255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12256 # <limits.h> exists even on freestanding compilers.
12257 # On the NeXT, cc -E runs the code through the compiler's parser,
12258 # not just through cpp. "Syntax error" is here to catch this case.
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 # include <limits.h>
12264 # include <assert.h>
12268 if ac_fn_cxx_try_cpp "$LINENO"; then :
12271 # Broken: fails on valid input.
12274 rm -f conftest.err conftest.i conftest.$ac_ext
12276 # OK, works on sane cases. Now check whether nonexistent headers
12277 # can be detected and how.
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <ac_nonexistent.h>
12282 if ac_fn_cxx_try_cpp "$LINENO"; then :
12283 # Broken: success on invalid input.
12286 # Passes both tests.
12290 rm -f conftest.err conftest.i conftest.$ac_ext
12293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12294 rm -f conftest.i conftest.err conftest.$ac_ext
12295 if $ac_preproc_ok; then :
12300 ac_cv_prog_CXXCPP=$CXXCPP
12303 CXXCPP=$ac_cv_prog_CXXCPP
12305 ac_cv_prog_CXXCPP=$CXXCPP
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12308 $as_echo "$CXXCPP" >&6; }
12309 ac_preproc_ok=false
12310 for ac_cxx_preproc_warn_flag in '' yes
12312 # Use a header file that comes with gcc, so configuring glibc
12313 # with a fresh cross-compiler works.
12314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315 # <limits.h> exists even on freestanding compilers.
12316 # On the NeXT, cc -E runs the code through the compiler's parser,
12317 # not just through cpp. "Syntax error" is here to catch this case.
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 # include <limits.h>
12323 # include <assert.h>
12327 if ac_fn_cxx_try_cpp "$LINENO"; then :
12330 # Broken: fails on valid input.
12333 rm -f conftest.err conftest.i conftest.$ac_ext
12335 # OK, works on sane cases. Now check whether nonexistent headers
12336 # can be detected and how.
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12339 #include <ac_nonexistent.h>
12341 if ac_fn_cxx_try_cpp "$LINENO"; then :
12342 # Broken: success on invalid input.
12345 # Passes both tests.
12349 rm -f conftest.err conftest.i conftest.$ac_ext
12352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12353 rm -f conftest.i conftest.err conftest.$ac_ext
12354 if $ac_preproc_ok; then :
12357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12359 _lt_caught_CXX_error=yes; }
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12369 _lt_caught_CXX_error=yes
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381 archive_cmds_need_lc_CXX=no
12382 allow_undefined_flag_CXX=
12383 always_export_symbols_CXX=no
12384 archive_expsym_cmds_CXX=
12385 compiler_needs_object_CXX=no
12386 export_dynamic_flag_spec_CXX=
12387 hardcode_direct_CXX=no
12388 hardcode_direct_absolute_CXX=no
12389 hardcode_libdir_flag_spec_CXX=
12390 hardcode_libdir_flag_spec_ld_CXX=
12391 hardcode_libdir_separator_CXX=
12392 hardcode_minus_L_CXX=no
12393 hardcode_shlibpath_var_CXX=unsupported
12394 hardcode_automatic_CXX=no
12395 inherit_rpath_CXX=no
12397 module_expsym_cmds_CXX=
12398 link_all_deplibs_CXX=unknown
12399 old_archive_cmds_CXX=$old_archive_cmds
12400 no_undefined_flag_CXX=
12401 whole_archive_flag_spec_CXX=
12402 enable_shared_with_static_runtimes_CXX=no
12404 # Source file extension for C++ test sources.
12407 # Object file extension for compiled C++ test sources.
12411 # No sense in running all these tests if we already determined that
12412 # the CXX compiler isn't working. Some variables (like enable_shared)
12413 # are currently assumed to apply to all compilers on this platform,
12414 # and will be corrupted by setting them based on a non-working compiler.
12415 if test "$_lt_caught_CXX_error" != yes; then
12416 # Code to be used in simple compile tests
12417 lt_simple_compile_test_code="int some_variable = 0;"
12419 # Code to be used in simple link tests
12420 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12422 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12429 # If no C compiler was specified, use CC.
12432 # If no C compiler flags were specified, use CFLAGS.
12433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12435 # Allow CC to be a program name with arguments.
12439 # save warnings/boilerplate of simple test code
12440 ac_outfile=conftest.$ac_objext
12441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12443 _lt_compiler_boilerplate=`cat conftest.err`
12446 ac_outfile=conftest.$ac_objext
12447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12449 _lt_linker_boilerplate=`cat conftest.err`
12453 # Allow CC to be a program name with arguments.
12458 lt_save_with_gnu_ld=$with_gnu_ld
12459 lt_save_path_LD=$lt_cv_path_LD
12460 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12461 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12463 $as_unset lt_cv_prog_gnu_ld
12465 if test -n "${lt_cv_path_LDCXX+set}"; then
12466 lt_cv_path_LD=$lt_cv_path_LDCXX
12468 $as_unset lt_cv_path_LD
12470 test -z "${LDCXX+set}" || LD=$LDCXX
12474 for cc_temp in $compiler""; do
12476 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12477 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12482 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12485 if test -n "$compiler"; then
12486 # We don't want -fno-exception when compiling C++ code, so set the
12487 # no_builtin_flag separately
12488 if test "$GXX" = yes; then
12489 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12491 lt_prog_compiler_no_builtin_flag_CXX=
12494 if test "$GXX" = yes; then
12495 # Set up default GNU C++ configuration
12499 # Check whether --with-gnu-ld was given.
12500 if test "${with_gnu_ld+set}" = set; then :
12501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12507 if test "$GCC" = yes; then
12508 # Check if gcc -print-prog-name=ld gives a path.
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12510 $as_echo_n "checking for ld used by $CC... " >&6; }
12513 # gcc leaves a trailing carriage return which upsets mingw
12514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12519 # Accept absolute paths.
12521 re_direlt='/[^/][^/]*/\.\./'
12522 # Canonicalize the pathname of ld
12523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12527 test -z "$LD" && LD="$ac_prog"
12530 # If it fails, then pretend we aren't using GCC.
12534 # If it is relative, then search for the first ld in PATH.
12535 with_gnu_ld=unknown
12538 elif test "$with_gnu_ld" = yes; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12540 $as_echo_n "checking for GNU ld... " >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12543 $as_echo_n "checking for non-GNU ld... " >&6; }
12545 if test "${lt_cv_path_LD+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 if test -z "$LD"; then
12549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12550 for ac_dir in $PATH; do
12552 test -z "$ac_dir" && ac_dir=.
12553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12554 lt_cv_path_LD="$ac_dir/$ac_prog"
12555 # Check to see if the program is GNU ld. I'd rather use --version,
12556 # but apparently some variants of GNU ld only accept -v.
12557 # Break only if it was the GNU/non-GNU ld that we prefer.
12558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12559 *GNU* | *'with BFD'*)
12560 test "$with_gnu_ld" != no && break
12563 test "$with_gnu_ld" != yes && break
12570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12574 LD="$lt_cv_path_LD"
12575 if test -n "$LD"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12577 $as_echo "$LD" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12584 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12585 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12588 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12589 case `$LD -v 2>&1 </dev/null` in
12590 *GNU* | *'with BFD'*)
12591 lt_cv_prog_gnu_ld=yes
12594 lt_cv_prog_gnu_ld=no
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12599 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12600 with_gnu_ld=$lt_cv_prog_gnu_ld
12608 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12609 # archiving commands below assume that GNU ld is being used.
12610 if test "$with_gnu_ld" = yes; then
12611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12617 # If archive_cmds runs LD, not CC, wlarc should be empty
12618 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12619 # investigate it a little bit more. (MM)
12622 # ancient GNU ld didn't support --whole-archive et. al.
12623 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12624 $GREP 'no-whole-archive' > /dev/null; then
12625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12627 whole_archive_flag_spec_CXX=
12633 # A generic and very simple default shared library creation
12634 # command for GNU C++ for the case where it uses the native
12635 # linker, instead of GNU ld. If possible, this setting should
12636 # overridden to take advantage of the native linker features on
12637 # the platform it is being used on.
12638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12641 # Commands to make compiler produce verbose output that lists
12642 # what "hidden" libraries, object files and flags are used when
12643 # linking a shared library.
12644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12652 # PORTME: fill in a description of your system's C++ link characteristics
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12654 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12658 # FIXME: insert proper C++ library support
12662 if test "$host_cpu" = ia64; then
12663 # On IA64, the linker does run time linking by default, so we don't
12664 # have to do anything special.
12665 aix_use_runtimelinking=no
12666 exp_sym_flag='-Bexport'
12669 aix_use_runtimelinking=no
12671 # Test if we are trying to use run time linking or normal
12672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12673 # need to do runtime linking.
12674 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12675 for ld_flag in $LDFLAGS; do
12678 aix_use_runtimelinking=yes
12686 exp_sym_flag='-bexport'
12687 no_entry_flag='-bnoentry'
12690 # When large executables or shared objects are built, AIX ld can
12691 # have problems creating the table of contents. If linking a library
12692 # or program results in "error TOC overflow" add -mminimal-toc to
12693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12696 archive_cmds_CXX=''
12697 hardcode_direct_CXX=yes
12698 hardcode_direct_absolute_CXX=yes
12699 hardcode_libdir_separator_CXX=':'
12700 link_all_deplibs_CXX=yes
12701 file_list_spec_CXX='${wl}-f,'
12703 if test "$GXX" = yes; then
12704 case $host_os in aix4.[012]|aix4.[012].*)
12705 # We only want to do this on AIX 4.2 and lower, the check
12706 # below for broken collect2 doesn't work under 4.3+
12707 collect2name=`${CC} -print-prog-name=collect2`
12708 if test -f "$collect2name" &&
12709 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12711 # We have reworked collect2
12714 # We have old collect2
12715 hardcode_direct_CXX=unsupported
12716 # It fails to find uninstalled libraries when the uninstalled
12717 # path is not listed in the libpath. Setting hardcode_minus_L
12718 # to unsupported forces relinking
12719 hardcode_minus_L_CXX=yes
12720 hardcode_libdir_flag_spec_CXX='-L$libdir'
12721 hardcode_libdir_separator_CXX=
12724 shared_flag='-shared'
12725 if test "$aix_use_runtimelinking" = yes; then
12726 shared_flag="$shared_flag "'${wl}-G'
12730 if test "$host_cpu" = ia64; then
12731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12732 # chokes on -Wl,-G. The following line is correct:
12735 if test "$aix_use_runtimelinking" = yes; then
12736 shared_flag='${wl}-G'
12738 shared_flag='${wl}-bM:SRE'
12743 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12744 # It seems that -bexpall does not export symbols beginning with
12745 # underscore (_), so it is better to generate a list of symbols to
12747 always_export_symbols_CXX=yes
12748 if test "$aix_use_runtimelinking" = yes; then
12749 # Warning - without using the other runtime loading flags (-brtl),
12750 # -berok will link without error, but may produce a broken library.
12751 allow_undefined_flag_CXX='-berok'
12752 # Determine the default libpath from the value encoded in an empty
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12765 if ac_fn_cxx_try_link "$LINENO"; then :
12767 lt_aix_libpath_sed='
12768 /Import File Strings/,/^$/ {
12774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12775 # Check for a 64-bit object if we didn't find anything.
12776 if test -z "$aix_libpath"; then
12777 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12784 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12786 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12788 if test "$host_cpu" = ia64; then
12789 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12790 allow_undefined_flag_CXX="-z nodefs"
12791 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"
12793 # Determine the default libpath from the value encoded in an
12794 # empty executable.
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12806 if ac_fn_cxx_try_link "$LINENO"; then :
12808 lt_aix_libpath_sed='
12809 /Import File Strings/,/^$/ {
12815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12816 # Check for a 64-bit object if we didn't find anything.
12817 if test -z "$aix_libpath"; then
12818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12825 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12826 # Warning - without using the other run time loading flags,
12827 # -berok will link without error, but may produce a broken library.
12828 no_undefined_flag_CXX=' ${wl}-bernotok'
12829 allow_undefined_flag_CXX=' ${wl}-berok'
12830 # Exported symbols can be pulled into shared objects from archives
12831 whole_archive_flag_spec_CXX='$convenience'
12832 archive_cmds_need_lc_CXX=yes
12833 # This is similar to how AIX traditionally builds its shared
12835 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'
12841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12842 allow_undefined_flag_CXX=unsupported
12843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12844 # support --undefined. This deserves some investigation. FIXME
12845 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852 case $cc_basename in
12854 # FIXME: insert proper C++ library support
12860 cygwin* | mingw* | pw32* | cegcc*)
12861 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12862 # as there is no search path for DLLs.
12863 hardcode_libdir_flag_spec_CXX='-L$libdir'
12864 allow_undefined_flag_CXX=unsupported
12865 always_export_symbols_CXX=no
12866 enable_shared_with_static_runtimes_CXX=yes
12868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12869 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'
12870 # If the export-symbols file already is a .def file (1st line
12871 # is EXPORTS), use it as is; otherwise, prepend...
12872 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12873 cp $export_symbols $output_objdir/$soname.def;
12875 echo EXPORTS > $output_objdir/$soname.def;
12876 cat $export_symbols >> $output_objdir/$soname.def;
12878 $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'
12883 darwin* | rhapsody*)
12886 archive_cmds_need_lc_CXX=no
12887 hardcode_direct_CXX=no
12888 hardcode_automatic_CXX=yes
12889 hardcode_shlibpath_var_CXX=unsupported
12890 whole_archive_flag_spec_CXX=''
12891 link_all_deplibs_CXX=yes
12892 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12893 case $cc_basename in
12894 ifort*) _lt_dar_can_shared=yes ;;
12895 *) _lt_dar_can_shared=$GCC ;;
12897 if test "$_lt_dar_can_shared" = "yes"; then
12898 output_verbose_link_cmd=echo
12899 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}"
12900 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12901 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}"
12902 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}"
12903 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12904 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}"
12905 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}"
12915 case $cc_basename in
12917 # FIXME: insert proper C++ library support
12921 # Green Hills C++ Compiler
12922 # FIXME: insert proper C++ library support
12926 # FIXME: insert proper C++ library support
12933 # C++ shared libraries reported to be fairly broken before
12939 archive_cmds_need_lc_CXX=no
12942 freebsd* | dragonfly*)
12943 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12952 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12953 hardcode_libdir_separator_CXX=:
12954 export_dynamic_flag_spec_CXX='${wl}-E'
12955 hardcode_direct_CXX=yes
12956 hardcode_minus_L_CXX=yes # Not in the search PATH,
12957 # but as the default
12958 # location of the library.
12960 case $cc_basename in
12962 # FIXME: insert proper C++ library support
12966 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'
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
12971 # There doesn't appear to be a way to prevent this compiler from
12972 # explicitly linking system object files so we need to strip them
12973 # from the output so that they don't get included in the library
12975 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; $ECHO "X$list" | $Xsed'
12978 if test "$GXX" = yes; then
12979 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12981 # FIXME: insert proper C++ library support
12989 if test $with_gnu_ld = no; then
12990 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12991 hardcode_libdir_separator_CXX=:
12997 export_dynamic_flag_spec_CXX='${wl}-E'
13003 hardcode_direct_CXX=no
13004 hardcode_shlibpath_var_CXX=no
13007 hardcode_direct_CXX=yes
13008 hardcode_direct_absolute_CXX=yes
13009 hardcode_minus_L_CXX=yes # Not in the search PATH,
13010 # but as the default
13011 # location of the library.
13015 case $cc_basename in
13017 # FIXME: insert proper C++ library support
13023 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13036 # There doesn't appear to be a way to prevent this compiler from
13037 # explicitly linking system object files so we need to strip them
13038 # from the output so that they don't get included in the library
13040 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; $ECHO "X$list" | $Xsed'
13043 if test "$GXX" = yes; then
13044 if test $with_gnu_ld = no; then
13047 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13058 # FIXME: insert proper C++ library support
13066 hardcode_direct_CXX=no
13067 hardcode_shlibpath_var_CXX=no
13068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13069 export_dynamic_flag_spec_CXX='${wl}-E'
13070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071 # Instead, shared libraries are loaded at an image base (0x10000000 by
13072 # default) and relocated if they conflict, which is a slow very memory
13073 # consuming and fragmenting process. To avoid this, we pick a random,
13074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13076 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'
13077 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'
13080 case $cc_basename in
13083 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13085 # Archives containing C++ object files must be created using
13086 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13087 # necessary to make sure instantiated templates are included
13089 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13092 if test "$GXX" = yes; then
13093 if test "$with_gnu_ld" = no; then
13094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13099 link_all_deplibs_CXX=yes
13102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13103 hardcode_libdir_separator_CXX=:
13104 inherit_rpath_CXX=yes
13107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13108 case $cc_basename in
13110 # Kuck and Associates, Inc. (KAI) C++ Compiler
13112 # KCC will only create a shared library if the output file
13113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114 # to its proper name (with version) after linking.
13115 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'
13116 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'
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
13121 # There doesn't appear to be a way to prevent this compiler from
13122 # explicitly linking system object files so we need to strip them
13123 # from the output so that they don't get included in the library
13125 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; $ECHO "X$list" | $Xsed'
13127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13130 # Archives containing C++ object files must be created using
13131 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13137 # version 8.0 and above of icpc choke on multiply defined symbols
13138 # if we add $predep_objects and $postdep_objects, however 7.1 and
13139 # earlier do not add the objects themselves.
13140 case `$CC -V 2>&1` in
13142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143 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'
13145 *) # Version 8.0 or newer
13148 ia64*) tmp_idyn=' -i_dynamic';;
13150 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13151 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'
13154 archive_cmds_need_lc_CXX=no
13155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13156 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13157 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13160 # Portland Group C++ compiler
13162 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13163 prelink_cmds_CXX='tpldir=Template.dir~
13165 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13166 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13167 old_archive_cmds_CXX='tpldir=Template.dir~
13169 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13170 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13172 archive_cmds_CXX='tpldir=Template.dir~
13174 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13175 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13176 archive_expsym_cmds_CXX='tpldir=Template.dir~
13178 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13179 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13181 *) # Version 6 will use weak symbols
13182 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13183 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'
13187 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13189 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 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'
13196 runpath_var=LD_RUN_PATH
13197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13198 hardcode_libdir_separator_CXX=:
13200 # Commands to make compiler produce verbose output that lists
13201 # what "hidden" libraries, object files and flags are used when
13202 # linking a shared library.
13204 # There doesn't appear to be a way to prevent this compiler from
13205 # explicitly linking system object files so we need to strip them
13206 # from the output so that they don't get included in the library
13208 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13211 # IBM XL 8.0 on PPC, with GNU ld
13212 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13214 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215 if test "x$supports_anon_versioning" = xyes; then
13216 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218 echo "local: *; };" >> $output_objdir/$libname.ver~
13219 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13223 case `$CC -V 2>&1 | sed 5q` in
13226 no_undefined_flag_CXX=' -zdefs'
13227 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228 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'
13229 hardcode_libdir_flag_spec_CXX='-R$libdir'
13230 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13231 compiler_needs_object_CXX=yes
13233 # Not sure whether something based on
13234 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13236 output_verbose_link_cmd='echo'
13238 # Archives containing C++ object files must be created using
13239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13240 # necessary to make sure instantiated templates are included
13242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13250 # FIXME: insert proper C++ library support
13255 # FIXME: insert proper C++ library support
13260 case $cc_basename in
13262 # FIXME: insert proper C++ library support
13266 # FIXME: insert proper C++ library support
13273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13274 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13276 hardcode_libdir_flag_spec_CXX='-R$libdir'
13277 hardcode_direct_CXX=yes
13278 hardcode_shlibpath_var_CXX=no
13280 # Workaround some broken pre-1.5 toolchains
13281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13289 # C++ shared libraries are fairly broken
13294 if test -f /usr/libexec/ld.so; then
13295 hardcode_direct_CXX=yes
13296 hardcode_shlibpath_var_CXX=no
13297 hardcode_direct_absolute_CXX=yes
13298 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13302 export_dynamic_flag_spec_CXX='${wl}-E'
13303 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13305 output_verbose_link_cmd=echo
13311 osf3* | osf4* | osf5*)
13312 case $cc_basename in
13314 # Kuck and Associates, Inc. (KAI) C++ Compiler
13316 # KCC will only create a shared library if the output file
13317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13318 # to its proper name (with version) after linking.
13319 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'
13321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322 hardcode_libdir_separator_CXX=:
13324 # Archives containing C++ object files must be created using
13325 # the KAI C++ compiler.
13327 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13328 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13332 # Rational C++ 2.4.1
13333 # FIXME: insert proper C++ library support
13339 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13340 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344 allow_undefined_flag_CXX=' -expect_unresolved \*'
13345 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13346 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13347 echo "-hidden">> $lib.exp~
13348 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13354 hardcode_libdir_separator_CXX=:
13356 # Commands to make compiler produce verbose output that lists
13357 # what "hidden" libraries, object files and flags are used when
13358 # linking a shared library.
13360 # There doesn't appear to be a way to prevent this compiler from
13361 # explicitly linking system object files so we need to strip them
13362 # from the output so that they don't get included in the library
13364 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13367 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13368 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13371 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13374 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13379 hardcode_libdir_separator_CXX=:
13381 # Commands to make compiler produce verbose output that lists
13382 # what "hidden" libraries, object files and flags are used when
13383 # linking a shared library.
13384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13387 # FIXME: insert proper C++ library support
13395 # FIXME: insert proper C++ library support
13400 case $cc_basename in
13403 # FIXME: insert proper C++ library support
13408 # FIXME: insert proper C++ library support
13412 # FIXME: insert proper C++ library support
13419 case $cc_basename in
13421 # Sun C++ 4.2, 5.x and Centerline C++
13422 archive_cmds_need_lc_CXX=yes
13423 no_undefined_flag_CXX=' -zdefs'
13424 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13425 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13426 $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'
13428 hardcode_libdir_flag_spec_CXX='-R$libdir'
13429 hardcode_shlibpath_var_CXX=no
13431 solaris2.[0-5] | solaris2.[0-5].*) ;;
13433 # The compiler driver will combine and reorder linker options,
13434 # but understands `-z linker_flag'.
13435 # Supported since Solaris 2.6 (maybe 2.5.1?)
13436 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13439 link_all_deplibs_CXX=yes
13441 output_verbose_link_cmd='echo'
13443 # Archives containing C++ object files must be created using
13444 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13445 # necessary to make sure instantiated templates are included
13447 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13450 # Green Hills C++ Compiler
13451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13453 # The C++ compiler must be used to create the archive.
13454 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13457 # GNU C++ compiler with Solaris linker
13458 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13459 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13460 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13461 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13462 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13463 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13465 # Commands to make compiler produce verbose output that lists
13466 # what "hidden" libraries, object files and flags are used when
13467 # linking a shared library.
13468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13470 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13472 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13473 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13474 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13476 # Commands to make compiler produce verbose output that lists
13477 # what "hidden" libraries, object files and flags are used when
13478 # linking a shared library.
13479 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13482 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13484 solaris2.[0-5] | solaris2.[0-5].*) ;;
13486 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13495 no_undefined_flag_CXX='${wl}-z,text'
13496 archive_cmds_need_lc_CXX=no
13497 hardcode_shlibpath_var_CXX=no
13498 runpath_var='LD_RUN_PATH'
13500 case $cc_basename in
13502 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13512 sysv5* | sco3.2v5* | sco5v6*)
13513 # Note: We can NOT use -z defs as we might desire, because we do not
13514 # link with -lc, and that would cause any symbols used from libc to
13515 # always be unresolved, which means just about no library would
13516 # ever link correctly. If we're not using GNU ld we use -z text
13517 # though, which does catch some bad symbols but isn't as heavy-handed
13519 no_undefined_flag_CXX='${wl}-z,text'
13520 allow_undefined_flag_CXX='${wl}-z,nodefs'
13521 archive_cmds_need_lc_CXX=no
13522 hardcode_shlibpath_var_CXX=no
13523 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13524 hardcode_libdir_separator_CXX=':'
13525 link_all_deplibs_CXX=yes
13526 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13527 runpath_var='LD_RUN_PATH'
13529 case $cc_basename in
13531 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13542 case $cc_basename in
13544 # NonStop-UX NCC 3.20
13545 # FIXME: insert proper C++ library support
13549 # FIXME: insert proper C++ library support
13556 # FIXME: insert proper C++ library support
13561 # FIXME: insert proper C++ library support
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13567 $as_echo "$ld_shlibs_CXX" >&6; }
13568 test "$ld_shlibs_CXX" = no && can_build_shared=no
13574 ## There is no encapsulation within the following macros, do not change
13575 ## the running order or otherwise move them around unless you know exactly
13576 ## what you are doing...
13577 # Dependencies to place before and after the object being linked:
13578 predep_objects_CXX=
13579 postdep_objects_CXX=
13582 compiler_lib_search_path_CXX=
13584 cat > conftest.$ac_ext <<_LT_EOF
13588 Foo (void) { a = 0; }
13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595 (eval $ac_compile) 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 # Parse the compiler output and extract the necessary
13600 # objects, libraries and library flags.
13602 # Sentinel used to keep track of whether or not we are before
13603 # the conftest object file.
13604 pre_test_object_deps_done=no
13606 for p in `eval "$output_verbose_link_cmd"`; do
13610 # Some compilers place space between "-{L,R}" and the path.
13611 # Remove the space.
13612 if test $p = "-L" ||
13613 test $p = "-R"; then
13620 if test "$pre_test_object_deps_done" = no; then
13623 # Internal compiler library paths should come after those
13624 # provided the user. The postdeps already come after the
13625 # user supplied libs so there is no need to process them.
13626 if test -z "$compiler_lib_search_path_CXX"; then
13627 compiler_lib_search_path_CXX="${prev}${p}"
13629 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13632 # The "-l" case would never come before the object being
13633 # linked, so don't bother handling this case.
13636 if test -z "$postdeps_CXX"; then
13637 postdeps_CXX="${prev}${p}"
13639 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13645 # This assumes that the test object file only shows up
13646 # once in the compiler output.
13647 if test "$p" = "conftest.$objext"; then
13648 pre_test_object_deps_done=yes
13652 if test "$pre_test_object_deps_done" = no; then
13653 if test -z "$predep_objects_CXX"; then
13654 predep_objects_CXX="$p"
13656 predep_objects_CXX="$predep_objects_CXX $p"
13659 if test -z "$postdep_objects_CXX"; then
13660 postdep_objects_CXX="$p"
13662 postdep_objects_CXX="$postdep_objects_CXX $p"
13667 *) ;; # Ignore the rest.
13675 echo "libtool.m4: error: problem compiling CXX test program"
13678 $RM -f confest.$objext
13680 # PORTME: override above test on systems where it is broken
13683 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13684 # hack all around it, let's just trust "g++" to DTRT.
13685 predep_objects_CXX=
13686 postdep_objects_CXX=
13691 case `$CC -V 2>&1 | sed 5q` in
13695 # The more standards-conforming stlport4 library is
13696 # incompatible with the Cstd library. Avoid specifying
13697 # it if it's in CXXFLAGS. Ignore libCrun as
13698 # -library=stlport4 depends on it.
13699 case " $CXX $CXXFLAGS " in
13700 *" -library=stlport4 "*)
13701 solaris_use_stlport4=yes
13705 if test "$solaris_use_stlport4" != yes; then
13706 postdeps_CXX='-library=Cstd -library=Crun'
13713 case $cc_basename in
13715 # The more standards-conforming stlport4 library is
13716 # incompatible with the Cstd library. Avoid specifying
13717 # it if it's in CXXFLAGS. Ignore libCrun as
13718 # -library=stlport4 depends on it.
13719 case " $CXX $CXXFLAGS " in
13720 *" -library=stlport4 "*)
13721 solaris_use_stlport4=yes
13725 # Adding this requires a known-good setup of shared libraries for
13726 # Sun compiler versions before 5.6, else PIC objects from an old
13727 # archive will be linked into the output, leading to subtle bugs.
13728 if test "$solaris_use_stlport4" != yes; then
13729 postdeps_CXX='-library=Cstd -library=Crun'
13737 case " $postdeps_CXX " in
13738 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13740 compiler_lib_search_dirs_CXX=
13741 if test -n "${compiler_lib_search_path_CXX}"; then
13742 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13775 lt_prog_compiler_wl_CXX=
13776 lt_prog_compiler_pic_CXX=
13777 lt_prog_compiler_static_CXX=
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13780 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13782 # C++ specific cases for pic, static, wl, etc.
13783 if test "$GXX" = yes; then
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_static_CXX='-static'
13789 # All AIX code is PIC.
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 now supports IA64 processor
13792 lt_prog_compiler_static_CXX='-Bstatic'
13799 # see comment about AmigaOS4 .so support
13800 lt_prog_compiler_pic_CXX='-fPIC'
13803 # FIXME: we need at least 68020 code to build shared libraries, but
13804 # adding the `-m68020' flag to GCC prevents building anything better,
13806 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13812 # PIC is the default for these OSes.
13814 mingw* | cygwin* | os2* | pw32* | cegcc*)
13815 # This hack is so that the source file can tell whether it is being
13816 # built for inclusion in a dll (and should export symbols for example).
13817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13818 # (--disable-auto-import) libraries
13819 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13821 darwin* | rhapsody*)
13822 # PIC is the default on this platform
13823 # Common symbols not allowed in MH_DYLIB files
13824 lt_prog_compiler_pic_CXX='-fno-common'
13827 # DJGPP does not support shared libraries at all
13828 lt_prog_compiler_pic_CXX=
13831 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13832 # Instead, we relocate shared libraries at runtime.
13835 if test -d /usr/nec; then
13836 lt_prog_compiler_pic_CXX=-Kconform_pic
13840 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13841 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13842 # sets the default TLS model and affects inlining.
13847 lt_prog_compiler_pic_CXX='-fPIC'
13852 # QNX uses GNU C++, but need to define -shared option too, otherwise
13853 # it will coredump.
13854 lt_prog_compiler_pic_CXX='-fPIC -shared'
13857 lt_prog_compiler_pic_CXX='-fPIC'
13863 # All AIX code is PIC.
13864 if test "$host_cpu" = ia64; then
13865 # AIX 5 now supports IA64 processor
13866 lt_prog_compiler_static_CXX='-Bstatic'
13868 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13872 case $cc_basename in
13874 # Green Hills C++ Compiler
13875 # _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"
13880 case $cc_basename in
13882 lt_prog_compiler_pic_CXX='-KPIC'
13885 # Green Hills C++ Compiler
13886 lt_prog_compiler_pic_CXX='-pic'
13892 freebsd* | dragonfly*)
13893 # FreeBSD uses GNU C++
13895 hpux9* | hpux10* | hpux11*)
13896 case $cc_basename in
13898 lt_prog_compiler_wl_CXX='-Wl,'
13899 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13900 if test "$host_cpu" != ia64; then
13901 lt_prog_compiler_pic_CXX='+Z'
13905 lt_prog_compiler_wl_CXX='-Wl,'
13906 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13912 lt_prog_compiler_pic_CXX='+Z'
13921 # This is c89, which is MS Visual C++ (no shared libs)
13922 # Anyone wants to do a port?
13924 irix5* | irix6* | nonstopux*)
13925 case $cc_basename in
13927 lt_prog_compiler_wl_CXX='-Wl,'
13928 lt_prog_compiler_static_CXX='-non_shared'
13929 # CC pic flag -KPIC is the default.
13935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13936 case $cc_basename in
13939 lt_prog_compiler_wl_CXX='--backend -Wl,'
13940 lt_prog_compiler_pic_CXX='-fPIC'
13943 # old Intel C++ for x86_64 which still supported -KPIC.
13944 lt_prog_compiler_wl_CXX='-Wl,'
13945 lt_prog_compiler_pic_CXX='-KPIC'
13946 lt_prog_compiler_static_CXX='-static'
13949 # Intel C++, used to be incompatible with GCC.
13950 # ICC 10 doesn't accept -KPIC any more.
13951 lt_prog_compiler_wl_CXX='-Wl,'
13952 lt_prog_compiler_pic_CXX='-fPIC'
13953 lt_prog_compiler_static_CXX='-static'
13956 # Portland Group C++ compiler
13957 lt_prog_compiler_wl_CXX='-Wl,'
13958 lt_prog_compiler_pic_CXX='-fpic'
13959 lt_prog_compiler_static_CXX='-Bstatic'
13963 # Make sure the PIC flag is empty. It appears that all Alpha
13964 # Linux and Compaq Tru64 Unix objects are PIC.
13965 lt_prog_compiler_pic_CXX=
13966 lt_prog_compiler_static_CXX='-non_shared'
13969 # IBM XL 8.0 on PPC
13970 lt_prog_compiler_wl_CXX='-Wl,'
13971 lt_prog_compiler_pic_CXX='-qpic'
13972 lt_prog_compiler_static_CXX='-qstaticlink'
13975 case `$CC -V 2>&1 | sed 5q` in
13978 lt_prog_compiler_pic_CXX='-KPIC'
13979 lt_prog_compiler_static_CXX='-Bstatic'
13980 lt_prog_compiler_wl_CXX='-Qoption ld '
13991 case $cc_basename in
13993 lt_prog_compiler_pic_CXX='-W c,exportall'
13999 netbsd* | netbsdelf*-gnu)
14002 # QNX uses GNU C++, but need to define -shared option too, otherwise
14003 # it will coredump.
14004 lt_prog_compiler_pic_CXX='-fPIC -shared'
14006 osf3* | osf4* | osf5*)
14007 case $cc_basename in
14009 lt_prog_compiler_wl_CXX='--backend -Wl,'
14012 # Rational C++ 2.4.1
14013 lt_prog_compiler_pic_CXX='-pic'
14016 # Digital/Compaq C++
14017 lt_prog_compiler_wl_CXX='-Wl,'
14018 # Make sure the PIC flag is empty. It appears that all Alpha
14019 # Linux and Compaq Tru64 Unix objects are PIC.
14020 lt_prog_compiler_pic_CXX=
14021 lt_prog_compiler_static_CXX='-non_shared'
14030 case $cc_basename in
14032 # Sun C++ 4.2, 5.x and Centerline C++
14033 lt_prog_compiler_pic_CXX='-KPIC'
14034 lt_prog_compiler_static_CXX='-Bstatic'
14035 lt_prog_compiler_wl_CXX='-Qoption ld '
14038 # Green Hills C++ Compiler
14039 lt_prog_compiler_pic_CXX='-PIC'
14046 case $cc_basename in
14049 lt_prog_compiler_pic_CXX='-pic'
14050 lt_prog_compiler_static_CXX='-Bstatic'
14054 lt_prog_compiler_pic_CXX='-pic'
14060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14061 case $cc_basename in
14063 lt_prog_compiler_wl_CXX='-Wl,'
14064 lt_prog_compiler_pic_CXX='-KPIC'
14065 lt_prog_compiler_static_CXX='-Bstatic'
14070 case $cc_basename in
14072 # NonStop-UX NCC 3.20
14073 lt_prog_compiler_pic_CXX='-KPIC'
14082 lt_prog_compiler_can_build_shared_CXX=no
14088 # For platforms which do not support PIC, -DPIC is meaningless:
14090 lt_prog_compiler_pic_CXX=
14093 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14097 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14102 # Check to make sure the PIC flag actually works.
14104 if test -n "$lt_prog_compiler_pic_CXX"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14107 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14110 lt_cv_prog_compiler_pic_works_CXX=no
14111 ac_outfile=conftest.$ac_objext
14112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14113 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14114 # Insert the option either (1) after the last *FLAGS variable, or
14115 # (2) before a word containing "conftest.", or (3) at the end.
14116 # Note that $ac_compile itself does not contain backslashes and begins
14117 # with a dollar sign (not a hyphen), so the echo should work correctly.
14118 # The option is referenced via a variable to avoid confusing sed.
14119 lt_compile=`echo "$ac_compile" | $SED \
14120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122 -e 's:$: $lt_compiler_flag:'`
14123 (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124 (eval "$lt_compile" 2>conftest.err)
14126 cat conftest.err >&5
14127 echo "$as_me:14127: \$? = $ac_status" >&5
14128 if (exit $ac_status) && test -s "$ac_outfile"; then
14129 # The compiler can only warn and ignore the option if not recognized
14130 # So say no if there are warnings other than the usual output.
14131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14134 lt_cv_prog_compiler_pic_works_CXX=yes
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14141 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14143 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14144 case $lt_prog_compiler_pic_CXX in
14146 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14149 lt_prog_compiler_pic_CXX=
14150 lt_prog_compiler_can_build_shared_CXX=no
14158 # Check to make sure the static flag actually works.
14160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14163 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14164 $as_echo_n "(cached) " >&6
14166 lt_cv_prog_compiler_static_works_CXX=no
14167 save_LDFLAGS="$LDFLAGS"
14168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14171 # The linker can only warn and ignore the option if not recognized
14172 # So say no if there are warnings
14173 if test -s conftest.err; then
14174 # Append any errors to the config.log.
14175 cat conftest.err 1>&5
14176 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14178 if diff conftest.exp conftest.er2 >/dev/null; then
14179 lt_cv_prog_compiler_static_works_CXX=yes
14182 lt_cv_prog_compiler_static_works_CXX=yes
14186 LDFLAGS="$save_LDFLAGS"
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14195 lt_prog_compiler_static_CXX=
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14203 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14206 lt_cv_prog_compiler_c_o_CXX=no
14207 $RM -r conftest 2>/dev/null
14211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14213 lt_compiler_flag="-o out/conftest2.$ac_objext"
14214 # Insert the option either (1) after the last *FLAGS variable, or
14215 # (2) before a word containing "conftest.", or (3) at the end.
14216 # Note that $ac_compile itself does not contain backslashes and begins
14217 # with a dollar sign (not a hyphen), so the echo should work correctly.
14218 lt_compile=`echo "$ac_compile" | $SED \
14219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221 -e 's:$: $lt_compiler_flag:'`
14222 (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223 (eval "$lt_compile" 2>out/conftest.err)
14225 cat out/conftest.err >&5
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14229 # The compiler can only warn and ignore the option if not recognized
14230 # So say no if there are warnings
14231 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14234 lt_cv_prog_compiler_c_o_CXX=yes
14239 # SGI C++ compiler will create directory out/ii_files/ for
14240 # template instantiation
14241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14242 $RM out/* && rmdir out
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14249 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14255 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14258 lt_cv_prog_compiler_c_o_CXX=no
14259 $RM -r conftest 2>/dev/null
14263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14265 lt_compiler_flag="-o out/conftest2.$ac_objext"
14266 # Insert the option either (1) after the last *FLAGS variable, or
14267 # (2) before a word containing "conftest.", or (3) at the end.
14268 # Note that $ac_compile itself does not contain backslashes and begins
14269 # with a dollar sign (not a hyphen), so the echo should work correctly.
14270 lt_compile=`echo "$ac_compile" | $SED \
14271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14273 -e 's:$: $lt_compiler_flag:'`
14274 (eval echo "\"\$as_me:14274: $lt_compile\"" >&5)
14275 (eval "$lt_compile" 2>out/conftest.err)
14277 cat out/conftest.err >&5
14278 echo "$as_me:14278: \$? = $ac_status" >&5
14279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14281 # The compiler can only warn and ignore the option if not recognized
14282 # So say no if there are warnings
14283 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14286 lt_cv_prog_compiler_c_o_CXX=yes
14291 # SGI C++ compiler will create directory out/ii_files/ for
14292 # template instantiation
14293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14294 $RM out/* && rmdir out
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14306 hard_links="nottested"
14307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14308 # do not overwrite the value of need_locks provided by the user
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14310 $as_echo_n "checking if we can lock with hard links... " >&6; }
14313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14315 ln conftest.a conftest.b 2>&5 || hard_links=no
14316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14318 $as_echo "$hard_links" >&6; }
14319 if test "$hard_links" = no; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14321 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14333 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14336 # If we're using GNU nm, then we don't want the "-C" option.
14337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14338 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14339 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14341 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'
14345 export_symbols_cmds_CXX="$ltdll_cmds"
14347 cygwin* | mingw* | cegcc*)
14348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14350 linux* | k*bsd*-gnu)
14351 link_all_deplibs_CXX=no
14354 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14357 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14360 $as_echo "$ld_shlibs_CXX" >&6; }
14361 test "$ld_shlibs_CXX" = no && can_build_shared=no
14363 with_gnu_ld_CXX=$with_gnu_ld
14371 # Do we need to explicitly link libc?
14373 case "x$archive_cmds_need_lc_CXX" in
14375 # Assume -lc should be added
14376 archive_cmds_need_lc_CXX=yes
14378 if test "$enable_shared" = yes && test "$GCC" = yes; then
14379 case $archive_cmds_CXX in
14381 # FIXME: we may have to deal with multi-command sequences.
14384 # Test whether the compiler implicitly links with -lc since on some
14385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14386 # to ld, don't add -lc before -lgcc.
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14388 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14393 (eval $ac_compile) 2>&5
14395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14396 test $ac_status = 0; } 2>conftest.err; then
14399 libobjs=conftest.$ac_objext
14401 wl=$lt_prog_compiler_wl_CXX
14402 pic_flag=$lt_prog_compiler_pic_CXX
14408 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14409 allow_undefined_flag_CXX=
14410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14411 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414 test $ac_status = 0; }
14416 archive_cmds_need_lc_CXX=no
14418 archive_cmds_need_lc_CXX=yes
14420 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14422 cat conftest.err 1>&5
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14426 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14497 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14499 library_names_spec=
14500 libname_spec='lib$name'
14504 postuninstall_cmds=
14508 shlibpath_overrides_runpath=unknown
14510 dynamic_linker="$host_os ld.so"
14511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14512 need_lib_prefix=unknown
14513 hardcode_into_libs=no
14515 # when you set need_version to no, make sure it does not cause -set_version
14516 # flags to be left without arguments
14517 need_version=unknown
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14523 shlibpath_var=LIBPATH
14525 # AIX 3 has no versioning support, so we append a major version to the name.
14526 soname_spec='${libname}${release}${shared_ext}$major'
14533 hardcode_into_libs=yes
14534 if test "$host_cpu" = ia64; then
14535 # AIX 5 supports IA64
14536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14537 shlibpath_var=LD_LIBRARY_PATH
14539 # With GCC up to 2.95.x, collect2 would create an import file
14540 # for dependence libraries. The import file would start with
14541 # the line `#! .'. This would cause the generated library to
14542 # depend on `.', always an invalid library. This was fixed in
14543 # development snapshots of GCC prior to 3.0.
14545 aix4 | aix4.[01] | aix4.[01].*)
14546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14548 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14551 can_build_shared=no
14555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14556 # soname into executable. Probably we can add versioning support to
14557 # collect2, so additional links can be useful in future.
14558 if test "$aix_use_runtimelinking" = yes; then
14559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14560 # instead of lib<name>.a to let people know that these are not
14561 # typical AIX shared libraries.
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 # We preserve .a as extension for shared libraries through AIX4.2
14565 # and later when we are not doing run time linking.
14566 library_names_spec='${libname}${release}.a $libname.a'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LIBPATH
14576 # Since July 2007 AmigaOS4 officially supports .so libraries.
14577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 library_names_spec='$libname.ixlibrary $libname.a'
14582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14583 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14589 library_names_spec='${libname}${shared_ext}'
14590 dynamic_linker="$host_os ld.so"
14591 shlibpath_var=LIBRARY_PATH
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14603 # the default ld.so.conf also contains /usr/contrib/lib and
14604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14605 # libtool to hard-code these into programs
14608 cygwin* | mingw* | pw32* | cegcc*)
14609 version_type=windows
14614 case $GCC,$host_os in
14615 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14616 library_names_spec='$libname.dll.a'
14617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14618 postinstall_cmds='base_file=`basename \${file}`~
14619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14620 dldir=$destdir/`dirname \$dlpath`~
14621 test -d \$dldir || mkdir -p \$dldir~
14622 $install_prog $dir/$dlname \$dldir/$dlname~
14623 chmod a+x \$dldir/$dlname~
14624 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14625 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14628 dlpath=$dir/\$dldll~
14630 shlibpath_overrides_runpath=yes
14634 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14635 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14639 # MinGW DLLs use traditional 'lib' prefix
14640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14642 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14643 # It is most probably a Windows format PATH printed by
14644 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14645 # path with ; separators, and with drive letters. We can handle the
14646 # drive letters (cygwin fileutils understands them), so leave them,
14647 # especially as we might pass files found there to a mingw objdump,
14648 # which wouldn't understand a cygwinified path. Ahh.
14649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14655 # pw32 DLLs use 'pw' prefix rather than 'lib'
14656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14665 dynamic_linker='Win32 ld.exe'
14666 # FIXME: first we should search . and the directory the executable is in
14670 darwin* | rhapsody*)
14671 dynamic_linker="$host_os dyld"
14672 version_type=darwin
14675 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14676 soname_spec='${libname}${release}${major}$shared_ext'
14677 shlibpath_overrides_runpath=yes
14678 shlibpath_var=DYLD_LIBRARY_PATH
14679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14697 freebsd* | dragonfly*)
14698 # DragonFly does not have aout. When/if they implement a new
14699 # versioning mechanism, adjust this.
14700 if test -x /usr/bin/objformat; then
14701 objformat=`/usr/bin/objformat`
14704 freebsd[123]*) objformat=aout ;;
14705 *) objformat=elf ;;
14708 version_type=freebsd-$objformat
14709 case $version_type in
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14720 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=yes
14725 freebsd3.[01]* | freebsdelf3.[01]*)
14726 shlibpath_overrides_runpath=yes
14727 hardcode_into_libs=yes
14729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14731 shlibpath_overrides_runpath=no
14732 hardcode_into_libs=yes
14734 *) # from 4.6 on, and DragonFly
14735 shlibpath_overrides_runpath=yes
14736 hardcode_into_libs=yes
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 hardcode_into_libs=yes
14751 hpux9* | hpux10* | hpux11*)
14752 # Give a soname corresponding to the major version so that dld.sl refuses to
14753 # link against other versions.
14760 hardcode_into_libs=yes
14761 dynamic_linker="$host_os dld.so"
14762 shlibpath_var=LD_LIBRARY_PATH
14763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 if test "X$HPUX_IA64_MODE" = X32; then
14767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14775 hardcode_into_libs=yes
14776 dynamic_linker="$host_os dld.sl"
14777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14786 dynamic_linker="$host_os dld.sl"
14787 shlibpath_var=SHLIB_PATH
14788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14794 postinstall_cmds='chmod 555 $lib'
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=no
14806 hardcode_into_libs=yes
14809 irix5* | irix6* | nonstopux*)
14811 nonstopux*) version_type=nonstopux ;;
14813 if test "$lt_cv_prog_gnu_ld" = yes; then
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14824 irix5* | nonstopux*)
14825 libsuff= shlibsuff=
14828 case $LD in # libtool.m4 will add one of these switches to LD
14829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14830 libsuff= shlibsuff= libmagic=32-bit;;
14831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14832 libsuff=32 shlibsuff=N32 libmagic=N32;;
14833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14835 *) libsuff= shlibsuff= libmagic=never-match;;
14839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14840 shlibpath_overrides_runpath=no
14841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14843 hardcode_into_libs=yes
14846 # No shared lib support for Linux oldld, aout, or coff.
14847 linux*oldld* | linux*aout* | linux*coff*)
14851 # This must be Linux ELF.
14852 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=no
14861 # Some binutils ld are patched to set DT_RUNPATH
14862 save_LDFLAGS=$LDFLAGS
14863 save_libdir=$libdir
14864 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14865 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14877 if ac_fn_cxx_try_link "$LINENO"; then :
14878 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14879 shlibpath_overrides_runpath=yes
14882 rm -f core conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14884 LDFLAGS=$save_LDFLAGS
14885 libdir=$save_libdir
14887 # This implies no fast_install, which is unacceptable.
14888 # Some rework will be needed to allow for fast_install
14889 # before this can be enabled.
14890 hardcode_into_libs=yes
14892 # Append ld.so.conf contents to the search path
14893 if test -f /etc/ld.so.conf; then
14894 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;/^$/d' | tr '\n' ' '`
14895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14898 # We used to test for /lib/ld.so.1 and disable shared libraries on
14899 # powerpc, because MkLinux only supported shared libraries with the
14900 # GNU dynamic linker. Since this was broken with cross compilers,
14901 # most powerpc-linux boxes support dynamic linking these days and
14902 # people can always --disable-shared, the test was removed, and we
14903 # assume the GNU/Linux dynamic linker is in use.
14904 dynamic_linker='GNU/Linux ld.so'
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14912 soname_spec='${libname}${release}${shared_ext}$major'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath=no
14915 hardcode_into_libs=yes
14916 dynamic_linker='NetBSD ld.elf_so'
14923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14926 dynamic_linker='NetBSD (a.out) ld.so'
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 dynamic_linker='NetBSD ld.elf_so'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=yes
14934 hardcode_into_libs=yes
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 shlibpath_overrides_runpath=yes
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=no
14952 hardcode_into_libs=yes
14953 dynamic_linker='ldqnx.so'
14958 sys_lib_dlsearch_path_spec="/usr/lib"
14960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14963 *) need_version=no ;;
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14970 openbsd2.[89] | openbsd2.[89].*)
14971 shlibpath_overrides_runpath=no
14974 shlibpath_overrides_runpath=yes
14978 shlibpath_overrides_runpath=yes
14983 libname_spec='$name'
14986 library_names_spec='$libname${shared_ext} $libname.a'
14987 dynamic_linker='OS/2 ld.exe'
14988 shlibpath_var=LIBPATH
14991 osf3* | osf4* | osf5*)
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 shlibpath_overrides_runpath=yes
15014 hardcode_into_libs=yes
15015 # ldd complains unless libraries are executable
15016 postinstall_cmds='chmod +x $lib'
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 shlibpath_overrides_runpath=yes
15025 if test "$with_gnu_ld" = yes; then
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 shlibpath_var=LD_LIBRARY_PATH
15036 case $host_vendor in
15038 shlibpath_overrides_runpath=no
15040 runpath_var=LD_RUN_PATH
15048 shlibpath_overrides_runpath=no
15049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15055 if test -d /usr/nec ;then
15057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15058 soname_spec='$libname${shared_ext}.$major'
15059 shlibpath_var=LD_LIBRARY_PATH
15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15064 version_type=freebsd-elf
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 shlibpath_overrides_runpath=yes
15071 hardcode_into_libs=yes
15072 if test "$with_gnu_ld" = yes; then
15073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15082 sys_lib_dlsearch_path_spec='/usr/lib'
15086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=no
15093 hardcode_into_libs=yes
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15108 $as_echo "$dynamic_linker" >&6; }
15109 test "$dynamic_linker" = no && can_build_shared=no
15111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15112 if test "$GCC" = yes; then
15113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15159 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15160 hardcode_action_CXX=
15161 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15162 test -n "$runpath_var_CXX" ||
15163 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15165 # We can hardcode non-existent directories.
15166 if test "$hardcode_direct_CXX" != no &&
15167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15168 # have to relink, otherwise we might link with an installed library
15169 # when we should be linking with a yet-to-be-installed one
15170 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15171 test "$hardcode_minus_L_CXX" != no; then
15172 # Linking always hardcodes the temporary library directory.
15173 hardcode_action_CXX=relink
15175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15176 hardcode_action_CXX=immediate
15179 # We cannot hardcode anything, or else we can only hardcode existing
15181 hardcode_action_CXX=unsupported
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15184 $as_echo "$hardcode_action_CXX" >&6; }
15186 if test "$hardcode_action_CXX" = relink ||
15187 test "$inherit_rpath_CXX" = yes; then
15188 # Fast installation is not supported
15189 enable_fast_install=no
15190 elif test "$shlibpath_overrides_runpath" = yes ||
15191 test "$enable_shared" = no; then
15192 # Fast installation is not necessary
15193 enable_fast_install=needless
15202 fi # test -n "$compiler"
15208 with_gnu_ld=$lt_save_with_gnu_ld
15209 lt_cv_path_LDCXX=$lt_cv_path_LD
15210 lt_cv_path_LD=$lt_save_path_LD
15211 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15212 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15213 fi # test "$_lt_caught_CXX_error" != yes
15216 ac_cpp='$CPP $CPPFLAGS'
15217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15223 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15224 if test "${ac_cv_c_bigendian+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15227 ac_cv_c_bigendian=unknown
15228 # See if we're dealing with a universal compiler.
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231 #ifndef __APPLE_CC__
15232 not a universal capable compiler
15237 if ac_fn_c_try_compile "$LINENO"; then :
15239 # Check for potential -arch flags. It is not universal unless
15240 # there are at least two -arch flags with different values.
15243 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15244 if test -n "$ac_prev"; then
15246 i?86 | x86_64 | ppc | ppc64)
15247 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15250 ac_cv_c_bigendian=universal
15256 elif test "x$ac_word" = "x-arch"; then
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 if test $ac_cv_c_bigendian = unknown; then
15263 # See if sys/param.h defines the BYTE_ORDER macro.
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 #include <sys/types.h>
15267 #include <sys/param.h>
15272 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15273 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15275 bogus endian macros
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283 # It does; now see whether it defined to BIG_ENDIAN or not.
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 #include <sys/types.h>
15287 #include <sys/param.h>
15292 #if BYTE_ORDER != BIG_ENDIAN
15300 if ac_fn_c_try_compile "$LINENO"; then :
15301 ac_cv_c_bigendian=yes
15303 ac_cv_c_bigendian=no
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 if test $ac_cv_c_bigendian = unknown; then
15310 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #include <limits.h>
15318 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15319 bogus endian macros
15326 if ac_fn_c_try_compile "$LINENO"; then :
15327 # It does; now see whether it defined to _BIG_ENDIAN or not.
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <limits.h>
15335 #ifndef _BIG_ENDIAN
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344 ac_cv_c_bigendian=yes
15346 ac_cv_c_bigendian=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15352 if test $ac_cv_c_bigendian = unknown; then
15353 # Compile a test program.
15354 if test "$cross_compiling" = yes; then :
15355 # Try to guess by grepping values from an object file.
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 short int ascii_mm[] =
15359 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15360 short int ascii_ii[] =
15361 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15362 int use_ascii (int i) {
15363 return ascii_mm[i] + ascii_ii[i];
15365 short int ebcdic_ii[] =
15366 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15367 short int ebcdic_mm[] =
15368 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15369 int use_ebcdic (int i) {
15370 return ebcdic_mm[i] + ebcdic_ii[i];
15377 return use_ascii (foo) == use_ebcdic (foo);
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15384 ac_cv_c_bigendian=yes
15386 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15387 if test "$ac_cv_c_bigendian" = unknown; then
15388 ac_cv_c_bigendian=no
15390 # finding both strings is unlikely to happen, but who knows?
15391 ac_cv_c_bigendian=unknown
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15399 $ac_includes_default
15404 /* Are we little or big endian? From Harbison&Steele. */
15408 char c[sizeof (long int)];
15411 return u.c[sizeof (long int) - 1] == 1;
15417 if ac_fn_c_try_run "$LINENO"; then :
15418 ac_cv_c_bigendian=no
15420 ac_cv_c_bigendian=yes
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15423 conftest.$ac_objext conftest.beam conftest.$ac_ext
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15429 $as_echo "$ac_cv_c_bigendian" >&6; }
15430 case $ac_cv_c_bigendian in #(
15432 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15438 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15442 as_fn_error $? "unknown endianness
15443 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15447 # The cast to long int works around a bug in the HP C Compiler
15448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15450 # This bug is HP SR number 8606223364.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15452 $as_echo_n "checking size of char... " >&6; }
15453 if test "${ac_cv_sizeof_char+set}" = set; then :
15454 $as_echo_n "(cached) " >&6
15456 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15459 if test "$ac_cv_type_char" = yes; then
15460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15462 as_fn_error 77 "cannot compute sizeof (char)
15463 See \`config.log' for more details" "$LINENO" 5 ; }
15465 ac_cv_sizeof_char=0
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15471 $as_echo "$ac_cv_sizeof_char" >&6; }
15475 cat >>confdefs.h <<_ACEOF
15476 #define SIZEOF_CHAR $ac_cv_sizeof_char
15480 # The cast to long int works around a bug in the HP C Compiler
15481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15483 # This bug is HP SR number 8606223364.
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15485 $as_echo_n "checking size of short... " >&6; }
15486 if test "${ac_cv_sizeof_short+set}" = set; then :
15487 $as_echo_n "(cached) " >&6
15489 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15492 if test "$ac_cv_type_short" = yes; then
15493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15495 as_fn_error 77 "cannot compute sizeof (short)
15496 See \`config.log' for more details" "$LINENO" 5 ; }
15498 ac_cv_sizeof_short=0
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15504 $as_echo "$ac_cv_sizeof_short" >&6; }
15508 cat >>confdefs.h <<_ACEOF
15509 #define SIZEOF_SHORT $ac_cv_sizeof_short
15513 # The cast to long int works around a bug in the HP C Compiler
15514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15516 # This bug is HP SR number 8606223364.
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15518 $as_echo_n "checking size of int... " >&6; }
15519 if test "${ac_cv_sizeof_int+set}" = set; then :
15520 $as_echo_n "(cached) " >&6
15522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15525 if test "$ac_cv_type_int" = yes; then
15526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15528 as_fn_error 77 "cannot compute sizeof (int)
15529 See \`config.log' for more details" "$LINENO" 5 ; }
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15537 $as_echo "$ac_cv_sizeof_int" >&6; }
15541 cat >>confdefs.h <<_ACEOF
15542 #define SIZEOF_INT $ac_cv_sizeof_int
15546 # The cast to long int works around a bug in the HP C Compiler
15547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15549 # This bug is HP SR number 8606223364.
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15551 $as_echo_n "checking size of long... " >&6; }
15552 if test "${ac_cv_sizeof_long+set}" = set; then :
15553 $as_echo_n "(cached) " >&6
15555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15558 if test "$ac_cv_type_long" = yes; then
15559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15561 as_fn_error 77 "cannot compute sizeof (long)
15562 See \`config.log' for more details" "$LINENO" 5 ; }
15564 ac_cv_sizeof_long=0
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15570 $as_echo "$ac_cv_sizeof_long" >&6; }
15574 cat >>confdefs.h <<_ACEOF
15575 #define SIZEOF_LONG $ac_cv_sizeof_long
15579 # The cast to long int works around a bug in the HP C Compiler
15580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15582 # This bug is HP SR number 8606223364.
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15584 $as_echo_n "checking size of long long... " >&6; }
15585 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15586 $as_echo_n "(cached) " >&6
15588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15591 if test "$ac_cv_type_long_long" = yes; then
15592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15594 as_fn_error 77 "cannot compute sizeof (long long)
15595 See \`config.log' for more details" "$LINENO" 5 ; }
15597 ac_cv_sizeof_long_long=0
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15603 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15607 cat >>confdefs.h <<_ACEOF
15608 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15612 # The cast to long int works around a bug in the HP C Compiler
15613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615 # This bug is HP SR number 8606223364.
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15617 $as_echo_n "checking size of float... " >&6; }
15618 if test "${ac_cv_sizeof_float+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
15624 if test "$ac_cv_type_float" = yes; then
15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627 as_fn_error 77 "cannot compute sizeof (float)
15628 See \`config.log' for more details" "$LINENO" 5 ; }
15630 ac_cv_sizeof_float=0
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15636 $as_echo "$ac_cv_sizeof_float" >&6; }
15640 cat >>confdefs.h <<_ACEOF
15641 #define SIZEOF_FLOAT $ac_cv_sizeof_float
15645 # The cast to long int works around a bug in the HP C Compiler
15646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15648 # This bug is HP SR number 8606223364.
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15650 $as_echo_n "checking size of double... " >&6; }
15651 if test "${ac_cv_sizeof_double+set}" = set; then :
15652 $as_echo_n "(cached) " >&6
15654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15657 if test "$ac_cv_type_double" = yes; then
15658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15660 as_fn_error 77 "cannot compute sizeof (double)
15661 See \`config.log' for more details" "$LINENO" 5 ; }
15663 ac_cv_sizeof_double=0
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15669 $as_echo "$ac_cv_sizeof_double" >&6; }
15673 cat >>confdefs.h <<_ACEOF
15674 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15678 if test x"$ac_cv_sizeof_char" != "x1" ; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(char)==1" >&5
15680 $as_echo "$as_me: WARNING: gpsd requires sizeof(char)==1" >&2;};
15683 if test x"$ac_cv_sizeof_short" != "x2" ; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(short)==2" >&5
15685 $as_echo "$as_me: WARNING: gpsd requires sizeof(short)==2" >&2;};
15688 if test x"$ac_cv_sizeof_int" != "x4" ; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(int)==4" >&5
15690 $as_echo "$as_me: WARNING: gpsd requires sizeof(int)==4" >&2;};
15693 if test x"$ac_cv_sizeof_long_long" != "x8" ; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(long long)==8" >&5
15695 $as_echo "$as_me: WARNING: gpsd requires sizeof(long long)==8" >&2;};
15698 if test x"$ac_cv_sizeof_float" != "x4" ; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(float)==4" >&5
15700 $as_echo "$as_me: WARNING: gpsd requires sizeof(float)==4" >&2;};
15703 if test x"$ac_cv_sizeof_double" != "x8" ; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gpsd requires sizeof(double)==8" >&5
15705 $as_echo "$as_me: WARNING: gpsd requires sizeof(double)==8" >&2;};
15708 if test x"$type_error" = "xyes" ; then
15709 as_fn_error $? "Your system does not provide all required data types" "$LINENO" 5 ;
15712 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15713 # for constant arguments. Useless!
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15715 $as_echo_n "checking for working alloca.h... " >&6; }
15716 if test "${ac_cv_working_alloca_h+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <alloca.h>
15725 char *p = (char *) alloca (2 * sizeof (int));
15731 if ac_fn_c_try_link "$LINENO"; then :
15732 ac_cv_working_alloca_h=yes
15734 ac_cv_working_alloca_h=no
15736 rm -f core conftest.err conftest.$ac_objext \
15737 conftest$ac_exeext conftest.$ac_ext
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15740 $as_echo "$ac_cv_working_alloca_h" >&6; }
15741 if test $ac_cv_working_alloca_h = yes; then
15743 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15748 $as_echo_n "checking for alloca... " >&6; }
15749 if test "${ac_cv_func_alloca_works+set}" = set; then :
15750 $as_echo_n "(cached) " >&6
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15755 # define alloca __builtin_alloca
15758 # include <malloc.h>
15759 # define alloca _alloca
15761 # ifdef HAVE_ALLOCA_H
15762 # include <alloca.h>
15767 # ifndef alloca /* predefined by HP cc +Olibcalls */
15778 char *p = (char *) alloca (1);
15784 if ac_fn_c_try_link "$LINENO"; then :
15785 ac_cv_func_alloca_works=yes
15787 ac_cv_func_alloca_works=no
15789 rm -f core conftest.err conftest.$ac_objext \
15790 conftest$ac_exeext conftest.$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15793 $as_echo "$ac_cv_func_alloca_works" >&6; }
15795 if test $ac_cv_func_alloca_works = yes; then
15797 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15800 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15801 # that cause trouble. Some versions do not even contain alloca or
15802 # contain a buggy version. If you still want to use their alloca,
15803 # use ar to extract alloca.o from them instead of compiling alloca.c.
15805 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15807 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15811 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15812 if test "${ac_cv_os_cray+set}" = set; then :
15813 $as_echo_n "(cached) " >&6
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817 #if defined CRAY && ! defined CRAY2
15824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15825 $EGREP "webecray" >/dev/null 2>&1; then :
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15834 $as_echo "$ac_cv_os_cray" >&6; }
15835 if test $ac_cv_os_cray = yes; then
15836 for ac_func in _getb67 GETB67 getb67; do
15837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15841 cat >>confdefs.h <<_ACEOF
15842 #define CRAY_STACKSEG_END $ac_func
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15852 $as_echo_n "checking stack direction for C alloca... " >&6; }
15853 if test "${ac_cv_c_stack_direction+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15856 if test "$cross_compiling" = yes; then :
15857 ac_cv_c_stack_direction=0
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 $ac_includes_default
15863 find_stack_direction ()
15865 static char *addr = 0;
15870 return find_stack_direction ();
15873 return (&dummy > addr) ? 1 : -1;
15879 return find_stack_direction () < 0;
15882 if ac_fn_c_try_run "$LINENO"; then :
15883 ac_cv_c_stack_direction=1
15885 ac_cv_c_stack_direction=-1
15887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15888 conftest.$ac_objext conftest.beam conftest.$ac_ext
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15893 $as_echo "$ac_cv_c_stack_direction" >&6; }
15894 cat >>confdefs.h <<_ACEOF
15895 #define STACK_DIRECTION $ac_cv_c_stack_direction
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15902 $as_echo_n "checking for ANSI C header files... " >&6; }
15903 if test "${ac_cv_header_stdc+set}" = set; then :
15904 $as_echo_n "(cached) " >&6
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908 #include <stdlib.h>
15909 #include <stdarg.h>
15910 #include <string.h>
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 ac_cv_header_stdc=yes
15924 ac_cv_header_stdc=no
15926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 if test $ac_cv_header_stdc = yes; then
15929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 #include <string.h>
15935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15936 $EGREP "memchr" >/dev/null 2>&1; then :
15939 ac_cv_header_stdc=no
15945 if test $ac_cv_header_stdc = yes; then
15946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 #include <stdlib.h>
15952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15953 $EGREP "free" >/dev/null 2>&1; then :
15956 ac_cv_header_stdc=no
15962 if test $ac_cv_header_stdc = yes; then
15963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15964 if test "$cross_compiling" = yes; then :
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15970 #include <stdlib.h>
15971 #if ((' ' & 0x0FF) == 0x020)
15972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15975 # define ISLOWER(c) \
15976 (('a' <= (c) && (c) <= 'i') \
15977 || ('j' <= (c) && (c) <= 'r') \
15978 || ('s' <= (c) && (c) <= 'z'))
15979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15987 for (i = 0; i < 256; i++)
15988 if (XOR (islower (i), ISLOWER (i))
15989 || toupper (i) != TOUPPER (i))
15994 if ac_fn_c_try_run "$LINENO"; then :
15997 ac_cv_header_stdc=no
15999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16000 conftest.$ac_objext conftest.beam conftest.$ac_ext
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16006 $as_echo "$ac_cv_header_stdc" >&6; }
16007 if test $ac_cv_header_stdc = yes; then
16009 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16015 if test "${ac_cv_c_const+set}" = set; then :
16016 $as_echo_n "(cached) " >&6
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16024 /* FIXME: Include the comments suggested by Paul. */
16025 #ifndef __cplusplus
16026 /* Ultrix mips cc rejects this. */
16027 typedef int charset[2];
16029 /* SunOS 4.1.1 cc rejects this. */
16030 char const *const *pcpcc;
16032 /* NEC SVR4.0.2 mips cc rejects this. */
16033 struct point {int x, y;};
16034 static struct point const zero = {0,0};
16035 /* AIX XL C 1.02.0.0 rejects this.
16036 It does not let you subtract one const X* pointer from another in
16037 an arm of an if-expression whose if-part is not a constant
16039 const char *g = "string";
16040 pcpcc = &g + (g ? g-g : 0);
16041 /* HPUX 7.0 cc rejects these. */
16043 ppc = (char**) pcpcc;
16044 pcpcc = (char const *const *) ppc;
16045 { /* SCO 3.2v4 cc rejects this. */
16047 char const *s = 0 ? (char *) 0 : (char const *) 0;
16052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16053 int x[] = {25, 17};
16054 const int *foo = &x[0];
16057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16058 typedef const int *iptr;
16062 { /* AIX XL C 1.02.0.0 rejects this saying
16063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16064 struct s { int j; const int *ap[3]; };
16065 struct s *b; b->j = 5;
16067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16068 const int foo = 10;
16069 if (!foo) return 0;
16071 return !cs[0] && !zero.x;
16078 if ac_fn_c_try_compile "$LINENO"; then :
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16086 $as_echo "$ac_cv_c_const" >&6; }
16087 if test $ac_cv_c_const = no; then
16089 $as_echo "#define const /**/" >>confdefs.h
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly working floating point implementation" >&5
16095 $as_echo_n "checking for properly working floating point implementation... " >&6; }
16096 if test "x$build" = "x$host"; then
16097 if eval "$CC $CFLAGS -o test_float ${srcdir}/test_float.c"; then
16098 if ./test_float > /dev/null; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16103 $as_echo "no" >&6; }
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We strongly recommend you manually examine the test_float results" >&5
16105 $as_echo "$as_me: WARNING: We strongly recommend you manually examine the test_float results" >&2;}
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure compiling test_float" >&5
16109 $as_echo "failure compiling test_float" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped test (cross-compiling)" >&5
16113 $as_echo "skipped test (cross-compiling)" >&6; }
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We are cross-compiling, and thus cannot run the floating point test now.
16115 We strongly recommend running test_float on the target platform." >&5
16116 $as_echo "$as_me: WARNING: We are cross-compiling, and thus cannot run the floating point test now.
16117 We strongly recommend running test_float on the target platform." >&2;}
16121 if eval "test x$GCC = xyes"; then
16122 CFLAGS="$CFLAGS -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE"
16125 for ac_header in sys/termios.h sys/select.h sys/time.h sys/modem.h sys/ipc.h sys/shm.h sys/stat.h sys/socket.h sys/ioctl.h sys/un.h
16127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16130 cat >>confdefs.h <<_ACEOF
16131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16138 for ac_header in arpa/inet.h netinet/in_systm.h netinet/in.h netinet/tcp.h
16140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16143 cat >>confdefs.h <<_ACEOF
16144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151 for ac_header in netinet/ip.h
16153 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_NETINET_IN_SYSTM_H && HAVE_NETINET_IN_H
16154 #include netinet/ip.h
16158 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
16159 cat >>confdefs.h <<_ACEOF
16160 #define HAVE_NETINET_IP_H 1
16167 for ac_header in termios.h strings.h getopt.h netdb.h syslog.h pwd.h grp.h
16169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16181 for ac_func in round
16183 ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
16184 if test "x$ac_cv_func_round" = x""yes; then :
16185 cat >>confdefs.h <<_ACEOF
16186 #define HAVE_ROUND 1
16192 for ac_func in strlcpy
16194 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16195 if test "x$ac_cv_func_strlcpy" = x""yes; then :
16196 cat >>confdefs.h <<_ACEOF
16197 #define HAVE_STRLCPY 1
16203 for ac_func in strlcat
16205 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16206 if test "x$ac_cv_func_strlcat" = x""yes; then :
16207 cat >>confdefs.h <<_ACEOF
16208 #define HAVE_STRLCAT 1
16214 for ac_func in strtonum
16216 ac_fn_c_check_func "$LINENO" "strtonum" "ac_cv_func_strtonum"
16217 if test "x$ac_cv_func_strtonum" = x""yes; then :
16218 cat >>confdefs.h <<_ACEOF
16219 #define HAVE_STRTONUM 1
16225 for ac_func in setlocale
16227 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16228 if test "x$ac_cv_func_setlocale" = x""yes; then :
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_SETLOCALE 1
16236 for ac_func in vsnprintf
16238 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16239 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
16240 cat >>confdefs.h <<_ACEOF
16241 #define HAVE_VSNPRINTF 1
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16249 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16250 if test "${ac_cv_header_time+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 #include <sys/types.h>
16256 #include <sys/time.h>
16262 if ((struct tm *) 0)
16268 if ac_fn_c_try_compile "$LINENO"; then :
16269 ac_cv_header_time=yes
16271 ac_cv_header_time=no
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16276 $as_echo "$ac_cv_header_time" >&6; }
16277 if test $ac_cv_header_time = yes; then
16279 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16284 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16285 if test "${ac_cv_struct_tm+set}" = set; then :
16286 $as_echo_n "(cached) " >&6
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290 #include <sys/types.h>
16297 int *p = &tm.tm_sec;
16303 if ac_fn_c_try_compile "$LINENO"; then :
16304 ac_cv_struct_tm=time.h
16306 ac_cv_struct_tm=sys/time.h
16308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16311 $as_echo "$ac_cv_struct_tm" >&6; }
16312 if test $ac_cv_struct_tm = sys/time.h; then
16314 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16318 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
16319 #include <$ac_cv_struct_tm>
16322 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
16324 cat >>confdefs.h <<_ACEOF
16325 #define HAVE_STRUCT_TM_TM_ZONE 1
16331 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16333 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
16336 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
16338 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_DECL_TZNAME $ac_have_decl
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
16349 $as_echo_n "checking for tzname... " >&6; }
16350 if test "${ac_cv_var_tzname+set}" = set; then :
16351 $as_echo_n "(cached) " >&6
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16356 #if !HAVE_DECL_TZNAME
16357 extern char *tzname[];
16363 return tzname[0][0];
16368 if ac_fn_c_try_link "$LINENO"; then :
16369 ac_cv_var_tzname=yes
16371 ac_cv_var_tzname=no
16373 rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
16377 $as_echo "$ac_cv_var_tzname" >&6; }
16378 if test $ac_cv_var_tzname = yes; then
16380 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16387 $as_echo_n "checking for timezone variable... " >&6; }
16388 if test "${ac_cv_var_timezone+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 ac_cv_var_timezone=yes
16409 ac_cv_var_timezone=no
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
16414 $as_echo "$ac_cv_var_timezone" >&6; }
16415 if test $ac_cv_var_timezone = yes; then
16417 $as_echo "#define HAVE_TIMEZONE /**/" >>confdefs.h
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
16421 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
16422 if test "${ac_cv_struct_tm_gmtoff+set}" = set; then :
16423 $as_echo_n "(cached) " >&6
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16441 if ac_fn_c_try_compile "$LINENO"; then :
16442 ac_cv_struct_tm_gmtoff=yes
16444 ac_cv_struct_tm_gmtoff=no
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
16450 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
16451 if test $ac_cv_struct_tm_gmtoff = yes; then
16453 $as_echo "#define HAVE_TM_GMTOFF /**/" >>confdefs.h
16456 as_fn_error $? "unable to find a way to determine timezone" "$LINENO" 5
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight external" >&5
16460 $as_echo_n "checking for daylight external... " >&6; }
16461 if test "${mb_cv_var_daylight+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16470 return (int)daylight;
16475 if ac_fn_c_try_link "$LINENO"; then :
16476 mb_cv_var_daylight=yes
16478 mb_cv_var_daylight=no
16480 rm -f core conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_daylight" >&5
16485 $as_echo "$mb_cv_var_daylight" >&6; }
16486 if test $mb_cv_var_daylight = yes; then
16488 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16493 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16494 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16495 $as_echo_n "(cached) " >&6
16497 ac_check_lib_save_LIBS=$LIBS
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16508 char gethostbyname ();
16512 return gethostbyname ();
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 ac_cv_lib_nsl_gethostbyname=yes
16520 ac_cv_lib_nsl_gethostbyname=no
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16527 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16528 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16534 $as_echo_n "checking for socket in -lsocket... " >&6; }
16535 if test "${ac_cv_lib_socket_socket+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16538 ac_check_lib_save_LIBS=$LIBS
16539 LIBS="-lsocket $LIBS"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16543 /* Override any GCC internal prototype to avoid an error.
16544 Use char because int might match the return type of a GCC
16545 builtin and then its argument prototype would still apply. */
16558 if ac_fn_c_try_link "$LINENO"; then :
16559 ac_cv_lib_socket_socket=yes
16561 ac_cv_lib_socket_socket=no
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16568 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16569 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
16570 LIBSOCKET="-lsocket"
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
16575 $as_echo_n "checking for rint in -lm... " >&6; }
16576 if test "${ac_cv_lib_m_rint+set}" = set; then :
16577 $as_echo_n "(cached) " >&6
16579 ac_check_lib_save_LIBS=$LIBS
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16584 /* Override any GCC internal prototype to avoid an error.
16585 Use char because int might match the return type of a GCC
16586 builtin and then its argument prototype would still apply. */
16599 if ac_fn_c_try_link "$LINENO"; then :
16600 ac_cv_lib_m_rint=yes
16602 ac_cv_lib_m_rint=no
16604 rm -f core conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_check_lib_save_LIBS
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
16609 $as_echo "$ac_cv_lib_m_rint" >&6; }
16610 if test "x$ac_cv_lib_m_rint" = x""yes; then :
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
16616 $as_echo_n "checking for open in -lc... " >&6; }
16617 if test "${ac_cv_lib_c_open+set}" = set; then :
16618 $as_echo_n "(cached) " >&6
16620 ac_check_lib_save_LIBS=$LIBS
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16625 /* Override any GCC internal prototype to avoid an error.
16626 Use char because int might match the return type of a GCC
16627 builtin and then its argument prototype would still apply. */
16640 if ac_fn_c_try_link "$LINENO"; then :
16641 ac_cv_lib_c_open=yes
16643 ac_cv_lib_c_open=no
16645 rm -f core conftest.err conftest.$ac_objext \
16646 conftest$ac_exeext conftest.$ac_ext
16647 LIBS=$ac_check_lib_save_LIBS
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
16650 $as_echo "$ac_cv_lib_c_open" >&6; }
16651 if test "x$ac_cv_lib_c_open" = x""yes; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcancelstate in -lpthread" >&5
16657 $as_echo_n "checking for pthread_setcancelstate in -lpthread... " >&6; }
16658 if test "${ac_cv_lib_pthread_pthread_setcancelstate+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16661 ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-lpthread $LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16666 /* Override any GCC internal prototype to avoid an error.
16667 Use char because int might match the return type of a GCC
16668 builtin and then its argument prototype would still apply. */
16672 char pthread_setcancelstate ();
16676 return pthread_setcancelstate ();
16681 if ac_fn_c_try_link "$LINENO"; then :
16682 ac_cv_lib_pthread_pthread_setcancelstate=yes
16684 ac_cv_lib_pthread_pthread_setcancelstate=no
16686 rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16688 LIBS=$ac_check_lib_save_LIBS
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setcancelstate" >&5
16691 $as_echo "$ac_cv_lib_pthread_pthread_setcancelstate" >&6; }
16692 if test "x$ac_cv_lib_pthread_pthread_setcancelstate" = x""yes; then :
16693 LIBPTHREAD="-lpthread"
16695 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
16707 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16708 if test -n "$ac_tool_prefix"; then
16709 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16710 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16712 $as_echo_n "checking for $ac_word... " >&6; }
16713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16714 $as_echo_n "(cached) " >&6
16716 case $PKG_CONFIG in
16718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16725 test -z "$as_dir" && as_dir=.
16726 for ac_exec_ext in '' $ac_executable_extensions; do
16727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16740 if test -n "$PKG_CONFIG"; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16742 $as_echo "$PKG_CONFIG" >&6; }
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745 $as_echo "no" >&6; }
16750 if test -z "$ac_cv_path_PKG_CONFIG"; then
16751 ac_pt_PKG_CONFIG=$PKG_CONFIG
16752 # Extract the first word of "pkg-config", so it can be a program name with args.
16753 set dummy pkg-config; ac_word=$2
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16755 $as_echo_n "checking for $ac_word... " >&6; }
16756 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16757 $as_echo_n "(cached) " >&6
16759 case $ac_pt_PKG_CONFIG in
16761 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765 for as_dir in $PATH
16768 test -z "$as_dir" && as_dir=.
16769 for ac_exec_ext in '' $ac_executable_extensions; do
16770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16771 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16782 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16783 if test -n "$ac_pt_PKG_CONFIG"; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16785 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16791 if test "x$ac_pt_PKG_CONFIG" = x; then
16794 case $cross_compiling:$ac_tool_warned in
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16798 ac_tool_warned=yes ;;
16800 PKG_CONFIG=$ac_pt_PKG_CONFIG
16803 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16807 if test -n "$PKG_CONFIG"; then
16808 _pkg_min_version=0.9.0
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16810 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16811 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16813 $as_echo "yes" >&6; }
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816 $as_echo "no" >&6; }
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
16823 $as_echo_n "checking for LIBUSB... " >&6; }
16825 if test -n "$LIBUSB_CFLAGS"; then
16826 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
16827 elif test -n "$PKG_CONFIG"; then
16828 if test -n "$PKG_CONFIG" && \
16829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
16830 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
16832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833 test $ac_status = 0; }; then
16834 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
16841 if test -n "$LIBUSB_LIBS"; then
16842 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
16843 elif test -n "$PKG_CONFIG"; then
16844 if test -n "$PKG_CONFIG" && \
16845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
16846 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
16848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16849 test $ac_status = 0; }; then
16850 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
16860 if test $pkg_failed = yes; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862 $as_echo "no" >&6; }
16864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16865 _pkg_short_errors_supported=yes
16867 _pkg_short_errors_supported=no
16869 if test $_pkg_short_errors_supported = yes; then
16870 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0 >= 1.0.0" 2>&1`
16872 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >= 1.0.0" 2>&1`
16874 # Put the nasty error message in config.log where it belongs
16875 echo "$LIBUSB_PKG_ERRORS" >&5
16878 elif test $pkg_failed = untried; then
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16883 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
16884 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16891 if test x"$ac_libusb" = x"yes" ; then
16893 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
16901 for ac_header in ncurses.h
16903 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
16904 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
16905 cat >>confdefs.h <<_ACEOF
16906 #define HAVE_NCURSES_H 1
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16914 $as_echo_n "checking for initscr in -lncurses... " >&6; }
16915 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
16916 $as_echo_n "(cached) " >&6
16918 ac_check_lib_save_LIBS=$LIBS
16919 LIBS="-lncurses $LIBS"
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16938 if ac_fn_c_try_link "$LINENO"; then :
16939 ac_cv_lib_ncurses_initscr=yes
16941 ac_cv_lib_ncurses_initscr=no
16943 rm -f core conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16945 LIBS=$ac_check_lib_save_LIBS
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
16948 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
16949 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
16950 NCURSES_LIBS="-lncurses"
16954 if test x"$NCURSES_LIBS" = x"" ; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not including curses support" >&5
16956 $as_echo "$as_me: WARNING: Not including curses support" >&2;}
16959 HAVE_NCURSES_FALSE='#'
16961 HAVE_NCURSES_TRUE='#'
16962 HAVE_NCURSES_FALSE=
16969 HAVE_NCURSES_FALSE='#'
16971 HAVE_NCURSES_TRUE='#'
16972 HAVE_NCURSES_FALSE=
16978 # Check whether --enable-nmea was given.
16979 if test "${enable_nmea+set}" = set; then :
16980 enableval=$enable_nmea; ac_nmea=$enableval
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NMEA support" >&5
16986 $as_echo_n "checking for NMEA support... " >&6; }
16987 if test x"$ac_nmea" = "xyes"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989 $as_echo "yes" >&6; }
16991 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16998 # Check whether --enable-oncore was given.
16999 if test "${enable_oncore+set}" = set; then :
17000 enableval=$enable_oncore; ac_oncore=$enableval
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motorola OnCore support" >&5
17006 $as_echo_n "checking for Motorola OnCore support... " >&6; }
17007 if test x"$ac_oncore" = "xyes"; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17009 $as_echo "yes" >&6; }
17011 $as_echo "#define ONCORE_ENABLE 1" >>confdefs.h
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17018 # Check whether --enable-sirf was given.
17019 if test "${enable_sirf+set}" = set; then :
17020 enableval=$enable_sirf; ac_sirf=$enableval
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SiRF support" >&5
17026 $as_echo_n "checking for SiRF support... " >&6; }
17027 if test x"$ac_sirf" = "xyes"; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17029 $as_echo "yes" >&6; }
17031 $as_echo "#define SIRF_ENABLE 1" >>confdefs.h
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17038 # Check whether --enable-superstar2 was given.
17039 if test "${enable_superstar2+set}" = set; then :
17040 enableval=$enable_superstar2; ac_superstar2=$enableval
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SuperStarII support" >&5
17046 $as_echo_n "checking for SuperStarII support... " >&6; }
17047 if test x"$ac_superstar2" = "xyes"; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17049 $as_echo "yes" >&6; }
17051 $as_echo "#define SUPERSTAR2_ENABLE 1" >>confdefs.h
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055 $as_echo "no" >&6; }
17058 # Check whether --enable-tsip was given.
17059 if test "${enable_tsip+set}" = set; then :
17060 enableval=$enable_tsip; ac_tsip=$enableval
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Trimble TSIP support" >&5
17066 $as_echo_n "checking for Trimble TSIP support... " >&6; }
17067 if test x"$ac_tsip" = "xyes"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 $as_echo "yes" >&6; }
17071 $as_echo "#define TSIP_ENABLE 1" >>confdefs.h
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 $as_echo "no" >&6; }
17078 # Check whether --enable-fv18 was given.
17079 if test "${enable_fv18+set}" = set; then :
17080 enableval=$enable_fv18; ac_fv18=$enableval
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FV-18 support" >&5
17086 $as_echo_n "checking for FV-18 support... " >&6; }
17087 if test x"$ac_fv18" = "xyes"; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17090 $as_echo "yes" >&6; }
17092 $as_echo "#define FV18_ENABLE 1" >>confdefs.h
17095 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17102 # Check whether --enable-tripmate was given.
17103 if test "${enable_tripmate+set}" = set; then :
17104 enableval=$enable_tripmate; ac_tripmate=$enableval
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tripmate support" >&5
17110 $as_echo_n "checking for Tripmate support... " >&6; }
17111 if test x"$ac_tripmate" = "xyes"; then
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17113 $as_echo "yes" >&6; }
17115 $as_echo "#define TRIPMATE_ENABLE 1" >>confdefs.h
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17122 # Check whether --enable-earthmate was given.
17123 if test "${enable_earthmate+set}" = set; then :
17124 enableval=$enable_earthmate; ac_earthmate=$enableval
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EarthMate support" >&5
17130 $as_echo_n "checking for EarthMate support... " >&6; }
17131 if test x"$ac_earthmate" = "xyes"; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17135 $as_echo "#define EARTHMATE_ENABLE 1" >>confdefs.h
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17139 $as_echo "no" >&6; }
17142 # Check whether --enable-itrax was given.
17143 if test "${enable_itrax+set}" = set; then :
17144 enableval=$enable_itrax; ac_itrax=$enableval
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iTrax support" >&5
17150 $as_echo_n "checking for iTrax support... " >&6; }
17151 if test x"$ac_itrax" = "xyes"; then
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17153 $as_echo "yes" >&6; }
17155 $as_echo "#define ITRAX_ENABLE 1" >>confdefs.h
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159 $as_echo "no" >&6; }
17162 # Check whether --enable-ashtech was given.
17163 if test "${enable_ashtech+set}" = set; then :
17164 enableval=$enable_ashtech; ac_ashtech=$enableval
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ashtech support" >&5
17170 $as_echo_n "checking for Ashtech support... " >&6; }
17171 if test x"$ac_ashtech" = "xyes"; then
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17173 $as_echo "yes" >&6; }
17175 $as_echo "#define ASHTECH_ENABLE 1" >>confdefs.h
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17182 # Check whether --enable-navcom was given.
17183 if test "${enable_navcom+set}" = set; then :
17184 enableval=$enable_navcom; ac_navcom=$enableval
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Navcom support" >&5
17190 $as_echo_n "checking for Navcom support... " >&6; }
17191 if test x"$ac_navcom" = "xyes"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17195 $as_echo "#define NAVCOM_ENABLE 1" >>confdefs.h
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17199 $as_echo "no" >&6; }
17202 # Check whether --enable-garmin was given.
17203 if test "${enable_garmin+set}" = set; then :
17204 enableval=$enable_garmin; ac_garmin=$enableval
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Garmin support" >&5
17210 $as_echo_n "checking for Garmin support... " >&6; }
17211 if test x"$ac_garmin" = "xyes"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17213 $as_echo "yes" >&6; }
17215 $as_echo "#define GARMIN_ENABLE 1" >>confdefs.h
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17222 # Check whether --enable-garmintxt was given.
17223 if test "${enable_garmintxt+set}" = set; then :
17224 enableval=$enable_garmintxt; ac_garmintxt=$enableval
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Garmin Simple Text support" >&5
17230 $as_echo_n "checking for Garmin Simple Text support... " >&6; }
17231 if test x"$ac_garmintxt" = "xyes"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17233 $as_echo "yes" >&6; }
17235 $as_echo "#define GARMINTXT_ENABLE 1" >>confdefs.h
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17242 # Check whether --enable-tnt was given.
17243 if test "${enable_tnt+set}" = set; then :
17244 enableval=$enable_tnt; ac_tnt=$enableval
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for True North support" >&5
17250 $as_echo_n "checking for True North support... " >&6; }
17251 if test x"$ac_tnt" = "xyes"; then
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17254 $as_echo "yes" >&6; }
17256 $as_echo "#define TNT_ENABLE 1" >>confdefs.h
17259 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17266 # Check whether --enable-oceanserver was given.
17267 if test "${enable_oceanserver+set}" = set; then :
17268 enableval=$enable_oceanserver; ac_oceanserver=$enableval
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OceanServer support" >&5
17274 $as_echo_n "checking for OceanServer support... " >&6; }
17275 if test x"$ac_oceanserver" = "xyes"; then
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17278 $as_echo "yes" >&6; }
17280 $as_echo "#define OCEANSERVER_ENABLE 1" >>confdefs.h
17283 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 $as_echo "no" >&6; }
17290 # Check whether --enable-ubx was given.
17291 if test "${enable_ubx+set}" = set; then :
17292 enableval=$enable_ubx; ac_ubx=$enableval
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UBX support" >&5
17298 $as_echo_n "checking for UBX support... " >&6; }
17299 if test x"$ac_ubx" = "xyes"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17301 $as_echo "yes" >&6; }
17303 $as_echo "#define UBX_ENABLE 1" >>confdefs.h
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17310 # Check whether --enable-evermore was given.
17311 if test "${enable_evermore+set}" = set; then :
17312 enableval=$enable_evermore; ac_evermore=$enableval
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EverMore support" >&5
17318 $as_echo_n "checking for EverMore support... " >&6; }
17319 if test x"$ac_evermore" = "xyes"; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17323 $as_echo "#define EVERMORE_ENABLE 1" >>confdefs.h
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327 $as_echo "no" >&6; }
17330 # Check whether --enable-mtk3301 was given.
17331 if test "${enable_mtk3301+set}" = set; then :
17332 enableval=$enable_mtk3301; ac_mtk3301=$enableval
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTK-3301 support" >&5
17338 $as_echo_n "checking for MTK-3301 support... " >&6; }
17339 if test x"$ac_mtk3301" = "xyes"; then
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17342 $as_echo "yes" >&6; }
17344 $as_echo "#define MTK3301_ENABLE 1" >>confdefs.h
17347 $as_echo "#define NMEA_ENABLE 1" >>confdefs.h
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17354 # Check whether --enable-gpsclock was given.
17355 if test "${enable_gpsclock+set}" = set; then :
17356 enableval=$enable_gpsclock; ac_gpsclock=$enableval
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSClock support" >&5
17362 $as_echo_n "checking for GPSClock support... " >&6; }
17363 if test x"$ac_gpsclock" = "xyes"; then
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17365 $as_echo "yes" >&6; }
17367 $as_echo "#define GPSCLOCK_ENABLE 1" >>confdefs.h
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371 $as_echo "no" >&6; }
17374 # Check whether --enable-rtcm104v2 was given.
17375 if test "${enable_rtcm104v2+set}" = set; then :
17376 enableval=$enable_rtcm104v2; ac_rtcm104v2=$enableval
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rtcm104v2 support" >&5
17382 $as_echo_n "checking for rtcm104v2 support... " >&6; }
17383 if test x"$ac_earthmate" = "xno" -a x"$ac_evermore" = "xno" -a x"$ac_garmin" = "xno" -a x"$ac_itrax" = "xno" -a x"$ac_sirf" = "xno" -a x"$ac_superstar2" = "xno" -a x"$ac_tsip" = "xno" -a x"$ac_navcom" = "xno"; then
17386 if test x"$ac_rtcm104v2" = "xyes"; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17388 $as_echo "yes" >&6; }
17390 $as_echo "#define RTCM104V2_ENABLE 1" >>confdefs.h
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17397 if test "$ac_rtcm104v2" = "yes"; then
17398 HAVE_RTCM104V2_TRUE=
17399 HAVE_RTCM104V2_FALSE='#'
17401 HAVE_RTCM104V2_TRUE='#'
17402 HAVE_RTCM104V2_FALSE=
17406 # Check whether --enable-rtcm104v3 was given.
17407 if test "${enable_rtcm104v3+set}" = set; then :
17408 enableval=$enable_rtcm104v3; ac_rtcm104v3=$enableval
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rtcm104v3 support" >&5
17414 $as_echo_n "checking for rtcm104v3 support... " >&6; }
17415 if test x"$ac_earthmate" = "xno" -a x"$ac_evermore" = "xno" -a x"$ac_garmin" = "xno" -a x"$ac_itrax" = "xno" -a x"$ac_sirf" = "xno" -a x"$ac_tsip" = "xno" -a x"$ac_navcom" = "xno"; then
17418 if test x"$ac_rtcm104v3" = "xyes"; then
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17420 $as_echo "yes" >&6; }
17422 $as_echo "#define RTCM104V3_ENABLE 1" >>confdefs.h
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426 $as_echo "no" >&6; }
17429 if test "$ac_rtcm104v3" = "yes"; then
17430 HAVE_RTCM104V3_TRUE=
17431 HAVE_RTCM104V3_FALSE='#'
17433 HAVE_RTCM104V3_TRUE='#'
17434 HAVE_RTCM104V3_FALSE=
17438 # Check whether --enable-ntrip was given.
17439 if test "${enable_ntrip+set}" = set; then :
17440 enableval=$enable_ntrip; ac_ntrip=$enableval
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRIP support" >&5
17446 $as_echo_n "checking for NTRIP support... " >&6; }
17447 if test x"$ac_ntrip" = "xyes"; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449 $as_echo "yes" >&6; }
17451 $as_echo "#define NTRIP_ENABLE 1" >>confdefs.h
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17458 if test "$ac_ntrip" = "yes"; then
17460 HAVE_NTRIP_FALSE='#'
17462 HAVE_NTRIP_TRUE='#'
17467 # Check whether --enable-aivdm was given.
17468 if test "${enable_aivdm+set}" = set; then :
17469 enableval=$enable_aivdm; ac_aivdm=$enableval
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIVDM support" >&5
17475 $as_echo_n "checking for AIVDM support... " >&6; }
17476 if test x"$ac_aivdm" = "xyes"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17478 $as_echo "yes" >&6; }
17480 $as_echo "#define AIVDM_ENABLE 1" >>confdefs.h
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17486 if test "$ac_aivdm" = "yes"; then
17488 HAVE_AIVDM_FALSE='#'
17490 HAVE_AIVDM_TRUE='#'
17495 # Check whether --enable-timing was given.
17496 if test "${enable_timing+set}" = set; then :
17497 enableval=$enable_timing; ac_timing=$enableval
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for latency timing support" >&5
17503 $as_echo_n "checking for latency timing support... " >&6; }
17504 if test x"$ac_timing" = "xyes"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17506 $as_echo "yes" >&6; }
17508 $as_echo "#define TIMING_ENABLE 1" >>confdefs.h
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512 $as_echo "no" >&6; }
17515 # Check whether --enable-clientdebug was given.
17516 if test "${enable_clientdebug+set}" = set; then :
17517 enableval=$enable_clientdebug; ac_clientdebug=$enableval
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for client debugging support" >&5
17523 $as_echo_n "checking for client debugging support... " >&6; }
17524 if test x"$ac_clientdebug" = "xyes"; then
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526 $as_echo "yes" >&6; }
17528 $as_echo "#define CLIENTDEBUG_ENABLE 1" >>confdefs.h
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17535 if test x"$ac_clientdebug" = x"yes"; then
17536 CLIENTDEBUG_ENABLE_TRUE=
17537 CLIENTDEBUG_ENABLE_FALSE='#'
17539 CLIENTDEBUG_ENABLE_TRUE='#'
17540 CLIENTDEBUG_ENABLE_FALSE=
17544 # Check whether --enable-oldstyle was given.
17545 if test "${enable_oldstyle+set}" = set; then :
17546 enableval=$enable_oldstyle; ac_oldstyle=$enableval
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oldstyle support" >&5
17552 $as_echo_n "checking for oldstyle support... " >&6; }
17553 if test x"$ac_oldstyle" = "xyes"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17555 $as_echo "yes" >&6; }
17557 $as_echo "#define OLDSTYLE_ENABLE 1" >>confdefs.h
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17564 # Check whether --enable-profiling was given.
17565 if test "${enable_profiling+set}" = set; then :
17566 enableval=$enable_profiling; ac_profiling=$enableval
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling support" >&5
17572 $as_echo_n "checking for profiling support... " >&6; }
17573 if test x"$ac_profiling" = "xyes"; then
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17577 $as_echo "#define PROFILING 1" >>confdefs.h
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581 $as_echo "no" >&6; }
17584 # Check whether --enable-ntpshm was given.
17585 if test "${enable_ntpshm+set}" = set; then :
17586 enableval=$enable_ntpshm; ac_ntpshm=$enableval
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTP time hinting support" >&5
17592 $as_echo_n "checking for NTP time hinting support... " >&6; }
17593 if test x"$ac_ntpshm" = "xyes"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17595 $as_echo "yes" >&6; }
17597 $as_echo "#define NTPSHM_ENABLE 1" >>confdefs.h
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17604 # Check whether --enable-pps was given.
17605 if test "${enable_pps+set}" = set; then :
17606 enableval=$enable_pps; ac_pps=$enableval
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PPS time syncing support" >&5
17612 $as_echo_n "checking for PPS time syncing support... " >&6; }
17613 if test x"$ac_pps" = "xyes"; then
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17615 $as_echo "yes" >&6; }
17617 $as_echo "#define PPS_ENABLE 1" >>confdefs.h
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17621 $as_echo "no" >&6; }
17624 # Check whether --enable-pps-on-cts was given.
17625 if test "${enable_pps_on_cts+set}" = set; then :
17626 enableval=$enable_pps_on_cts; ac_ppsoncts=$enableval
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PPS pulse on CTS rather than DCD" >&5
17632 $as_echo_n "checking for PPS pulse on CTS rather than DCD... " >&6; }
17633 if test x"$ac_ppsoncts" = "xyes"; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17635 $as_echo "yes" >&6; }
17637 $as_echo "#define PPS_ON_CTS 1" >>confdefs.h
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17641 $as_echo "no" >&6; }
17644 # Check whether --enable-gpsd-user was given.
17645 if test "${enable_gpsd_user+set}" = set; then :
17646 enableval=$enable_gpsd_user; ac_user=$enableval
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking privilege revocation user" >&5
17652 $as_echo_n "checking privilege revocation user... " >&6; }
17653 if test x"$ac_user" != "xnobody"; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_user" >&5
17655 $as_echo "$ac_user" >&6; }
17657 cat >>confdefs.h <<_ACEOF
17658 #define GPSD_USER "$ac_user"
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nobody" >&5
17663 $as_echo "nobody" >&6; }
17666 # Check whether --enable-gpsd-group was given.
17667 if test "${enable_gpsd_group+set}" = set; then :
17668 enableval=$enable_gpsd_group; ac_group=$enableval
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking privilege revokation group" >&5
17672 $as_echo_n "checking privilege revokation group... " >&6; }
17673 if test x"$ac_user" != "xnobody"; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_group" >&5
17675 $as_echo "$ac_group" >&6; }
17677 cat >>confdefs.h <<_ACEOF
17678 #define GPSD_GROUP "$ac_group"
17683 # Check whether --enable-fixed-port-speed was given.
17684 if test "${enable_fixed_port_speed+set}" = set; then :
17685 enableval=$enable_fixed_port_speed; ac_baud=$enableval
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fixed port speed" >&5
17691 $as_echo_n "checking for fixed port speed... " >&6; }
17692 if test x"$ac_baud" != "xno"; then
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_baud" >&5
17694 $as_echo "$ac_baud" >&6; }
17696 cat >>confdefs.h <<_ACEOF
17697 #define FIXED_PORT_SPEED $ac_baud
17700 FIXED_PORT_SPEED="-DSPEEDFLAGS=$ac_baud"
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17706 # Check whether --enable-bluetooth was given.
17707 if test "${enable_bluetooth+set}" = set; then :
17708 enableval=$enable_bluetooth; ac_bluetooth=$enableval
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BlueZ support" >&5
17714 $as_echo_n "checking for BlueZ support... " >&6; }
17715 if test x"$ac_bluetooth" = x"yes"; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17719 $as_echo "#define HAVE_BLUEZ 1" >>confdefs.h
17721 # Older versions of autotools barf and die on this.
17722 #PKG_CHECK_MODULES(BLUEZ, bluez )
17723 BLUEZ_CFLAGS=`pkg-config --cflags bluez`
17724 BLUEZ_LIBS=`pkg-config --libs bluez`
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17734 # Check whether --enable-dbus was given.
17735 if test "${enable_dbus+set}" = set; then :
17736 enableval=$enable_dbus; ac_dbus=$enableval
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS support" >&5
17742 $as_echo_n "checking for DBUS support... " >&6; }
17743 if test x"$ac_dbus" = "xyes"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17745 $as_echo "yes" >&6; }
17747 $as_echo "#define DBUS_ENABLE 1" >>confdefs.h
17749 # Older versions of autotools barf and die on this.
17750 #PKG_CHECK_MODULES(DBUS, dbus-1 >= 0.23.4 )
17751 DBUS_CFLAGS=`pkg-config --cflags dbus-glib-1`
17752 DBUS_LIBS=`pkg-config --libs dbus-1`
17755 #PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.22 )
17756 DBUS_GLIB_LIBS=`pkg-config --libs dbus-glib-1`
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761 $as_echo "no" >&6; }
17764 # Check whether --enable-max-clients was given.
17765 if test "${enable_max_clients+set}" = set; then :
17766 enableval=$enable_max_clients; ac_maxclients=$enableval
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for limited max clients" >&5
17772 $as_echo_n "checking for limited max clients... " >&6; }
17773 if test x"$ac_maxclients" != "xno"; then
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_maxclients" >&5
17775 $as_echo "$ac_maxclients" >&6; }
17777 cat >>confdefs.h <<_ACEOF
17778 #define LIMITED_MAX_CLIENTS $ac_maxclients
17781 LIMITED_MAX_CLIENTS="-DLIMITED_MAX_CLIENTS=$ac_maxclients"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17787 # Check whether --enable-max-devices was given.
17788 if test "${enable_max_devices+set}" = set; then :
17789 enableval=$enable_max_devices; ac_maxdevices=$enableval
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max devices" >&5
17795 $as_echo_n "checking for max devices... " >&6; }
17796 if test x"$ac_maxdevices" != "xno"; then
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_maxdevices" >&5
17798 $as_echo "$ac_maxdevices" >&6; }
17800 cat >>confdefs.h <<_ACEOF
17801 #define LIMITED_MAX_DEVICES $ac_maxdevices
17804 LIMITED_MAX_DEVICES="-DLIMITED_MAX_DEVICES=$ac_maxdevices"
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17807 $as_echo "no" >&6; }
17810 # Check whether --enable-reconfigure was given.
17811 if test "${enable_reconfigure+set}" = set; then :
17812 enableval=$enable_reconfigure; ac_reconfigure=$enableval
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if device reconfiguration is allowed" >&5
17818 $as_echo_n "checking if device reconfiguration is allowed... " >&6; }
17819 if test x"$ac_reconfigure" != "xno"; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_reconfigure" >&5
17821 $as_echo "$ac_reconfigure" >&6; }
17823 $as_echo "#define ALLOW_RECONFIGURE 1" >>confdefs.h
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17827 $as_echo "no" >&6; }
17830 # Check whether --enable-controlsend was given.
17831 if test "${enable_controlsend+set}" = set; then :
17832 enableval=$enable_controlsend; ac_controlsend=$enableval
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if control sending is allowed" >&5
17838 $as_echo_n "checking if control sending is allowed... " >&6; }
17839 if test x"$ac_controlsend" != "xno"; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_controlsend" >&5
17841 $as_echo "$ac_controlsend" >&6; }
17843 $as_echo "#define ALLOW_CONTROLSEND 1" >>confdefs.h
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17847 $as_echo "no" >&6; }
17850 # Check whether --enable-raw was given.
17851 if test "${enable_raw+set}" = set; then :
17852 enableval=$enable_raw; ac_raw=$enableval
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raw Measurement support" >&5
17858 $as_echo_n "checking for Raw Measurement support... " >&6; }
17859 if test x"$ac_raw" = "xyes"; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861 $as_echo "yes" >&6; }
17863 $as_echo "#define RAW_ENABLE 1" >>confdefs.h
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17870 if test x"$ac_dbus" = x"yes"; then
17872 HAVE_DBUS_FALSE='#'
17878 if test x"$ac_bluetooth" = x"yes"; then
17880 HAVE_BLUEZ_FALSE='#'
17882 HAVE_BLUEZ_TRUE='#'
17887 # Check whether --enable-squelch was given.
17888 if test "${enable_squelch+set}" = set; then :
17889 enableval=$enable_squelch; ac_squelch=$enableval
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for disabled logging" >&5
17895 $as_echo_n "checking for disabled logging... " >&6; }
17896 if test x"$ac_squelch" = "xyes"; then
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17900 $as_echo "#define SQUELCH_ENABLE 1" >>confdefs.h
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17904 $as_echo "no" >&6; }
17907 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17908 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17909 (test "X$CXX" != "Xg++"))) ; then
17915 # Check whether --enable-libgpsmm was given.
17916 if test "${enable_libgpsmm+set}" = set; then :
17917 enableval=$enable_libgpsmm; ac_libgpsmm=$enableval
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ support" >&5
17923 $as_echo_n "checking for C++ support... " >&6; }
17924 if test x"$ac_libgpsmm" = "xyes"; then
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926 $as_echo "yes" >&6; }
17928 $as_echo "#define LIBGPSMM_ENABLE 1" >>confdefs.h
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932 $as_echo "no" >&6; }
17935 if test x"$ac_libgpsmm" = x"yes"; then
17936 LIBGPSMM_ENABLE_TRUE=
17937 LIBGPSMM_ENABLE_FALSE='#'
17939 LIBGPSMM_ENABLE_TRUE='#'
17940 LIBGPSMM_ENABLE_FALSE=
17946 # Check whether --enable-libQgpsmm was given.
17947 if test "${enable_libQgpsmm+set}" = set; then :
17948 enableval=$enable_libQgpsmm; ac_libQgpsmm=$enableval
17950 ac_libQgpsmm=$ISCXX
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT support" >&5
17954 $as_echo_n "checking for QT support... " >&6; }
17955 if test x"$ac_libQgpsmm" = "xyes"; then
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtNetwork" >&5
17959 $as_echo_n "checking for QtNetwork... " >&6; }
17961 if test -n "$QtNetwork_CFLAGS"; then
17962 pkg_cv_QtNetwork_CFLAGS="$QtNetwork_CFLAGS"
17963 elif test -n "$PKG_CONFIG"; then
17964 if test -n "$PKG_CONFIG" && \
17965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtNetwork >= 4.4\""; } >&5
17966 ($PKG_CONFIG --exists --print-errors "QtNetwork >= 4.4") 2>&5
17968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; }; then
17970 pkg_cv_QtNetwork_CFLAGS=`$PKG_CONFIG --cflags "QtNetwork >= 4.4" 2>/dev/null`
17977 if test -n "$QtNetwork_LIBS"; then
17978 pkg_cv_QtNetwork_LIBS="$QtNetwork_LIBS"
17979 elif test -n "$PKG_CONFIG"; then
17980 if test -n "$PKG_CONFIG" && \
17981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtNetwork >= 4.4\""; } >&5
17982 ($PKG_CONFIG --exists --print-errors "QtNetwork >= 4.4") 2>&5
17984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985 test $ac_status = 0; }; then
17986 pkg_cv_QtNetwork_LIBS=`$PKG_CONFIG --libs "QtNetwork >= 4.4" 2>/dev/null`
17996 if test $pkg_failed = yes; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998 $as_echo "no" >&6; }
18000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18001 _pkg_short_errors_supported=yes
18003 _pkg_short_errors_supported=no
18005 if test $_pkg_short_errors_supported = yes; then
18006 QtNetwork_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtNetwork >= 4.4" 2>&1`
18008 QtNetwork_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtNetwork >= 4.4" 2>&1`
18010 # Put the nasty error message in config.log where it belongs
18011 echo "$QtNetwork_PKG_ERRORS" >&5
18014 elif test $pkg_failed = untried; then
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18019 QtNetwork_CFLAGS=$pkg_cv_QtNetwork_CFLAGS
18020 QtNetwork_LIBS=$pkg_cv_QtNetwork_LIBS
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18022 $as_echo "yes" >&6; }
18025 if test x"$ac_qt" != "xyes"; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QtNetwork library not found. Not including QT support" >&5
18027 $as_echo "$as_me: WARNING: QtNetwork library not found. Not including QT support" >&2;}
18030 LIB_Q_GPSMM_ENABLE_TRUE=
18031 LIB_Q_GPSMM_ENABLE_FALSE='#'
18033 LIB_Q_GPSMM_ENABLE_TRUE='#'
18034 LIB_Q_GPSMM_ENABLE_FALSE=
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18038 $as_echo "no" >&6; }
18040 for ac_prog in qmake-qt4 qmake
18042 # Extract the first word of "$ac_prog", so it can be a program name with args.
18043 set dummy $ac_prog; ac_word=$2
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18045 $as_echo_n "checking for $ac_word... " >&6; }
18046 if test "${ac_cv_prog_QMAKE+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18049 if test -n "$QMAKE"; then
18050 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
18052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18053 for as_dir in $PATH
18056 test -z "$as_dir" && as_dir=.
18057 for ac_exec_ext in '' $ac_executable_extensions; do
18058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18059 ac_cv_prog_QMAKE="$ac_prog"
18060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18069 QMAKE=$ac_cv_prog_QMAKE
18070 if test -n "$QMAKE"; then
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
18072 $as_echo "$QMAKE" >&6; }
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18079 test -n "$QMAKE" && break
18081 test -n "$QMAKE" || QMAKE="no"
18083 if test x"$QMAKE" != "xno"; then
18085 LIB_Q_GPSMM_ENABLE_TRUE=
18086 LIB_Q_GPSMM_ENABLE_FALSE='#'
18088 LIB_Q_GPSMM_ENABLE_TRUE='#'
18089 LIB_Q_GPSMM_ENABLE_FALSE=
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18093 $as_echo "yes" >&6; }
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: qmake not found. Not including QT support" >&5
18096 $as_echo "$as_me: WARNING: qmake not found. Not including QT support" >&2;}
18099 LIB_Q_GPSMM_ENABLE_TRUE=
18100 LIB_Q_GPSMM_ENABLE_FALSE='#'
18102 LIB_Q_GPSMM_ENABLE_TRUE='#'
18103 LIB_Q_GPSMM_ENABLE_FALSE=
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18114 LIB_Q_GPSMM_ENABLE_TRUE=
18115 LIB_Q_GPSMM_ENABLE_FALSE='#'
18117 LIB_Q_GPSMM_ENABLE_TRUE='#'
18118 LIB_Q_GPSMM_ENABLE_FALSE=
18125 # Check whether --enable-ipv6 was given.
18126 if test "${enable_ipv6+set}" = set; then :
18127 enableval=$enable_ipv6; ac_ipv6=$enableval
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
18133 $as_echo_n "checking for IPv6 support... " >&6; }
18134 if test x"$ac_ipv6" = "xyes"; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136 $as_echo "yes" >&6; }
18138 $as_echo "#define IPV6_ENABLE 1" >>confdefs.h
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18142 $as_echo "no" >&6; }
18145 if test x"$ac_ipv6" = x"yes"; then
18147 IPV6_ENABLE_FALSE='#'
18149 IPV6_ENABLE_TRUE='#'
18154 # Extract the first word of "xsltproc", so it can be a program name with args.
18155 set dummy xsltproc; ac_word=$2
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18157 $as_echo_n "checking for $ac_word... " >&6; }
18158 if test "${ac_cv_prog_WITH_XSLTPROC+set}" = set; then :
18159 $as_echo_n "(cached) " >&6
18161 if test -n "$WITH_XSLTPROC"; then
18162 ac_cv_prog_WITH_XSLTPROC="$WITH_XSLTPROC" # Let the user override the test.
18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18168 test -z "$as_dir" && as_dir=.
18169 for ac_exec_ext in '' $ac_executable_extensions; do
18170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18171 ac_cv_prog_WITH_XSLTPROC="yes"
18172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18179 test -z "$ac_cv_prog_WITH_XSLTPROC" && ac_cv_prog_WITH_XSLTPROC="no"
18182 WITH_XSLTPROC=$ac_cv_prog_WITH_XSLTPROC
18183 if test -n "$WITH_XSLTPROC"; then
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_XSLTPROC" >&5
18185 $as_echo "$WITH_XSLTPROC" >&6; }
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18195 if test "x$WITH_XSLTPROC" = "xyes"; then
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xsltproc knows about docbook xsl" >&5
18197 $as_echo_n "checking whether xsltproc knows about docbook xsl... " >&6; }
18198 DOCBOOK_MAN_URI='http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
18199 DOCBOOK_HTML_URI='http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl'
18200 cat >conftest.xml <<_EOF
18201 <refentry id="foo.1">
18203 <refentrytitle>foo</refentrytitle>
18204 <manvolnum>1</manvolnum>
18205 <refmiscinfo class='date'>9 Aug 2004</refmiscinfo>
18207 <refnamediv id='name'>
18208 <refname>foo</refname>
18209 <refpurpose>check man page generation from docbook source</refpurpose>
18213 if xsltproc --nonet --noout "$DOCBOOK_MAN_URI" conftest.xml >/dev/null 2>&1; then
18215 MANTARGET="$DOCBOOK_MAN_URI"
18216 HTMLTARGET="$DOCBOOK_HTML_URI"
18217 XMLPROCFLAGS="--nonet"
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18219 $as_echo "yes" >&6; }
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222 $as_echo "no" >&6; }
18224 rm -f conftest.xml foo.1
18226 if test x"$XMLPROC" = x; then
18227 # Extract the first word of "xmlto", so it can be a program name with args.
18228 set dummy xmlto; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if test "${ac_cv_prog_WITH_XMLTO+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18234 if test -n "$WITH_XMLTO"; then
18235 ac_cv_prog_WITH_XMLTO="$WITH_XMLTO" # Let the user override the test.
18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238 for as_dir in $PATH
18241 test -z "$as_dir" && as_dir=.
18242 for ac_exec_ext in '' $ac_executable_extensions; do
18243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18244 ac_cv_prog_WITH_XMLTO="yes"
18245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18252 test -z "$ac_cv_prog_WITH_XMLTO" && ac_cv_prog_WITH_XMLTO="no"
18255 WITH_XMLTO=$ac_cv_prog_WITH_XMLTO
18256 if test -n "$WITH_XMLTO"; then
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_XMLTO" >&5
18258 $as_echo "$WITH_XMLTO" >&6; }
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18265 if test "x$WITH_XMLTO" = "xyes"; then
18268 HTMLTARGET=xhtml-nochunks
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither xsltproc nor xmlto works: I will not build man pages." >&5
18272 $as_echo "$as_me: WARNING: Neither xsltproc nor xmlto works: I will not build man pages." >&2;}
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: To build man pages, install xsltproc/xsltlib or xmlto and run autogen.sh again." >&5
18274 $as_echo "$as_me: WARNING: To build man pages, install xsltproc/xsltlib or xmlto and run autogen.sh again." >&2;}
18277 if test x"$XMLPROC" != x; then
18278 HAVE_XSLT_PROCESSOR_TRUE=
18279 HAVE_XSLT_PROCESSOR_FALSE='#'
18281 HAVE_XSLT_PROCESSOR_TRUE='#'
18282 HAVE_XSLT_PROCESSOR_FALSE=
18285 if test x"$XMLPROC" = x"xsltproc"; then
18287 XMLTOSTDOUT_FALSE='#'
18289 XMLTOSTDOUT_TRUE='#'
18298 if test -e /etc/gentoo-release; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a Gentoo system." >&5
18300 $as_echo "$as_me: WARNING: This is a Gentoo system." >&2;}
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adjust your PYTHONPATH to see library directories under /usr/local/lib" >&5
18302 $as_echo "$as_me: WARNING: Adjust your PYTHONPATH to see library directories under /usr/local/lib" >&2;}
18306 echo "=========================================="
18307 echo "$PACKAGE $VERSION"
18308 echo "------------------------------------------"
18311 echo "Ashtech : $ac_ashtech"
18312 echo "Earthmate : $ac_earthmate"
18313 echo "EverMore : $ac_evermore"
18314 echo "FV-18 : $ac_fv18"
18315 echo "Garmin : $ac_garmin"
18316 echo "Garmin Simple Text : $ac_garmintxt"
18317 echo "iTrax : $ac_itrax"
18318 echo "NMEA : $ac_nmea"
18319 echo "NTRIP : $ac_ntrip"
18320 echo "Navcom : $ac_navcom"
18321 echo "OnCore : $ac_oncore"
18322 echo "RTCM104V2 : $ac_rtcm104v2"
18323 echo "RTCM104V3 : $ac_rtcm104v3"
18324 echo "SiRF : $ac_sirf"
18325 echo "SuperStarII : $ac_superstar2"
18326 echo "Trimble TSIP : $ac_tsip"
18327 echo "Tripmate : $ac_tripmate"
18328 echo "True North : $ac_tnt"
18329 echo "OceanServer : $ac_oceanserver"
18330 echo "UBX : $ac_ubx"
18331 echo "GPSclock : $ac_gpsclock"
18332 echo "AIVDM support : $ac_aivdm"
18333 echo "Timing support : $ac_timing"
18334 echo "Client debugging support: $ac_clientdebug"
18335 echo "MTK-3301 : $ac_mtk3301"
18336 echo " Daemon Features"
18337 echo " ---------------"
18338 echo "NTP SHM : $ac_ntpshm"
18339 echo "NTP PPS : $ac_pps"
18340 echo -n "PPS input on : " ; case $ac_ppsoncts in yes) echo "CTS" ;; no) echo "DCD" ;; *) echo "Not defined" ;; esac
18341 echo "Fixed port speed : $ac_baud"
18342 echo "Priv-drop user : $ac_user"
18343 echo "Enable shared libraries : $enable_shared"
18344 echo "Enable DBUS support : $ac_dbus"
18345 echo "Enable BlueZ support : $ac_bluetooth"
18346 echo "Enable IPv6 support : $ac_ipv6"
18347 echo "Limited max clients : $ac_maxclients"
18348 echo "Limited max devices : $ac_maxdevices"
18349 echo "Allow device reconfig : $ac_reconfigure"
18350 echo "Allow control send : $ac_controlsend"
18351 echo "Squelch logging/hexdump : $ac_squelch"
18352 echo "Raw Measurements : $ac_raw"
18353 echo "libusb device discovery : $ac_libusb"
18354 echo " Client Features"
18355 echo " ---------------"
18356 echo "Old protocol in libgps : $ac_oldstyle"
18357 echo "Build ncurses programs : $ac_ncurses"
18358 echo "Enable Python support : $ac_python"
18359 echo "Enable C++ support : $ac_libgpsmm"
18360 echo "Enable Qt support : $ac_libQgpsmm"
18361 echo "------------------------------------------"
18364 if test "xdummy" = "xdummy" -a \
18365 x"$ac_earthmate" = "xno" -a \
18366 x"$ac_evermore" = "xno" -a \
18367 x"$ac_fv18" = "xno" -a \
18368 x"$ac_garmin" = "xno" -a \
18369 x"$ac_garmintxt" = "xno" -a \
18370 x"$ac_itrax" = "xno" -a \
18371 x"$ac_navcom" = "xno" -a \
18372 x"$ac_nmea" = "xno" -a \
18373 x"$ac_ntrip" = "xno" -a \
18374 x"$ac_oncore" = "xno" -a \
18375 x"$ac_rtcm104v2" = "xno" -a \
18376 x"$ac_sirf" = "xno" -a \
18377 x"$ac_superstar2" = "xno" -a \
18378 x"$ac_tnt" = "xno" -a \
18379 x"$ac_oceanserver" = "xno" -a \
18380 x"$ac_tripmate" = "xno" -a \
18381 x"$ac_tsip" = "xno" -a \
18382 x"$ac_ubx" = "xno"; then
18383 as_fn_error $? "Can't build gpsd with no protocols enabled" "$LINENO" 5
18385 ac_config_files="$ac_config_files Makefile packaging/rpm/gpsd.spec libgps.pc libgpsd.pc jsongen.py maskaudit.py valgrind-audit"
18387 ac_config_commands="$ac_config_commands default"
18389 cat >confcache <<\_ACEOF
18390 # This file is a shell script that caches the results of configure
18391 # tests run on this system so they can be shared between configure
18392 # scripts and configure runs, see configure's option --config-cache.
18393 # It is not useful on other systems. If it contains results you don't
18394 # want to keep, you may remove or edit it.
18396 # config.status only pays attention to the cache file if you give it
18397 # the --recheck option to rerun configure.
18399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18401 # following values.
18405 # The following way of writing the cache mishandles newlines in values,
18406 # but we know of no workaround that is simple, portable, and efficient.
18407 # So, we kill variables containing newlines.
18408 # Ultrix sh set writes to stderr and can't be redirected directly,
18409 # and sets the high bit in the cache file unless we assign to the vars.
18411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18412 eval ac_val=\$$ac_var
18416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18420 _ | IFS | as_nl) ;; #(
18421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18422 *) { eval $ac_var=; unset $ac_var;} ;;
18428 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18429 *${as_nl}ac_space=\ *)
18430 # `set' does not quote correctly, so add quotes: double-quote
18431 # substitution turns \\\\ into \\, and sed turns \\ into \.
18434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18437 # `set' quotes correctly as required by POSIX, so do not add quotes.
18438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18452 if test -w "$cache_file"; then
18453 test "x$cache_file" != "x/dev/null" &&
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18455 $as_echo "$as_me: updating cache $cache_file" >&6;}
18456 cat confcache >$cache_file
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18459 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18465 # Let make expand exec_prefix.
18466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18468 DEFS=-DHAVE_CONFIG_H
18473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18474 # 1. Remove the extension, and $U if already installed.
18475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18476 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18478 # will be set to the directory where LIBOBJS objects are built.
18479 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18480 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18482 LIBOBJS=$ac_libobjs
18484 LTLIBOBJS=$ac_ltlibobjs
18487 if test -n "$EXEEXT"; then
18489 am__EXEEXT_FALSE='#'
18491 am__EXEEXT_TRUE='#'
18495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18496 as_fn_error $? "conditional \"AMDEP\" was never defined.
18497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18503 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18504 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
18505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18507 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18508 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18511 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18512 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18516 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18517 as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18520 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18521 as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18524 if test -z "${HAVE_RTCM104V2_TRUE}" && test -z "${HAVE_RTCM104V2_FALSE}"; then
18525 as_fn_error $? "conditional \"HAVE_RTCM104V2\" was never defined.
18526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18528 if test -z "${HAVE_RTCM104V3_TRUE}" && test -z "${HAVE_RTCM104V3_FALSE}"; then
18529 as_fn_error $? "conditional \"HAVE_RTCM104V3\" was never defined.
18530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18532 if test -z "${HAVE_NTRIP_TRUE}" && test -z "${HAVE_NTRIP_FALSE}"; then
18533 as_fn_error $? "conditional \"HAVE_NTRIP\" was never defined.
18534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18536 if test -z "${HAVE_AIVDM_TRUE}" && test -z "${HAVE_AIVDM_FALSE}"; then
18537 as_fn_error $? "conditional \"HAVE_AIVDM\" was never defined.
18538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18540 if test -z "${CLIENTDEBUG_ENABLE_TRUE}" && test -z "${CLIENTDEBUG_ENABLE_FALSE}"; then
18541 as_fn_error $? "conditional \"CLIENTDEBUG_ENABLE\" was never defined.
18542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18544 if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
18545 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
18546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18548 if test -z "${HAVE_BLUEZ_TRUE}" && test -z "${HAVE_BLUEZ_FALSE}"; then
18549 as_fn_error $? "conditional \"HAVE_BLUEZ\" was never defined.
18550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18552 if test -z "${LIBGPSMM_ENABLE_TRUE}" && test -z "${LIBGPSMM_ENABLE_FALSE}"; then
18553 as_fn_error $? "conditional \"LIBGPSMM_ENABLE\" was never defined.
18554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18556 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18557 as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18560 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18561 as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18564 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18565 as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18568 if test -z "${LIB_Q_GPSMM_ENABLE_TRUE}" && test -z "${LIB_Q_GPSMM_ENABLE_FALSE}"; then
18569 as_fn_error $? "conditional \"LIB_Q_GPSMM_ENABLE\" was never defined.
18570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18572 if test -z "${IPV6_ENABLE_TRUE}" && test -z "${IPV6_ENABLE_FALSE}"; then
18573 as_fn_error $? "conditional \"IPV6_ENABLE\" was never defined.
18574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18576 if test -z "${HAVE_XSLT_PROCESSOR_TRUE}" && test -z "${HAVE_XSLT_PROCESSOR_FALSE}"; then
18577 as_fn_error $? "conditional \"HAVE_XSLT_PROCESSOR\" was never defined.
18578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580 if test -z "${XMLTOSTDOUT_TRUE}" && test -z "${XMLTOSTDOUT_FALSE}"; then
18581 as_fn_error $? "conditional \"XMLTOSTDOUT\" was never defined.
18582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18585 : ${CONFIG_STATUS=./config.status}
18587 ac_clean_files_save=$ac_clean_files
18588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18594 # Generated by $as_me.
18595 # Run this file to recreate the current configuration.
18596 # Compiler output produced by configure, useful for debugging
18597 # configure, is in config.log if it exists.
18600 ac_cs_recheck=false
18603 SHELL=\${CONFIG_SHELL-$SHELL}
18606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18607 ## -------------------- ##
18608 ## M4sh Initialization. ##
18609 ## -------------------- ##
18611 # Be more Bourne compatible
18612 DUALCASE=1; export DUALCASE # for MKS sh
18613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18617 # is contrary to our usage. Disable this feature.
18618 alias -g '${1+"$@"}'='"$@"'
18619 setopt NO_GLOB_SUBST
18621 case `(set -o) 2>/dev/null` in #(
18633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18637 # Prefer a ksh shell builtin over an external printf program on Solaris,
18638 # but without wasting forks for bash or zsh.
18639 if test -z "$BASH_VERSION$ZSH_VERSION" \
18640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18641 as_echo='print -r --'
18642 as_echo_n='print -rn --'
18643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18644 as_echo='printf %s\n'
18645 as_echo_n='printf %s'
18647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18649 as_echo_n='/usr/ucb/echo -n'
18651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18652 as_echo_n_body='eval
18656 expr "X$arg" : "X\\(.*\\)$as_nl";
18657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18661 export as_echo_n_body
18662 as_echo_n='sh -c $as_echo_n_body as_echo'
18664 export as_echo_body
18665 as_echo='sh -c $as_echo_body as_echo'
18668 # The user is always right.
18669 if test "${PATH_SEPARATOR+set}" != set; then
18671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18679 # We need space, tab and new line, in precisely that order. Quoting is
18680 # there to prevent editors from complaining about space-tab.
18681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18682 # splitting by setting IFS to empty value.)
18685 # Find who we are. Look in the path if we contain no directory separator.
18687 *[\\/]* ) as_myself=$0 ;;
18688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18692 test -z "$as_dir" && as_dir=.
18693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18699 # We did not find ourselves, most probably we were run as `sh COMMAND'
18700 # in which case we are not to be found in the path.
18701 if test "x$as_myself" = x; then
18704 if test ! -f "$as_myself"; then
18705 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18709 # Unset variables that we do not need and which cause bugs (e.g. in
18710 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18711 # suppresses any "Segmentation fault" message there. '((' could
18712 # trigger a bug in pdksh 5.2.14.
18713 for as_var in BASH_ENV ENV MAIL MAILPATH
18714 do eval test x\${$as_var+set} = xset \
18715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18731 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18732 # ----------------------------------------
18733 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18734 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18735 # script with STATUS, using 1 if that was 0.
18738 as_status=$1; test $as_status -eq 0 && as_status=1
18740 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18741 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18743 $as_echo "$as_me: error: $2" >&2
18744 as_fn_exit $as_status
18748 # as_fn_set_status STATUS
18749 # -----------------------
18750 # Set $? to STATUS, without forking.
18751 as_fn_set_status ()
18754 } # as_fn_set_status
18756 # as_fn_exit STATUS
18757 # -----------------
18758 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18762 as_fn_set_status $1
18768 # Portably unset VAR.
18771 { eval $1=; unset $1;}
18773 as_unset=as_fn_unset
18774 # as_fn_append VAR VALUE
18775 # ----------------------
18776 # Append the text in VALUE to the end of the definition contained in VAR. Take
18777 # advantage of any shell optimizations that allow amortized linear growth over
18778 # repeated appends, instead of the typical quadratic growth present in naive
18780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18781 eval 'as_fn_append ()
18792 # as_fn_arith ARG...
18793 # ------------------
18794 # Perform arithmetic evaluation on the ARGs, and store the result in the
18795 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18796 # must be portable across $(()) and expr.
18797 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18798 eval 'as_fn_arith ()
18805 as_val=`expr "$@" || test $? -eq 1`
18810 if expr a : '\(a\)' >/dev/null 2>&1 &&
18811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18818 as_basename=basename
18823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18829 as_me=`$as_basename -- "$0" ||
18830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18831 X"$0" : 'X\(//\)$' \| \
18832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18834 sed '/^.*\/\([^/][^/]*\)\/*$/{
18848 # Avoid depending upon Character Ranges.
18849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18852 as_cr_digits='0123456789'
18853 as_cr_alnum=$as_cr_Letters$as_cr_digits
18855 ECHO_C= ECHO_N= ECHO_T=
18856 case `echo -n x` in #(((((
18858 case `echo 'xy\c'` in
18859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18861 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18868 rm -f conf$$ conf$$.exe conf$$.file
18869 if test -d conf$$.dir; then
18870 rm -f conf$$.dir/conf$$.file
18873 mkdir conf$$.dir 2>/dev/null
18875 if (echo >conf$$.file) 2>/dev/null; then
18876 if ln -s conf$$.file conf$$ 2>/dev/null; then
18878 # ... but there are two gotchas:
18879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18881 # In both cases, we have to default to `cp -p'.
18882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18884 elif ln conf$$.file conf$$ 2>/dev/null; then
18892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18893 rmdir conf$$.dir 2>/dev/null
18898 # Create "$as_dir" as a directory, including parents if necessary.
18903 -*) as_dir=./$as_dir;;
18905 test -d "$as_dir" || eval $as_mkdir_p || {
18909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18910 *) as_qdir=$as_dir;;
18912 as_dirs="'$as_qdir' $as_dirs"
18913 as_dir=`$as_dirname -- "$as_dir" ||
18914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18915 X"$as_dir" : 'X\(//\)[^/]' \| \
18916 X"$as_dir" : 'X\(//\)$' \| \
18917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18918 $as_echo X"$as_dir" |
18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18923 /^X\(\/\/\)[^/].*/{
18936 test -d "$as_dir" && break
18938 test -z "$as_dirs" || eval "mkdir $as_dirs"
18939 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18943 if mkdir -p . 2>/dev/null; then
18944 as_mkdir_p='mkdir -p "$as_dir"'
18946 test -d ./-p && rmdir ./-p
18950 if test -x / >/dev/null 2>&1; then
18951 as_test_x='test -x'
18953 if ls -dL / >/dev/null 2>&1; then
18960 if test -d "$1"; then
18966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18967 ???[sx]*):;;*)false;;esac;fi
18971 as_executable_p=$as_test_x
18973 # Sed expression to map a string onto a valid CPP name.
18974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18976 # Sed expression to map a string onto a valid variable name.
18977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18981 ## ----------------------------------- ##
18982 ## Main body of $CONFIG_STATUS script. ##
18983 ## ----------------------------------- ##
18985 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # Save the log message, to keep $0 and so on meaningful, and to
18989 # report actual input values of CONFIG_FILES etc. instead of their
18990 # values after options handling.
18992 This file was extended by $as_me, which was
18993 generated by GNU Autoconf 2.67. Invocation command line was
18995 CONFIG_FILES = $CONFIG_FILES
18996 CONFIG_HEADERS = $CONFIG_HEADERS
18997 CONFIG_LINKS = $CONFIG_LINKS
18998 CONFIG_COMMANDS = $CONFIG_COMMANDS
19001 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19006 case $ac_config_files in *"
19007 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19010 case $ac_config_headers in *"
19011 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19016 # Files that config.status was made for.
19017 config_files="$ac_config_files"
19018 config_headers="$ac_config_headers"
19019 config_commands="$ac_config_commands"
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19025 \`$as_me' instantiates files and other configuration actions
19026 from templates according to the current configuration. Unless the files
19027 and actions are specified as TAGs, all are instantiated by default.
19029 Usage: $0 [OPTION]... [TAG]...
19031 -h, --help print this help, then exit
19032 -V, --version print version number and configuration settings, then exit
19033 --config print configuration, then exit
19034 -q, --quiet, --silent
19035 do not print progress messages
19036 -d, --debug don't remove temporary files
19037 --recheck update $as_me by reconfiguring in the same conditions
19038 --file=FILE[:TEMPLATE]
19039 instantiate the configuration file FILE
19040 --header=FILE[:TEMPLATE]
19041 instantiate the configuration header FILE
19043 Configuration files:
19046 Configuration headers:
19049 Configuration commands:
19052 Report bugs to the package provider."
19055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19056 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19059 configured by $0, generated by GNU Autoconf 2.67,
19060 with options \\"\$ac_cs_config\\"
19062 Copyright (C) 2010 Free Software Foundation, Inc.
19063 This config.status script is free software; the Free Software Foundation
19064 gives unlimited permission to copy, distribute and modify it."
19071 test -n "\$AWK" || AWK=awk
19074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19075 # The default lists apply if the user does not specify any file.
19081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19098 # Handling of the options.
19099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19102 $as_echo "$ac_cs_version"; exit ;;
19103 --config | --confi | --conf | --con | --co | --c )
19104 $as_echo "$ac_cs_config"; exit ;;
19105 --debug | --debu | --deb | --de | --d | -d )
19107 --file | --fil | --fi | --f )
19110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19111 '') as_fn_error $? "missing file argument" ;;
19113 as_fn_append CONFIG_FILES " '$ac_optarg'"
19114 ac_need_defaults=false;;
19115 --header | --heade | --head | --hea )
19118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19120 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19121 ac_need_defaults=false;;
19123 # Conflict between --help and --header
19124 as_fn_error $? "ambiguous option: \`$1'
19125 Try \`$0 --help' for more information.";;
19126 --help | --hel | -h )
19127 $as_echo "$ac_cs_usage"; exit ;;
19128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19132 # This is an error.
19133 -*) as_fn_error $? "unrecognized option: \`$1'
19134 Try \`$0 --help' for more information." ;;
19136 *) as_fn_append ac_config_targets " $1"
19137 ac_need_defaults=false ;;
19143 ac_configure_extra_args=
19145 if $ac_cs_silent; then
19147 ac_configure_extra_args="$ac_configure_extra_args --silent"
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 if \$ac_cs_recheck; then
19153 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19156 CONFIG_SHELL='$SHELL'
19157 export CONFIG_SHELL
19162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19167 ## Running $as_me. ##
19173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19177 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19180 # The HP-UX ksh and POSIX shell print the target directory to stdout
19181 # if CDPATH is set.
19182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19184 sed_quote_subst='$sed_quote_subst'
19185 double_quote_subst='$double_quote_subst'
19186 delay_variable_subst='$delay_variable_subst'
19187 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19188 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19189 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19190 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19191 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19192 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19193 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19194 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19195 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19196 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19197 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19198 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19199 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19200 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19201 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19202 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19203 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19204 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19205 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19206 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19207 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19208 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19209 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19210 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19211 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19212 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19213 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19214 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19215 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19216 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19217 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19218 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19219 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19220 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19221 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19222 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19223 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19224 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19225 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19226 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19227 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19228 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19229 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19231 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19233 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19234 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19235 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19236 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19237 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19238 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19239 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19240 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19241 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19242 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19243 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19244 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19245 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19246 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19247 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19248 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19249 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19252 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19253 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19254 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19255 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19256 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19257 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19258 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19259 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19260 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19261 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19262 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19263 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19265 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19266 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19267 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19268 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19269 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19270 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19271 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19272 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19273 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19274 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19275 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19276 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19277 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19278 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19279 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19280 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19281 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19282 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19283 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19284 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19285 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19286 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19287 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19288 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19289 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19290 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19291 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19293 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19294 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19295 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19296 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19297 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19298 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19299 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19300 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19301 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19302 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19303 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19304 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19305 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19306 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19307 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19308 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19309 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19310 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19311 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19312 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19313 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19314 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19315 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19316 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19317 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19318 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19319 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19320 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19321 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19322 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19323 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19324 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19325 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19326 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19327 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19328 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19329 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19330 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19331 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19332 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19333 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19334 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19335 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19336 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19337 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19338 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19339 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19340 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19341 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19342 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19343 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19344 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19345 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19346 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19347 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19348 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19349 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19350 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19351 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19352 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19353 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19354 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19355 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19356 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19357 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19360 LTCFLAGS='$LTCFLAGS'
19361 compiler='$compiler_DEFAULT'
19363 # Quote evaled strings.
19375 deplibs_check_method \
19384 lt_cv_sys_global_symbol_pipe \
19385 lt_cv_sys_global_symbol_to_cdecl \
19386 lt_cv_sys_global_symbol_to_c_name_address \
19387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19390 lt_prog_compiler_no_builtin_flag \
19391 lt_prog_compiler_wl \
19392 lt_prog_compiler_pic \
19393 lt_prog_compiler_static \
19394 lt_cv_prog_compiler_c_o \
19402 export_dynamic_flag_spec \
19403 whole_archive_flag_spec \
19404 compiler_needs_object \
19406 allow_undefined_flag \
19407 no_undefined_flag \
19408 hardcode_libdir_flag_spec \
19409 hardcode_libdir_flag_spec_ld \
19410 hardcode_libdir_separator \
19415 variables_saved_for_relink \
19417 library_names_spec \
19422 compiler_lib_search_dirs \
19427 compiler_lib_search_path \
19430 lt_prog_compiler_no_builtin_flag_CXX \
19431 lt_prog_compiler_wl_CXX \
19432 lt_prog_compiler_pic_CXX \
19433 lt_prog_compiler_static_CXX \
19434 lt_cv_prog_compiler_c_o_CXX \
19435 export_dynamic_flag_spec_CXX \
19436 whole_archive_flag_spec_CXX \
19437 compiler_needs_object_CXX \
19439 allow_undefined_flag_CXX \
19440 no_undefined_flag_CXX \
19441 hardcode_libdir_flag_spec_CXX \
19442 hardcode_libdir_flag_spec_ld_CXX \
19443 hardcode_libdir_separator_CXX \
19444 fix_srcfile_path_CXX \
19445 exclude_expsyms_CXX \
19446 include_expsyms_CXX \
19447 file_list_spec_CXX \
19448 compiler_lib_search_dirs_CXX \
19449 predep_objects_CXX \
19450 postdep_objects_CXX \
19453 compiler_lib_search_path_CXX; do
19454 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19455 *[\\\\\\\`\\"\\\$]*)
19456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19464 # Double-quote double-evaled strings.
19465 for var in reload_cmds \
19466 old_postinstall_cmds \
19467 old_postuninstall_cmds \
19469 extract_expsyms_cmds \
19470 old_archive_from_new_cmds \
19471 old_archive_from_expsyms_cmds \
19473 archive_expsym_cmds \
19475 module_expsym_cmds \
19476 export_symbols_cmds \
19479 postuninstall_cmds \
19481 sys_lib_search_path_spec \
19482 sys_lib_dlsearch_path_spec \
19483 old_archive_cmds_CXX \
19484 old_archive_from_new_cmds_CXX \
19485 old_archive_from_expsyms_cmds_CXX \
19487 archive_expsym_cmds_CXX \
19489 module_expsym_cmds_CXX \
19490 export_symbols_cmds_CXX \
19491 prelink_cmds_CXX; do
19492 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19493 *[\\\\\\\`\\"\\\$]*)
19494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19502 # Fix-up fallback echo if it was mangled by the above quoting rules.
19504 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19508 ac_aux_dir='$ac_aux_dir'
19509 xsi_shell='$xsi_shell'
19510 lt_shell_append='$lt_shell_append'
19512 # See if we are running on zsh, and set the options which allow our
19513 # commands through without removal of \ escapes INIT.
19514 if test -n "\${ZSH_VERSION+set}" ; then
19515 setopt NO_GLOB_SUBST
19521 TIMESTAMP='$TIMESTAMP'
19532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19534 # Handling of arguments.
19535 for ac_config_target in $ac_config_targets
19537 case $ac_config_target in
19538 "gpsd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gpsd_config.h" ;;
19539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19540 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19541 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19542 "packaging/rpm/gpsd.spec") CONFIG_FILES="$CONFIG_FILES packaging/rpm/gpsd.spec" ;;
19543 "libgps.pc") CONFIG_FILES="$CONFIG_FILES libgps.pc" ;;
19544 "libgpsd.pc") CONFIG_FILES="$CONFIG_FILES libgpsd.pc" ;;
19545 "jsongen.py") CONFIG_FILES="$CONFIG_FILES jsongen.py" ;;
19546 "maskaudit.py") CONFIG_FILES="$CONFIG_FILES maskaudit.py" ;;
19547 "valgrind-audit") CONFIG_FILES="$CONFIG_FILES valgrind-audit" ;;
19548 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19550 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19555 # If the user did not use the arguments to specify the items to instantiate,
19556 # then the envvar interface is used. Set only those that are not.
19557 # We use the long form for the default assignment because of an extremely
19558 # bizarre bug on SunOS 4.1.3.
19559 if $ac_need_defaults; then
19560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19562 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19565 # Have a temporary directory for convenience. Make it in the build tree
19566 # simply because there is no reason against having it here, and in addition,
19567 # creating and moving files from /tmp can sometimes cause problems.
19568 # Hook for its removal unless debugging.
19569 # Note that there is a small window in which the directory will not be cleaned:
19570 # after its creation but before its name has been assigned to `$tmp'.
19574 trap 'exit_status=$?
19575 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19577 trap 'as_fn_exit 1' 1 2 13 15
19579 # Create a (secure) tmp directory for tmp files.
19582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19583 test -n "$tmp" && test -d "$tmp"
19586 tmp=./conf$$-$RANDOM
19587 (umask 077 && mkdir "$tmp")
19588 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19590 # Set up the scripts for CONFIG_FILES section.
19591 # No need to generate them if there are no CONFIG_FILES.
19592 # This happens for instance with `./config.status config.h'.
19593 if test -n "$CONFIG_FILES"; then
19596 ac_cr=`echo X | tr X '\015'`
19597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19598 # But we know of no other shell where ac_cr would be empty at this
19599 # point, so we can use a bashism as a fallback.
19600 if test "x$ac_cr" = x; then
19601 eval ac_cr=\$\'\\r\'
19603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19607 ac_cs_awk_cr=$ac_cr
19610 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19615 echo "cat >conf$$subs.awk <<_ACEOF" &&
19616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19618 } >conf$$subs.sh ||
19619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19622 for ac_last_try in false false false false false :; do
19623 . ./conf$$subs.sh ||
19624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19627 if test $ac_delim_n = $ac_delim_num; then
19629 elif $ac_last_try; then
19630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19635 rm -f conf$$subs.sh
19637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19638 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19642 s/^/S["/; s/!.*/"]=/
19652 s/\(.\{148\}\)..*/\1/
19654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19666 s/\(.\{148\}\)..*/\1/
19668 s/["\\]/\\&/g; s/^/"/; s/$/"/
19672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19677 ' <conf$$subs.awk | sed '
19682 ' >>$CONFIG_STATUS || ac_write_fail=1
19683 rm -f conf$$subs.awk
19684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19686 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19687 for (key in S) S_is_set[key] = 1
19693 nfields = split(line, field, "@")
19695 len = length(field[1])
19696 for (i = 2; i < nfields; i++) {
19698 keylen = length(key)
19699 if (S_is_set[key]) {
19701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19702 len += length(value) + length(field[++i])
19713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19718 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19724 # trailing colons and then remove the whole line if VPATH becomes empty
19725 # (actually we leave an empty line to preserve line numbers).
19726 if test "x$srcdir" = x.; then
19727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746 fi # test -n "$CONFIG_FILES"
19748 # Set up the scripts for CONFIG_HEADERS section.
19749 # No need to generate them if there are no CONFIG_HEADERS.
19750 # This happens for instance with `./config.status Makefile'.
19751 if test -n "$CONFIG_HEADERS"; then
19752 cat >"$tmp/defines.awk" <<\_ACAWK ||
19756 # Transform confdefs.h into an awk script `defines.awk', embedded as
19757 # here-document in config.status, that substitutes the proper values into
19758 # config.h.in to produce config.h.
19760 # Create a delimiter string that does not exist in confdefs.h, to ease
19761 # handling of long lines.
19763 for ac_last_try in false false :; do
19764 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19765 if test -z "$ac_t"; then
19767 elif $ac_last_try; then
19768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19774 # For the awk script, D is an array of macro values keyed by name,
19775 # likewise P contains macro parameters if any. Preserve backslash
19776 # newline sequences.
19778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19780 s/.\{148\}/&'"$ac_delim"'/g
19783 s/^[ ]*#[ ]*define[ ][ ]*/ /
19790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19797 D["\1"]=" \3\\\\\\n"\\/p
19799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19804 s/.\{148\}/&'"$ac_delim"'/g
19809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19814 ' <confdefs.h | sed '
19815 s/'"$ac_delim"'/"\\\
19816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19819 for (key in D) D_is_set[key] = 1
19822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19824 split(line, arg, " ")
19825 if (arg[1] == "#") {
19829 defundef = substr(arg[1], 2)
19832 split(mac1, mac2, "(") #)
19834 prefix = substr(line, 1, index(line, defundef) - 1)
19835 if (D_is_set[macro]) {
19836 # Preserve the white space surrounding the "#".
19837 print prefix "define", macro P[macro] D[macro]
19840 # Replace #undef with comments. This is necessary, for example,
19841 # in the case of _POSIX_SOURCE, which is predefined and required
19842 # on some systems where configure will not decide to define it.
19843 if (defundef == "undef") {
19844 print "/*", prefix defundef, macro, "*/"
19852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19854 fi # test -n "$CONFIG_HEADERS"
19857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19862 :[FHLC]) ac_mode=$ac_tag; continue;;
19864 case $ac_mode$ac_tag in
19866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
19867 :[FH]-) ac_tag=-:-;;
19868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19885 -) ac_f="$tmp/stdin";;
19886 *) # Look for the file first in the build tree, then in the source tree
19887 # (if the path is not absolute). The absolute path cannot be DOS-style,
19888 # because $ac_f cannot contain `:'.
19892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
19896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19897 as_fn_append ac_file_inputs " '$ac_f'"
19900 # Let's still pretend it is `configure' which instantiates (i.e., don't
19901 # use $as_me), people would be surprised to read:
19902 # /* config.h. Generated by config.status. */
19903 configure_input='Generated from '`
19904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19906 if test x"$ac_file" != x-; then
19907 configure_input="$ac_file. $configure_input"
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19909 $as_echo "$as_me: creating $ac_file" >&6;}
19911 # Neutralize special characters interpreted by sed in replacement strings.
19912 case $configure_input in #(
19913 *\&* | *\|* | *\\* )
19914 ac_sed_conf_input=`$as_echo "$configure_input" |
19915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19916 *) ac_sed_conf_input=$configure_input;;
19920 *:-:* | *:-) cat >"$tmp/stdin" \
19921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19926 ac_dir=`$as_dirname -- "$ac_file" ||
19927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19928 X"$ac_file" : 'X\(//\)[^/]' \| \
19929 X"$ac_file" : 'X\(//\)$' \| \
19930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19931 $as_echo X"$ac_file" |
19932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19936 /^X\(\/\/\)[^/].*/{
19949 as_dir="$ac_dir"; as_fn_mkdir_p
19953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19956 # A ".." for each directory in $ac_dir_suffix.
19957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19958 case $ac_top_builddir_sub in
19959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19963 ac_abs_top_builddir=$ac_pwd
19964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19965 # for backward compatibility:
19966 ac_top_builddir=$ac_top_build_prefix
19969 .) # We are building in place.
19971 ac_top_srcdir=$ac_top_builddir_sub
19972 ac_abs_top_srcdir=$ac_pwd ;;
19973 [\\/]* | ?:[\\/]* ) # Absolute name.
19974 ac_srcdir=$srcdir$ac_dir_suffix;
19975 ac_top_srcdir=$srcdir
19976 ac_abs_top_srcdir=$srcdir ;;
19977 *) # Relative name.
19978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19979 ac_top_srcdir=$ac_top_build_prefix$srcdir
19980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19995 ac_MKDIR_P=$MKDIR_P
19997 [\\/$]* | ?:[\\/]* ) ;;
19998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 # If the template does not know about datarootdir, expand it.
20004 # FIXME: This hack should be removed a few years after 2.60.
20005 ac_datarootdir_hack=; ac_datarootdir_seen=
20016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20017 *datarootdir*) ac_datarootdir_seen=yes;;
20018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20023 ac_datarootdir_hack='
20024 s&@datadir@&$datadir&g
20025 s&@docdir@&$docdir&g
20026 s&@infodir@&$infodir&g
20027 s&@localedir@&$localedir&g
20028 s&@mandir@&$mandir&g
20029 s&\\\${datarootdir}&$datarootdir&g' ;;
20033 # Neutralize VPATH when `$srcdir' = `.'.
20034 # Shell code in configure.ac might set extrasub.
20035 # FIXME: do we really want to maintain this feature?
20036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20037 ac_sed_extra="$ac_vpsub
20040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20043 s|@configure_input@|$ac_sed_conf_input|;t t
20044 s&@top_builddir@&$ac_top_builddir_sub&;t t
20045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20046 s&@srcdir@&$ac_srcdir&;t t
20047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20048 s&@top_srcdir@&$ac_top_srcdir&;t t
20049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20050 s&@builddir@&$ac_builddir&;t t
20051 s&@abs_builddir@&$ac_abs_builddir&;t t
20052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20053 s&@INSTALL@&$ac_INSTALL&;t t
20054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20055 $ac_datarootdir_hack
20057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20064 which seems to be undefined. Please make sure it is defined" >&5
20065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20066 which seems to be undefined. Please make sure it is defined" >&2;}
20070 -) cat "$tmp/out" && rm -f "$tmp/out";;
20071 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20079 if test x"$ac_file" != x-; then
20081 $as_echo "/* $configure_input */" \
20082 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20083 } >"$tmp/config.h" \
20084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20085 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20087 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20090 mv "$tmp/config.h" "$ac_file" \
20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20094 $as_echo "/* $configure_input */" \
20095 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20096 || as_fn_error $? "could not create -" "$LINENO" 5
20098 # Compute "$ac_file"'s index in $config_headers.
20101 for _am_header in $config_headers :; do
20102 case $_am_header in
20103 $_am_arg | $_am_arg:* )
20106 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20109 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20110 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20111 X"$_am_arg" : 'X\(//\)[^/]' \| \
20112 X"$_am_arg" : 'X\(//\)$' \| \
20113 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20114 $as_echo X"$_am_arg" |
20115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20119 /^X\(\/\/\)[^/].*/{
20131 s/.*/./; q'`/stamp-h$_am_stamp_count
20134 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20135 $as_echo "$as_me: executing $ac_file commands" >&6;}
20140 case $ac_file$ac_mode in
20141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20142 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20143 # are listed without --file. Let's play safe and only enable the eval
20144 # if we detect the quoting.
20145 case $CONFIG_FILES in
20146 *\'*) eval set x "$CONFIG_FILES" ;;
20147 *) set x $CONFIG_FILES ;;
20152 # Strip MF so we end up with the name of the file.
20153 mf=`echo "$mf" | sed -e 's/:.*$//'`
20154 # Check whether this is an Automake generated Makefile or not.
20155 # We used to match only the files named `Makefile.in', but
20156 # some people rename them; so instead we look at the file content.
20157 # Grep'ing the first line is not enough: some people post-process
20158 # each Makefile.in and add a new line on top of each file to say so.
20159 # Grep'ing the whole file is not good either: AIX grep has a line
20160 # limit of 2048, but all sed's we know have understand at least 4000.
20161 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20162 dirpart=`$as_dirname -- "$mf" ||
20163 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20164 X"$mf" : 'X\(//\)[^/]' \| \
20165 X"$mf" : 'X\(//\)$' \| \
20166 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20172 /^X\(\/\/\)[^/].*/{
20188 # Extract the definition of DEPDIR, am__include, and am__quote
20189 # from the Makefile without running `make'.
20190 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20191 test -z "$DEPDIR" && continue
20192 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20193 test -z "am__include" && continue
20194 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20195 # When using ansi2knr, U may be empty or an underscore; expand it
20196 U=`sed -n 's/^U = //p' < "$mf"`
20197 # Find all dependency output files, they are included files with
20198 # $(DEPDIR) in their names. We invoke sed twice because it is the
20199 # simplest approach to changing $(DEPDIR) to its actual value in the
20201 for file in `sed -n "
20202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20204 # Make sure the directory exists.
20205 test -f "$dirpart/$file" && continue
20206 fdir=`$as_dirname -- "$file" ||
20207 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X"$file" : 'X\(//\)[^/]' \| \
20209 X"$file" : 'X\(//\)$' \| \
20210 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20211 $as_echo X"$file" |
20212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20216 /^X\(\/\/\)[^/].*/{
20229 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20230 # echo "creating $dirpart/$file"
20231 echo '# dummy' > "$dirpart/$file"
20238 # See if we are running on zsh, and set the options which allow our
20239 # commands through without removal of \ escapes.
20240 if test -n "${ZSH_VERSION+set}" ; then
20241 setopt NO_GLOB_SUBST
20244 cfgfile="${ofile}T"
20245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20248 cat <<_LT_EOF >> "$cfgfile"
20251 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20252 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20256 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20257 # 2006, 2007, 2008 Free Software Foundation, Inc.
20258 # Written by Gordon Matzigkeit, 1996
20260 # This file is part of GNU Libtool.
20262 # GNU Libtool is free software; you can redistribute it and/or
20263 # modify it under the terms of the GNU General Public License as
20264 # published by the Free Software Foundation; either version 2 of
20265 # the License, or (at your option) any later version.
20267 # As a special exception to the GNU General Public License,
20268 # if you distribute this file as part of a program or library that
20269 # is built using GNU Libtool, you may include this file under the
20270 # same distribution terms that you use for the rest of that program.
20272 # GNU Libtool is distributed in the hope that it will be useful,
20273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20275 # GNU General Public License for more details.
20277 # You should have received a copy of the GNU General Public License
20278 # along with GNU Libtool; see the file COPYING. If not, a copy
20279 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20280 # obtained by writing to the Free Software Foundation, Inc.,
20281 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20284 # The names of the tagged configurations supported by this script.
20285 available_tags="CXX "
20287 # ### BEGIN LIBTOOL CONFIG
20289 # Which release of libtool.m4 was used?
20290 macro_version=$macro_version
20291 macro_revision=$macro_revision
20293 # Whether or not to build shared libraries.
20294 build_libtool_libs=$enable_shared
20296 # Whether or not to build static libraries.
20297 build_old_libs=$enable_static
20299 # What type of objects to build.
20302 # Whether or not to optimize for fast installation.
20303 fast_install=$enable_fast_install
20306 host_alias=$host_alias
20310 # The build system.
20311 build_alias=$build_alias
20315 # A sed program that does not truncate output.
20318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20319 Xsed="\$SED -e 1s/^X//"
20321 # A grep program that handles long lines.
20327 # A literal string matcher.
20330 # A BSD- or MS-compatible name lister.
20333 # Whether we need soft or hard links.
20336 # What is the maximum length of a command?
20337 max_cmd_len=$max_cmd_len
20339 # Object file suffix (normally "o").
20342 # Executable file suffix (normally "").
20345 # whether the shell understands "unset".
20348 # turn spaces into newlines.
20351 # turn newlines into spaces.
20354 # How to create reloadable object files.
20355 reload_flag=$lt_reload_flag
20356 reload_cmds=$lt_reload_cmds
20358 # An object symbol dumper.
20359 OBJDUMP=$lt_OBJDUMP
20361 # Method to check whether dependent libraries are shared objects.
20362 deplibs_check_method=$lt_deplibs_check_method
20364 # Command to use when deplibs_check_method == "file_magic".
20365 file_magic_cmd=$lt_file_magic_cmd
20369 AR_FLAGS=$lt_AR_FLAGS
20371 # A symbol stripping program.
20374 # Commands used to install an old-style archive.
20376 old_postinstall_cmds=$lt_old_postinstall_cmds
20377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20382 # LTCC compiler flags.
20383 LTCFLAGS=$lt_CFLAGS
20385 # Take the output of nm and produce a listing of raw symbols and C names.
20386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20388 # Transform the output of nm in a proper C declaration.
20389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20391 # Transform the output of nm in a C name address pair.
20392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20394 # Transform the output of nm in a C name address pair when lib prefix is needed.
20395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20397 # The name of the directory that contains temporary libtool files.
20400 # Shell to use when invoking shell scripts.
20403 # An echo program that does not interpret backslashes.
20406 # Used to examine libraries when file_magic_cmd begins with "file".
20407 MAGIC_CMD=$MAGIC_CMD
20409 # Must we lock files when doing compilation?
20410 need_locks=$lt_need_locks
20412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20413 DSYMUTIL=$lt_DSYMUTIL
20415 # Tool to change global to local symbols on Mac OS X.
20418 # Tool to manipulate fat objects and archives on Mac OS X.
20421 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20424 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20425 OTOOL64=$lt_OTOOL64
20427 # Old archive suffix (normally "a").
20430 # Shared library suffix (normally ".so").
20431 shrext_cmds=$lt_shrext_cmds
20433 # The commands to extract the exported symbol list from a shared archive.
20434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20436 # Variables whose values should be saved in libtool wrapper scripts and
20437 # restored at link time.
20438 variables_saved_for_relink=$lt_variables_saved_for_relink
20440 # Do we need the "lib" prefix for modules?
20441 need_lib_prefix=$need_lib_prefix
20443 # Do we need a version for libraries?
20444 need_version=$need_version
20446 # Library versioning type.
20447 version_type=$version_type
20449 # Shared library runtime path variable.
20450 runpath_var=$runpath_var
20452 # Shared library path variable.
20453 shlibpath_var=$shlibpath_var
20455 # Is shlibpath searched before the hard-coded library search path?
20456 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20458 # Format of library name prefix.
20459 libname_spec=$lt_libname_spec
20461 # List of archive names. First name is the real one, the rest are links.
20462 # The last name is the one that the linker finds with -lNAME
20463 library_names_spec=$lt_library_names_spec
20465 # The coded name of the library, if different from the real name.
20466 soname_spec=$lt_soname_spec
20468 # Command to use after installation of a shared archive.
20469 postinstall_cmds=$lt_postinstall_cmds
20471 # Command to use after uninstallation of a shared archive.
20472 postuninstall_cmds=$lt_postuninstall_cmds
20474 # Commands used to finish a libtool library installation in a directory.
20475 finish_cmds=$lt_finish_cmds
20477 # As "finish_cmds", except a single script fragment to be evaled but
20479 finish_eval=$lt_finish_eval
20481 # Whether we should hardcode library paths into libraries.
20482 hardcode_into_libs=$hardcode_into_libs
20484 # Compile-time system search path for libraries.
20485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20487 # Run-time system search path for libraries.
20488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20490 # Whether dlopen is supported.
20491 dlopen_support=$enable_dlopen
20493 # Whether dlopen of programs is supported.
20494 dlopen_self=$enable_dlopen_self
20496 # Whether dlopen of statically linked programs is supported.
20497 dlopen_self_static=$enable_dlopen_self_static
20499 # Commands to strip libraries.
20500 old_striplib=$lt_old_striplib
20501 striplib=$lt_striplib
20504 # The linker used to build libraries.
20507 # Commands used to build an old-style archive.
20508 old_archive_cmds=$lt_old_archive_cmds
20510 # A language specific compiler.
20513 # Is the compiler the GNU compiler?
20516 # Compiler flag to turn off builtin functions.
20517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20519 # How to pass a linker flag through the compiler.
20520 wl=$lt_lt_prog_compiler_wl
20522 # Additional compiler flags for building library objects.
20523 pic_flag=$lt_lt_prog_compiler_pic
20525 # Compiler flag to prevent dynamic linking.
20526 link_static_flag=$lt_lt_prog_compiler_static
20528 # Does compiler simultaneously support -c and -o options?
20529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20531 # Whether or not to add -lc for building shared libraries.
20532 build_libtool_need_lc=$archive_cmds_need_lc
20534 # Whether or not to disallow shared libs when runtime libs are static.
20535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20537 # Compiler flag to allow reflexive dlopens.
20538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20540 # Compiler flag to generate shared objects directly from archives.
20541 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20543 # Whether the compiler copes with passing no objects directly.
20544 compiler_needs_object=$lt_compiler_needs_object
20546 # Create an old-style archive from a shared archive.
20547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20549 # Create a temporary old-style archive to link instead of a shared archive.
20550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20552 # Commands used to build a shared archive.
20553 archive_cmds=$lt_archive_cmds
20554 archive_expsym_cmds=$lt_archive_expsym_cmds
20556 # Commands used to build a loadable module if different from building
20557 # a shared archive.
20558 module_cmds=$lt_module_cmds
20559 module_expsym_cmds=$lt_module_expsym_cmds
20561 # Whether we are building with GNU ld or not.
20562 with_gnu_ld=$lt_with_gnu_ld
20564 # Flag that allows shared libraries with undefined symbols to be built.
20565 allow_undefined_flag=$lt_allow_undefined_flag
20567 # Flag that enforces no undefined symbols.
20568 no_undefined_flag=$lt_no_undefined_flag
20570 # Flag to hardcode \$libdir into a binary during linking.
20571 # This must work even if \$libdir does not exist
20572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20574 # If ld is used when linking, flag to hardcode \$libdir into a binary
20575 # during linking. This must work even if \$libdir does not exist.
20576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20578 # Whether we need a single "-rpath" flag with a separated argument.
20579 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20581 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20582 # DIR into the resulting binary.
20583 hardcode_direct=$hardcode_direct
20585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20586 # DIR into the resulting binary and the resulting library dependency is
20587 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20588 # library is relocated.
20589 hardcode_direct_absolute=$hardcode_direct_absolute
20591 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20592 # into the resulting binary.
20593 hardcode_minus_L=$hardcode_minus_L
20595 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20596 # into the resulting binary.
20597 hardcode_shlibpath_var=$hardcode_shlibpath_var
20599 # Set to "yes" if building a shared library automatically hardcodes DIR
20600 # into the library and all subsequent libraries and executables linked
20602 hardcode_automatic=$hardcode_automatic
20604 # Set to yes if linker adds runtime paths of dependent libraries
20605 # to runtime path list.
20606 inherit_rpath=$inherit_rpath
20608 # Whether libtool must link a program against all its dependency libraries.
20609 link_all_deplibs=$link_all_deplibs
20611 # Fix the shell variable \$srcfile for the compiler.
20612 fix_srcfile_path=$lt_fix_srcfile_path
20614 # Set to "yes" if exported symbols are required.
20615 always_export_symbols=$always_export_symbols
20617 # The commands to list exported symbols.
20618 export_symbols_cmds=$lt_export_symbols_cmds
20620 # Symbols that should not be listed in the preloaded symbols.
20621 exclude_expsyms=$lt_exclude_expsyms
20623 # Symbols that must always be exported.
20624 include_expsyms=$lt_include_expsyms
20626 # Commands necessary for linking programs (against libraries) with templates.
20627 prelink_cmds=$lt_prelink_cmds
20629 # Specify filename containing input files.
20630 file_list_spec=$lt_file_list_spec
20632 # How to hardcode a shared library path into an executable.
20633 hardcode_action=$hardcode_action
20635 # The directories searched by this compiler when creating a shared library.
20636 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20638 # Dependencies to place before and after the objects being linked to
20639 # create a shared library.
20640 predep_objects=$lt_predep_objects
20641 postdep_objects=$lt_postdep_objects
20642 predeps=$lt_predeps
20643 postdeps=$lt_postdeps
20645 # The library search path used internally by the compiler when linking
20646 # a shared library.
20647 compiler_lib_search_path=$lt_compiler_lib_search_path
20649 # ### END LIBTOOL CONFIG
20655 cat <<\_LT_EOF >> "$cfgfile"
20656 # AIX sometimes has problems with the GCC collect2 program. For some
20657 # reason, if we set the COLLECT_NAMES environment variable, the problems
20658 # vanish in a puff of smoke.
20659 if test "X${COLLECT_NAMES+set}" != Xset; then
20661 export COLLECT_NAMES
20668 ltmain="$ac_aux_dir/ltmain.sh"
20671 # We use sed instead of cat because bash on DJGPP gets confused if
20672 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20673 # text mode, it properly converts lines to CR/LF. This bash problem
20674 # is reportedly fixed, but why not run on old versions too?
20675 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20676 || (rm -f "$cfgfile"; exit 1)
20680 cat << \_LT_EOF >> "$cfgfile"
20682 # func_dirname file append nondir_replacement
20683 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20684 # otherwise set result to NONDIR_REPLACEMENT.
20688 */*) func_dirname_result="${1%/*}${2}" ;;
20689 * ) func_dirname_result="${3}" ;;
20693 # func_basename file
20696 func_basename_result="${1##*/}"
20699 # func_dirname_and_basename file append nondir_replacement
20700 # perform func_basename and func_dirname in a single function
20702 # dirname: Compute the dirname of FILE. If nonempty,
20703 # add APPEND to the result, otherwise set result
20704 # to NONDIR_REPLACEMENT.
20705 # value returned in "$func_dirname_result"
20706 # basename: Compute filename of FILE.
20707 # value retuned in "$func_basename_result"
20708 # Implementation must be kept synchronized with func_dirname
20709 # and func_basename. For efficiency, we do not delegate to
20710 # those functions but instead duplicate the functionality here.
20711 func_dirname_and_basename ()
20714 */*) func_dirname_result="${1%/*}${2}" ;;
20715 * ) func_dirname_result="${3}" ;;
20717 func_basename_result="${1##*/}"
20720 # func_stripname prefix suffix name
20721 # strip PREFIX and SUFFIX off of NAME.
20722 # PREFIX and SUFFIX must not contain globbing or regex special
20723 # characters, hashes, percent signs, but SUFFIX may contain a leading
20724 # dot (in which case that matches only a dot).
20727 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20728 # positional parameters, so assign one to ordinary parameter first.
20729 func_stripname_result=${3}
20730 func_stripname_result=${func_stripname_result#"${1}"}
20731 func_stripname_result=${func_stripname_result%"${2}"}
20737 func_opt_split_opt=${1%%=*}
20738 func_opt_split_arg=${1#*=}
20745 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20746 *) func_lo2o_result=${1} ;;
20750 # func_xform libobj-or-source
20753 func_xform_result=${1%.*}.lo
20756 # func_arith arithmetic-term...
20759 func_arith_result=$(( $* ))
20763 # STRING may not start with a hyphen.
20766 func_len_result=${#1}
20771 *) # Bourne compatible functions.
20772 cat << \_LT_EOF >> "$cfgfile"
20774 # func_dirname file append nondir_replacement
20775 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20776 # otherwise set result to NONDIR_REPLACEMENT.
20779 # Extract subdirectory from the argument.
20780 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20781 if test "X$func_dirname_result" = "X${1}"; then
20782 func_dirname_result="${3}"
20784 func_dirname_result="$func_dirname_result${2}"
20788 # func_basename file
20791 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20795 # func_stripname prefix suffix name
20796 # strip PREFIX and SUFFIX off of NAME.
20797 # PREFIX and SUFFIX must not contain globbing or regex special
20798 # characters, hashes, percent signs, but SUFFIX may contain a leading
20799 # dot (in which case that matches only a dot).
20800 # func_strip_suffix prefix name
20804 .*) func_stripname_result=`$ECHO "X${3}" \
20805 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20806 *) func_stripname_result=`$ECHO "X${3}" \
20807 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20812 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20813 my_sed_long_arg='1s/^-[^=]*=//'
20818 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20819 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20825 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20828 # func_xform libobj-or-source
20831 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20834 # func_arith arithmetic-term...
20837 func_arith_result=`expr "$@"`
20841 # STRING may not start with a hyphen.
20844 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20850 case $lt_shell_append in
20852 cat << \_LT_EOF >> "$cfgfile"
20854 # func_append var value
20855 # Append VALUE to the end of shell variable VAR.
20863 cat << \_LT_EOF >> "$cfgfile"
20865 # func_append var value
20866 # Append VALUE to the end of shell variable VAR.
20877 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20878 || (rm -f "$cfgfile"; exit 1)
20880 mv -f "$cfgfile" "$ofile" ||
20881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20885 cat <<_LT_EOF >> "$ofile"
20887 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20889 # The linker used to build libraries.
20892 # Commands used to build an old-style archive.
20893 old_archive_cmds=$lt_old_archive_cmds_CXX
20895 # A language specific compiler.
20896 CC=$lt_compiler_CXX
20898 # Is the compiler the GNU compiler?
20901 # Compiler flag to turn off builtin functions.
20902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20904 # How to pass a linker flag through the compiler.
20905 wl=$lt_lt_prog_compiler_wl_CXX
20907 # Additional compiler flags for building library objects.
20908 pic_flag=$lt_lt_prog_compiler_pic_CXX
20910 # Compiler flag to prevent dynamic linking.
20911 link_static_flag=$lt_lt_prog_compiler_static_CXX
20913 # Does compiler simultaneously support -c and -o options?
20914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20916 # Whether or not to add -lc for building shared libraries.
20917 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20919 # Whether or not to disallow shared libs when runtime libs are static.
20920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20922 # Compiler flag to allow reflexive dlopens.
20923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20925 # Compiler flag to generate shared objects directly from archives.
20926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20928 # Whether the compiler copes with passing no objects directly.
20929 compiler_needs_object=$lt_compiler_needs_object_CXX
20931 # Create an old-style archive from a shared archive.
20932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20934 # Create a temporary old-style archive to link instead of a shared archive.
20935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20937 # Commands used to build a shared archive.
20938 archive_cmds=$lt_archive_cmds_CXX
20939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20941 # Commands used to build a loadable module if different from building
20942 # a shared archive.
20943 module_cmds=$lt_module_cmds_CXX
20944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20946 # Whether we are building with GNU ld or not.
20947 with_gnu_ld=$lt_with_gnu_ld_CXX
20949 # Flag that allows shared libraries with undefined symbols to be built.
20950 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20952 # Flag that enforces no undefined symbols.
20953 no_undefined_flag=$lt_no_undefined_flag_CXX
20955 # Flag to hardcode \$libdir into a binary during linking.
20956 # This must work even if \$libdir does not exist
20957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20959 # If ld is used when linking, flag to hardcode \$libdir into a binary
20960 # during linking. This must work even if \$libdir does not exist.
20961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20963 # Whether we need a single "-rpath" flag with a separated argument.
20964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20967 # DIR into the resulting binary.
20968 hardcode_direct=$hardcode_direct_CXX
20970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20971 # DIR into the resulting binary and the resulting library dependency is
20972 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20973 # library is relocated.
20974 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20977 # into the resulting binary.
20978 hardcode_minus_L=$hardcode_minus_L_CXX
20980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20981 # into the resulting binary.
20982 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20984 # Set to "yes" if building a shared library automatically hardcodes DIR
20985 # into the library and all subsequent libraries and executables linked
20987 hardcode_automatic=$hardcode_automatic_CXX
20989 # Set to yes if linker adds runtime paths of dependent libraries
20990 # to runtime path list.
20991 inherit_rpath=$inherit_rpath_CXX
20993 # Whether libtool must link a program against all its dependency libraries.
20994 link_all_deplibs=$link_all_deplibs_CXX
20996 # Fix the shell variable \$srcfile for the compiler.
20997 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20999 # Set to "yes" if exported symbols are required.
21000 always_export_symbols=$always_export_symbols_CXX
21002 # The commands to list exported symbols.
21003 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21005 # Symbols that should not be listed in the preloaded symbols.
21006 exclude_expsyms=$lt_exclude_expsyms_CXX
21008 # Symbols that must always be exported.
21009 include_expsyms=$lt_include_expsyms_CXX
21011 # Commands necessary for linking programs (against libraries) with templates.
21012 prelink_cmds=$lt_prelink_cmds_CXX
21014 # Specify filename containing input files.
21015 file_list_spec=$lt_file_list_spec_CXX
21017 # How to hardcode a shared library path into an executable.
21018 hardcode_action=$hardcode_action_CXX
21020 # The directories searched by this compiler when creating a shared library.
21021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21023 # Dependencies to place before and after the objects being linked to
21024 # create a shared library.
21025 predep_objects=$lt_predep_objects_CXX
21026 postdep_objects=$lt_postdep_objects_CXX
21027 predeps=$lt_predeps_CXX
21028 postdeps=$lt_postdeps_CXX
21030 # The library search path used internally by the compiler when linking
21031 # a shared library.
21032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21034 # ### END LIBTOOL TAG CONFIG: CXX
21038 "default":C) chmod +x jsongen.py maskaudit.py gpscat gpsfake gpsprof xgps valgrind-audit ;;
21046 ac_clean_files=$ac_clean_files_save
21048 test $ac_write_fail = 0 ||
21049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21052 # configure is writing to config.log, and then calls config.status.
21053 # config.status does its own redirection, appending to config.log.
21054 # Unfortunately, on DOS this fails, as config.log is still kept open
21055 # by configure, so config.status won't be able to write to it; its
21056 # output is simply discarded. So we exec the FD to /dev/null,
21057 # effectively closing config.log, so it can be properly (re)opened and
21058 # appended to by config.status. When coming back to configure, we
21059 # need to make the FD available again.
21060 if test "$no_create" != yes; then
21062 ac_config_status_args=
21063 test "$silent" = yes &&
21064 ac_config_status_args="$ac_config_status_args --quiet"
21066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21069 # would make configure fail if this is the last instruction.
21070 $ac_cs_success || as_fn_exit 1
21072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21077 echo "Configure finished, type 'make' to build."