2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libgphoto2 photo camera library 2.4.11.
5 # Report bugs to <gphoto-devel@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: gphoto-devel@lists.sourceforge.net about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $ECHO works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$lt_ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$ECHO" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 ECHO="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 test -n "$DJDIR" || exec 7<&0 </dev/null
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700 ac_default_prefix=/usr/local
702 ac_config_libobj_dir=.
709 # Identity of this package.
710 PACKAGE_NAME='libgphoto2 photo camera library'
711 PACKAGE_TARNAME='libgphoto2'
712 PACKAGE_VERSION='2.4.11'
713 PACKAGE_STRING='libgphoto2 photo camera library 2.4.11'
714 PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
717 ac_unique_file="libgphoto2/gphoto2-version.c"
718 # Factoring default headers for most tests.
719 ac_includes_default="\
721 #ifdef HAVE_SYS_TYPES_H
722 # include <sys/types.h>
724 #ifdef HAVE_SYS_STAT_H
725 # include <sys/stat.h>
731 # ifdef HAVE_STDLIB_H
736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741 #ifdef HAVE_STRINGS_H
742 # include <strings.h>
744 #ifdef HAVE_INTTYPES_H
745 # include <inttypes.h>
754 enable_option_checking=no
755 ac_subst_vars='am__EXEEXT_FALSE
767 REQUIREMENTS_FOR_LIBEXIF
785 HTML_APIDOC_INTERNALS_DIR
821 MAIL_GPHOTO_TRANSLATION
895 LIBGPHOTO2_VERSION_INFO
896 LIBGPHOTO2_CURRENT_MIN
908 INSTALL_STRIP_PROGRAM
950 program_transform_name
963 enable_option_checking
964 enable_dependency_tracking
984 with_hotplug_usermap_dir
987 ac_precious_vars='build_alias
1007 ac_subdirs_all='libgphoto2_port'
1009 # Initialize some variables set by options.
1011 ac_init_version=false
1012 ac_unrecognized_opts=
1013 ac_unrecognized_sep=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file=/dev/null
1023 program_transform_name=s,x,x,
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir='${exec_prefix}/bin'
1038 sbindir='${exec_prefix}/sbin'
1039 libexecdir='${exec_prefix}/libexec'
1040 datarootdir='${prefix}/share'
1041 datadir='${datarootdir}'
1042 sysconfdir='${prefix}/etc'
1043 sharedstatedir='${prefix}/com'
1044 localstatedir='${prefix}/var'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048 infodir='${datarootdir}/info'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1061 # If the previous option needs an argument, assign it.
1062 if test -n "$ac_prev"; then
1063 eval $ac_prev=\$ac_option
1069 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1076 case $ac_dashdash$ac_option in
1080 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1082 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083 bindir=$ac_optarg ;;
1085 -build | --build | --buil | --bui | --bu)
1086 ac_prev=build_alias ;;
1087 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088 build_alias=$ac_optarg ;;
1090 -cache-file | --cache-file | --cache-fil | --cache-fi \
1091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092 ac_prev=cache_file ;;
1093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095 cache_file=$ac_optarg ;;
1097 --config-cache | -C)
1098 cache_file=config.cache ;;
1100 -datadir | --datadir | --datadi | --datad)
1102 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103 datadir=$ac_optarg ;;
1105 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106 | --dataroo | --dataro | --datar)
1107 ac_prev=datarootdir ;;
1108 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110 datarootdir=$ac_optarg ;;
1112 -disable-* | --disable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid feature name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "enable_$ac_useropt"
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1126 eval enable_$ac_useropt=no ;;
1128 -docdir | --docdir | --docdi | --doc | --do)
1130 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131 docdir=$ac_optarg ;;
1133 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136 dvidir=$ac_optarg ;;
1138 -enable-* | --enable-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid feature name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "enable_$ac_useropt"
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval enable_$ac_useropt=\$ac_optarg ;;
1154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156 | --exec | --exe | --ex)
1157 ac_prev=exec_prefix ;;
1158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160 | --exec=* | --exe=* | --ex=*)
1161 exec_prefix=$ac_optarg ;;
1163 -gas | --gas | --ga | --g)
1164 # Obsolete; use --with-gas.
1167 -help | --help | --hel | --he | -h)
1168 ac_init_help=long ;;
1169 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170 ac_init_help=recursive ;;
1171 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172 ac_init_help=short ;;
1174 -host | --host | --hos | --ho)
1175 ac_prev=host_alias ;;
1176 -host=* | --host=* | --hos=* | --ho=*)
1177 host_alias=$ac_optarg ;;
1179 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183 htmldir=$ac_optarg ;;
1185 -includedir | --includedir | --includedi | --included | --include \
1186 | --includ | --inclu | --incl | --inc)
1187 ac_prev=includedir ;;
1188 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189 | --includ=* | --inclu=* | --incl=* | --inc=*)
1190 includedir=$ac_optarg ;;
1192 -infodir | --infodir | --infodi | --infod | --info | --inf)
1194 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195 infodir=$ac_optarg ;;
1197 -libdir | --libdir | --libdi | --libd)
1199 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200 libdir=$ac_optarg ;;
1202 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203 | --libexe | --libex | --libe)
1204 ac_prev=libexecdir ;;
1205 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206 | --libexe=* | --libex=* | --libe=*)
1207 libexecdir=$ac_optarg ;;
1209 -localedir | --localedir | --localedi | --localed | --locale)
1210 ac_prev=localedir ;;
1211 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212 localedir=$ac_optarg ;;
1214 -localstatedir | --localstatedir | --localstatedi | --localstated \
1215 | --localstate | --localstat | --localsta | --localst | --locals)
1216 ac_prev=localstatedir ;;
1217 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219 localstatedir=$ac_optarg ;;
1221 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224 mandir=$ac_optarg ;;
1226 -nfp | --nfp | --nf)
1227 # Obsolete; use --without-fp.
1230 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231 | --no-cr | --no-c | -n)
1234 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240 | --oldin | --oldi | --old | --ol | --o)
1241 ac_prev=oldincludedir ;;
1242 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245 oldincludedir=$ac_optarg ;;
1247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250 prefix=$ac_optarg ;;
1252 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253 | --program-pre | --program-pr | --program-p)
1254 ac_prev=program_prefix ;;
1255 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257 program_prefix=$ac_optarg ;;
1259 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260 | --program-suf | --program-su | --program-s)
1261 ac_prev=program_suffix ;;
1262 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264 program_suffix=$ac_optarg ;;
1266 -program-transform-name | --program-transform-name \
1267 | --program-transform-nam | --program-transform-na \
1268 | --program-transform-n | --program-transform- \
1269 | --program-transform | --program-transfor \
1270 | --program-transfo | --program-transf \
1271 | --program-trans | --program-tran \
1272 | --progr-tra | --program-tr | --program-t)
1273 ac_prev=program_transform_name ;;
1274 -program-transform-name=* | --program-transform-name=* \
1275 | --program-transform-nam=* | --program-transform-na=* \
1276 | --program-transform-n=* | --program-transform-=* \
1277 | --program-transform=* | --program-transfor=* \
1278 | --program-transfo=* | --program-transf=* \
1279 | --program-trans=* | --program-tran=* \
1280 | --progr-tra=* | --program-tr=* | --program-t=*)
1281 program_transform_name=$ac_optarg ;;
1283 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286 pdfdir=$ac_optarg ;;
1288 -psdir | --psdir | --psdi | --psd | --ps)
1290 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301 sbindir=$ac_optarg ;;
1303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305 | --sharedst | --shareds | --shared | --share | --shar \
1307 ac_prev=sharedstatedir ;;
1308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312 sharedstatedir=$ac_optarg ;;
1314 -site | --site | --sit)
1316 -site=* | --site=* | --sit=*)
1319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322 srcdir=$ac_optarg ;;
1324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325 | --syscon | --sysco | --sysc | --sys | --sy)
1326 ac_prev=sysconfdir ;;
1327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329 sysconfdir=$ac_optarg ;;
1331 -target | --target | --targe | --targ | --tar | --ta | --t)
1332 ac_prev=target_alias ;;
1333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334 target_alias=$ac_optarg ;;
1336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339 -version | --version | --versio | --versi | --vers | -V)
1340 ac_init_version=: ;;
1343 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error $? "invalid package name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1356 eval with_$ac_useropt=\$ac_optarg ;;
1358 -without-* | --without-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error $? "invalid package name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1372 eval with_$ac_useropt=no ;;
1375 # Obsolete; use --with-x.
1378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1379 | --x-incl | --x-inc | --x-in | --x-i)
1380 ac_prev=x_includes ;;
1381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1383 x_includes=$ac_optarg ;;
1385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1387 ac_prev=x_libraries ;;
1388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1390 x_libraries=$ac_optarg ;;
1392 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1393 Try \`$0 --help' for more information"
1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398 # Reject names that are not valid shell variable names.
1399 case $ac_envvar in #(
1400 '' | [0-9]* | *[!_$as_cr_alnum]* )
1401 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1403 eval $ac_envvar=\$ac_optarg
1404 export $ac_envvar ;;
1407 # FIXME: should be removed in autoconf 3.0.
1408 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1409 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1411 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1417 if test -n "$ac_prev"; then
1418 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1419 as_fn_error $? "missing argument to $ac_option"
1422 if test -n "$ac_unrecognized_opts"; then
1423 case $enable_option_checking in
1425 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1426 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1430 # Check all directory arguments for consistency.
1431 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1432 datadir sysconfdir sharedstatedir localstatedir includedir \
1433 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1434 libdir localedir mandir
1436 eval ac_val=\$$ac_var
1437 # Remove trailing slashes.
1440 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1441 eval $ac_var=\$ac_val;;
1443 # Be sure to have absolute directory names.
1445 [\\/$]* | ?:[\\/]* ) continue;;
1446 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1456 target=$target_alias
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460 if test "x$build_alias" = x; then
1461 cross_compiling=maybe
1462 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1463 If a cross compiler is detected then cross compile mode will be used" >&2
1464 elif test "x$build_alias" != "x$host_alias"; then
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472 test "$silent" = yes && exec 6>/dev/null
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478 as_fn_error $? "working directory cannot be determined"
1479 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480 as_fn_error $? "pwd does not report name of working directory"
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485 ac_srcdir_defaulted=yes
1486 # Try the directory containing this script, then the parent directory.
1487 ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489 X"$as_myself" : 'X\(//\)[^/]' \| \
1490 X"$as_myself" : 'X\(//\)$' \| \
1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1515 ac_srcdir_defaulted=no
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures libgphoto2 photo camera library 2.4.11 to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking ...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/libgphoto2]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1617 if test -n "$ac_init_help"; then
1618 case $ac_init_help in
1619 short | recursive ) echo "Configuration of libgphoto2 photo camera library 2.4.11:";;
1624 --disable-option-checking ignore unrecognized --enable/--with options
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --disable-dependency-tracking speeds up one-time build
1628 --enable-dependency-tracking do not reject slow dependency extractors
1629 --enable-gp2ddb enable EXPERIMENTAL PRE-ALPHA gphoto2 device
1631 --enable-static[=PKGS] build static libraries [default=no]
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --disable-nls do not use Native Language Support
1637 --disable-rpath do not hardcode runtime library paths
1638 --disable-largefile omit support for large files
1639 --enable-docs Use gtk-doc to build documentation [default=no]
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-pic try to use only PIC/non-PIC objects [default=use
1646 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1647 --with-gnu-ld assume the C compiler uses GNU ld default=no
1648 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1649 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1650 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1651 --without-libintl-prefix don't search for libintl in includedir and libdir
1652 --with-camlibdir=<path> install camlibs in directory <path>
1653 --with-drivers=<list> Compile drivers in <list>. Drivers may be separated
1654 with commas. 'all' is the default and compiles all
1655 drivers. Possible drivers are: agfa_cl20 aox ax203
1656 barbie canon casio_qv clicksmart310 digigr8 digita
1657 dimera3500 directory enigma13 gsmart300 hp215 iclick
1658 jamcam jd11 jl2005a kodak_dc120 kodak_dc210
1659 kodak_dc240 kodak_ez200 largan lg_gsm mars
1660 panasonic_coolshot panasonic_l859 panasonic_dc1000
1661 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320
1662 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3
1663 samsung sierra sipix_blink2 sipix_web2 smal sonix
1664 sony_dscf1 sony_dscf55 soundvision spca50x sq905
1665 st2205 stv0674 sx330z toshiba_pdrm11
1666 --with-doc-dir=PATH Where to install docs [default=autodetect]
1667 --with-html-dir=PATH Where to install html docs [default=autodetect]
1668 --with-rpmbuild=PATH Program to use for building RPMs
1669 --with-hotplug-doc-dir=PATH
1670 Where to install hotplug scripts as docs
1671 [default=autodetect]
1672 --with-hotplug-usermap-dir=PATH
1673 Where to install hotplug scripts as docs
1674 [default=autodetect]
1675 --with-libexif=PREFIX where to find libexif, "no" or "auto"
1677 Some influential environment variables:
1678 CC C compiler command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1686 CXX C++ compiler command
1687 CXXFLAGS C++ compiler flags
1688 PKG_CONFIG pkg-config package config utility
1690 directory where pkg-config looks for *.pc files
1691 CXXCPP C++ preprocessor
1692 utilsdir Directory where utilities like print-camera-list will be
1695 Directory where udev scripts like check-ptp-camera will be
1698 CFLAGS for compiling with libexif
1700 LIBS to add for linking against libexif
1702 path overriding pkg-config's built-in search path
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1707 Report bugs to <gphoto-devel@lists.sourceforge.net>.
1712 if test "$ac_init_help" = "recursive"; then
1713 # If there are subdirs, report their specific --help.
1714 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715 test -d "$ac_dir" ||
1716 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724 # A ".." for each directory in $ac_dir_suffix.
1725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726 case $ac_top_builddir_sub in
1727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1737 .) # We are building in place.
1739 ac_top_srcdir=$ac_top_builddir_sub
1740 ac_abs_top_srcdir=$ac_pwd ;;
1741 [\\/]* | ?:[\\/]* ) # Absolute name.
1742 ac_srcdir=$srcdir$ac_dir_suffix;
1743 ac_top_srcdir=$srcdir
1744 ac_abs_top_srcdir=$srcdir ;;
1746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747 ac_top_srcdir=$ac_top_build_prefix$srcdir
1748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752 cd "$ac_dir" || { ac_status=$?; continue; }
1753 # Check for guested configure.
1754 if test -f "$ac_srcdir/configure.gnu"; then
1756 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757 elif test -f "$ac_srcdir/configure"; then
1759 $SHELL "$ac_srcdir/configure" --help=recursive
1761 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763 cd "$ac_pwd" || { ac_status=$?; break; }
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1770 libgphoto2 photo camera library configure 2.4.11
1771 generated by GNU Autoconf 2.68
1773 Copyright (C) 2010 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1784 # ac_fn_c_try_compile LINENO
1785 # --------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_compile
1822 # ac_fn_c_try_cpp LINENO
1823 # ----------------------
1824 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_cxx_try_compile
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 $as_test_x conftest$ac_exeext
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_header_compile
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 ac_retval=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2039 # include <limits.h>
2041 # include <assert.h>
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2068 if ac_fn_c_try_link "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_func
2083 # ac_fn_cxx_try_cpp LINENO
2084 # ------------------------
2085 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_cpp ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } > conftest.i && {
2105 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2106 test ! -s conftest.err
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 as_fn_set_status $ac_retval
2118 } # ac_fn_cxx_try_cpp
2120 # ac_fn_cxx_try_link LINENO
2121 # -------------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_link ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 rm -f conftest.$ac_objext conftest$ac_exeext
2127 if { { ac_try="$ac_link"
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>conftest.err
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && {
2143 test -z "$ac_cxx_werror_flag" ||
2144 test ! -s conftest.err
2145 } && test -s conftest$ac_exeext && {
2146 test "$cross_compiling" = yes ||
2147 $as_test_x conftest$ac_exeext
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2156 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158 # interfere with the next link command; also delete a directory that is
2159 # left behind by Apple's compiler. We do this before executing the actions.
2160 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2164 } # ac_fn_cxx_try_link
2166 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2167 # -------------------------------------------------------
2168 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2169 # the include files in INCLUDES and setting the cache variable VAR
2171 ac_fn_c_check_header_mongrel ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if eval \${$3+:} false; then :
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2184 # Is the header compilable?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2186 $as_echo_n "checking $2 usability... " >&6; }
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_header_compiler=yes
2195 ac_header_compiler=no
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2199 $as_echo "$ac_header_compiler" >&6; }
2201 # Is the header present?
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2203 $as_echo_n "checking $2 presence... " >&6; }
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2208 if ac_fn_c_try_cpp "$LINENO"; then :
2209 ac_header_preproc=yes
2211 ac_header_preproc=no
2213 rm -f conftest.err conftest.i conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2215 $as_echo "$ac_header_preproc" >&6; }
2217 # So? What about this header?
2218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2221 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2227 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2229 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2231 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2233 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 ( $as_echo "## ------------------------------------------------- ##
2237 ## Report this to gphoto-devel@lists.sourceforge.net ##
2238 ## ------------------------------------------------- ##"
2239 ) | sed "s/^/$as_me: WARNING: /" >&2
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2247 eval "$3=\$ac_header_compiler"
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 } # ac_fn_c_check_header_mongrel
2257 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2258 # -------------------------------------------
2259 # Tests whether TYPE exists after having included INCLUDES, setting cache
2260 # variable VAR accordingly.
2261 ac_fn_c_check_type ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval \${$3+:} false; then :
2267 $as_echo_n "(cached) " >&6
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2295 if ac_fn_c_try_compile "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_type
2311 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312 # ----------------------------------------------------
2313 # Tries to find if the field MEMBER exists in type AGGR, after including
2314 # INCLUDES, setting cache variable VAR accordingly.
2315 ac_fn_c_check_member ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319 $as_echo_n "checking for $2.$3... " >&6; }
2320 if eval \${$4+:} false; then :
2321 $as_echo_n "(cached) " >&6
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2336 if ac_fn_c_try_compile "$LINENO"; then :
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2346 if (sizeof ac_aggr.$3)
2352 if ac_fn_c_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_c_check_member
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2371 It was created by libgphoto2 photo camera library $as_me 2.4.11, which was
2372 generated by GNU Autoconf 2.68. Invocation command line was
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_must_keep_next=false
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 -* ) ac_must_keep_next=true ;;
2464 as_fn_append ac_configure_args " '$ac_arg'"
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2486 # The following way of writing the cache mishandles newlines in values,
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2522 for ac_var in $ac_subst_vars
2524 eval ac_val=\$$ac_var
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 $as_echo "$ac_var='\''$ac_val'\''"
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2537 for ac_var in $ac_subst_files
2539 eval ac_val=\$$ac_var
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2572 $as_echo "/* confdefs.h */" > confdefs.h
2574 # Predefined preprocessor variables.
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2612 elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 # Check that the precious variables saved in the cache have kept the same
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 ac_config_headers="$ac_config_headers config.h"
2724 for ac_dir in auto-aux "$srcdir"/auto-aux; do
2725 if test -f "$ac_dir/install-sh"; then
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2729 elif test -f "$ac_dir/install.sh"; then
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 elif test -f "$ac_dir/shtool"; then
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 if test -z "$ac_aux_dir"; then
2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752 am__api_version='1.11'
2754 # Find a good install program. We prefer a C program (faster),
2755 # so one script is as good as another. But avoid the broken or
2756 # incompatible versions:
2757 # SysV /etc/install, /usr/sbin/install
2758 # SunOS /usr/etc/install
2759 # IRIX /sbin/install
2761 # AmigaOS /C/install, which installs bootblocks on floppy discs
2762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2765 # OS/2's system install, which has a completely different semantic
2766 # ./install, which can be erroneously created by make from ./install.sh.
2767 # Reject install programs that cannot install multiple files.
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2770 if test -z "$INSTALL"; then
2771 if ${ac_cv_path_install+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 # Account for people who put trailing slashes in PATH elements.
2780 case $as_dir/ in #((
2781 ./ | .// | /[cC]/* | \
2782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2786 # OSF1 and SCO ODT 3.0 have their own names for install.
2787 # Don't use installbsd from OSF since it installs stuff as root
2789 for ac_prog in ginstall scoinst install; do
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2792 if test $ac_prog = install &&
2793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794 # AIX install. It has an incompatible calling convention.
2796 elif test $ac_prog = install &&
2797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # program-specific install script used by HP pwplus--don't use.
2801 rm -rf conftest.one conftest.two conftest.dir
2802 echo one > conftest.one
2803 echo two > conftest.two
2805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2806 test -s conftest.one && test -s conftest.two &&
2807 test -s conftest.dir/conftest.one &&
2808 test -s conftest.dir/conftest.two
2810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2823 rm -rf conftest.one conftest.two conftest.dir
2826 if test "${ac_cv_path_install+set}" = set; then
2827 INSTALL=$ac_cv_path_install
2829 # As a last resort, use the slow shell script. Don't cache a
2830 # value for INSTALL within a source directory, because that will
2831 # break other packages using the cache if that directory is
2832 # removed, or if the value is a relative name.
2833 INSTALL=$ac_install_sh
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2837 $as_echo "$INSTALL" >&6; }
2839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2840 # It thinks the first close brace ends the variable substitution.
2841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2848 $as_echo_n "checking whether build environment is sane... " >&6; }
2851 echo timestamp > conftest.file
2852 # Reject unsafe characters in $srcdir or the absolute working directory
2853 # name. Accept space and tab only in the latter.
2857 *[\\\"\#\$\&\'\`$am_lf]*)
2858 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2861 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2862 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2865 # Do `set' in a subshell so we don't clobber the current shell's
2866 # arguments. Must try -L first in case configure is actually a
2867 # symlink; some systems play weird games with the mod time of symlinks
2868 # (eg FreeBSD returns the mod time of the symlink's containing
2871 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2872 if test "$*" = "X"; then
2874 set X `ls -t "$srcdir/configure" conftest.file`
2877 if test "$*" != "X $srcdir/configure conftest.file" \
2878 && test "$*" != "X conftest.file $srcdir/configure"; then
2880 # If neither matched, then we have a broken ls. This can happen
2881 # if, for instance, CONFIG_SHELL is bash and it inherits a
2882 # broken ls alias from the environment. This has actually
2883 # happened. Such a system could not be considered "sane".
2884 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2885 alias in your environment" "$LINENO" 5
2888 test "$2" = conftest.file
2894 as_fn_error $? "newly created file is older than distributed files!
2895 Check your system clock" "$LINENO" 5
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899 test "$program_prefix" != NONE &&
2900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901 # Use a double $ so make ignores it.
2902 test "$program_suffix" != NONE &&
2903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904 # Double any \ or $.
2905 # By default was `s,x,x', remove it if useless.
2906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2909 # expand $ac_aux_dir to an absolute path
2910 am_aux_dir=`cd $ac_aux_dir && pwd`
2912 if test x"${MISSING+set}" != xset; then
2915 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2917 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2920 # Use eval to expand $SHELL
2921 if eval "$MISSING --run true"; then
2922 am_missing_run="$MISSING --run "
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2926 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2929 if test x"${install_sh}" != xset; then
2932 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934 install_sh="\${SHELL} $am_aux_dir/install-sh"
2938 # Installed binaries are usually stripped using `strip' when the user
2939 # run `make install-strip'. However `strip' might not be the right
2940 # tool to use in cross-compilation environments, therefore Automake
2941 # will honor the `STRIP' environment variable to overrule this program.
2942 if test "$cross_compiling" != no; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}strip; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_STRIP+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$STRIP"; then
2952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 STRIP=$ac_cv_prog_STRIP
2972 if test -n "$STRIP"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974 $as_echo "$STRIP" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$ac_cv_prog_STRIP"; then
2984 # Extract the first word of "strip", so it can be a program name with args.
2985 set dummy strip; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_STRIP"; then
2992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_ac_ct_STRIP="strip"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3012 if test -n "$ac_ct_STRIP"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014 $as_echo "$ac_ct_STRIP" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3020 if test "x$ac_ct_STRIP" = x; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3032 STRIP="$ac_cv_prog_STRIP"
3036 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040 if test -z "$MKDIR_P"; then
3041 if ${ac_cv_path_mkdir+:} false; then :
3042 $as_echo_n "(cached) " >&6
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3048 test -z "$as_dir" && as_dir=.
3049 for ac_prog in mkdir gmkdir; do
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3052 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053 'mkdir (GNU coreutils) '* | \
3054 'mkdir (coreutils) '* | \
3055 'mkdir (fileutils) '4.1*)
3056 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3066 test -d ./--version && rmdir ./--version
3067 if test "${ac_cv_path_mkdir+set}" = set; then
3068 MKDIR_P="$ac_cv_path_mkdir -p"
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for MKDIR_P within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
3074 MKDIR_P="$ac_install_sh -d"
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078 $as_echo "$MKDIR_P" >&6; }
3082 [\\/$]* | ?:[\\/]*) ;;
3083 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3086 for ac_prog in gawk mawk nawk awk
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_AWK+:} false; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$AWK"; then
3096 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_AWK="$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$AWK"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3118 $as_echo "$AWK" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$AWK" && break
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3129 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3131 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3132 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 cat >conftest.make <<\_ACEOF
3138 @echo '@@@%%%=$(MAKE)=@@@%%%'
3140 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3141 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3143 eval ac_cv_prog_make_${ac_make}_set=yes;;
3145 eval ac_cv_prog_make_${ac_make}_set=no;;
3149 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 SET_MAKE="MAKE=${MAKE-make}"
3159 rm -rf .tst 2>/dev/null
3160 mkdir .tst 2>/dev/null
3161 if test -d .tst; then
3166 rmdir .tst 2>/dev/null
3168 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3169 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3170 # is not polluted with repeated "-I."
3171 am__isrc=' -I$(srcdir)'
3172 # test to see if srcdir already configured
3173 if test -f $srcdir/config.status; then
3174 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3178 # test whether we have cygpath
3179 if test -z "$CYGPATH_W"; then
3180 if (cygpath --version) >/dev/null 2>/dev/null; then
3181 CYGPATH_W='cygpath -w'
3188 # Define the identity of the package.
3189 PACKAGE='libgphoto2'
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE "$PACKAGE"
3198 cat >>confdefs.h <<_ACEOF
3199 #define VERSION "$VERSION"
3202 # Some tools Automake needs.
3204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3216 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3218 # We need awk for the "check" target. The system "awk" is bad on
3220 # Always define AMTAR for backward compatibility.
3222 AMTAR=${AMTAR-"${am_missing_run}tar"}
3224 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3232 # make sure "cd" doesn't print anything on stdout
3233 if test x"${CDPATH+set}" = xset
3239 # make sure $() command substitution works
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
3241 $as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
3242 if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 uname=`uname 2>&1` # ''
3250 uname_a=`uname -a 2>&1` # ''
3253 * POSIX sh \$() command substition does not work with this shell.
3255 * You are running a very rare species of shell. Please report this
3256 * sighting to <${PACKAGE_BUGREPORT}>:
3259 * uname-a=${uname_a}
3260 * Please also include your OS and version.
3262 * Run this configure script using a better (i.e. POSIX compliant) shell.
3270 gp_config_len3="$(expr "$gp_config_len" - 3)"
3272 while test "$n" -gt 0; do
3273 gp_config_empty="${gp_config_empty} "
3274 n="$(expr "$n" - 1)"
3277 Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
3281 gp_config_msg="${gp_config_msg}
3286 gp_config_msg_len="$(expr "Source code location" : '.*')"
3287 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
3288 gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
3290 gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
3292 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${srcdir}
3299 LIBGPHOTO2_REVISION=0
3301 LIBGPHOTO2_CURRENT=6
3303 LIBGPHOTO2_CURRENT_MIN=`expr $LIBGPHOTO2_CURRENT - $LIBGPHOTO2_AGE`
3305 LIBGPHOTO2_VERSION_INFO=$LIBGPHOTO2_CURRENT:$LIBGPHOTO2_REVISION:$LIBGPHOTO2_AGE
3309 AM_CPPFLAGS="$CPPFLAGS"
3311 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
3312 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)"
3313 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libgphoto2_port"
3314 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libgphoto2"
3315 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)/libgphoto2"
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3363 if test -z "$ac_cv_prog_CC"; then
3365 # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_ac_ct_CC="gcc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3401 if test "x$ac_ct_CC" = x; then
3404 case $cross_compiling:$ac_tool_warned in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_CC="${ac_tool_prefix}cc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3457 if test -z "$CC"; then
3458 # Extract the first word of "cc", so it can be a program name with args.
3459 set dummy cc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3477 ac_prog_rejected=yes
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 if test $ac_prog_rejected = yes; then
3489 # We found a bogon in the path, so make sure we never use it.
3490 set dummy $ac_cv_prog_CC
3492 if test $# != 0; then
3493 # We chose a different compiler from the bogus one.
3494 # However, it has the same basename, so the bogon will be chosen
3495 # first if we set CC to just the basename; use the full file name.
3497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 for ac_prog in cl.exe
3517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3554 test -n "$CC" && break
3557 if test -z "$CC"; then
3559 for ac_prog in cl.exe
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$ac_ct_CC"; then
3569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_ac_ct_CC="$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 $as_echo "$ac_ct_CC" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$ac_ct_CC" && break
3601 if test "x$ac_ct_CC" = x; then
3604 case $cross_compiling:$ac_tool_warned in
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details" "$LINENO" 5; }
3622 # Provide some information about the compiler.
3623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 for ac_option in --version -v -V -qversion; do
3627 { { ac_try="$ac_compiler $ac_option >&5"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3636 if test -s conftest.err; then
3638 ... rest of stderr output deleted ...
3639 10q' conftest.err >conftest.er1
3640 cat conftest.er1 >&5
3642 rm -f conftest.er1 conftest.err
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3664 $as_echo_n "checking whether the C compiler works... " >&6; }
3665 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667 # The possible output files:
3668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671 for ac_file in $ac_files
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3680 if { { ac_try="$ac_link_default"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_link_default") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3693 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3694 # so that the user can short-circuit this test for compilers unknown to
3696 for ac_file in $ac_files ''
3698 test -f "$ac_file" || continue
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703 # We found the default executable, but exeext='' is most
3707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711 # We set ac_cv_exeext here because the later test for it is not
3712 # safe: cross compilers may not add the suffix if given an `-o'
3713 # argument, so we may need to know it at that point already.
3714 # Even if this section looks crufty: it has the advantage of
3721 test "$ac_cv_exeext" = no && ac_cv_exeext=
3726 if test -z "$ac_file"; then :
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error 77 "C compiler cannot create executables
3735 See \`config.log' for more details" "$LINENO" 5; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738 $as_echo "yes" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3743 $as_echo "$ac_file" >&6; }
3744 ac_exeext=$ac_cv_exeext
3746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3749 $as_echo_n "checking for suffix of executables... " >&6; }
3750 if { { ac_try="$ac_link"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3762 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3763 # work properly (i.e., refer to `conftest.exe'), while it won't with
3765 for ac_file in conftest.exe conftest conftest.*; do
3766 test -f "$ac_file" || continue
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3778 See \`config.log' for more details" "$LINENO" 5; }
3780 rm -f conftest conftest$ac_cv_exeext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3782 $as_echo "$ac_cv_exeext" >&6; }
3784 rm -f conftest.$ac_ext
3785 EXEEXT=$ac_cv_exeext
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3793 FILE *f = fopen ("conftest.out", "w");
3794 return ferror (f) || fclose (f) != 0;
3800 ac_clean_files="$ac_clean_files conftest.out"
3801 # Check that the compiler produces executables we can run. If not, either
3802 # the compiler is broken, or we cross compile.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3804 $as_echo_n "checking whether we are cross compiling... " >&6; }
3805 if test "$cross_compiling" != yes; then
3806 { { ac_try="$ac_link"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813 (eval "$ac_link") 2>&5
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 if { ac_try='./conftest$ac_cv_exeext'
3818 { { case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_try") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; }; then
3830 if test "$cross_compiling" = maybe; then
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot run C compiled programs.
3836 If you meant to cross compile, use \`--host'.
3837 See \`config.log' for more details" "$LINENO" 5; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3844 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3845 ac_clean_files=$ac_clean_files_save
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3847 $as_echo_n "checking for suffix of object files... " >&6; }
3848 if ${ac_cv_objext+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3862 rm -f conftest.o conftest.obj
3863 if { { ac_try="$ac_compile"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compile") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 for ac_file in conftest.o conftest.obj conftest.*; do
3875 test -f "$ac_file" || continue;
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot compute suffix of object files: cannot compile
3889 See \`config.log' for more details" "$LINENO" 5; }
3891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3894 $as_echo "$ac_cv_objext" >&6; }
3895 OBJEXT=$ac_cv_objext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3898 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3899 if ${ac_cv_c_compiler_gnu+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3916 if ac_fn_c_try_compile "$LINENO"; then :
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3927 if test $ac_compiler_gnu = yes; then
3932 ac_test_CFLAGS=${CFLAGS+set}
3933 ac_save_CFLAGS=$CFLAGS
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3936 if ${ac_cv_prog_cc_g+:} false; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_save_c_werror_flag=$ac_c_werror_flag
3940 ac_c_werror_flag=yes
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3954 if ac_fn_c_try_compile "$LINENO"; then :
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 if ac_fn_c_try_compile "$LINENO"; then :
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_c_werror_flag=$ac_save_c_werror_flag
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3996 $as_echo "$ac_cv_prog_cc_g" >&6; }
3997 if test "$ac_test_CFLAGS" = set; then
3998 CFLAGS=$ac_save_CFLAGS
3999 elif test $ac_cv_prog_cc_g = yes; then
4000 if test "$GCC" = yes; then
4006 if test "$GCC" = yes; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4014 if ${ac_cv_prog_cc_c89+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 ac_cv_prog_cc_c89=no
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 #include <sys/stat.h>
4025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4026 struct buf { int x; };
4027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4028 static char *e (p, i)
4034 static char *f (char * (*g) (char **, int), char **p, ...)
4039 s = g (p, va_arg (v,int));
4044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4045 function prototypes and stuff, but not '\xHH' hex character constants.
4046 These don't provoke an error unfortunately, instead are silently treated
4047 as 'x'. The following induces an error, until -std is added to get
4048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4049 array size at least. It's necessary to write '\x00'==0 to get something
4050 that's true only with -std. */
4051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4054 inside strings and character constants. */
4056 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058 int test (int i, double x);
4059 struct s1 {int (*f) (int a);};
4060 struct s2 {int (*f) (double a);};
4061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4067 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4072 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4073 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4075 CC="$ac_save_CC $ac_arg"
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_prog_cc_c89=$ac_arg
4079 rm -f core conftest.err conftest.$ac_objext
4080 test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 rm -f conftest.$ac_ext
4087 case "x$ac_cv_prog_cc_c89" in
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 $as_echo "none needed" >&6; } ;;
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 $as_echo "unsupported" >&6; } ;;
4095 CC="$CC $ac_cv_prog_cc_c89"
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 if test "x$ac_cv_prog_cc_c89" != xno; then :
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 DEPDIR="${am__leading_dot}deps"
4110 ac_config_commands="$ac_config_commands depfiles"
4113 am_make=${MAKE-make}
4114 cat > confinc << 'END'
4116 @echo this is the am__doit target
4119 # If we don't find an include directive, just comment out the code.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4121 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4125 # First try GNU make style include.
4126 echo "include confinc" > confmf
4127 # Ignore all kinds of additional output from `make'.
4128 case `$am_make -s -f confmf 2> /dev/null` in #(
4129 *the\ am__doit\ target*)
4135 # Now try BSD make style include.
4136 if test "$am__include" = "#"; then
4137 echo '.include "confinc"' > confmf
4138 case `$am_make -s -f confmf 2> /dev/null` in #(
4139 *the\ am__doit\ target*)
4140 am__include=.include
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4149 $as_echo "$_am_result" >&6; }
4150 rm -f confinc confmf
4152 # Check whether --enable-dependency-tracking was given.
4153 if test "${enable_dependency_tracking+set}" = set; then :
4154 enableval=$enable_dependency_tracking;
4157 if test "x$enable_dependency_tracking" != xno; then
4158 am_depcomp="$ac_aux_dir/depcomp"
4161 if test "x$enable_dependency_tracking" != xno; then
4171 depcc="$CC" am_compiler_list=
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174 $as_echo_n "checking dependency style of $depcc... " >&6; }
4175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179 # We make a subdir and do the tests there. Otherwise we can end up
4180 # making bogus files that we don't know about and never remove. For
4181 # instance it was reported that on HP-UX the gcc test will end up
4182 # making a dummy file named `D' -- because `-MD' means `put the output
4185 # Copy depcomp to subdir because otherwise we won't find it if we're
4186 # using a relative directory.
4187 cp "$am_depcomp" conftest.dir
4189 # We will build objects and dependencies in a subdirectory because
4190 # it helps to detect inapplicable dependency modes. For instance
4191 # both Tru64's cc and ICC support -MD to output dependencies as a
4192 # side effect of compilation, but ICC will put the dependencies in
4193 # the current directory while Tru64 will put them in the object
4197 am_cv_CC_dependencies_compiler_type=none
4198 if test "$am_compiler_list" = ""; then
4199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4202 case " $depcc " in #(
4203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4206 for depmode in $am_compiler_list; do
4207 # Setup a source with many dependencies, because some compilers
4208 # like to wrap large dependency lists on column 80 (with \), and
4209 # we should not choose a depcomp mode which is confused by this.
4211 # We need to recreate these files for each test, as the compiler may
4212 # overwrite some of them when testing with obscure command lines.
4213 # This happens at least with the AIX C compiler.
4215 for i in 1 2 3 4 5 6; do
4216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4218 # Solaris 8's {/usr,}/bin/sh.
4219 touch sub/conftst$i.h
4221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4224 # mode. It turns out that the SunPro C++ compiler does not properly
4225 # handle `-M -o', and we need to detect this. Also, some Intel
4226 # versions had trouble with output in subdirs
4227 am__obj=sub/conftest.${OBJEXT-o}
4228 am__minus_obj="-o $am__obj"
4231 # This depmode causes a compiler race in universal mode.
4232 test "$am__universal" = false || continue
4235 # after this tag, mechanisms are not by side-effect, so they'll
4236 # only be used when explicitly requested
4237 if test "x$enable_dependency_tracking" = xyes; then
4243 msvisualcpp | msvcmsys)
4244 # This compiler won't grok `-c -o', but also, the minuso test has
4245 # not run yet. These depmodes are late enough in the game, and
4246 # so weak that their functioning should not be impacted.
4247 am__obj=conftest.${OBJEXT-o}
4252 if depmode=$depmode \
4253 source=sub/conftest.c object=$am__obj \
4254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256 >/dev/null 2>conftest.err &&
4257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261 # icc doesn't choke on unknown options, it will just issue warnings
4262 # or remarks (even with -Werror). So we grep stderr for any message
4263 # that says an option was ignored or not supported.
4264 # When given -MP, icc 7.0 and 7.1 complain thusly:
4265 # icc: Command line warning: ignoring option '-M'; no argument required
4266 # The diagnosis changed in icc 8.0:
4267 # icc: Command line remark: option '-MP' not supported
4268 if (grep 'ignoring option' conftest.err ||
4269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270 am_cv_CC_dependencies_compiler_type=$depmode
4279 am_cv_CC_dependencies_compiler_type=none
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4284 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4288 test "x$enable_dependency_tracking" != xno \
4289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4291 am__fastdepCC_FALSE='#'
4293 am__fastdepCC_TRUE='#'
4294 am__fastdepCC_FALSE=
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4305 # On Suns, sometimes $CPP names a directory.
4306 if test -n "$CPP" && test -d "$CPP"; then
4309 if test -z "$CPP"; then
4310 if ${ac_cv_prog_CPP+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 # Double quotes because CPP needs to be expanded
4314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 for ac_c_preproc_warn_flag in '' yes
4319 # Use a header file that comes with gcc, so configuring glibc
4320 # with a fresh cross-compiler works.
4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 # <limits.h> exists even on freestanding compilers.
4323 # On the NeXT, cc -E runs the code through the compiler's parser,
4324 # not just through cpp. "Syntax error" is here to catch this case.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4328 # include <limits.h>
4330 # include <assert.h>
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4337 # Broken: fails on valid input.
4340 rm -f conftest.err conftest.i conftest.$ac_ext
4342 # OK, works on sane cases. Now check whether nonexistent headers
4343 # can be detected and how.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 #include <ac_nonexistent.h>
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349 # Broken: success on invalid input.
4352 # Passes both tests.
4356 rm -f conftest.err conftest.i conftest.$ac_ext
4359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4360 rm -f conftest.i conftest.err conftest.$ac_ext
4361 if $ac_preproc_ok; then :
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4374 $as_echo "$CPP" >&6; }
4376 for ac_c_preproc_warn_flag in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 # include <limits.h>
4389 # include <assert.h>
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4396 # Broken: fails on valid input.
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408 # Broken: success on invalid input.
4411 # Passes both tests.
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4426 See \`config.log' for more details" "$LINENO" 5; }
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4440 if test -z "$CXX"; then
4441 if test -n "$CCC"; then
4444 if test -n "$ac_tool_prefix"; then
4445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CXX+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$CXX"; then
4455 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test -n "$CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4477 $as_echo "$CXX" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$CXX" && break
4487 if test -z "$CXX"; then
4489 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4491 # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 if test -n "$ac_ct_CXX"; then
4499 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_ac_ct_CXX="$ac_prog"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4521 $as_echo "$ac_ct_CXX" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4528 test -n "$ac_ct_CXX" && break
4531 if test "x$ac_ct_CXX" = x; then
4534 case $cross_compiling:$ac_tool_warned in
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4546 # Provide some information about the compiler.
4547 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4550 for ac_option in --version -v -V -qversion; do
4551 { { ac_try="$ac_compiler $ac_option >&5"
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4560 if test -s conftest.err; then
4562 ... rest of stderr output deleted ...
4563 10q' conftest.err >conftest.er1
4564 cat conftest.er1 >&5
4566 rm -f conftest.er1 conftest.err
4567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568 test $ac_status = 0; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4572 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4573 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4600 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4601 if test $ac_compiler_gnu = yes; then
4606 ac_test_CXXFLAGS=${CXXFLAGS+set}
4607 ac_save_CXXFLAGS=$CXXFLAGS
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4609 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4610 if ${ac_cv_prog_cxx_g+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4614 ac_cxx_werror_flag=yes
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4629 ac_cv_prog_cxx_g=yes
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4643 if ac_fn_cxx_try_compile "$LINENO"; then :
4646 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4659 if ac_fn_cxx_try_compile "$LINENO"; then :
4660 ac_cv_prog_cxx_g=yes
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4670 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4671 if test "$ac_test_CXXFLAGS" = set; then
4672 CXXFLAGS=$ac_save_CXXFLAGS
4673 elif test $ac_cv_prog_cxx_g = yes; then
4674 if test "$GXX" = yes; then
4680 if test "$GXX" = yes; then
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 depcc="$CXX" am_compiler_list=
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4695 $as_echo_n "checking dependency style of $depcc... " >&6; }
4696 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4700 # We make a subdir and do the tests there. Otherwise we can end up
4701 # making bogus files that we don't know about and never remove. For
4702 # instance it was reported that on HP-UX the gcc test will end up
4703 # making a dummy file named `D' -- because `-MD' means `put the output
4706 # Copy depcomp to subdir because otherwise we won't find it if we're
4707 # using a relative directory.
4708 cp "$am_depcomp" conftest.dir
4710 # We will build objects and dependencies in a subdirectory because
4711 # it helps to detect inapplicable dependency modes. For instance
4712 # both Tru64's cc and ICC support -MD to output dependencies as a
4713 # side effect of compilation, but ICC will put the dependencies in
4714 # the current directory while Tru64 will put them in the object
4718 am_cv_CXX_dependencies_compiler_type=none
4719 if test "$am_compiler_list" = ""; then
4720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4723 case " $depcc " in #(
4724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4727 for depmode in $am_compiler_list; do
4728 # Setup a source with many dependencies, because some compilers
4729 # like to wrap large dependency lists on column 80 (with \), and
4730 # we should not choose a depcomp mode which is confused by this.
4732 # We need to recreate these files for each test, as the compiler may
4733 # overwrite some of them when testing with obscure command lines.
4734 # This happens at least with the AIX C compiler.
4736 for i in 1 2 3 4 5 6; do
4737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4739 # Solaris 8's {/usr,}/bin/sh.
4740 touch sub/conftst$i.h
4742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4744 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4745 # mode. It turns out that the SunPro C++ compiler does not properly
4746 # handle `-M -o', and we need to detect this. Also, some Intel
4747 # versions had trouble with output in subdirs
4748 am__obj=sub/conftest.${OBJEXT-o}
4749 am__minus_obj="-o $am__obj"
4752 # This depmode causes a compiler race in universal mode.
4753 test "$am__universal" = false || continue
4756 # after this tag, mechanisms are not by side-effect, so they'll
4757 # only be used when explicitly requested
4758 if test "x$enable_dependency_tracking" = xyes; then
4764 msvisualcpp | msvcmsys)
4765 # This compiler won't grok `-c -o', but also, the minuso test has
4766 # not run yet. These depmodes are late enough in the game, and
4767 # so weak that their functioning should not be impacted.
4768 am__obj=conftest.${OBJEXT-o}
4773 if depmode=$depmode \
4774 source=sub/conftest.c object=$am__obj \
4775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4777 >/dev/null 2>conftest.err &&
4778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4782 # icc doesn't choke on unknown options, it will just issue warnings
4783 # or remarks (even with -Werror). So we grep stderr for any message
4784 # that says an option was ignored or not supported.
4785 # When given -MP, icc 7.0 and 7.1 complain thusly:
4786 # icc: Command line warning: ignoring option '-M'; no argument required
4787 # The diagnosis changed in icc 8.0:
4788 # icc: Command line remark: option '-MP' not supported
4789 if (grep 'ignoring option' conftest.err ||
4790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4791 am_cv_CXX_dependencies_compiler_type=$depmode
4800 am_cv_CXX_dependencies_compiler_type=none
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4805 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4806 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4809 test "x$enable_dependency_tracking" != xno \
4810 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4811 am__fastdepCXX_TRUE=
4812 am__fastdepCXX_FALSE='#'
4814 am__fastdepCXX_TRUE='#'
4815 am__fastdepCXX_FALSE=
4820 if test "x$CC" != xcc; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4822 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4825 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4827 set dummy $CC; ac_cc=`$as_echo "$2" |
4828 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4829 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4843 # Make sure it works both with $CC and with simple cc.
4844 # We do the test twice because some compilers refuse to overwrite an
4845 # existing .o file with -o, though they will create one.
4846 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4848 if { { case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853 $as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_try") 2>&5
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; } &&
4858 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 $as_echo "$ac_try_echo"; } >&5
4864 (eval "$ac_try") 2>&5
4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; };
4869 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4870 if test "x$CC" != xcc; then
4871 # Test first that cc exists at all.
4872 if { ac_try='cc -c conftest.$ac_ext >&5'
4873 { { case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_try") 2>&5
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }; }; then
4883 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4885 if { { case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4890 $as_echo "$ac_try_echo"; } >&5
4891 (eval "$ac_try") 2>&5
4893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4894 test $ac_status = 0; } &&
4895 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 $as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_try") 2>&5
4903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4904 test $ac_status = 0; };
4909 # cc exists but doesn't like -o.
4910 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4917 rm -f core conftest*
4920 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4927 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4931 # FIXME: we rely on the cache variable name because
4932 # there is no other way.
4934 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4935 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4936 if test "$am_t" != yes; then
4937 # Losing compiler, so override with the script.
4938 # FIXME: It is wrong to rewrite CC.
4939 # But if we don't then we get into trouble of one sort or another.
4940 # A longer-term fix would be to have automake use am__CC in this case,
4941 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4942 CC="$am_aux_dir/compile $CC"
4950 # Make sure that the *FLAGS given at ./configure time will be active by
4951 # default in AM_*FLAGS
4952 AM_CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
4953 AM_CFLAGS="$AM_CFLAGS $CFLAGS"
4954 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
4955 AM_LDFLAGS="$AM_LDFLAGS $LDFLAGS"
4957 if test "x$GCC" = "xyes"; then
4958 AM_CPPFLAGS="$AM_CPPFLAGS -Wall"
4959 # AM_CFLAGS="$AM_CFLAGS --std=c99 -Wall -Wextra -Werror -pedantic"
4960 AM_CFLAGS="$AM_CFLAGS -Wall"
4961 # AM_CFLAGS="$AM_CFLAGS -Wno-pointer-sign -Wno-unused -Wno-sign-compare"
4962 AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations -Wmissing-prototypes"
4963 AM_LDFLAGS="$AM_LDFLAGS -Wall"
4964 # FIXME: Check for --enable-debug here
4965 AM_CPPFLAGS="$AM_CPPFLAGS -g"
4966 AM_LDFLAGS="$AM_LDFLAGS -g"
4967 NO_UNUSED_CFLAGS=-Wno-unused
4970 if test "x$GCC" = "xyes"; then
4979 # Activate internal code
4980 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE"
4982 # Activate Samsung patch
4983 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_SAMSUNG_PATCH_"
4985 # CPPFLAGS: C PreProcessor flags
4987 # CFLAGS: C compiler flags
4989 # CXXFLAGS: C++ compiler flags
4991 # LDFLAGS: Linker flags
4994 # Define compiler flags for later compile tests
4995 # Note: Do NOT add specific libraries and stuff to the generic _FLAGS.
4996 # Put these into LIBFOO_CFLAGS and LIBFOO_LIBS instead.
4998 CPPFLAGS="$AM_CPPFLAGS"
5005 # Check whether --enable-gp2ddb was given.
5006 if test "${enable_gp2ddb+set}" = set; then :
5007 enableval=$enable_gp2ddb;
5008 if test "x$enableval" = "xyes"; then
5010 msg_dp2ddb="(--enable-gp2ddb detected)"
5011 elif test "x$enableval" = "xno"; then
5013 msg_dp2ddb="(--disable-gp2ddb detected)"
5019 # Extract the first word of "flex", so it can be a program name with args.
5020 set dummy flex; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_path_FLEX+:} false; then :
5024 $as_echo_n "(cached) " >&6
5028 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 FLEX=$ac_cv_path_FLEX
5050 if test -n "$FLEX"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5052 $as_echo "$FLEX" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5060 # Extract the first word of "bison", so it can be a program name with args.
5061 set dummy bison; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_path_BISON+:} false; then :
5065 $as_echo_n "(cached) " >&6
5069 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 BISON=$ac_cv_path_BISON
5091 if test -n "$BISON"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5093 $as_echo "$BISON" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GP2DDB" >&5
5103 $as_echo_n "checking whether to enable GP2DDB... " >&6; }
5104 if "$try_gp2ddb"; then
5105 if test -x "$FLEX" && test -x "$BISON"; then
5106 gp_msg_dp2ddb="yes $msg_dp2ddb"
5108 as_fn_error $? "Fatal: GP2DDB support requires flex and bison!
5110 Aborting configuration.
5112 Install flex and bison into your PATH or run configure with --disable-gp2ddb
5113 to disable GP2DDB support.
5117 gp_msg_dp2ddb="no $msg_dp2ddb"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_msg_gp2ddb}" >&5
5120 $as_echo "${gp_msg_gp2ddb}" >&6; }
5122 if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
5123 ENABLED_GP2DDB_TRUE=
5124 ENABLED_GP2DDB_FALSE='#'
5126 ENABLED_GP2DDB_TRUE='#'
5127 ENABLED_GP2DDB_FALSE=
5131 if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
5132 gp_msg_gp2ddb="yes $msg_gp2ddb"
5134 $as_echo "#define ENABLED_GP2DDB 1" >>confdefs.h
5137 gp_msg_gp2ddb="no $msg_gp2ddb"
5140 gp_config_msg_len="$(expr "GP2DDB support" : '.*')"
5141 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
5142 gp_config_msg_lhs="$(expr "GP2DDB support" : "\(.\{0,${gp_config_len3}\}\)")..:"
5144 gp_config_msg_lhs="$(expr "GP2DDB support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
5146 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${gp_msg_gp2ddb} (EXPERIMENTAL)
5157 export PKG_CONFIG_PATH
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PKG_CONFIG_PATH" >&5
5160 $as_echo_n "checking PKG_CONFIG_PATH... " >&6; }
5161 if test "x${PKG_CONFIG_PATH}" = "x"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5
5163 $as_echo "empty" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG_PATH}" >&5
5166 $as_echo "${PKG_CONFIG_PATH}" >&6; }
5169 # Extract the first word of "pkg-config", so it can be a program name with args.
5170 set dummy pkg-config; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5174 $as_echo_n "(cached) " >&6
5178 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
5200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5201 if test -n "$PKG_CONFIG"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5203 $as_echo "$PKG_CONFIG" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 if test "$PKG_CONFIG" = "false"; then
5212 *** Build requires pkg-config
5214 *** Possible solutions:
5215 *** - set PKG_CONFIG to where your pkg-config is located
5216 *** - set PATH to include the directory where pkg-config is installed
5217 *** - get it from http://freedesktop.org/software/pkgconfig/ and install it
5223 # Check whether --enable-static was given.
5224 if test "${enable_static+set}" = set; then :
5225 enableval=$enable_static; p=${PACKAGE-default}
5227 yes) enable_static=yes ;;
5228 no) enable_static=no ;;
5231 # Look at the argument we got. We use all the common list separators.
5232 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5233 for pkg in $enableval; do
5235 if test "X$pkg" = "X$p"; then
5254 # Make sure we can run config.sub.
5255 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5256 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5259 $as_echo_n "checking build system type... " >&6; }
5260 if ${ac_cv_build+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 ac_build_alias=$build_alias
5264 test "x$ac_build_alias" = x &&
5265 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5266 test "x$ac_build_alias" = x &&
5267 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5268 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5269 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5273 $as_echo "$ac_cv_build" >&6; }
5274 case $ac_cv_build in
5276 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5279 ac_save_IFS=$IFS; IFS='-'
5285 # Remember, the first character of IFS is used to create $*,
5286 # except with old shells:
5289 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5293 $as_echo_n "checking host system type... " >&6; }
5294 if ${ac_cv_host+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test "x$host_alias" = x; then
5298 ac_cv_host=$ac_cv_build
5300 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5301 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5306 $as_echo "$ac_cv_host" >&6; }
5309 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5312 ac_save_IFS=$IFS; IFS='-'
5318 # Remember, the first character of IFS is used to create $*,
5319 # except with old shells:
5322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5325 enable_win32_dll=yes
5328 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5329 if test -n "$ac_tool_prefix"; then
5330 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5331 set dummy ${ac_tool_prefix}as; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_AS+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 if test -n "$AS"; then
5338 ac_cv_prog_AS="$AS" # Let the user override the test.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_AS="${ac_tool_prefix}as"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 if test -n "$AS"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5360 $as_echo "$AS" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5368 if test -z "$ac_cv_prog_AS"; then
5370 # Extract the first word of "as", so it can be a program name with args.
5371 set dummy as; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5375 $as_echo_n "(cached) " >&6
5377 if test -n "$ac_ct_AS"; then
5378 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_ac_ct_AS="as"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5398 if test -n "$ac_ct_AS"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5400 $as_echo "$ac_ct_AS" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5406 if test "x$ac_ct_AS" = x; then
5409 case $cross_compiling:$ac_tool_warned in
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413 ac_tool_warned=yes ;;
5421 if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_DLLTOOL+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 if test -n "$DLLTOOL"; then
5430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 DLLTOOL=$ac_cv_prog_DLLTOOL
5450 if test -n "$DLLTOOL"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5452 $as_echo "$DLLTOOL" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5460 if test -z "$ac_cv_prog_DLLTOOL"; then
5461 ac_ct_DLLTOOL=$DLLTOOL
5462 # Extract the first word of "dlltool", so it can be a program name with args.
5463 set dummy dlltool; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 if test -n "$ac_ct_DLLTOOL"; then
5470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5490 if test -n "$ac_ct_DLLTOOL"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5492 $as_echo "$ac_ct_DLLTOOL" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5498 if test "x$ac_ct_DLLTOOL" = x; then
5501 case $cross_compiling:$ac_tool_warned in
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5507 DLLTOOL=$ac_ct_DLLTOOL
5510 DLLTOOL="$ac_cv_prog_DLLTOOL"
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_OBJDUMP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 if test -n "$OBJDUMP"; then
5522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 OBJDUMP=$ac_cv_prog_OBJDUMP
5542 if test -n "$OBJDUMP"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5544 $as_echo "$OBJDUMP" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5552 if test -z "$ac_cv_prog_OBJDUMP"; then
5553 ac_ct_OBJDUMP=$OBJDUMP
5554 # Extract the first word of "objdump", so it can be a program name with args.
5555 set dummy objdump; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -n "$ac_ct_OBJDUMP"; then
5562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5582 if test -n "$ac_ct_OBJDUMP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5584 $as_echo "$ac_ct_OBJDUMP" >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5590 if test "x$ac_ct_OBJDUMP" = x; then
5593 case $cross_compiling:$ac_tool_warned in
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5599 OBJDUMP=$ac_ct_OBJDUMP
5602 OBJDUMP="$ac_cv_prog_OBJDUMP"
5608 test -z "$AS" && AS=as
5614 test -z "$DLLTOOL" && DLLTOOL=dlltool
5620 test -z "$OBJDUMP" && OBJDUMP=objdump
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5635 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5640 macro_version='2.2.6b'
5641 macro_revision='1.3017'
5655 ltmain="$ac_aux_dir/ltmain.sh"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5659 if ${ac_cv_path_SED+:} false; then :
5660 $as_echo_n "(cached) " >&6
5662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5663 for ac_i in 1 2 3 4 5 6 7; do
5664 ac_script="$ac_script$as_nl$ac_script"
5666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5667 { ac_script=; unset ac_script;}
5668 if test -z "$SED"; then
5669 ac_path_SED_found=false
5670 # Loop through the user's path and test for each of PROGNAME-LIST
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_prog in sed gsed; do
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5679 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5680 # Check for GNU ac_path_SED and select it if it is found.
5681 # Check for GNU $ac_path_SED
5682 case `"$ac_path_SED" --version 2>&1` in
5684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5687 $as_echo_n 0123456789 >"conftest.in"
5690 cat "conftest.in" "conftest.in" >"conftest.tmp"
5691 mv "conftest.tmp" "conftest.in"
5692 cp "conftest.in" "conftest.nl"
5693 $as_echo '' >> "conftest.nl"
5694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5696 as_fn_arith $ac_count + 1 && ac_count=$as_val
5697 if test $ac_count -gt ${ac_path_SED_max-0}; then
5698 # Best one so far, save it but keep looking for a better one
5699 ac_cv_path_SED="$ac_path_SED"
5700 ac_path_SED_max=$ac_count
5702 # 10*(2^10) chars as input seems more than enough
5703 test $ac_count -gt 10 && break
5705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708 $ac_path_SED_found && break 3
5713 if test -z "$ac_cv_path_SED"; then
5714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5722 $as_echo "$ac_cv_path_SED" >&6; }
5723 SED="$ac_cv_path_SED"
5726 test -z "$SED" && SED=sed
5727 Xsed="$SED -e 1s/^X//"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5741 if ${ac_cv_path_GREP+:} false; then :
5742 $as_echo_n "(cached) " >&6
5744 if test -z "$GREP"; then
5745 ac_path_GREP_found=false
5746 # Loop through the user's path and test for each of PROGNAME-LIST
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5751 test -z "$as_dir" && as_dir=.
5752 for ac_prog in grep ggrep; do
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5755 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5756 # Check for GNU ac_path_GREP and select it if it is found.
5757 # Check for GNU $ac_path_GREP
5758 case `"$ac_path_GREP" --version 2>&1` in
5760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5763 $as_echo_n 0123456789 >"conftest.in"
5766 cat "conftest.in" "conftest.in" >"conftest.tmp"
5767 mv "conftest.tmp" "conftest.in"
5768 cp "conftest.in" "conftest.nl"
5769 $as_echo 'GREP' >> "conftest.nl"
5770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5772 as_fn_arith $ac_count + 1 && ac_count=$as_val
5773 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5774 # Best one so far, save it but keep looking for a better one
5775 ac_cv_path_GREP="$ac_path_GREP"
5776 ac_path_GREP_max=$ac_count
5778 # 10*(2^10) chars as input seems more than enough
5779 test $ac_count -gt 10 && break
5781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5784 $ac_path_GREP_found && break 3
5789 if test -z "$ac_cv_path_GREP"; then
5790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5793 ac_cv_path_GREP=$GREP
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5798 $as_echo "$ac_cv_path_GREP" >&6; }
5799 GREP="$ac_cv_path_GREP"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5803 $as_echo_n "checking for egrep... " >&6; }
5804 if ${ac_cv_path_EGREP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5808 then ac_cv_path_EGREP="$GREP -E"
5810 if test -z "$EGREP"; then
5811 ac_path_EGREP_found=false
5812 # Loop through the user's path and test for each of PROGNAME-LIST
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5817 test -z "$as_dir" && as_dir=.
5818 for ac_prog in egrep; do
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5822 # Check for GNU ac_path_EGREP and select it if it is found.
5823 # Check for GNU $ac_path_EGREP
5824 case `"$ac_path_EGREP" --version 2>&1` in
5826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5829 $as_echo_n 0123456789 >"conftest.in"
5832 cat "conftest.in" "conftest.in" >"conftest.tmp"
5833 mv "conftest.tmp" "conftest.in"
5834 cp "conftest.in" "conftest.nl"
5835 $as_echo 'EGREP' >> "conftest.nl"
5836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5838 as_fn_arith $ac_count + 1 && ac_count=$as_val
5839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5840 # Best one so far, save it but keep looking for a better one
5841 ac_cv_path_EGREP="$ac_path_EGREP"
5842 ac_path_EGREP_max=$ac_count
5844 # 10*(2^10) chars as input seems more than enough
5845 test $ac_count -gt 10 && break
5847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5850 $ac_path_EGREP_found && break 3
5855 if test -z "$ac_cv_path_EGREP"; then
5856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5859 ac_cv_path_EGREP=$EGREP
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5865 $as_echo "$ac_cv_path_EGREP" >&6; }
5866 EGREP="$ac_cv_path_EGREP"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5870 $as_echo_n "checking for fgrep... " >&6; }
5871 if ${ac_cv_path_FGREP+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5875 then ac_cv_path_FGREP="$GREP -F"
5877 if test -z "$FGREP"; then
5878 ac_path_FGREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5884 test -z "$as_dir" && as_dir=.
5885 for ac_prog in fgrep; do
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5888 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5889 # Check for GNU ac_path_FGREP and select it if it is found.
5890 # Check for GNU $ac_path_FGREP
5891 case `"$ac_path_FGREP" --version 2>&1` in
5893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5896 $as_echo_n 0123456789 >"conftest.in"
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'FGREP' >> "conftest.nl"
5903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905 as_fn_arith $ac_count + 1 && ac_count=$as_val
5906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_FGREP="$ac_path_FGREP"
5909 ac_path_FGREP_max=$ac_count
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 $ac_path_FGREP_found && break 3
5922 if test -z "$ac_cv_path_FGREP"; then
5923 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5926 ac_cv_path_FGREP=$FGREP
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5932 $as_echo "$ac_cv_path_FGREP" >&6; }
5933 FGREP="$ac_cv_path_FGREP"
5936 test -z "$GREP" && GREP=grep
5956 # Check whether --with-gnu-ld was given.
5957 if test "${with_gnu_ld+set}" = set; then :
5958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5964 if test "$GCC" = yes; then
5965 # Check if gcc -print-prog-name=ld gives a path.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5967 $as_echo_n "checking for ld used by $CC... " >&6; }
5970 # gcc leaves a trailing carriage return which upsets mingw
5971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 # Accept absolute paths.
5978 re_direlt='/[^/][^/]*/\.\./'
5979 # Canonicalize the pathname of ld
5980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5984 test -z "$LD" && LD="$ac_prog"
5987 # If it fails, then pretend we aren't using GCC.
5991 # If it is relative, then search for the first ld in PATH.
5995 elif test "$with_gnu_ld" = yes; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5997 $as_echo_n "checking for GNU ld... " >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6000 $as_echo_n "checking for non-GNU ld... " >&6; }
6002 if ${lt_cv_path_LD+:} false; then :
6003 $as_echo_n "(cached) " >&6
6005 if test -z "$LD"; then
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6009 test -z "$ac_dir" && ac_dir=.
6010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6011 lt_cv_path_LD="$ac_dir/$ac_prog"
6012 # Check to see if the program is GNU ld. I'd rather use --version,
6013 # but apparently some variants of GNU ld only accept -v.
6014 # Break only if it was the GNU/non-GNU ld that we prefer.
6015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6016 *GNU* | *'with BFD'*)
6017 test "$with_gnu_ld" != no && break
6020 test "$with_gnu_ld" != yes && break
6027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6032 if test -n "$LD"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6034 $as_echo "$LD" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6042 if ${lt_cv_prog_gnu_ld+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6046 case `$LD -v 2>&1 </dev/null` in
6047 *GNU* | *'with BFD'*)
6048 lt_cv_prog_gnu_ld=yes
6051 lt_cv_prog_gnu_ld=no
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6057 with_gnu_ld=$lt_cv_prog_gnu_ld
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6069 if ${lt_cv_path_NM+:} false; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$NM"; then
6073 # Let the user override the test.
6076 lt_nm_to_check="${ac_tool_prefix}nm"
6077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6078 lt_nm_to_check="$lt_nm_to_check nm"
6080 for lt_tmp_nm in $lt_nm_to_check; do
6081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6084 test -z "$ac_dir" && ac_dir=.
6085 tmp_nm="$ac_dir/$lt_tmp_nm"
6086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6087 # Check to see if the nm accepts a BSD-compat flag.
6088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6089 # nm: unknown option "B" ignored
6090 # Tru64's nm complains that /dev/null is an invalid object file
6091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6092 */dev/null* | *'Invalid file or object type'*)
6093 lt_cv_path_NM="$tmp_nm -B"
6097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6099 lt_cv_path_NM="$tmp_nm -p"
6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104 continue # so that we can try to find one that supports BSD flags
6113 : ${lt_cv_path_NM=no}
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6117 $as_echo "$lt_cv_path_NM" >&6; }
6118 if test "$lt_cv_path_NM" != "no"; then
6121 # Didn't find any BSD compatible name lister, look for dumpbin.
6122 if test -n "$ac_tool_prefix"; then
6123 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_DUMPBIN+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if test -n "$DUMPBIN"; then
6133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 DUMPBIN=$ac_cv_prog_DUMPBIN
6153 if test -n "$DUMPBIN"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6155 $as_echo "$DUMPBIN" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6162 test -n "$DUMPBIN" && break
6165 if test -z "$DUMPBIN"; then
6166 ac_ct_DUMPBIN=$DUMPBIN
6167 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6169 # Extract the first word of "$ac_prog", so it can be a program name with args.
6170 set dummy $ac_prog; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$ac_ct_DUMPBIN"; then
6177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6197 if test -n "$ac_ct_DUMPBIN"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6199 $as_echo "$ac_ct_DUMPBIN" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6206 test -n "$ac_ct_DUMPBIN" && break
6209 if test "x$ac_ct_DUMPBIN" = x; then
6212 case $cross_compiling:$ac_tool_warned in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6218 DUMPBIN=$ac_ct_DUMPBIN
6223 if test "$DUMPBIN" != ":"; then
6227 test -z "$NM" && NM=nm
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6236 if ${lt_cv_nm_interface+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 lt_cv_nm_interface="BSD nm"
6240 echo "int some_variable = 0;" > conftest.$ac_ext
6241 (eval echo "\"\$as_me:6241: $ac_compile\"" >&5)
6242 (eval "$ac_compile" 2>conftest.err)
6243 cat conftest.err >&5
6244 (eval echo "\"\$as_me:6244: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6246 cat conftest.err >&5
6247 (eval echo "\"\$as_me:6247: output\"" >&5)
6248 cat conftest.out >&5
6249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6250 lt_cv_nm_interface="MS dumpbin"
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6255 $as_echo "$lt_cv_nm_interface" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6258 $as_echo_n "checking whether ln -s works... " >&6; }
6260 if test "$LN_S" = "ln -s"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6265 $as_echo "no, using $LN_S" >&6; }
6268 # find the maximum length of command line arguments
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271 if ${lt_cv_sys_max_cmd_len+:} false; then :
6272 $as_echo_n "(cached) " >&6
6279 # On DJGPP, this test can blow up pretty badly due to problems in libc
6280 # (any single argument exceeding 2000 bytes causes a buffer overrun
6281 # during glob expansion). Even if it were fixed, the result of this
6282 # check would be larger than it should be.
6283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6287 # Under GNU Hurd, this test is not required because there is
6288 # no limit to the length of command line arguments.
6289 # Libtool will interpret -1 as no limit whatsoever
6290 lt_cv_sys_max_cmd_len=-1;
6293 cygwin* | mingw* | cegcc*)
6294 # On Win9x/ME, this test blows up -- it succeeds, but takes
6295 # about 5 minutes as the teststring grows exponentially.
6296 # Worse, since 9x/ME are not pre-emptively multitasking,
6297 # you end up with a "frozen" computer, even though with patience
6298 # the test eventually succeeds (with a max line length of 256k).
6299 # Instead, let's just punt: use the minimum linelength reported by
6300 # all of the supported platforms: 8192 (on NT/2K/XP).
6301 lt_cv_sys_max_cmd_len=8192;
6305 # On AmigaOS with pdksh, this test takes hours, literally.
6306 # So we just punt and use a minimum line length of 8192.
6307 lt_cv_sys_max_cmd_len=8192;
6310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6311 # This has been around since 386BSD, at least. Likely further.
6312 if test -x /sbin/sysctl; then
6313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6314 elif test -x /usr/sbin/sysctl; then
6315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6319 # And add a safety zone
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6326 lt_cv_sys_max_cmd_len=196608
6330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6332 # nice to cause kernel panics so lets avoid the loop below.
6333 # First set a reasonable default.
6334 lt_cv_sys_max_cmd_len=16384
6336 if test -x /sbin/sysconfig; then
6337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6343 lt_cv_sys_max_cmd_len=102400
6345 sysv5* | sco5v6* | sysv4.2uw2*)
6346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6347 if test -n "$kargmax"; then
6348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6350 lt_cv_sys_max_cmd_len=32768
6354 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6355 if test -n "$lt_cv_sys_max_cmd_len"; then
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6359 # Make teststring a little bigger before we do anything with it.
6360 # a 1K string should be a reasonable start.
6361 for i in 1 2 3 4 5 6 7 8 ; do
6362 teststring=$teststring$teststring
6364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6365 # If test is not a shell built-in, we'll probably end up computing a
6366 # maximum length that is only half of the actual maximum length, but
6368 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6369 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6370 test $i != 17 # 1/2 MB should be enough
6373 teststring=$teststring$teststring
6375 # Only check the string length outside the loop.
6376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6378 # Add a significant safety factor because C++ compilers can tack on
6379 # massive amounts of additional arguments before passing them to the
6380 # linker. It appears as though 1/2 is a usable value.
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6390 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6393 $as_echo "none" >&6; }
6395 max_cmd_len=$lt_cv_sys_max_cmd_len
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6407 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6408 # Try some XSI features
6411 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6413 && eval 'test $(( 1 + 1 )) -eq 2 \
6414 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6417 $as_echo "$xsi_shell" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6421 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6425 && lt_shell_append=yes
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6427 $as_echo "$lt_shell_append" >&6; }
6430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6440 # test EBCDIC or ASCII
6441 case `echo X|tr X '\101'` in
6442 A) # ASCII based system
6443 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6444 lt_SP2NL='tr \040 \012'
6445 lt_NL2SP='tr \015\012 \040\040'
6447 *) # EBCDIC based system
6448 lt_SP2NL='tr \100 \n'
6449 lt_NL2SP='tr \r\n \100\100'
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6462 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6463 if ${lt_cv_ld_reload_flag+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 lt_cv_ld_reload_flag='-r'
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6470 reload_flag=$lt_cv_ld_reload_flag
6471 case $reload_flag in
6473 *) reload_flag=" $reload_flag" ;;
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478 if test "$GCC" = yes; then
6479 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_OBJDUMP+:} false; then :
6500 $as_echo_n "(cached) " >&6
6502 if test -n "$OBJDUMP"; then
6503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 OBJDUMP=$ac_cv_prog_OBJDUMP
6523 if test -n "$OBJDUMP"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6525 $as_echo "$OBJDUMP" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6533 if test -z "$ac_cv_prog_OBJDUMP"; then
6534 ac_ct_OBJDUMP=$OBJDUMP
6535 # Extract the first word of "objdump", so it can be a program name with args.
6536 set dummy objdump; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -n "$ac_ct_OBJDUMP"; then
6543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6563 if test -n "$ac_ct_OBJDUMP"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6565 $as_echo "$ac_ct_OBJDUMP" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6571 if test "x$ac_ct_OBJDUMP" = x; then
6574 case $cross_compiling:$ac_tool_warned in
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6580 OBJDUMP=$ac_ct_OBJDUMP
6583 OBJDUMP="$ac_cv_prog_OBJDUMP"
6586 test -z "$OBJDUMP" && OBJDUMP=objdump
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6594 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6595 if ${lt_cv_deplibs_check_method+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 lt_cv_file_magic_cmd='$MAGIC_CMD'
6599 lt_cv_file_magic_test_file=
6600 lt_cv_deplibs_check_method='unknown'
6601 # Need to set the preceding variable on all platforms that support
6602 # interlibrary dependencies.
6603 # 'none' -- dependencies not supported.
6604 # `unknown' -- same as none, but documents that we really don't know.
6605 # 'pass_all' -- all dependencies passed with no checks.
6606 # 'test_compile' -- check by making test program.
6607 # 'file_magic [[regex]]' -- check by looking for files in library path
6608 # which responds to the $file_magic_cmd with a given extended regex.
6609 # If you have `file' or equivalent on your system and you're not sure
6610 # whether `pass_all' will *always* work, you probably want this one.
6614 lt_cv_deplibs_check_method=pass_all
6618 lt_cv_deplibs_check_method=pass_all
6622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6623 lt_cv_file_magic_cmd='/usr/bin/file -L'
6624 lt_cv_file_magic_test_file=/shlib/libc.so
6628 # func_win32_libid is a shell function defined in ltmain.sh
6629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630 lt_cv_file_magic_cmd='func_win32_libid'
6634 # Base MSYS/MinGW do not provide the 'file' command needed by
6635 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6636 # unless we find 'file', for example because we are cross-compiling.
6637 if ( file / ) >/dev/null 2>&1; then
6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639 lt_cv_file_magic_cmd='func_win32_libid'
6641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6642 lt_cv_file_magic_cmd='$OBJDUMP -f'
6647 # use the weaker test based on 'objdump'. See mingw*.
6648 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6652 darwin* | rhapsody*)
6653 lt_cv_deplibs_check_method=pass_all
6656 freebsd* | dragonfly*)
6657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6660 # Not sure whether the presence of OpenBSD here was a mistake.
6661 # Let's accept both of them until this is cleared up.
6662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6663 lt_cv_file_magic_cmd=/usr/bin/file
6664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6668 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method=pass_all
6676 hpux10.20* | hpux11*)
6677 lt_cv_file_magic_cmd=/usr/bin/file
6680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6681 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6684 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]'
6685 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6689 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6695 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6699 irix5* | irix6* | nonstopux*)
6701 *-32|*"-32 ") libmagic=32-bit;;
6702 *-n32|*"-n32 ") libmagic=N32;;
6703 *-64|*"-64 ") libmagic=64-bit;;
6704 *) libmagic=never-match;;
6706 lt_cv_deplibs_check_method=pass_all
6709 # This must be Linux ELF.
6710 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6711 lt_cv_deplibs_check_method=pass_all
6714 netbsd* | netbsdelf*-gnu)
6715 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6724 lt_cv_file_magic_cmd=/usr/bin/file
6725 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6729 lt_cv_deplibs_check_method=pass_all
6733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6740 osf3* | osf4* | osf5*)
6741 lt_cv_deplibs_check_method=pass_all
6745 lt_cv_deplibs_check_method=pass_all
6749 lt_cv_deplibs_check_method=pass_all
6752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6753 lt_cv_deplibs_check_method=pass_all
6757 case $host_vendor in
6759 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]'
6760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6763 lt_cv_deplibs_check_method=pass_all
6766 lt_cv_file_magic_cmd='/bin/file'
6767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6770 lt_cv_file_magic_cmd='/bin/file'
6771 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6772 lt_cv_file_magic_test_file=/lib/libc.so
6775 lt_cv_deplibs_check_method=pass_all
6778 lt_cv_deplibs_check_method=pass_all
6784 lt_cv_deplibs_check_method=pass_all
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6790 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6791 file_magic_cmd=$lt_cv_file_magic_cmd
6792 deplibs_check_method=$lt_cv_deplibs_check_method
6793 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}ar; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_AR+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$AR"; then
6815 ac_cv_prog_AR="$AR" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_AR="${ac_tool_prefix}ar"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 if test -n "$AR"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6837 $as_echo "$AR" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_AR"; then
6847 # Extract the first word of "ar", so it can be a program name with args.
6848 set dummy ar; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$ac_ct_AR"; then
6855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_AR="ar"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6875 if test -n "$ac_ct_AR"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6877 $as_echo "$ac_ct_AR" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_AR" = x; then
6886 case $cross_compiling:$ac_tool_warned in
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6898 test -z "$AR" && AR=ar
6899 test -z "$AR_FLAGS" && AR_FLAGS=cru
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}strip; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_STRIP+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 if test -n "$STRIP"; then
6920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 STRIP=$ac_cv_prog_STRIP
6940 if test -n "$STRIP"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6942 $as_echo "$STRIP" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6950 if test -z "$ac_cv_prog_STRIP"; then
6952 # Extract the first word of "strip", so it can be a program name with args.
6953 set dummy strip; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 if test -n "$ac_ct_STRIP"; then
6960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_STRIP="strip"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6980 if test -n "$ac_ct_STRIP"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6982 $as_echo "$ac_ct_STRIP" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6988 if test "x$ac_ct_STRIP" = x; then
6991 case $cross_compiling:$ac_tool_warned in
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
7000 STRIP="$ac_cv_prog_STRIP"
7003 test -z "$STRIP" && STRIP=:
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_RANLIB+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 if test -n "$RANLIB"; then
7019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 RANLIB=$ac_cv_prog_RANLIB
7039 if test -n "$RANLIB"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7041 $as_echo "$RANLIB" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7049 if test -z "$ac_cv_prog_RANLIB"; then
7050 ac_ct_RANLIB=$RANLIB
7051 # Extract the first word of "ranlib", so it can be a program name with args.
7052 set dummy ranlib; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 if test -n "$ac_ct_RANLIB"; then
7059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_RANLIB="ranlib"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7079 if test -n "$ac_ct_RANLIB"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7081 $as_echo "$ac_ct_RANLIB" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7087 if test "x$ac_ct_RANLIB" = x; then
7090 case $cross_compiling:$ac_tool_warned in
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7096 RANLIB=$ac_ct_RANLIB
7099 RANLIB="$ac_cv_prog_RANLIB"
7102 test -z "$RANLIB" && RANLIB=:
7109 # Determine commands to create old-style static archives.
7110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7111 old_postinstall_cmds='chmod 644 $oldlib'
7112 old_postuninstall_cmds=
7114 if test -n "$RANLIB"; then
7117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7159 # If no C compiler was specified, use CC.
7162 # If no C compiler flags were specified, use CFLAGS.
7163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7165 # Allow CC to be a program name with arguments.
7169 # Check for command to grab the raw symbol name followed by C symbol from nm.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7171 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7172 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7173 $as_echo_n "(cached) " >&6
7176 # These are sane defaults that work on at least a few old systems.
7177 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7179 # Character class describing NM global symbol codes.
7180 symcode='[BCDEGRST]'
7182 # Regexp to match symbols that can be accessed directly from C.
7183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7185 # Define system-specific variables.
7190 cygwin* | mingw* | pw32* | cegcc*)
7191 symcode='[ABCDGISTW]'
7194 if test "$host_cpu" = ia64; then
7195 symcode='[ABCDEGRST]'
7199 symcode='[BCDEGRST]'
7202 symcode='[BCDEGQRST]'
7213 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7221 # If we're using GNU nm, then use its standard symbol codes.
7222 case `$NM -V 2>&1` in
7223 *GNU* | *'with BFD'*)
7224 symcode='[ABCDGIRSTW]' ;;
7227 # Transform an extracted symbol line into a proper C declaration.
7228 # Some systems (esp. on ia64) link data and code symbols differently,
7229 # so use this general approach.
7230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7232 # Transform an extracted symbol line into symbol name and symbol address
7233 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7234 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'"
7236 # Handle CRLF in mingw tool chain
7240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7244 # Try without a prefix underscore, then with it.
7245 for ac_symprfx in "" "_"; do
7247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7248 symxfrm="\\1 $ac_symprfx\\2 \\2"
7250 # Write the raw and C identifiers.
7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7252 # Fake it for dumpbin and say T for any non-static function
7253 # and D for any global variable.
7254 # Also find C++ and __fastcall symbols from MSVC++,
7255 # which start with @ or ?.
7256 lt_cv_sys_global_symbol_pipe="$AWK '"\
7257 " {last_section=section; section=\$ 3};"\
7258 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7259 " \$ 0!~/External *\|/{next};"\
7260 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7261 " {if(hide[section]) next};"\
7262 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7263 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7264 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7265 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7266 " ' prfx=^$ac_symprfx"
7268 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7271 # Check to see that the pipe works correctly.
7275 cat > conftest.$ac_ext <<_LT_EOF
7280 void nm_test_func(void);
7281 void nm_test_func(void){}
7285 int main(){nm_test_var='a';nm_test_func();return(0);}
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 # Now try to grab the symbols.
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7296 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; } && test -s "$nlist"; then
7300 # Try sorting and uniquifying the output.
7301 if sort "$nlist" | uniq > "$nlist"T; then
7302 mv -f "$nlist"T "$nlist"
7307 # Make sure that we snagged all the symbols we need.
7308 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7309 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7310 cat <<_LT_EOF > conftest.$ac_ext
7316 # Now generate the symbol file.
7317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7319 cat <<_LT_EOF >> conftest.$ac_ext
7321 /* The mapping between symbol names and symbols. */
7326 lt__PROGRAM__LTX_preloaded_symbols[] =
7328 { "@PROGRAM@", (void *) 0 },
7330 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7331 cat <<\_LT_EOF >> conftest.$ac_ext
7335 /* This works around a problem in FreeBSD linker */
7336 #ifdef FREEBSD_WORKAROUND
7337 static const void *lt_preloaded_setup() {
7338 return lt__PROGRAM__LTX_preloaded_symbols;
7346 # Now try linking the two files.
7347 mv conftest.$ac_objext conftstm.$ac_objext
7348 lt_save_LIBS="$LIBS"
7349 lt_save_CFLAGS="$CFLAGS"
7350 LIBS="conftstm.$ac_objext"
7351 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7353 (eval $ac_link) 2>&5
7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7359 LIBS="$lt_save_LIBS"
7360 CFLAGS="$lt_save_CFLAGS"
7362 echo "cannot find nm_test_func in $nlist" >&5
7365 echo "cannot find nm_test_var in $nlist" >&5
7368 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7371 echo "$progname: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 rm -rf conftest* conftst*
7376 # Do not use the global_symbol_pipe unless it works.
7377 if test "$pipe_works" = yes; then
7380 lt_cv_sys_global_symbol_pipe=
7386 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7387 lt_cv_sys_global_symbol_to_cdecl=
7389 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7391 $as_echo "failed" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7394 $as_echo "ok" >&6; }
7419 # Check whether --enable-libtool-lock was given.
7420 if test "${enable_libtool_lock+set}" = set; then :
7421 enableval=$enable_libtool_lock;
7424 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7426 # Some flags need to be propagated to the compiler or linker for good
7430 # Find out which ABI we are using.
7431 echo 'int i;' > conftest.$ac_ext
7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7433 (eval $ac_compile) 2>&5
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }; then
7437 case `/usr/bin/file conftest.$ac_objext` in
7449 # Find out which ABI we are using.
7450 echo '#line 7450 "configure"' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 if test "$lt_cv_prog_gnu_ld" = yes; then
7457 case `/usr/bin/file conftest.$ac_objext` in
7459 LD="${LD-ld} -melf32bsmip"
7462 LD="${LD-ld} -melf32bmipn32"
7465 LD="${LD-ld} -melf64bmip"
7469 case `/usr/bin/file conftest.$ac_objext` in
7485 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7486 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7487 # Find out which ABI we are using.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `/usr/bin/file conftest.o` in
7497 x86_64-*kfreebsd*-gnu)
7498 LD="${LD-ld} -m elf_i386_fbsd"
7501 LD="${LD-ld} -m elf_i386"
7503 ppc64-*linux*|powerpc64-*linux*)
7504 LD="${LD-ld} -m elf32ppclinux"
7507 LD="${LD-ld} -m elf_s390"
7510 LD="${LD-ld} -m elf32_sparc"
7516 x86_64-*kfreebsd*-gnu)
7517 LD="${LD-ld} -m elf_x86_64_fbsd"
7520 LD="${LD-ld} -m elf_x86_64"
7522 ppc*-*linux*|powerpc*-*linux*)
7523 LD="${LD-ld} -m elf64ppc"
7525 s390*-*linux*|s390*-*tpf*)
7526 LD="${LD-ld} -m elf64_s390"
7529 LD="${LD-ld} -m elf64_sparc"
7539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540 SAVE_CFLAGS="$CFLAGS"
7541 CFLAGS="$CFLAGS -belf"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if ${lt_cv_cc_needs_belf+:} false; then :
7545 $as_echo_n "(cached) " >&6
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 lt_cv_cc_needs_belf=yes
7567 lt_cv_cc_needs_belf=no
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582 CFLAGS="$SAVE_CFLAGS"
7586 # Find out which ABI we are using.
7587 echo 'int i;' > conftest.$ac_ext
7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589 (eval $ac_compile) 2>&5
7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592 test $ac_status = 0; }; then
7593 case `/usr/bin/file conftest.o` in
7595 case $lt_cv_prog_gnu_ld in
7596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7610 need_locks="$enable_libtool_lock"
7614 rhapsody* | darwin*)
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$DSYMUTIL"; then
7624 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7644 if test -n "$DSYMUTIL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7646 $as_echo "$DSYMUTIL" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7654 if test -z "$ac_cv_prog_DSYMUTIL"; then
7655 ac_ct_DSYMUTIL=$DSYMUTIL
7656 # Extract the first word of "dsymutil", so it can be a program name with args.
7657 set dummy dsymutil; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$ac_ct_DSYMUTIL"; then
7664 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684 if test -n "$ac_ct_DSYMUTIL"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 if test "x$ac_ct_DSYMUTIL" = x; then
7695 case $cross_compiling:$ac_tool_warned in
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7701 DSYMUTIL=$ac_ct_DSYMUTIL
7704 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_NMEDIT+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$NMEDIT"; then
7716 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 NMEDIT=$ac_cv_prog_NMEDIT
7736 if test -n "$NMEDIT"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7738 $as_echo "$NMEDIT" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7746 if test -z "$ac_cv_prog_NMEDIT"; then
7747 ac_ct_NMEDIT=$NMEDIT
7748 # Extract the first word of "nmedit", so it can be a program name with args.
7749 set dummy nmedit; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 if test -n "$ac_ct_NMEDIT"; then
7756 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7776 if test -n "$ac_ct_NMEDIT"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7778 $as_echo "$ac_ct_NMEDIT" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7784 if test "x$ac_ct_NMEDIT" = x; then
7787 case $cross_compiling:$ac_tool_warned in
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7793 NMEDIT=$ac_ct_NMEDIT
7796 NMEDIT="$ac_cv_prog_NMEDIT"
7799 if test -n "$ac_tool_prefix"; then
7800 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_LIPO+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$LIPO"; then
7808 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 LIPO=$ac_cv_prog_LIPO
7828 if test -n "$LIPO"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7830 $as_echo "$LIPO" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7838 if test -z "$ac_cv_prog_LIPO"; then
7840 # Extract the first word of "lipo", so it can be a program name with args.
7841 set dummy lipo; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7845 $as_echo_n "(cached) " >&6
7847 if test -n "$ac_ct_LIPO"; then
7848 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_ac_ct_LIPO="lipo"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7868 if test -n "$ac_ct_LIPO"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7870 $as_echo "$ac_ct_LIPO" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7876 if test "x$ac_ct_LIPO" = x; then
7879 case $cross_compiling:$ac_tool_warned in
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7888 LIPO="$ac_cv_prog_LIPO"
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}otool; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_OTOOL+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$OTOOL"; then
7900 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 OTOOL=$ac_cv_prog_OTOOL
7920 if test -n "$OTOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7922 $as_echo "$OTOOL" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 if test -z "$ac_cv_prog_OTOOL"; then
7932 # Extract the first word of "otool", so it can be a program name with args.
7933 set dummy otool; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$ac_ct_OTOOL"; then
7940 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_OTOOL="otool"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7960 if test -n "$ac_ct_OTOOL"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7962 $as_echo "$ac_ct_OTOOL" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7968 if test "x$ac_ct_OTOOL" = x; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7980 OTOOL="$ac_cv_prog_OTOOL"
7983 if test -n "$ac_tool_prefix"; then
7984 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7985 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_OTOOL64+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$OTOOL64"; then
7992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 OTOOL64=$ac_cv_prog_OTOOL64
8012 if test -n "$OTOOL64"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8014 $as_echo "$OTOOL64" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8022 if test -z "$ac_cv_prog_OTOOL64"; then
8023 ac_ct_OTOOL64=$OTOOL64
8024 # Extract the first word of "otool64", so it can be a program name with args.
8025 set dummy otool64; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8029 $as_echo_n "(cached) " >&6
8031 if test -n "$ac_ct_OTOOL64"; then
8032 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_prog_ac_ct_OTOOL64="otool64"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8052 if test -n "$ac_ct_OTOOL64"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8054 $as_echo "$ac_ct_OTOOL64" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8060 if test "x$ac_ct_OTOOL64" = x; then
8063 case $cross_compiling:$ac_tool_warned in
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8069 OTOOL64=$ac_ct_OTOOL64
8072 OTOOL64="$ac_cv_prog_OTOOL64"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8102 $as_echo_n "checking for -single_module linker flag... " >&6; }
8103 if ${lt_cv_apple_cc_single_mod+:} false; then :
8104 $as_echo_n "(cached) " >&6
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi_module to the
8112 rm -rf libconftest.dylib*
8113 echo "int foo(void){return 1;}" > conftest.c
8114 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib -Wl,-single_module conftest.c" >&5
8116 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8119 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8120 lt_cv_apple_cc_single_mod=yes
8122 cat conftest.err >&5
8124 rm -rf libconftest.dylib*
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8129 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8131 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8132 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8133 $as_echo_n "(cached) " >&6
8135 lt_cv_ld_exported_symbols_list=no
8136 save_LDFLAGS=$LDFLAGS
8137 echo "_main" > conftest.sym
8138 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 lt_cv_ld_exported_symbols_list=yes
8153 lt_cv_ld_exported_symbols_list=no
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LDFLAGS="$save_LDFLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8161 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8163 rhapsody* | darwin1.[012])
8164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8167 darwin*) # darwin 5.x on
8168 # if running on 10.5 or later, the deployment target defaults
8169 # to the OS version, if on x86, and 10.4, the deployment
8170 # target defaults to 10.4. Don't you love it?
8171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8172 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8182 _lt_dar_single_mod='$single_module'
8184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8189 if test "$DSYMUTIL" != ":"; then
8190 _lt_dsymutil='~$DSYMUTIL $lib || :'
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8199 $as_echo_n "checking for ANSI C header files... " >&6; }
8200 if ${ac_cv_header_stdc+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 ac_cv_header_stdc=yes
8221 ac_cv_header_stdc=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 if test $ac_cv_header_stdc = yes; then
8226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8233 $EGREP "memchr" >/dev/null 2>&1; then :
8236 ac_cv_header_stdc=no
8242 if test $ac_cv_header_stdc = yes; then
8243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 $EGREP "free" >/dev/null 2>&1; then :
8253 ac_cv_header_stdc=no
8259 if test $ac_cv_header_stdc = yes; then
8260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8261 if test "$cross_compiling" = yes; then :
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8268 #if ((' ' & 0x0FF) == 0x020)
8269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8272 # define ISLOWER(c) \
8273 (('a' <= (c) && (c) <= 'i') \
8274 || ('j' <= (c) && (c) <= 'r') \
8275 || ('s' <= (c) && (c) <= 'z'))
8276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8284 for (i = 0; i < 256; i++)
8285 if (XOR (islower (i), ISLOWER (i))
8286 || toupper (i) != TOUPPER (i))
8291 if ac_fn_c_try_run "$LINENO"; then :
8294 ac_cv_header_stdc=no
8296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8297 conftest.$ac_objext conftest.beam conftest.$ac_ext
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8303 $as_echo "$ac_cv_header_stdc" >&6; }
8304 if test $ac_cv_header_stdc = yes; then
8306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8312 inttypes.h stdint.h unistd.h
8314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8315 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8318 cat >>confdefs.h <<_ACEOF
8319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327 for ac_header in dlfcn.h
8329 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8331 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DLFCN_H 1
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348 if test -n "$CCC"; then
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_CXX+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$CXX"; then
8362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 if test -n "$CXX"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8384 $as_echo "$CXX" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$CXX" && break
8394 if test -z "$CXX"; then
8396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8403 $as_echo_n "(cached) " >&6
8405 if test -n "$ac_ct_CXX"; then
8406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_CXX="$ac_prog"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8428 $as_echo "$ac_ct_CXX" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8435 test -n "$ac_ct_CXX" && break
8438 if test "x$ac_ct_CXX" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8445 ac_tool_warned=yes ;;
8453 # Provide some information about the compiler.
8454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8457 for ac_option in --version -v -V -qversion; do
8458 { { ac_try="$ac_compiler $ac_option >&5"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8464 $as_echo "$ac_try_echo"; } >&5
8465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8467 if test -s conftest.err; then
8469 ... rest of stderr output deleted ...
8470 10q' conftest.err >conftest.er1
8471 cat conftest.er1 >&5
8473 rm -f conftest.er1 conftest.err
8474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8475 test $ac_status = 0; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8480 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8481 $as_echo_n "(cached) " >&6
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8497 if ac_fn_cxx_try_compile "$LINENO"; then :
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8508 if test $ac_compiler_gnu = yes; then
8513 ac_test_CXXFLAGS=${CXXFLAGS+set}
8514 ac_save_CXXFLAGS=$CXXFLAGS
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8517 if ${ac_cv_prog_cxx_g+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8521 ac_cxx_werror_flag=yes
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8535 if ac_fn_cxx_try_compile "$LINENO"; then :
8536 ac_cv_prog_cxx_g=yes
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8550 if ac_fn_cxx_try_compile "$LINENO"; then :
8553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8566 if ac_fn_cxx_try_compile "$LINENO"; then :
8567 ac_cv_prog_cxx_g=yes
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8578 if test "$ac_test_CXXFLAGS" = set; then
8579 CXXFLAGS=$ac_save_CXXFLAGS
8580 elif test $ac_cv_prog_cxx_g = yes; then
8581 if test "$GXX" = yes; then
8587 if test "$GXX" = yes; then
8594 ac_cpp='$CPP $CPPFLAGS'
8595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8599 depcc="$CXX" am_compiler_list=
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8602 $as_echo_n "checking dependency style of $depcc... " >&6; }
8603 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8604 $as_echo_n "(cached) " >&6
8606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8607 # We make a subdir and do the tests there. Otherwise we can end up
8608 # making bogus files that we don't know about and never remove. For
8609 # instance it was reported that on HP-UX the gcc test will end up
8610 # making a dummy file named `D' -- because `-MD' means `put the output
8613 # Copy depcomp to subdir because otherwise we won't find it if we're
8614 # using a relative directory.
8615 cp "$am_depcomp" conftest.dir
8617 # We will build objects and dependencies in a subdirectory because
8618 # it helps to detect inapplicable dependency modes. For instance
8619 # both Tru64's cc and ICC support -MD to output dependencies as a
8620 # side effect of compilation, but ICC will put the dependencies in
8621 # the current directory while Tru64 will put them in the object
8625 am_cv_CXX_dependencies_compiler_type=none
8626 if test "$am_compiler_list" = ""; then
8627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8630 case " $depcc " in #(
8631 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8634 for depmode in $am_compiler_list; do
8635 # Setup a source with many dependencies, because some compilers
8636 # like to wrap large dependency lists on column 80 (with \), and
8637 # we should not choose a depcomp mode which is confused by this.
8639 # We need to recreate these files for each test, as the compiler may
8640 # overwrite some of them when testing with obscure command lines.
8641 # This happens at least with the AIX C compiler.
8643 for i in 1 2 3 4 5 6; do
8644 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8645 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8646 # Solaris 8's {/usr,}/bin/sh.
8647 touch sub/conftst$i.h
8649 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8651 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8652 # mode. It turns out that the SunPro C++ compiler does not properly
8653 # handle `-M -o', and we need to detect this. Also, some Intel
8654 # versions had trouble with output in subdirs
8655 am__obj=sub/conftest.${OBJEXT-o}
8656 am__minus_obj="-o $am__obj"
8659 # This depmode causes a compiler race in universal mode.
8660 test "$am__universal" = false || continue
8663 # after this tag, mechanisms are not by side-effect, so they'll
8664 # only be used when explicitly requested
8665 if test "x$enable_dependency_tracking" = xyes; then
8671 msvisualcpp | msvcmsys)
8672 # This compiler won't grok `-c -o', but also, the minuso test has
8673 # not run yet. These depmodes are late enough in the game, and
8674 # so weak that their functioning should not be impacted.
8675 am__obj=conftest.${OBJEXT-o}
8680 if depmode=$depmode \
8681 source=sub/conftest.c object=$am__obj \
8682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8683 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8684 >/dev/null 2>conftest.err &&
8685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8687 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8689 # icc doesn't choke on unknown options, it will just issue warnings
8690 # or remarks (even with -Werror). So we grep stderr for any message
8691 # that says an option was ignored or not supported.
8692 # When given -MP, icc 7.0 and 7.1 complain thusly:
8693 # icc: Command line warning: ignoring option '-M'; no argument required
8694 # The diagnosis changed in icc 8.0:
8695 # icc: Command line remark: option '-MP' not supported
8696 if (grep 'ignoring option' conftest.err ||
8697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8698 am_cv_CXX_dependencies_compiler_type=$depmode
8707 am_cv_CXX_dependencies_compiler_type=none
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8712 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8713 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8716 test "x$enable_dependency_tracking" != xno \
8717 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8718 am__fastdepCXX_TRUE=
8719 am__fastdepCXX_FALSE='#'
8721 am__fastdepCXX_TRUE='#'
8722 am__fastdepCXX_FALSE=
8726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8727 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8728 (test "X$CXX" != "Xg++"))) ; then
8730 ac_cpp='$CXXCPP $CPPFLAGS'
8731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8735 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8736 if test -z "$CXXCPP"; then
8737 if ${ac_cv_prog_CXXCPP+:} false; then :
8738 $as_echo_n "(cached) " >&6
8740 # Double quotes because CXXCPP needs to be expanded
8741 for CXXCPP in "$CXX -E" "/lib/cpp"
8744 for ac_cxx_preproc_warn_flag in '' yes
8746 # Use a header file that comes with gcc, so configuring glibc
8747 # with a fresh cross-compiler works.
8748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749 # <limits.h> exists even on freestanding compilers.
8750 # On the NeXT, cc -E runs the code through the compiler's parser,
8751 # not just through cpp. "Syntax error" is here to catch this case.
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8755 # include <limits.h>
8757 # include <assert.h>
8761 if ac_fn_cxx_try_cpp "$LINENO"; then :
8764 # Broken: fails on valid input.
8767 rm -f conftest.err conftest.i conftest.$ac_ext
8769 # OK, works on sane cases. Now check whether nonexistent headers
8770 # can be detected and how.
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #include <ac_nonexistent.h>
8775 if ac_fn_cxx_try_cpp "$LINENO"; then :
8776 # Broken: success on invalid input.
8779 # Passes both tests.
8783 rm -f conftest.err conftest.i conftest.$ac_ext
8786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8787 rm -f conftest.i conftest.err conftest.$ac_ext
8788 if $ac_preproc_ok; then :
8793 ac_cv_prog_CXXCPP=$CXXCPP
8796 CXXCPP=$ac_cv_prog_CXXCPP
8798 ac_cv_prog_CXXCPP=$CXXCPP
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8801 $as_echo "$CXXCPP" >&6; }
8803 for ac_cxx_preproc_warn_flag in '' yes
8805 # Use a header file that comes with gcc, so configuring glibc
8806 # with a fresh cross-compiler works.
8807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 # <limits.h> exists even on freestanding compilers.
8809 # On the NeXT, cc -E runs the code through the compiler's parser,
8810 # not just through cpp. "Syntax error" is here to catch this case.
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8814 # include <limits.h>
8816 # include <assert.h>
8820 if ac_fn_cxx_try_cpp "$LINENO"; then :
8823 # Broken: fails on valid input.
8826 rm -f conftest.err conftest.i conftest.$ac_ext
8828 # OK, works on sane cases. Now check whether nonexistent headers
8829 # can be detected and how.
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <ac_nonexistent.h>
8834 if ac_fn_cxx_try_cpp "$LINENO"; then :
8835 # Broken: success on invalid input.
8838 # Passes both tests.
8842 rm -f conftest.err conftest.i conftest.$ac_ext
8845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8846 rm -f conftest.i conftest.err conftest.$ac_ext
8847 if $ac_preproc_ok; then :
8850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8852 _lt_caught_CXX_error=yes; }
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862 _lt_caught_CXX_error=yes
8875 # Check whether --enable-shared was given.
8876 if test "${enable_shared+set}" = set; then :
8877 enableval=$enable_shared; p=${PACKAGE-default}
8879 yes) enable_shared=yes ;;
8880 no) enable_shared=no ;;
8883 # Look at the argument we got. We use all the common list separators.
8884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8885 for pkg in $enableval; do
8887 if test "X$pkg" = "X$p"; then
8908 # Check whether --with-pic was given.
8909 if test "${with_pic+set}" = set; then :
8910 withval=$with_pic; pic_mode="$withval"
8916 test -z "$pic_mode" && pic_mode=default
8924 # Check whether --enable-fast-install was given.
8925 if test "${enable_fast_install+set}" = set; then :
8926 enableval=$enable_fast_install; p=${PACKAGE-default}
8928 yes) enable_fast_install=yes ;;
8929 no) enable_fast_install=no ;;
8931 enable_fast_install=no
8932 # Look at the argument we got. We use all the common list separators.
8933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8934 for pkg in $enableval; do
8936 if test "X$pkg" = "X$p"; then
8937 enable_fast_install=yes
8944 enable_fast_install=yes
8957 # This can be used to rebuild libtool when needed
8958 LIBTOOL_DEPS="$ltmain"
8960 # Always use our own libtool.
8961 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8987 test -z "$LN_S" && LN_S="ln -s"
9002 if test -n "${ZSH_VERSION+set}" ; then
9003 setopt NO_GLOB_SUBST
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9007 $as_echo_n "checking for objdir... " >&6; }
9008 if ${lt_cv_objdir+:} false; then :
9009 $as_echo_n "(cached) " >&6
9011 rm -f .libs 2>/dev/null
9012 mkdir .libs 2>/dev/null
9013 if test -d .libs; then
9016 # MS-DOS does not allow filenames that begin with a dot.
9019 rmdir .libs 2>/dev/null
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9022 $as_echo "$lt_cv_objdir" >&6; }
9023 objdir=$lt_cv_objdir
9029 cat >>confdefs.h <<_ACEOF
9030 #define LT_OBJDIR "$lt_cv_objdir/"
9051 # AIX sometimes has problems with the GCC collect2 program. For some
9052 # reason, if we set the COLLECT_NAMES environment variable, the problems
9053 # vanish in a puff of smoke.
9054 if test "X${COLLECT_NAMES+set}" != Xset; then
9056 export COLLECT_NAMES
9061 # Sed substitution that helps us do robust quoting. It backslashifies
9062 # metacharacters that are still active within double-quoted strings.
9063 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9065 # Same as above, but do not quote variable references.
9066 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9068 # Sed substitution to delay expansion of an escaped shell variable in a
9069 # double_quote_subst'ed string.
9070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9072 # Sed substitution to delay expansion of an escaped single quote.
9073 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9075 # Sed substitution to avoid accidental globbing in evaled expressions
9076 no_glob_subst='s/\*/\\\*/g'
9080 can_build_shared=yes
9082 # All known linkers require a `.a' archive for static linking (except MSVC,
9083 # which needs '.lib').
9086 with_gnu_ld="$lt_cv_prog_gnu_ld"
9089 old_CFLAGS="$CFLAGS"
9091 # Set sane defaults for various variables
9092 test -z "$CC" && CC=cc
9093 test -z "$LTCC" && LTCC=$CC
9094 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9095 test -z "$LD" && LD=ld
9096 test -z "$ac_objext" && ac_objext=o
9098 for cc_temp in $compiler""; do
9100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9106 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9109 # Only perform the check for file, if the check method requires it
9110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9111 case $deplibs_check_method in
9113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9115 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9116 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9117 $as_echo_n "(cached) " >&6
9121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9124 lt_save_MAGIC_CMD="$MAGIC_CMD"
9125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9127 for ac_dir in $ac_dummy; do
9129 test -z "$ac_dir" && ac_dir=.
9130 if test -f $ac_dir/${ac_tool_prefix}file; then
9131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9132 if test -n "$file_magic_test_file"; then
9133 case $deplibs_check_method in
9135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9138 $EGREP "$file_magic_regex" > /dev/null; then
9143 *** Warning: the command libtool uses to detect shared libraries,
9144 *** $file_magic_cmd, produces output that libtool cannot recognize.
9145 *** The result is that libtool may fail to recognize shared libraries
9146 *** as such. This will affect the creation of libtool libraries that
9147 *** depend on shared libraries, but programs linked with such libtool
9148 *** libraries will work regardless of this problem. Nevertheless, you
9149 *** may want to report the problem to your system manager and/or to
9150 *** bug-libtool@gnu.org
9160 MAGIC_CMD="$lt_save_MAGIC_CMD"
9165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9166 if test -n "$MAGIC_CMD"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9168 $as_echo "$MAGIC_CMD" >&6; }
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9178 if test -z "$lt_cv_path_MAGIC_CMD"; then
9179 if test -n "$ac_tool_prefix"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9181 $as_echo_n "checking for file... " >&6; }
9182 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9183 $as_echo_n "(cached) " >&6
9187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9190 lt_save_MAGIC_CMD="$MAGIC_CMD"
9191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9193 for ac_dir in $ac_dummy; do
9195 test -z "$ac_dir" && ac_dir=.
9196 if test -f $ac_dir/file; then
9197 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9198 if test -n "$file_magic_test_file"; then
9199 case $deplibs_check_method in
9201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9204 $EGREP "$file_magic_regex" > /dev/null; then
9209 *** Warning: the command libtool uses to detect shared libraries,
9210 *** $file_magic_cmd, produces output that libtool cannot recognize.
9211 *** The result is that libtool may fail to recognize shared libraries
9212 *** as such. This will affect the creation of libtool libraries that
9213 *** depend on shared libraries, but programs linked with such libtool
9214 *** libraries will work regardless of this problem. Nevertheless, you
9215 *** may want to report the problem to your system manager and/or to
9216 *** bug-libtool@gnu.org
9226 MAGIC_CMD="$lt_save_MAGIC_CMD"
9231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9232 if test -n "$MAGIC_CMD"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9234 $as_echo "$MAGIC_CMD" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9250 # Use C for the default configuration in the libtool script
9254 ac_cpp='$CPP $CPPFLAGS'
9255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9260 # Source file extension for C test sources.
9263 # Object file extension for compiled C test sources.
9267 # Code to be used in simple compile tests
9268 lt_simple_compile_test_code="int some_variable = 0;"
9270 # Code to be used in simple link tests
9271 lt_simple_link_test_code='int main(){return(0);}'
9279 # If no C compiler was specified, use CC.
9282 # If no C compiler flags were specified, use CFLAGS.
9283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9285 # Allow CC to be a program name with arguments.
9288 # Save the default compiler, since it gets overwritten when the other
9289 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9290 compiler_DEFAULT=$CC
9292 # save warnings/boilerplate of simple test code
9293 ac_outfile=conftest.$ac_objext
9294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9296 _lt_compiler_boilerplate=`cat conftest.err`
9299 ac_outfile=conftest.$ac_objext
9300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9302 _lt_linker_boilerplate=`cat conftest.err`
9307 ## There is no encapsulation within the following macros, do not change
9308 ## the running order or otherwise move them around unless you know exactly
9309 ## what you are doing...
9310 if test -n "$compiler"; then
9312 lt_prog_compiler_no_builtin_flag=
9314 if test "$GCC" = yes; then
9315 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9318 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9319 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9320 $as_echo_n "(cached) " >&6
9322 lt_cv_prog_compiler_rtti_exceptions=no
9323 ac_outfile=conftest.$ac_objext
9324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9325 lt_compiler_flag="-fno-rtti -fno-exceptions"
9326 # Insert the option either (1) after the last *FLAGS variable, or
9327 # (2) before a word containing "conftest.", or (3) at the end.
9328 # Note that $ac_compile itself does not contain backslashes and begins
9329 # with a dollar sign (not a hyphen), so the echo should work correctly.
9330 # The option is referenced via a variable to avoid confusing sed.
9331 lt_compile=`echo "$ac_compile" | $SED \
9332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9334 -e 's:$: $lt_compiler_flag:'`
9335 (eval echo "\"\$as_me:9335: $lt_compile\"" >&5)
9336 (eval "$lt_compile" 2>conftest.err)
9338 cat conftest.err >&5
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 if (exit $ac_status) && test -s "$ac_outfile"; then
9341 # The compiler can only warn and ignore the option if not recognized
9342 # So say no if there are warnings other than the usual output.
9343 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9346 lt_cv_prog_compiler_rtti_exceptions=yes
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9353 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9368 lt_prog_compiler_wl=
9369 lt_prog_compiler_pic=
9370 lt_prog_compiler_static=
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9375 if test "$GCC" = yes; then
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_static='-static'
9381 # All AIX code is PIC.
9382 if test "$host_cpu" = ia64; then
9383 # AIX 5 now supports IA64 processor
9384 lt_prog_compiler_static='-Bstatic'
9391 # see comment about AmigaOS4 .so support
9392 lt_prog_compiler_pic='-fPIC'
9395 # FIXME: we need at least 68020 code to build shared libraries, but
9396 # adding the `-m68020' flag to GCC prevents building anything better,
9398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404 # PIC is the default for these OSes.
9407 mingw* | cygwin* | pw32* | os2* | cegcc*)
9408 # This hack is so that the source file can tell whether it is being
9409 # built for inclusion in a dll (and should export symbols for example).
9410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411 # (--disable-auto-import) libraries
9412 lt_prog_compiler_pic='-DDLL_EXPORT'
9415 darwin* | rhapsody*)
9416 # PIC is the default on this platform
9417 # Common symbols not allowed in MH_DYLIB files
9418 lt_prog_compiler_pic='-fno-common'
9422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9424 # sets the default TLS model and affects inlining.
9430 lt_prog_compiler_pic='-fPIC'
9436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9437 # Instead, we relocate shared libraries at runtime.
9441 # Just because we use GCC doesn't mean we suddenly get shared libraries
9442 # on systems that don't support them.
9443 lt_prog_compiler_can_build_shared=no
9448 # QNX uses GNU C++, but need to define -shared option too, otherwise
9450 lt_prog_compiler_pic='-fPIC -shared'
9454 if test -d /usr/nec; then
9455 lt_prog_compiler_pic=-Kconform_pic
9460 lt_prog_compiler_pic='-fPIC'
9464 # PORTME Check for flag to pass linker flags through the system compiler.
9467 lt_prog_compiler_wl='-Wl,'
9468 if test "$host_cpu" = ia64; then
9469 # AIX 5 now supports IA64 processor
9470 lt_prog_compiler_static='-Bstatic'
9472 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9476 mingw* | cygwin* | pw32* | os2* | cegcc*)
9477 # This hack is so that the source file can tell whether it is being
9478 # built for inclusion in a dll (and should export symbols for example).
9479 lt_prog_compiler_pic='-DDLL_EXPORT'
9482 hpux9* | hpux10* | hpux11*)
9483 lt_prog_compiler_wl='-Wl,'
9484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9491 lt_prog_compiler_pic='+Z'
9494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9495 lt_prog_compiler_static='${wl}-a ${wl}archive'
9498 irix5* | irix6* | nonstopux*)
9499 lt_prog_compiler_wl='-Wl,'
9500 # PIC (with -KPIC) is the default.
9501 lt_prog_compiler_static='-non_shared'
9504 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9505 case $cc_basename in
9506 # old Intel for x86_64 which still supported -KPIC.
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-KPIC'
9510 lt_prog_compiler_static='-static'
9512 # icc used to be incompatible with GCC.
9513 # ICC 10 doesn't accept -KPIC any more.
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-fPIC'
9517 lt_prog_compiler_static='-static'
9519 # Lahey Fortran 8.1.
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='--shared'
9523 lt_prog_compiler_static='--static'
9525 pgcc* | pgf77* | pgf90* | pgf95*)
9526 # Portland Group compilers (*not* the Pentium gcc compiler,
9527 # which looks to be a dead project)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-fpic'
9530 lt_prog_compiler_static='-Bstatic'
9533 lt_prog_compiler_wl='-Wl,'
9534 # All Alpha code is PIC.
9535 lt_prog_compiler_static='-non_shared'
9538 # IBM XL C 8.0/Fortran 10.1 on PPC
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-qpic'
9541 lt_prog_compiler_static='-qstaticlink'
9544 case `$CC -V 2>&1 | sed 5q` in
9547 lt_prog_compiler_pic='-KPIC'
9548 lt_prog_compiler_static='-Bstatic'
9549 lt_prog_compiler_wl='-Wl,'
9552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9555 lt_prog_compiler_wl=''
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9568 # QNX uses GNU C++, but need to define -shared option too, otherwise
9570 lt_prog_compiler_pic='-fPIC -shared'
9573 osf3* | osf4* | osf5*)
9574 lt_prog_compiler_wl='-Wl,'
9575 # All OSF/1 code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9580 lt_prog_compiler_static='-non_shared'
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 case $cc_basename in
9588 lt_prog_compiler_wl='-Qoption ld ';;
9590 lt_prog_compiler_wl='-Wl,';;
9595 lt_prog_compiler_wl='-Qoption ld '
9596 lt_prog_compiler_pic='-PIC'
9597 lt_prog_compiler_static='-Bstatic'
9600 sysv4 | sysv4.2uw2* | sysv4.3*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-KPIC'
9603 lt_prog_compiler_static='-Bstatic'
9607 if test -d /usr/nec ;then
9608 lt_prog_compiler_pic='-Kconform_pic'
9609 lt_prog_compiler_static='-Bstatic'
9613 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_can_build_shared=no
9625 lt_prog_compiler_pic='-pic'
9626 lt_prog_compiler_static='-Bstatic'
9630 lt_prog_compiler_can_build_shared=no
9636 # For platforms which do not support PIC, -DPIC is meaningless:
9638 lt_prog_compiler_pic=
9641 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9645 $as_echo "$lt_prog_compiler_pic" >&6; }
9653 # Check to make sure the PIC flag actually works.
9655 if test -n "$lt_prog_compiler_pic"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9658 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9659 $as_echo_n "(cached) " >&6
9661 lt_cv_prog_compiler_pic_works=no
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9664 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9665 # Insert the option either (1) after the last *FLAGS variable, or
9666 # (2) before a word containing "conftest.", or (3) at the end.
9667 # Note that $ac_compile itself does not contain backslashes and begins
9668 # with a dollar sign (not a hyphen), so the echo should work correctly.
9669 # The option is referenced via a variable to avoid confusing sed.
9670 lt_compile=`echo "$ac_compile" | $SED \
9671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9673 -e 's:$: $lt_compiler_flag:'`
9674 (eval echo "\"\$as_me:9674: $lt_compile\"" >&5)
9675 (eval "$lt_compile" 2>conftest.err)
9677 cat conftest.err >&5
9678 echo "$as_me:9678: \$? = $ac_status" >&5
9679 if (exit $ac_status) && test -s "$ac_outfile"; then
9680 # The compiler can only warn and ignore the option if not recognized
9681 # So say no if there are warnings other than the usual output.
9682 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9685 lt_cv_prog_compiler_pic_works=yes
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9692 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9694 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9695 case $lt_prog_compiler_pic in
9697 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9700 lt_prog_compiler_pic=
9701 lt_prog_compiler_can_build_shared=no
9712 # Check to make sure the static flag actually works.
9714 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9717 if ${lt_cv_prog_compiler_static_works+:} false; then :
9718 $as_echo_n "(cached) " >&6
9720 lt_cv_prog_compiler_static_works=no
9721 save_LDFLAGS="$LDFLAGS"
9722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9725 # The linker can only warn and ignore the option if not recognized
9726 # So say no if there are warnings
9727 if test -s conftest.err; then
9728 # Append any errors to the config.log.
9729 cat conftest.err 1>&5
9730 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9732 if diff conftest.exp conftest.er2 >/dev/null; then
9733 lt_cv_prog_compiler_static_works=yes
9736 lt_cv_prog_compiler_static_works=yes
9740 LDFLAGS="$save_LDFLAGS"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9744 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9746 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9749 lt_prog_compiler_static=
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9760 if ${lt_cv_prog_compiler_c_o+:} false; then :
9761 $as_echo_n "(cached) " >&6
9763 lt_cv_prog_compiler_c_o=no
9764 $RM -r conftest 2>/dev/null
9768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770 lt_compiler_flag="-o out/conftest2.$ac_objext"
9771 # Insert the option either (1) after the last *FLAGS variable, or
9772 # (2) before a word containing "conftest.", or (3) at the end.
9773 # Note that $ac_compile itself does not contain backslashes and begins
9774 # with a dollar sign (not a hyphen), so the echo should work correctly.
9775 lt_compile=`echo "$ac_compile" | $SED \
9776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778 -e 's:$: $lt_compiler_flag:'`
9779 (eval echo "\"\$as_me:9779: $lt_compile\"" >&5)
9780 (eval "$lt_compile" 2>out/conftest.err)
9782 cat out/conftest.err >&5
9783 echo "$as_me:9783: \$? = $ac_status" >&5
9784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9786 # The compiler can only warn and ignore the option if not recognized
9787 # So say no if there are warnings
9788 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9791 lt_cv_prog_compiler_c_o=yes
9796 # SGI C++ compiler will create directory out/ii_files/ for
9797 # template instantiation
9798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9799 $RM out/* && rmdir out
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9815 if ${lt_cv_prog_compiler_c_o+:} false; then :
9816 $as_echo_n "(cached) " >&6
9818 lt_cv_prog_compiler_c_o=no
9819 $RM -r conftest 2>/dev/null
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9825 lt_compiler_flag="-o out/conftest2.$ac_objext"
9826 # Insert the option either (1) after the last *FLAGS variable, or
9827 # (2) before a word containing "conftest.", or (3) at the end.
9828 # Note that $ac_compile itself does not contain backslashes and begins
9829 # with a dollar sign (not a hyphen), so the echo should work correctly.
9830 lt_compile=`echo "$ac_compile" | $SED \
9831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9833 -e 's:$: $lt_compiler_flag:'`
9834 (eval echo "\"\$as_me:9834: $lt_compile\"" >&5)
9835 (eval "$lt_compile" 2>out/conftest.err)
9837 cat out/conftest.err >&5
9838 echo "$as_me:9838: \$? = $ac_status" >&5
9839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9841 # The compiler can only warn and ignore the option if not recognized
9842 # So say no if there are warnings
9843 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9846 lt_cv_prog_compiler_c_o=yes
9851 # SGI C++ compiler will create directory out/ii_files/ for
9852 # template instantiation
9853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9854 $RM out/* && rmdir out
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9861 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9866 hard_links="nottested"
9867 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9868 # do not overwrite the value of need_locks provided by the user
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9870 $as_echo_n "checking if we can lock with hard links... " >&6; }
9873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9875 ln conftest.a conftest.b 2>&5 || hard_links=no
9876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9878 $as_echo "$hard_links" >&6; }
9879 if test "$hard_links" = no; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9881 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9894 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9897 allow_undefined_flag=
9898 always_export_symbols=no
9900 archive_expsym_cmds=
9901 compiler_needs_object=no
9902 enable_shared_with_static_runtimes=no
9903 export_dynamic_flag_spec=
9904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9905 hardcode_automatic=no
9907 hardcode_direct_absolute=no
9908 hardcode_libdir_flag_spec=
9909 hardcode_libdir_flag_spec_ld=
9910 hardcode_libdir_separator=
9912 hardcode_shlibpath_var=unsupported
9914 link_all_deplibs=unknown
9917 old_archive_from_new_cmds=
9918 old_archive_from_expsyms_cmds=
9919 thread_safe_flag_spec=
9920 whole_archive_flag_spec=
9921 # include_expsyms should be a list of space-separated symbols to be *always*
9922 # included in the symbol list
9924 # exclude_expsyms can be an extended regexp of symbols to exclude
9925 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9926 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9927 # as well as any symbol that contains `d'.
9928 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9929 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9930 # platforms (ab)use it in PIC code, but their linkers get confused if
9931 # the symbol is explicitly referenced. Since portable code cannot
9932 # rely on this symbol name, it's probably fine to never include it in
9933 # preloaded symbol tables.
9934 # Exclude shared library initialization/finalization symbols.
9935 extract_expsyms_cmds=
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9940 # When not using gcc, we currently assume that we are using
9941 # Microsoft Visual C++.
9942 if test "$GCC" != yes; then
9947 # we just hope/assume this is gcc and not c89 (= MSVC++)
9953 linux* | k*bsd*-gnu)
9959 if test "$with_gnu_ld" = yes; then
9960 # If archive_cmds runs LD, not CC, wlarc should be empty
9963 # Set some defaults for GNU ld with shared library support. These
9964 # are reset later if shared libraries are not supported. Putting them
9965 # here allows them to be overridden if necessary.
9966 runpath_var=LD_RUN_PATH
9967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 export_dynamic_flag_spec='${wl}--export-dynamic'
9969 # ancient GNU ld didn't support --whole-archive et. al.
9970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9973 whole_archive_flag_spec=
9975 supports_anon_versioning=no
9976 case `$LD -v 2>&1` in
9977 *GNU\ gold*) supports_anon_versioning=yes ;;
9978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9981 *\ 2.11.*) ;; # other 2.11 versions
9982 *) supports_anon_versioning=yes ;;
9985 # See if GNU ld supports shared libraries.
9988 # On AIX/PPC, the GNU linker is very broken
9989 if test "$host_cpu" != ia64; then
9993 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9994 *** to be unable to reliably create shared libraries on AIX.
9995 *** Therefore, libtool is disabling shared libraries support. If you
9996 *** really care for shared libraries, you may want to modify your PATH
9997 *** so that a non-GNU linker is found, and then restart.
10006 # see comment about AmigaOS4 .so support
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 archive_expsym_cmds=''
10011 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)'
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_minus_L=yes
10019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020 allow_undefined_flag=unsupported
10021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10022 # support --undefined. This deserves some investigation. FIXME
10023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 cygwin* | mingw* | pw32* | cegcc*)
10030 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10031 # as there is no search path for DLLs.
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 allow_undefined_flag=unsupported
10034 always_export_symbols=no
10035 enable_shared_with_static_runtimes=yes
10036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10038 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10040 # If the export-symbols file already is a .def file (1st line
10041 # is EXPORTS), use it as is; otherwise, prepend...
10042 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10043 cp $export_symbols $output_objdir/$soname.def;
10045 echo EXPORTS > $output_objdir/$soname.def;
10046 cat $export_symbols >> $output_objdir/$soname.def;
10048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056 hardcode_shlibpath_var=no
10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058 export_dynamic_flag_spec='${wl}-E'
10059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10060 # Instead, shared libraries are loaded at an image base (0x10000000 by
10061 # default) and relocated if they conflict, which is a slow very memory
10062 # consuming and fragmenting process. To avoid this, we pick a random,
10063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10066 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'
10069 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10071 if test "$host_os" = linux-dietlibc; then
10072 case $cc_basename in
10073 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10076 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10077 && test "$tmp_diet" = no
10080 tmp_sharedflag='-shared'
10081 case $cc_basename,$host_cpu in
10082 pgcc*) # Portland Group C compiler
10083 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'
10084 tmp_addflag=' $pic_flag'
10086 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10087 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'
10088 tmp_addflag=' $pic_flag -Mnomain' ;;
10089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10090 tmp_addflag=' -i_dynamic' ;;
10091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10092 tmp_addflag=' -i_dynamic -nofor_main' ;;
10093 ifc* | ifort*) # Intel Fortran compiler
10094 tmp_addflag=' -nofor_main' ;;
10095 lf95*) # Lahey Fortran 8.1
10096 whole_archive_flag_spec=
10097 tmp_sharedflag='--shared' ;;
10098 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10099 tmp_sharedflag='-qmkshrobj'
10102 case `$CC -V 2>&1 | sed 5q` in
10103 *Sun\ C*) # Sun C 5.9
10104 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'
10105 compiler_needs_object=yes
10106 tmp_sharedflag='-G' ;;
10107 *Sun\ F*) # Sun Fortran 8.3
10108 tmp_sharedflag='-G' ;;
10110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 if test "x$supports_anon_versioning" = xyes; then
10113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10115 echo "local: *; };" >> $output_objdir/$libname.ver~
10116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10119 case $cc_basename in
10121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10123 hardcode_libdir_flag_spec=
10124 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10125 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10126 if test "x$supports_anon_versioning" = xyes; then
10127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10129 echo "local: *; };" >> $output_objdir/$libname.ver~
10130 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10139 netbsd* | netbsdelf*-gnu)
10140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10150 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10154 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10155 *** create shared libraries on Solaris systems. Therefore, libtool
10156 *** is disabling shared libraries support. We urge you to upgrade GNU
10157 *** binutils to release 2.9.1 or newer. Another option is to modify
10158 *** your PATH or compiler configuration so that the native linker is
10159 *** used, and then restart.
10162 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10171 case `$LD -v 2>&1` in
10172 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10176 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10177 *** reliably create shared libraries on SCO systems. Therefore, libtool
10178 *** is disabling shared libraries support. We urge you to upgrade GNU
10179 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10180 *** your PATH or compiler configuration so that the native linker is
10181 *** used, and then restart.
10186 # For security reasons, it is highly recommended that you always
10187 # use absolute paths for naming shared libraries, and exclude the
10188 # DT_RUNPATH tag from executables and libraries. But doing so
10189 # requires that you compile everything twice, which is a pain.
10190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=yes
10205 hardcode_shlibpath_var=no
10209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10218 if test "$ld_shlibs" = no; then
10220 hardcode_libdir_flag_spec=
10221 export_dynamic_flag_spec=
10222 whole_archive_flag_spec=
10225 # PORTME fill in a description of your system's linker (not GNU ld)
10228 allow_undefined_flag=unsupported
10229 always_export_symbols=yes
10230 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'
10231 # Note: this linker hardcodes the directories in LIBPATH if there
10232 # are no directories specified by -L.
10233 hardcode_minus_L=yes
10234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10235 # Neither direct hardcoding nor static linking is supported with a
10237 hardcode_direct=unsupported
10242 if test "$host_cpu" = ia64; then
10243 # On IA64, the linker does run time linking by default, so we don't
10244 # have to do anything special.
10245 aix_use_runtimelinking=no
10246 exp_sym_flag='-Bexport'
10249 # If we're using GNU nm, then we don't want the "-C" option.
10250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10251 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10252 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'
10254 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'
10256 aix_use_runtimelinking=no
10258 # Test if we are trying to use run time linking or normal
10259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10260 # need to do runtime linking.
10261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10262 for ld_flag in $LDFLAGS; do
10263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10264 aix_use_runtimelinking=yes
10271 exp_sym_flag='-bexport'
10272 no_entry_flag='-bnoentry'
10275 # When large executables or shared objects are built, AIX ld can
10276 # have problems creating the table of contents. If linking a library
10277 # or program results in "error TOC overflow" add -mminimal-toc to
10278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10282 hardcode_direct=yes
10283 hardcode_direct_absolute=yes
10284 hardcode_libdir_separator=':'
10285 link_all_deplibs=yes
10286 file_list_spec='${wl}-f,'
10288 if test "$GCC" = yes; then
10289 case $host_os in aix4.[012]|aix4.[012].*)
10290 # We only want to do this on AIX 4.2 and lower, the check
10291 # below for broken collect2 doesn't work under 4.3+
10292 collect2name=`${CC} -print-prog-name=collect2`
10293 if test -f "$collect2name" &&
10294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10296 # We have reworked collect2
10299 # We have old collect2
10300 hardcode_direct=unsupported
10301 # It fails to find uninstalled libraries when the uninstalled
10302 # path is not listed in the libpath. Setting hardcode_minus_L
10303 # to unsupported forces relinking
10304 hardcode_minus_L=yes
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_libdir_separator=
10310 shared_flag='-shared'
10311 if test "$aix_use_runtimelinking" = yes; then
10312 shared_flag="$shared_flag "'${wl}-G'
10314 link_all_deplibs=no
10317 if test "$host_cpu" = ia64; then
10318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10319 # chokes on -Wl,-G. The following line is correct:
10322 if test "$aix_use_runtimelinking" = yes; then
10323 shared_flag='${wl}-G'
10325 shared_flag='${wl}-bM:SRE'
10330 export_dynamic_flag_spec='${wl}-bexpall'
10331 # It seems that -bexpall does not export symbols beginning with
10332 # underscore (_), so it is better to generate a list of symbols to export.
10333 always_export_symbols=yes
10334 if test "$aix_use_runtimelinking" = yes; then
10335 # Warning - without using the other runtime loading flags (-brtl),
10336 # -berok will link without error, but may produce a broken library.
10337 allow_undefined_flag='-berok'
10338 # Determine the default libpath from the value encoded in an
10339 # empty executable.
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10351 if ac_fn_c_try_link "$LINENO"; then :
10353 lt_aix_libpath_sed='
10354 /Import File Strings/,/^$/ {
10360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10361 # Check for a 64-bit object if we didn't find anything.
10362 if test -z "$aix_libpath"; then
10363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10371 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"
10373 if test "$host_cpu" = ia64; then
10374 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10375 allow_undefined_flag="-z nodefs"
10376 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"
10378 # Determine the default libpath from the value encoded in an
10379 # empty executable.
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10391 if ac_fn_c_try_link "$LINENO"; then :
10393 lt_aix_libpath_sed='
10394 /Import File Strings/,/^$/ {
10400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10401 # Check for a 64-bit object if we didn't find anything.
10402 if test -z "$aix_libpath"; then
10403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10411 # Warning - without using the other run time loading flags,
10412 # -berok will link without error, but may produce a broken library.
10413 no_undefined_flag=' ${wl}-bernotok'
10414 allow_undefined_flag=' ${wl}-berok'
10415 # Exported symbols can be pulled into shared objects from archives
10416 whole_archive_flag_spec='$convenience'
10417 archive_cmds_need_lc=yes
10418 # This is similar to how AIX traditionally builds its shared libraries.
10419 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'
10427 # see comment about AmigaOS4 .so support
10428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 archive_expsym_cmds=''
10432 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)'
10433 hardcode_libdir_flag_spec='-L$libdir'
10434 hardcode_minus_L=yes
10440 export_dynamic_flag_spec=-rdynamic
10443 cygwin* | mingw* | pw32* | cegcc*)
10444 # When not using gcc, we currently assume that we are using
10445 # Microsoft Visual C++.
10446 # hardcode_libdir_flag_spec is actually meaningless, as there is
10447 # no search path for DLLs.
10448 hardcode_libdir_flag_spec=' '
10449 allow_undefined_flag=unsupported
10450 # Tell ltmain to make .lib files, not .a files.
10452 # Tell ltmain to make .dll files, not .so files.
10454 # FIXME: Setting linknames here is a bad hack.
10455 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10456 # The linker will automatically build a .lib file if we build a DLL.
10457 old_archive_from_new_cmds='true'
10458 # FIXME: Should let the user specify the lib program.
10459 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10460 fix_srcfile_path='`cygpath -w "$srcfile"`'
10461 enable_shared_with_static_runtimes=yes
10464 darwin* | rhapsody*)
10467 archive_cmds_need_lc=no
10469 hardcode_automatic=yes
10470 hardcode_shlibpath_var=unsupported
10471 whole_archive_flag_spec=''
10472 link_all_deplibs=yes
10473 allow_undefined_flag="$_lt_dar_allow_undefined"
10474 case $cc_basename in
10475 ifort*) _lt_dar_can_shared=yes ;;
10476 *) _lt_dar_can_shared=$GCC ;;
10478 if test "$_lt_dar_can_shared" = "yes"; then
10479 output_verbose_link_cmd=echo
10480 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10481 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10482 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}"
10483 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}"
10492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493 hardcode_libdir_flag_spec='-L$libdir'
10494 hardcode_shlibpath_var=no
10501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10502 # support. Future versions do this automatically, but an explicit c++rt0.o
10503 # does not break anything, and helps significantly (at the cost of a little
10506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10507 hardcode_libdir_flag_spec='-R$libdir'
10508 hardcode_direct=yes
10509 hardcode_shlibpath_var=no
10512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10515 hardcode_direct=yes
10516 hardcode_minus_L=yes
10517 hardcode_shlibpath_var=no
10520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10521 freebsd* | dragonfly*)
10522 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10523 hardcode_libdir_flag_spec='-R$libdir'
10524 hardcode_direct=yes
10525 hardcode_shlibpath_var=no
10529 if test "$GCC" = yes; then
10530 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'
10532 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'
10534 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10535 hardcode_libdir_separator=:
10536 hardcode_direct=yes
10538 # hardcode_minus_L: Not really in the search PATH,
10539 # but as the default location of the library.
10540 hardcode_minus_L=yes
10541 export_dynamic_flag_spec='${wl}-E'
10545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10546 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10548 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10550 if test "$with_gnu_ld" = no; then
10551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10552 hardcode_libdir_flag_spec_ld='+b $libdir'
10553 hardcode_libdir_separator=:
10554 hardcode_direct=yes
10555 hardcode_direct_absolute=yes
10556 export_dynamic_flag_spec='${wl}-E'
10557 # hardcode_minus_L: Not really in the search PATH,
10558 # but as the default location of the library.
10559 hardcode_minus_L=yes
10564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10567 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10573 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10589 if test "$with_gnu_ld" = no; then
10590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10591 hardcode_libdir_separator=:
10596 hardcode_shlibpath_var=no
10599 hardcode_direct=yes
10600 hardcode_direct_absolute=yes
10601 export_dynamic_flag_spec='${wl}-E'
10603 # hardcode_minus_L: Not really in the search PATH,
10604 # but as the default location of the library.
10605 hardcode_minus_L=yes
10611 irix5* | irix6* | nonstopux*)
10612 if test "$GCC" = yes; then
10613 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'
10614 # Try to use the -exported_symbol ld option, if it does not
10615 # work, assume that -exports_file does not work either and
10616 # implicitly export all symbols.
10617 save_LDFLAGS="$LDFLAGS"
10618 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 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'
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LDFLAGS="$save_LDFLAGS"
10631 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'
10632 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'
10634 archive_cmds_need_lc='no'
10635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636 hardcode_libdir_separator=:
10638 link_all_deplibs=yes
10641 netbsd* | netbsdelf*-gnu)
10642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10647 hardcode_libdir_flag_spec='-R$libdir'
10648 hardcode_direct=yes
10649 hardcode_shlibpath_var=no
10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_direct=yes
10655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10656 hardcode_libdir_separator=:
10657 hardcode_shlibpath_var=no
10664 if test -f /usr/libexec/ld.so; then
10665 hardcode_direct=yes
10666 hardcode_shlibpath_var=no
10667 hardcode_direct_absolute=yes
10668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10672 export_dynamic_flag_spec='${wl}-E'
10675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_libdir_flag_spec='-R$libdir'
10680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_minus_L=yes
10693 allow_undefined_flag=unsupported
10694 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'
10695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10699 if test "$GCC" = yes; then
10700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10701 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'
10703 allow_undefined_flag=' -expect_unresolved \*'
10704 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'
10706 archive_cmds_need_lc='no'
10707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10708 hardcode_libdir_separator=:
10711 osf4* | osf5*) # as osf3* with the addition of -msym flag
10712 if test "$GCC" = yes; then
10713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10714 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'
10715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717 allow_undefined_flag=' -expect_unresolved \*'
10718 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'
10719 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~
10720 $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'
10722 # Both c and cxx compiler support -rpath directly
10723 hardcode_libdir_flag_spec='-rpath $libdir'
10725 archive_cmds_need_lc='no'
10726 hardcode_libdir_separator=:
10730 no_undefined_flag=' -z defs'
10731 if test "$GCC" = yes; then
10733 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10735 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10737 case `$CC -V 2>&1` in
10740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10746 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10752 hardcode_libdir_flag_spec='-R$libdir'
10753 hardcode_shlibpath_var=no
10755 solaris2.[0-5] | solaris2.[0-5].*) ;;
10757 # The compiler driver will combine and reorder linker options,
10758 # but understands `-z linker_flag'. GCC discards it without `$wl',
10759 # but is careful enough not to reorder.
10760 # Supported since Solaris 2.6 (maybe 2.5.1?)
10761 if test "$GCC" = yes; then
10762 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10768 link_all_deplibs=yes
10772 if test "x$host_vendor" = xsequent; then
10773 # Use $CC to link under sequent, because it throws in some extra .o
10774 # files that make .init and .fini sections work.
10775 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_direct=yes
10781 hardcode_minus_L=yes
10782 hardcode_shlibpath_var=no
10786 case $host_vendor in
10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_direct=yes # is this really true???
10792 ## LD is ld it makes a PLAMLIB
10793 ## CC just makes a GrossModule.
10794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10795 reload_cmds='$CC -r -o $output$reload_objs'
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10803 runpath_var='LD_RUN_PATH'
10804 hardcode_shlibpath_var=no
10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10809 hardcode_shlibpath_var=no
10810 export_dynamic_flag_spec='-Bexport'
10814 if test -d /usr/nec; then
10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10816 hardcode_shlibpath_var=no
10817 runpath_var=LD_RUN_PATH
10818 hardcode_runpath_var=yes
10823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10824 no_undefined_flag='${wl}-z,text'
10825 archive_cmds_need_lc=no
10826 hardcode_shlibpath_var=no
10827 runpath_var='LD_RUN_PATH'
10829 if test "$GCC" = yes; then
10830 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10838 sysv5* | sco3.2v5* | sco5v6*)
10839 # Note: We can NOT use -z defs as we might desire, because we do not
10840 # link with -lc, and that would cause any symbols used from libc to
10841 # always be unresolved, which means just about no library would
10842 # ever link correctly. If we're not using GNU ld we use -z text
10843 # though, which does catch some bad symbols but isn't as heavy-handed
10845 no_undefined_flag='${wl}-z,text'
10846 allow_undefined_flag='${wl}-z,nodefs'
10847 archive_cmds_need_lc=no
10848 hardcode_shlibpath_var=no
10849 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10850 hardcode_libdir_separator=':'
10851 link_all_deplibs=yes
10852 export_dynamic_flag_spec='${wl}-Bexport'
10853 runpath_var='LD_RUN_PATH'
10855 if test "$GCC" = yes; then
10856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_shlibpath_var=no
10875 if test x$host_vendor = xsni; then
10877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10878 export_dynamic_flag_spec='${wl}-Blargedynsym'
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10885 $as_echo "$ld_shlibs" >&6; }
10886 test "$ld_shlibs" = no && can_build_shared=no
10888 with_gnu_ld=$with_gnu_ld
10905 # Do we need to explicitly link libc?
10907 case "x$archive_cmds_need_lc" in
10909 # Assume -lc should be added
10910 archive_cmds_need_lc=yes
10912 if test "$enable_shared" = yes && test "$GCC" = yes; then
10913 case $archive_cmds in
10915 # FIXME: we may have to deal with multi-command sequences.
10918 # Test whether the compiler implicitly links with -lc since on some
10919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10920 # to ld, don't add -lc before -lgcc.
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10927 (eval $ac_compile) 2>&5
10929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930 test $ac_status = 0; } 2>conftest.err; then
10933 libobjs=conftest.$ac_objext
10935 wl=$lt_prog_compiler_wl
10936 pic_flag=$lt_prog_compiler_pic
10942 lt_save_allow_undefined_flag=$allow_undefined_flag
10943 allow_undefined_flag=
10944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948 test $ac_status = 0; }
10950 archive_cmds_need_lc=no
10952 archive_cmds_need_lc=yes
10954 allow_undefined_flag=$lt_save_allow_undefined_flag
10956 cat conftest.err 1>&5
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10960 $as_echo "$archive_cmds_need_lc" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11126 if test "$GCC" = yes; then
11128 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11129 *) lt_awk_arg="/^libraries:/" ;;
11131 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11132 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11133 # if the path contains ";" then we assume it to be the separator
11134 # otherwise default to the standard path separator (i.e. ":") - it is
11135 # assumed that no part of a normal pathname contains ";" but that should
11136 # okay in the real world where ";" in dirpaths is itself problematic.
11137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11141 # Ok, now we have the path, separated by spaces, we can step through it
11142 # and add multilib dir if necessary.
11143 lt_tmp_lt_search_path_spec=
11144 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11145 for lt_sys_path in $lt_search_path_spec; do
11146 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11149 test -d "$lt_sys_path" && \
11150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11153 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11154 BEGIN {RS=" "; FS="/|\n";} {
11157 for (lt_i = NF; lt_i > 0; lt_i--) {
11158 if ($lt_i != "" && $lt_i != ".") {
11159 if ($lt_i == "..") {
11162 if (lt_count == 0) {
11163 lt_foo="/" $lt_i lt_foo;
11170 if (lt_foo != "") { lt_freq[lt_foo]++; }
11171 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11173 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11177 library_names_spec=
11178 libname_spec='lib$name'
11182 postuninstall_cmds=
11186 shlibpath_overrides_runpath=unknown
11188 dynamic_linker="$host_os ld.so"
11189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11190 need_lib_prefix=unknown
11191 hardcode_into_libs=no
11193 # when you set need_version to no, make sure it does not cause -set_version
11194 # flags to be left without arguments
11195 need_version=unknown
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11201 shlibpath_var=LIBPATH
11203 # AIX 3 has no versioning support, so we append a major version to the name.
11204 soname_spec='${libname}${release}${shared_ext}$major'
11211 hardcode_into_libs=yes
11212 if test "$host_cpu" = ia64; then
11213 # AIX 5 supports IA64
11214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11215 shlibpath_var=LD_LIBRARY_PATH
11217 # With GCC up to 2.95.x, collect2 would create an import file
11218 # for dependence libraries. The import file would start with
11219 # the line `#! .'. This would cause the generated library to
11220 # depend on `.', always an invalid library. This was fixed in
11221 # development snapshots of GCC prior to 3.0.
11223 aix4 | aix4.[01] | aix4.[01].*)
11224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11226 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11229 can_build_shared=no
11233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11234 # soname into executable. Probably we can add versioning support to
11235 # collect2, so additional links can be useful in future.
11236 if test "$aix_use_runtimelinking" = yes; then
11237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11238 # instead of lib<name>.a to let people know that these are not
11239 # typical AIX shared libraries.
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 # We preserve .a as extension for shared libraries through AIX4.2
11243 # and later when we are not doing run time linking.
11244 library_names_spec='${libname}${release}.a $libname.a'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LIBPATH
11254 # Since July 2007 AmigaOS4 officially supports .so libraries.
11255 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 library_names_spec='$libname.ixlibrary $libname.a'
11260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11261 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'
11267 library_names_spec='${libname}${shared_ext}'
11268 dynamic_linker="$host_os ld.so"
11269 shlibpath_var=LIBRARY_PATH
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11281 # the default ld.so.conf also contains /usr/contrib/lib and
11282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11283 # libtool to hard-code these into programs
11286 cygwin* | mingw* | pw32* | cegcc*)
11287 version_type=windows
11292 case $GCC,$host_os in
11293 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11294 library_names_spec='$libname.dll.a'
11295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11296 postinstall_cmds='base_file=`basename \${file}`~
11297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11298 dldir=$destdir/`dirname \$dlpath`~
11299 test -d \$dldir || mkdir -p \$dldir~
11300 $install_prog $dir/$dlname \$dldir/$dlname~
11301 chmod a+x \$dldir/$dlname~
11302 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11303 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11306 dlpath=$dir/\$dldll~
11308 shlibpath_overrides_runpath=yes
11312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11317 # MinGW DLLs use traditional 'lib' prefix
11318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11319 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11320 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11321 # It is most probably a Windows format PATH printed by
11322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11323 # path with ; separators, and with drive letters. We can handle the
11324 # drive letters (cygwin fileutils understands them), so leave them,
11325 # especially as we might pass files found there to a mingw objdump,
11326 # which wouldn't understand a cygwinified path. Ahh.
11327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11333 # pw32 DLLs use 'pw' prefix rather than 'lib'
11334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11343 dynamic_linker='Win32 ld.exe'
11344 # FIXME: first we should search . and the directory the executable is in
11348 darwin* | rhapsody*)
11349 dynamic_linker="$host_os dyld"
11350 version_type=darwin
11353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11354 soname_spec='${libname}${release}${major}$shared_ext'
11355 shlibpath_overrides_runpath=yes
11356 shlibpath_var=DYLD_LIBRARY_PATH
11357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11376 freebsd* | dragonfly*)
11377 # DragonFly does not have aout. When/if they implement a new
11378 # versioning mechanism, adjust this.
11379 if test -x /usr/bin/objformat; then
11380 objformat=`/usr/bin/objformat`
11383 freebsd[123]*) objformat=aout ;;
11384 *) objformat=elf ;;
11387 version_type=freebsd-$objformat
11388 case $version_type in
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11399 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11404 freebsd3.[01]* | freebsdelf3.[01]*)
11405 shlibpath_overrides_runpath=yes
11406 hardcode_into_libs=yes
11408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11410 shlibpath_overrides_runpath=no
11411 hardcode_into_libs=yes
11413 *) # from 4.6 on, and DragonFly
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 hardcode_into_libs=yes
11430 hpux9* | hpux10* | hpux11*)
11431 # Give a soname corresponding to the major version so that dld.sl refuses to
11432 # link against other versions.
11439 hardcode_into_libs=yes
11440 dynamic_linker="$host_os dld.so"
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 if test "X$HPUX_IA64_MODE" = X32; then
11446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11454 hardcode_into_libs=yes
11455 dynamic_linker="$host_os dld.sl"
11456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11465 dynamic_linker="$host_os dld.sl"
11466 shlibpath_var=SHLIB_PATH
11467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11473 postinstall_cmds='chmod 555 $lib'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=no
11485 hardcode_into_libs=yes
11488 irix5* | irix6* | nonstopux*)
11490 nonstopux*) version_type=nonstopux ;;
11492 if test "$lt_cv_prog_gnu_ld" = yes; then
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11503 irix5* | nonstopux*)
11504 libsuff= shlibsuff=
11507 case $LD in # libtool.m4 will add one of these switches to LD
11508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11509 libsuff= shlibsuff= libmagic=32-bit;;
11510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11511 libsuff=32 shlibsuff=N32 libmagic=N32;;
11512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11514 *) libsuff= shlibsuff= libmagic=never-match;;
11518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11519 shlibpath_overrides_runpath=no
11520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11522 hardcode_into_libs=yes
11525 # No shared lib support for Linux oldld, aout, or coff.
11526 linux*oldld* | linux*aout* | linux*coff*)
11530 # This must be Linux ELF.
11531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=no
11540 # Some binutils ld are patched to set DT_RUNPATH
11541 save_LDFLAGS=$LDFLAGS
11542 save_libdir=$libdir
11543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11556 if ac_fn_c_try_link "$LINENO"; then :
11557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11558 shlibpath_overrides_runpath=yes
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 LDFLAGS=$save_LDFLAGS
11564 libdir=$save_libdir
11566 # This implies no fast_install, which is unacceptable.
11567 # Some rework will be needed to allow for fast_install
11568 # before this can be enabled.
11569 hardcode_into_libs=yes
11571 # Append ld.so.conf contents to the search path
11572 if test -f /etc/ld.so.conf; then
11573 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' ' '`
11574 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11577 # We used to test for /lib/ld.so.1 and disable shared libraries on
11578 # powerpc, because MkLinux only supported shared libraries with the
11579 # GNU dynamic linker. Since this was broken with cross compilers,
11580 # most powerpc-linux boxes support dynamic linking these days and
11581 # people can always --disable-shared, the test was removed, and we
11582 # assume the GNU/Linux dynamic linker is in use.
11583 dynamic_linker='GNU/Linux ld.so'
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=no
11594 hardcode_into_libs=yes
11595 dynamic_linker='NetBSD ld.elf_so'
11602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605 dynamic_linker='NetBSD (a.out) ld.so'
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 dynamic_linker='NetBSD ld.elf_so'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes
11613 hardcode_into_libs=yes
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=no
11631 hardcode_into_libs=yes
11632 dynamic_linker='ldqnx.so'
11637 sys_lib_dlsearch_path_spec="/usr/lib"
11639 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11641 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11642 *) need_version=no ;;
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649 openbsd2.[89] | openbsd2.[89].*)
11650 shlibpath_overrides_runpath=no
11653 shlibpath_overrides_runpath=yes
11657 shlibpath_overrides_runpath=yes
11662 libname_spec='$name'
11665 library_names_spec='$libname${shared_ext} $libname.a'
11666 dynamic_linker='OS/2 ld.exe'
11667 shlibpath_var=LIBPATH
11670 osf3* | osf4* | osf5*)
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes
11693 hardcode_into_libs=yes
11694 # ldd complains unless libraries are executable
11695 postinstall_cmds='chmod +x $lib'
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=yes
11704 if test "$with_gnu_ld" = yes; then
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 case $host_vendor in
11717 shlibpath_overrides_runpath=no
11719 runpath_var=LD_RUN_PATH
11727 shlibpath_overrides_runpath=no
11728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734 if test -d /usr/nec ;then
11736 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11737 soname_spec='$libname${shared_ext}.$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11743 version_type=freebsd-elf
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=yes
11750 hardcode_into_libs=yes
11751 if test "$with_gnu_ld" = yes; then
11752 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11761 sys_lib_dlsearch_path_spec='/usr/lib'
11765 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=no
11772 hardcode_into_libs=yes
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11787 $as_echo "$dynamic_linker" >&6; }
11788 test "$dynamic_linker" = no && can_build_shared=no
11790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11791 if test "$GCC" = yes; then
11792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11795 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11798 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11799 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11889 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11891 if test -n "$hardcode_libdir_flag_spec" ||
11892 test -n "$runpath_var" ||
11893 test "X$hardcode_automatic" = "Xyes" ; then
11895 # We can hardcode non-existent directories.
11896 if test "$hardcode_direct" != no &&
11897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11898 # have to relink, otherwise we might link with an installed library
11899 # when we should be linking with a yet-to-be-installed one
11900 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11901 test "$hardcode_minus_L" != no; then
11902 # Linking always hardcodes the temporary library directory.
11903 hardcode_action=relink
11905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11906 hardcode_action=immediate
11909 # We cannot hardcode anything, or else we can only hardcode existing
11911 hardcode_action=unsupported
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11914 $as_echo "$hardcode_action" >&6; }
11916 if test "$hardcode_action" = relink ||
11917 test "$inherit_rpath" = yes; then
11918 # Fast installation is not supported
11919 enable_fast_install=no
11920 elif test "$shlibpath_overrides_runpath" = yes ||
11921 test "$enable_shared" = no; then
11922 # Fast installation is not necessary
11923 enable_fast_install=needless
11931 if test "x$enable_dlopen" != xyes; then
11932 enable_dlopen=unknown
11933 enable_dlopen_self=unknown
11934 enable_dlopen_self_static=unknown
11941 lt_cv_dlopen="load_add_on"
11943 lt_cv_dlopen_self=yes
11946 mingw* | pw32* | cegcc*)
11947 lt_cv_dlopen="LoadLibrary"
11952 lt_cv_dlopen="dlopen"
11957 # if libdl is installed we need to link against it
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11960 if ${ac_cv_lib_dl_dlopen+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 ac_check_lib_save_LIBS=$LIBS
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_lib_dl_dlopen=yes
11986 ac_cv_lib_dl_dlopen=no
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11998 lt_cv_dlopen="dyld"
12000 lt_cv_dlopen_self=yes
12007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12008 if test "x$ac_cv_func_shl_load" = xyes; then :
12009 lt_cv_dlopen="shl_load"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12012 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12013 if ${ac_cv_lib_dld_shl_load+:} false; then :
12014 $as_echo_n "(cached) " >&6
12016 ac_check_lib_save_LIBS=$LIBS
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12031 return shl_load ();
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_dld_shl_load=yes
12039 ac_cv_lib_dld_shl_load=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12046 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12047 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12050 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12051 if test "x$ac_cv_func_dlopen" = xyes; then :
12052 lt_cv_dlopen="dlopen"
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12056 if ${ac_cv_lib_dl_dlopen+:} false; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS=$LIBS
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_dl_dlopen=yes
12082 ac_cv_lib_dl_dlopen=no
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12089 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12090 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12094 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12095 if ${ac_cv_lib_svld_dlopen+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lsvld $LIBS"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_lib_svld_dlopen=yes
12121 ac_cv_lib_svld_dlopen=no
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12128 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12129 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12133 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12134 if ${ac_cv_lib_dld_dld_link+:} false; then :
12135 $as_echo_n "(cached) " >&6
12137 ac_check_lib_save_LIBS=$LIBS
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12152 return dld_link ();
12157 if ac_fn_c_try_link "$LINENO"; then :
12158 ac_cv_lib_dld_dld_link=yes
12160 ac_cv_lib_dld_dld_link=no
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12167 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12168 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12190 if test "x$lt_cv_dlopen" != xno; then
12196 case $lt_cv_dlopen in
12198 save_CPPFLAGS="$CPPFLAGS"
12199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12201 save_LDFLAGS="$LDFLAGS"
12202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12205 LIBS="$lt_cv_dlopen_libs $LIBS"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12208 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12209 if ${lt_cv_dlopen_self+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 if test "$cross_compiling" = yes; then :
12213 lt_cv_dlopen_self=cross
12215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12216 lt_status=$lt_dlunknown
12217 cat > conftest.$ac_ext <<_LT_EOF
12218 #line 12218 "configure"
12219 #include "confdefs.h"
12228 # define LT_DLGLOBAL RTLD_GLOBAL
12231 # define LT_DLGLOBAL DL_GLOBAL
12233 # define LT_DLGLOBAL 0
12237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12238 find out it does not work in some platform. */
12239 #ifndef LT_DLLAZY_OR_NOW
12241 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12244 # define LT_DLLAZY_OR_NOW DL_LAZY
12247 # define LT_DLLAZY_OR_NOW RTLD_NOW
12250 # define LT_DLLAZY_OR_NOW DL_NOW
12252 # define LT_DLLAZY_OR_NOW 0
12259 void fnord() { int i=42;}
12262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12263 int status = $lt_dlunknown;
12267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12269 /* dlclose (self); */
12277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12278 (eval $ac_link) 2>&5
12280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12282 (./conftest; exit; ) >&5 2>/dev/null
12284 case x$lt_status in
12285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12287 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12290 # compilation failed
12291 lt_cv_dlopen_self=no
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12299 $as_echo "$lt_cv_dlopen_self" >&6; }
12301 if test "x$lt_cv_dlopen_self" = xyes; then
12302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12304 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12305 if ${lt_cv_dlopen_self_static+:} false; then :
12306 $as_echo_n "(cached) " >&6
12308 if test "$cross_compiling" = yes; then :
12309 lt_cv_dlopen_self_static=cross
12311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312 lt_status=$lt_dlunknown
12313 cat > conftest.$ac_ext <<_LT_EOF
12314 #line 12314 "configure"
12315 #include "confdefs.h"
12324 # define LT_DLGLOBAL RTLD_GLOBAL
12327 # define LT_DLGLOBAL DL_GLOBAL
12329 # define LT_DLGLOBAL 0
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334 find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12337 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12340 # define LT_DLLAZY_OR_NOW DL_LAZY
12343 # define LT_DLLAZY_OR_NOW RTLD_NOW
12346 # define LT_DLLAZY_OR_NOW DL_NOW
12348 # define LT_DLLAZY_OR_NOW 0
12355 void fnord() { int i=42;}
12358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359 int status = $lt_dlunknown;
12363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365 /* dlclose (self); */
12373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12374 (eval $ac_link) 2>&5
12376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12378 (./conftest; exit; ) >&5 2>/dev/null
12380 case x$lt_status in
12381 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12382 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12383 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12386 # compilation failed
12387 lt_cv_dlopen_self_static=no
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12395 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12398 CPPFLAGS="$save_CPPFLAGS"
12399 LDFLAGS="$save_LDFLAGS"
12404 case $lt_cv_dlopen_self in
12405 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12406 *) enable_dlopen_self=unknown ;;
12409 case $lt_cv_dlopen_self_static in
12410 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12411 *) enable_dlopen_self_static=unknown ;;
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12434 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12435 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12436 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12437 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12441 # FIXME - insert some real tests, host_os isn't really good enough
12444 if test -n "$STRIP" ; then
12445 striplib="$STRIP -x"
12446 old_striplib="$STRIP -S"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12472 # Report which library types will actually be built
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12474 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12476 $as_echo "$can_build_shared" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12479 $as_echo_n "checking whether to build shared libraries... " >&6; }
12480 test "$can_build_shared" = "no" && enable_shared=no
12482 # On AIX, shared libraries and static libraries use the same namespace, and
12483 # are all built from PIC.
12486 test "$enable_shared" = yes && enable_static=no
12487 if test -n "$RANLIB"; then
12488 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12489 postinstall_cmds='$RANLIB $lib'
12494 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12495 test "$enable_shared" = yes && enable_static=no
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12500 $as_echo "$enable_shared" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12503 $as_echo_n "checking whether to build static libraries... " >&6; }
12504 # Make sure either enable_shared or enable_static is yes.
12505 test "$enable_shared" = yes || enable_static=yes
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12507 $as_echo "$enable_static" >&6; }
12514 ac_cpp='$CPP $CPPFLAGS'
12515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523 ac_cpp='$CXXCPP $CPPFLAGS'
12524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12528 archive_cmds_need_lc_CXX=no
12529 allow_undefined_flag_CXX=
12530 always_export_symbols_CXX=no
12531 archive_expsym_cmds_CXX=
12532 compiler_needs_object_CXX=no
12533 export_dynamic_flag_spec_CXX=
12534 hardcode_direct_CXX=no
12535 hardcode_direct_absolute_CXX=no
12536 hardcode_libdir_flag_spec_CXX=
12537 hardcode_libdir_flag_spec_ld_CXX=
12538 hardcode_libdir_separator_CXX=
12539 hardcode_minus_L_CXX=no
12540 hardcode_shlibpath_var_CXX=unsupported
12541 hardcode_automatic_CXX=no
12542 inherit_rpath_CXX=no
12544 module_expsym_cmds_CXX=
12545 link_all_deplibs_CXX=unknown
12546 old_archive_cmds_CXX=$old_archive_cmds
12547 no_undefined_flag_CXX=
12548 whole_archive_flag_spec_CXX=
12549 enable_shared_with_static_runtimes_CXX=no
12551 # Source file extension for C++ test sources.
12554 # Object file extension for compiled C++ test sources.
12558 # No sense in running all these tests if we already determined that
12559 # the CXX compiler isn't working. Some variables (like enable_shared)
12560 # are currently assumed to apply to all compilers on this platform,
12561 # and will be corrupted by setting them based on a non-working compiler.
12562 if test "$_lt_caught_CXX_error" != yes; then
12563 # Code to be used in simple compile tests
12564 lt_simple_compile_test_code="int some_variable = 0;"
12566 # Code to be used in simple link tests
12567 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12569 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12576 # If no C compiler was specified, use CC.
12579 # If no C compiler flags were specified, use CFLAGS.
12580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12582 # Allow CC to be a program name with arguments.
12586 # save warnings/boilerplate of simple test code
12587 ac_outfile=conftest.$ac_objext
12588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12590 _lt_compiler_boilerplate=`cat conftest.err`
12593 ac_outfile=conftest.$ac_objext
12594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12596 _lt_linker_boilerplate=`cat conftest.err`
12600 # Allow CC to be a program name with arguments.
12605 lt_save_with_gnu_ld=$with_gnu_ld
12606 lt_save_path_LD=$lt_cv_path_LD
12607 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12608 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12610 $as_unset lt_cv_prog_gnu_ld
12612 if test -n "${lt_cv_path_LDCXX+set}"; then
12613 lt_cv_path_LD=$lt_cv_path_LDCXX
12615 $as_unset lt_cv_path_LD
12617 test -z "${LDCXX+set}" || LD=$LDCXX
12621 for cc_temp in $compiler""; do
12623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12632 if test -n "$compiler"; then
12633 # We don't want -fno-exception when compiling C++ code, so set the
12634 # no_builtin_flag separately
12635 if test "$GXX" = yes; then
12636 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12638 lt_prog_compiler_no_builtin_flag_CXX=
12641 if test "$GXX" = yes; then
12642 # Set up default GNU C++ configuration
12646 # Check whether --with-gnu-ld was given.
12647 if test "${with_gnu_ld+set}" = set; then :
12648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12654 if test "$GCC" = yes; then
12655 # Check if gcc -print-prog-name=ld gives a path.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12657 $as_echo_n "checking for ld used by $CC... " >&6; }
12660 # gcc leaves a trailing carriage return which upsets mingw
12661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12666 # Accept absolute paths.
12668 re_direlt='/[^/][^/]*/\.\./'
12669 # Canonicalize the pathname of ld
12670 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12671 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12672 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12674 test -z "$LD" && LD="$ac_prog"
12677 # If it fails, then pretend we aren't using GCC.
12681 # If it is relative, then search for the first ld in PATH.
12682 with_gnu_ld=unknown
12685 elif test "$with_gnu_ld" = yes; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12687 $as_echo_n "checking for GNU ld... " >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12690 $as_echo_n "checking for non-GNU ld... " >&6; }
12692 if ${lt_cv_path_LD+:} false; then :
12693 $as_echo_n "(cached) " >&6
12695 if test -z "$LD"; then
12696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12697 for ac_dir in $PATH; do
12699 test -z "$ac_dir" && ac_dir=.
12700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12701 lt_cv_path_LD="$ac_dir/$ac_prog"
12702 # Check to see if the program is GNU ld. I'd rather use --version,
12703 # but apparently some variants of GNU ld only accept -v.
12704 # Break only if it was the GNU/non-GNU ld that we prefer.
12705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12706 *GNU* | *'with BFD'*)
12707 test "$with_gnu_ld" != no && break
12710 test "$with_gnu_ld" != yes && break
12717 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12721 LD="$lt_cv_path_LD"
12722 if test -n "$LD"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12724 $as_echo "$LD" >&6; }
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12729 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12732 if ${lt_cv_prog_gnu_ld+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12736 case `$LD -v 2>&1 </dev/null` in
12737 *GNU* | *'with BFD'*)
12738 lt_cv_prog_gnu_ld=yes
12741 lt_cv_prog_gnu_ld=no
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12746 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12747 with_gnu_ld=$lt_cv_prog_gnu_ld
12755 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12756 # archiving commands below assume that GNU ld is being used.
12757 if test "$with_gnu_ld" = yes; then
12758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 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'
12761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12764 # If archive_cmds runs LD, not CC, wlarc should be empty
12765 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12766 # investigate it a little bit more. (MM)
12769 # ancient GNU ld didn't support --whole-archive et. al.
12770 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12771 $GREP 'no-whole-archive' > /dev/null; then
12772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12774 whole_archive_flag_spec_CXX=
12780 # A generic and very simple default shared library creation
12781 # command for GNU C++ for the case where it uses the native
12782 # linker, instead of GNU ld. If possible, this setting should
12783 # overridden to take advantage of the native linker features on
12784 # the platform it is being used on.
12785 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788 # Commands to make compiler produce verbose output that lists
12789 # what "hidden" libraries, object files and flags are used when
12790 # linking a shared library.
12791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12799 # PORTME: fill in a description of your system's C++ link characteristics
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12801 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12805 # FIXME: insert proper C++ library support
12809 if test "$host_cpu" = ia64; then
12810 # On IA64, the linker does run time linking by default, so we don't
12811 # have to do anything special.
12812 aix_use_runtimelinking=no
12813 exp_sym_flag='-Bexport'
12816 aix_use_runtimelinking=no
12818 # Test if we are trying to use run time linking or normal
12819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12820 # need to do runtime linking.
12821 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12822 for ld_flag in $LDFLAGS; do
12825 aix_use_runtimelinking=yes
12833 exp_sym_flag='-bexport'
12834 no_entry_flag='-bnoentry'
12837 # When large executables or shared objects are built, AIX ld can
12838 # have problems creating the table of contents. If linking a library
12839 # or program results in "error TOC overflow" add -mminimal-toc to
12840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12843 archive_cmds_CXX=''
12844 hardcode_direct_CXX=yes
12845 hardcode_direct_absolute_CXX=yes
12846 hardcode_libdir_separator_CXX=':'
12847 link_all_deplibs_CXX=yes
12848 file_list_spec_CXX='${wl}-f,'
12850 if test "$GXX" = yes; then
12851 case $host_os in aix4.[012]|aix4.[012].*)
12852 # We only want to do this on AIX 4.2 and lower, the check
12853 # below for broken collect2 doesn't work under 4.3+
12854 collect2name=`${CC} -print-prog-name=collect2`
12855 if test -f "$collect2name" &&
12856 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12858 # We have reworked collect2
12861 # We have old collect2
12862 hardcode_direct_CXX=unsupported
12863 # It fails to find uninstalled libraries when the uninstalled
12864 # path is not listed in the libpath. Setting hardcode_minus_L
12865 # to unsupported forces relinking
12866 hardcode_minus_L_CXX=yes
12867 hardcode_libdir_flag_spec_CXX='-L$libdir'
12868 hardcode_libdir_separator_CXX=
12871 shared_flag='-shared'
12872 if test "$aix_use_runtimelinking" = yes; then
12873 shared_flag="$shared_flag "'${wl}-G'
12877 if test "$host_cpu" = ia64; then
12878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12879 # chokes on -Wl,-G. The following line is correct:
12882 if test "$aix_use_runtimelinking" = yes; then
12883 shared_flag='${wl}-G'
12885 shared_flag='${wl}-bM:SRE'
12890 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12891 # It seems that -bexpall does not export symbols beginning with
12892 # underscore (_), so it is better to generate a list of symbols to
12894 always_export_symbols_CXX=yes
12895 if test "$aix_use_runtimelinking" = yes; then
12896 # Warning - without using the other runtime loading flags (-brtl),
12897 # -berok will link without error, but may produce a broken library.
12898 allow_undefined_flag_CXX='-berok'
12899 # Determine the default libpath from the value encoded in an empty
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12912 if ac_fn_cxx_try_link "$LINENO"; then :
12914 lt_aix_libpath_sed='
12915 /Import File Strings/,/^$/ {
12921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12922 # Check for a 64-bit object if we didn't find anything.
12923 if test -z "$aix_libpath"; then
12924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12933 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"
12935 if test "$host_cpu" = ia64; then
12936 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12937 allow_undefined_flag_CXX="-z nodefs"
12938 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"
12940 # Determine the default libpath from the value encoded in an
12941 # empty executable.
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12953 if ac_fn_cxx_try_link "$LINENO"; then :
12955 lt_aix_libpath_sed='
12956 /Import File Strings/,/^$/ {
12962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12963 # Check for a 64-bit object if we didn't find anything.
12964 if test -z "$aix_libpath"; then
12965 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12972 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12973 # Warning - without using the other run time loading flags,
12974 # -berok will link without error, but may produce a broken library.
12975 no_undefined_flag_CXX=' ${wl}-bernotok'
12976 allow_undefined_flag_CXX=' ${wl}-berok'
12977 # Exported symbols can be pulled into shared objects from archives
12978 whole_archive_flag_spec_CXX='$convenience'
12979 archive_cmds_need_lc_CXX=yes
12980 # This is similar to how AIX traditionally builds its shared
12982 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'
12988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12989 allow_undefined_flag_CXX=unsupported
12990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12991 # support --undefined. This deserves some investigation. FIXME
12992 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999 case $cc_basename in
13001 # FIXME: insert proper C++ library support
13007 cygwin* | mingw* | pw32* | cegcc*)
13008 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13009 # as there is no search path for DLLs.
13010 hardcode_libdir_flag_spec_CXX='-L$libdir'
13011 allow_undefined_flag_CXX=unsupported
13012 always_export_symbols_CXX=no
13013 enable_shared_with_static_runtimes_CXX=yes
13015 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13016 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'
13017 # If the export-symbols file already is a .def file (1st line
13018 # is EXPORTS), use it as is; otherwise, prepend...
13019 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13020 cp $export_symbols $output_objdir/$soname.def;
13022 echo EXPORTS > $output_objdir/$soname.def;
13023 cat $export_symbols >> $output_objdir/$soname.def;
13025 $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'
13030 darwin* | rhapsody*)
13033 archive_cmds_need_lc_CXX=no
13034 hardcode_direct_CXX=no
13035 hardcode_automatic_CXX=yes
13036 hardcode_shlibpath_var_CXX=unsupported
13037 whole_archive_flag_spec_CXX=''
13038 link_all_deplibs_CXX=yes
13039 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13040 case $cc_basename in
13041 ifort*) _lt_dar_can_shared=yes ;;
13042 *) _lt_dar_can_shared=$GCC ;;
13044 if test "$_lt_dar_can_shared" = "yes"; then
13045 output_verbose_link_cmd=echo
13046 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}"
13047 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13048 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}"
13049 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}"
13050 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13051 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}"
13052 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}"
13062 case $cc_basename in
13064 # FIXME: insert proper C++ library support
13068 # Green Hills C++ Compiler
13069 # FIXME: insert proper C++ library support
13073 # FIXME: insert proper C++ library support
13080 # C++ shared libraries reported to be fairly broken before
13086 archive_cmds_need_lc_CXX=no
13089 freebsd* | dragonfly*)
13090 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13100 hardcode_libdir_separator_CXX=:
13101 export_dynamic_flag_spec_CXX='${wl}-E'
13102 hardcode_direct_CXX=yes
13103 hardcode_minus_L_CXX=yes # Not in the search PATH,
13104 # but as the default
13105 # location of the library.
13107 case $cc_basename in
13109 # FIXME: insert proper C++ library support
13113 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'
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13118 # There doesn't appear to be a way to prevent this compiler from
13119 # explicitly linking system object files so we need to strip them
13120 # from the output so that they don't get included in the library
13122 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'
13125 if test "$GXX" = yes; then
13126 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'
13128 # FIXME: insert proper C++ library support
13136 if test $with_gnu_ld = no; then
13137 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13138 hardcode_libdir_separator_CXX=:
13144 export_dynamic_flag_spec_CXX='${wl}-E'
13150 hardcode_direct_CXX=no
13151 hardcode_shlibpath_var_CXX=no
13154 hardcode_direct_CXX=yes
13155 hardcode_direct_absolute_CXX=yes
13156 hardcode_minus_L_CXX=yes # Not in the search PATH,
13157 # but as the default
13158 # location of the library.
13162 case $cc_basename in
13164 # FIXME: insert proper C++ library support
13170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13179 # Commands to make compiler produce verbose output that lists
13180 # what "hidden" libraries, object files and flags are used when
13181 # linking a shared library.
13183 # There doesn't appear to be a way to prevent this compiler from
13184 # explicitly linking system object files so we need to strip them
13185 # from the output so that they don't get included in the library
13187 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'
13190 if test "$GXX" = yes; then
13191 if test $with_gnu_ld = no; then
13194 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200 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'
13205 # FIXME: insert proper C++ library support
13213 hardcode_direct_CXX=no
13214 hardcode_shlibpath_var_CXX=no
13215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216 export_dynamic_flag_spec_CXX='${wl}-E'
13217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13218 # Instead, shared libraries are loaded at an image base (0x10000000 by
13219 # default) and relocated if they conflict, which is a slow very memory
13220 # consuming and fragmenting process. To avoid this, we pick a random,
13221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13223 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'
13224 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'
13227 case $cc_basename in
13230 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'
13232 # Archives containing C++ object files must be created using
13233 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13234 # necessary to make sure instantiated templates are included
13236 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13239 if test "$GXX" = yes; then
13240 if test "$with_gnu_ld" = no; then
13241 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'
13243 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'
13246 link_all_deplibs_CXX=yes
13249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13250 hardcode_libdir_separator_CXX=:
13251 inherit_rpath_CXX=yes
13254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13255 case $cc_basename in
13257 # Kuck and Associates, Inc. (KAI) C++ Compiler
13259 # KCC will only create a shared library if the output file
13260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13261 # to its proper name (with version) after linking.
13262 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'
13263 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'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13268 # There doesn't appear to be a way to prevent this compiler from
13269 # explicitly linking system object files so we need to strip them
13270 # from the output so that they don't get included in the library
13272 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'
13274 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13277 # Archives containing C++ object files must be created using
13278 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13279 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13284 # version 8.0 and above of icpc choke on multiply defined symbols
13285 # if we add $predep_objects and $postdep_objects, however 7.1 and
13286 # earlier do not add the objects themselves.
13287 case `$CC -V 2>&1` in
13289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13290 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'
13292 *) # Version 8.0 or newer
13295 ia64*) tmp_idyn=' -i_dynamic';;
13297 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 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'
13301 archive_cmds_need_lc_CXX=no
13302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13304 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13307 # Portland Group C++ compiler
13309 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13310 prelink_cmds_CXX='tpldir=Template.dir~
13312 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13313 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13314 old_archive_cmds_CXX='tpldir=Template.dir~
13316 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13317 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13319 archive_cmds_CXX='tpldir=Template.dir~
13321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13322 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323 archive_expsym_cmds_CXX='tpldir=Template.dir~
13325 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13326 $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'
13328 *) # Version 6 will use weak symbols
13329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13330 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'
13334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13336 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'
13340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 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'
13343 runpath_var=LD_RUN_PATH
13344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13345 hardcode_libdir_separator_CXX=:
13347 # Commands to make compiler produce verbose output that lists
13348 # what "hidden" libraries, object files and flags are used when
13349 # linking a shared library.
13351 # There doesn't appear to be a way to prevent this compiler from
13352 # explicitly linking system object files so we need to strip them
13353 # from the output so that they don't get included in the library
13355 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'
13358 # IBM XL 8.0 on PPC, with GNU ld
13359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13361 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13362 if test "x$supports_anon_versioning" = xyes; then
13363 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13365 echo "local: *; };" >> $output_objdir/$libname.ver~
13366 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13370 case `$CC -V 2>&1 | sed 5q` in
13373 no_undefined_flag_CXX=' -zdefs'
13374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 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'
13376 hardcode_libdir_flag_spec_CXX='-R$libdir'
13377 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'
13378 compiler_needs_object_CXX=yes
13380 # Not sure whether something based on
13381 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13383 output_verbose_link_cmd='echo'
13385 # Archives containing C++ object files must be created using
13386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13387 # necessary to make sure instantiated templates are included
13389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13397 # FIXME: insert proper C++ library support
13402 # FIXME: insert proper C++ library support
13407 case $cc_basename in
13409 # FIXME: insert proper C++ library support
13413 # FIXME: insert proper C++ library support
13420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13421 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13423 hardcode_libdir_flag_spec_CXX='-R$libdir'
13424 hardcode_direct_CXX=yes
13425 hardcode_shlibpath_var_CXX=no
13427 # Workaround some broken pre-1.5 toolchains
13428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13436 # C++ shared libraries are fairly broken
13441 if test -f /usr/libexec/ld.so; then
13442 hardcode_direct_CXX=yes
13443 hardcode_shlibpath_var_CXX=no
13444 hardcode_direct_absolute_CXX=yes
13445 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13448 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13449 export_dynamic_flag_spec_CXX='${wl}-E'
13450 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13452 output_verbose_link_cmd=echo
13458 osf3* | osf4* | osf5*)
13459 case $cc_basename in
13461 # Kuck and Associates, Inc. (KAI) C++ Compiler
13463 # KCC will only create a shared library if the output file
13464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13465 # to its proper name (with version) after linking.
13466 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'
13468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13469 hardcode_libdir_separator_CXX=:
13471 # Archives containing C++ object files must be created using
13472 # the KAI C++ compiler.
13474 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13475 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13479 # Rational C++ 2.4.1
13480 # FIXME: insert proper C++ library support
13486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13487 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'
13488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491 allow_undefined_flag_CXX=' -expect_unresolved \*'
13492 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'
13493 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13494 echo "-hidden">> $lib.exp~
13495 $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~
13497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13501 hardcode_libdir_separator_CXX=:
13503 # Commands to make compiler produce verbose output that lists
13504 # what "hidden" libraries, object files and flags are used when
13505 # linking a shared library.
13507 # There doesn't appear to be a way to prevent this compiler from
13508 # explicitly linking system object files so we need to strip them
13509 # from the output so that they don't get included in the library
13511 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'
13514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13518 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'
13521 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'
13525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13526 hardcode_libdir_separator_CXX=:
13528 # Commands to make compiler produce verbose output that lists
13529 # what "hidden" libraries, object files and flags are used when
13530 # linking a shared library.
13531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13534 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13547 case $cc_basename in
13550 # FIXME: insert proper C++ library support
13555 # FIXME: insert proper C++ library support
13559 # FIXME: insert proper C++ library support
13566 case $cc_basename in
13568 # Sun C++ 4.2, 5.x and Centerline C++
13569 archive_cmds_need_lc_CXX=yes
13570 no_undefined_flag_CXX=' -zdefs'
13571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13572 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573 $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'
13575 hardcode_libdir_flag_spec_CXX='-R$libdir'
13576 hardcode_shlibpath_var_CXX=no
13578 solaris2.[0-5] | solaris2.[0-5].*) ;;
13580 # The compiler driver will combine and reorder linker options,
13581 # but understands `-z linker_flag'.
13582 # Supported since Solaris 2.6 (maybe 2.5.1?)
13583 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13586 link_all_deplibs_CXX=yes
13588 output_verbose_link_cmd='echo'
13590 # Archives containing C++ object files must be created using
13591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13592 # necessary to make sure instantiated templates are included
13594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13597 # Green Hills C++ Compiler
13598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13600 # The C++ compiler must be used to create the archive.
13601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13604 # GNU C++ compiler with Solaris linker
13605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13607 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13612 # Commands to make compiler produce verbose output that lists
13613 # what "hidden" libraries, object files and flags are used when
13614 # linking a shared library.
13615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13623 # Commands to make compiler produce verbose output that lists
13624 # what "hidden" libraries, object files and flags are used when
13625 # linking a shared library.
13626 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13631 solaris2.[0-5] | solaris2.[0-5].*) ;;
13633 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642 no_undefined_flag_CXX='${wl}-z,text'
13643 archive_cmds_need_lc_CXX=no
13644 hardcode_shlibpath_var_CXX=no
13645 runpath_var='LD_RUN_PATH'
13647 case $cc_basename in
13649 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 sysv5* | sco3.2v5* | sco5v6*)
13660 # Note: We can NOT use -z defs as we might desire, because we do not
13661 # link with -lc, and that would cause any symbols used from libc to
13662 # always be unresolved, which means just about no library would
13663 # ever link correctly. If we're not using GNU ld we use -z text
13664 # though, which does catch some bad symbols but isn't as heavy-handed
13666 no_undefined_flag_CXX='${wl}-z,text'
13667 allow_undefined_flag_CXX='${wl}-z,nodefs'
13668 archive_cmds_need_lc_CXX=no
13669 hardcode_shlibpath_var_CXX=no
13670 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13671 hardcode_libdir_separator_CXX=':'
13672 link_all_deplibs_CXX=yes
13673 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13674 runpath_var='LD_RUN_PATH'
13676 case $cc_basename in
13678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13689 case $cc_basename in
13691 # NonStop-UX NCC 3.20
13692 # FIXME: insert proper C++ library support
13696 # FIXME: insert proper C++ library support
13703 # FIXME: insert proper C++ library support
13708 # FIXME: insert proper C++ library support
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13714 $as_echo "$ld_shlibs_CXX" >&6; }
13715 test "$ld_shlibs_CXX" = no && can_build_shared=no
13721 ## There is no encapsulation within the following macros, do not change
13722 ## the running order or otherwise move them around unless you know exactly
13723 ## what you are doing...
13724 # Dependencies to place before and after the object being linked:
13725 predep_objects_CXX=
13726 postdep_objects_CXX=
13729 compiler_lib_search_path_CXX=
13731 cat > conftest.$ac_ext <<_LT_EOF
13735 Foo (void) { a = 0; }
13741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13742 (eval $ac_compile) 2>&5
13744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745 test $ac_status = 0; }; then
13746 # Parse the compiler output and extract the necessary
13747 # objects, libraries and library flags.
13749 # Sentinel used to keep track of whether or not we are before
13750 # the conftest object file.
13751 pre_test_object_deps_done=no
13753 for p in `eval "$output_verbose_link_cmd"`; do
13757 # Some compilers place space between "-{L,R}" and the path.
13758 # Remove the space.
13759 if test $p = "-L" ||
13760 test $p = "-R"; then
13767 if test "$pre_test_object_deps_done" = no; then
13770 # Internal compiler library paths should come after those
13771 # provided the user. The postdeps already come after the
13772 # user supplied libs so there is no need to process them.
13773 if test -z "$compiler_lib_search_path_CXX"; then
13774 compiler_lib_search_path_CXX="${prev}${p}"
13776 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13779 # The "-l" case would never come before the object being
13780 # linked, so don't bother handling this case.
13783 if test -z "$postdeps_CXX"; then
13784 postdeps_CXX="${prev}${p}"
13786 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13792 # This assumes that the test object file only shows up
13793 # once in the compiler output.
13794 if test "$p" = "conftest.$objext"; then
13795 pre_test_object_deps_done=yes
13799 if test "$pre_test_object_deps_done" = no; then
13800 if test -z "$predep_objects_CXX"; then
13801 predep_objects_CXX="$p"
13803 predep_objects_CXX="$predep_objects_CXX $p"
13806 if test -z "$postdep_objects_CXX"; then
13807 postdep_objects_CXX="$p"
13809 postdep_objects_CXX="$postdep_objects_CXX $p"
13814 *) ;; # Ignore the rest.
13822 echo "libtool.m4: error: problem compiling CXX test program"
13825 $RM -f confest.$objext
13827 # PORTME: override above test on systems where it is broken
13830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13831 # hack all around it, let's just trust "g++" to DTRT.
13832 predep_objects_CXX=
13833 postdep_objects_CXX=
13838 case `$CC -V 2>&1 | sed 5q` in
13842 # The more standards-conforming stlport4 library is
13843 # incompatible with the Cstd library. Avoid specifying
13844 # it if it's in CXXFLAGS. Ignore libCrun as
13845 # -library=stlport4 depends on it.
13846 case " $CXX $CXXFLAGS " in
13847 *" -library=stlport4 "*)
13848 solaris_use_stlport4=yes
13852 if test "$solaris_use_stlport4" != yes; then
13853 postdeps_CXX='-library=Cstd -library=Crun'
13860 case $cc_basename in
13862 # The more standards-conforming stlport4 library is
13863 # incompatible with the Cstd library. Avoid specifying
13864 # it if it's in CXXFLAGS. Ignore libCrun as
13865 # -library=stlport4 depends on it.
13866 case " $CXX $CXXFLAGS " in
13867 *" -library=stlport4 "*)
13868 solaris_use_stlport4=yes
13872 # Adding this requires a known-good setup of shared libraries for
13873 # Sun compiler versions before 5.6, else PIC objects from an old
13874 # archive will be linked into the output, leading to subtle bugs.
13875 if test "$solaris_use_stlport4" != yes; then
13876 postdeps_CXX='-library=Cstd -library=Crun'
13884 case " $postdeps_CXX " in
13885 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13887 compiler_lib_search_dirs_CXX=
13888 if test -n "${compiler_lib_search_path_CXX}"; then
13889 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13922 lt_prog_compiler_wl_CXX=
13923 lt_prog_compiler_pic_CXX=
13924 lt_prog_compiler_static_CXX=
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13929 # C++ specific cases for pic, static, wl, etc.
13930 if test "$GXX" = yes; then
13931 lt_prog_compiler_wl_CXX='-Wl,'
13932 lt_prog_compiler_static_CXX='-static'
13936 # All AIX code is PIC.
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_CXX='-Bstatic'
13946 # see comment about AmigaOS4 .so support
13947 lt_prog_compiler_pic_CXX='-fPIC'
13950 # FIXME: we need at least 68020 code to build shared libraries, but
13951 # adding the `-m68020' flag to GCC prevents building anything better,
13953 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13959 # PIC is the default for these OSes.
13961 mingw* | cygwin* | os2* | pw32* | cegcc*)
13962 # This hack is so that the source file can tell whether it is being
13963 # built for inclusion in a dll (and should export symbols for example).
13964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13965 # (--disable-auto-import) libraries
13966 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13968 darwin* | rhapsody*)
13969 # PIC is the default on this platform
13970 # Common symbols not allowed in MH_DYLIB files
13971 lt_prog_compiler_pic_CXX='-fno-common'
13974 # DJGPP does not support shared libraries at all
13975 lt_prog_compiler_pic_CXX=
13978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13979 # Instead, we relocate shared libraries at runtime.
13982 if test -d /usr/nec; then
13983 lt_prog_compiler_pic_CXX=-Kconform_pic
13987 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13988 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13989 # sets the default TLS model and affects inlining.
13994 lt_prog_compiler_pic_CXX='-fPIC'
13999 # QNX uses GNU C++, but need to define -shared option too, otherwise
14000 # it will coredump.
14001 lt_prog_compiler_pic_CXX='-fPIC -shared'
14004 lt_prog_compiler_pic_CXX='-fPIC'
14010 # All AIX code is PIC.
14011 if test "$host_cpu" = ia64; then
14012 # AIX 5 now supports IA64 processor
14013 lt_prog_compiler_static_CXX='-Bstatic'
14015 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14019 case $cc_basename in
14021 # Green Hills C++ Compiler
14022 # _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"
14027 case $cc_basename in
14029 lt_prog_compiler_pic_CXX='-KPIC'
14032 # Green Hills C++ Compiler
14033 lt_prog_compiler_pic_CXX='-pic'
14039 freebsd* | dragonfly*)
14040 # FreeBSD uses GNU C++
14042 hpux9* | hpux10* | hpux11*)
14043 case $cc_basename in
14045 lt_prog_compiler_wl_CXX='-Wl,'
14046 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14047 if test "$host_cpu" != ia64; then
14048 lt_prog_compiler_pic_CXX='+Z'
14052 lt_prog_compiler_wl_CXX='-Wl,'
14053 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14059 lt_prog_compiler_pic_CXX='+Z'
14068 # This is c89, which is MS Visual C++ (no shared libs)
14069 # Anyone wants to do a port?
14071 irix5* | irix6* | nonstopux*)
14072 case $cc_basename in
14074 lt_prog_compiler_wl_CXX='-Wl,'
14075 lt_prog_compiler_static_CXX='-non_shared'
14076 # CC pic flag -KPIC is the default.
14082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14083 case $cc_basename in
14086 lt_prog_compiler_wl_CXX='--backend -Wl,'
14087 lt_prog_compiler_pic_CXX='-fPIC'
14090 # old Intel C++ for x86_64 which still supported -KPIC.
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 lt_prog_compiler_pic_CXX='-KPIC'
14093 lt_prog_compiler_static_CXX='-static'
14096 # Intel C++, used to be incompatible with GCC.
14097 # ICC 10 doesn't accept -KPIC any more.
14098 lt_prog_compiler_wl_CXX='-Wl,'
14099 lt_prog_compiler_pic_CXX='-fPIC'
14100 lt_prog_compiler_static_CXX='-static'
14103 # Portland Group C++ compiler
14104 lt_prog_compiler_wl_CXX='-Wl,'
14105 lt_prog_compiler_pic_CXX='-fpic'
14106 lt_prog_compiler_static_CXX='-Bstatic'
14110 # Make sure the PIC flag is empty. It appears that all Alpha
14111 # Linux and Compaq Tru64 Unix objects are PIC.
14112 lt_prog_compiler_pic_CXX=
14113 lt_prog_compiler_static_CXX='-non_shared'
14116 # IBM XL 8.0 on PPC
14117 lt_prog_compiler_wl_CXX='-Wl,'
14118 lt_prog_compiler_pic_CXX='-qpic'
14119 lt_prog_compiler_static_CXX='-qstaticlink'
14122 case `$CC -V 2>&1 | sed 5q` in
14125 lt_prog_compiler_pic_CXX='-KPIC'
14126 lt_prog_compiler_static_CXX='-Bstatic'
14127 lt_prog_compiler_wl_CXX='-Qoption ld '
14138 case $cc_basename in
14140 lt_prog_compiler_pic_CXX='-W c,exportall'
14146 netbsd* | netbsdelf*-gnu)
14149 # QNX uses GNU C++, but need to define -shared option too, otherwise
14150 # it will coredump.
14151 lt_prog_compiler_pic_CXX='-fPIC -shared'
14153 osf3* | osf4* | osf5*)
14154 case $cc_basename in
14156 lt_prog_compiler_wl_CXX='--backend -Wl,'
14159 # Rational C++ 2.4.1
14160 lt_prog_compiler_pic_CXX='-pic'
14163 # Digital/Compaq C++
14164 lt_prog_compiler_wl_CXX='-Wl,'
14165 # Make sure the PIC flag is empty. It appears that all Alpha
14166 # Linux and Compaq Tru64 Unix objects are PIC.
14167 lt_prog_compiler_pic_CXX=
14168 lt_prog_compiler_static_CXX='-non_shared'
14177 case $cc_basename in
14179 # Sun C++ 4.2, 5.x and Centerline C++
14180 lt_prog_compiler_pic_CXX='-KPIC'
14181 lt_prog_compiler_static_CXX='-Bstatic'
14182 lt_prog_compiler_wl_CXX='-Qoption ld '
14185 # Green Hills C++ Compiler
14186 lt_prog_compiler_pic_CXX='-PIC'
14193 case $cc_basename in
14196 lt_prog_compiler_pic_CXX='-pic'
14197 lt_prog_compiler_static_CXX='-Bstatic'
14201 lt_prog_compiler_pic_CXX='-pic'
14207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14208 case $cc_basename in
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_pic_CXX='-KPIC'
14212 lt_prog_compiler_static_CXX='-Bstatic'
14217 case $cc_basename in
14219 # NonStop-UX NCC 3.20
14220 lt_prog_compiler_pic_CXX='-KPIC'
14229 lt_prog_compiler_can_build_shared_CXX=no
14235 # For platforms which do not support PIC, -DPIC is meaningless:
14237 lt_prog_compiler_pic_CXX=
14240 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14244 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14249 # Check to make sure the PIC flag actually works.
14251 if test -n "$lt_prog_compiler_pic_CXX"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14253 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14254 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14255 $as_echo_n "(cached) " >&6
14257 lt_cv_prog_compiler_pic_works_CXX=no
14258 ac_outfile=conftest.$ac_objext
14259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14260 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14261 # Insert the option either (1) after the last *FLAGS variable, or
14262 # (2) before a word containing "conftest.", or (3) at the end.
14263 # Note that $ac_compile itself does not contain backslashes and begins
14264 # with a dollar sign (not a hyphen), so the echo should work correctly.
14265 # The option is referenced via a variable to avoid confusing sed.
14266 lt_compile=`echo "$ac_compile" | $SED \
14267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14269 -e 's:$: $lt_compiler_flag:'`
14270 (eval echo "\"\$as_me:14270: $lt_compile\"" >&5)
14271 (eval "$lt_compile" 2>conftest.err)
14273 cat conftest.err >&5
14274 echo "$as_me:14274: \$? = $ac_status" >&5
14275 if (exit $ac_status) && test -s "$ac_outfile"; then
14276 # The compiler can only warn and ignore the option if not recognized
14277 # So say no if there are warnings other than the usual output.
14278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14281 lt_cv_prog_compiler_pic_works_CXX=yes
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14288 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14290 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14291 case $lt_prog_compiler_pic_CXX in
14293 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14296 lt_prog_compiler_pic_CXX=
14297 lt_prog_compiler_can_build_shared_CXX=no
14305 # Check to make sure the static flag actually works.
14307 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14309 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14310 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14311 $as_echo_n "(cached) " >&6
14313 lt_cv_prog_compiler_static_works_CXX=no
14314 save_LDFLAGS="$LDFLAGS"
14315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14316 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14318 # The linker can only warn and ignore the option if not recognized
14319 # So say no if there are warnings
14320 if test -s conftest.err; then
14321 # Append any errors to the config.log.
14322 cat conftest.err 1>&5
14323 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14325 if diff conftest.exp conftest.er2 >/dev/null; then
14326 lt_cv_prog_compiler_static_works_CXX=yes
14329 lt_cv_prog_compiler_static_works_CXX=yes
14333 LDFLAGS="$save_LDFLAGS"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14337 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14339 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14342 lt_prog_compiler_static_CXX=
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14350 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14351 $as_echo_n "(cached) " >&6
14353 lt_cv_prog_compiler_c_o_CXX=no
14354 $RM -r conftest 2>/dev/null
14358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14360 lt_compiler_flag="-o out/conftest2.$ac_objext"
14361 # Insert the option either (1) after the last *FLAGS variable, or
14362 # (2) before a word containing "conftest.", or (3) at the end.
14363 # Note that $ac_compile itself does not contain backslashes and begins
14364 # with a dollar sign (not a hyphen), so the echo should work correctly.
14365 lt_compile=`echo "$ac_compile" | $SED \
14366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
14369 (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370 (eval "$lt_compile" 2>out/conftest.err)
14372 cat out/conftest.err >&5
14373 echo "$as_me:14373: \$? = $ac_status" >&5
14374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14376 # The compiler can only warn and ignore the option if not recognized
14377 # So say no if there are warnings
14378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14381 lt_cv_prog_compiler_c_o_CXX=yes
14386 # SGI C++ compiler will create directory out/ii_files/ for
14387 # template instantiation
14388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14389 $RM out/* && rmdir out
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14396 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14402 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14403 $as_echo_n "(cached) " >&6
14405 lt_cv_prog_compiler_c_o_CXX=no
14406 $RM -r conftest 2>/dev/null
14410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14412 lt_compiler_flag="-o out/conftest2.$ac_objext"
14413 # Insert the option either (1) after the last *FLAGS variable, or
14414 # (2) before a word containing "conftest.", or (3) at the end.
14415 # Note that $ac_compile itself does not contain backslashes and begins
14416 # with a dollar sign (not a hyphen), so the echo should work correctly.
14417 lt_compile=`echo "$ac_compile" | $SED \
14418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14420 -e 's:$: $lt_compiler_flag:'`
14421 (eval echo "\"\$as_me:14421: $lt_compile\"" >&5)
14422 (eval "$lt_compile" 2>out/conftest.err)
14424 cat out/conftest.err >&5
14425 echo "$as_me:14425: \$? = $ac_status" >&5
14426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14428 # The compiler can only warn and ignore the option if not recognized
14429 # So say no if there are warnings
14430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14433 lt_cv_prog_compiler_c_o_CXX=yes
14438 # SGI C++ compiler will create directory out/ii_files/ for
14439 # template instantiation
14440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14441 $RM out/* && rmdir out
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14448 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14453 hard_links="nottested"
14454 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14455 # do not overwrite the value of need_locks provided by the user
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14457 $as_echo_n "checking if we can lock with hard links... " >&6; }
14460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14462 ln conftest.a conftest.b 2>&5 || hard_links=no
14463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14465 $as_echo "$hard_links" >&6; }
14466 if test "$hard_links" = no; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14480 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14483 # If we're using GNU nm, then we don't want the "-C" option.
14484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14486 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'
14488 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'
14492 export_symbols_cmds_CXX="$ltdll_cmds"
14494 cygwin* | mingw* | cegcc*)
14495 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'
14497 linux* | k*bsd*-gnu)
14498 link_all_deplibs_CXX=no
14501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14504 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14507 $as_echo "$ld_shlibs_CXX" >&6; }
14508 test "$ld_shlibs_CXX" = no && can_build_shared=no
14510 with_gnu_ld_CXX=$with_gnu_ld
14518 # Do we need to explicitly link libc?
14520 case "x$archive_cmds_need_lc_CXX" in
14522 # Assume -lc should be added
14523 archive_cmds_need_lc_CXX=yes
14525 if test "$enable_shared" = yes && test "$GCC" = yes; then
14526 case $archive_cmds_CXX in
14528 # FIXME: we may have to deal with multi-command sequences.
14531 # Test whether the compiler implicitly links with -lc since on some
14532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14533 # to ld, don't add -lc before -lgcc.
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14540 (eval $ac_compile) 2>&5
14542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14543 test $ac_status = 0; } 2>conftest.err; then
14546 libobjs=conftest.$ac_objext
14548 wl=$lt_prog_compiler_wl_CXX
14549 pic_flag=$lt_prog_compiler_pic_CXX
14555 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14556 allow_undefined_flag_CXX=
14557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14558 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14561 test $ac_status = 0; }
14563 archive_cmds_need_lc_CXX=no
14565 archive_cmds_need_lc_CXX=yes
14567 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14569 cat conftest.err 1>&5
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14573 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14646 library_names_spec=
14647 libname_spec='lib$name'
14651 postuninstall_cmds=
14655 shlibpath_overrides_runpath=unknown
14657 dynamic_linker="$host_os ld.so"
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14659 need_lib_prefix=unknown
14660 hardcode_into_libs=no
14662 # when you set need_version to no, make sure it does not cause -set_version
14663 # flags to be left without arguments
14664 need_version=unknown
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14670 shlibpath_var=LIBPATH
14672 # AIX 3 has no versioning support, so we append a major version to the name.
14673 soname_spec='${libname}${release}${shared_ext}$major'
14680 hardcode_into_libs=yes
14681 if test "$host_cpu" = ia64; then
14682 # AIX 5 supports IA64
14683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14684 shlibpath_var=LD_LIBRARY_PATH
14686 # With GCC up to 2.95.x, collect2 would create an import file
14687 # for dependence libraries. The import file would start with
14688 # the line `#! .'. This would cause the generated library to
14689 # depend on `.', always an invalid library. This was fixed in
14690 # development snapshots of GCC prior to 3.0.
14692 aix4 | aix4.[01] | aix4.[01].*)
14693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14695 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14698 can_build_shared=no
14702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14703 # soname into executable. Probably we can add versioning support to
14704 # collect2, so additional links can be useful in future.
14705 if test "$aix_use_runtimelinking" = yes; then
14706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14707 # instead of lib<name>.a to let people know that these are not
14708 # typical AIX shared libraries.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 # We preserve .a as extension for shared libraries through AIX4.2
14712 # and later when we are not doing run time linking.
14713 library_names_spec='${libname}${release}.a $libname.a'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LIBPATH
14723 # Since July 2007 AmigaOS4 officially supports .so libraries.
14724 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 library_names_spec='$libname.ixlibrary $libname.a'
14729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730 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'
14736 library_names_spec='${libname}${shared_ext}'
14737 dynamic_linker="$host_os ld.so"
14738 shlibpath_var=LIBRARY_PATH
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14750 # the default ld.so.conf also contains /usr/contrib/lib and
14751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14752 # libtool to hard-code these into programs
14755 cygwin* | mingw* | pw32* | cegcc*)
14756 version_type=windows
14761 case $GCC,$host_os in
14762 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14763 library_names_spec='$libname.dll.a'
14764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14765 postinstall_cmds='base_file=`basename \${file}`~
14766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14767 dldir=$destdir/`dirname \$dlpath`~
14768 test -d \$dldir || mkdir -p \$dldir~
14769 $install_prog $dir/$dlname \$dldir/$dlname~
14770 chmod a+x \$dldir/$dlname~
14771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14775 dlpath=$dir/\$dldll~
14777 shlibpath_overrides_runpath=yes
14781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14786 # MinGW DLLs use traditional 'lib' prefix
14787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14788 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14790 # It is most probably a Windows format PATH printed by
14791 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14792 # path with ; separators, and with drive letters. We can handle the
14793 # drive letters (cygwin fileutils understands them), so leave them,
14794 # especially as we might pass files found there to a mingw objdump,
14795 # which wouldn't understand a cygwinified path. Ahh.
14796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14802 # pw32 DLLs use 'pw' prefix rather than 'lib'
14803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14812 dynamic_linker='Win32 ld.exe'
14813 # FIXME: first we should search . and the directory the executable is in
14817 darwin* | rhapsody*)
14818 dynamic_linker="$host_os dyld"
14819 version_type=darwin
14822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14823 soname_spec='${libname}${release}${major}$shared_ext'
14824 shlibpath_overrides_runpath=yes
14825 shlibpath_var=DYLD_LIBRARY_PATH
14826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14844 freebsd* | dragonfly*)
14845 # DragonFly does not have aout. When/if they implement a new
14846 # versioning mechanism, adjust this.
14847 if test -x /usr/bin/objformat; then
14848 objformat=`/usr/bin/objformat`
14851 freebsd[123]*) objformat=aout ;;
14852 *) objformat=elf ;;
14855 version_type=freebsd-$objformat
14856 case $version_type in
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14867 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14872 freebsd3.[01]* | freebsdelf3.[01]*)
14873 shlibpath_overrides_runpath=yes
14874 hardcode_into_libs=yes
14876 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14877 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14878 shlibpath_overrides_runpath=no
14879 hardcode_into_libs=yes
14881 *) # from 4.6 on, and DragonFly
14882 shlibpath_overrides_runpath=yes
14883 hardcode_into_libs=yes
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 hardcode_into_libs=yes
14898 hpux9* | hpux10* | hpux11*)
14899 # Give a soname corresponding to the major version so that dld.sl refuses to
14900 # link against other versions.
14907 hardcode_into_libs=yes
14908 dynamic_linker="$host_os dld.so"
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
14914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14922 hardcode_into_libs=yes
14923 dynamic_linker="$host_os dld.sl"
14924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14933 dynamic_linker="$host_os dld.sl"
14934 shlibpath_var=SHLIB_PATH
14935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14940 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14941 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=no
14953 hardcode_into_libs=yes
14956 irix5* | irix6* | nonstopux*)
14958 nonstopux*) version_type=nonstopux ;;
14960 if test "$lt_cv_prog_gnu_ld" = yes; then
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14971 irix5* | nonstopux*)
14972 libsuff= shlibsuff=
14975 case $LD in # libtool.m4 will add one of these switches to LD
14976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14977 libsuff= shlibsuff= libmagic=32-bit;;
14978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14979 libsuff=32 shlibsuff=N32 libmagic=N32;;
14980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14982 *) libsuff= shlibsuff= libmagic=never-match;;
14986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14987 shlibpath_overrides_runpath=no
14988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14990 hardcode_into_libs=yes
14993 # No shared lib support for Linux oldld, aout, or coff.
14994 linux*oldld* | linux*aout* | linux*coff*)
14998 # This must be Linux ELF.
14999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=no
15008 # Some binutils ld are patched to set DT_RUNPATH
15009 save_LDFLAGS=$LDFLAGS
15010 save_libdir=$libdir
15011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15024 if ac_fn_cxx_try_link "$LINENO"; then :
15025 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15026 shlibpath_overrides_runpath=yes
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LDFLAGS=$save_LDFLAGS
15032 libdir=$save_libdir
15034 # This implies no fast_install, which is unacceptable.
15035 # Some rework will be needed to allow for fast_install
15036 # before this can be enabled.
15037 hardcode_into_libs=yes
15039 # Append ld.so.conf contents to the search path
15040 if test -f /etc/ld.so.conf; then
15041 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' ' '`
15042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15045 # We used to test for /lib/ld.so.1 and disable shared libraries on
15046 # powerpc, because MkLinux only supported shared libraries with the
15047 # GNU dynamic linker. Since this was broken with cross compilers,
15048 # most powerpc-linux boxes support dynamic linking these days and
15049 # people can always --disable-shared, the test was removed, and we
15050 # assume the GNU/Linux dynamic linker is in use.
15051 dynamic_linker='GNU/Linux ld.so'
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=no
15062 hardcode_into_libs=yes
15063 dynamic_linker='NetBSD ld.elf_so'
15070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073 dynamic_linker='NetBSD (a.out) ld.so'
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 dynamic_linker='NetBSD ld.elf_so'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=no
15099 hardcode_into_libs=yes
15100 dynamic_linker='ldqnx.so'
15105 sys_lib_dlsearch_path_spec="/usr/lib"
15107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15110 *) need_version=no ;;
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15117 openbsd2.[89] | openbsd2.[89].*)
15118 shlibpath_overrides_runpath=no
15121 shlibpath_overrides_runpath=yes
15125 shlibpath_overrides_runpath=yes
15130 libname_spec='$name'
15133 library_names_spec='$libname${shared_ext} $libname.a'
15134 dynamic_linker='OS/2 ld.exe'
15135 shlibpath_var=LIBPATH
15138 osf3* | osf4* | osf5*)
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 hardcode_into_libs=yes
15162 # ldd complains unless libraries are executable
15163 postinstall_cmds='chmod +x $lib'
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes
15172 if test "$with_gnu_ld" = yes; then
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 case $host_vendor in
15185 shlibpath_overrides_runpath=no
15187 runpath_var=LD_RUN_PATH
15195 shlibpath_overrides_runpath=no
15196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15202 if test -d /usr/nec ;then
15204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205 soname_spec='$libname${shared_ext}.$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211 version_type=freebsd-elf
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 if test "$with_gnu_ld" = yes; then
15220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15229 sys_lib_dlsearch_path_spec='/usr/lib'
15233 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=no
15240 hardcode_into_libs=yes
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15255 $as_echo "$dynamic_linker" >&6; }
15256 test "$dynamic_linker" = no && can_build_shared=no
15258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15259 if test "$GCC" = yes; then
15260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15266 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15307 hardcode_action_CXX=
15308 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15309 test -n "$runpath_var_CXX" ||
15310 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15312 # We can hardcode non-existent directories.
15313 if test "$hardcode_direct_CXX" != no &&
15314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15315 # have to relink, otherwise we might link with an installed library
15316 # when we should be linking with a yet-to-be-installed one
15317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15318 test "$hardcode_minus_L_CXX" != no; then
15319 # Linking always hardcodes the temporary library directory.
15320 hardcode_action_CXX=relink
15322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15323 hardcode_action_CXX=immediate
15326 # We cannot hardcode anything, or else we can only hardcode existing
15328 hardcode_action_CXX=unsupported
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15331 $as_echo "$hardcode_action_CXX" >&6; }
15333 if test "$hardcode_action_CXX" = relink ||
15334 test "$inherit_rpath_CXX" = yes; then
15335 # Fast installation is not supported
15336 enable_fast_install=no
15337 elif test "$shlibpath_overrides_runpath" = yes ||
15338 test "$enable_shared" = no; then
15339 # Fast installation is not necessary
15340 enable_fast_install=needless
15349 fi # test -n "$compiler"
15355 with_gnu_ld=$lt_save_with_gnu_ld
15356 lt_cv_path_LDCXX=$lt_cv_path_LD
15357 lt_cv_path_LD=$lt_save_path_LD
15358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15360 fi # test "$_lt_caught_CXX_error" != yes
15363 ac_cpp='$CPP $CPPFLAGS'
15364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 ac_config_commands="$ac_config_commands libtool"
15385 # Only expand once:
15392 # report on compiler/libtool setup
15394 gp_config_msg_len="$(expr "Compiler" : '.*')"
15395 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15396 gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
15398 gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15400 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${CC}
15403 #GP_CONFIG_MSG([libltdl includes],[$LTDLINCL])
15404 #GP_CONFIG_MSG([libltdl library],[$LIBLTDL])
15407 cat >>confdefs.h <<_ACEOF
15408 #define HAVE_CC "$CC"
15417 URL_GPHOTO_HOME="http://www.gphoto.org/"
15420 cat >>confdefs.h <<_ACEOF
15421 #define URL_GPHOTO_HOME "http://www.gphoto.org/"
15426 URL_GPHOTO_PROJECT="http://sourceforge.net/projects/gphoto"
15429 cat >>confdefs.h <<_ACEOF
15430 #define URL_GPHOTO_PROJECT "http://sourceforge.net/projects/gphoto"
15436 URL_DIGICAM_LIST="http://www.teaser.fr/~hfiguiere/linux/digicam.html"
15439 cat >>confdefs.h <<_ACEOF
15440 #define URL_DIGICAM_LIST "http://www.teaser.fr/~hfiguiere/linux/digicam.html"
15446 URL_JPHOTO_HOME="http://jphoto.sourceforge.net/"
15449 cat >>confdefs.h <<_ACEOF
15450 #define URL_JPHOTO_HOME "http://jphoto.sourceforge.net/"
15456 URL_USB_MASSSTORAGE="http://www.linux-usb.org/USB-guide/x498.html"
15459 cat >>confdefs.h <<_ACEOF
15460 #define URL_USB_MASSSTORAGE "http://www.linux-usb.org/USB-guide/x498.html"
15466 MAIL_GPHOTO_DEVEL="<gphoto-devel@lists.sourceforge.net>"
15469 cat >>confdefs.h <<_ACEOF
15470 #define MAIL_GPHOTO_DEVEL "<gphoto-devel@lists.sourceforge.net>"
15476 MAIL_GPHOTO_USER="<gphoto-user@lists.sourceforge.net>"
15479 cat >>confdefs.h <<_ACEOF
15480 #define MAIL_GPHOTO_USER "<gphoto-user@lists.sourceforge.net>"
15486 MAIL_GPHOTO_TRANSLATION="<gphoto-translation@lists.sourceforge.net>"
15489 cat >>confdefs.h <<_ACEOF
15490 #define MAIL_GPHOTO_TRANSLATION "<gphoto-translation@lists.sourceforge.net>"
15498 gp_config_msg="${gp_config_msg}
15504 ALL_LINGUAS="da de es eu fr hu it ja nl pl ru sv uk vi zh_CN"
15506 GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}"
15508 cat >>confdefs.h <<_ACEOF
15509 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15513 sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
15514 sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = The gPhoto Team|"
15516 if test -n "$PACKAGE_BUGREPORT"; then
15517 sed_mb="${PACKAGE_BUGREPORT}"
15520 *** Your configure.{ac,in} is wrong.
15521 *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
15522 *** or give GP_GETTEXT_HACK the third parameter.
15527 sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
15528 # Not so sure whether this hack is all *that* evil...
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
15530 $as_echo_n "checking for po/Makevars requiring hack... " >&6; }
15531 if test -f "${srcdir}/po/Makevars.template"; then
15532 sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
15534 $as_echo "yes, done." >&6; }
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15537 $as_echo "no" >&6; }
15543 if test -n "$ac_aux_dir"; then
15544 case "$ac_aux_dir" in
15545 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15546 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15549 if test -z "$MKINSTALLDIRS"; then
15550 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15556 $as_echo_n "checking whether NLS is requested... " >&6; }
15557 # Check whether --enable-nls was given.
15558 if test "${enable_nls+set}" = set; then :
15559 enableval=$enable_nls; USE_NLS=$enableval
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15565 $as_echo "$USE_NLS" >&6; }
15572 # Prepare PATH_SEPARATOR.
15573 # The user is always right.
15574 if test "${PATH_SEPARATOR+set}" != set; then
15575 echo "#! /bin/sh" >conf$$.sh
15576 echo "exit 0" >>conf$$.sh
15578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15586 # Find out how to test for executable files. Don't use a zero-byte file,
15587 # as systems may use methods other than mode bits to determine executability.
15588 cat >conf$$.file <<_ASEOF
15592 chmod +x conf$$.file
15593 if test -x conf$$.file >/dev/null 2>&1; then
15594 ac_executable_p="test -x"
15596 ac_executable_p="test -f"
15600 # Extract the first word of "msgfmt", so it can be a program name with args.
15601 set dummy msgfmt; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_path_MSGFMT+:} false; then :
15605 $as_echo_n "(cached) " >&6
15609 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15613 for ac_dir in $PATH; do
15615 test -z "$ac_dir" && ac_dir=.
15616 for ac_exec_ext in '' $ac_executable_extensions; do
15617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15618 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15619 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15620 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15627 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15631 MSGFMT="$ac_cv_path_MSGFMT"
15632 if test "$MSGFMT" != ":"; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15634 $as_echo "$MSGFMT" >&6; }
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15640 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15641 set dummy gmsgfmt; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if ${ac_cv_path_GMSGFMT+:} false; then :
15645 $as_echo_n "(cached) " >&6
15649 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 for as_dir in $PATH
15656 test -z "$as_dir" && as_dir=.
15657 for ac_exec_ext in '' $ac_executable_extensions; do
15658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15659 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15667 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15671 GMSGFMT=$ac_cv_path_GMSGFMT
15672 if test -n "$GMSGFMT"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15674 $as_echo "$GMSGFMT" >&6; }
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15683 # Prepare PATH_SEPARATOR.
15684 # The user is always right.
15685 if test "${PATH_SEPARATOR+set}" != set; then
15686 echo "#! /bin/sh" >conf$$.sh
15687 echo "exit 0" >>conf$$.sh
15689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15697 # Find out how to test for executable files. Don't use a zero-byte file,
15698 # as systems may use methods other than mode bits to determine executability.
15699 cat >conf$$.file <<_ASEOF
15703 chmod +x conf$$.file
15704 if test -x conf$$.file >/dev/null 2>&1; then
15705 ac_executable_p="test -x"
15707 ac_executable_p="test -f"
15711 # Extract the first word of "xgettext", so it can be a program name with args.
15712 set dummy xgettext; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15714 $as_echo_n "checking for $ac_word... " >&6; }
15715 if ${ac_cv_path_XGETTEXT+:} false; then :
15716 $as_echo_n "(cached) " >&6
15718 case "$XGETTEXT" in
15720 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15724 for ac_dir in $PATH; do
15726 test -z "$ac_dir" && ac_dir=.
15727 for ac_exec_ext in '' $ac_executable_extensions; do
15728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15729 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15730 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15731 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15738 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15742 XGETTEXT="$ac_cv_path_XGETTEXT"
15743 if test "$XGETTEXT" != ":"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15745 $as_echo "$XGETTEXT" >&6; }
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15754 # Prepare PATH_SEPARATOR.
15755 # The user is always right.
15756 if test "${PATH_SEPARATOR+set}" != set; then
15757 echo "#! /bin/sh" >conf$$.sh
15758 echo "exit 0" >>conf$$.sh
15760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15768 # Find out how to test for executable files. Don't use a zero-byte file,
15769 # as systems may use methods other than mode bits to determine executability.
15770 cat >conf$$.file <<_ASEOF
15774 chmod +x conf$$.file
15775 if test -x conf$$.file >/dev/null 2>&1; then
15776 ac_executable_p="test -x"
15778 ac_executable_p="test -f"
15782 # Extract the first word of "msgmerge", so it can be a program name with args.
15783 set dummy msgmerge; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785 $as_echo_n "checking for $ac_word... " >&6; }
15786 if ${ac_cv_path_MSGMERGE+:} false; then :
15787 $as_echo_n "(cached) " >&6
15789 case "$MSGMERGE" in
15791 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15794 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15795 for ac_dir in $PATH; do
15797 test -z "$ac_dir" && ac_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15800 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15801 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15808 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15812 MSGMERGE="$ac_cv_path_MSGMERGE"
15813 if test "$MSGMERGE" != ":"; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15815 $as_echo "$MSGMERGE" >&6; }
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 $as_echo "no" >&6; }
15822 if test "$GMSGFMT" != ":"; then
15823 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15824 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15827 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15829 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15834 if test "$XGETTEXT" != ":"; then
15835 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15836 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15840 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15846 ac_config_commands="$ac_config_commands default-1"
15850 if test "X$prefix" = "XNONE"; then
15851 acl_final_prefix="$ac_default_prefix"
15853 acl_final_prefix="$prefix"
15855 if test "X$exec_prefix" = "XNONE"; then
15856 acl_final_exec_prefix='${prefix}'
15858 acl_final_exec_prefix="$exec_prefix"
15860 acl_save_prefix="$prefix"
15861 prefix="$acl_final_prefix"
15862 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15863 prefix="$acl_save_prefix"
15866 # Check whether --with-gnu-ld was given.
15867 if test "${with_gnu_ld+set}" = set; then :
15868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15873 # Prepare PATH_SEPARATOR.
15874 # The user is always right.
15875 if test "${PATH_SEPARATOR+set}" != set; then
15876 echo "#! /bin/sh" >conf$$.sh
15877 echo "exit 0" >>conf$$.sh
15879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15887 if test "$GCC" = yes; then
15888 # Check if gcc -print-prog-name=ld gives a path.
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15890 $as_echo_n "checking for ld used by GCC... " >&6; }
15893 # gcc leaves a trailing carriage return which upsets mingw
15894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15899 # Accept absolute paths.
15900 [\\/]* | [A-Za-z]:[\\/]*)
15901 re_direlt='/[^/][^/]*/\.\./'
15902 # Canonicalize the path of ld
15903 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15907 test -z "$LD" && LD="$ac_prog"
15910 # If it fails, then pretend we aren't using GCC.
15914 # If it is relative, then search for the first ld in PATH.
15915 with_gnu_ld=unknown
15918 elif test "$with_gnu_ld" = yes; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15920 $as_echo_n "checking for GNU ld... " >&6; }
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15923 $as_echo_n "checking for non-GNU ld... " >&6; }
15925 if ${acl_cv_path_LD+:} false; then :
15926 $as_echo_n "(cached) " >&6
15928 if test -z "$LD"; then
15929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15930 for ac_dir in $PATH; do
15931 test -z "$ac_dir" && ac_dir=.
15932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15933 acl_cv_path_LD="$ac_dir/$ac_prog"
15934 # Check to see if the program is GNU ld. I'd rather use --version,
15935 # but apparently some GNU ld's only accept -v.
15936 # Break only if it was the GNU/non-GNU ld that we prefer.
15937 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15938 *GNU* | *'with BFD'*)
15939 test "$with_gnu_ld" != no && break ;;
15941 test "$with_gnu_ld" != yes && break ;;
15947 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15951 LD="$acl_cv_path_LD"
15952 if test -n "$LD"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15954 $as_echo "$LD" >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15959 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15961 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15962 if ${acl_cv_prog_gnu_ld+:} false; then :
15963 $as_echo_n "(cached) " >&6
15965 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15966 case `$LD -v 2>&1 </dev/null` in
15967 *GNU* | *'with BFD'*)
15968 acl_cv_prog_gnu_ld=yes ;;
15970 acl_cv_prog_gnu_ld=no ;;
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15974 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15975 with_gnu_ld=$acl_cv_prog_gnu_ld
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15980 $as_echo_n "checking for shared library run path origin... " >&6; }
15981 if ${acl_cv_rpath+:} false; then :
15982 $as_echo_n "(cached) " >&6
15985 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15986 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15988 rm -f ./conftest.sh
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15993 $as_echo "$acl_cv_rpath" >&6; }
15995 libext="$acl_cv_libext"
15996 shlibext="$acl_cv_shlibext"
15997 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15998 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15999 hardcode_direct="$acl_cv_hardcode_direct"
16000 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16001 # Check whether --enable-rpath was given.
16002 if test "${enable_rpath+set}" = set; then :
16003 enableval=$enable_rpath; :
16017 acl_save_prefix="$prefix"
16018 prefix="$acl_final_prefix"
16019 acl_save_exec_prefix="$exec_prefix"
16020 exec_prefix="$acl_final_exec_prefix"
16022 eval additional_includedir=\"$includedir\"
16023 eval additional_libdir=\"$libdir\"
16025 exec_prefix="$acl_save_exec_prefix"
16026 prefix="$acl_save_prefix"
16029 # Check whether --with-libiconv-prefix was given.
16030 if test "${with_libiconv_prefix+set}" = set; then :
16031 withval=$with_libiconv_prefix;
16032 if test "X$withval" = "Xno"; then
16035 if test "X$withval" = "X"; then
16037 acl_save_prefix="$prefix"
16038 prefix="$acl_final_prefix"
16039 acl_save_exec_prefix="$exec_prefix"
16040 exec_prefix="$acl_final_exec_prefix"
16042 eval additional_includedir=\"$includedir\"
16043 eval additional_libdir=\"$libdir\"
16045 exec_prefix="$acl_save_exec_prefix"
16046 prefix="$acl_save_prefix"
16049 additional_includedir="$withval/include"
16050 additional_libdir="$withval/lib"
16061 names_already_handled=
16062 names_next_round='iconv '
16063 while test -n "$names_next_round"; do
16064 names_this_round="$names_next_round"
16066 for name in $names_this_round; do
16068 for n in $names_already_handled; do
16069 if test "$n" = "$name"; then
16070 already_handled=yes
16074 if test -z "$already_handled"; then
16075 names_already_handled="$names_already_handled $name"
16076 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16077 eval value=\"\$HAVE_LIB$uppername\"
16078 if test -n "$value"; then
16079 if test "$value" = yes; then
16080 eval value=\"\$LIB$uppername\"
16081 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16082 eval value=\"\$LTLIB$uppername\"
16083 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16092 if test $use_additional = yes; then
16093 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16094 found_dir="$additional_libdir"
16095 found_so="$additional_libdir/lib$name.$shlibext"
16096 if test -f "$additional_libdir/lib$name.la"; then
16097 found_la="$additional_libdir/lib$name.la"
16100 if test -f "$additional_libdir/lib$name.$libext"; then
16101 found_dir="$additional_libdir"
16102 found_a="$additional_libdir/lib$name.$libext"
16103 if test -f "$additional_libdir/lib$name.la"; then
16104 found_la="$additional_libdir/lib$name.la"
16109 if test "X$found_dir" = "X"; then
16110 for x in $LDFLAGS $LTLIBICONV; do
16112 acl_save_prefix="$prefix"
16113 prefix="$acl_final_prefix"
16114 acl_save_exec_prefix="$exec_prefix"
16115 exec_prefix="$acl_final_exec_prefix"
16117 exec_prefix="$acl_save_exec_prefix"
16118 prefix="$acl_save_prefix"
16122 dir=`echo "X$x" | sed -e 's/^X-L//'`
16123 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16125 found_so="$dir/lib$name.$shlibext"
16126 if test -f "$dir/lib$name.la"; then
16127 found_la="$dir/lib$name.la"
16130 if test -f "$dir/lib$name.$libext"; then
16132 found_a="$dir/lib$name.$libext"
16133 if test -f "$dir/lib$name.la"; then
16134 found_la="$dir/lib$name.la"
16140 if test "X$found_dir" != "X"; then
16145 if test "X$found_dir" != "X"; then
16146 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16147 if test "X$found_so" != "X"; then
16148 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16152 for x in $ltrpathdirs; do
16153 if test "X$x" = "X$found_dir"; then
16158 if test -z "$haveit"; then
16159 ltrpathdirs="$ltrpathdirs $found_dir"
16161 if test "$hardcode_direct" = yes; then
16162 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16164 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16165 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16167 for x in $rpathdirs; do
16168 if test "X$x" = "X$found_dir"; then
16173 if test -z "$haveit"; then
16174 rpathdirs="$rpathdirs $found_dir"
16178 for x in $LDFLAGS $LIBICONV; do
16180 acl_save_prefix="$prefix"
16181 prefix="$acl_final_prefix"
16182 acl_save_exec_prefix="$exec_prefix"
16183 exec_prefix="$acl_final_exec_prefix"
16185 exec_prefix="$acl_save_exec_prefix"
16186 prefix="$acl_save_prefix"
16188 if test "X$x" = "X-L$found_dir"; then
16193 if test -z "$haveit"; then
16194 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16196 if test "$hardcode_minus_L" != no; then
16197 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16199 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16205 if test "X$found_a" != "X"; then
16206 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16208 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16211 additional_includedir=
16212 case "$found_dir" in
16214 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16215 additional_includedir="$basedir/include"
16218 if test "X$additional_includedir" != "X"; then
16219 if test "X$additional_includedir" != "X/usr/include"; then
16221 if test "X$additional_includedir" = "X/usr/local/include"; then
16222 if test -n "$GCC"; then
16224 linux*) haveit=yes;;
16228 if test -z "$haveit"; then
16229 for x in $CPPFLAGS $INCICONV; do
16231 acl_save_prefix="$prefix"
16232 prefix="$acl_final_prefix"
16233 acl_save_exec_prefix="$exec_prefix"
16234 exec_prefix="$acl_final_exec_prefix"
16236 exec_prefix="$acl_save_exec_prefix"
16237 prefix="$acl_save_prefix"
16239 if test "X$x" = "X-I$additional_includedir"; then
16244 if test -z "$haveit"; then
16245 if test -d "$additional_includedir"; then
16246 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16252 if test -n "$found_la"; then
16253 save_libdir="$libdir"
16254 case "$found_la" in
16255 */* | *\\*) . "$found_la" ;;
16256 *) . "./$found_la" ;;
16258 libdir="$save_libdir"
16259 for dep in $dependency_libs; do
16262 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16263 if test "X$additional_libdir" != "X/usr/lib"; then
16265 if test "X$additional_libdir" = "X/usr/local/lib"; then
16266 if test -n "$GCC"; then
16268 linux*) haveit=yes;;
16272 if test -z "$haveit"; then
16274 for x in $LDFLAGS $LIBICONV; do
16276 acl_save_prefix="$prefix"
16277 prefix="$acl_final_prefix"
16278 acl_save_exec_prefix="$exec_prefix"
16279 exec_prefix="$acl_final_exec_prefix"
16281 exec_prefix="$acl_save_exec_prefix"
16282 prefix="$acl_save_prefix"
16284 if test "X$x" = "X-L$additional_libdir"; then
16289 if test -z "$haveit"; then
16290 if test -d "$additional_libdir"; then
16291 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16295 for x in $LDFLAGS $LTLIBICONV; do
16297 acl_save_prefix="$prefix"
16298 prefix="$acl_final_prefix"
16299 acl_save_exec_prefix="$exec_prefix"
16300 exec_prefix="$acl_final_exec_prefix"
16302 exec_prefix="$acl_save_exec_prefix"
16303 prefix="$acl_save_prefix"
16305 if test "X$x" = "X-L$additional_libdir"; then
16310 if test -z "$haveit"; then
16311 if test -d "$additional_libdir"; then
16312 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16319 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16320 if test "$enable_rpath" != no; then
16322 for x in $rpathdirs; do
16323 if test "X$x" = "X$dir"; then
16328 if test -z "$haveit"; then
16329 rpathdirs="$rpathdirs $dir"
16332 for x in $ltrpathdirs; do
16333 if test "X$x" = "X$dir"; then
16338 if test -z "$haveit"; then
16339 ltrpathdirs="$ltrpathdirs $dir"
16344 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16347 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16350 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16357 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16364 if test "X$rpathdirs" != "X"; then
16365 if test -n "$hardcode_libdir_separator"; then
16367 for found_dir in $rpathdirs; do
16368 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16370 acl_save_libdir="$libdir"
16372 eval flag=\"$hardcode_libdir_flag_spec\"
16373 libdir="$acl_save_libdir"
16374 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16376 for found_dir in $rpathdirs; do
16377 acl_save_libdir="$libdir"
16378 libdir="$found_dir"
16379 eval flag=\"$hardcode_libdir_flag_spec\"
16380 libdir="$acl_save_libdir"
16381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16385 if test "X$ltrpathdirs" != "X"; then
16386 for found_dir in $ltrpathdirs; do
16387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16409 $as_echo_n "checking whether NLS is requested... " >&6; }
16410 # Check whether --enable-nls was given.
16411 if test "${enable_nls+set}" = set; then :
16412 enableval=$enable_nls; USE_NLS=$enableval
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16418 $as_echo "$USE_NLS" >&6; }
16427 if test "$USE_NLS" = "yes"; then
16428 gt_use_preinstalled_gnugettext=no
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16436 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16437 if ${gt_cv_func_gnugettext1_libc+:} false; then :
16438 $as_echo_n "(cached) " >&6
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16442 #include <libintl.h>
16443 extern int _nl_msg_cat_cntr;
16444 extern int *_nl_domain_bindings;
16448 bindtextdomain ("", "");
16449 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16454 if ac_fn_c_try_link "$LINENO"; then :
16455 gt_cv_func_gnugettext1_libc=yes
16457 gt_cv_func_gnugettext1_libc=no
16459 rm -f core conftest.err conftest.$ac_objext \
16460 conftest$ac_exeext conftest.$ac_ext
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
16463 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16465 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16471 am_save_CPPFLAGS="$CPPFLAGS"
16473 for element in $INCICONV; do
16475 for x in $CPPFLAGS; do
16477 acl_save_prefix="$prefix"
16478 prefix="$acl_final_prefix"
16479 acl_save_exec_prefix="$exec_prefix"
16480 exec_prefix="$acl_final_exec_prefix"
16482 exec_prefix="$acl_save_exec_prefix"
16483 prefix="$acl_save_prefix"
16485 if test "X$x" = "X$element"; then
16490 if test -z "$haveit"; then
16491 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16497 $as_echo_n "checking for iconv... " >&6; }
16498 if ${am_cv_func_iconv+:} false; then :
16499 $as_echo_n "(cached) " >&6
16502 am_cv_func_iconv="no, consider installing GNU libiconv"
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 #include <stdlib.h>
16511 iconv_t cd = iconv_open("","");
16512 iconv(cd,NULL,NULL,NULL,NULL);
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 am_cv_func_iconv=yes
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 if test "$am_cv_func_iconv" != yes; then
16524 am_save_LIBS="$LIBS"
16525 LIBS="$LIBS $LIBICONV"
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #include <stdlib.h>
16533 iconv_t cd = iconv_open("","");
16534 iconv(cd,NULL,NULL,NULL,NULL);
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 am_cv_lib_iconv=yes
16542 am_cv_func_iconv=yes
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LIBS="$am_save_LIBS"
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16551 $as_echo "$am_cv_func_iconv" >&6; }
16552 if test "$am_cv_func_iconv" = yes; then
16554 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16557 if test "$am_cv_lib_iconv" = yes; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16559 $as_echo_n "checking how to link with libiconv... " >&6; }
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16561 $as_echo "$LIBICONV" >&6; }
16563 CPPFLAGS="$am_save_CPPFLAGS"
16575 acl_save_prefix="$prefix"
16576 prefix="$acl_final_prefix"
16577 acl_save_exec_prefix="$exec_prefix"
16578 exec_prefix="$acl_final_exec_prefix"
16580 eval additional_includedir=\"$includedir\"
16581 eval additional_libdir=\"$libdir\"
16583 exec_prefix="$acl_save_exec_prefix"
16584 prefix="$acl_save_prefix"
16587 # Check whether --with-libintl-prefix was given.
16588 if test "${with_libintl_prefix+set}" = set; then :
16589 withval=$with_libintl_prefix;
16590 if test "X$withval" = "Xno"; then
16593 if test "X$withval" = "X"; then
16595 acl_save_prefix="$prefix"
16596 prefix="$acl_final_prefix"
16597 acl_save_exec_prefix="$exec_prefix"
16598 exec_prefix="$acl_final_exec_prefix"
16600 eval additional_includedir=\"$includedir\"
16601 eval additional_libdir=\"$libdir\"
16603 exec_prefix="$acl_save_exec_prefix"
16604 prefix="$acl_save_prefix"
16607 additional_includedir="$withval/include"
16608 additional_libdir="$withval/lib"
16619 names_already_handled=
16620 names_next_round='intl '
16621 while test -n "$names_next_round"; do
16622 names_this_round="$names_next_round"
16624 for name in $names_this_round; do
16626 for n in $names_already_handled; do
16627 if test "$n" = "$name"; then
16628 already_handled=yes
16632 if test -z "$already_handled"; then
16633 names_already_handled="$names_already_handled $name"
16634 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16635 eval value=\"\$HAVE_LIB$uppername\"
16636 if test -n "$value"; then
16637 if test "$value" = yes; then
16638 eval value=\"\$LIB$uppername\"
16639 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16640 eval value=\"\$LTLIB$uppername\"
16641 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16650 if test $use_additional = yes; then
16651 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16652 found_dir="$additional_libdir"
16653 found_so="$additional_libdir/lib$name.$shlibext"
16654 if test -f "$additional_libdir/lib$name.la"; then
16655 found_la="$additional_libdir/lib$name.la"
16658 if test -f "$additional_libdir/lib$name.$libext"; then
16659 found_dir="$additional_libdir"
16660 found_a="$additional_libdir/lib$name.$libext"
16661 if test -f "$additional_libdir/lib$name.la"; then
16662 found_la="$additional_libdir/lib$name.la"
16667 if test "X$found_dir" = "X"; then
16668 for x in $LDFLAGS $LTLIBINTL; do
16670 acl_save_prefix="$prefix"
16671 prefix="$acl_final_prefix"
16672 acl_save_exec_prefix="$exec_prefix"
16673 exec_prefix="$acl_final_exec_prefix"
16675 exec_prefix="$acl_save_exec_prefix"
16676 prefix="$acl_save_prefix"
16680 dir=`echo "X$x" | sed -e 's/^X-L//'`
16681 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16683 found_so="$dir/lib$name.$shlibext"
16684 if test -f "$dir/lib$name.la"; then
16685 found_la="$dir/lib$name.la"
16688 if test -f "$dir/lib$name.$libext"; then
16690 found_a="$dir/lib$name.$libext"
16691 if test -f "$dir/lib$name.la"; then
16692 found_la="$dir/lib$name.la"
16698 if test "X$found_dir" != "X"; then
16703 if test "X$found_dir" != "X"; then
16704 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16705 if test "X$found_so" != "X"; then
16706 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16710 for x in $ltrpathdirs; do
16711 if test "X$x" = "X$found_dir"; then
16716 if test -z "$haveit"; then
16717 ltrpathdirs="$ltrpathdirs $found_dir"
16719 if test "$hardcode_direct" = yes; then
16720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16722 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16725 for x in $rpathdirs; do
16726 if test "X$x" = "X$found_dir"; then
16731 if test -z "$haveit"; then
16732 rpathdirs="$rpathdirs $found_dir"
16736 for x in $LDFLAGS $LIBINTL; do
16738 acl_save_prefix="$prefix"
16739 prefix="$acl_final_prefix"
16740 acl_save_exec_prefix="$exec_prefix"
16741 exec_prefix="$acl_final_exec_prefix"
16743 exec_prefix="$acl_save_exec_prefix"
16744 prefix="$acl_save_prefix"
16746 if test "X$x" = "X-L$found_dir"; then
16751 if test -z "$haveit"; then
16752 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16754 if test "$hardcode_minus_L" != no; then
16755 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16757 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16763 if test "X$found_a" != "X"; then
16764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16766 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16769 additional_includedir=
16770 case "$found_dir" in
16772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16773 additional_includedir="$basedir/include"
16776 if test "X$additional_includedir" != "X"; then
16777 if test "X$additional_includedir" != "X/usr/include"; then
16779 if test "X$additional_includedir" = "X/usr/local/include"; then
16780 if test -n "$GCC"; then
16782 linux*) haveit=yes;;
16786 if test -z "$haveit"; then
16787 for x in $CPPFLAGS $INCINTL; do
16789 acl_save_prefix="$prefix"
16790 prefix="$acl_final_prefix"
16791 acl_save_exec_prefix="$exec_prefix"
16792 exec_prefix="$acl_final_exec_prefix"
16794 exec_prefix="$acl_save_exec_prefix"
16795 prefix="$acl_save_prefix"
16797 if test "X$x" = "X-I$additional_includedir"; then
16802 if test -z "$haveit"; then
16803 if test -d "$additional_includedir"; then
16804 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16810 if test -n "$found_la"; then
16811 save_libdir="$libdir"
16812 case "$found_la" in
16813 */* | *\\*) . "$found_la" ;;
16814 *) . "./$found_la" ;;
16816 libdir="$save_libdir"
16817 for dep in $dependency_libs; do
16820 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16821 if test "X$additional_libdir" != "X/usr/lib"; then
16823 if test "X$additional_libdir" = "X/usr/local/lib"; then
16824 if test -n "$GCC"; then
16826 linux*) haveit=yes;;
16830 if test -z "$haveit"; then
16832 for x in $LDFLAGS $LIBINTL; do
16834 acl_save_prefix="$prefix"
16835 prefix="$acl_final_prefix"
16836 acl_save_exec_prefix="$exec_prefix"
16837 exec_prefix="$acl_final_exec_prefix"
16839 exec_prefix="$acl_save_exec_prefix"
16840 prefix="$acl_save_prefix"
16842 if test "X$x" = "X-L$additional_libdir"; then
16847 if test -z "$haveit"; then
16848 if test -d "$additional_libdir"; then
16849 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16853 for x in $LDFLAGS $LTLIBINTL; do
16855 acl_save_prefix="$prefix"
16856 prefix="$acl_final_prefix"
16857 acl_save_exec_prefix="$exec_prefix"
16858 exec_prefix="$acl_final_exec_prefix"
16860 exec_prefix="$acl_save_exec_prefix"
16861 prefix="$acl_save_prefix"
16863 if test "X$x" = "X-L$additional_libdir"; then
16868 if test -z "$haveit"; then
16869 if test -d "$additional_libdir"; then
16870 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16877 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16878 if test "$enable_rpath" != no; then
16880 for x in $rpathdirs; do
16881 if test "X$x" = "X$dir"; then
16886 if test -z "$haveit"; then
16887 rpathdirs="$rpathdirs $dir"
16890 for x in $ltrpathdirs; do
16891 if test "X$x" = "X$dir"; then
16896 if test -z "$haveit"; then
16897 ltrpathdirs="$ltrpathdirs $dir"
16902 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16905 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16908 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16915 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16916 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16922 if test "X$rpathdirs" != "X"; then
16923 if test -n "$hardcode_libdir_separator"; then
16925 for found_dir in $rpathdirs; do
16926 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16928 acl_save_libdir="$libdir"
16930 eval flag=\"$hardcode_libdir_flag_spec\"
16931 libdir="$acl_save_libdir"
16932 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16934 for found_dir in $rpathdirs; do
16935 acl_save_libdir="$libdir"
16936 libdir="$found_dir"
16937 eval flag=\"$hardcode_libdir_flag_spec\"
16938 libdir="$acl_save_libdir"
16939 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16943 if test "X$ltrpathdirs" != "X"; then
16944 for found_dir in $ltrpathdirs; do
16945 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16950 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16951 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
16952 $as_echo_n "(cached) " >&6
16954 gt_save_CPPFLAGS="$CPPFLAGS"
16955 CPPFLAGS="$CPPFLAGS $INCINTL"
16956 gt_save_LIBS="$LIBS"
16957 LIBS="$LIBS $LIBINTL"
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <libintl.h>
16961 extern int _nl_msg_cat_cntr;
16966 const char *_nl_expand_alias ();
16970 bindtextdomain ("", "");
16971 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16976 if ac_fn_c_try_link "$LINENO"; then :
16977 gt_cv_func_gnugettext1_libintl=yes
16979 gt_cv_func_gnugettext1_libintl=no
16981 rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16984 LIBS="$LIBS $LIBICONV"
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987 #include <libintl.h>
16988 extern int _nl_msg_cat_cntr;
16993 const char *_nl_expand_alias ();
16997 bindtextdomain ("", "");
16998 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17003 if ac_fn_c_try_link "$LINENO"; then :
17004 LIBINTL="$LIBINTL $LIBICONV"
17005 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17006 gt_cv_func_gnugettext1_libintl=yes
17009 rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17012 CPPFLAGS="$gt_save_CPPFLAGS"
17013 LIBS="$gt_save_LIBS"
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17016 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17019 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17020 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17021 && test "$PACKAGE" != gettext-runtime \
17022 && test "$PACKAGE" != gettext-tools; }; then
17023 gt_use_preinstalled_gnugettext=yes
17032 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17033 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17035 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17043 $as_echo_n "checking whether to use NLS... " >&6; }
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17045 $as_echo "$USE_NLS" >&6; }
17046 if test "$USE_NLS" = "yes"; then
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17048 $as_echo_n "checking where the gettext function comes from... " >&6; }
17049 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17050 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17051 gt_source="external libintl"
17056 gt_source="included intl directory"
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17059 $as_echo "$gt_source" >&6; }
17062 if test "$USE_NLS" = "yes"; then
17064 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17065 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17067 $as_echo_n "checking how to link with libintl... " >&6; }
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17069 $as_echo "$LIBINTL" >&6; }
17071 for element in $INCINTL; do
17073 for x in $CPPFLAGS; do
17075 acl_save_prefix="$prefix"
17076 prefix="$acl_final_prefix"
17077 acl_save_exec_prefix="$exec_prefix"
17078 exec_prefix="$acl_final_exec_prefix"
17080 exec_prefix="$acl_save_exec_prefix"
17081 prefix="$acl_save_prefix"
17083 if test "X$x" = "X$element"; then
17088 if test -z "$haveit"; then
17089 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17096 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17099 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17108 INTLLIBS="$LIBINTL"
17119 # Prepare PATH_SEPARATOR.
17120 # The user is always right.
17121 if test "${PATH_SEPARATOR+set}" != set; then
17122 echo "#! /bin/sh" >conf$$.sh
17123 echo "exit 0" >>conf$$.sh
17125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17133 # Find out how to test for executable files. Don't use a zero-byte file,
17134 # as systems may use methods other than mode bits to determine executability.
17135 cat >conf$$.file <<_ASEOF
17139 chmod +x conf$$.file
17140 if test -x conf$$.file >/dev/null 2>&1; then
17141 ac_executable_p="test -x"
17143 ac_executable_p="test -f"
17147 # Extract the first word of "msgfmt", so it can be a program name with args.
17148 set dummy msgfmt; ac_word=$2
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17150 $as_echo_n "checking for $ac_word... " >&6; }
17151 if ${ac_cv_path_MSGFMT+:} false; then :
17152 $as_echo_n "(cached) " >&6
17156 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17159 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17160 for ac_dir in $PATH; do
17162 test -z "$ac_dir" && ac_dir=.
17163 for ac_exec_ext in '' $ac_executable_extensions; do
17164 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17165 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
17166 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17167 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17174 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17178 MSGFMT="$ac_cv_path_MSGFMT"
17179 if test "$MSGFMT" != ":"; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17181 $as_echo "$MSGFMT" >&6; }
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 $as_echo "no" >&6; }
17187 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17188 set dummy gmsgfmt; ac_word=$2
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190 $as_echo_n "checking for $ac_word... " >&6; }
17191 if ${ac_cv_path_GMSGFMT+:} false; then :
17192 $as_echo_n "(cached) " >&6
17196 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17203 test -z "$as_dir" && as_dir=.
17204 for ac_exec_ext in '' $ac_executable_extensions; do
17205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17206 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17218 GMSGFMT=$ac_cv_path_GMSGFMT
17219 if test -n "$GMSGFMT"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17221 $as_echo "$GMSGFMT" >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17230 # Prepare PATH_SEPARATOR.
17231 # The user is always right.
17232 if test "${PATH_SEPARATOR+set}" != set; then
17233 echo "#! /bin/sh" >conf$$.sh
17234 echo "exit 0" >>conf$$.sh
17236 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17244 # Find out how to test for executable files. Don't use a zero-byte file,
17245 # as systems may use methods other than mode bits to determine executability.
17246 cat >conf$$.file <<_ASEOF
17250 chmod +x conf$$.file
17251 if test -x conf$$.file >/dev/null 2>&1; then
17252 ac_executable_p="test -x"
17254 ac_executable_p="test -f"
17258 # Extract the first word of "xgettext", so it can be a program name with args.
17259 set dummy xgettext; ac_word=$2
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17261 $as_echo_n "checking for $ac_word... " >&6; }
17262 if ${ac_cv_path_XGETTEXT+:} false; then :
17263 $as_echo_n "(cached) " >&6
17265 case "$XGETTEXT" in
17267 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17270 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17271 for ac_dir in $PATH; do
17273 test -z "$ac_dir" && ac_dir=.
17274 for ac_exec_ext in '' $ac_executable_extensions; do
17275 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17276 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17277 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17278 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17285 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17289 XGETTEXT="$ac_cv_path_XGETTEXT"
17290 if test "$XGETTEXT" != ":"; then
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17292 $as_echo "$XGETTEXT" >&6; }
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17301 # Prepare PATH_SEPARATOR.
17302 # The user is always right.
17303 if test "${PATH_SEPARATOR+set}" != set; then
17304 echo "#! /bin/sh" >conf$$.sh
17305 echo "exit 0" >>conf$$.sh
17307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17315 # Find out how to test for executable files. Don't use a zero-byte file,
17316 # as systems may use methods other than mode bits to determine executability.
17317 cat >conf$$.file <<_ASEOF
17321 chmod +x conf$$.file
17322 if test -x conf$$.file >/dev/null 2>&1; then
17323 ac_executable_p="test -x"
17325 ac_executable_p="test -f"
17329 # Extract the first word of "msgmerge", so it can be a program name with args.
17330 set dummy msgmerge; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_MSGMERGE+:} false; then :
17334 $as_echo_n "(cached) " >&6
17336 case "$MSGMERGE" in
17338 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17341 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17342 for ac_dir in $PATH; do
17344 test -z "$ac_dir" && ac_dir=.
17345 for ac_exec_ext in '' $ac_executable_extensions; do
17346 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17347 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
17348 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17355 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17359 MSGMERGE="$ac_cv_path_MSGMERGE"
17360 if test "$MSGMERGE" != ":"; then
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17362 $as_echo "$MSGMERGE" >&6; }
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17369 if test "$GMSGFMT" != ":"; then
17370 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17371 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17374 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17376 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17381 if test "$XGETTEXT" != ":"; then
17382 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17383 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17387 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17393 ac_config_commands="$ac_config_commands default-2"
17401 am_save_CPPFLAGS="$CPPFLAGS"
17403 for element in $INCICONV; do
17405 for x in $CPPFLAGS; do
17407 acl_save_prefix="$prefix"
17408 prefix="$acl_final_prefix"
17409 acl_save_exec_prefix="$exec_prefix"
17410 exec_prefix="$acl_final_exec_prefix"
17412 exec_prefix="$acl_save_exec_prefix"
17413 prefix="$acl_save_prefix"
17415 if test "X$x" = "X$element"; then
17420 if test -z "$haveit"; then
17421 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17427 $as_echo_n "checking for iconv... " >&6; }
17428 if ${am_cv_func_iconv+:} false; then :
17429 $as_echo_n "(cached) " >&6
17432 am_cv_func_iconv="no, consider installing GNU libiconv"
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436 #include <stdlib.h>
17441 iconv_t cd = iconv_open("","");
17442 iconv(cd,NULL,NULL,NULL,NULL);
17448 if ac_fn_c_try_link "$LINENO"; then :
17449 am_cv_func_iconv=yes
17451 rm -f core conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453 if test "$am_cv_func_iconv" != yes; then
17454 am_save_LIBS="$LIBS"
17455 LIBS="$LIBS $LIBICONV"
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h. */
17458 #include <stdlib.h>
17463 iconv_t cd = iconv_open("","");
17464 iconv(cd,NULL,NULL,NULL,NULL);
17470 if ac_fn_c_try_link "$LINENO"; then :
17471 am_cv_lib_iconv=yes
17472 am_cv_func_iconv=yes
17474 rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17476 LIBS="$am_save_LIBS"
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17481 $as_echo "$am_cv_func_iconv" >&6; }
17482 if test "$am_cv_func_iconv" = yes; then
17484 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17487 if test "$am_cv_lib_iconv" = yes; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17489 $as_echo_n "checking how to link with libiconv... " >&6; }
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17491 $as_echo "$LIBICONV" >&6; }
17493 CPPFLAGS="$am_save_CPPFLAGS"
17500 if test "$am_cv_func_iconv" = yes; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17502 $as_echo_n "checking for iconv declaration... " >&6; }
17503 if ${am_cv_proto_iconv+:} false; then :
17504 $as_echo_n "(cached) " >&6
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17510 #include <stdlib.h>
17516 #if defined(__STDC__) || defined(__cplusplus)
17517 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17530 if ac_fn_c_try_compile "$LINENO"; then :
17531 am_cv_proto_iconv_arg1=""
17533 am_cv_proto_iconv_arg1="const"
17535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17539 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
17541 }$am_cv_proto_iconv" >&5
17543 }$am_cv_proto_iconv" >&6; }
17545 cat >>confdefs.h <<_ACEOF
17546 #define ICONV_CONST $am_cv_proto_iconv_arg1
17554 if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
17555 AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
17558 gp_config_msg_len="$(expr "Use translations" : '.*')"
17559 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17560 gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
17562 gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17564 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${USE_NLS}
17567 if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
17569 gp_config_msg_len="$(expr "Use included libintl" : '.*')"
17570 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17571 gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
17573 gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17575 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
17581 # same trick as with libdl:
17582 # if gettext() doesn't require linking against libintl,
17583 # we don't have to check for gettext in libintl. Otherwise
17584 # we may even require libintl.
17586 localedir="\$(datadir)/locale"
17588 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
17590 # Check whether --enable-largefile was given.
17591 if test "${enable_largefile+set}" = set; then :
17592 enableval=$enable_largefile;
17595 if test "$enable_largefile" != no; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17598 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17599 if ${ac_cv_sys_largefile_CC+:} false; then :
17600 $as_echo_n "(cached) " >&6
17602 ac_cv_sys_largefile_CC=no
17603 if test "$GCC" != yes; then
17606 # IRIX 6.2 and later do not support large files by default,
17607 # so use the C compiler's -n32 option if that helps.
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <sys/types.h>
17611 /* Check that off_t can represent 2**63 - 1 correctly.
17612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17613 since some C++ compilers masquerading as C compilers
17614 incorrectly reject 9223372036854775807. */
17615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17617 && LARGE_OFF_T % 2147483647 == 1)
17627 if ac_fn_c_try_compile "$LINENO"; then :
17630 rm -f core conftest.err conftest.$ac_objext
17632 if ac_fn_c_try_compile "$LINENO"; then :
17633 ac_cv_sys_largefile_CC=' -n32'; break
17635 rm -f core conftest.err conftest.$ac_objext
17639 rm -f conftest.$ac_ext
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17643 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17644 if test "$ac_cv_sys_largefile_CC" != no; then
17645 CC=$CC$ac_cv_sys_largefile_CC
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17649 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17650 if ${ac_cv_sys_file_offset_bits+:} false; then :
17651 $as_echo_n "(cached) " >&6
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 #include <sys/types.h>
17657 /* Check that off_t can represent 2**63 - 1 correctly.
17658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17659 since some C++ compilers masquerading as C compilers
17660 incorrectly reject 9223372036854775807. */
17661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17663 && LARGE_OFF_T % 2147483647 == 1)
17673 if ac_fn_c_try_compile "$LINENO"; then :
17674 ac_cv_sys_file_offset_bits=no; break
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679 #define _FILE_OFFSET_BITS 64
17680 #include <sys/types.h>
17681 /* Check that off_t can represent 2**63 - 1 correctly.
17682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17683 since some C++ compilers masquerading as C compilers
17684 incorrectly reject 9223372036854775807. */
17685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17687 && LARGE_OFF_T % 2147483647 == 1)
17697 if ac_fn_c_try_compile "$LINENO"; then :
17698 ac_cv_sys_file_offset_bits=64; break
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 ac_cv_sys_file_offset_bits=unknown
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17706 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17707 case $ac_cv_sys_file_offset_bits in #(
17710 cat >>confdefs.h <<_ACEOF
17711 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17716 if test $ac_cv_sys_file_offset_bits = unknown; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17718 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17719 if ${ac_cv_sys_large_files+:} false; then :
17720 $as_echo_n "(cached) " >&6
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725 #include <sys/types.h>
17726 /* Check that off_t can represent 2**63 - 1 correctly.
17727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17728 since some C++ compilers masquerading as C compilers
17729 incorrectly reject 9223372036854775807. */
17730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17732 && LARGE_OFF_T % 2147483647 == 1)
17742 if ac_fn_c_try_compile "$LINENO"; then :
17743 ac_cv_sys_large_files=no; break
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #define _LARGE_FILES 1
17749 #include <sys/types.h>
17750 /* Check that off_t can represent 2**63 - 1 correctly.
17751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17752 since some C++ compilers masquerading as C compilers
17753 incorrectly reject 9223372036854775807. */
17754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17756 && LARGE_OFF_T % 2147483647 == 1)
17766 if ac_fn_c_try_compile "$LINENO"; then :
17767 ac_cv_sys_large_files=1; break
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770 ac_cv_sys_large_files=unknown
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17775 $as_echo "$ac_cv_sys_large_files" >&6; }
17776 case $ac_cv_sys_large_files in #(
17779 cat >>confdefs.h <<_ACEOF
17780 #define _LARGE_FILES $ac_cv_sys_large_files
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -libs" >&5
17790 $as_echo_n "checking for main in -libs... " >&6; }
17791 if ${ac_cv_lib_ibs_main+:} false; then :
17792 $as_echo_n "(cached) " >&6
17794 ac_check_lib_save_LIBS=$LIBS
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17808 if ac_fn_c_try_link "$LINENO"; then :
17809 ac_cv_lib_ibs_main=yes
17811 ac_cv_lib_ibs_main=no
17813 rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibs_main" >&5
17818 $as_echo "$ac_cv_lib_ibs_main" >&6; }
17819 if test "x$ac_cv_lib_ibs_main" = xyes; then :
17820 cat >>confdefs.h <<_ACEOF
17821 #define HAVE_LIBIBS 1
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
17834 $as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
17835 if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then :
17836 $as_echo_n "(cached) " >&6
17838 ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ljpeg $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17849 char jpeg_start_decompress ();
17853 return jpeg_start_decompress ();
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ac_cv_lib_jpeg_jpeg_start_decompress=yes
17861 ac_cv_lib_jpeg_jpeg_start_decompress=no
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
17868 $as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
17869 if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then :
17871 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17872 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17875 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
17887 gp_config_msg_len="$(expr "JPEG mangling support" : '.*')"
17888 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17889 gp_config_msg_lhs="$(expr "JPEG mangling support" : "\(.\{0,${gp_config_len3}\}\)")..:"
17891 gp_config_msg_lhs="$(expr "JPEG mangling support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17893 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${libjpeg_msg}
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
17901 $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
17902 if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
17903 $as_echo_n "(cached) " >&6
17905 ac_check_lib_save_LIBS=$LIBS
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17910 /* Override any GCC internal prototype to avoid an error.
17911 Use char because int might match the return type of a GCC
17912 builtin and then its argument prototype would still apply. */
17916 char gdImageCreateTrueColor ();
17920 return gdImageCreateTrueColor ();
17925 if ac_fn_c_try_link "$LINENO"; then :
17926 ac_cv_lib_gd_gdImageCreateTrueColor=yes
17928 ac_cv_lib_gd_gdImageCreateTrueColor=no
17930 rm -f core conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
17935 $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
17936 if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
17938 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
17939 if test "x$ac_cv_header_gd_h" = xyes; then :
17942 $as_echo "#define HAVE_GD 1" >>confdefs.h
17954 gp_config_msg_len="$(expr "GD conversion support" : '.*')"
17955 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17956 gp_config_msg_lhs="$(expr "GD conversion support" : "\(.\{0,${gp_config_len3}\}\)")..:"
17958 gp_config_msg_lhs="$(expr "GD conversion support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17960 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${libgd_msg}
17964 ac_header_dirent=no
17965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17966 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17968 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17969 if eval \${$as_ac_Header+:} false; then :
17970 $as_echo_n "(cached) " >&6
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974 #include <sys/types.h>
17986 if ac_fn_c_try_compile "$LINENO"; then :
17987 eval "$as_ac_Header=yes"
17989 eval "$as_ac_Header=no"
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993 eval ac_res=\$$as_ac_Header
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17995 $as_echo "$ac_res" >&6; }
17996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17997 cat >>confdefs.h <<_ACEOF
17998 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18001 ac_header_dirent=$ac_hdr; break
18005 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18006 if test $ac_header_dirent = dirent.h; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18008 $as_echo_n "checking for library containing opendir... " >&6; }
18009 if ${ac_cv_search_opendir+:} false; then :
18010 $as_echo_n "(cached) " >&6
18012 ac_func_search_save_LIBS=$LIBS
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18031 for ac_lib in '' dir; do
18032 if test -z "$ac_lib"; then
18033 ac_res="none required"
18036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18038 if ac_fn_c_try_link "$LINENO"; then :
18039 ac_cv_search_opendir=$ac_res
18041 rm -f core conftest.err conftest.$ac_objext \
18043 if ${ac_cv_search_opendir+:} false; then :
18047 if ${ac_cv_search_opendir+:} false; then :
18050 ac_cv_search_opendir=no
18052 rm conftest.$ac_ext
18053 LIBS=$ac_func_search_save_LIBS
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18056 $as_echo "$ac_cv_search_opendir" >&6; }
18057 ac_res=$ac_cv_search_opendir
18058 if test "$ac_res" != no; then :
18059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18065 $as_echo_n "checking for library containing opendir... " >&6; }
18066 if ${ac_cv_search_opendir+:} false; then :
18067 $as_echo_n "(cached) " >&6
18069 ac_func_search_save_LIBS=$LIBS
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18088 for ac_lib in '' x; do
18089 if test -z "$ac_lib"; then
18090 ac_res="none required"
18093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18095 if ac_fn_c_try_link "$LINENO"; then :
18096 ac_cv_search_opendir=$ac_res
18098 rm -f core conftest.err conftest.$ac_objext \
18100 if ${ac_cv_search_opendir+:} false; then :
18104 if ${ac_cv_search_opendir+:} false; then :
18107 ac_cv_search_opendir=no
18109 rm conftest.$ac_ext
18110 LIBS=$ac_func_search_save_LIBS
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18113 $as_echo "$ac_cv_search_opendir" >&6; }
18114 ac_res=$ac_cv_search_opendir
18115 if test "$ac_res" != no; then :
18116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18122 # before _HEADER_STDC
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18124 $as_echo_n "checking for ANSI C header files... " >&6; }
18125 if ${ac_cv_header_stdc+:} false; then :
18126 $as_echo_n "(cached) " >&6
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 #include <stdlib.h>
18131 #include <stdarg.h>
18132 #include <string.h>
18143 if ac_fn_c_try_compile "$LINENO"; then :
18144 ac_cv_header_stdc=yes
18146 ac_cv_header_stdc=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 if test $ac_cv_header_stdc = yes; then
18151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154 #include <string.h>
18157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18158 $EGREP "memchr" >/dev/null 2>&1; then :
18161 ac_cv_header_stdc=no
18167 if test $ac_cv_header_stdc = yes; then
18168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 #include <stdlib.h>
18174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18175 $EGREP "free" >/dev/null 2>&1; then :
18178 ac_cv_header_stdc=no
18184 if test $ac_cv_header_stdc = yes; then
18185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18186 if test "$cross_compiling" = yes; then :
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18192 #include <stdlib.h>
18193 #if ((' ' & 0x0FF) == 0x020)
18194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18197 # define ISLOWER(c) \
18198 (('a' <= (c) && (c) <= 'i') \
18199 || ('j' <= (c) && (c) <= 'r') \
18200 || ('s' <= (c) && (c) <= 'z'))
18201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18209 for (i = 0; i < 256; i++)
18210 if (XOR (islower (i), ISLOWER (i))
18211 || toupper (i) != TOUPPER (i))
18216 if ac_fn_c_try_run "$LINENO"; then :
18219 ac_cv_header_stdc=no
18221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18222 conftest.$ac_objext conftest.beam conftest.$ac_ext
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18228 $as_echo "$ac_cv_header_stdc" >&6; }
18229 if test $ac_cv_header_stdc = yes; then
18231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18235 # after _HEADER_STDC
18236 for ac_header in sys/param.h sys/select.h locale.h memory.h getopt.h unistd.h mcheck.h limits.h sys/time.h
18238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18241 cat >>confdefs.h <<_ACEOF
18242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18250 $as_echo_n "checking for inline... " >&6; }
18251 if ${ac_cv_c_inline+:} false; then :
18252 $as_echo_n "(cached) " >&6
18255 for ac_kw in inline __inline__ __inline; do
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18258 #ifndef __cplusplus
18260 static $ac_kw foo_t static_foo () {return 0; }
18261 $ac_kw foo_t foo () {return 0; }
18265 if ac_fn_c_try_compile "$LINENO"; then :
18266 ac_cv_c_inline=$ac_kw
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 test "$ac_cv_c_inline" != no && break
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18274 $as_echo "$ac_cv_c_inline" >&6; }
18276 case $ac_cv_c_inline in
18279 case $ac_cv_c_inline in
18281 *) ac_val=$ac_cv_c_inline;;
18283 cat >>confdefs.h <<_ACEOF
18284 #ifndef __cplusplus
18285 #define inline $ac_val
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18292 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18293 if ${ac_cv_c_const+:} false; then :
18294 $as_echo_n "(cached) " >&6
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18302 /* FIXME: Include the comments suggested by Paul. */
18303 #ifndef __cplusplus
18304 /* Ultrix mips cc rejects this. */
18305 typedef int charset[2];
18307 /* SunOS 4.1.1 cc rejects this. */
18308 char const *const *pcpcc;
18310 /* NEC SVR4.0.2 mips cc rejects this. */
18311 struct point {int x, y;};
18312 static struct point const zero = {0,0};
18313 /* AIX XL C 1.02.0.0 rejects this.
18314 It does not let you subtract one const X* pointer from another in
18315 an arm of an if-expression whose if-part is not a constant
18317 const char *g = "string";
18318 pcpcc = &g + (g ? g-g : 0);
18319 /* HPUX 7.0 cc rejects these. */
18321 ppc = (char**) pcpcc;
18322 pcpcc = (char const *const *) ppc;
18323 { /* SCO 3.2v4 cc rejects this. */
18325 char const *s = 0 ? (char *) 0 : (char const *) 0;
18330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18331 int x[] = {25, 17};
18332 const int *foo = &x[0];
18335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18336 typedef const int *iptr;
18340 { /* AIX XL C 1.02.0.0 rejects this saying
18341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18342 struct s { int j; const int *ap[3]; };
18343 struct s *b; b->j = 5;
18345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18346 const int foo = 10;
18347 if (!foo) return 0;
18349 return !cs[0] && !zero.x;
18356 if ac_fn_c_try_compile "$LINENO"; then :
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18364 $as_echo "$ac_cv_c_const" >&6; }
18365 if test $ac_cv_c_const = no; then
18367 $as_echo "#define const /**/" >>confdefs.h
18374 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18375 if test "x$ac_cv_type_size_t" = xyes; then :
18379 cat >>confdefs.h <<_ACEOF
18380 #define size_t unsigned int
18386 for ac_func in getopt getopt_long mkdir strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statfs
18388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18390 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18391 cat >>confdefs.h <<_ACEOF
18392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18400 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18401 if ${ac_cv_struct_tm+:} false; then :
18402 $as_echo_n "(cached) " >&6
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #include <sys/types.h>
18413 int *p = &tm.tm_sec;
18419 if ac_fn_c_try_compile "$LINENO"; then :
18420 ac_cv_struct_tm=time.h
18422 ac_cv_struct_tm=sys/time.h
18424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18427 $as_echo "$ac_cv_struct_tm" >&6; }
18428 if test $ac_cv_struct_tm = sys/time.h; then
18430 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18436 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18440 #include <sys/types.h>
18441 #include <$ac_cv_struct_tm>
18454 if ac_fn_c_try_compile "$LINENO"; then :
18457 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18460 $as_echo "yes" >&6; }
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18465 $as_echo "no" >&6; }
18468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
18472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18474 #include <sys/types.h>
18475 #if HAVE_SYS_PARAM_H
18476 # include <sys/param.h>
18480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18481 cat >>confdefs.h <<_ACEOF
18482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18490 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "
18491 #include <sys/types.h>
18492 #ifdef HAVE_SYS_PARAM_H
18493 # include <sys/param.h>
18495 #ifdef HAVE_SYS_MOUNT_H
18496 # include <sys/mount.h>
18498 #ifdef HAVE_SYS_VFS_H
18499 # include <sys/vfs.h>
18501 #ifdef HAVE_SYS_STATFS_H
18502 # include <sys/statfs.h>
18506 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
18508 cat >>confdefs.h <<_ACEOF
18509 #define HAVE_STRUCT_STATFS_F_BFREE 1
18514 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "
18515 #include <sys/types.h>
18516 #ifdef HAVE_SYS_PARAM_H
18517 # include <sys/param.h>
18519 #ifdef HAVE_SYS_MOUNT_H
18520 # include <sys/mount.h>
18522 #ifdef HAVE_SYS_VFS_H
18523 # include <sys/vfs.h>
18525 #ifdef HAVE_SYS_STATFS_H
18526 # include <sys/statfs.h>
18530 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
18532 cat >>confdefs.h <<_ACEOF
18533 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18538 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "
18539 #include <sys/types.h>
18540 #ifdef HAVE_SYS_PARAM_H
18541 # include <sys/param.h>
18543 #ifdef HAVE_SYS_MOUNT_H
18544 # include <sys/mount.h>
18546 #ifdef HAVE_SYS_VFS_H
18547 # include <sys/vfs.h>
18549 #ifdef HAVE_SYS_STATFS_H
18550 # include <sys/statfs.h>
18554 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18564 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "
18565 #ifdef HAVE_SYS_STATVFS_H
18566 # include <sys/statvfs.h>
18570 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
18572 cat >>confdefs.h <<_ACEOF
18573 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18584 ac_dir=`echo "libgphoto2/_stdint.h"|sed 's%/[^/][^/]*$%%'`
18585 if test "$ac_dir" != "libgphoto2/_stdint.h" && test "$ac_dir" != .; then
18586 # The file is in a subdirectory.
18587 test ! -d "$ac_dir" && mkdir "$ac_dir"
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
18591 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18594 #include <stdint.h>
18596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18597 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18598 ac_cv_type_uint8_t=yes
18600 ac_cv_type_uint8_t=no
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18604 $as_echo "$ac_cv_type_uint8_t" >&6; }
18605 if test $ac_cv_type_uint8_t = yes; then
18607 cat > "libgphoto2/_stdint.h" <<EOF
18608 /* This file is generated automatically by configure */
18609 #include <stdint.h>
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
18613 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616 #include <inttypes.h>
18618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18619 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18620 ac_cv_type_uint8_t=yes
18622 ac_cv_type_uint8_t=no
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18626 $as_echo "$ac_cv_type_uint8_t" >&6; }
18627 if test $ac_cv_type_uint8_t = yes; then
18628 cat > "libgphoto2/_stdint.h" <<EOF
18629 /* This file is generated automatically by configure */
18630 #include <inttypes.h>
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
18634 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637 #include <sys/types.h>
18639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18640 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18641 ac_cv_type_uint8_t=yes
18643 ac_cv_type_uint8_t=no
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18647 $as_echo "$ac_cv_type_uint8_t" >&6; }
18648 if test $ac_cv_type_uint8_t = yes; then
18649 cat > "libgphoto2/_stdint.h" <<EOF
18650 /* This file is generated automatically by configure */
18651 #include <sys/types.h>
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
18655 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18658 #include <sys/types.h>
18660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18661 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18662 ac_cv_type_u_int8_t=yes
18664 ac_cv_type_u_int8_t=no
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
18668 $as_echo "$ac_cv_type_u_int8_t" >&6; }
18669 if test $ac_cv_type_u_int8_t = yes; then
18670 cat > "libgphoto2/_stdint.h" <<EOF
18671 /* This file is generated automatically by configure */
18674 #include <sys/types.h>
18675 typedef u_int8_t uint8_t;
18676 typedef u_int16_t uint16_t;
18677 typedef u_int32_t uint32_t;
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
18681 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 #include <sys/types.h>
18686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18687 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18688 ac_cv_type_u_int64_t=yes
18690 ac_cv_type_u_int64_t=no
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
18694 $as_echo "$ac_cv_type_u_int64_t" >&6; }
18695 if test $ac_cv_type_u_int64_t = yes; then
18696 cat >> "libgphoto2/_stdint.h" <<EOF
18697 typedef u_int64_t uint64_t;
18698 #endif /*!__STDINT_H*/
18701 cat >> "libgphoto2/_stdint.h" <<EOF
18702 /* 64-bit types are not available on this system */
18703 /* typedef u_int64_t uint64_t; */
18704 #endif /*!__STDINT_H*/
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
18712 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
18713 if test -e "libgphoto2/_stdint.h" ; then
18714 rm -f "libgphoto2/_stdint.h"
18727 ac_dir=`$as_dirname -- "libgphoto2/gphoto2-endian.h" ||
18728 $as_expr X"libgphoto2/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18729 X"libgphoto2/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
18730 X"libgphoto2/gphoto2-endian.h" : 'X\(//\)$' \| \
18731 X"libgphoto2/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
18732 $as_echo X"libgphoto2/gphoto2-endian.h" |
18733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18737 /^X\(\/\/\)[^/].*/{
18750 if test "$ac_dir" != "libgphoto2/gphoto2-endian.h" && test "$ac_dir" != .; then
18751 # The file is in a subdirectory.
18752 test ! -d "$ac_dir" && as_dir="$ac_dir"; as_fn_mkdir_p
18755 # We're only interested in the target CPU, but it's not always set
18756 effective_target="$target"
18757 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
18758 effective_target="$host"
18762 cat > "libgphoto2/gphoto2-endian.h" << EOF
18763 /* This file is generated automatically by configure */
18764 /* It is valid only for the system type ${effective_target} */
18766 #ifndef __BYTEORDER_H
18767 #define __BYTEORDER_H
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18772 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18773 if ${ac_cv_c_bigendian+:} false; then :
18774 $as_echo_n "(cached) " >&6
18776 ac_cv_c_bigendian=unknown
18777 # See if we're dealing with a universal compiler.
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18780 #ifndef __APPLE_CC__
18781 not a universal capable compiler
18786 if ac_fn_c_try_compile "$LINENO"; then :
18788 # Check for potential -arch flags. It is not universal unless
18789 # there are at least two -arch flags with different values.
18792 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18793 if test -n "$ac_prev"; then
18795 i?86 | x86_64 | ppc | ppc64)
18796 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18799 ac_cv_c_bigendian=universal
18805 elif test "x$ac_word" = "x-arch"; then
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 if test $ac_cv_c_bigendian = unknown; then
18812 # See if sys/param.h defines the BYTE_ORDER macro.
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #include <sys/types.h>
18816 #include <sys/param.h>
18821 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18822 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18824 bogus endian macros
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832 # It does; now see whether it defined to BIG_ENDIAN or not.
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835 #include <sys/types.h>
18836 #include <sys/param.h>
18841 #if BYTE_ORDER != BIG_ENDIAN
18849 if ac_fn_c_try_compile "$LINENO"; then :
18850 ac_cv_c_bigendian=yes
18852 ac_cv_c_bigendian=no
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18858 if test $ac_cv_c_bigendian = unknown; then
18859 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18862 #include <limits.h>
18867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18868 bogus endian macros
18875 if ac_fn_c_try_compile "$LINENO"; then :
18876 # It does; now see whether it defined to _BIG_ENDIAN or not.
18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18879 #include <limits.h>
18884 #ifndef _BIG_ENDIAN
18892 if ac_fn_c_try_compile "$LINENO"; then :
18893 ac_cv_c_bigendian=yes
18895 ac_cv_c_bigendian=no
18897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18901 if test $ac_cv_c_bigendian = unknown; then
18902 # Compile a test program.
18903 if test "$cross_compiling" = yes; then :
18904 # Try to guess by grepping values from an object file.
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907 short int ascii_mm[] =
18908 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18909 short int ascii_ii[] =
18910 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18911 int use_ascii (int i) {
18912 return ascii_mm[i] + ascii_ii[i];
18914 short int ebcdic_ii[] =
18915 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18916 short int ebcdic_mm[] =
18917 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18918 int use_ebcdic (int i) {
18919 return ebcdic_mm[i] + ebcdic_ii[i];
18926 return use_ascii (foo) == use_ebcdic (foo);
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18933 ac_cv_c_bigendian=yes
18935 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18936 if test "$ac_cv_c_bigendian" = unknown; then
18937 ac_cv_c_bigendian=no
18939 # finding both strings is unlikely to happen, but who knows?
18940 ac_cv_c_bigendian=unknown
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948 $ac_includes_default
18953 /* Are we little or big endian? From Harbison&Steele. */
18957 char c[sizeof (long int)];
18960 return u.c[sizeof (long int) - 1] == 1;
18966 if ac_fn_c_try_run "$LINENO"; then :
18967 ac_cv_c_bigendian=no
18969 ac_cv_c_bigendian=yes
18971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18972 conftest.$ac_objext conftest.beam conftest.$ac_ext
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18978 $as_echo "$ac_cv_c_bigendian" >&6; }
18979 case $ac_cv_c_bigendian in #(
18981 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18987 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18991 as_fn_error $? "unknown endianness
18992 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
18998 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19002 #include <machine/endian.h>
19008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19009 $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19011 $as_echo "yes" >&6; }
19013 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19014 /* extended byte swapping macros are already available */
19015 #include <machine/endian.h>
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
19026 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19030 #include <arpa/inet.h>
19036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19037 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19040 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19041 /* ntohl and relatives live here */
19042 #include <arpa/inet.h>
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048 $as_echo "no" >&6; }
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
19051 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19055 #include <netinet/in.h>
19061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19062 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19065 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19066 /* ntohl and relatives live here */
19067 #include <netinet/in.h>
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073 $as_echo "no" >&6; }
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
19092 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19096 #include <machine/endian.h>
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103 $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19105 $as_echo "yes" >&6; }
19106 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19107 /* swap32 and swap16 are defined in machine/endian.h */
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
19117 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19121 #include <byteswap.h>
19127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19128 $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19130 $as_echo "yes" >&6; }
19131 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19132 /* Define generic byte swapping functions */
19133 #include <byteswap.h>
19134 #define swap16(x) bswap_16(x)
19135 #define swap32(x) bswap_32(x)
19136 #define swap64(x) bswap_64(x)
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
19146 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19150 #include <machine/endian.h>
19156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19157 $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19159 $as_echo "yes" >&6; }
19160 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19161 /* Define generic byte swapping functions */
19163 if test "$HAVE_LE32TOH" != "1"; then
19164 echo '#include <machine/endian.h>'>> "libgphoto2/gphoto2-endian.h"
19166 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19167 #define swap16(x) bswap16(x)
19168 #define swap32(x) bswap32(x)
19169 #define swap64(x) bswap64(x)
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
19179 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19183 #include <sys/types.h>
19184 #ifdef __byte_swap_long
19189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19190 $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19192 $as_echo "yes" >&6; }
19193 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19194 /* Define generic byte swapping functions */
19195 #include <sys/types.h>
19196 #define swap16(x) __byte_swap_word(x)
19197 #define swap32(x) __byte_swap_long(x)
19198 /* No optimized 64 bit byte swapping macro is available */
19199 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19200 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19201 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19202 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
19203 ((x) >> 8) & 0x00000000ff000000ULL | \\
19204 ((x) >> 24) & 0x0000000000ff0000ULL | \\
19205 ((x) >> 40) & 0x000000000000ff00ULL | \\
19206 ((x) >> 56) & 0x00000000000000ffULL))
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
19216 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218 /* end confdefs.h. */
19220 #include <machine/byte_order.h>
19226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19227 $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19230 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19231 /* Define generic byte swapping functions */
19232 #include <machine/byte_order.h>
19233 #define swap16(x) NXSwapShort(x)
19234 #define swap32(x) NXSwapLong(x)
19235 #define swap64(x) NXSwapLongLong(x)
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19243 if test $ac_cv_c_bigendian = yes; then
19244 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19245 /* No other byte swapping functions are available on this big-endian system */
19246 #define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
19247 #define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
19248 ((uint32_t)(x) << 8) & 0x00ff0000UL | \\
19249 ((x) >> 8) & 0x0000ff00UL | \\
19250 ((x) >> 24) & 0x000000ffUL))
19251 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19252 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19253 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19254 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
19255 ((x) >> 8) & 0x00000000ff000000ULL | \\
19256 ((x) >> 24) & 0x0000000000ff0000ULL | \\
19257 ((x) >> 40) & 0x000000000000ff00ULL | \\
19258 ((x) >> 56) & 0x00000000000000ffULL))
19262 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19263 /* Use these as generic byteswapping macros on this little endian system */
19264 #define swap16(x) ntohs(x)
19265 #define swap32(x) ntohl(x)
19266 /* No optimized 64 bit byte swapping macro is available */
19267 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19268 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19269 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19270 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
19271 ((x) >> 8) & 0x00000000ff000000ULL | \\
19272 ((x) >> 24) & 0x0000000000ff0000ULL | \\
19273 ((x) >> 40) & 0x000000000000ff00ULL | \\
19274 ((x) >> 56) & 0x00000000000000ffULL))
19306 if test "$HAVE_LE32TOH" != "1"; then
19307 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19308 /* The byte swapping macros have the form: */
19309 /* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
19310 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
19311 /* if present, indicates that the endian side is a pointer to an */
19312 /* array of uint8_t bytes instead of an integer of the specified length. */
19313 /* h refers to the host's ordering method. */
19315 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
19316 /* format into a uint32_t usable on this machine, you could use: */
19317 /* uint32_t value = le32atoh(&buf[3]); */
19318 /* To put that value back into the buffer, you could use: */
19319 /* htole32a(&buf[3], value); */
19321 /* Define aliases for the standard byte swapping macros */
19322 /* Arguments to these macros must be properly aligned on natural word */
19323 /* boundaries in order to work properly on all architectures */
19325 # define htobe16(x) htons(x)
19328 # define htobe32(x) htonl(x)
19331 # define be16toh(x) ntohs(x)
19334 # define be32toh(x) ntohl(x)
19337 #define HTOBE16(x) (x) = htobe16(x)
19338 #define HTOBE32(x) (x) = htobe32(x)
19339 #define BE32TOH(x) (x) = be32toh(x)
19340 #define BE16TOH(x) (x) = be16toh(x)
19344 if test $ac_cv_c_bigendian = yes; then
19345 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19346 /* Define our own extended byte swapping macros for big-endian machines */
19348 # define htole16(x) swap16(x)
19351 # define htole32(x) swap32(x)
19354 # define le16toh(x) swap16(x)
19357 # define le32toh(x) swap32(x)
19360 # define le64toh(x) swap64(x)
19364 # define htobe64(x) (x)
19367 # define be64toh(x) (x)
19370 #define HTOLE16(x) (x) = htole16(x)
19371 #define HTOLE32(x) (x) = htole32(x)
19372 #define LE16TOH(x) (x) = le16toh(x)
19373 #define LE32TOH(x) (x) = le32toh(x)
19374 #define LE64TOH(x) (x) = le64toh(x)
19376 #define HTOBE64(x) (void) (x)
19377 #define BE64TOH(x) (void) (x)
19381 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19382 /* On little endian machines, these macros are null */
19384 # define htole16(x) (x)
19387 # define htole32(x) (x)
19390 # define htole64(x) (x)
19393 # define le16toh(x) (x)
19396 # define le32toh(x) (x)
19399 # define le64toh(x) (x)
19402 #define HTOLE16(x) (void) (x)
19403 #define HTOLE32(x) (void) (x)
19404 #define HTOLE64(x) (void) (x)
19405 #define LE16TOH(x) (void) (x)
19406 #define LE32TOH(x) (void) (x)
19407 #define LE64TOH(x) (void) (x)
19409 /* These don't have standard aliases */
19411 # define htobe64(x) swap64(x)
19414 # define be64toh(x) swap64(x)
19417 #define HTOBE64(x) (x) = htobe64(x)
19418 #define BE64TOH(x) (x) = be64toh(x)
19424 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19425 /* Define the C99 standard length-specific integer types */
19426 #include <_stdint.h>
19430 case "${effective_target}" in
19432 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19433 /* Here are some macros to create integers from a byte array */
19434 /* These are used to get and put integers from/into a uint8_t array */
19435 /* with a specific endianness. This is the most portable way to generate */
19436 /* and read messages to a network or serial device. Each member of a */
19437 /* packet structure must be handled separately. */
19439 /* The i386 and compatibles can handle unaligned memory access, */
19440 /* so use the optimized macros above to do this job */
19442 # define be16atoh(x) be16toh(*(uint16_t*)(x))
19445 # define be32atoh(x) be32toh(*(uint32_t*)(x))
19448 # define be64atoh(x) be64toh(*(uint64_t*)(x))
19451 # define le16atoh(x) le16toh(*(uint16_t*)(x))
19454 # define le32atoh(x) le32toh(*(uint32_t*)(x))
19457 # define le64atoh(x) le64toh(*(uint64_t*)(x))
19461 # define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x)
19464 # define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x)
19467 # define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x)
19470 # define htole16a(a,x) *(uint16_t*)(a) = htole16(x)
19473 # define htole32a(a,x) *(uint32_t*)(a) = htole32(x)
19476 # define htole64a(a,x) *(uint64_t*)(a) = htole64(x)
19483 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19484 /* Here are some macros to create integers from a byte array */
19485 /* These are used to get and put integers from/into a uint8_t array */
19486 /* with a specific endianness. This is the most portable way to generate */
19487 /* and read messages to a network or serial device. Each member of a */
19488 /* packet structure must be handled separately. */
19490 /* Non-optimized but portable macros */
19491 #define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1]))
19492 #define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
19493 #define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<<shift)
19494 #define be64atoh(x) ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
19495 be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
19496 #define le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0]))
19497 #define le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
19498 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
19499 #define le64atoh(x) ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
19500 le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
19502 #define htobe16a(a,x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
19503 #define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
19504 (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
19505 #define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
19506 (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
19507 (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
19508 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
19509 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19510 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
19511 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19512 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
19513 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
19514 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
19515 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19522 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19523 #endif /*__BYTEORDER_H*/
19534 if test "x${utilsdir}" = "x"; then utilsdir="\${libdir}/\${PACKAGE_TARNAME}"; fi
19538 if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi
19541 if if echo "$host"|grep -i linux >/dev/null ; then true; fi ; then
19543 HAVE_UDEV_FALSE='#'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install camlibs" >&5
19553 $as_echo_n "checking where to install camlibs... " >&6; }
19555 # Check whether --with-camlibdir was given.
19556 if test "${with_camlibdir+set}" = set; then :
19557 withval=$with_camlibdir;
19558 camlibdir="$withval"
19562 camlibdir="\${libdir}/${PACKAGE_TARNAME}/${PACKAGE_VERSION}"
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${camlibdir}" >&5
19567 $as_echo "${camlibdir}" >&6; }
19569 AM_CPPFLAGS="$AM_CPPFLAGS -DCAMLIBS=\\\"\$(camlibdir)\\\""
19571 CAMLIB_LDFLAGS="-module -no-undefined -avoid-version -export-dynamic"
19572 CAMLIB_LDFLAGS="$CAMLIB_LDFLAGS -export-symbols \$(top_srcdir)/camlibs/camlib.sym"
19573 CAMLIB_LDFLAGS=${CAMLIB_LDFLAGS}
19575 CAMLIB_LIBS="\$(top_builddir)/libgphoto2/libgphoto2.la"
19580 # GP_CAMLIB(agfa_cl20)
19583 # GP_CAMLIB(barbie)
19585 # GP_CAMLIB(casio_qv)
19586 # GP_CAMLIB(clicksmart310)
19587 # GP_CAMLIB(digigr8)
19588 # GP_CAMLIB(digita)
19589 # GP_CAMLIB(dimera3500)
19590 # GP_CAMLIB(directory)
19591 # GP_CAMLIB(enigma13)
19592 # GP_CAMLIB(gsmart300)
19594 # GP_CAMLIB(iclick)
19595 # GP_CAMLIB(jamcam)
19597 # GP_CAMLIB(jl2005a)
19598 # GP_CAMLIB(kodak_dc120)
19599 # GP_CAMLIB(kodak_dc210)
19600 # GP_CAMLIB(kodak_dc240)
19601 # GP_CAMLIB(kodak_ez200)
19602 # GP_CAMLIB(largan)
19603 # GP_CAMLIB(lg_gsm)
19605 # GP_CAMLIB(panasonic_coolshot)
19606 # GP_CAMLIB(panasonic_l859)
19607 # GP_CAMLIB(panasonic_dc1000)
19608 # GP_CAMLIB(panasonic_dc1580)
19609 # GP_CAMLIB(pccam300)
19610 # GP_CAMLIB(pccam600)
19611 # GP_CAMLIB(polaroid_pdc320)
19612 # GP_CAMLIB(polaroid_pdc640)
19613 # GP_CAMLIB(polaroid_pdc700)
19616 # GP_CAMLIB(ricoh_g3)
19617 # GP_CAMLIB(samsung)
19618 # GP_CAMLIB(sierra)
19619 # GP_CAMLIB(sipix_blink,obsolete)
19620 # GP_CAMLIB(sipix_blink2)
19621 # GP_CAMLIB(sipix_web2)
19624 # GP_CAMLIB(sony_dscf1)
19625 # GP_CAMLIB(sony_dscf55)
19626 # GP_CAMLIB(soundvision)
19627 # GP_CAMLIB(spca50x)
19629 # GP_CAMLIB(st2205)
19630 # GP_CAMLIB(stv0674)
19631 # GP_CAMLIB(sx330z)
19632 # GP_CAMLIB(template,obsolete)
19633 # GP_CAMLIB(toshiba_pdrm11)
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which drivers to compile" >&5
19635 $as_echo_n "checking which drivers to compile... " >&6; }
19637 # Check whether --with-drivers was given.
19638 if test "${with_drivers+set}" = set; then :
19639 withval=$with_drivers; drivers="$withval"
19643 ALL_DEFINED_CAMLIBS="agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimera3500 directory enigma13 gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_ez200 largan lg_gsm mars panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 sx330z toshiba_pdrm11 sipix_blink template"
19644 ALL_CURRENT_CAMLIBS="agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimera3500 directory enigma13 gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_ez200 largan lg_gsm mars panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 sx330z toshiba_pdrm11"
19645 BUILD_THESE_CAMLIBS_BASE=""
19646 if test "$drivers" = "all"; then
19647 BUILD_THESE_CAMLIBS_BASE="$ALL_CURRENT_CAMLIBS"
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
19649 $as_echo "all" >&6; }
19651 # drivers=$(echo $drivers | sed 's/,/ /g')
19654 for driver in $drivers; do
19657 for camlib in ${ALL_DEFINED_CAMLIBS}; do
19658 if test "$driver" = "$camlib"; then
19659 BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE $driver"
19664 if $found; then :; else
19665 as_fn_error $? "Unknown driver $driver!" "$LINENO" 5
19668 if test "x$BUILD_THESE_CAMLIBS_BASE" = "x canon" ; then
19669 # Gentoo mode... if user just said "canon", add "ptp2" ... should save support requests.
19670 BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE ptp2"
19671 camlibs="$camlibs ptp2"
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19673 You have just selected the old canon driver. However most current Canons
19674 are supported by the PTP2 driver.
19675 Autoselecting ptp2 driver too to avoid support requests.
19677 $as_echo "$as_me: WARNING:
19678 You have just selected the old canon driver. However most current Canons
19679 are supported by the PTP2 driver.
19680 Autoselecting ptp2 driver too to avoid support requests.
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drivers" >&5
19685 $as_echo "$drivers" >&6; }
19687 BUILD_THESE_CAMLIBS=""
19688 for f in $BUILD_THESE_CAMLIBS_BASE
19690 BUILD_THESE_CAMLIBS="${BUILD_THESE_CAMLIBS}${BUILD_THESE_CAMLIBS+ }${f}.la"
19699 # Check whether --with-doc-dir was given.
19700 if test "${with_doc_dir+set}" = set; then :
19701 withval=$with_doc_dir;
19705 # check for the main ("root") documentation directory
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
19707 $as_echo_n "checking main docdir... " >&6; }
19709 if test "x${with_doc_dir}" != "x"
19710 then # docdir is given as parameter
19711 docdir="${with_doc_dir}"
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
19713 $as_echo "${docdir} (from parameter)" >&6; }
19714 else # otherwise invent a docdir hopefully compatible with system policy
19715 if test -d "/usr/share/doc"
19717 maindocdir='${prefix}/share/doc'
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
19719 $as_echo "${maindocdir} (FHS style)" >&6; }
19720 elif test -d "/usr/doc"
19722 maindocdir='${prefix}/doc'
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
19724 $as_echo "${maindocdir} (old style)" >&6; }
19726 maindocdir='${datadir}/doc'
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
19728 $as_echo "${maindocdir} (default value)" >&6; }
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
19731 $as_echo_n "checking package docdir... " >&6; }
19732 # check whether to include package version into documentation path
19733 # FIXME: doesn't work properly.
19734 if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
19736 docdir="${maindocdir}/${PACKAGE}-${VERSION}"
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
19738 $as_echo "${docdir} (redhat style)" >&6; }
19740 docdir="${maindocdir}/${PACKAGE}"
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
19742 $as_echo "${docdir} (default style)" >&6; }
19747 # Extract the first word of "dot", so it can be a program name with args.
19748 set dummy dot; ac_word=$2
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19750 $as_echo_n "checking for $ac_word... " >&6; }
19751 if ${ac_cv_path_DOT+:} false; then :
19752 $as_echo_n "(cached) " >&6
19756 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19763 test -z "$as_dir" && as_dir=.
19764 for ac_exec_ext in '' $ac_executable_extensions; do
19765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19774 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
19778 DOT=$ac_cv_path_DOT
19779 if test -n "$DOT"; then
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19781 $as_echo "$DOT" >&6; }
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19784 $as_echo "no" >&6; }
19788 # Extract the first word of "doxygen", so it can be a program name with args.
19789 set dummy doxygen; ac_word=$2
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19791 $as_echo_n "checking for $ac_word... " >&6; }
19792 if ${ac_cv_path_DOXYGEN+:} false; then :
19793 $as_echo_n "(cached) " >&6
19797 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19801 for as_dir in $PATH
19804 test -z "$as_dir" && as_dir=.
19805 for ac_exec_ext in '' $ac_executable_extensions; do
19806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19807 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19815 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
19819 DOXYGEN=$ac_cv_path_DOXYGEN
19820 if test -n "$DOXYGEN"; then
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19822 $as_echo "$DOXYGEN" >&6; }
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19825 $as_echo "no" >&6; }
19829 if test "x$DOXYGEN" != "xfalse"; then
19831 HAVE_DOXYGEN_FALSE='#'
19833 HAVE_DOXYGEN_TRUE='#'
19834 HAVE_DOXYGEN_FALSE=
19837 if test "x$DOT" != "xfalse"; then
19845 if test "x$DOT" != "xfalse"; then
19852 HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html"
19854 DOXYGEN_OUTPUT_DIR=doxygen-output
19856 HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html"
19859 # docdir has to be determined in advance
19862 # ---------------------------------------------------------------------------
19863 # gtk-doc: We use gtk-doc for building our documentation. However, we
19864 # require the user to explicitely request the build.
19865 # ---------------------------------------------------------------------------
19867 gtkdoc_msg="no (not requested)"
19869 # Check whether --enable-docs was given.
19870 if test "${enable_docs+set}" = set; then :
19871 enableval=$enable_docs;
19872 if test x$enableval = xyes; then
19878 if $try_gtkdoc; then
19879 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
19880 set dummy gtkdoc-mkdb; ac_word=$2
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19882 $as_echo_n "checking for $ac_word... " >&6; }
19883 if ${ac_cv_path_GTKDOC+:} false; then :
19884 $as_echo_n "(cached) " >&6
19888 ac_cv_path_GTKDOC="$GTKDOC" # Let the user override the test with a path.
19891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892 for as_dir in $PATH
19895 test -z "$as_dir" && as_dir=.
19896 for ac_exec_ext in '' $ac_executable_extensions; do
19897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19898 ac_cv_path_GTKDOC="$as_dir/$ac_word$ac_exec_ext"
19899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19909 GTKDOC=$ac_cv_path_GTKDOC
19910 if test -n "$GTKDOC"; then
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
19912 $as_echo "$GTKDOC" >&6; }
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915 $as_echo "no" >&6; }
19919 if test -n "${GTKDOC}"; then
19923 gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)"
19926 if $have_gtkdoc; then
19927 ENABLE_GTK_DOC_TRUE=
19928 ENABLE_GTK_DOC_FALSE='#'
19930 ENABLE_GTK_DOC_TRUE='#'
19931 ENABLE_GTK_DOC_FALSE=
19935 gp_config_msg_len="$(expr "build API docs with gtk-doc" : '.*')"
19936 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
19937 gp_config_msg_lhs="$(expr "build API docs with gtk-doc" : "\(.\{0,${gp_config_len3}\}\)")..:"
19939 gp_config_msg_lhs="$(expr "build API docs with gtk-doc:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
19941 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} $gtkdoc_msg
19946 # ---------------------------------------------------------------------------
19947 # Give the user the possibility to install html documentation in a
19948 # user-defined location.
19949 # ---------------------------------------------------------------------------
19951 # Check whether --with-html-dir was given.
19952 if test "${with_html_dir+set}" = set; then :
19953 withval=$with_html_dir;
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html dir" >&5
19958 $as_echo_n "checking for html dir... " >&6; }
19959 if test "x${with_html_dir}" = "x" ; then
19960 htmldir="${docdir}/html"
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (default)" >&5
19962 $as_echo "${htmldir} (default)" >&6; }
19964 htmldir="${with_html_dir}"
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (from parameter)" >&5
19966 $as_echo "${htmldir} (from parameter)" >&6; }
19969 apidocdir="${htmldir}/api"
19972 camlibdocdir='${docdir}/camlibs'
19978 # Check whether --with-rpmbuild was given.
19979 if test "${with_rpmbuild+set}" = set; then :
19980 withval=$with_rpmbuild;
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
19985 $as_echo_n "checking for rpmbuild or rpm... " >&6; }
19986 if test -x "${with_rpmbuild}"
19988 RPMBUILD="${with_rpmbuild}"
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (from parameter)" >&5
19990 $as_echo "${RPMBUILD} (from parameter)" >&6; }
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using autodetection" >&5
19993 $as_echo "using autodetection" >&6; }
19994 for ac_prog in rpmbuild rpm
19996 # Extract the first word of "$ac_prog", so it can be a program name with args.
19997 set dummy $ac_prog; ac_word=$2
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19999 $as_echo_n "checking for $ac_word... " >&6; }
20000 if ${ac_cv_prog_RPMBUILD+:} false; then :
20001 $as_echo_n "(cached) " >&6
20003 if test -n "$RPMBUILD"; then
20004 ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20010 test -z "$as_dir" && as_dir=.
20011 for ac_exec_ext in '' $ac_executable_extensions; do
20012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20013 ac_cv_prog_RPMBUILD="$ac_prog"
20014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20023 RPMBUILD=$ac_cv_prog_RPMBUILD
20024 if test -n "$RPMBUILD"; then
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
20026 $as_echo "$RPMBUILD" >&6; }
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20033 test -n "$RPMBUILD" && break
20035 test -n "$RPMBUILD" || RPMBUILD="false"
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
20038 $as_echo_n "checking for rpmbuild or rpm... " >&6; }
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (autodetected)" >&5
20040 $as_echo "${RPMBUILD} (autodetected)" >&6; }
20043 if test "$RPMBUILD" != "false"; then
20045 ENABLE_RPM_FALSE='#'
20047 ENABLE_RPM_TRUE='#'
20053 # effective_target has to be determined in advance
20057 case "$effective_target" in
20062 if "$is_linux"; then
20064 HAVE_LINUX_FALSE='#'
20066 HAVE_LINUX_TRUE='#'
20071 # required for docdir
20072 # FIXME: Implicit dependency
20073 # AC_REQUIRE(GP_CHECK_DOC_DIR)
20076 # Check whether --with-hotplug-doc-dir was given.
20077 if test "${with_hotplug_doc_dir+set}" = set; then :
20078 withval=$with_hotplug_doc_dir;
20082 if "$is_linux"; then
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug doc dir" >&5
20084 $as_echo_n "checking for hotplug doc dir... " >&6; }
20085 if test "x${with_hotplug_doc_dir}" != "x"
20086 then # given as parameter
20087 hotplugdocdir="${with_hotplug_doc_dir}"
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (from parameter)" >&5
20089 $as_echo "${hotplugdocdir} (from parameter)" >&6; }
20090 else # start at docdir
20091 hotplugdocdir="${docdir}/linux-hotplug"
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (default)" >&5
20093 $as_echo "${hotplugdocdir} (default)" >&6; }
20100 # Check whether --with-hotplug-usermap-dir was given.
20101 if test "${with_hotplug_usermap_dir+set}" = set; then :
20102 withval=$with_hotplug_usermap_dir;
20106 if "$is_linux"; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug usermap dir" >&5
20108 $as_echo_n "checking for hotplug usermap dir... " >&6; }
20109 if test "x${with_hotplug_usermap_dir}" != "x"
20110 then # given as parameter
20111 hotplugusermapdir="${with_hotplug_usermap_dir}"
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (from parameter)" >&5
20113 $as_echo "${hotplugusermapdir} (from parameter)" >&6; }
20114 else # start at docdir
20115 hotplugusermapdir="${docdir}/linux-hotplug"
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (default)" >&5
20117 $as_echo "${hotplugusermapdir} (default)" >&6; }
20120 hotplugusermapdir=""
20123 # Let us hope that automake does not create "" directories
20124 # on non-Linux systems now.
20129 pkgconfigdir='${libdir}/pkgconfig'
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
20134 $as_echo_n "checking for dynamic library extension... " >&6; }
20137 *linux*) soext=".so" ;;
20138 *sunos*) soext=".so" ;;
20139 *solaris*) soext=".so" ;;
20140 *bsd*) soext=".so" ;;
20141 *darwin*) soext=".dylib" ;;
20142 *w32*) soext=".dll" ;;
20144 if test "x$soext" = "x"; then
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
20147 $as_echo "${soext}" >&6; }
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20149 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
20151 $as_echo "$as_me: WARNING:
20152 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
20156 $as_echo "${soext}" >&6; }
20165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20166 if test -n "$ac_tool_prefix"; then
20167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20170 $as_echo_n "checking for $ac_word... " >&6; }
20171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20172 $as_echo_n "(cached) " >&6
20174 case $PKG_CONFIG in
20176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20180 for as_dir in $PATH
20183 test -z "$as_dir" && as_dir=.
20184 for ac_exec_ext in '' $ac_executable_extensions; do
20185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20198 if test -n "$PKG_CONFIG"; then
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20200 $as_echo "$PKG_CONFIG" >&6; }
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20203 $as_echo "no" >&6; }
20208 if test -z "$ac_cv_path_PKG_CONFIG"; then
20209 ac_pt_PKG_CONFIG=$PKG_CONFIG
20210 # Extract the first word of "pkg-config", so it can be a program name with args.
20211 set dummy pkg-config; ac_word=$2
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20213 $as_echo_n "checking for $ac_word... " >&6; }
20214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20215 $as_echo_n "(cached) " >&6
20217 case $ac_pt_PKG_CONFIG in
20219 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in $PATH
20226 test -z "$as_dir" && as_dir=.
20227 for ac_exec_ext in '' $ac_executable_extensions; do
20228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20229 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20241 if test -n "$ac_pt_PKG_CONFIG"; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20246 $as_echo "no" >&6; }
20249 if test "x$ac_pt_PKG_CONFIG" = x; then
20252 case $cross_compiling:$ac_tool_warned in
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20256 ac_tool_warned=yes ;;
20258 PKG_CONFIG=$ac_pt_PKG_CONFIG
20261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20265 if test -n "$PKG_CONFIG"; then
20266 _pkg_min_version=0.9.0
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20269 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20271 $as_echo "yes" >&6; }
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20274 $as_echo "no" >&6; }
20279 # ----------------------------------------------------------------------
20280 # [GP_CHECK_LIBRARY]([LIBEXIF],[libexif],[>= 0.6.13],
20281 # [libexif/exif-data.h],[exif_data_new],
20282 # [...],[...],[default-on])
20283 # http://www.sourceforge.net/projects/libexif
20284 # ----------------------------------------------------------------------
20285 # Use _CFLAGS and _LIBS given to configure.
20286 # This makes it possible to set these vars in a configure script
20287 # and AC_CONFIG_SUBDIRS this configure.
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif to use" >&5
20289 $as_echo_n "checking for libexif to use... " >&6; }
20290 REQUIREMENTS_FOR_LIBEXIF="libexif >= 0.6.13"
20293 if test "x${LIBEXIF_LIBS}" = "x" && test "x${LIBEXIF_CFLAGS}" = "x"; then
20294 # define --with/--without argument
20297 # Check whether --with-libexif was given.
20298 if test "${with_libexif+set}" = set; then :
20299 withval=$with_libexif; try_LIBEXIF="$withval"
20302 if test "x${try_LIBEXIF}" = "xno"; then
20303 REQUIREMENTS_FOR_LIBEXIF=
20305 if test "x${try_LIBEXIF}" = "xauto"; then try_LIBEXIF=autodetect; fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBEXIF}" >&5
20307 $as_echo "${try_LIBEXIF}" >&6; }
20308 if test "x${try_LIBEXIF}" = "xautodetect"; then
20309 # OK, we have to autodetect.
20310 # We start autodetection with the cleanest known method: pkg-config
20311 if test "x${have_LIBEXIF}" = "xno"; then
20312 # we need that line break after the PKG_CHECK_MODULES
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXIF" >&5
20316 $as_echo_n "checking for LIBEXIF... " >&6; }
20318 if test -n "$LIBEXIF_CFLAGS"; then
20319 pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
20320 elif test -n "$PKG_CONFIG"; then
20321 if test -n "$PKG_CONFIG" && \
20322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
20323 ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
20325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }; then
20327 pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.13" 2>/dev/null`
20334 if test -n "$LIBEXIF_LIBS"; then
20335 pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
20336 elif test -n "$PKG_CONFIG"; then
20337 if test -n "$PKG_CONFIG" && \
20338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
20339 ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
20341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342 test $ac_status = 0; }; then
20343 pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.13" 2>/dev/null`
20353 if test $pkg_failed = yes; then
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20355 $as_echo "no" >&6; }
20357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20358 _pkg_short_errors_supported=yes
20360 _pkg_short_errors_supported=no
20362 if test $_pkg_short_errors_supported = yes; then
20363 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libexif >= 0.6.13" 2>&1`
20365 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libexif >= 0.6.13" 2>&1`
20367 # Put the nasty error message in config.log where it belongs
20368 echo "$LIBEXIF_PKG_ERRORS" >&5
20371 elif test $pkg_failed = untried; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373 $as_echo "no" >&6; }
20376 LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
20377 LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20383 # If pkg-config didn't find anything, try the libfoo-config program
20384 # certain known libraries ship with.
20385 if test "x${have_LIBEXIF}" = "xno"; then
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif config program" >&5
20387 $as_echo_n "checking libexif config program... " >&6; }
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20389 $as_echo "none" >&6; }
20390 # Extract the first word of "gp_lib_config", so it can be a program name with args.
20391 set dummy none; ac_word=$2
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20393 $as_echo_n "checking for $ac_word... " >&6; }
20394 if ${ac_cv_path_LIBEXIF_CONFIG_PROG+:} false; then :
20395 $as_echo_n "(cached) " >&6
20397 case $LIBEXIF_CONFIG_PROG in
20399 ac_cv_path_LIBEXIF_CONFIG_PROG="$LIBEXIF_CONFIG_PROG" # Let the user override the test with a path.
20402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20403 for as_dir in $PATH
20406 test -z "$as_dir" && as_dir=.
20407 for ac_exec_ext in '' $ac_executable_extensions; do
20408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20409 ac_cv_path_LIBEXIF_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
20410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20420 LIBEXIF_CONFIG_PROG=$ac_cv_path_LIBEXIF_CONFIG_PROG
20421 if test -n "$LIBEXIF_CONFIG_PROG"; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXIF_CONFIG_PROG" >&5
20423 $as_echo "$LIBEXIF_CONFIG_PROG" >&6; }
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426 $as_echo "no" >&6; }
20430 if test -n "${LIBEXIF_CONFIG_PROG}" &&
20431 test "${LIBEXIF_CONFIG_PROG}" != "none"; then
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif version according to none" >&5
20434 $as_echo_n "checking for libexif version according to none... " >&6; }
20435 _LIBEXIF_COMPN="-lt"
20436 # split requested version number using m4 regexps
20439 _LIBEXIF_REQ_3="13"
20441 # split installed version number via shell and sed
20442 _LIBEXIF_VERSION="$("${LIBEXIF_CONFIG_PROG}" --version | sed 's/^.* //')"
20443 _LIBEXIF_VER_1="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
20444 _LIBEXIF_VER_2="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
20445 _LIBEXIF_VER_3="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
20446 _LIBEXIF_VER_4="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBEXIF_VERSION}" >&5
20448 $as_echo "${_LIBEXIF_VERSION}" >&6; }
20450 if test "${_LIBEXIF_VER_1}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_1}"; then _tmp=true;
20451 elif test "${_LIBEXIF_VER_2}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_2}"; then _tmp=true;
20452 elif test "${_LIBEXIF_VER_3}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_3}"; then _tmp=true;
20453 elif test "x${_LIBEXIF_VER_4}" = "x" && test "x${_LIBEXIF_REQ_4}" != "x"; then _tmp=true;
20454 elif test "${_LIBEXIF_VER_4}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_4}"; then _tmp=true;
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libexif version is matching requirement >= 0.6.13" >&5
20457 $as_echo_n "checking if libexif version is matching requirement >= 0.6.13... " >&6; }
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20460 $as_echo "no" >&6; }
20461 as_fn_error $? "Version requirement libexif >= 0.6.13 not met. Found: ${_LIBEXIF_VERSION}" "$LINENO" 5
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20464 $as_echo "yes" >&6; }
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif parameters from none" >&5
20467 $as_echo_n "checking for libexif parameters from none... " >&6; }
20468 LIBEXIF_LIBS="$(${LIBEXIF_CONFIG_PROG} --libs || echo "*error*")"
20469 LIBEXIF_CFLAGS="$(${LIBEXIF_CONFIG_PROG} --cflags || echo "*error*")"
20470 if test "x${LIBEXIF_LIBS}" = "*error*" ||
20471 test "x${LIBEXIF_CFLAGS}" = "*error*"; then
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
20473 $as_echo "error" >&6; }
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20477 $as_echo "ok" >&6; }
20481 # Version requirement given, so we do not rely on probing.
20482 elif test "x${try_LIBEXIF}" = "xno"; then
20485 # We've been given a prefix to look in for library libexif.
20486 # We start looking for libexif.la files first.
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif.la file in ${try_LIBEXIF}" >&5
20488 $as_echo_n "checking for libexif.la file in ${try_LIBEXIF}... " >&6; }
20489 if test -f "${try_LIBEXIF}/lib/libexif.la"; then
20490 LIBEXIF_LIBS="${try_LIBEXIF}/lib/libexif.la"
20491 LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
20493 $as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
20495 elif test -f "${try_LIBEXIF}/lib64/libexif.la"; then # HACK
20496 LIBEXIF_LIBS="${try_LIBEXIF}/lib64/libexif.la"
20497 LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
20499 $as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBEXIF" >&5
20503 $as_echo "wild guess that something is in $try_LIBEXIF" >&6; }
20504 LIBEXIF_LIBS="-L${try_LIBEXIF}/lib -l$(echo "libexif" | sed 's/^lib//')"
20505 LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20509 * libtool file libexif.la could not be found.
20510 * We may be linking against the WRONG library.
20512 $as_echo "$as_me: WARNING:
20514 * libtool file libexif.la could not be found.
20515 * We may be linking against the WRONG library.
20519 elif test "x${LIBEXIF_LIBS}" != "x" && test "x${LIBEXIF_CFLAGS}" != "x"; then
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
20521 $as_echo "user-defined" >&6; }
20522 userdef_LIBEXIF=yes
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
20526 $as_echo "broken call" >&6; }
20529 * When calling configure for ${PACKAGE_TARNAME}
20531 * either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
20536 if test "x${have_LIBEXIF}" = "xyes"; then
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we use a version of libexif with ExifData.ifd[]" >&5
20540 $as_echo_n "checking whether we use a version of libexif with ExifData.ifd[]... " >&6; }
20541 # Check for libexif version
20542 CPPFLAGS_save="$CPPFLAGS"
20543 CPPFLAGS="$LIBEXIF_CFLAGS"
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20548 /* CPPFLAGS=${CPPFLAGS} */
20549 /* LDFLAGS=${LDFLAGS} */
20550 #include <libexif/exif-data.h>
20551 #include <libexif/exif-content.h>
20554 if ac_fn_c_try_compile "$LINENO"; then :
20557 $as_echo "#define HAVE_LIBEXIF_IFD 1" >>confdefs.h
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20560 $as_echo "yes" >&6; }
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 CPPFLAGS="$CPPFLAGS_save"
20572 if test "x${have_LIBEXIF}" = "xyes"; then
20573 CPPFLAGS_save="$CPPFLAGS"
20574 CPPFLAGS="${LIBEXIF_CFLAGS}"
20575 ac_fn_c_check_header_mongrel "$LINENO" "libexif/exif-data.h" "ac_cv_header_libexif_exif_data_h" "$ac_includes_default"
20576 if test "x$ac_cv_header_libexif_exif_data_h" = xyes; then :
20583 CPPFLAGS="$CPPFLAGS_save"
20585 if test "x${userdef_LIBEXIF}" = "xno" && test "x${have_LIBEXIF}" = "xyes"; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function exif_data_new in libexif" >&5
20587 $as_echo_n "checking for function exif_data_new in libexif... " >&6; }
20589 LIBS="${LIBEXIF_LIBS}"
20590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h. */
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20599 char exif_data_new ();
20603 return exif_data_new ();
20608 if ac_fn_c_try_link "$LINENO"; then :
20613 rm -f core conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext conftest.$ac_ext
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBEXIF}" >&5
20617 $as_echo "${have_LIBEXIF}" >&6; }
20619 if test "x$have_LIBEXIF" = "xyes"; then
20621 HAVE_LIBEXIF_FALSE='#'
20623 HAVE_LIBEXIF_TRUE='#'
20624 HAVE_LIBEXIF_FALSE=
20627 if test "x$have_LIBEXIF" = "xyes"; then
20629 $as_echo "#define HAVE_LIBEXIF 1" >>confdefs.h
20632 gp_config_msg_len="$(expr "libexif" : '.*')"
20633 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20634 gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
20636 gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20638 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} yes
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif library flags" >&5
20641 $as_echo_n "checking libexif library flags... " >&6; }
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_LIBS}\"" >&5
20643 $as_echo "\"${LIBEXIF_LIBS}\"" >&6; }
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif cpp flags" >&5
20645 $as_echo_n "checking libexif cpp flags... " >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_CFLAGS}\"" >&5
20647 $as_echo "\"${LIBEXIF_CFLAGS}\"" >&6; }
20650 gp_config_msg_len="$(expr "libexif" : '.*')"
20651 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20652 gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
20654 gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20656 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} no
20661 # Extract the first word of "libusb-config", so it can be a program name with args.
20662 set dummy libusb-config; ac_word=$2
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20664 $as_echo_n "checking for $ac_word... " >&6; }
20665 if ${ac_cv_path_LIBUSB_CONFIG+:} false; then :
20666 $as_echo_n "(cached) " >&6
20668 case $LIBUSB_CONFIG in
20670 ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
20673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674 for as_dir in $PATH
20677 test -z "$as_dir" && as_dir=.
20678 for ac_exec_ext in '' $ac_executable_extensions; do
20679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20680 ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20691 LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
20692 if test -n "$LIBUSB_CONFIG"; then
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSB_CONFIG" >&5
20694 $as_echo "$LIBUSB_CONFIG" >&6; }
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20701 if test -n "${LIBUSB_CONFIG}"; then
20703 HAVE_LIBUSB_FALSE='#'
20705 HAVE_LIBUSB_TRUE='#'
20711 if test -n "$CXX" && test "X$CXX" != "Xno"; then
20721 if test -d "$srcdir/libgphoto2_port"; then
20724 subdirs="$subdirs libgphoto2_port"
20728 *** Hey, where have you hidden my libgphoto2_port?
20734 # ---------------------------------------------------------------------------
20735 # Create output files
20736 # ---------------------------------------------------------------------------
20737 ac_config_files="$ac_config_files README Makefile gphoto2-config camlibs/Makefile libgphoto2/Makefile libgphoto2.pc libgphoto2-uninstalled.pc examples/Makefile tests/Makefile tests/check-camera-list.sh tests/ddb/Makefile tests/ddb/check-ddb.sh packaging/Makefile packaging/linux-hotplug/Makefile packaging/generic/Makefile packaging/rpm/Makefile packaging/rpm/package.spec po/Makefile.in doc/Makefile doc/Doxyfile doc/api/Makefile"
20739 cat >confcache <<\_ACEOF
20740 # This file is a shell script that caches the results of configure
20741 # tests run on this system so they can be shared between configure
20742 # scripts and configure runs, see configure's option --config-cache.
20743 # It is not useful on other systems. If it contains results you don't
20744 # want to keep, you may remove or edit it.
20746 # config.status only pays attention to the cache file if you give it
20747 # the --recheck option to rerun configure.
20749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20751 # following values.
20755 # The following way of writing the cache mishandles newlines in values,
20756 # but we know of no workaround that is simple, portable, and efficient.
20757 # So, we kill variables containing newlines.
20758 # Ultrix sh set writes to stderr and can't be redirected directly,
20759 # and sets the high bit in the cache file unless we assign to the vars.
20761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20762 eval ac_val=\$$ac_var
20766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20770 _ | IFS | as_nl) ;; #(
20771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20772 *) { eval $ac_var=; unset $ac_var;} ;;
20778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20779 *${as_nl}ac_space=\ *)
20780 # `set' does not quote correctly, so add quotes: double-quote
20781 # substitution turns \\\\ into \\, and sed turns \\ into \.
20784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20787 # `set' quotes correctly as required by POSIX, so do not add quotes.
20788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20802 if test -w "$cache_file"; then
20803 if test "x$cache_file" != "x/dev/null"; then
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20805 $as_echo "$as_me: updating cache $cache_file" >&6;}
20806 if test ! -f "$cache_file" || test -h "$cache_file"; then
20807 cat confcache >"$cache_file"
20809 case $cache_file in #(
20811 mv -f confcache "$cache_file"$$ &&
20812 mv -f "$cache_file"$$ "$cache_file" ;; #(
20814 mv -f confcache "$cache_file" ;;
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20826 # Let make expand exec_prefix.
20827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20829 DEFS=-DHAVE_CONFIG_H
20834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20835 # 1. Remove the extension, and $U if already installed.
20836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20839 # will be set to the directory where LIBOBJS objects are built.
20840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20843 LIBOBJS=$ac_libobjs
20845 LTLIBOBJS=$ac_ltlibobjs
20848 if test -n "$EXEEXT"; then
20850 am__EXEEXT_FALSE='#'
20852 am__EXEEXT_TRUE='#'
20856 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20857 as_fn_error $? "conditional \"AMDEP\" was never defined.
20858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20860 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20861 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20864 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20865 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20868 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
20869 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
20870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20872 if test -z "${ENABLED_GP2DDB_TRUE}" && test -z "${ENABLED_GP2DDB_FALSE}"; then
20873 as_fn_error $? "conditional \"ENABLED_GP2DDB\" was never defined.
20874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20876 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20877 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20881 if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
20882 as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
20883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20885 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
20886 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
20887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20889 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
20890 as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
20891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20893 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20894 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
20895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20897 if test -z "${ENABLE_RPM_TRUE}" && test -z "${ENABLE_RPM_FALSE}"; then
20898 as_fn_error $? "conditional \"ENABLE_RPM\" was never defined.
20899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20901 if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
20902 as_fn_error $? "conditional \"HAVE_LINUX\" was never defined.
20903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20905 if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
20906 as_fn_error $? "conditional \"HAVE_LIBEXIF\" was never defined.
20907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20909 if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
20910 as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined.
20911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20913 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20914 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20918 : "${CONFIG_STATUS=./config.status}"
20920 ac_clean_files_save=$ac_clean_files
20921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20927 # Generated by $as_me.
20928 # Run this file to recreate the current configuration.
20929 # Compiler output produced by configure, useful for debugging
20930 # configure, is in config.log if it exists.
20933 ac_cs_recheck=false
20936 SHELL=\${CONFIG_SHELL-$SHELL}
20939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20940 ## -------------------- ##
20941 ## M4sh Initialization. ##
20942 ## -------------------- ##
20944 # Be more Bourne compatible
20945 DUALCASE=1; export DUALCASE # for MKS sh
20946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20950 # is contrary to our usage. Disable this feature.
20951 alias -g '${1+"$@"}'='"$@"'
20952 setopt NO_GLOB_SUBST
20954 case `(set -o) 2>/dev/null` in #(
20966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20970 # Prefer a ksh shell builtin over an external printf program on Solaris,
20971 # but without wasting forks for bash or zsh.
20972 if test -z "$BASH_VERSION$ZSH_VERSION" \
20973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20974 as_echo='print -r --'
20975 as_echo_n='print -rn --'
20976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20977 as_echo='printf %s\n'
20978 as_echo_n='printf %s'
20980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20981 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20982 as_echo_n='/usr/ucb/echo -n'
20984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20985 as_echo_n_body='eval
20989 expr "X$arg" : "X\\(.*\\)$as_nl";
20990 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20992 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20994 export as_echo_n_body
20995 as_echo_n='sh -c $as_echo_n_body as_echo'
20997 export as_echo_body
20998 as_echo='sh -c $as_echo_body as_echo'
21001 # The user is always right.
21002 if test "${PATH_SEPARATOR+set}" != set; then
21004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21012 # We need space, tab and new line, in precisely that order. Quoting is
21013 # there to prevent editors from complaining about space-tab.
21014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21015 # splitting by setting IFS to empty value.)
21018 # Find who we are. Look in the path if we contain no directory separator.
21021 *[\\/]* ) as_myself=$0 ;;
21022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21023 for as_dir in $PATH
21026 test -z "$as_dir" && as_dir=.
21027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21033 # We did not find ourselves, most probably we were run as `sh COMMAND'
21034 # in which case we are not to be found in the path.
21035 if test "x$as_myself" = x; then
21038 if test ! -f "$as_myself"; then
21039 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21043 # Unset variables that we do not need and which cause bugs (e.g. in
21044 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21045 # suppresses any "Segmentation fault" message there. '((' could
21046 # trigger a bug in pdksh 5.2.14.
21047 for as_var in BASH_ENV ENV MAIL MAILPATH
21048 do eval test x\${$as_var+set} = xset \
21049 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21062 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21065 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21066 # ----------------------------------------
21067 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21068 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21069 # script with STATUS, using 1 if that was 0.
21072 as_status=$1; test $as_status -eq 0 && as_status=1
21074 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21075 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21077 $as_echo "$as_me: error: $2" >&2
21078 as_fn_exit $as_status
21082 # as_fn_set_status STATUS
21083 # -----------------------
21084 # Set $? to STATUS, without forking.
21085 as_fn_set_status ()
21088 } # as_fn_set_status
21090 # as_fn_exit STATUS
21091 # -----------------
21092 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21096 as_fn_set_status $1
21102 # Portably unset VAR.
21105 { eval $1=; unset $1;}
21107 as_unset=as_fn_unset
21108 # as_fn_append VAR VALUE
21109 # ----------------------
21110 # Append the text in VALUE to the end of the definition contained in VAR. Take
21111 # advantage of any shell optimizations that allow amortized linear growth over
21112 # repeated appends, instead of the typical quadratic growth present in naive
21114 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21115 eval 'as_fn_append ()
21126 # as_fn_arith ARG...
21127 # ------------------
21128 # Perform arithmetic evaluation on the ARGs, and store the result in the
21129 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21130 # must be portable across $(()) and expr.
21131 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21132 eval 'as_fn_arith ()
21139 as_val=`expr "$@" || test $? -eq 1`
21144 if expr a : '\(a\)' >/dev/null 2>&1 &&
21145 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21151 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21152 as_basename=basename
21157 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21163 as_me=`$as_basename -- "$0" ||
21164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21165 X"$0" : 'X\(//\)$' \| \
21166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21168 sed '/^.*\/\([^/][^/]*\)\/*$/{
21182 # Avoid depending upon Character Ranges.
21183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21186 as_cr_digits='0123456789'
21187 as_cr_alnum=$as_cr_Letters$as_cr_digits
21189 ECHO_C= ECHO_N= ECHO_T=
21190 case `echo -n x` in #(((((
21192 case `echo 'xy\c'` in
21193 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21195 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21202 rm -f conf$$ conf$$.exe conf$$.file
21203 if test -d conf$$.dir; then
21204 rm -f conf$$.dir/conf$$.file
21207 mkdir conf$$.dir 2>/dev/null
21209 if (echo >conf$$.file) 2>/dev/null; then
21210 if ln -s conf$$.file conf$$ 2>/dev/null; then
21212 # ... but there are two gotchas:
21213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21215 # In both cases, we have to default to `cp -p'.
21216 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21218 elif ln conf$$.file conf$$ 2>/dev/null; then
21226 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21227 rmdir conf$$.dir 2>/dev/null
21232 # Create "$as_dir" as a directory, including parents if necessary.
21237 -*) as_dir=./$as_dir;;
21239 test -d "$as_dir" || eval $as_mkdir_p || {
21243 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21244 *) as_qdir=$as_dir;;
21246 as_dirs="'$as_qdir' $as_dirs"
21247 as_dir=`$as_dirname -- "$as_dir" ||
21248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21249 X"$as_dir" : 'X\(//\)[^/]' \| \
21250 X"$as_dir" : 'X\(//\)$' \| \
21251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21252 $as_echo X"$as_dir" |
21253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21257 /^X\(\/\/\)[^/].*/{
21270 test -d "$as_dir" && break
21272 test -z "$as_dirs" || eval "mkdir $as_dirs"
21273 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21277 if mkdir -p . 2>/dev/null; then
21278 as_mkdir_p='mkdir -p "$as_dir"'
21280 test -d ./-p && rmdir ./-p
21284 if test -x / >/dev/null 2>&1; then
21285 as_test_x='test -x'
21287 if ls -dL / >/dev/null 2>&1; then
21294 if test -d "$1"; then
21300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21301 ???[sx]*):;;*)false;;esac;fi
21305 as_executable_p=$as_test_x
21307 # Sed expression to map a string onto a valid CPP name.
21308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21310 # Sed expression to map a string onto a valid variable name.
21311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21315 ## ----------------------------------- ##
21316 ## Main body of $CONFIG_STATUS script. ##
21317 ## ----------------------------------- ##
21319 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21322 # Save the log message, to keep $0 and so on meaningful, and to
21323 # report actual input values of CONFIG_FILES etc. instead of their
21324 # values after options handling.
21326 This file was extended by libgphoto2 photo camera library $as_me 2.4.11, which was
21327 generated by GNU Autoconf 2.68. Invocation command line was
21329 CONFIG_FILES = $CONFIG_FILES
21330 CONFIG_HEADERS = $CONFIG_HEADERS
21331 CONFIG_LINKS = $CONFIG_LINKS
21332 CONFIG_COMMANDS = $CONFIG_COMMANDS
21335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21340 case $ac_config_files in *"
21341 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21344 case $ac_config_headers in *"
21345 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21350 # Files that config.status was made for.
21351 config_files="$ac_config_files"
21352 config_headers="$ac_config_headers"
21353 config_commands="$ac_config_commands"
21357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21359 \`$as_me' instantiates files and other configuration actions
21360 from templates according to the current configuration. Unless the files
21361 and actions are specified as TAGs, all are instantiated by default.
21363 Usage: $0 [OPTION]... [TAG]...
21365 -h, --help print this help, then exit
21366 -V, --version print version number and configuration settings, then exit
21367 --config print configuration, then exit
21368 -q, --quiet, --silent
21369 do not print progress messages
21370 -d, --debug don't remove temporary files
21371 --recheck update $as_me by reconfiguring in the same conditions
21372 --file=FILE[:TEMPLATE]
21373 instantiate the configuration file FILE
21374 --header=FILE[:TEMPLATE]
21375 instantiate the configuration header FILE
21377 Configuration files:
21380 Configuration headers:
21383 Configuration commands:
21386 Report bugs to <gphoto-devel@lists.sourceforge.net>."
21389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21390 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21392 libgphoto2 photo camera library config.status 2.4.11
21393 configured by $0, generated by GNU Autoconf 2.68,
21394 with options \\"\$ac_cs_config\\"
21396 Copyright (C) 2010 Free Software Foundation, Inc.
21397 This config.status script is free software; the Free Software Foundation
21398 gives unlimited permission to copy, distribute and modify it."
21405 test -n "\$AWK" || AWK=awk
21408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21409 # The default lists apply if the user does not specify any file.
21415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21432 # Handling of the options.
21433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21436 $as_echo "$ac_cs_version"; exit ;;
21437 --config | --confi | --conf | --con | --co | --c )
21438 $as_echo "$ac_cs_config"; exit ;;
21439 --debug | --debu | --deb | --de | --d | -d )
21441 --file | --fil | --fi | --f )
21444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21445 '') as_fn_error $? "missing file argument" ;;
21447 as_fn_append CONFIG_FILES " '$ac_optarg'"
21448 ac_need_defaults=false;;
21449 --header | --heade | --head | --hea )
21452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21454 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21455 ac_need_defaults=false;;
21457 # Conflict between --help and --header
21458 as_fn_error $? "ambiguous option: \`$1'
21459 Try \`$0 --help' for more information.";;
21460 --help | --hel | -h )
21461 $as_echo "$ac_cs_usage"; exit ;;
21462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21466 # This is an error.
21467 -*) as_fn_error $? "unrecognized option: \`$1'
21468 Try \`$0 --help' for more information." ;;
21470 *) as_fn_append ac_config_targets " $1"
21471 ac_need_defaults=false ;;
21477 ac_configure_extra_args=
21479 if $ac_cs_silent; then
21481 ac_configure_extra_args="$ac_configure_extra_args --silent"
21485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486 if \$ac_cs_recheck; then
21487 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21490 CONFIG_SHELL='$SHELL'
21491 export CONFIG_SHELL
21496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21501 ## Running $as_me. ##
21507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21511 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21514 # The HP-UX ksh and POSIX shell print the target directory to stdout
21515 # if CDPATH is set.
21516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21518 sed_quote_subst='$sed_quote_subst'
21519 double_quote_subst='$double_quote_subst'
21520 delay_variable_subst='$delay_variable_subst'
21521 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21522 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21523 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21524 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21525 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21526 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21527 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21528 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21529 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21530 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21531 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21532 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21533 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21534 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21535 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21536 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21537 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21538 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21539 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21540 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21541 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21542 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21543 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21544 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21545 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21546 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21547 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21548 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21549 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21550 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21551 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21552 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21553 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21554 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21555 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21556 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21557 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21558 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21559 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21562 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21563 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21564 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21565 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21566 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21567 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"`'
21568 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"`'
21569 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21570 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21571 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21572 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21573 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21574 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21575 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21576 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21577 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21578 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21579 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21580 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21581 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21582 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21583 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21584 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21585 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21586 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21587 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21588 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21589 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21590 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21591 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21592 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21593 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21594 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21595 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21598 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21599 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21600 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21601 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21602 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21603 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21604 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21605 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21606 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21607 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21608 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21609 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21610 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21611 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21612 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21613 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21614 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21615 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21616 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21617 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21618 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21619 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21620 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21621 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21622 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21623 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21624 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21625 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21626 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21627 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21628 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21629 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21630 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21631 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21632 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21633 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21634 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21635 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21636 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21637 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21638 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21639 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21640 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21641 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21642 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21643 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21644 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21645 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21646 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21647 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21648 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21649 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21650 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21651 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21652 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21653 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21654 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21655 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21656 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21657 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21658 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21659 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21660 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21661 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21662 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21663 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21664 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21665 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21666 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21667 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21668 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21669 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21670 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21671 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21672 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21673 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21674 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21675 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21676 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21677 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21678 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21679 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21680 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21681 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21682 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21683 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21684 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21685 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21686 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21687 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21688 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21689 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21690 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21691 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21692 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21693 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21696 LTCFLAGS='$LTCFLAGS'
21697 compiler='$compiler_DEFAULT'
21699 # Quote evaled strings.
21710 deplibs_check_method \
21719 lt_cv_sys_global_symbol_pipe \
21720 lt_cv_sys_global_symbol_to_cdecl \
21721 lt_cv_sys_global_symbol_to_c_name_address \
21722 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21725 lt_prog_compiler_no_builtin_flag \
21726 lt_prog_compiler_wl \
21727 lt_prog_compiler_pic \
21728 lt_prog_compiler_static \
21729 lt_cv_prog_compiler_c_o \
21737 export_dynamic_flag_spec \
21738 whole_archive_flag_spec \
21739 compiler_needs_object \
21741 allow_undefined_flag \
21742 no_undefined_flag \
21743 hardcode_libdir_flag_spec \
21744 hardcode_libdir_flag_spec_ld \
21745 hardcode_libdir_separator \
21750 variables_saved_for_relink \
21752 library_names_spec \
21757 compiler_lib_search_dirs \
21762 compiler_lib_search_path \
21765 lt_prog_compiler_no_builtin_flag_CXX \
21766 lt_prog_compiler_wl_CXX \
21767 lt_prog_compiler_pic_CXX \
21768 lt_prog_compiler_static_CXX \
21769 lt_cv_prog_compiler_c_o_CXX \
21770 export_dynamic_flag_spec_CXX \
21771 whole_archive_flag_spec_CXX \
21772 compiler_needs_object_CXX \
21774 allow_undefined_flag_CXX \
21775 no_undefined_flag_CXX \
21776 hardcode_libdir_flag_spec_CXX \
21777 hardcode_libdir_flag_spec_ld_CXX \
21778 hardcode_libdir_separator_CXX \
21779 fix_srcfile_path_CXX \
21780 exclude_expsyms_CXX \
21781 include_expsyms_CXX \
21782 file_list_spec_CXX \
21783 compiler_lib_search_dirs_CXX \
21784 predep_objects_CXX \
21785 postdep_objects_CXX \
21788 compiler_lib_search_path_CXX; do
21789 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21790 *[\\\\\\\`\\"\\\$]*)
21791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21799 # Double-quote double-evaled strings.
21800 for var in reload_cmds \
21801 old_postinstall_cmds \
21802 old_postuninstall_cmds \
21804 extract_expsyms_cmds \
21805 old_archive_from_new_cmds \
21806 old_archive_from_expsyms_cmds \
21808 archive_expsym_cmds \
21810 module_expsym_cmds \
21811 export_symbols_cmds \
21814 postuninstall_cmds \
21816 sys_lib_search_path_spec \
21817 sys_lib_dlsearch_path_spec \
21818 old_archive_cmds_CXX \
21819 old_archive_from_new_cmds_CXX \
21820 old_archive_from_expsyms_cmds_CXX \
21822 archive_expsym_cmds_CXX \
21824 module_expsym_cmds_CXX \
21825 export_symbols_cmds_CXX \
21826 prelink_cmds_CXX; do
21827 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21828 *[\\\\\\\`\\"\\\$]*)
21829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21837 # Fix-up fallback echo if it was mangled by the above quoting rules.
21839 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21843 ac_aux_dir='$ac_aux_dir'
21844 xsi_shell='$xsi_shell'
21845 lt_shell_append='$lt_shell_append'
21847 # See if we are running on zsh, and set the options which allow our
21848 # commands through without removal of \ escapes INIT.
21849 if test -n "\${ZSH_VERSION+set}" ; then
21850 setopt NO_GLOB_SUBST
21856 TIMESTAMP='$TIMESTAMP'
21864 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21865 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21867 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21868 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21869 LINGUAS="${LINGUAS-%UNSET%}"
21871 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21872 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21874 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21875 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21876 LINGUAS="${LINGUAS-%UNSET%}"
21881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21883 # Handling of arguments.
21884 for ac_config_target in $ac_config_targets
21886 case $ac_config_target in
21887 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21888 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21889 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21890 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21891 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21892 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
21893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21894 "gphoto2-config") CONFIG_FILES="$CONFIG_FILES gphoto2-config" ;;
21895 "camlibs/Makefile") CONFIG_FILES="$CONFIG_FILES camlibs/Makefile" ;;
21896 "libgphoto2/Makefile") CONFIG_FILES="$CONFIG_FILES libgphoto2/Makefile" ;;
21897 "libgphoto2.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2.pc" ;;
21898 "libgphoto2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2-uninstalled.pc" ;;
21899 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21900 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21901 "tests/check-camera-list.sh") CONFIG_FILES="$CONFIG_FILES tests/check-camera-list.sh" ;;
21902 "tests/ddb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ddb/Makefile" ;;
21903 "tests/ddb/check-ddb.sh") CONFIG_FILES="$CONFIG_FILES tests/ddb/check-ddb.sh" ;;
21904 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
21905 "packaging/linux-hotplug/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/linux-hotplug/Makefile" ;;
21906 "packaging/generic/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/generic/Makefile" ;;
21907 "packaging/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/rpm/Makefile" ;;
21908 "packaging/rpm/package.spec") CONFIG_FILES="$CONFIG_FILES packaging/rpm/package.spec" ;;
21909 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21910 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21911 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
21912 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
21914 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21919 # If the user did not use the arguments to specify the items to instantiate,
21920 # then the envvar interface is used. Set only those that are not.
21921 # We use the long form for the default assignment because of an extremely
21922 # bizarre bug on SunOS 4.1.3.
21923 if $ac_need_defaults; then
21924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21929 # Have a temporary directory for convenience. Make it in the build tree
21930 # simply because there is no reason against having it here, and in addition,
21931 # creating and moving files from /tmp can sometimes cause problems.
21932 # Hook for its removal unless debugging.
21933 # Note that there is a small window in which the directory will not be cleaned:
21934 # after its creation but before its name has been assigned to `$tmp'.
21938 trap 'exit_status=$?
21939 : "${ac_tmp:=$tmp}"
21940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21942 trap 'as_fn_exit 1' 1 2 13 15
21944 # Create a (secure) tmp directory for tmp files.
21947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21951 tmp=./conf$$-$RANDOM
21952 (umask 077 && mkdir "$tmp")
21953 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21956 # Set up the scripts for CONFIG_FILES section.
21957 # No need to generate them if there are no CONFIG_FILES.
21958 # This happens for instance with `./config.status config.h'.
21959 if test -n "$CONFIG_FILES"; then
21962 ac_cr=`echo X | tr X '\015'`
21963 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21964 # But we know of no other shell where ac_cr would be empty at this
21965 # point, so we can use a bashism as a fallback.
21966 if test "x$ac_cr" = x; then
21967 eval ac_cr=\$\'\\r\'
21969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21973 ac_cs_awk_cr=$ac_cr
21976 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21981 echo "cat >conf$$subs.awk <<_ACEOF" &&
21982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21984 } >conf$$subs.sh ||
21985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21988 for ac_last_try in false false false false false :; do
21989 . ./conf$$subs.sh ||
21990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21993 if test $ac_delim_n = $ac_delim_num; then
21995 elif $ac_last_try; then
21996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22001 rm -f conf$$subs.sh
22003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22004 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22008 s/^/S["/; s/!.*/"]=/
22018 s/\(.\{148\}\)..*/\1/
22020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22032 s/\(.\{148\}\)..*/\1/
22034 s/["\\]/\\&/g; s/^/"/; s/$/"/
22038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22043 ' <conf$$subs.awk | sed '
22048 ' >>$CONFIG_STATUS || ac_write_fail=1
22049 rm -f conf$$subs.awk
22050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22052 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22053 for (key in S) S_is_set[key] = 1
22059 nfields = split(line, field, "@")
22061 len = length(field[1])
22062 for (i = 2; i < nfields; i++) {
22064 keylen = length(key)
22065 if (S_is_set[key]) {
22067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22068 len += length(value) + length(field[++i])
22079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22090 # trailing colons and then remove the whole line if VPATH becomes empty
22091 # (actually we leave an empty line to preserve line numbers).
22092 if test "x$srcdir" = x.; then
22093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22112 fi # test -n "$CONFIG_FILES"
22114 # Set up the scripts for CONFIG_HEADERS section.
22115 # No need to generate them if there are no CONFIG_HEADERS.
22116 # This happens for instance with `./config.status Makefile'.
22117 if test -n "$CONFIG_HEADERS"; then
22118 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22122 # Transform confdefs.h into an awk script `defines.awk', embedded as
22123 # here-document in config.status, that substitutes the proper values into
22124 # config.h.in to produce config.h.
22126 # Create a delimiter string that does not exist in confdefs.h, to ease
22127 # handling of long lines.
22129 for ac_last_try in false false :; do
22130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22131 if test -z "$ac_tt"; then
22133 elif $ac_last_try; then
22134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22140 # For the awk script, D is an array of macro values keyed by name,
22141 # likewise P contains macro parameters if any. Preserve backslash
22142 # newline sequences.
22144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22146 s/.\{148\}/&'"$ac_delim"'/g
22149 s/^[ ]*#[ ]*define[ ][ ]*/ /
22156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22163 D["\1"]=" \3\\\\\\n"\\/p
22165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22170 s/.\{148\}/&'"$ac_delim"'/g
22175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22180 ' <confdefs.h | sed '
22181 s/'"$ac_delim"'/"\\\
22182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185 for (key in D) D_is_set[key] = 1
22188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22190 split(line, arg, " ")
22191 if (arg[1] == "#") {
22195 defundef = substr(arg[1], 2)
22198 split(mac1, mac2, "(") #)
22200 prefix = substr(line, 1, index(line, defundef) - 1)
22201 if (D_is_set[macro]) {
22202 # Preserve the white space surrounding the "#".
22203 print prefix "define", macro P[macro] D[macro]
22206 # Replace #undef with comments. This is necessary, for example,
22207 # in the case of _POSIX_SOURCE, which is predefined and required
22208 # on some systems where configure will not decide to define it.
22209 if (defundef == "undef") {
22210 print "/*", prefix defundef, macro, "*/"
22218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22219 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22220 fi # test -n "$CONFIG_HEADERS"
22223 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22228 :[FHLC]) ac_mode=$ac_tag; continue;;
22230 case $ac_mode$ac_tag in
22232 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22233 :[FH]-) ac_tag=-:-;;
22234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22251 -) ac_f="$ac_tmp/stdin";;
22252 *) # Look for the file first in the build tree, then in the source tree
22253 # (if the path is not absolute). The absolute path cannot be DOS-style,
22254 # because $ac_f cannot contain `:'.
22258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22260 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22263 as_fn_append ac_file_inputs " '$ac_f'"
22266 # Let's still pretend it is `configure' which instantiates (i.e., don't
22267 # use $as_me), people would be surprised to read:
22268 # /* config.h. Generated by config.status. */
22269 configure_input='Generated from '`
22270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22272 if test x"$ac_file" != x-; then
22273 configure_input="$ac_file. $configure_input"
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22275 $as_echo "$as_me: creating $ac_file" >&6;}
22277 # Neutralize special characters interpreted by sed in replacement strings.
22278 case $configure_input in #(
22279 *\&* | *\|* | *\\* )
22280 ac_sed_conf_input=`$as_echo "$configure_input" |
22281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22282 *) ac_sed_conf_input=$configure_input;;
22286 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22292 ac_dir=`$as_dirname -- "$ac_file" ||
22293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22294 X"$ac_file" : 'X\(//\)[^/]' \| \
22295 X"$ac_file" : 'X\(//\)$' \| \
22296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22297 $as_echo X"$ac_file" |
22298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22302 /^X\(\/\/\)[^/].*/{
22315 as_dir="$ac_dir"; as_fn_mkdir_p
22319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22322 # A ".." for each directory in $ac_dir_suffix.
22323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22324 case $ac_top_builddir_sub in
22325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22329 ac_abs_top_builddir=$ac_pwd
22330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22331 # for backward compatibility:
22332 ac_top_builddir=$ac_top_build_prefix
22335 .) # We are building in place.
22337 ac_top_srcdir=$ac_top_builddir_sub
22338 ac_abs_top_srcdir=$ac_pwd ;;
22339 [\\/]* | ?:[\\/]* ) # Absolute name.
22340 ac_srcdir=$srcdir$ac_dir_suffix;
22341 ac_top_srcdir=$srcdir
22342 ac_abs_top_srcdir=$srcdir ;;
22343 *) # Relative name.
22344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22345 ac_top_srcdir=$ac_top_build_prefix$srcdir
22346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22361 ac_MKDIR_P=$MKDIR_P
22363 [\\/$]* | ?:[\\/]* ) ;;
22364 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22369 # If the template does not know about datarootdir, expand it.
22370 # FIXME: This hack should be removed a few years after 2.60.
22371 ac_datarootdir_hack=; ac_datarootdir_seen=
22382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22383 *datarootdir*) ac_datarootdir_seen=yes;;
22384 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22389 ac_datarootdir_hack='
22390 s&@datadir@&$datadir&g
22391 s&@docdir@&$docdir&g
22392 s&@infodir@&$infodir&g
22393 s&@localedir@&$localedir&g
22394 s&@mandir@&$mandir&g
22395 s&\\\${datarootdir}&$datarootdir&g' ;;
22399 # Neutralize VPATH when `$srcdir' = `.'.
22400 # Shell code in configure.ac might set extrasub.
22401 # FIXME: do we really want to maintain this feature?
22402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22403 ac_sed_extra="$ac_vpsub
22406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22409 s|@configure_input@|$ac_sed_conf_input|;t t
22410 s&@top_builddir@&$ac_top_builddir_sub&;t t
22411 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22412 s&@srcdir@&$ac_srcdir&;t t
22413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22414 s&@top_srcdir@&$ac_top_srcdir&;t t
22415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22416 s&@builddir@&$ac_builddir&;t t
22417 s&@abs_builddir@&$ac_abs_builddir&;t t
22418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22419 s&@INSTALL@&$ac_INSTALL&;t t
22420 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22421 $ac_datarootdir_hack
22423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22424 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22429 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22431 which seems to be undefined. Please make sure it is defined" >&5
22432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22433 which seems to be undefined. Please make sure it is defined" >&2;}
22435 rm -f "$ac_tmp/stdin"
22437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22446 if test x"$ac_file" != x-; then
22448 $as_echo "/* $configure_input */" \
22449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22450 } >"$ac_tmp/config.h" \
22451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22457 mv "$ac_tmp/config.h" "$ac_file" \
22458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22461 $as_echo "/* $configure_input */" \
22462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22463 || as_fn_error $? "could not create -" "$LINENO" 5
22465 # Compute "$ac_file"'s index in $config_headers.
22468 for _am_header in $config_headers :; do
22469 case $_am_header in
22470 $_am_arg | $_am_arg:* )
22473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22476 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22477 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22478 X"$_am_arg" : 'X\(//\)[^/]' \| \
22479 X"$_am_arg" : 'X\(//\)$' \| \
22480 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22481 $as_echo X"$_am_arg" |
22482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22486 /^X\(\/\/\)[^/].*/{
22498 s/.*/./; q'`/stamp-h$_am_stamp_count
22501 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22502 $as_echo "$as_me: executing $ac_file commands" >&6;}
22507 case $ac_file$ac_mode in
22508 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22509 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22510 # are listed without --file. Let's play safe and only enable the eval
22511 # if we detect the quoting.
22512 case $CONFIG_FILES in
22513 *\'*) eval set x "$CONFIG_FILES" ;;
22514 *) set x $CONFIG_FILES ;;
22519 # Strip MF so we end up with the name of the file.
22520 mf=`echo "$mf" | sed -e 's/:.*$//'`
22521 # Check whether this is an Automake generated Makefile or not.
22522 # We used to match only the files named `Makefile.in', but
22523 # some people rename them; so instead we look at the file content.
22524 # Grep'ing the first line is not enough: some people post-process
22525 # each Makefile.in and add a new line on top of each file to say so.
22526 # Grep'ing the whole file is not good either: AIX grep has a line
22527 # limit of 2048, but all sed's we know have understand at least 4000.
22528 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22529 dirpart=`$as_dirname -- "$mf" ||
22530 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22531 X"$mf" : 'X\(//\)[^/]' \| \
22532 X"$mf" : 'X\(//\)$' \| \
22533 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539 /^X\(\/\/\)[^/].*/{
22555 # Extract the definition of DEPDIR, am__include, and am__quote
22556 # from the Makefile without running `make'.
22557 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22558 test -z "$DEPDIR" && continue
22559 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22560 test -z "am__include" && continue
22561 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22562 # When using ansi2knr, U may be empty or an underscore; expand it
22563 U=`sed -n 's/^U = //p' < "$mf"`
22564 # Find all dependency output files, they are included files with
22565 # $(DEPDIR) in their names. We invoke sed twice because it is the
22566 # simplest approach to changing $(DEPDIR) to its actual value in the
22568 for file in `sed -n "
22569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22571 # Make sure the directory exists.
22572 test -f "$dirpart/$file" && continue
22573 fdir=`$as_dirname -- "$file" ||
22574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22575 X"$file" : 'X\(//\)[^/]' \| \
22576 X"$file" : 'X\(//\)$' \| \
22577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22578 $as_echo X"$file" |
22579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22583 /^X\(\/\/\)[^/].*/{
22596 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22597 # echo "creating $dirpart/$file"
22598 echo '# dummy' > "$dirpart/$file"
22605 # See if we are running on zsh, and set the options which allow our
22606 # commands through without removal of \ escapes.
22607 if test -n "${ZSH_VERSION+set}" ; then
22608 setopt NO_GLOB_SUBST
22611 cfgfile="${ofile}T"
22612 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22615 cat <<_LT_EOF >> "$cfgfile"
22618 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22619 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22621 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22623 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22624 # 2006, 2007, 2008 Free Software Foundation, Inc.
22625 # Written by Gordon Matzigkeit, 1996
22627 # This file is part of GNU Libtool.
22629 # GNU Libtool is free software; you can redistribute it and/or
22630 # modify it under the terms of the GNU General Public License as
22631 # published by the Free Software Foundation; either version 2 of
22632 # the License, or (at your option) any later version.
22634 # As a special exception to the GNU General Public License,
22635 # if you distribute this file as part of a program or library that
22636 # is built using GNU Libtool, you may include this file under the
22637 # same distribution terms that you use for the rest of that program.
22639 # GNU Libtool is distributed in the hope that it will be useful,
22640 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22642 # GNU General Public License for more details.
22644 # You should have received a copy of the GNU General Public License
22645 # along with GNU Libtool; see the file COPYING. If not, a copy
22646 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22647 # obtained by writing to the Free Software Foundation, Inc.,
22648 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22651 # The names of the tagged configurations supported by this script.
22652 available_tags="CXX "
22654 # ### BEGIN LIBTOOL CONFIG
22656 # Whether or not to build static libraries.
22657 build_old_libs=$enable_static
22659 # Assembler program.
22662 # DLL creation program.
22665 # Object dumper program.
22668 # Which release of libtool.m4 was used?
22669 macro_version=$macro_version
22670 macro_revision=$macro_revision
22672 # Whether or not to build shared libraries.
22673 build_libtool_libs=$enable_shared
22675 # What type of objects to build.
22678 # Whether or not to optimize for fast installation.
22679 fast_install=$enable_fast_install
22682 host_alias=$host_alias
22686 # The build system.
22687 build_alias=$build_alias
22691 # A sed program that does not truncate output.
22694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22695 Xsed="\$SED -e 1s/^X//"
22697 # A grep program that handles long lines.
22703 # A literal string matcher.
22706 # A BSD- or MS-compatible name lister.
22709 # Whether we need soft or hard links.
22712 # What is the maximum length of a command?
22713 max_cmd_len=$max_cmd_len
22715 # Object file suffix (normally "o").
22718 # Executable file suffix (normally "").
22721 # whether the shell understands "unset".
22724 # turn spaces into newlines.
22727 # turn newlines into spaces.
22730 # How to create reloadable object files.
22731 reload_flag=$lt_reload_flag
22732 reload_cmds=$lt_reload_cmds
22734 # Method to check whether dependent libraries are shared objects.
22735 deplibs_check_method=$lt_deplibs_check_method
22737 # Command to use when deplibs_check_method == "file_magic".
22738 file_magic_cmd=$lt_file_magic_cmd
22742 AR_FLAGS=$lt_AR_FLAGS
22744 # A symbol stripping program.
22747 # Commands used to install an old-style archive.
22749 old_postinstall_cmds=$lt_old_postinstall_cmds
22750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22755 # LTCC compiler flags.
22756 LTCFLAGS=$lt_CFLAGS
22758 # Take the output of nm and produce a listing of raw symbols and C names.
22759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22761 # Transform the output of nm in a proper C declaration.
22762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22764 # Transform the output of nm in a C name address pair.
22765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22767 # Transform the output of nm in a C name address pair when lib prefix is needed.
22768 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22770 # The name of the directory that contains temporary libtool files.
22773 # Shell to use when invoking shell scripts.
22776 # An echo program that does not interpret backslashes.
22779 # Used to examine libraries when file_magic_cmd begins with "file".
22780 MAGIC_CMD=$MAGIC_CMD
22782 # Must we lock files when doing compilation?
22783 need_locks=$lt_need_locks
22785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22786 DSYMUTIL=$lt_DSYMUTIL
22788 # Tool to change global to local symbols on Mac OS X.
22791 # Tool to manipulate fat objects and archives on Mac OS X.
22794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22798 OTOOL64=$lt_OTOOL64
22800 # Old archive suffix (normally "a").
22803 # Shared library suffix (normally ".so").
22804 shrext_cmds=$lt_shrext_cmds
22806 # The commands to extract the exported symbol list from a shared archive.
22807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22809 # Variables whose values should be saved in libtool wrapper scripts and
22810 # restored at link time.
22811 variables_saved_for_relink=$lt_variables_saved_for_relink
22813 # Do we need the "lib" prefix for modules?
22814 need_lib_prefix=$need_lib_prefix
22816 # Do we need a version for libraries?
22817 need_version=$need_version
22819 # Library versioning type.
22820 version_type=$version_type
22822 # Shared library runtime path variable.
22823 runpath_var=$runpath_var
22825 # Shared library path variable.
22826 shlibpath_var=$shlibpath_var
22828 # Is shlibpath searched before the hard-coded library search path?
22829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22831 # Format of library name prefix.
22832 libname_spec=$lt_libname_spec
22834 # List of archive names. First name is the real one, the rest are links.
22835 # The last name is the one that the linker finds with -lNAME
22836 library_names_spec=$lt_library_names_spec
22838 # The coded name of the library, if different from the real name.
22839 soname_spec=$lt_soname_spec
22841 # Command to use after installation of a shared archive.
22842 postinstall_cmds=$lt_postinstall_cmds
22844 # Command to use after uninstallation of a shared archive.
22845 postuninstall_cmds=$lt_postuninstall_cmds
22847 # Commands used to finish a libtool library installation in a directory.
22848 finish_cmds=$lt_finish_cmds
22850 # As "finish_cmds", except a single script fragment to be evaled but
22852 finish_eval=$lt_finish_eval
22854 # Whether we should hardcode library paths into libraries.
22855 hardcode_into_libs=$hardcode_into_libs
22857 # Compile-time system search path for libraries.
22858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22860 # Run-time system search path for libraries.
22861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22863 # Whether dlopen is supported.
22864 dlopen_support=$enable_dlopen
22866 # Whether dlopen of programs is supported.
22867 dlopen_self=$enable_dlopen_self
22869 # Whether dlopen of statically linked programs is supported.
22870 dlopen_self_static=$enable_dlopen_self_static
22872 # Commands to strip libraries.
22873 old_striplib=$lt_old_striplib
22874 striplib=$lt_striplib
22877 # The linker used to build libraries.
22880 # Commands used to build an old-style archive.
22881 old_archive_cmds=$lt_old_archive_cmds
22883 # A language specific compiler.
22886 # Is the compiler the GNU compiler?
22889 # Compiler flag to turn off builtin functions.
22890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22892 # How to pass a linker flag through the compiler.
22893 wl=$lt_lt_prog_compiler_wl
22895 # Additional compiler flags for building library objects.
22896 pic_flag=$lt_lt_prog_compiler_pic
22898 # Compiler flag to prevent dynamic linking.
22899 link_static_flag=$lt_lt_prog_compiler_static
22901 # Does compiler simultaneously support -c and -o options?
22902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22904 # Whether or not to add -lc for building shared libraries.
22905 build_libtool_need_lc=$archive_cmds_need_lc
22907 # Whether or not to disallow shared libs when runtime libs are static.
22908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22910 # Compiler flag to allow reflexive dlopens.
22911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22913 # Compiler flag to generate shared objects directly from archives.
22914 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22916 # Whether the compiler copes with passing no objects directly.
22917 compiler_needs_object=$lt_compiler_needs_object
22919 # Create an old-style archive from a shared archive.
22920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22922 # Create a temporary old-style archive to link instead of a shared archive.
22923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22925 # Commands used to build a shared archive.
22926 archive_cmds=$lt_archive_cmds
22927 archive_expsym_cmds=$lt_archive_expsym_cmds
22929 # Commands used to build a loadable module if different from building
22930 # a shared archive.
22931 module_cmds=$lt_module_cmds
22932 module_expsym_cmds=$lt_module_expsym_cmds
22934 # Whether we are building with GNU ld or not.
22935 with_gnu_ld=$lt_with_gnu_ld
22937 # Flag that allows shared libraries with undefined symbols to be built.
22938 allow_undefined_flag=$lt_allow_undefined_flag
22940 # Flag that enforces no undefined symbols.
22941 no_undefined_flag=$lt_no_undefined_flag
22943 # Flag to hardcode \$libdir into a binary during linking.
22944 # This must work even if \$libdir does not exist
22945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22947 # If ld is used when linking, flag to hardcode \$libdir into a binary
22948 # during linking. This must work even if \$libdir does not exist.
22949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22951 # Whether we need a single "-rpath" flag with a separated argument.
22952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22955 # DIR into the resulting binary.
22956 hardcode_direct=$hardcode_direct
22958 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22959 # DIR into the resulting binary and the resulting library dependency is
22960 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22961 # library is relocated.
22962 hardcode_direct_absolute=$hardcode_direct_absolute
22964 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22965 # into the resulting binary.
22966 hardcode_minus_L=$hardcode_minus_L
22968 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22969 # into the resulting binary.
22970 hardcode_shlibpath_var=$hardcode_shlibpath_var
22972 # Set to "yes" if building a shared library automatically hardcodes DIR
22973 # into the library and all subsequent libraries and executables linked
22975 hardcode_automatic=$hardcode_automatic
22977 # Set to yes if linker adds runtime paths of dependent libraries
22978 # to runtime path list.
22979 inherit_rpath=$inherit_rpath
22981 # Whether libtool must link a program against all its dependency libraries.
22982 link_all_deplibs=$link_all_deplibs
22984 # Fix the shell variable \$srcfile for the compiler.
22985 fix_srcfile_path=$lt_fix_srcfile_path
22987 # Set to "yes" if exported symbols are required.
22988 always_export_symbols=$always_export_symbols
22990 # The commands to list exported symbols.
22991 export_symbols_cmds=$lt_export_symbols_cmds
22993 # Symbols that should not be listed in the preloaded symbols.
22994 exclude_expsyms=$lt_exclude_expsyms
22996 # Symbols that must always be exported.
22997 include_expsyms=$lt_include_expsyms
22999 # Commands necessary for linking programs (against libraries) with templates.
23000 prelink_cmds=$lt_prelink_cmds
23002 # Specify filename containing input files.
23003 file_list_spec=$lt_file_list_spec
23005 # How to hardcode a shared library path into an executable.
23006 hardcode_action=$hardcode_action
23008 # The directories searched by this compiler when creating a shared library.
23009 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23011 # Dependencies to place before and after the objects being linked to
23012 # create a shared library.
23013 predep_objects=$lt_predep_objects
23014 postdep_objects=$lt_postdep_objects
23015 predeps=$lt_predeps
23016 postdeps=$lt_postdeps
23018 # The library search path used internally by the compiler when linking
23019 # a shared library.
23020 compiler_lib_search_path=$lt_compiler_lib_search_path
23022 # ### END LIBTOOL CONFIG
23028 cat <<\_LT_EOF >> "$cfgfile"
23029 # AIX sometimes has problems with the GCC collect2 program. For some
23030 # reason, if we set the COLLECT_NAMES environment variable, the problems
23031 # vanish in a puff of smoke.
23032 if test "X${COLLECT_NAMES+set}" != Xset; then
23034 export COLLECT_NAMES
23041 ltmain="$ac_aux_dir/ltmain.sh"
23044 # We use sed instead of cat because bash on DJGPP gets confused if
23045 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23046 # text mode, it properly converts lines to CR/LF. This bash problem
23047 # is reportedly fixed, but why not run on old versions too?
23048 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23049 || (rm -f "$cfgfile"; exit 1)
23053 cat << \_LT_EOF >> "$cfgfile"
23055 # func_dirname file append nondir_replacement
23056 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23057 # otherwise set result to NONDIR_REPLACEMENT.
23061 */*) func_dirname_result="${1%/*}${2}" ;;
23062 * ) func_dirname_result="${3}" ;;
23066 # func_basename file
23069 func_basename_result="${1##*/}"
23072 # func_dirname_and_basename file append nondir_replacement
23073 # perform func_basename and func_dirname in a single function
23075 # dirname: Compute the dirname of FILE. If nonempty,
23076 # add APPEND to the result, otherwise set result
23077 # to NONDIR_REPLACEMENT.
23078 # value returned in "$func_dirname_result"
23079 # basename: Compute filename of FILE.
23080 # value retuned in "$func_basename_result"
23081 # Implementation must be kept synchronized with func_dirname
23082 # and func_basename. For efficiency, we do not delegate to
23083 # those functions but instead duplicate the functionality here.
23084 func_dirname_and_basename ()
23087 */*) func_dirname_result="${1%/*}${2}" ;;
23088 * ) func_dirname_result="${3}" ;;
23090 func_basename_result="${1##*/}"
23093 # func_stripname prefix suffix name
23094 # strip PREFIX and SUFFIX off of NAME.
23095 # PREFIX and SUFFIX must not contain globbing or regex special
23096 # characters, hashes, percent signs, but SUFFIX may contain a leading
23097 # dot (in which case that matches only a dot).
23100 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23101 # positional parameters, so assign one to ordinary parameter first.
23102 func_stripname_result=${3}
23103 func_stripname_result=${func_stripname_result#"${1}"}
23104 func_stripname_result=${func_stripname_result%"${2}"}
23110 func_opt_split_opt=${1%%=*}
23111 func_opt_split_arg=${1#*=}
23118 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23119 *) func_lo2o_result=${1} ;;
23123 # func_xform libobj-or-source
23126 func_xform_result=${1%.*}.lo
23129 # func_arith arithmetic-term...
23132 func_arith_result=$(( $* ))
23136 # STRING may not start with a hyphen.
23139 func_len_result=${#1}
23144 *) # Bourne compatible functions.
23145 cat << \_LT_EOF >> "$cfgfile"
23147 # func_dirname file append nondir_replacement
23148 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23149 # otherwise set result to NONDIR_REPLACEMENT.
23152 # Extract subdirectory from the argument.
23153 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23154 if test "X$func_dirname_result" = "X${1}"; then
23155 func_dirname_result="${3}"
23157 func_dirname_result="$func_dirname_result${2}"
23161 # func_basename file
23164 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23168 # func_stripname prefix suffix name
23169 # strip PREFIX and SUFFIX off of NAME.
23170 # PREFIX and SUFFIX must not contain globbing or regex special
23171 # characters, hashes, percent signs, but SUFFIX may contain a leading
23172 # dot (in which case that matches only a dot).
23173 # func_strip_suffix prefix name
23177 .*) func_stripname_result=`$ECHO "X${3}" \
23178 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23179 *) func_stripname_result=`$ECHO "X${3}" \
23180 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23185 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23186 my_sed_long_arg='1s/^-[^=]*=//'
23191 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23192 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23198 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23201 # func_xform libobj-or-source
23204 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23207 # func_arith arithmetic-term...
23210 func_arith_result=`expr "$@"`
23214 # STRING may not start with a hyphen.
23217 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23223 case $lt_shell_append in
23225 cat << \_LT_EOF >> "$cfgfile"
23227 # func_append var value
23228 # Append VALUE to the end of shell variable VAR.
23236 cat << \_LT_EOF >> "$cfgfile"
23238 # func_append var value
23239 # Append VALUE to the end of shell variable VAR.
23250 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23251 || (rm -f "$cfgfile"; exit 1)
23253 mv -f "$cfgfile" "$ofile" ||
23254 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23258 cat <<_LT_EOF >> "$ofile"
23260 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23262 # The linker used to build libraries.
23265 # Commands used to build an old-style archive.
23266 old_archive_cmds=$lt_old_archive_cmds_CXX
23268 # A language specific compiler.
23269 CC=$lt_compiler_CXX
23271 # Is the compiler the GNU compiler?
23274 # Compiler flag to turn off builtin functions.
23275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23277 # How to pass a linker flag through the compiler.
23278 wl=$lt_lt_prog_compiler_wl_CXX
23280 # Additional compiler flags for building library objects.
23281 pic_flag=$lt_lt_prog_compiler_pic_CXX
23283 # Compiler flag to prevent dynamic linking.
23284 link_static_flag=$lt_lt_prog_compiler_static_CXX
23286 # Does compiler simultaneously support -c and -o options?
23287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23289 # Whether or not to add -lc for building shared libraries.
23290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23292 # Whether or not to disallow shared libs when runtime libs are static.
23293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23295 # Compiler flag to allow reflexive dlopens.
23296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23298 # Compiler flag to generate shared objects directly from archives.
23299 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23301 # Whether the compiler copes with passing no objects directly.
23302 compiler_needs_object=$lt_compiler_needs_object_CXX
23304 # Create an old-style archive from a shared archive.
23305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23307 # Create a temporary old-style archive to link instead of a shared archive.
23308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23310 # Commands used to build a shared archive.
23311 archive_cmds=$lt_archive_cmds_CXX
23312 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23314 # Commands used to build a loadable module if different from building
23315 # a shared archive.
23316 module_cmds=$lt_module_cmds_CXX
23317 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23319 # Whether we are building with GNU ld or not.
23320 with_gnu_ld=$lt_with_gnu_ld_CXX
23322 # Flag that allows shared libraries with undefined symbols to be built.
23323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23325 # Flag that enforces no undefined symbols.
23326 no_undefined_flag=$lt_no_undefined_flag_CXX
23328 # Flag to hardcode \$libdir into a binary during linking.
23329 # This must work even if \$libdir does not exist
23330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23332 # If ld is used when linking, flag to hardcode \$libdir into a binary
23333 # during linking. This must work even if \$libdir does not exist.
23334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23336 # Whether we need a single "-rpath" flag with a separated argument.
23337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23340 # DIR into the resulting binary.
23341 hardcode_direct=$hardcode_direct_CXX
23343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23344 # DIR into the resulting binary and the resulting library dependency is
23345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23346 # library is relocated.
23347 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23350 # into the resulting binary.
23351 hardcode_minus_L=$hardcode_minus_L_CXX
23353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23354 # into the resulting binary.
23355 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23357 # Set to "yes" if building a shared library automatically hardcodes DIR
23358 # into the library and all subsequent libraries and executables linked
23360 hardcode_automatic=$hardcode_automatic_CXX
23362 # Set to yes if linker adds runtime paths of dependent libraries
23363 # to runtime path list.
23364 inherit_rpath=$inherit_rpath_CXX
23366 # Whether libtool must link a program against all its dependency libraries.
23367 link_all_deplibs=$link_all_deplibs_CXX
23369 # Fix the shell variable \$srcfile for the compiler.
23370 fix_srcfile_path=$lt_fix_srcfile_path_CXX
23372 # Set to "yes" if exported symbols are required.
23373 always_export_symbols=$always_export_symbols_CXX
23375 # The commands to list exported symbols.
23376 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23378 # Symbols that should not be listed in the preloaded symbols.
23379 exclude_expsyms=$lt_exclude_expsyms_CXX
23381 # Symbols that must always be exported.
23382 include_expsyms=$lt_include_expsyms_CXX
23384 # Commands necessary for linking programs (against libraries) with templates.
23385 prelink_cmds=$lt_prelink_cmds_CXX
23387 # Specify filename containing input files.
23388 file_list_spec=$lt_file_list_spec_CXX
23390 # How to hardcode a shared library path into an executable.
23391 hardcode_action=$hardcode_action_CXX
23393 # The directories searched by this compiler when creating a shared library.
23394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23396 # Dependencies to place before and after the objects being linked to
23397 # create a shared library.
23398 predep_objects=$lt_predep_objects_CXX
23399 postdep_objects=$lt_postdep_objects_CXX
23400 predeps=$lt_predeps_CXX
23401 postdeps=$lt_postdeps_CXX
23403 # The library search path used internally by the compiler when linking
23404 # a shared library.
23405 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23407 # ### END LIBTOOL TAG CONFIG: CXX
23412 for ac_file in $CONFIG_FILES; do
23413 # Support "outfile[:infile[:infile...]]"
23415 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23417 # PO directories have a Makefile.in generated from Makefile.in.in.
23418 case "$ac_file" in */Makefile.in)
23419 # Adjust a relative srcdir.
23420 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23421 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23422 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23423 # In autoconf-2.13 it is called $ac_given_srcdir.
23424 # In autoconf-2.50 it is called $srcdir.
23425 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23426 case "$ac_given_srcdir" in
23427 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23428 /*) top_srcdir="$ac_given_srcdir" ;;
23429 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23431 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23432 rm -f "$ac_dir/POTFILES"
23433 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23434 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23435 POMAKEFILEDEPS="POTFILES.in"
23436 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23437 # on $ac_dir but don't depend on user-specified configuration
23439 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23440 # The LINGUAS file contains the set of available languages.
23441 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23442 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23444 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23445 # Hide the ALL_LINGUAS assigment from automake.
23446 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23447 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23449 # The set of available languages was given in configure.in.
23450 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23453 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23454 # Compute UPDATEPOFILES
23455 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23456 # Compute DUMMYPOFILES
23457 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23459 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23460 case "$ac_given_srcdir" in
23462 *) srcdirpre='$(srcdir)/' ;;
23468 for lang in $ALL_LINGUAS; do
23469 POFILES="$POFILES $srcdirpre$lang.po"
23470 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23471 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23472 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23474 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23475 # environment variable.
23477 if test -n "$ALL_LINGUAS"; then
23478 for presentlang in $ALL_LINGUAS; do
23480 if test "%UNSET%" != "$LINGUAS"; then
23481 desiredlanguages="$LINGUAS"
23483 desiredlanguages="$ALL_LINGUAS"
23485 for desiredlang in $desiredlanguages; do
23486 # Use the presentlang catalog if desiredlang is
23487 # a. equal to presentlang, or
23488 # b. a variant of presentlang (because in this case,
23489 # presentlang can be used as a fallback for messages
23490 # which are not translated in the desiredlang catalog).
23491 case "$desiredlang" in
23492 "$presentlang"*) useit=yes;;
23495 if test $useit = yes; then
23496 INST_LINGUAS="$INST_LINGUAS $presentlang"
23501 if test -n "$INST_LINGUAS"; then
23502 for lang in $INST_LINGUAS; do
23503 CATALOGS="$CATALOGS $lang.gmo"
23506 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23507 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23508 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23509 if test -f "$f"; then
23511 *.orig | *.bak | *~) ;;
23512 *) cat "$f" >> "$ac_dir/Makefile" ;;
23521 for ac_file in $CONFIG_FILES; do
23522 # Support "outfile[:infile[:infile...]]"
23524 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23526 # PO directories have a Makefile.in generated from Makefile.in.in.
23527 case "$ac_file" in */Makefile.in)
23528 # Adjust a relative srcdir.
23529 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23530 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23531 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23532 # In autoconf-2.13 it is called $ac_given_srcdir.
23533 # In autoconf-2.50 it is called $srcdir.
23534 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23535 case "$ac_given_srcdir" in
23536 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23537 /*) top_srcdir="$ac_given_srcdir" ;;
23538 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23540 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23541 rm -f "$ac_dir/POTFILES"
23542 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23543 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23544 POMAKEFILEDEPS="POTFILES.in"
23545 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23546 # on $ac_dir but don't depend on user-specified configuration
23548 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23549 # The LINGUAS file contains the set of available languages.
23550 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23551 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23553 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23554 # Hide the ALL_LINGUAS assigment from automake.
23555 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23556 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23558 # The set of available languages was given in configure.in.
23559 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23562 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23563 # Compute UPDATEPOFILES
23564 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23565 # Compute DUMMYPOFILES
23566 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23568 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23569 case "$ac_given_srcdir" in
23571 *) srcdirpre='$(srcdir)/' ;;
23577 for lang in $ALL_LINGUAS; do
23578 POFILES="$POFILES $srcdirpre$lang.po"
23579 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23580 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23581 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23583 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23584 # environment variable.
23586 if test -n "$ALL_LINGUAS"; then
23587 for presentlang in $ALL_LINGUAS; do
23589 if test "%UNSET%" != "$LINGUAS"; then
23590 desiredlanguages="$LINGUAS"
23592 desiredlanguages="$ALL_LINGUAS"
23594 for desiredlang in $desiredlanguages; do
23595 # Use the presentlang catalog if desiredlang is
23596 # a. equal to presentlang, or
23597 # b. a variant of presentlang (because in this case,
23598 # presentlang can be used as a fallback for messages
23599 # which are not translated in the desiredlang catalog).
23600 case "$desiredlang" in
23601 "$presentlang"*) useit=yes;;
23604 if test $useit = yes; then
23605 INST_LINGUAS="$INST_LINGUAS $presentlang"
23610 if test -n "$INST_LINGUAS"; then
23611 for lang in $INST_LINGUAS; do
23612 CATALOGS="$CATALOGS $lang.gmo"
23615 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23616 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23617 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23618 if test -f "$f"; then
23620 *.orig | *.bak | *~) ;;
23621 *) cat "$f" >> "$ac_dir/Makefile" ;;
23630 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23631 if test -f "$ac_file"; then
23632 chmod +x "$ac_file"
23637 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23638 if test -f "$ac_file"; then
23639 chmod +x "$ac_file"
23643 "gphoto2-config":F)
23644 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23645 if test -f "$ac_file"; then
23646 chmod +x "$ac_file"
23650 "camlibs/Makefile":F)
23651 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23652 if test -f "$ac_file"; then
23653 chmod +x "$ac_file"
23657 "libgphoto2/Makefile":F)
23658 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23659 if test -f "$ac_file"; then
23660 chmod +x "$ac_file"
23665 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23666 if test -f "$ac_file"; then
23667 chmod +x "$ac_file"
23671 "libgphoto2-uninstalled.pc":F)
23672 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23673 if test -f "$ac_file"; then
23674 chmod +x "$ac_file"
23678 "examples/Makefile":F)
23679 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23680 if test -f "$ac_file"; then
23681 chmod +x "$ac_file"
23685 "tests/Makefile":F)
23686 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23687 if test -f "$ac_file"; then
23688 chmod +x "$ac_file"
23692 "tests/check-camera-list.sh":F)
23693 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23694 if test -f "$ac_file"; then
23695 chmod +x "$ac_file"
23699 "tests/ddb/Makefile":F)
23700 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23701 if test -f "$ac_file"; then
23702 chmod +x "$ac_file"
23706 "tests/ddb/check-ddb.sh":F)
23707 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23708 if test -f "$ac_file"; then
23709 chmod +x "$ac_file"
23713 "packaging/Makefile":F)
23714 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23715 if test -f "$ac_file"; then
23716 chmod +x "$ac_file"
23720 "packaging/linux-hotplug/Makefile":F)
23721 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23722 if test -f "$ac_file"; then
23723 chmod +x "$ac_file"
23727 "packaging/generic/Makefile":F)
23728 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23729 if test -f "$ac_file"; then
23730 chmod +x "$ac_file"
23734 "packaging/rpm/Makefile":F)
23735 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23736 if test -f "$ac_file"; then
23737 chmod +x "$ac_file"
23741 "packaging/rpm/package.spec":F)
23742 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23743 if test -f "$ac_file"; then
23744 chmod +x "$ac_file"
23748 "po/Makefile.in":F)
23749 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23750 if test -f "$ac_file"; then
23751 chmod +x "$ac_file"
23756 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23757 if test -f "$ac_file"; then
23758 chmod +x "$ac_file"
23763 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23764 if test -f "$ac_file"; then
23765 chmod +x "$ac_file"
23769 "doc/api/Makefile":F)
23770 if echo "$ac_file" | grep '.sh$' > /dev/null; then
23771 if test -f "$ac_file"; then
23772 chmod +x "$ac_file"
23783 ac_clean_files=$ac_clean_files_save
23785 test $ac_write_fail = 0 ||
23786 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23789 # configure is writing to config.log, and then calls config.status.
23790 # config.status does its own redirection, appending to config.log.
23791 # Unfortunately, on DOS this fails, as config.log is still kept open
23792 # by configure, so config.status won't be able to write to it; its
23793 # output is simply discarded. So we exec the FD to /dev/null,
23794 # effectively closing config.log, so it can be properly (re)opened and
23795 # appended to by config.status. When coming back to configure, we
23796 # need to make the FD available again.
23797 if test "$no_create" != yes; then
23799 ac_config_status_args=
23800 test "$silent" = yes &&
23801 ac_config_status_args="$ac_config_status_args --quiet"
23803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23806 # would make configure fail if this is the last instruction.
23807 $ac_cs_success || as_fn_exit 1
23811 # CONFIG_SUBDIRS section.
23813 if test "$no_recursion" != yes; then
23815 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23816 # so they do not pile up.
23817 ac_sub_configure_args=
23819 eval "set x $ac_configure_args"
23823 if test -n "$ac_prev"; then
23828 -cache-file | --cache-file | --cache-fil | --cache-fi \
23829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23830 ac_prev=cache_file ;;
23831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23835 --config-cache | -C)
23837 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23839 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23841 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23843 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23845 --disable-option-checking)
23849 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23851 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23855 # Always prepend --prefix to ensure using the same prefix
23856 # in subdir configurations.
23857 ac_arg="--prefix=$prefix"
23859 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23861 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23864 if test "$silent" = yes; then
23865 ac_sub_configure_args="--silent $ac_sub_configure_args"
23868 # Always prepend --disable-option-checking to silence warnings, since
23869 # different subdirs can have different --enable and --with options.
23870 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23873 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23875 # Do not complain, so a configure script can configure whichever
23876 # parts of a large source tree are present.
23877 test -d "$srcdir/$ac_dir" || continue
23879 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23880 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23881 $as_echo "$ac_msg" >&6
23882 as_dir="$ac_dir"; as_fn_mkdir_p
23886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23889 # A ".." for each directory in $ac_dir_suffix.
23890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23891 case $ac_top_builddir_sub in
23892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23896 ac_abs_top_builddir=$ac_pwd
23897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23898 # for backward compatibility:
23899 ac_top_builddir=$ac_top_build_prefix
23902 .) # We are building in place.
23904 ac_top_srcdir=$ac_top_builddir_sub
23905 ac_abs_top_srcdir=$ac_pwd ;;
23906 [\\/]* | ?:[\\/]* ) # Absolute name.
23907 ac_srcdir=$srcdir$ac_dir_suffix;
23908 ac_top_srcdir=$srcdir
23909 ac_abs_top_srcdir=$srcdir ;;
23910 *) # Relative name.
23911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23912 ac_top_srcdir=$ac_top_build_prefix$srcdir
23913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23920 # Check for guested configure; otherwise get Cygnus style configure.
23921 if test -f "$ac_srcdir/configure.gnu"; then
23922 ac_sub_configure=$ac_srcdir/configure.gnu
23923 elif test -f "$ac_srcdir/configure"; then
23924 ac_sub_configure=$ac_srcdir/configure
23925 elif test -f "$ac_srcdir/configure.in"; then
23926 # This should be Cygnus configure.
23927 ac_sub_configure=$ac_aux_dir/configure
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23934 # The recursion is here.
23935 if test -n "$ac_sub_configure"; then
23936 # Make the cache file name correct relative to the subdirectory.
23937 case $cache_file in
23938 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23939 *) # Relative name.
23940 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23944 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23945 # The eval makes quoting arguments work.
23946 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23947 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23948 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23960 if test "x$CDPATH" != "x"
23963 echo "***********************************************************"
23964 echo "* You have CDPATH set. You may have to run \"unset CDPATH\" *"
23965 echo "* before running \"make dist\" or \"make rpm\". *"
23966 echo "***********************************************************"
23969 # Message about configured subprojects
23970 if test "x$subdirs" != "x"; then
23972 gp_config_msg="${gp_config_msg}
23975 for sd in $subdirs; do
23976 ssd="$(basename "$sd")"
23977 if test "x$_subdirs" = "x"; then
23980 _subdirs="$_subdirs $ssd"
23984 gp_config_msg_len="$(expr "Subprojects" : '.*')"
23985 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
23986 gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
23988 gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
23990 gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${_subdirs}
23994 echo "${gp_config_msg}
23995 You may run \"make\" and \"make install\" now."
23998 if test "$BUILD_THESE_CAMLIBS" = " canon.la" ; then
24000 echo "*** Note: Newer Canon Cameras are supported by the ptp2 camera driver."
24001 echo "*** 'canon' is used for older models."
24002 echo "*** If you are unsure, please enable both the canon and ptp2 driver."
24007 Please check whether the configuration I detected matches what you
24008 would like to have. E.g. make sure that USB support is there if you
24009 intend to use USB cameras with $PACKAGE_NAME.
24011 Please also check that PKG_CONFIG_PATH contains
24013 before compiling any libgphoto2 frontend.