2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for xf86-input-synaptics 1.4.0.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$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: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='xf86-input-synaptics'
565 PACKAGE_TARNAME='xf86-input-synaptics'
566 PACKAGE_VERSION='1.4.0'
567 PACKAGE_STRING='xf86-input-synaptics 1.4.0'
568 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
571 ac_unique_file="Makefile.am"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
608 ac_subst_vars='am__EXEEXT_FALSE
618 BUILD_EVENTCOMM_FALSE
622 HAS_XORG_CONF_DIR_FALSE
623 HAS_XORG_CONF_DIR_TRUE
696 MAINTAINER_MODE_FALSE
706 INSTALL_STRIP_PROGRAM
748 program_transform_name
761 enable_option_checking
762 enable_maintainer_mode
767 enable_dependency_tracking
770 enable_strict_compilation
776 ac_precious_vars='build_alias
796 # Initialize some variables set by options.
798 ac_init_version=false
799 ac_unrecognized_opts=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=\$ac_optarg ;;
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
953 -help | --help | --hel | --he | -h)
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 htmldir=$ac_optarg ;;
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
983 -libdir | --libdir | --libdi | --libd)
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
995 -localedir | --localedir | --localedi | --localed | --locale)
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1074 -psdir | --psdir | --psdi | --psd | --ps)
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1102 -site=* | --site=* | --sit=*)
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval with_$ac_useropt=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1229 # Be sure to have absolute directory names.
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used" >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures xf86-input-synaptics 1.4.0 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root
1384 [DATAROOTDIR/doc/xf86-input-synaptics]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of xf86-input-synaptics 1.4.0:";;
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
1416 --enable-static[=PKGS] build static libraries [default=no]
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-dependency-tracking speeds up one-time build
1421 --enable-dependency-tracking do not reject slow dependency extractors
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-strict-compilation
1424 Enable all warnings from compiler and make them
1425 errors (default: disabled)
1426 --enable-silent-rules less verbose build output (undo: `make V=1')
1427 --disable-silent-rules verbose build output (undo: `make V=0')
1428 --enable-debug Enable debugging (default: disabled)
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-xorg-module-dir=DIR
1437 Default xorg module directory
1438 [[default=$libdir/xorg/modules]]
1439 --with-xorg-conf-dir=DIR
1440 Default xorg.conf.d directory [[default=from
1441 $PKG_CONFIG xorg-server]]
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1452 PKG_CONFIG path to pkg-config utility
1454 directories to add to pkg-config's search path
1456 path overriding pkg-config's built-in search path
1457 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1458 XORG_LIBS linker flags for XORG, overriding pkg-config
1459 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1460 XI_LIBS linker flags for XI, overriding pkg-config
1461 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1462 XTST_LIBS linker flags for XTST, overriding pkg-config
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1497 .) # We are building in place.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1530 xf86-input-synaptics configure 1.4.0
1531 generated by GNU Autoconf 2.66
1533 Copyright (C) 2010 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_compile
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 $as_test_x conftest$ac_exeext
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_link
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval "test \"\${$3+set}\"" = set; then :
1638 $as_echo_n "(cached) " >&6
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1645 if ac_fn_c_try_compile "$LINENO"; then :
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 } # ac_fn_c_check_header_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } >/dev/null && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=$ac_status
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 as_fn_set_status $ac_retval
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval "test \"\${$3+set}\"" = set; then :
1747 $as_echo_n "(cached) " >&6
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1761 # include <limits.h>
1763 # include <assert.h>
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1790 if ac_fn_c_try_link "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 } # ac_fn_c_check_func
1805 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1806 # ---------------------------------------------
1807 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1809 ac_fn_c_check_decl ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 as_decl_name=`echo $2|sed 's/ *(.*//'`
1813 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1816 if eval "test \"\${$3+set}\"" = set; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1825 #ifndef $as_decl_name
1827 (void) $as_decl_use;
1829 (void) $as_decl_name;
1837 if ac_fn_c_try_compile "$LINENO"; then :
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_decl
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1854 It was created by xf86-input-synaptics $as_me 1.4.0, which was
1855 generated by GNU Autoconf 2.66. Invocation command line was
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_must_keep_next=false
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 -* ) ac_must_keep_next=true ;;
1947 as_fn_append ac_configure_args " '$ac_arg'"
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1965 $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1969 # The following way of writing the cache mishandles newlines in values,
1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972 eval ac_val=\$$ac_var
1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 _ | IFS | as_nl) ;; #(
1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982 *) { eval $ac_var=; unset $ac_var;} ;;
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2001 $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2005 for ac_var in $ac_subst_vars
2007 eval ac_val=\$$ac_var
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 $as_echo "$ac_var='\''$ac_val'\''"
2015 if test -n "$ac_subst_files"; then
2016 $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2020 for ac_var in $ac_subst_files
2022 eval ac_val=\$$ac_var
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 $as_echo "$ac_var='\''$ac_val'\''"
2031 if test -s confdefs.h; then
2032 $as_echo "## ----------- ##
2039 test "$ac_signal" != 0 &&
2040 $as_echo "$as_me: caught signal $ac_signal"
2041 $as_echo "$as_me: exit $exit_status"
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2055 $as_echo "/* confdefs.h */" > confdefs.h
2057 # Predefined preprocessor variables.
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2088 if test -n "$CONFIG_SITE"; then
2089 # We do not want a PATH search for config.site.
2090 case $CONFIG_SITE in #((
2091 -*) ac_site_file1=./$CONFIG_SITE;;
2092 */*) ac_site_file1=$CONFIG_SITE;;
2093 *) ac_site_file1=./$CONFIG_SITE;;
2095 elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104 test "x$ac_site_file" = xNONE && continue
2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 # Check that the precious variables saved in the cache have kept the same
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139 eval ac_new_set=\$ac_env_${ac_var}_set
2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141 eval ac_new_val=\$ac_env_${ac_var}_value
2142 case $ac_old_set,$ac_new_set in
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2153 if test "x$ac_old_val" != "x$ac_new_val"; then
2154 # differences in whitespace do not lead to failure.
2155 ac_old_val_w=`echo x $ac_old_val`
2156 ac_new_val_w=`echo x $ac_new_val`
2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160 ac_cache_corrupted=:
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164 eval $ac_var=\$ac_old_val
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2172 # Pass precious variables to config.status.
2173 if test "$ac_new_set" = set; then
2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 *) ac_arg=$ac_var=$ac_new_val ;;
2178 case " $ac_configure_args " in
2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184 if $ac_cache_corrupted; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203 ac_config_headers="$ac_config_headers config.h"
2206 for ac_dir in . "$srcdir"/.; do
2207 if test -f "$ac_dir/install-sh"; then
2209 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 elif test -f "$ac_dir/install.sh"; then
2213 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 elif test -f "$ac_dir/shtool"; then
2217 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 if test -z "$ac_aux_dir"; then
2222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235 # Initialize Automake
2236 am__api_version='1.11'
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 # Reject install programs that cannot install multiple files.
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2254 if test -z "$INSTALL"; then
2255 if test "${ac_cv_path_install+set}" = set; then :
2256 $as_echo_n "(cached) " >&6
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 # Account for people who put trailing slashes in PATH elements.
2264 case $as_dir/ in #((
2265 ./ | .// | /[cC]/* | \
2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2270 # OSF1 and SCO ODT 3.0 have their own names for install.
2271 # Don't use installbsd from OSF since it installs stuff as root
2273 for ac_prog in ginstall scoinst install; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276 if test $ac_prog = install &&
2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # AIX install. It has an incompatible calling convention.
2280 elif test $ac_prog = install &&
2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282 # program-specific install script used by HP pwplus--don't use.
2285 rm -rf conftest.one conftest.two conftest.dir
2286 echo one > conftest.one
2287 echo two > conftest.two
2289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290 test -s conftest.one && test -s conftest.two &&
2291 test -s conftest.dir/conftest.one &&
2292 test -s conftest.dir/conftest.two
2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2307 rm -rf conftest.one conftest.two conftest.dir
2310 if test "${ac_cv_path_install+set}" = set; then
2311 INSTALL=$ac_cv_path_install
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for INSTALL within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 INSTALL=$ac_install_sh
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321 $as_echo "$INSTALL" >&6; }
2323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324 # It thinks the first close brace ends the variable substitution.
2325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332 $as_echo_n "checking whether build environment is sane... " >&6; }
2335 echo timestamp > conftest.file
2336 # Reject unsafe characters in $srcdir or the absolute working directory
2337 # name. Accept space and tab only in the latter.
2341 *[\\\"\#\$\&\'\`$am_lf]*)
2342 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2346 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2349 # Do `set' in a subshell so we don't clobber the current shell's
2350 # arguments. Must try -L first in case configure is actually a
2351 # symlink; some systems play weird games with the mod time of symlinks
2352 # (eg FreeBSD returns the mod time of the symlink's containing
2355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356 if test "$*" = "X"; then
2358 set X `ls -t "$srcdir/configure" conftest.file`
2361 if test "$*" != "X $srcdir/configure conftest.file" \
2362 && test "$*" != "X conftest.file $srcdir/configure"; then
2364 # If neither matched, then we have a broken ls. This can happen
2365 # if, for instance, CONFIG_SHELL is bash and it inherits a
2366 # broken ls alias from the environment. This has actually
2367 # happened. Such a system could not be considered "sane".
2368 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2369 alias in your environment" "$LINENO" 5
2372 test "$2" = conftest.file
2378 as_fn_error $? "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 test "$program_prefix" != NONE &&
2384 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385 # Use a double $ so make ignores it.
2386 test "$program_suffix" != NONE &&
2387 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388 # Double any \ or $.
2389 # By default was `s,x,x', remove it if useless.
2390 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2396 if test x"${MISSING+set}" != xset; then
2399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2404 # Use eval to expand $SHELL
2405 if eval "$MISSING --run true"; then
2406 am_missing_run="$MISSING --run "
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2413 if test x"${install_sh}" != xset; then
2416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418 install_sh="\${SHELL} $am_aux_dir/install-sh"
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'. However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_STRIP+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2466 if test -z "$ac_cv_prog_STRIP"; then
2468 # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_STRIP="strip"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2504 if test "x$ac_ct_STRIP" = x; then
2507 case $cross_compiling:$ac_tool_warned in
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524 if test -z "$MKDIR_P"; then
2525 if test "${ac_cv_path_mkdir+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in mkdir gmkdir; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537 'mkdir (GNU coreutils) '* | \
2538 'mkdir (coreutils) '* | \
2539 'mkdir (fileutils) '4.1*)
2540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550 test -d ./--version && rmdir ./--version
2551 if test "${ac_cv_path_mkdir+set}" = set; then
2552 MKDIR_P="$ac_cv_path_mkdir -p"
2554 # As a last resort, use the slow shell script. Don't cache a
2555 # value for MKDIR_P within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the value is a relative name.
2558 MKDIR_P="$ac_install_sh -d"
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562 $as_echo "$MKDIR_P" >&6; }
2566 [\\/$]* | ?:[\\/]*) ;;
2567 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2570 for ac_prog in gawk mawk nawk awk
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if test "${ac_cv_prog_AWK+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$AWK"; then
2580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_AWK="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$AWK"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2609 test -n "$AWK" && break
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2617 $as_echo_n "(cached) " >&6
2619 cat >conftest.make <<\_ACEOF
2622 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 eval ac_cv_prog_make_${ac_make}_set=yes;;
2629 eval ac_cv_prog_make_${ac_make}_set=no;;
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 SET_MAKE="MAKE=${MAKE-make}"
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2650 rmdir .tst 2>/dev/null
2652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654 # is not polluted with repeated "-I."
2655 am__isrc=' -I$(srcdir)'
2656 # test to see if srcdir already configured
2657 if test -f $srcdir/config.status; then
2658 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2662 # test whether we have cygpath
2663 if test -z "$CYGPATH_W"; then
2664 if (cygpath --version) >/dev/null 2>/dev/null; then
2665 CYGPATH_W='cygpath -w'
2672 # Define the identity of the package.
2673 PACKAGE='xf86-input-synaptics'
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE "$PACKAGE"
2682 cat >>confdefs.h <<_ACEOF
2683 #define VERSION "$VERSION"
2686 # Some tools Automake needs.
2688 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2691 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2694 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2697 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2700 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2702 # We need awk for the "check" target. The system "awk" is bad on
2704 # Always define AMTAR for backward compatibility.
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2717 # Check whether --enable-maintainer-mode was given.
2718 if test "${enable_maintainer_mode+set}" = set; then :
2719 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2721 USE_MAINTAINER_MODE=no
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2726 if test $USE_MAINTAINER_MODE = yes; then
2727 MAINTAINER_MODE_TRUE=
2728 MAINTAINER_MODE_FALSE='#'
2730 MAINTAINER_MODE_TRUE='#'
2731 MAINTAINER_MODE_FALSE=
2734 MAINT=$MAINTAINER_MODE_TRUE
2738 # Initialize libtool
2739 # Check whether --enable-static was given.
2740 if test "${enable_static+set}" = set; then :
2741 enableval=$enable_static; p=${PACKAGE-default}
2743 yes) enable_static=yes ;;
2744 no) enable_static=no ;;
2747 # Look at the argument we got. We use all the common list separators.
2748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2749 for pkg in $enableval; do
2751 if test "X$pkg" = "X$p"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2773 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2778 macro_version='2.2.10'
2779 macro_revision='1.3175'
2793 ltmain="$ac_aux_dir/ltmain.sh"
2795 # Make sure we can run config.sub.
2796 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2800 $as_echo_n "checking build system type... " >&6; }
2801 if test "${ac_cv_build+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2804 ac_build_alias=$build_alias
2805 test "x$ac_build_alias" = x &&
2806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2807 test "x$ac_build_alias" = x &&
2808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2814 $as_echo "$ac_cv_build" >&6; }
2815 case $ac_cv_build in
2817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2820 ac_save_IFS=$IFS; IFS='-'
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2834 $as_echo_n "checking host system type... " >&6; }
2835 if test "${ac_cv_host+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2838 if test "x$host_alias" = x; then
2839 ac_cv_host=$ac_cv_build
2841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2847 $as_echo "$ac_cv_host" >&6; }
2850 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2853 ac_save_IFS=$IFS; IFS='-'
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2866 # Backslashify metacharacters that are still active within
2867 # double-quoted strings.
2868 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2870 # Same as above, but do not quote variable references.
2871 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2873 # Sed substitution to delay expansion of an escaped shell variable in a
2874 # double_quote_subst'ed string.
2875 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2877 # Sed substitution to delay expansion of an escaped single quote.
2878 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2880 # Sed substitution to avoid accidental globbing in evaled expressions
2881 no_glob_subst='s/\*/\\\*/g'
2883 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2884 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2888 $as_echo_n "checking how to print strings... " >&6; }
2889 # Test print first, because it will be a builtin if present.
2890 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2891 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2893 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2896 # Use this function as a fallback that always works.
2897 func_fallback_echo ()
2899 eval 'cat <<_LTECHO_EOF
2903 ECHO='func_fallback_echo'
2906 # func_echo_all arg...
2907 # Invoke $ECHO with all args, space-separated.
2914 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2915 $as_echo "printf" >&6; } ;;
2916 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2917 $as_echo "print -r" >&6; } ;;
2918 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2919 $as_echo "cat" >&6; } ;;
2935 DEPDIR="${am__leading_dot}deps"
2937 ac_config_commands="$ac_config_commands depfiles"
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2943 @echo this is the am__doit target
2946 # If we don't find an include directive, just comment out the code.
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # Ignore all kinds of additional output from `make'.
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964 echo '.include "confinc"' > confmf
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=.include
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976 $as_echo "$_am_result" >&6; }
2977 rm -f confinc confmf
2979 # Check whether --enable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then :
2981 enableval=$enable_dependency_tracking;
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2988 if test "x$enable_dependency_tracking" != xno; then
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_CC"; then
3043 # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC="gcc"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_CC" = x; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="${ac_tool_prefix}cc"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155 ac_prog_rejected=yes
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy $ac_cv_prog_CC
3170 if test $# != 0; then
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog in cl.exe
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$CC" && break
3235 if test -z "$CC"; then
3237 for ac_prog in cl.exe
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy $ac_prog; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC="$ac_prog"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$ac_ct_CC" && break
3279 if test "x$ac_ct_CC" = x; then
3282 case $cross_compiling:$ac_tool_warned in
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3295 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details" "$LINENO" 5; }
3300 # Provide some information about the compiler.
3301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304 for ac_option in --version -v -V -qversion; do
3305 { { ac_try="$ac_compiler $ac_option >&5"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3314 if test -s conftest.err; then
3316 ... rest of stderr output deleted ...
3317 10q' conftest.err >conftest.er1
3318 cat conftest.er1 >&5
3320 rm -f conftest.er1 conftest.err
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 ac_clean_files_save=$ac_clean_files
3337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3338 # Try to create an executable without -o first, disregard a.out.
3339 # It will help us diagnose broken compilers, and finding out an intuition
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3342 $as_echo_n "checking whether the C compiler works... " >&6; }
3343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3345 # The possible output files:
3346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349 for ac_file in $ac_files
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358 if { { ac_try="$ac_link_default"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link_default") 2>&5
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
3369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3370 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3371 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3372 # so that the user can short-circuit this test for compilers unknown to
3374 for ac_file in $ac_files ''
3376 test -f "$ac_file" || continue
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381 # We found the default executable, but exeext='' is most
3385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389 # We set ac_cv_exeext here because the later test for it is not
3390 # safe: cross compilers may not add the suffix if given an `-o'
3391 # argument, so we may need to know it at that point already.
3392 # Even if this section looks crufty: it has the advantage of
3399 test "$ac_cv_exeext" = no && ac_cv_exeext=
3404 if test -z "$ac_file"; then :
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error 77 "C compiler cannot create executables
3413 See \`config.log' for more details" "$LINENO" 5; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3416 $as_echo "yes" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3419 $as_echo_n "checking for C compiler default output file name... " >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3421 $as_echo "$ac_file" >&6; }
3422 ac_exeext=$ac_cv_exeext
3424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3425 ac_clean_files=$ac_clean_files_save
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3427 $as_echo_n "checking for suffix of executables... " >&6; }
3428 if { { ac_try="$ac_link"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3441 # work properly (i.e., refer to `conftest.exe'), while it won't with
3443 for ac_file in conftest.exe conftest conftest.*; do
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details" "$LINENO" 5; }
3458 rm -f conftest conftest$ac_cv_exeext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3471 FILE *f = fopen ("conftest.out", "w");
3472 return ferror (f) || fclose (f) != 0;
3478 ac_clean_files="$ac_clean_files conftest.out"
3479 # Check that the compiler produces executables we can run. If not, either
3480 # the compiler is broken, or we cross compile.
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3482 $as_echo_n "checking whether we are cross compiling... " >&6; }
3483 if test "$cross_compiling" != yes; then
3484 { { ac_try="$ac_link"
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_link") 2>&5
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3495 if { ac_try='./conftest$ac_cv_exeext'
3496 { { case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_try") 2>&5
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; }; then
3508 if test "$cross_compiling" = maybe; then
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot run C compiled programs.
3514 If you meant to cross compile, use \`--host'.
3515 See \`config.log' for more details" "$LINENO" 5; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3522 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3523 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3525 $as_echo_n "checking for suffix of object files... " >&6; }
3526 if test "${ac_cv_objext+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3540 rm -f conftest.o conftest.obj
3541 if { { ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_compile") 2>&5
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 for ac_file in conftest.o conftest.obj conftest.*; do
3553 test -f "$ac_file" || continue;
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3561 $as_echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of object files: cannot compile
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3572 $as_echo "$ac_cv_objext" >&6; }
3573 OBJEXT=$ac_cv_objext
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3576 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3577 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3594 if ac_fn_c_try_compile "$LINENO"; then :
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3605 if test $ac_compiler_gnu = yes; then
3610 ac_test_CFLAGS=${CFLAGS+set}
3611 ac_save_CFLAGS=$CFLAGS
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3614 if test "${ac_cv_prog_cc_g+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3617 ac_save_c_werror_flag=$ac_c_werror_flag
3618 ac_c_werror_flag=yes
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3647 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_c_werror_flag=$ac_save_c_werror_flag
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3663 if ac_fn_c_try_compile "$LINENO"; then :
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3674 $as_echo "$ac_cv_prog_cc_g" >&6; }
3675 if test "$ac_test_CFLAGS" = set; then
3676 CFLAGS=$ac_save_CFLAGS
3677 elif test $ac_cv_prog_cc_g = yes; then
3678 if test "$GCC" = yes; then
3684 if test "$GCC" = yes; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 ac_cv_prog_cc_c89=no
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 #include <sys/types.h>
3702 #include <sys/stat.h>
3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3704 struct buf { int x; };
3705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706 static char *e (p, i)
3712 static char *f (char * (*g) (char **, int), char **p, ...)
3717 s = g (p, va_arg (v,int));
3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3723 function prototypes and stuff, but not '\xHH' hex character constants.
3724 These don't provoke an error unfortunately, instead are silently treated
3725 as 'x'. The following induces an error, until -std is added to get
3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3727 array size at least. It's necessary to write '\x00'==0 to get something
3728 that's true only with -std. */
3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732 inside strings and character constants. */
3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3736 int test (int i, double x);
3737 struct s1 {int (*f) (int a);};
3738 struct s2 {int (*f) (double a);};
3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_c89=$ac_arg
3757 rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760 rm -f conftest.$ac_ext
3765 case "x$ac_cv_prog_cc_c89" in
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3773 CC="$CC $ac_cv_prog_cc_c89"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3777 if test "x$ac_cv_prog_cc_c89" != xno; then :
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 depcc="$CC" am_compiler_list=
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named `D' -- because `-MD' means `put the output
3801 # Copy depcomp to subdir because otherwise we won't find it if we're
3802 # using a relative directory.
3803 cp "$am_depcomp" conftest.dir
3805 # We will build objects and dependencies in a subdirectory because
3806 # it helps to detect inapplicable dependency modes. For instance
3807 # both Tru64's cc and ICC support -MD to output dependencies as a
3808 # side effect of compilation, but ICC will put the dependencies in
3809 # the current directory while Tru64 will put them in the object
3813 am_cv_CC_dependencies_compiler_type=none
3814 if test "$am_compiler_list" = ""; then
3815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818 case " $depcc " in #(
3819 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3822 for depmode in $am_compiler_list; do
3823 # Setup a source with many dependencies, because some compilers
3824 # like to wrap large dependency lists on column 80 (with \), and
3825 # we should not choose a depcomp mode which is confused by this.
3827 # We need to recreate these files for each test, as the compiler may
3828 # overwrite some of them when testing with obscure command lines.
3829 # This happens at least with the AIX C compiler.
3831 for i in 1 2 3 4 5 6; do
3832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834 # Solaris 8's {/usr,}/bin/sh.
3835 touch sub/conftst$i.h
3837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840 # mode. It turns out that the SunPro C++ compiler does not properly
3841 # handle `-M -o', and we need to detect this. Also, some Intel
3842 # versions had trouble with output in subdirs
3843 am__obj=sub/conftest.${OBJEXT-o}
3844 am__minus_obj="-o $am__obj"
3847 # This depmode causes a compiler race in universal mode.
3848 test "$am__universal" = false || continue
3851 # after this tag, mechanisms are not by side-effect, so they'll
3852 # only be used when explicitly requested
3853 if test "x$enable_dependency_tracking" = xyes; then
3859 msvisualcpp | msvcmsys)
3860 # This compiler won't grok `-c -o', but also, the minuso test has
3861 # not run yet. These depmodes are late enough in the game, and
3862 # so weak that their functioning should not be impacted.
3863 am__obj=conftest.${OBJEXT-o}
3868 if depmode=$depmode \
3869 source=sub/conftest.c object=$am__obj \
3870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3872 >/dev/null 2>conftest.err &&
3873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877 # icc doesn't choke on unknown options, it will just issue warnings
3878 # or remarks (even with -Werror). So we grep stderr for any message
3879 # that says an option was ignored or not supported.
3880 # When given -MP, icc 7.0 and 7.1 complain thusly:
3881 # icc: Command line warning: ignoring option '-M'; no argument required
3882 # The diagnosis changed in icc 8.0:
3883 # icc: Command line remark: option '-MP' not supported
3884 if (grep 'ignoring option' conftest.err ||
3885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886 am_cv_CC_dependencies_compiler_type=$depmode
3895 am_cv_CC_dependencies_compiler_type=none
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3900 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3904 test "x$enable_dependency_tracking" != xno \
3905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3907 am__fastdepCC_FALSE='#'
3909 am__fastdepCC_TRUE='#'
3910 am__fastdepCC_FALSE=
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3916 if test "${ac_cv_path_SED+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3920 for ac_i in 1 2 3 4 5 6 7; do
3921 ac_script="$ac_script$as_nl$ac_script"
3923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3924 { ac_script=; unset ac_script;}
3925 if test -z "$SED"; then
3926 ac_path_SED_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in sed gsed; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3936 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3937 # Check for GNU ac_path_SED and select it if it is found.
3938 # Check for GNU $ac_path_SED
3939 case `"$ac_path_SED" --version 2>&1` in
3941 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3944 $as_echo_n 0123456789 >"conftest.in"
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 $as_echo '' >> "conftest.nl"
3951 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 as_fn_arith $ac_count + 1 && ac_count=$as_val
3954 if test $ac_count -gt ${ac_path_SED_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_SED="$ac_path_SED"
3957 ac_path_SED_max=$ac_count
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 $ac_path_SED_found && break 3
3970 if test -z "$ac_cv_path_SED"; then
3971 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3979 $as_echo "$ac_cv_path_SED" >&6; }
3980 SED="$ac_cv_path_SED"
3983 test -z "$SED" && SED=sed
3984 Xsed="$SED -e 1s/^X//"
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3997 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3998 if test "${ac_cv_path_GREP+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -z "$GREP"; then
4002 ac_path_GREP_found=false
4003 # Loop through the user's path and test for each of PROGNAME-LIST
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 test -z "$as_dir" && as_dir=.
4009 for ac_prog in grep ggrep; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4012 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4013 # Check for GNU ac_path_GREP and select it if it is found.
4014 # Check for GNU $ac_path_GREP
4015 case `"$ac_path_GREP" --version 2>&1` in
4017 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 $as_echo_n 0123456789 >"conftest.in"
4023 cat "conftest.in" "conftest.in" >"conftest.tmp"
4024 mv "conftest.tmp" "conftest.in"
4025 cp "conftest.in" "conftest.nl"
4026 $as_echo 'GREP' >> "conftest.nl"
4027 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029 as_fn_arith $ac_count + 1 && ac_count=$as_val
4030 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4031 # Best one so far, save it but keep looking for a better one
4032 ac_cv_path_GREP="$ac_path_GREP"
4033 ac_path_GREP_max=$ac_count
4035 # 10*(2^10) chars as input seems more than enough
4036 test $ac_count -gt 10 && break
4038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_GREP_found && break 3
4046 if test -z "$ac_cv_path_GREP"; then
4047 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 ac_cv_path_GREP=$GREP
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4055 $as_echo "$ac_cv_path_GREP" >&6; }
4056 GREP="$ac_cv_path_GREP"
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4060 $as_echo_n "checking for egrep... " >&6; }
4061 if test "${ac_cv_path_EGREP+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
4064 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065 then ac_cv_path_EGREP="$GREP -E"
4067 if test -z "$EGREP"; then
4068 ac_path_EGREP_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in egrep; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4078 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4079 # Check for GNU ac_path_EGREP and select it if it is found.
4080 # Check for GNU $ac_path_EGREP
4081 case `"$ac_path_EGREP" --version 2>&1` in
4083 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 $as_echo_n 0123456789 >"conftest.in"
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo 'EGREP' >> "conftest.nl"
4093 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_EGREP="$ac_path_EGREP"
4099 ac_path_EGREP_max=$ac_count
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 $ac_path_EGREP_found && break 3
4112 if test -z "$ac_cv_path_EGREP"; then
4113 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 ac_cv_path_EGREP=$EGREP
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4122 $as_echo "$ac_cv_path_EGREP" >&6; }
4123 EGREP="$ac_cv_path_EGREP"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4127 $as_echo_n "checking for fgrep... " >&6; }
4128 if test "${ac_cv_path_FGREP+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4132 then ac_cv_path_FGREP="$GREP -F"
4134 if test -z "$FGREP"; then
4135 ac_path_FGREP_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in fgrep; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4145 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4146 # Check for GNU ac_path_FGREP and select it if it is found.
4147 # Check for GNU $ac_path_FGREP
4148 case `"$ac_path_FGREP" --version 2>&1` in
4150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4153 $as_echo_n 0123456789 >"conftest.in"
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo 'FGREP' >> "conftest.nl"
4160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_FGREP="$ac_path_FGREP"
4166 ac_path_FGREP_max=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 $ac_path_FGREP_found && break 3
4179 if test -z "$ac_cv_path_FGREP"; then
4180 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4183 ac_cv_path_FGREP=$FGREP
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4189 $as_echo "$ac_cv_path_FGREP" >&6; }
4190 FGREP="$ac_cv_path_FGREP"
4193 test -z "$GREP" && GREP=grep
4213 # Check whether --with-gnu-ld was given.
4214 if test "${with_gnu_ld+set}" = set; then :
4215 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4221 if test "$GCC" = yes; then
4222 # Check if gcc -print-prog-name=ld gives a path.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4224 $as_echo_n "checking for ld used by $CC... " >&6; }
4227 # gcc leaves a trailing carriage return which upsets mingw
4228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4233 # Accept absolute paths.
4235 re_direlt='/[^/][^/]*/\.\./'
4236 # Canonicalize the pathname of ld
4237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4241 test -z "$LD" && LD="$ac_prog"
4244 # If it fails, then pretend we aren't using GCC.
4248 # If it is relative, then search for the first ld in PATH.
4252 elif test "$with_gnu_ld" = yes; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4254 $as_echo_n "checking for GNU ld... " >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4257 $as_echo_n "checking for non-GNU ld... " >&6; }
4259 if test "${lt_cv_path_LD+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -z "$LD"; then
4263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4264 for ac_dir in $PATH; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4268 lt_cv_path_LD="$ac_dir/$ac_prog"
4269 # Check to see if the program is GNU ld. I'd rather use --version,
4270 # but apparently some variants of GNU ld only accept -v.
4271 # Break only if it was the GNU/non-GNU ld that we prefer.
4272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4273 *GNU* | *'with BFD'*)
4274 test "$with_gnu_ld" != no && break
4277 test "$with_gnu_ld" != yes && break
4284 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4289 if test -n "$LD"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4291 $as_echo "$LD" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4296 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4299 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4303 case `$LD -v 2>&1 </dev/null` in
4304 *GNU* | *'with BFD'*)
4305 lt_cv_prog_gnu_ld=yes
4308 lt_cv_prog_gnu_ld=no
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4313 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4314 with_gnu_ld=$lt_cv_prog_gnu_ld
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4326 if test "${lt_cv_path_NM+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -n "$NM"; then
4330 # Let the user override the test.
4333 lt_nm_to_check="${ac_tool_prefix}nm"
4334 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4335 lt_nm_to_check="$lt_nm_to_check nm"
4337 for lt_tmp_nm in $lt_nm_to_check; do
4338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4339 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4341 test -z "$ac_dir" && ac_dir=.
4342 tmp_nm="$ac_dir/$lt_tmp_nm"
4343 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4344 # Check to see if the nm accepts a BSD-compat flag.
4345 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4346 # nm: unknown option "B" ignored
4347 # Tru64's nm complains that /dev/null is an invalid object file
4348 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4349 */dev/null* | *'Invalid file or object type'*)
4350 lt_cv_path_NM="$tmp_nm -B"
4354 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4356 lt_cv_path_NM="$tmp_nm -p"
4360 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4361 continue # so that we can try to find one that supports BSD flags
4370 : ${lt_cv_path_NM=no}
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4374 $as_echo "$lt_cv_path_NM" >&6; }
4375 if test "$lt_cv_path_NM" != "no"; then
4378 # Didn't find any BSD compatible name lister, look for dumpbin.
4379 if test -n "$DUMPBIN"; then :
4380 # Let the user override the test.
4382 if test -n "$ac_tool_prefix"; then
4383 for ac_prog in dumpbin "link -dump"
4385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$DUMPBIN"; then
4393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 DUMPBIN=$ac_cv_prog_DUMPBIN
4413 if test -n "$DUMPBIN"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4415 $as_echo "$DUMPBIN" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4422 test -n "$DUMPBIN" && break
4425 if test -z "$DUMPBIN"; then
4426 ac_ct_DUMPBIN=$DUMPBIN
4427 for ac_prog in dumpbin "link -dump"
4429 # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -n "$ac_ct_DUMPBIN"; then
4437 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4457 if test -n "$ac_ct_DUMPBIN"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4459 $as_echo "$ac_ct_DUMPBIN" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4466 test -n "$ac_ct_DUMPBIN" && break
4469 if test "x$ac_ct_DUMPBIN" = x; then
4472 case $cross_compiling:$ac_tool_warned in
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4478 DUMPBIN=$ac_ct_DUMPBIN
4482 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4484 DUMPBIN="$DUMPBIN -symbols"
4492 if test "$DUMPBIN" != ":"; then
4496 test -z "$NM" && NM=nm
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4504 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4505 if test "${lt_cv_nm_interface+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 lt_cv_nm_interface="BSD nm"
4509 echo "int some_variable = 0;" > conftest.$ac_ext
4510 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4511 (eval "$ac_compile" 2>conftest.err)
4512 cat conftest.err >&5
4513 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4514 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4515 cat conftest.err >&5
4516 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4517 cat conftest.out >&5
4518 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4519 lt_cv_nm_interface="MS dumpbin"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4524 $as_echo "$lt_cv_nm_interface" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4527 $as_echo_n "checking whether ln -s works... " >&6; }
4529 if test "$LN_S" = "ln -s"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531 $as_echo "yes" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4534 $as_echo "no, using $LN_S" >&6; }
4537 # find the maximum length of command line arguments
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4539 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4540 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4548 # On DJGPP, this test can blow up pretty badly due to problems in libc
4549 # (any single argument exceeding 2000 bytes causes a buffer overrun
4550 # during glob expansion). Even if it were fixed, the result of this
4551 # check would be larger than it should be.
4552 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4556 # Under GNU Hurd, this test is not required because there is
4557 # no limit to the length of command line arguments.
4558 # Libtool will interpret -1 as no limit whatsoever
4559 lt_cv_sys_max_cmd_len=-1;
4562 cygwin* | mingw* | cegcc*)
4563 # On Win9x/ME, this test blows up -- it succeeds, but takes
4564 # about 5 minutes as the teststring grows exponentially.
4565 # Worse, since 9x/ME are not pre-emptively multitasking,
4566 # you end up with a "frozen" computer, even though with patience
4567 # the test eventually succeeds (with a max line length of 256k).
4568 # Instead, let's just punt: use the minimum linelength reported by
4569 # all of the supported platforms: 8192 (on NT/2K/XP).
4570 lt_cv_sys_max_cmd_len=8192;
4574 # On MiNT this can take a long time and run out of memory.
4575 lt_cv_sys_max_cmd_len=8192;
4579 # On AmigaOS with pdksh, this test takes hours, literally.
4580 # So we just punt and use a minimum line length of 8192.
4581 lt_cv_sys_max_cmd_len=8192;
4584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585 # This has been around since 386BSD, at least. Likely further.
4586 if test -x /sbin/sysctl; then
4587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588 elif test -x /usr/sbin/sysctl; then
4589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4591 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4593 # And add a safety zone
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600 lt_cv_sys_max_cmd_len=196608
4604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606 # nice to cause kernel panics so lets avoid the loop below.
4607 # First set a reasonable default.
4608 lt_cv_sys_max_cmd_len=16384
4610 if test -x /sbin/sysconfig; then
4611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4617 lt_cv_sys_max_cmd_len=102400
4619 sysv5* | sco5v6* | sysv4.2uw2*)
4620 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621 if test -n "$kargmax"; then
4622 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4624 lt_cv_sys_max_cmd_len=32768
4628 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629 if test -n "$lt_cv_sys_max_cmd_len"; then
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4633 # Make teststring a little bigger before we do anything with it.
4634 # a 1K string should be a reasonable start.
4635 for i in 1 2 3 4 5 6 7 8 ; do
4636 teststring=$teststring$teststring
4638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639 # If test is not a shell built-in, we'll probably end up computing a
4640 # maximum length that is only half of the actual maximum length, but
4642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4643 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4644 test $i != 17 # 1/2 MB should be enough
4647 teststring=$teststring$teststring
4649 # Only check the string length outside the loop.
4650 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4652 # Add a significant safety factor because C++ compilers can tack on
4653 # massive amounts of additional arguments before passing them to the
4654 # linker. It appears as though 1/2 is a usable value.
4655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4662 if test -n $lt_cv_sys_max_cmd_len ; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667 $as_echo "none" >&6; }
4669 max_cmd_len=$lt_cv_sys_max_cmd_len
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682 # Try some XSI features
4685 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4687 && eval 'test $(( 1 + 1 )) -eq 2 \
4688 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691 $as_echo "$xsi_shell" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4697 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4699 && lt_shell_append=yes
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701 $as_echo "$lt_shell_append" >&6; }
4704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4714 # test EBCDIC or ASCII
4715 case `echo X|tr X '\101'` in
4716 A) # ASCII based system
4717 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718 lt_SP2NL='tr \040 \012'
4719 lt_NL2SP='tr \015\012 \040\040'
4721 *) # EBCDIC based system
4722 lt_SP2NL='tr \100 \n'
4723 lt_NL2SP='tr \r\n \100\100'
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 lt_cv_ld_reload_flag='-r'
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4744 reload_flag=$lt_cv_ld_reload_flag
4745 case $reload_flag in
4747 *) reload_flag=" $reload_flag" ;;
4749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4752 if test "$GCC" = yes; then
4753 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4776 if test -n "$OBJDUMP"; then
4777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 $as_echo "$OBJDUMP" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808 ac_ct_OBJDUMP=$OBJDUMP
4809 # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -n "$ac_ct_OBJDUMP"; then
4817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837 if test -n "$ac_ct_OBJDUMP"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839 $as_echo "$ac_ct_OBJDUMP" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4845 if test "x$ac_ct_OBJDUMP" = x; then
4848 case $cross_compiling:$ac_tool_warned in
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4854 OBJDUMP=$ac_ct_OBJDUMP
4857 OBJDUMP="$ac_cv_prog_OBJDUMP"
4860 test -z "$OBJDUMP" && OBJDUMP=objdump
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 lt_cv_file_magic_cmd='$MAGIC_CMD'
4876 lt_cv_file_magic_test_file=
4877 lt_cv_deplibs_check_method='unknown'
4878 # Need to set the preceding variable on all platforms that support
4879 # interlibrary dependencies.
4880 # 'none' -- dependencies not supported.
4881 # `unknown' -- same as none, but documents that we really don't know.
4882 # 'pass_all' -- all dependencies passed with no checks.
4883 # 'test_compile' -- check by making test program.
4884 # 'file_magic [[regex]]' -- check by looking for files in library path
4885 # which responds to the $file_magic_cmd with a given extended regex.
4886 # If you have `file' or equivalent on your system and you're not sure
4887 # whether `pass_all' will *always* work, you probably want this one.
4891 lt_cv_deplibs_check_method=pass_all
4895 lt_cv_deplibs_check_method=pass_all
4899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900 lt_cv_file_magic_cmd='/usr/bin/file -L'
4901 lt_cv_file_magic_test_file=/shlib/libc.so
4905 # func_win32_libid is a shell function defined in ltmain.sh
4906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907 lt_cv_file_magic_cmd='func_win32_libid'
4911 # Base MSYS/MinGW do not provide the 'file' command needed by
4912 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913 # unless we find 'file', for example because we are cross-compiling.
4914 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4915 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4917 lt_cv_file_magic_cmd='func_win32_libid'
4919 # Keep this pattern in sync with the one in func_win32_libid.
4920 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4921 lt_cv_file_magic_cmd='$OBJDUMP -f'
4926 # use the weaker test based on 'objdump'. See mingw*.
4927 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4928 lt_cv_file_magic_cmd='$OBJDUMP -f'
4931 darwin* | rhapsody*)
4932 lt_cv_deplibs_check_method=pass_all
4935 freebsd* | dragonfly*)
4936 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4939 # Not sure whether the presence of OpenBSD here was a mistake.
4940 # Let's accept both of them until this is cleared up.
4941 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4942 lt_cv_file_magic_cmd=/usr/bin/file
4943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4947 lt_cv_deplibs_check_method=pass_all
4952 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_deplibs_check_method=pass_all
4959 hpux10.20* | hpux11*)
4960 lt_cv_file_magic_cmd=/usr/bin/file
4963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4982 irix5* | irix6* | nonstopux*)
4984 *-32|*"-32 ") libmagic=32-bit;;
4985 *-n32|*"-n32 ") libmagic=N32;;
4986 *-64|*"-64 ") libmagic=64-bit;;
4987 *) libmagic=never-match;;
4989 lt_cv_deplibs_check_method=pass_all
4992 # This must be Linux ELF.
4993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4994 lt_cv_deplibs_check_method=pass_all
4998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5012 lt_cv_deplibs_check_method=pass_all
5016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5023 osf3* | osf4* | osf5*)
5024 lt_cv_deplibs_check_method=pass_all
5028 lt_cv_deplibs_check_method=pass_all
5032 lt_cv_deplibs_check_method=pass_all
5035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036 lt_cv_deplibs_check_method=pass_all
5040 case $host_vendor in
5042 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]'
5043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5046 lt_cv_deplibs_check_method=pass_all
5049 lt_cv_file_magic_cmd='/bin/file'
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5053 lt_cv_file_magic_cmd='/bin/file'
5054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5055 lt_cv_file_magic_test_file=/lib/libc.so
5058 lt_cv_deplibs_check_method=pass_all
5061 lt_cv_deplibs_check_method=pass_all
5067 lt_cv_deplibs_check_method=pass_all
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5073 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5074 file_magic_cmd=$lt_cv_file_magic_cmd
5075 deplibs_check_method=$lt_cv_deplibs_check_method
5076 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}ar; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if test "${ac_cv_prog_AR+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$AR"; then
5098 ac_cv_prog_AR="$AR" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_AR="${ac_tool_prefix}ar"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 if test -n "$AR"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5120 $as_echo "$AR" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5128 if test -z "$ac_cv_prog_AR"; then
5130 # Extract the first word of "ar", so it can be a program name with args.
5131 set dummy ar; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5137 if test -n "$ac_ct_AR"; then
5138 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_ac_ct_AR="ar"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5158 if test -n "$ac_ct_AR"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5160 $as_echo "$ac_ct_AR" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5166 if test "x$ac_ct_AR" = x; then
5169 case $cross_compiling:$ac_tool_warned in
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5181 test -z "$AR" && AR=ar
5182 test -z "$AR_FLAGS" && AR_FLAGS=cru
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}strip; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_STRIP+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -n "$STRIP"; then
5203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 STRIP=$ac_cv_prog_STRIP
5223 if test -n "$STRIP"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5225 $as_echo "$STRIP" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5233 if test -z "$ac_cv_prog_STRIP"; then
5235 # Extract the first word of "strip", so it can be a program name with args.
5236 set dummy strip; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 if test -n "$ac_ct_STRIP"; then
5243 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_ac_ct_STRIP="strip"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263 if test -n "$ac_ct_STRIP"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5265 $as_echo "$ac_ct_STRIP" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5271 if test "x$ac_ct_STRIP" = x; then
5274 case $cross_compiling:$ac_tool_warned in
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5283 STRIP="$ac_cv_prog_STRIP"
5286 test -z "$STRIP" && STRIP=:
5293 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$RANLIB"; then
5302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 RANLIB=$ac_cv_prog_RANLIB
5322 if test -n "$RANLIB"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5324 $as_echo "$RANLIB" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_RANLIB"; then
5333 ac_ct_RANLIB=$RANLIB
5334 # Extract the first word of "ranlib", so it can be a program name with args.
5335 set dummy ranlib; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_RANLIB"; then
5342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_ac_ct_RANLIB="ranlib"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5362 if test -n "$ac_ct_RANLIB"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5364 $as_echo "$ac_ct_RANLIB" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_RANLIB" = x; then
5373 case $cross_compiling:$ac_tool_warned in
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned=yes ;;
5379 RANLIB=$ac_ct_RANLIB
5382 RANLIB="$ac_cv_prog_RANLIB"
5385 test -z "$RANLIB" && RANLIB=:
5392 # Determine commands to create old-style static archives.
5393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5394 old_postinstall_cmds='chmod 644 $oldlib'
5395 old_postuninstall_cmds=
5397 if test -n "$RANLIB"; then
5400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5406 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5411 lock_old_archive_extraction=yes ;;
5413 lock_old_archive_extraction=no ;;
5454 # If no C compiler was specified, use CC.
5457 # If no C compiler flags were specified, use CFLAGS.
5458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5460 # Allow CC to be a program name with arguments.
5464 # Check for command to grab the raw symbol name followed by C symbol from nm.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5467 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5471 # These are sane defaults that work on at least a few old systems.
5472 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5474 # Character class describing NM global symbol codes.
5475 symcode='[BCDEGRST]'
5477 # Regexp to match symbols that can be accessed directly from C.
5478 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5480 # Define system-specific variables.
5485 cygwin* | mingw* | pw32* | cegcc*)
5486 symcode='[ABCDGISTW]'
5489 if test "$host_cpu" = ia64; then
5490 symcode='[ABCDEGRST]'
5494 symcode='[BCDEGRST]'
5497 symcode='[BCDEGQRST]'
5508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5516 # If we're using GNU nm, then use its standard symbol codes.
5517 case `$NM -V 2>&1` in
5518 *GNU* | *'with BFD'*)
5519 symcode='[ABCDGIRSTW]' ;;
5522 # Transform an extracted symbol line into a proper C declaration.
5523 # Some systems (esp. on ia64) link data and code symbols differently,
5524 # so use this general approach.
5525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5527 # Transform an extracted symbol line into symbol name and symbol address
5528 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5529 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'"
5531 # Handle CRLF in mingw tool chain
5535 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539 # Try without a prefix underscore, then with it.
5540 for ac_symprfx in "" "_"; do
5542 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5543 symxfrm="\\1 $ac_symprfx\\2 \\2"
5545 # Write the raw and C identifiers.
5546 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5547 # Fake it for dumpbin and say T for any non-static function
5548 # and D for any global variable.
5549 # Also find C++ and __fastcall symbols from MSVC++,
5550 # which start with @ or ?.
5551 lt_cv_sys_global_symbol_pipe="$AWK '"\
5552 " {last_section=section; section=\$ 3};"\
5553 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5554 " \$ 0!~/External *\|/{next};"\
5555 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5556 " {if(hide[section]) next};"\
5557 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5558 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5559 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5560 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5561 " ' prfx=^$ac_symprfx"
5563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5566 # Check to see that the pipe works correctly.
5570 cat > conftest.$ac_ext <<_LT_EOF
5575 void nm_test_func(void);
5576 void nm_test_func(void){}
5580 int main(){nm_test_var='a';nm_test_func();return(0);}
5583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5584 (eval $ac_compile) 2>&5
5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587 test $ac_status = 0; }; then
5588 # Now try to grab the symbols.
5590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5591 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594 test $ac_status = 0; } && test -s "$nlist"; then
5595 # Try sorting and uniquifying the output.
5596 if sort "$nlist" | uniq > "$nlist"T; then
5597 mv -f "$nlist"T "$nlist"
5602 # Make sure that we snagged all the symbols we need.
5603 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5604 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5605 cat <<_LT_EOF > conftest.$ac_ext
5611 # Now generate the symbol file.
5612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5614 cat <<_LT_EOF >> conftest.$ac_ext
5616 /* The mapping between symbol names and symbols. */
5621 lt__PROGRAM__LTX_preloaded_symbols[] =
5623 { "@PROGRAM@", (void *) 0 },
5625 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5626 cat <<\_LT_EOF >> conftest.$ac_ext
5630 /* This works around a problem in FreeBSD linker */
5631 #ifdef FREEBSD_WORKAROUND
5632 static const void *lt_preloaded_setup() {
5633 return lt__PROGRAM__LTX_preloaded_symbols;
5641 # Now try linking the two files.
5642 mv conftest.$ac_objext conftstm.$ac_objext
5643 lt_save_LIBS="$LIBS"
5644 lt_save_CFLAGS="$CFLAGS"
5645 LIBS="conftstm.$ac_objext"
5646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5648 (eval $ac_link) 2>&5
5650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5654 LIBS="$lt_save_LIBS"
5655 CFLAGS="$lt_save_CFLAGS"
5657 echo "cannot find nm_test_func in $nlist" >&5
5660 echo "cannot find nm_test_var in $nlist" >&5
5663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5666 echo "$progname: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 rm -rf conftest* conftst*
5671 # Do not use the global_symbol_pipe unless it works.
5672 if test "$pipe_works" = yes; then
5675 lt_cv_sys_global_symbol_pipe=
5681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5682 lt_cv_sys_global_symbol_to_cdecl=
5684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5686 $as_echo "failed" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5689 $as_echo "ok" >&6; }
5714 # Check whether --enable-libtool-lock was given.
5715 if test "${enable_libtool_lock+set}" = set; then :
5716 enableval=$enable_libtool_lock;
5719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5721 # Some flags need to be propagated to the compiler or linker for good
5725 # Find out which ABI we are using.
5726 echo 'int i;' > conftest.$ac_ext
5727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728 (eval $ac_compile) 2>&5
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }; then
5732 case `/usr/bin/file conftest.$ac_objext` in
5744 # Find out which ABI we are using.
5745 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 if test "$lt_cv_prog_gnu_ld" = yes; then
5752 case `/usr/bin/file conftest.$ac_objext` in
5754 LD="${LD-ld} -melf32bsmip"
5757 LD="${LD-ld} -melf32bmipn32"
5760 LD="${LD-ld} -melf64bmip"
5764 case `/usr/bin/file conftest.$ac_objext` in
5780 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5781 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5782 # Find out which ABI we are using.
5783 echo 'int i;' > conftest.$ac_ext
5784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5785 (eval $ac_compile) 2>&5
5787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788 test $ac_status = 0; }; then
5789 case `/usr/bin/file conftest.o` in
5792 x86_64-*kfreebsd*-gnu)
5793 LD="${LD-ld} -m elf_i386_fbsd"
5796 LD="${LD-ld} -m elf_i386"
5798 ppc64-*linux*|powerpc64-*linux*)
5799 LD="${LD-ld} -m elf32ppclinux"
5802 LD="${LD-ld} -m elf_s390"
5805 LD="${LD-ld} -m elf32_sparc"
5811 x86_64-*kfreebsd*-gnu)
5812 LD="${LD-ld} -m elf_x86_64_fbsd"
5815 LD="${LD-ld} -m elf_x86_64"
5817 ppc*-*linux*|powerpc*-*linux*)
5818 LD="${LD-ld} -m elf64ppc"
5820 s390*-*linux*|s390*-*tpf*)
5821 LD="${LD-ld} -m elf64_s390"
5824 LD="${LD-ld} -m elf64_sparc"
5834 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5835 SAVE_CFLAGS="$CFLAGS"
5836 CFLAGS="$CFLAGS -belf"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5838 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5839 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5843 ac_cpp='$CPP $CPPFLAGS'
5844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5859 if ac_fn_c_try_link "$LINENO"; then :
5860 lt_cv_cc_needs_belf=yes
5862 lt_cv_cc_needs_belf=no
5864 rm -f core conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext conftest.$ac_ext
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5874 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5875 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5876 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5877 CFLAGS="$SAVE_CFLAGS"
5881 # Find out which ABI we are using.
5882 echo 'int i;' > conftest.$ac_ext
5883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5884 (eval $ac_compile) 2>&5
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }; then
5888 case `/usr/bin/file conftest.o` in
5890 case $lt_cv_prog_gnu_ld in
5891 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5893 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5905 need_locks="$enable_libtool_lock"
5909 rhapsody* | darwin*)
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5918 if test -n "$DSYMUTIL"; then
5919 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5939 if test -n "$DSYMUTIL"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5941 $as_echo "$DSYMUTIL" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5949 if test -z "$ac_cv_prog_DSYMUTIL"; then
5950 ac_ct_DSYMUTIL=$DSYMUTIL
5951 # Extract the first word of "dsymutil", so it can be a program name with args.
5952 set dummy dsymutil; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5958 if test -n "$ac_ct_DSYMUTIL"; then
5959 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5979 if test -n "$ac_ct_DSYMUTIL"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5981 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5987 if test "x$ac_ct_DSYMUTIL" = x; then
5990 case $cross_compiling:$ac_tool_warned in
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5996 DSYMUTIL=$ac_ct_DSYMUTIL
5999 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if test -n "$NMEDIT"; then
6011 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 NMEDIT=$ac_cv_prog_NMEDIT
6031 if test -n "$NMEDIT"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6033 $as_echo "$NMEDIT" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6041 if test -z "$ac_cv_prog_NMEDIT"; then
6042 ac_ct_NMEDIT=$NMEDIT
6043 # Extract the first word of "nmedit", so it can be a program name with args.
6044 set dummy nmedit; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6050 if test -n "$ac_ct_NMEDIT"; then
6051 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6071 if test -n "$ac_ct_NMEDIT"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6073 $as_echo "$ac_ct_NMEDIT" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6079 if test "x$ac_ct_NMEDIT" = x; then
6082 case $cross_compiling:$ac_tool_warned in
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6088 NMEDIT=$ac_ct_NMEDIT
6091 NMEDIT="$ac_cv_prog_NMEDIT"
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_LIPO+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$LIPO"; then
6103 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 LIPO=$ac_cv_prog_LIPO
6123 if test -n "$LIPO"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6125 $as_echo "$LIPO" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6133 if test -z "$ac_cv_prog_LIPO"; then
6135 # Extract the first word of "lipo", so it can be a program name with args.
6136 set dummy lipo; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6142 if test -n "$ac_ct_LIPO"; then
6143 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_ac_ct_LIPO="lipo"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6163 if test -n "$ac_ct_LIPO"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6165 $as_echo "$ac_ct_LIPO" >&6; }
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6171 if test "x$ac_ct_LIPO" = x; then
6174 case $cross_compiling:$ac_tool_warned in
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178 ac_tool_warned=yes ;;
6183 LIPO="$ac_cv_prog_LIPO"
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}otool; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6194 if test -n "$OTOOL"; then
6195 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 OTOOL=$ac_cv_prog_OTOOL
6215 if test -n "$OTOOL"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6217 $as_echo "$OTOOL" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6225 if test -z "$ac_cv_prog_OTOOL"; then
6227 # Extract the first word of "otool", so it can be a program name with args.
6228 set dummy otool; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6234 if test -n "$ac_ct_OTOOL"; then
6235 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_OTOOL="otool"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6255 if test -n "$ac_ct_OTOOL"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6257 $as_echo "$ac_ct_OTOOL" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6263 if test "x$ac_ct_OTOOL" = x; then
6266 case $cross_compiling:$ac_tool_warned in
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6275 OTOOL="$ac_cv_prog_OTOOL"
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6284 $as_echo_n "(cached) " >&6
6286 if test -n "$OTOOL64"; then
6287 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 OTOOL64=$ac_cv_prog_OTOOL64
6307 if test -n "$OTOOL64"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6309 $as_echo "$OTOOL64" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6317 if test -z "$ac_cv_prog_OTOOL64"; then
6318 ac_ct_OTOOL64=$OTOOL64
6319 # Extract the first word of "otool64", so it can be a program name with args.
6320 set dummy otool64; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6326 if test -n "$ac_ct_OTOOL64"; then
6327 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_OTOOL64="otool64"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6347 if test -n "$ac_ct_OTOOL64"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6349 $as_echo "$ac_ct_OTOOL64" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6355 if test "x$ac_ct_OTOOL64" = x; then
6358 case $cross_compiling:$ac_tool_warned in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned=yes ;;
6364 OTOOL64=$ac_ct_OTOOL64
6367 OTOOL64="$ac_cv_prog_OTOOL64"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6397 $as_echo_n "checking for -single_module linker flag... " >&6; }
6398 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6401 lt_cv_apple_cc_single_mod=no
6402 if test -z "${LT_MULTI_MODULE}"; then
6403 # By default we will add the -single_module flag. You can override
6404 # by either setting the environment variable LT_MULTI_MODULE
6405 # non-empty at configure time, or by adding -multi_module to the
6407 rm -rf libconftest.dylib*
6408 echo "int foo(void){return 1;}" > conftest.c
6409 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6410 -dynamiclib -Wl,-single_module conftest.c" >&5
6411 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6412 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6414 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6415 lt_cv_apple_cc_single_mod=yes
6417 cat conftest.err >&5
6419 rm -rf libconftest.dylib*
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6424 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6426 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6427 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 lt_cv_ld_exported_symbols_list=no
6431 save_LDFLAGS=$LDFLAGS
6432 echo "_main" > conftest.sym
6433 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 lt_cv_ld_exported_symbols_list=yes
6448 lt_cv_ld_exported_symbols_list=no
6450 rm -f core conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 LDFLAGS="$save_LDFLAGS"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6456 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6458 $as_echo_n "checking for -force_load linker flag... " >&6; }
6459 if test "${lt_cv_ld_force_load+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6462 lt_cv_ld_force_load=no
6463 cat > conftest.c << _LT_EOF
6464 int forced_loaded() { return 2;}
6466 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6467 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6468 echo "$AR cru libconftest.a conftest.o" >&5
6469 $AR cru libconftest.a conftest.o 2>&5
6470 echo "$RANLIB libconftest.a" >&5
6471 $RANLIB libconftest.a 2>&5
6472 cat > conftest.c << _LT_EOF
6473 int main() { return 0;}
6475 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6476 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6478 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6479 lt_cv_ld_force_load=yes
6481 cat conftest.err >&5
6483 rm -f conftest.err libconftest.a conftest conftest.c
6484 rm -rf conftest.dSYM
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6488 $as_echo "$lt_cv_ld_force_load" >&6; }
6490 rhapsody* | darwin1.[012])
6491 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6493 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6494 darwin*) # darwin 5.x on
6495 # if running on 10.5 or later, the deployment target defaults
6496 # to the OS version, if on x86, and 10.4, the deployment
6497 # target defaults to 10.4. Don't you love it?
6498 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6499 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6500 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6504 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6508 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6509 _lt_dar_single_mod='$single_module'
6511 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6512 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6514 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6516 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6517 _lt_dsymutil='~$DSYMUTIL $lib || :'
6525 ac_cpp='$CPP $CPPFLAGS'
6526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6530 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6531 # On Suns, sometimes $CPP names a directory.
6532 if test -n "$CPP" && test -d "$CPP"; then
6535 if test -z "$CPP"; then
6536 if test "${ac_cv_prog_CPP+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6539 # Double quotes because CPP needs to be expanded
6540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6543 for ac_c_preproc_warn_flag in '' yes
6545 # Use a header file that comes with gcc, so configuring glibc
6546 # with a fresh cross-compiler works.
6547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6548 # <limits.h> exists even on freestanding compilers.
6549 # On the NeXT, cc -E runs the code through the compiler's parser,
6550 # not just through cpp. "Syntax error" is here to catch this case.
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6554 # include <limits.h>
6556 # include <assert.h>
6560 if ac_fn_c_try_cpp "$LINENO"; then :
6563 # Broken: fails on valid input.
6566 rm -f conftest.err conftest.$ac_ext
6568 # OK, works on sane cases. Now check whether nonexistent headers
6569 # can be detected and how.
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <ac_nonexistent.h>
6574 if ac_fn_c_try_cpp "$LINENO"; then :
6575 # Broken: success on invalid input.
6578 # Passes both tests.
6582 rm -f conftest.err conftest.$ac_ext
6585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6586 rm -f conftest.err conftest.$ac_ext
6587 if $ac_preproc_ok; then :
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6600 $as_echo "$CPP" >&6; }
6602 for ac_c_preproc_warn_flag in '' yes
6604 # Use a header file that comes with gcc, so configuring glibc
6605 # with a fresh cross-compiler works.
6606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6607 # <limits.h> exists even on freestanding compilers.
6608 # On the NeXT, cc -E runs the code through the compiler's parser,
6609 # not just through cpp. "Syntax error" is here to catch this case.
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6613 # include <limits.h>
6615 # include <assert.h>
6619 if ac_fn_c_try_cpp "$LINENO"; then :
6622 # Broken: fails on valid input.
6625 rm -f conftest.err conftest.$ac_ext
6627 # OK, works on sane cases. Now check whether nonexistent headers
6628 # can be detected and how.
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 #include <ac_nonexistent.h>
6633 if ac_fn_c_try_cpp "$LINENO"; then :
6634 # Broken: success on invalid input.
6637 # Passes both tests.
6641 rm -f conftest.err conftest.$ac_ext
6644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645 rm -f conftest.err conftest.$ac_ext
6646 if $ac_preproc_ok; then :
6649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6651 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6652 See \`config.log' for more details" "$LINENO" 5; }
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6663 $as_echo_n "checking for ANSI C header files... " >&6; }
6664 if test "${ac_cv_header_stdc+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 ac_cv_header_stdc=yes
6685 ac_cv_header_stdc=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 if test $ac_cv_header_stdc = yes; then
6690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697 $EGREP "memchr" >/dev/null 2>&1; then :
6700 ac_cv_header_stdc=no
6706 if test $ac_cv_header_stdc = yes; then
6707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 $EGREP "free" >/dev/null 2>&1; then :
6717 ac_cv_header_stdc=no
6723 if test $ac_cv_header_stdc = yes; then
6724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725 if test "$cross_compiling" = yes; then :
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6732 #if ((' ' & 0x0FF) == 0x020)
6733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6736 # define ISLOWER(c) \
6737 (('a' <= (c) && (c) <= 'i') \
6738 || ('j' <= (c) && (c) <= 'r') \
6739 || ('s' <= (c) && (c) <= 'z'))
6740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6748 for (i = 0; i < 256; i++)
6749 if (XOR (islower (i), ISLOWER (i))
6750 || toupper (i) != TOUPPER (i))
6755 if ac_fn_c_try_run "$LINENO"; then :
6758 ac_cv_header_stdc=no
6760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6761 conftest.$ac_objext conftest.beam conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6767 $as_echo "$ac_cv_header_stdc" >&6; }
6768 if test $ac_cv_header_stdc = yes; then
6770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6776 inttypes.h stdint.h unistd.h
6778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6779 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6781 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791 for ac_header in dlfcn.h
6793 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6795 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_DLFCN_H 1
6818 # Check whether --enable-shared was given.
6819 if test "${enable_shared+set}" = set; then :
6820 enableval=$enable_shared; p=${PACKAGE-default}
6822 yes) enable_shared=yes ;;
6823 no) enable_shared=no ;;
6826 # Look at the argument we got. We use all the common list separators.
6827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6828 for pkg in $enableval; do
6830 if test "X$pkg" = "X$p"; then
6851 # Check whether --with-pic was given.
6852 if test "${with_pic+set}" = set; then :
6853 withval=$with_pic; pic_mode="$withval"
6859 test -z "$pic_mode" && pic_mode=default
6867 # Check whether --enable-fast-install was given.
6868 if test "${enable_fast_install+set}" = set; then :
6869 enableval=$enable_fast_install; p=${PACKAGE-default}
6871 yes) enable_fast_install=yes ;;
6872 no) enable_fast_install=no ;;
6874 enable_fast_install=no
6875 # Look at the argument we got. We use all the common list separators.
6876 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6877 for pkg in $enableval; do
6879 if test "X$pkg" = "X$p"; then
6880 enable_fast_install=yes
6887 enable_fast_install=yes
6900 # This can be used to rebuild libtool when needed
6901 LIBTOOL_DEPS="$ltmain"
6903 # Always use our own libtool.
6904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6931 test -z "$LN_S" && LN_S="ln -s"
6946 if test -n "${ZSH_VERSION+set}" ; then
6947 setopt NO_GLOB_SUBST
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6951 $as_echo_n "checking for objdir... " >&6; }
6952 if test "${lt_cv_objdir+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6955 rm -f .libs 2>/dev/null
6956 mkdir .libs 2>/dev/null
6957 if test -d .libs; then
6960 # MS-DOS does not allow filenames that begin with a dot.
6963 rmdir .libs 2>/dev/null
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6966 $as_echo "$lt_cv_objdir" >&6; }
6967 objdir=$lt_cv_objdir
6973 cat >>confdefs.h <<_ACEOF
6974 #define LT_OBJDIR "$lt_cv_objdir/"
6982 # AIX sometimes has problems with the GCC collect2 program. For some
6983 # reason, if we set the COLLECT_NAMES environment variable, the problems
6984 # vanish in a puff of smoke.
6985 if test "X${COLLECT_NAMES+set}" != Xset; then
6987 export COLLECT_NAMES
6994 can_build_shared=yes
6996 # All known linkers require a `.a' archive for static linking (except MSVC,
6997 # which needs '.lib').
7000 with_gnu_ld="$lt_cv_prog_gnu_ld"
7003 old_CFLAGS="$CFLAGS"
7005 # Set sane defaults for various variables
7006 test -z "$CC" && CC=cc
7007 test -z "$LTCC" && LTCC=$CC
7008 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7009 test -z "$LD" && LD=ld
7010 test -z "$ac_objext" && ac_objext=o
7012 for cc_temp in $compiler""; do
7014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7020 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7023 # Only perform the check for file, if the check method requires it
7024 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7025 case $deplibs_check_method in
7027 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7029 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7038 lt_save_MAGIC_CMD="$MAGIC_CMD"
7039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041 for ac_dir in $ac_dummy; do
7043 test -z "$ac_dir" && ac_dir=.
7044 if test -f $ac_dir/${ac_tool_prefix}file; then
7045 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7046 if test -n "$file_magic_test_file"; then
7047 case $deplibs_check_method in
7049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052 $EGREP "$file_magic_regex" > /dev/null; then
7057 *** Warning: the command libtool uses to detect shared libraries,
7058 *** $file_magic_cmd, produces output that libtool cannot recognize.
7059 *** The result is that libtool may fail to recognize shared libraries
7060 *** as such. This will affect the creation of libtool libraries that
7061 *** depend on shared libraries, but programs linked with such libtool
7062 *** libraries will work regardless of this problem. Nevertheless, you
7063 *** may want to report the problem to your system manager and/or to
7064 *** bug-libtool@gnu.org
7074 MAGIC_CMD="$lt_save_MAGIC_CMD"
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if test -n "$MAGIC_CMD"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7082 $as_echo "$MAGIC_CMD" >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7092 if test -z "$lt_cv_path_MAGIC_CMD"; then
7093 if test -n "$ac_tool_prefix"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7095 $as_echo_n "checking for file... " >&6; }
7096 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7104 lt_save_MAGIC_CMD="$MAGIC_CMD"
7105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7107 for ac_dir in $ac_dummy; do
7109 test -z "$ac_dir" && ac_dir=.
7110 if test -f $ac_dir/file; then
7111 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7112 if test -n "$file_magic_test_file"; then
7113 case $deplibs_check_method in
7115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7118 $EGREP "$file_magic_regex" > /dev/null; then
7123 *** Warning: the command libtool uses to detect shared libraries,
7124 *** $file_magic_cmd, produces output that libtool cannot recognize.
7125 *** The result is that libtool may fail to recognize shared libraries
7126 *** as such. This will affect the creation of libtool libraries that
7127 *** depend on shared libraries, but programs linked with such libtool
7128 *** libraries will work regardless of this problem. Nevertheless, you
7129 *** may want to report the problem to your system manager and/or to
7130 *** bug-libtool@gnu.org
7140 MAGIC_CMD="$lt_save_MAGIC_CMD"
7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if test -n "$MAGIC_CMD"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7148 $as_echo "$MAGIC_CMD" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7164 # Use C for the default configuration in the libtool script
7168 ac_cpp='$CPP $CPPFLAGS'
7169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174 # Source file extension for C test sources.
7177 # Object file extension for compiled C test sources.
7181 # Code to be used in simple compile tests
7182 lt_simple_compile_test_code="int some_variable = 0;"
7184 # Code to be used in simple link tests
7185 lt_simple_link_test_code='int main(){return(0);}'
7193 # If no C compiler was specified, use CC.
7196 # If no C compiler flags were specified, use CFLAGS.
7197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7199 # Allow CC to be a program name with arguments.
7202 # Save the default compiler, since it gets overwritten when the other
7203 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7204 compiler_DEFAULT=$CC
7206 # save warnings/boilerplate of simple test code
7207 ac_outfile=conftest.$ac_objext
7208 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7210 _lt_compiler_boilerplate=`cat conftest.err`
7213 ac_outfile=conftest.$ac_objext
7214 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7216 _lt_linker_boilerplate=`cat conftest.err`
7220 if test -n "$compiler"; then
7222 lt_prog_compiler_no_builtin_flag=
7224 if test "$GCC" = yes; then
7225 case $cc_basename in
7227 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7229 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7233 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7237 lt_cv_prog_compiler_rtti_exceptions=no
7238 ac_outfile=conftest.$ac_objext
7239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7240 lt_compiler_flag="-fno-rtti -fno-exceptions"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 # The option is referenced via a variable to avoid confusing sed.
7246 lt_compile=`echo "$ac_compile" | $SED \
7247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7249 -e 's:$: $lt_compiler_flag:'`
7250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7251 (eval "$lt_compile" 2>conftest.err)
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 if (exit $ac_status) && test -s "$ac_outfile"; then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings other than the usual output.
7258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_rtti_exceptions=yes
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7268 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7270 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7271 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7283 lt_prog_compiler_wl=
7284 lt_prog_compiler_pic=
7285 lt_prog_compiler_static=
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7288 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7290 if test "$GCC" = yes; then
7291 lt_prog_compiler_wl='-Wl,'
7292 lt_prog_compiler_static='-static'
7296 # All AIX code is PIC.
7297 if test "$host_cpu" = ia64; then
7298 # AIX 5 now supports IA64 processor
7299 lt_prog_compiler_static='-Bstatic'
7306 # see comment about AmigaOS4 .so support
7307 lt_prog_compiler_pic='-fPIC'
7310 # FIXME: we need at least 68020 code to build shared libraries, but
7311 # adding the `-m68020' flag to GCC prevents building anything better,
7313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7318 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7319 # PIC is the default for these OSes.
7322 mingw* | cygwin* | pw32* | os2* | cegcc*)
7323 # This hack is so that the source file can tell whether it is being
7324 # built for inclusion in a dll (and should export symbols for example).
7325 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7326 # (--disable-auto-import) libraries
7327 lt_prog_compiler_pic='-DDLL_EXPORT'
7330 darwin* | rhapsody*)
7331 # PIC is the default on this platform
7332 # Common symbols not allowed in MH_DYLIB files
7333 lt_prog_compiler_pic='-fno-common'
7337 # PIC is the default for Haiku.
7338 # The "-static" flag exists, but is broken.
7339 lt_prog_compiler_static=
7343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7345 # sets the default TLS model and affects inlining.
7351 lt_prog_compiler_pic='-fPIC'
7357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7358 # Instead, we relocate shared libraries at runtime.
7362 # Just because we use GCC doesn't mean we suddenly get shared libraries
7363 # on systems that don't support them.
7364 lt_prog_compiler_can_build_shared=no
7369 # QNX uses GNU C++, but need to define -shared option too, otherwise
7371 lt_prog_compiler_pic='-fPIC -shared'
7375 if test -d /usr/nec; then
7376 lt_prog_compiler_pic=-Kconform_pic
7381 lt_prog_compiler_pic='-fPIC'
7385 case $cc_basename in
7386 nvcc*) # Cuda Compiler Driver 2.2
7387 lt_prog_compiler_wl='-Xlinker '
7388 lt_prog_compiler_pic='-Xcompiler -fPIC'
7392 # PORTME Check for flag to pass linker flags through the system compiler.
7395 lt_prog_compiler_wl='-Wl,'
7396 if test "$host_cpu" = ia64; then
7397 # AIX 5 now supports IA64 processor
7398 lt_prog_compiler_static='-Bstatic'
7400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7404 mingw* | cygwin* | pw32* | os2* | cegcc*)
7405 # This hack is so that the source file can tell whether it is being
7406 # built for inclusion in a dll (and should export symbols for example).
7407 lt_prog_compiler_pic='-DDLL_EXPORT'
7410 hpux9* | hpux10* | hpux11*)
7411 lt_prog_compiler_wl='-Wl,'
7412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7419 lt_prog_compiler_pic='+Z'
7422 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7423 lt_prog_compiler_static='${wl}-a ${wl}archive'
7426 irix5* | irix6* | nonstopux*)
7427 lt_prog_compiler_wl='-Wl,'
7428 # PIC (with -KPIC) is the default.
7429 lt_prog_compiler_static='-non_shared'
7432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7433 case $cc_basename in
7434 # old Intel for x86_64 which still supported -KPIC.
7436 lt_prog_compiler_wl='-Wl,'
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-static'
7440 # icc used to be incompatible with GCC.
7441 # ICC 10 doesn't accept -KPIC any more.
7443 lt_prog_compiler_wl='-Wl,'
7444 lt_prog_compiler_pic='-fPIC'
7445 lt_prog_compiler_static='-static'
7447 # Lahey Fortran 8.1.
7449 lt_prog_compiler_wl='-Wl,'
7450 lt_prog_compiler_pic='--shared'
7451 lt_prog_compiler_static='--static'
7453 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7454 # Portland Group compilers (*not* the Pentium gcc compiler,
7455 # which looks to be a dead project)
7456 lt_prog_compiler_wl='-Wl,'
7457 lt_prog_compiler_pic='-fpic'
7458 lt_prog_compiler_static='-Bstatic'
7461 lt_prog_compiler_wl='-Wl,'
7462 # All Alpha code is PIC.
7463 lt_prog_compiler_static='-non_shared'
7465 xl* | bgxl* | bgf* | mpixl*)
7466 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-qpic'
7469 lt_prog_compiler_static='-qstaticlink'
7472 case `$CC -V 2>&1 | sed 5q` in
7473 *Sun\ F* | *Sun*Fortran*)
7474 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7475 lt_prog_compiler_pic='-KPIC'
7476 lt_prog_compiler_static='-Bstatic'
7477 lt_prog_compiler_wl=''
7481 lt_prog_compiler_pic='-KPIC'
7482 lt_prog_compiler_static='-Bstatic'
7483 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-Bstatic'
7496 # QNX uses GNU C++, but need to define -shared option too, otherwise
7498 lt_prog_compiler_pic='-fPIC -shared'
7501 osf3* | osf4* | osf5*)
7502 lt_prog_compiler_wl='-Wl,'
7503 # All OSF/1 code is PIC.
7504 lt_prog_compiler_static='-non_shared'
7508 lt_prog_compiler_static='-non_shared'
7512 lt_prog_compiler_pic='-KPIC'
7513 lt_prog_compiler_static='-Bstatic'
7514 case $cc_basename in
7515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7516 lt_prog_compiler_wl='-Qoption ld ';;
7518 lt_prog_compiler_wl='-Wl,';;
7523 lt_prog_compiler_wl='-Qoption ld '
7524 lt_prog_compiler_pic='-PIC'
7525 lt_prog_compiler_static='-Bstatic'
7528 sysv4 | sysv4.2uw2* | sysv4.3*)
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_pic='-KPIC'
7531 lt_prog_compiler_static='-Bstatic'
7535 if test -d /usr/nec ;then
7536 lt_prog_compiler_pic='-Kconform_pic'
7537 lt_prog_compiler_static='-Bstatic'
7541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7542 lt_prog_compiler_wl='-Wl,'
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-Bstatic'
7548 lt_prog_compiler_wl='-Wl,'
7549 lt_prog_compiler_can_build_shared=no
7553 lt_prog_compiler_pic='-pic'
7554 lt_prog_compiler_static='-Bstatic'
7558 lt_prog_compiler_can_build_shared=no
7564 # For platforms which do not support PIC, -DPIC is meaningless:
7566 lt_prog_compiler_pic=
7569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7573 $as_echo "$lt_prog_compiler_pic" >&6; }
7581 # Check to make sure the PIC flag actually works.
7583 if test -n "$lt_prog_compiler_pic"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7586 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7589 lt_cv_prog_compiler_pic_works=no
7590 ac_outfile=conftest.$ac_objext
7591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7592 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7593 # Insert the option either (1) after the last *FLAGS variable, or
7594 # (2) before a word containing "conftest.", or (3) at the end.
7595 # Note that $ac_compile itself does not contain backslashes and begins
7596 # with a dollar sign (not a hyphen), so the echo should work correctly.
7597 # The option is referenced via a variable to avoid confusing sed.
7598 lt_compile=`echo "$ac_compile" | $SED \
7599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7601 -e 's:$: $lt_compiler_flag:'`
7602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7603 (eval "$lt_compile" 2>conftest.err)
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 if (exit $ac_status) && test -s "$ac_outfile"; then
7608 # The compiler can only warn and ignore the option if not recognized
7609 # So say no if there are warnings other than the usual output.
7610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7613 lt_cv_prog_compiler_pic_works=yes
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7620 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7622 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7623 case $lt_prog_compiler_pic in
7625 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7628 lt_prog_compiler_pic=
7629 lt_prog_compiler_can_build_shared=no
7640 # Check to make sure the static flag actually works.
7642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7645 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7648 lt_cv_prog_compiler_static_works=no
7649 save_LDFLAGS="$LDFLAGS"
7650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7653 # The linker can only warn and ignore the option if not recognized
7654 # So say no if there are warnings
7655 if test -s conftest.err; then
7656 # Append any errors to the config.log.
7657 cat conftest.err 1>&5
7658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7660 if diff conftest.exp conftest.er2 >/dev/null; then
7661 lt_cv_prog_compiler_static_works=yes
7664 lt_cv_prog_compiler_static_works=yes
7668 LDFLAGS="$save_LDFLAGS"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7674 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7677 lt_prog_compiler_static=
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7688 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 lt_cv_prog_compiler_c_o=no
7692 $RM -r conftest 2>/dev/null
7696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7698 lt_compiler_flag="-o out/conftest2.$ac_objext"
7699 # Insert the option either (1) after the last *FLAGS variable, or
7700 # (2) before a word containing "conftest.", or (3) at the end.
7701 # Note that $ac_compile itself does not contain backslashes and begins
7702 # with a dollar sign (not a hyphen), so the echo should work correctly.
7703 lt_compile=`echo "$ac_compile" | $SED \
7704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706 -e 's:$: $lt_compiler_flag:'`
7707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7708 (eval "$lt_compile" 2>out/conftest.err)
7710 cat out/conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7714 # The compiler can only warn and ignore the option if not recognized
7715 # So say no if there are warnings
7716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7719 lt_cv_prog_compiler_c_o=yes
7724 # SGI C++ compiler will create directory out/ii_files/ for
7725 # template instantiation
7726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7727 $RM out/* && rmdir out
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7743 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7746 lt_cv_prog_compiler_c_o=no
7747 $RM -r conftest 2>/dev/null
7751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="-o out/conftest2.$ac_objext"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 lt_compile=`echo "$ac_compile" | $SED \
7759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761 -e 's:$: $lt_compiler_flag:'`
7762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7763 (eval "$lt_compile" 2>out/conftest.err)
7765 cat out/conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings
7771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_c_o=yes
7779 # SGI C++ compiler will create directory out/ii_files/ for
7780 # template instantiation
7781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7782 $RM out/* && rmdir out
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7794 hard_links="nottested"
7795 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7796 # do not overwrite the value of need_locks provided by the user
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7798 $as_echo_n "checking if we can lock with hard links... " >&6; }
7801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7803 ln conftest.a conftest.b 2>&5 || hard_links=no
7804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7806 $as_echo "$hard_links" >&6; }
7807 if test "$hard_links" = no; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7809 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7825 allow_undefined_flag=
7826 always_export_symbols=no
7828 archive_expsym_cmds=
7829 compiler_needs_object=no
7830 enable_shared_with_static_runtimes=no
7831 export_dynamic_flag_spec=
7832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7833 hardcode_automatic=no
7835 hardcode_direct_absolute=no
7836 hardcode_libdir_flag_spec=
7837 hardcode_libdir_flag_spec_ld=
7838 hardcode_libdir_separator=
7840 hardcode_shlibpath_var=unsupported
7842 link_all_deplibs=unknown
7845 old_archive_from_new_cmds=
7846 old_archive_from_expsyms_cmds=
7847 thread_safe_flag_spec=
7848 whole_archive_flag_spec=
7849 # include_expsyms should be a list of space-separated symbols to be *always*
7850 # included in the symbol list
7852 # exclude_expsyms can be an extended regexp of symbols to exclude
7853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7855 # as well as any symbol that contains `d'.
7856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7858 # platforms (ab)use it in PIC code, but their linkers get confused if
7859 # the symbol is explicitly referenced. Since portable code cannot
7860 # rely on this symbol name, it's probably fine to never include it in
7861 # preloaded symbol tables.
7862 # Exclude shared library initialization/finalization symbols.
7863 extract_expsyms_cmds=
7866 cygwin* | mingw* | pw32* | cegcc*)
7867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7868 # When not using gcc, we currently assume that we are using
7869 # Microsoft Visual C++.
7870 if test "$GCC" != yes; then
7875 # we just hope/assume this is gcc and not c89 (= MSVC++)
7885 # On some targets, GNU ld is compatible enough with the native linker
7886 # that we're better off using the native interface for both.
7887 lt_use_gnu_ld_interface=no
7888 if test "$with_gnu_ld" = yes; then
7891 # The AIX port of GNU ld has always aspired to compatibility
7892 # with the native linker. However, as the warning in the GNU ld
7893 # block says, versions before 2.19.5* couldn't really create working
7894 # shared libraries, regardless of the interface used.
7895 case `$LD -v 2>&1` in
7896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7898 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7900 lt_use_gnu_ld_interface=yes
7905 lt_use_gnu_ld_interface=yes
7910 if test "$lt_use_gnu_ld_interface" = yes; then
7911 # If archive_cmds runs LD, not CC, wlarc should be empty
7914 # Set some defaults for GNU ld with shared library support. These
7915 # are reset later if shared libraries are not supported. Putting them
7916 # here allows them to be overridden if necessary.
7917 runpath_var=LD_RUN_PATH
7918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7919 export_dynamic_flag_spec='${wl}--export-dynamic'
7920 # ancient GNU ld didn't support --whole-archive et. al.
7921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7924 whole_archive_flag_spec=
7926 supports_anon_versioning=no
7927 case `$LD -v 2>&1` in
7928 *GNU\ gold*) supports_anon_versioning=yes ;;
7929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7932 *\ 2.11.*) ;; # other 2.11 versions
7933 *) supports_anon_versioning=yes ;;
7936 # See if GNU ld supports shared libraries.
7939 # On AIX/PPC, the GNU linker is very broken
7940 if test "$host_cpu" != ia64; then
7944 *** Warning: the GNU linker, at least up to release 2.19, is reported
7945 *** to be unable to reliably create shared libraries on AIX.
7946 *** Therefore, libtool is disabling shared libraries support. If you
7947 *** really care for shared libraries, you may want to install binutils
7948 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7949 *** You will then need to restart the configuration process.
7958 # see comment about AmigaOS4 .so support
7959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7960 archive_expsym_cmds=''
7963 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)'
7964 hardcode_libdir_flag_spec='-L$libdir'
7965 hardcode_minus_L=yes
7971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7972 allow_undefined_flag=unsupported
7973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7974 # support --undefined. This deserves some investigation. FIXME
7975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981 cygwin* | mingw* | pw32* | cegcc*)
7982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7983 # as there is no search path for DLLs.
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 export_dynamic_flag_spec='${wl}--export-all-symbols'
7986 allow_undefined_flag=unsupported
7987 always_export_symbols=no
7988 enable_shared_with_static_runtimes=yes
7989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993 # If the export-symbols file already is a .def file (1st line
7994 # is EXPORTS), use it as is; otherwise, prepend...
7995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996 cp $export_symbols $output_objdir/$soname.def;
7998 echo EXPORTS > $output_objdir/$soname.def;
7999 cat $export_symbols >> $output_objdir/$soname.def;
8001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009 link_all_deplibs=yes
8014 hardcode_shlibpath_var=no
8015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016 export_dynamic_flag_spec='${wl}-E'
8017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018 # Instead, shared libraries are loaded at an image base (0x10000000 by
8019 # default) and relocated if they conflict, which is a slow very memory
8020 # consuming and fragmenting process. To avoid this, we pick a random,
8021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024 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'
8027 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8029 if test "$host_os" = linux-dietlibc; then
8030 case $cc_basename in
8031 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8034 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8035 && test "$tmp_diet" = no
8038 tmp_sharedflag='-shared'
8039 case $cc_basename,$host_cpu in
8040 pgcc*) # Portland Group C compiler
8041 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8042 tmp_addflag=' $pic_flag'
8044 pgf77* | pgf90* | pgf95* | pgfortran*)
8045 # Portland Group f77 and f90 compilers
8046 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8047 tmp_addflag=' $pic_flag -Mnomain' ;;
8048 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8049 tmp_addflag=' -i_dynamic' ;;
8050 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8051 tmp_addflag=' -i_dynamic -nofor_main' ;;
8052 ifc* | ifort*) # Intel Fortran compiler
8053 tmp_addflag=' -nofor_main' ;;
8054 lf95*) # Lahey Fortran 8.1
8055 whole_archive_flag_spec=
8056 tmp_sharedflag='--shared' ;;
8057 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8058 tmp_sharedflag='-qmkshrobj'
8060 nvcc*) # Cuda Compiler Driver 2.2
8061 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8062 compiler_needs_object=yes
8065 case `$CC -V 2>&1 | sed 5q` in
8066 *Sun\ C*) # Sun C 5.9
8067 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8068 compiler_needs_object=yes
8069 tmp_sharedflag='-G' ;;
8070 *Sun\ F*) # Sun Fortran 8.3
8071 tmp_sharedflag='-G' ;;
8073 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075 if test "x$supports_anon_versioning" = xyes; then
8076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078 echo "local: *; };" >> $output_objdir/$libname.ver~
8079 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8082 case $cc_basename in
8083 xlf* | bgf* | bgxlf* | mpixlf*)
8084 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8085 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8086 hardcode_libdir_flag_spec=
8087 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8088 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8089 if test "x$supports_anon_versioning" = xyes; then
8090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8092 echo "local: *; };" >> $output_objdir/$libname.ver~
8093 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8118 *** create shared libraries on Solaris systems. Therefore, libtool
8119 *** is disabling shared libraries support. We urge you to upgrade GNU
8120 *** binutils to release 2.9.1 or newer. Another option is to modify
8121 *** your PATH or compiler configuration so that the native linker is
8122 *** used, and then restart.
8125 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8134 case `$LD -v 2>&1` in
8135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8140 *** reliably create shared libraries on SCO systems. Therefore, libtool
8141 *** is disabling shared libraries support. We urge you to upgrade GNU
8142 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8143 *** your PATH or compiler configuration so that the native linker is
8144 *** used, and then restart.
8149 # For security reasons, it is highly recommended that you always
8150 # use absolute paths for naming shared libraries, and exclude the
8151 # DT_RUNPATH tag from executables and libraries. But doing so
8152 # requires that you compile everything twice, which is a pain.
8153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8168 hardcode_shlibpath_var=no
8172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8181 if test "$ld_shlibs" = no; then
8183 hardcode_libdir_flag_spec=
8184 export_dynamic_flag_spec=
8185 whole_archive_flag_spec=
8188 # PORTME fill in a description of your system's linker (not GNU ld)
8191 allow_undefined_flag=unsupported
8192 always_export_symbols=yes
8193 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'
8194 # Note: this linker hardcodes the directories in LIBPATH if there
8195 # are no directories specified by -L.
8196 hardcode_minus_L=yes
8197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8198 # Neither direct hardcoding nor static linking is supported with a
8200 hardcode_direct=unsupported
8205 if test "$host_cpu" = ia64; then
8206 # On IA64, the linker does run time linking by default, so we don't
8207 # have to do anything special.
8208 aix_use_runtimelinking=no
8209 exp_sym_flag='-Bexport'
8212 # If we're using GNU nm, then we don't want the "-C" option.
8213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8214 # Also, AIX nm treats weak defined symbols like other global
8215 # defined symbols, whereas GNU nm marks them as "W".
8216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8217 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8219 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'
8221 aix_use_runtimelinking=no
8223 # Test if we are trying to use run time linking or normal
8224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8225 # need to do runtime linking.
8226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8227 for ld_flag in $LDFLAGS; do
8228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8229 aix_use_runtimelinking=yes
8236 exp_sym_flag='-bexport'
8237 no_entry_flag='-bnoentry'
8240 # When large executables or shared objects are built, AIX ld can
8241 # have problems creating the table of contents. If linking a library
8242 # or program results in "error TOC overflow" add -mminimal-toc to
8243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8248 hardcode_direct_absolute=yes
8249 hardcode_libdir_separator=':'
8250 link_all_deplibs=yes
8251 file_list_spec='${wl}-f,'
8253 if test "$GCC" = yes; then
8254 case $host_os in aix4.[012]|aix4.[012].*)
8255 # We only want to do this on AIX 4.2 and lower, the check
8256 # below for broken collect2 doesn't work under 4.3+
8257 collect2name=`${CC} -print-prog-name=collect2`
8258 if test -f "$collect2name" &&
8259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8261 # We have reworked collect2
8264 # We have old collect2
8265 hardcode_direct=unsupported
8266 # It fails to find uninstalled libraries when the uninstalled
8267 # path is not listed in the libpath. Setting hardcode_minus_L
8268 # to unsupported forces relinking
8269 hardcode_minus_L=yes
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 hardcode_libdir_separator=
8275 shared_flag='-shared'
8276 if test "$aix_use_runtimelinking" = yes; then
8277 shared_flag="$shared_flag "'${wl}-G'
8281 if test "$host_cpu" = ia64; then
8282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8283 # chokes on -Wl,-G. The following line is correct:
8286 if test "$aix_use_runtimelinking" = yes; then
8287 shared_flag='${wl}-G'
8289 shared_flag='${wl}-bM:SRE'
8294 export_dynamic_flag_spec='${wl}-bexpall'
8295 # It seems that -bexpall does not export symbols beginning with
8296 # underscore (_), so it is better to generate a list of symbols to export.
8297 always_export_symbols=yes
8298 if test "$aix_use_runtimelinking" = yes; then
8299 # Warning - without using the other runtime loading flags (-brtl),
8300 # -berok will link without error, but may produce a broken library.
8301 allow_undefined_flag='-berok'
8302 # Determine the default libpath from the value encoded in an
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8315 if ac_fn_c_try_link "$LINENO"; then :
8317 lt_aix_libpath_sed='
8318 /Import File Strings/,/^$/ {
8324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8325 # Check for a 64-bit object if we didn't find anything.
8326 if test -z "$aix_libpath"; then
8327 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8337 if test "$host_cpu" = ia64; then
8338 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339 allow_undefined_flag="-z nodefs"
8340 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"
8342 # Determine the default libpath from the value encoded in an
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8355 if ac_fn_c_try_link "$LINENO"; then :
8357 lt_aix_libpath_sed='
8358 /Import File Strings/,/^$/ {
8364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365 # Check for a 64-bit object if we didn't find anything.
8366 if test -z "$aix_libpath"; then
8367 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8370 rm -f core conftest.err conftest.$ac_objext \
8371 conftest$ac_exeext conftest.$ac_ext
8372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8375 # Warning - without using the other run time loading flags,
8376 # -berok will link without error, but may produce a broken library.
8377 no_undefined_flag=' ${wl}-bernotok'
8378 allow_undefined_flag=' ${wl}-berok'
8379 if test "$with_gnu_ld" = yes; then
8380 # We only use this code for GNU lds that support --whole-archive.
8381 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8383 # Exported symbols can be pulled into shared objects from archives
8384 whole_archive_flag_spec='$convenience'
8386 archive_cmds_need_lc=yes
8387 # This is similar to how AIX traditionally builds its shared libraries.
8388 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'
8396 # see comment about AmigaOS4 .so support
8397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398 archive_expsym_cmds=''
8401 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)'
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_minus_L=yes
8409 export_dynamic_flag_spec=-rdynamic
8412 cygwin* | mingw* | pw32* | cegcc*)
8413 # When not using gcc, we currently assume that we are using
8414 # Microsoft Visual C++.
8415 # hardcode_libdir_flag_spec is actually meaningless, as there is
8416 # no search path for DLLs.
8417 hardcode_libdir_flag_spec=' '
8418 allow_undefined_flag=unsupported
8419 # Tell ltmain to make .lib files, not .a files.
8421 # Tell ltmain to make .dll files, not .so files.
8423 # FIXME: Setting linknames here is a bad hack.
8424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8425 # The linker will automatically build a .lib file if we build a DLL.
8426 old_archive_from_new_cmds='true'
8427 # FIXME: Should let the user specify the lib program.
8428 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8429 fix_srcfile_path='`cygpath -w "$srcfile"`'
8430 enable_shared_with_static_runtimes=yes
8433 darwin* | rhapsody*)
8436 archive_cmds_need_lc=no
8438 hardcode_automatic=yes
8439 hardcode_shlibpath_var=unsupported
8440 if test "$lt_cv_ld_force_load" = "yes"; then
8441 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8443 whole_archive_flag_spec=''
8445 link_all_deplibs=yes
8446 allow_undefined_flag="$_lt_dar_allow_undefined"
8447 case $cc_basename in
8448 ifort*) _lt_dar_can_shared=yes ;;
8449 *) _lt_dar_can_shared=$GCC ;;
8451 if test "$_lt_dar_can_shared" = "yes"; then
8452 output_verbose_link_cmd=func_echo_all
8453 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8454 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8455 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}"
8456 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}"
8465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 hardcode_shlibpath_var=no
8474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8475 # support. Future versions do this automatically, but an explicit c++rt0.o
8476 # does not break anything, and helps significantly (at the cost of a little
8479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8480 hardcode_libdir_flag_spec='-R$libdir'
8482 hardcode_shlibpath_var=no
8485 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_minus_L=yes
8490 hardcode_shlibpath_var=no
8493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8494 freebsd* | dragonfly*)
8495 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8496 hardcode_libdir_flag_spec='-R$libdir'
8498 hardcode_shlibpath_var=no
8502 if test "$GCC" = yes; then
8503 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'
8505 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'
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_separator=:
8511 # hardcode_minus_L: Not really in the search PATH,
8512 # but as the default location of the library.
8513 hardcode_minus_L=yes
8514 export_dynamic_flag_spec='${wl}-E'
8518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8519 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8523 if test "$with_gnu_ld" = no; then
8524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8525 hardcode_libdir_flag_spec_ld='+b $libdir'
8526 hardcode_libdir_separator=:
8528 hardcode_direct_absolute=yes
8529 export_dynamic_flag_spec='${wl}-E'
8530 # hardcode_minus_L: Not really in the search PATH,
8531 # but as the default location of the library.
8532 hardcode_minus_L=yes
8537 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8546 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8552 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8559 # Older versions of the 11.00 compiler do not understand -b yet
8560 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8562 $as_echo_n "checking if $CC understands -b... " >&6; }
8563 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 lt_cv_prog_compiler__b=no
8567 save_LDFLAGS="$LDFLAGS"
8568 LDFLAGS="$LDFLAGS -b"
8569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8571 # The linker can only warn and ignore the option if not recognized
8572 # So say no if there are warnings
8573 if test -s conftest.err; then
8574 # Append any errors to the config.log.
8575 cat conftest.err 1>&5
8576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8578 if diff conftest.exp conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler__b=yes
8582 lt_cv_prog_compiler__b=yes
8586 LDFLAGS="$save_LDFLAGS"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8590 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8592 if test x"$lt_cv_prog_compiler__b" = xyes; then
8593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8601 if test "$with_gnu_ld" = no; then
8602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8603 hardcode_libdir_separator=:
8608 hardcode_shlibpath_var=no
8612 hardcode_direct_absolute=yes
8613 export_dynamic_flag_spec='${wl}-E'
8615 # hardcode_minus_L: Not really in the search PATH,
8616 # but as the default location of the library.
8617 hardcode_minus_L=yes
8623 irix5* | irix6* | nonstopux*)
8624 if test "$GCC" = yes; then
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8626 # Try to use the -exported_symbol ld option, if it does not
8627 # work, assume that -exports_file does not work either and
8628 # implicitly export all symbols.
8629 save_LDFLAGS="$LDFLAGS"
8630 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LDFLAGS="$save_LDFLAGS"
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8646 archive_cmds_need_lc='no'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8650 link_all_deplibs=yes
8654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8659 hardcode_libdir_flag_spec='-R$libdir'
8661 hardcode_shlibpath_var=no
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 hardcode_libdir_separator=:
8669 hardcode_shlibpath_var=no
8676 if test -f /usr/libexec/ld.so; then
8678 hardcode_shlibpath_var=no
8679 hardcode_direct_absolute=yes
8680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8682 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684 export_dynamic_flag_spec='${wl}-E'
8687 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_libdir_flag_spec='-R$libdir'
8692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8703 hardcode_libdir_flag_spec='-L$libdir'
8704 hardcode_minus_L=yes
8705 allow_undefined_flag=unsupported
8706 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'
8707 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8711 if test "$GCC" = yes; then
8712 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8715 allow_undefined_flag=' -expect_unresolved \*'
8716 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720 hardcode_libdir_separator=:
8723 osf4* | osf5*) # as osf3* with the addition of -msym flag
8724 if test "$GCC" = yes; then
8725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8729 allow_undefined_flag=' -expect_unresolved \*'
8730 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8731 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~
8732 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8734 # Both c and cxx compiler support -rpath directly
8735 hardcode_libdir_flag_spec='-rpath $libdir'
8737 archive_cmds_need_lc='no'
8738 hardcode_libdir_separator=:
8742 no_undefined_flag=' -z defs'
8743 if test "$GCC" = yes; then
8745 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8749 case `$CC -V 2>&1` in
8752 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8758 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8760 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8764 hardcode_libdir_flag_spec='-R$libdir'
8765 hardcode_shlibpath_var=no
8767 solaris2.[0-5] | solaris2.[0-5].*) ;;
8769 # The compiler driver will combine and reorder linker options,
8770 # but understands `-z linker_flag'. GCC discards it without `$wl',
8771 # but is careful enough not to reorder.
8772 # Supported since Solaris 2.6 (maybe 2.5.1?)
8773 if test "$GCC" = yes; then
8774 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8780 link_all_deplibs=yes
8784 if test "x$host_vendor" = xsequent; then
8785 # Use $CC to link under sequent, because it throws in some extra .o
8786 # files that make .init and .fini sections work.
8787 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='-L$libdir'
8793 hardcode_minus_L=yes
8794 hardcode_shlibpath_var=no
8798 case $host_vendor in
8800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_direct=yes # is this really true???
8804 ## LD is ld it makes a PLAMLIB
8805 ## CC just makes a GrossModule.
8806 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8807 reload_cmds='$CC -r -o $output$reload_objs'
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8815 runpath_var='LD_RUN_PATH'
8816 hardcode_shlibpath_var=no
8820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_shlibpath_var=no
8822 export_dynamic_flag_spec='-Bexport'
8826 if test -d /usr/nec; then
8827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_shlibpath_var=no
8829 runpath_var=LD_RUN_PATH
8830 hardcode_runpath_var=yes
8835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8836 no_undefined_flag='${wl}-z,text'
8837 archive_cmds_need_lc=no
8838 hardcode_shlibpath_var=no
8839 runpath_var='LD_RUN_PATH'
8841 if test "$GCC" = yes; then
8842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 sysv5* | sco3.2v5* | sco5v6*)
8851 # Note: We can NOT use -z defs as we might desire, because we do not
8852 # link with -lc, and that would cause any symbols used from libc to
8853 # always be unresolved, which means just about no library would
8854 # ever link correctly. If we're not using GNU ld we use -z text
8855 # though, which does catch some bad symbols but isn't as heavy-handed
8857 no_undefined_flag='${wl}-z,text'
8858 allow_undefined_flag='${wl}-z,nodefs'
8859 archive_cmds_need_lc=no
8860 hardcode_shlibpath_var=no
8861 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8862 hardcode_libdir_separator=':'
8863 link_all_deplibs=yes
8864 export_dynamic_flag_spec='${wl}-Bexport'
8865 runpath_var='LD_RUN_PATH'
8867 if test "$GCC" = yes; then
8868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_libdir_flag_spec='-L$libdir'
8879 hardcode_shlibpath_var=no
8887 if test x$host_vendor = xsni; then
8889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8890 export_dynamic_flag_spec='${wl}-Blargedynsym'
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8897 $as_echo "$ld_shlibs" >&6; }
8898 test "$ld_shlibs" = no && can_build_shared=no
8900 with_gnu_ld=$with_gnu_ld
8917 # Do we need to explicitly link libc?
8919 case "x$archive_cmds_need_lc" in
8921 # Assume -lc should be added
8922 archive_cmds_need_lc=yes
8924 if test "$enable_shared" = yes && test "$GCC" = yes; then
8925 case $archive_cmds in
8927 # FIXME: we may have to deal with multi-command sequences.
8930 # Test whether the compiler implicitly links with -lc since on some
8931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8932 # to ld, don't add -lc before -lgcc.
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8935 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942 (eval $ac_compile) 2>&5
8944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945 test $ac_status = 0; } 2>conftest.err; then
8948 libobjs=conftest.$ac_objext
8950 wl=$lt_prog_compiler_wl
8951 pic_flag=$lt_prog_compiler_pic
8957 lt_save_allow_undefined_flag=$allow_undefined_flag
8958 allow_undefined_flag=
8959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8960 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8963 test $ac_status = 0; }
8965 lt_cv_archive_cmds_need_lc=no
8967 lt_cv_archive_cmds_need_lc=yes
8969 allow_undefined_flag=$lt_save_allow_undefined_flag
8971 cat conftest.err 1>&5
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8977 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8978 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9144 if test "$GCC" = yes; then
9146 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9147 *) lt_awk_arg="/^libraries:/" ;;
9150 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9151 *) lt_sed_strip_eq="s,=/,/,g" ;;
9153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9154 case $lt_search_path_spec in
9156 # if the path contains ";" then we assume it to be the separator
9157 # otherwise default to the standard path separator (i.e. ":") - it is
9158 # assumed that no part of a normal pathname contains ";" but that should
9159 # okay in the real world where ";" in dirpaths is itself problematic.
9160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9166 # Ok, now we have the path, separated by spaces, we can step through it
9167 # and add multilib dir if necessary.
9168 lt_tmp_lt_search_path_spec=
9169 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9170 for lt_sys_path in $lt_search_path_spec; do
9171 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9172 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9174 test -d "$lt_sys_path" && \
9175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9178 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9179 BEGIN {RS=" "; FS="/|\n";} {
9182 for (lt_i = NF; lt_i > 0; lt_i--) {
9183 if ($lt_i != "" && $lt_i != ".") {
9184 if ($lt_i == "..") {
9187 if (lt_count == 0) {
9188 lt_foo="/" $lt_i lt_foo;
9195 if (lt_foo != "") { lt_freq[lt_foo]++; }
9196 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9198 # AWK program above erroneously prepends '/' to C:/dos/paths
9201 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9202 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9204 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9206 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9209 libname_spec='lib$name'
9217 shlibpath_overrides_runpath=unknown
9219 dynamic_linker="$host_os ld.so"
9220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9221 need_lib_prefix=unknown
9222 hardcode_into_libs=no
9224 # when you set need_version to no, make sure it does not cause -set_version
9225 # flags to be left without arguments
9226 need_version=unknown
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9232 shlibpath_var=LIBPATH
9234 # AIX 3 has no versioning support, so we append a major version to the name.
9235 soname_spec='${libname}${release}${shared_ext}$major'
9242 hardcode_into_libs=yes
9243 if test "$host_cpu" = ia64; then
9244 # AIX 5 supports IA64
9245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9246 shlibpath_var=LD_LIBRARY_PATH
9248 # With GCC up to 2.95.x, collect2 would create an import file
9249 # for dependence libraries. The import file would start with
9250 # the line `#! .'. This would cause the generated library to
9251 # depend on `.', always an invalid library. This was fixed in
9252 # development snapshots of GCC prior to 3.0.
9254 aix4 | aix4.[01] | aix4.[01].*)
9255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9257 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9265 # soname into executable. Probably we can add versioning support to
9266 # collect2, so additional links can be useful in future.
9267 if test "$aix_use_runtimelinking" = yes; then
9268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9269 # instead of lib<name>.a to let people know that these are not
9270 # typical AIX shared libraries.
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 # We preserve .a as extension for shared libraries through AIX4.2
9274 # and later when we are not doing run time linking.
9275 library_names_spec='${libname}${release}.a $libname.a'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LIBPATH
9285 # Since July 2007 AmigaOS4 officially supports .so libraries.
9286 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 library_names_spec='$libname.ixlibrary $libname.a'
9291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9292 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9298 library_names_spec='${libname}${shared_ext}'
9299 dynamic_linker="$host_os ld.so"
9300 shlibpath_var=LIBRARY_PATH
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9312 # the default ld.so.conf also contains /usr/contrib/lib and
9313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9314 # libtool to hard-code these into programs
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 version_type=windows
9323 case $GCC,$host_os in
9324 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9325 library_names_spec='$libname.dll.a'
9326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9327 postinstall_cmds='base_file=`basename \${file}`~
9328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9329 dldir=$destdir/`dirname \$dlpath`~
9330 test -d \$dldir || mkdir -p \$dldir~
9331 $install_prog $dir/$dlname \$dldir/$dlname~
9332 chmod a+x \$dldir/$dlname~
9333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9337 dlpath=$dir/\$dldll~
9339 shlibpath_overrides_runpath=yes
9343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9349 # MinGW DLLs use traditional 'lib' prefix
9350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9353 # pw32 DLLs use 'pw' prefix rather than 'lib'
9354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9363 dynamic_linker='Win32 ld.exe'
9364 # FIXME: first we should search . and the directory the executable is in
9368 darwin* | rhapsody*)
9369 dynamic_linker="$host_os dyld"
9373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9374 soname_spec='${libname}${release}${major}$shared_ext'
9375 shlibpath_overrides_runpath=yes
9376 shlibpath_var=DYLD_LIBRARY_PATH
9377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9396 freebsd* | dragonfly*)
9397 # DragonFly does not have aout. When/if they implement a new
9398 # versioning mechanism, adjust this.
9399 if test -x /usr/bin/objformat; then
9400 objformat=`/usr/bin/objformat`
9403 freebsd[123]*) objformat=aout ;;
9407 version_type=freebsd-$objformat
9408 case $version_type in
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9419 shlibpath_var=LD_LIBRARY_PATH
9422 shlibpath_overrides_runpath=yes
9424 freebsd3.[01]* | freebsdelf3.[01]*)
9425 shlibpath_overrides_runpath=yes
9426 hardcode_into_libs=yes
9428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9430 shlibpath_overrides_runpath=no
9431 hardcode_into_libs=yes
9433 *) # from 4.6 on, and DragonFly
9434 shlibpath_overrides_runpath=yes
9435 hardcode_into_libs=yes
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 hardcode_into_libs=yes
9454 dynamic_linker="$host_os runtime_loader"
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LIBRARY_PATH
9458 shlibpath_overrides_runpath=yes
9459 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9460 hardcode_into_libs=yes
9463 hpux9* | hpux10* | hpux11*)
9464 # Give a soname corresponding to the major version so that dld.sl refuses to
9465 # link against other versions.
9472 hardcode_into_libs=yes
9473 dynamic_linker="$host_os dld.so"
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 if test "X$HPUX_IA64_MODE" = X32; then
9479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487 hardcode_into_libs=yes
9488 dynamic_linker="$host_os dld.sl"
9489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498 dynamic_linker="$host_os dld.sl"
9499 shlibpath_var=SHLIB_PATH
9500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9505 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9506 postinstall_cmds='chmod 555 $lib'
9507 # or fails outright, so override atomically:
9508 install_override_mode=555
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=no
9520 hardcode_into_libs=yes
9523 irix5* | irix6* | nonstopux*)
9525 nonstopux*) version_type=nonstopux ;;
9527 if test "$lt_cv_prog_gnu_ld" = yes; then
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538 irix5* | nonstopux*)
9542 case $LD in # libtool.m4 will add one of these switches to LD
9543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544 libsuff= shlibsuff= libmagic=32-bit;;
9545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546 libsuff=32 shlibsuff=N32 libmagic=N32;;
9547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549 *) libsuff= shlibsuff= libmagic=never-match;;
9553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554 shlibpath_overrides_runpath=no
9555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557 hardcode_into_libs=yes
9560 # No shared lib support for Linux oldld, aout, or coff.
9561 linux*oldld* | linux*aout* | linux*coff*)
9565 # This must be Linux ELF.
9566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=no
9576 # Some binutils ld are patched to set DT_RUNPATH
9577 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 lt_cv_shlibpath_overrides_runpath=no
9581 save_LDFLAGS=$LDFLAGS
9583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9596 if ac_fn_c_try_link "$LINENO"; then :
9597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9598 lt_cv_shlibpath_overrides_runpath=yes
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 LDFLAGS=$save_LDFLAGS
9608 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9610 # This implies no fast_install, which is unacceptable.
9611 # Some rework will be needed to allow for fast_install
9612 # before this can be enabled.
9613 hardcode_into_libs=yes
9615 # Add ABI-specific directories to the system library path.
9616 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9618 # Append ld.so.conf contents to the search path
9619 if test -f /etc/ld.so.conf; then
9620 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9621 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9625 # We used to test for /lib/ld.so.1 and disable shared libraries on
9626 # powerpc, because MkLinux only supported shared libraries with the
9627 # GNU dynamic linker. Since this was broken with cross compilers,
9628 # most powerpc-linux boxes support dynamic linking these days and
9629 # people can always --disable-shared, the test was removed, and we
9630 # assume the GNU/Linux dynamic linker is in use.
9631 dynamic_linker='GNU/Linux ld.so'
9638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9641 dynamic_linker='NetBSD (a.out) ld.so'
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 dynamic_linker='NetBSD ld.elf_so'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 shlibpath_overrides_runpath=yes
9649 hardcode_into_libs=yes
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=no
9667 hardcode_into_libs=yes
9668 dynamic_linker='ldqnx.so'
9673 sys_lib_dlsearch_path_spec="/usr/lib"
9675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9678 *) need_version=no ;;
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9685 openbsd2.[89] | openbsd2.[89].*)
9686 shlibpath_overrides_runpath=no
9689 shlibpath_overrides_runpath=yes
9693 shlibpath_overrides_runpath=yes
9698 libname_spec='$name'
9701 library_names_spec='$libname${shared_ext} $libname.a'
9702 dynamic_linker='OS/2 ld.exe'
9703 shlibpath_var=LIBPATH
9706 osf3* | osf4* | osf5*)
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes
9729 hardcode_into_libs=yes
9730 # ldd complains unless libraries are executable
9731 postinstall_cmds='chmod +x $lib'
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9740 if test "$with_gnu_ld" = yes; then
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 case $host_vendor in
9753 shlibpath_overrides_runpath=no
9755 runpath_var=LD_RUN_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9770 if test -d /usr/nec ;then
9772 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9773 soname_spec='$libname${shared_ext}.$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9779 version_type=freebsd-elf
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 shlibpath_overrides_runpath=yes
9786 hardcode_into_libs=yes
9787 if test "$with_gnu_ld" = yes; then
9788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9790 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9793 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9797 sys_lib_dlsearch_path_spec='/usr/lib'
9801 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9823 $as_echo "$dynamic_linker" >&6; }
9824 test "$dynamic_linker" = no && can_build_shared=no
9826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9827 if test "$GCC" = yes; then
9828 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9831 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9832 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9834 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9835 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9930 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9932 if test -n "$hardcode_libdir_flag_spec" ||
9933 test -n "$runpath_var" ||
9934 test "X$hardcode_automatic" = "Xyes" ; then
9936 # We can hardcode non-existent directories.
9937 if test "$hardcode_direct" != no &&
9938 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9939 # have to relink, otherwise we might link with an installed library
9940 # when we should be linking with a yet-to-be-installed one
9941 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9942 test "$hardcode_minus_L" != no; then
9943 # Linking always hardcodes the temporary library directory.
9944 hardcode_action=relink
9946 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9947 hardcode_action=immediate
9950 # We cannot hardcode anything, or else we can only hardcode existing
9952 hardcode_action=unsupported
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9955 $as_echo "$hardcode_action" >&6; }
9957 if test "$hardcode_action" = relink ||
9958 test "$inherit_rpath" = yes; then
9959 # Fast installation is not supported
9960 enable_fast_install=no
9961 elif test "$shlibpath_overrides_runpath" = yes ||
9962 test "$enable_shared" = no; then
9963 # Fast installation is not necessary
9964 enable_fast_install=needless
9972 if test "x$enable_dlopen" != xyes; then
9973 enable_dlopen=unknown
9974 enable_dlopen_self=unknown
9975 enable_dlopen_self_static=unknown
9982 lt_cv_dlopen="load_add_on"
9984 lt_cv_dlopen_self=yes
9987 mingw* | pw32* | cegcc*)
9988 lt_cv_dlopen="LoadLibrary"
9993 lt_cv_dlopen="dlopen"
9998 # if libdl is installed we need to link against it
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10004 ac_check_lib_save_LIBS=$LIBS
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 ac_cv_lib_dl_dlopen=yes
10027 ac_cv_lib_dl_dlopen=no
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10035 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039 lt_cv_dlopen="dyld"
10041 lt_cv_dlopen_self=yes
10048 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10049 if test "x$ac_cv_func_shl_load" = x""yes; then :
10050 lt_cv_dlopen="shl_load"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10053 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10054 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10057 ac_check_lib_save_LIBS=$LIBS
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10072 return shl_load ();
10077 if ac_fn_c_try_link "$LINENO"; then :
10078 ac_cv_lib_dld_shl_load=yes
10080 ac_cv_lib_dld_shl_load=no
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10088 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10089 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10091 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10092 if test "x$ac_cv_func_dlopen" = x""yes; then :
10093 lt_cv_dlopen="dlopen"
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10100 ac_check_lib_save_LIBS=$LIBS
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10120 if ac_fn_c_try_link "$LINENO"; then :
10121 ac_cv_lib_dl_dlopen=yes
10123 ac_cv_lib_dl_dlopen=no
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10131 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10139 ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-lsvld $LIBS"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 ac_cv_lib_svld_dlopen=yes
10162 ac_cv_lib_svld_dlopen=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10169 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10170 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10174 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10175 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_check_lib_save_LIBS=$LIBS
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10193 return dld_link ();
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 ac_cv_lib_dld_dld_link=yes
10201 ac_cv_lib_dld_dld_link=no
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10208 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10209 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10231 if test "x$lt_cv_dlopen" != xno; then
10237 case $lt_cv_dlopen in
10239 save_CPPFLAGS="$CPPFLAGS"
10240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10242 save_LDFLAGS="$LDFLAGS"
10243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10246 LIBS="$lt_cv_dlopen_libs $LIBS"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10249 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10250 if test "${lt_cv_dlopen_self+set}" = set; then :
10251 $as_echo_n "(cached) " >&6
10253 if test "$cross_compiling" = yes; then :
10254 lt_cv_dlopen_self=cross
10256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257 lt_status=$lt_dlunknown
10258 cat > conftest.$ac_ext <<_LT_EOF
10259 #line $LINENO "configure"
10260 #include "confdefs.h"
10269 # define LT_DLGLOBAL RTLD_GLOBAL
10272 # define LT_DLGLOBAL DL_GLOBAL
10274 # define LT_DLGLOBAL 0
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279 find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10285 # define LT_DLLAZY_OR_NOW DL_LAZY
10288 # define LT_DLLAZY_OR_NOW RTLD_NOW
10291 # define LT_DLLAZY_OR_NOW DL_NOW
10293 # define LT_DLLAZY_OR_NOW 0
10300 /* When -fvisbility=hidden is used, assume the code has been annotated
10301 correspondingly for the symbols needed. */
10302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10303 void fnord () __attribute__((visibility("default")));
10306 void fnord () { int i=42; }
10309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10310 int status = $lt_dlunknown;
10314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10318 else puts (dlerror ());
10320 /* dlclose (self); */
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10329 (eval $ac_link) 2>&5
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10333 (./conftest; exit; ) >&5 2>/dev/null
10335 case x$lt_status in
10336 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10337 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10338 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10341 # compilation failed
10342 lt_cv_dlopen_self=no
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10350 $as_echo "$lt_cv_dlopen_self" >&6; }
10352 if test "x$lt_cv_dlopen_self" = xyes; then
10353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10355 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10356 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 if test "$cross_compiling" = yes; then :
10360 lt_cv_dlopen_self_static=cross
10362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363 lt_status=$lt_dlunknown
10364 cat > conftest.$ac_ext <<_LT_EOF
10365 #line $LINENO "configure"
10366 #include "confdefs.h"
10375 # define LT_DLGLOBAL RTLD_GLOBAL
10378 # define LT_DLGLOBAL DL_GLOBAL
10380 # define LT_DLGLOBAL 0
10384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385 find out it does not work in some platform. */
10386 #ifndef LT_DLLAZY_OR_NOW
10388 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10391 # define LT_DLLAZY_OR_NOW DL_LAZY
10394 # define LT_DLLAZY_OR_NOW RTLD_NOW
10397 # define LT_DLLAZY_OR_NOW DL_NOW
10399 # define LT_DLLAZY_OR_NOW 0
10406 /* When -fvisbility=hidden is used, assume the code has been annotated
10407 correspondingly for the symbols needed. */
10408 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10409 void fnord () __attribute__((visibility("default")));
10412 void fnord () { int i=42; }
10415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10416 int status = $lt_dlunknown;
10420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 else puts (dlerror ());
10426 /* dlclose (self); */
10434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10435 (eval $ac_link) 2>&5
10437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10439 (./conftest; exit; ) >&5 2>/dev/null
10441 case x$lt_status in
10442 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10443 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10444 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10447 # compilation failed
10448 lt_cv_dlopen_self_static=no
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10459 CPPFLAGS="$save_CPPFLAGS"
10460 LDFLAGS="$save_LDFLAGS"
10465 case $lt_cv_dlopen_self in
10466 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10467 *) enable_dlopen_self=unknown ;;
10470 case $lt_cv_dlopen_self_static in
10471 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10472 *) enable_dlopen_self_static=unknown ;;
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10497 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10498 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500 $as_echo "yes" >&6; }
10502 # FIXME - insert some real tests, host_os isn't really good enough
10505 if test -n "$STRIP" ; then
10506 striplib="$STRIP -x"
10507 old_striplib="$STRIP -S"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10533 # Report which library types will actually be built
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10537 $as_echo "$can_build_shared" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10540 $as_echo_n "checking whether to build shared libraries... " >&6; }
10541 test "$can_build_shared" = "no" && enable_shared=no
10543 # On AIX, shared libraries and static libraries use the same namespace, and
10544 # are all built from PIC.
10547 test "$enable_shared" = yes && enable_static=no
10548 if test -n "$RANLIB"; then
10549 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10550 postinstall_cmds='$RANLIB $lib'
10555 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10556 test "$enable_shared" = yes && enable_static=no
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10561 $as_echo "$enable_shared" >&6; }
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10564 $as_echo_n "checking whether to build static libraries... " >&6; }
10565 # Make sure either enable_shared or enable_static is yes.
10566 test "$enable_shared" = yes || enable_static=yes
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10568 $as_echo "$enable_static" >&6; }
10575 ac_cpp='$CPP $CPPFLAGS'
10576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10594 ac_config_commands="$ac_config_commands libtool"
10599 # Only expand once:
10603 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10616 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10617 if test "${ac_cv_prog_cc_c99+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10620 ac_cv_prog_cc_c99=no
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #include <stdarg.h>
10625 #include <stdbool.h>
10626 #include <stdlib.h>
10630 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10631 #define debug(...) fprintf (stderr, __VA_ARGS__)
10632 #define showlist(...) puts (#__VA_ARGS__)
10633 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10635 test_varargs_macros (void)
10640 debug ("X = %d\n", x);
10641 showlist (The first, second, and third items.);
10642 report (x>y, "x is %d but y is %d", x, y);
10645 // Check long long types.
10646 #define BIG64 18446744073709551615ull
10647 #define BIG32 4294967295ul
10648 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10650 your preprocessor is broken;
10654 your preprocessor is broken;
10656 static long long int bignum = -9223372036854775807LL;
10657 static unsigned long long int ubignum = BIG64;
10659 struct incomplete_array
10665 struct named_init {
10667 const wchar_t *name;
10671 typedef const char *ccp;
10674 test_restrict (ccp restrict text)
10676 // See if C++-style comments work.
10677 // Iterate through items via the restricted pointer.
10678 // Also check for declarations in for loops.
10679 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10684 // Check varargs and va_copy.
10686 test_varargs (const char *format, ...)
10689 va_start (args, format);
10691 va_copy (args_copy, args);
10701 case 's': // string
10702 str = va_arg (args_copy, const char *);
10705 number = va_arg (args_copy, int);
10708 fnumber = va_arg (args_copy, double);
10714 va_end (args_copy);
10723 _Bool success = false;
10726 if (test_restrict ("String literal") == 0)
10728 char *restrict newvar = "Another string";
10731 test_varargs ("s, d' f .", "string", 65, 34.234);
10732 test_varargs_macros ();
10734 // Check flexible array members.
10735 struct incomplete_array *ia =
10736 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10738 for (int i = 0; i < ia->datasize; ++i)
10739 ia->data[i] = i * 1.234;
10741 // Check named initializers.
10742 struct named_init ni = {
10744 .name = L"Test wide string",
10745 .average = 543.34343,
10750 int dynamic_array[ni.number];
10751 dynamic_array[ni.number - 1] = 543;
10753 // work around unused variable warnings
10754 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10755 || dynamic_array[ni.number - 1] != 543);
10761 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10763 CC="$ac_save_CC $ac_arg"
10764 if ac_fn_c_try_compile "$LINENO"; then :
10765 ac_cv_prog_cc_c99=$ac_arg
10767 rm -f core conftest.err conftest.$ac_objext
10768 test "x$ac_cv_prog_cc_c99" != "xno" && break
10770 rm -f conftest.$ac_ext
10775 case "x$ac_cv_prog_cc_c99" in
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10778 $as_echo "none needed" >&6; } ;;
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10781 $as_echo "unsupported" >&6; } ;;
10783 CC="$CC $ac_cv_prog_cc_c99"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10785 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10787 if test "x$ac_cv_prog_cc_c99" != xno; then :
10798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10799 if test -n "$ac_tool_prefix"; then
10800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10807 case $PKG_CONFIG in
10809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10816 test -z "$as_dir" && as_dir=.
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10831 if test -n "$PKG_CONFIG"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10833 $as_echo "$PKG_CONFIG" >&6; }
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10841 if test -z "$ac_cv_path_PKG_CONFIG"; then
10842 ac_pt_PKG_CONFIG=$PKG_CONFIG
10843 # Extract the first word of "pkg-config", so it can be a program name with args.
10844 set dummy pkg-config; ac_word=$2
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 $as_echo_n "checking for $ac_word... " >&6; }
10847 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10850 case $ac_pt_PKG_CONFIG in
10852 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10874 if test -n "$ac_pt_PKG_CONFIG"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10882 if test "x$ac_pt_PKG_CONFIG" = x; then
10885 case $cross_compiling:$ac_tool_warned in
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889 ac_tool_warned=yes ;;
10891 PKG_CONFIG=$ac_pt_PKG_CONFIG
10894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10898 if test -n "$PKG_CONFIG"; then
10899 _pkg_min_version=0.9.0
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10904 $as_echo "yes" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10915 if test "x$GCC" = xyes ; then
10916 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10917 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10918 -Wbad-function-cast -Wformat=2"
10919 case `$CC -dumpversion` in
10921 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10925 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10926 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10932 if test "x$SUNCC" = "xyes"; then
10939 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10943 # Check whether --enable-strict-compilation was given.
10944 if test "${enable_strict_compilation+set}" = set; then :
10945 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10950 if test "x$STRICT_COMPILE" = "xyes"; then
10951 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10952 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10958 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10959 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10965 if test "x$GCC" = xyes ; then
10966 STRICT_CFLAGS="-pedantic -Werror"
10967 elif test "x$SUNCC" = "xyes"; then
10968 STRICT_CFLAGS="-errwarn"
10969 elif test "x$INTELCC" = "xyes"; then
10970 STRICT_CFLAGS="-Werror"
10973 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10978 cat >>confdefs.h <<_ACEOF
10979 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10982 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10983 if test "x$PVM" = "x"; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define PACKAGE_VERSION_MINOR $PVM
10991 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10992 if test "x$PVP" = "x"; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11002 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11003 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11004 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11005 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11010 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11011 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11012 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11013 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11014 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11021 if test x$APP_MAN_SUFFIX = x ; then
11024 if test x$APP_MAN_DIR = x ; then
11025 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11028 if test x$LIB_MAN_SUFFIX = x ; then
11031 if test x$LIB_MAN_DIR = x ; then
11032 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11035 if test x$FILE_MAN_SUFFIX = x ; then
11037 solaris*) FILE_MAN_SUFFIX=4 ;;
11038 *) FILE_MAN_SUFFIX=5 ;;
11041 if test x$FILE_MAN_DIR = x ; then
11042 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11045 if test x$MISC_MAN_SUFFIX = x ; then
11047 solaris*) MISC_MAN_SUFFIX=5 ;;
11048 *) MISC_MAN_SUFFIX=7 ;;
11051 if test x$MISC_MAN_DIR = x ; then
11052 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11055 if test x$DRIVER_MAN_SUFFIX = x ; then
11057 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11058 *) DRIVER_MAN_SUFFIX=4 ;;
11061 if test x$DRIVER_MAN_DIR = x ; then
11062 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11065 if test x$ADMIN_MAN_SUFFIX = x ; then
11067 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11068 *) ADMIN_MAN_SUFFIX=8 ;;
11071 if test x$ADMIN_MAN_DIR = x ; then
11072 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11089 XORG_MAN_PAGE="X Version 11"
11092 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11093 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11094 -e 's|__xservername__|Xorg|g' \
11095 -e 's|__xconfigfile__|xorg.conf|g' \
11096 -e 's|__projectroot__|\$(prefix)|g' \
11097 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11098 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11099 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11100 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11101 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11102 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11103 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11107 # Check whether --enable-silent-rules was given.
11108 if test "${enable_silent_rules+set}" = set; then :
11109 enableval=$enable_silent_rules;
11112 case $enable_silent_rules in
11113 yes) AM_DEFAULT_VERBOSITY=0;;
11114 no) AM_DEFAULT_VERBOSITY=1;;
11115 *) AM_DEFAULT_VERBOSITY=0;;
11121 # Checks for libraries.
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
11123 $as_echo_n "checking for rint in -lm... " >&6; }
11124 if test "${ac_cv_lib_m_rint+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11127 ac_check_lib_save_LIBS=$LIBS
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11132 /* Override any GCC internal prototype to avoid an error.
11133 Use char because int might match the return type of a GCC
11134 builtin and then its argument prototype would still apply. */
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 ac_cv_lib_m_rint=yes
11150 ac_cv_lib_m_rint=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
11157 $as_echo "$ac_cv_lib_m_rint" >&6; }
11158 if test "x$ac_cv_lib_m_rint" = x""yes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_LIBM 1
11168 # Store the list of server defined optional extensions in REQUIRED_MODULES
11171 SAVE_CFLAGS="$CFLAGS"
11172 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 #include "xorg-server.h"
11178 #error RANDR not defined
11189 if ac_fn_c_try_compile "$LINENO"; then :
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 CFLAGS="$SAVE_CFLAGS"
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11197 $as_echo_n "checking if RANDR is defined... " >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11199 $as_echo "$_EXT_CHECK" >&6; }
11200 if test "$_EXT_CHECK" != no; then
11201 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11205 # Obtain compiler/linker options for the Synaptics driver dependencies
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11209 $as_echo_n "checking for XORG... " >&6; }
11211 if test -n "$XORG_CFLAGS"; then
11212 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11213 elif test -n "$PKG_CONFIG"; then
11214 if test -n "$PKG_CONFIG" && \
11215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11216 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11219 test $ac_status = 0; }; then
11220 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11227 if test -n "$XORG_LIBS"; then
11228 pkg_cv_XORG_LIBS="$XORG_LIBS"
11229 elif test -n "$PKG_CONFIG"; then
11230 if test -n "$PKG_CONFIG" && \
11231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11232 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; }; then
11236 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11246 if test $pkg_failed = yes; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11251 _pkg_short_errors_supported=yes
11253 _pkg_short_errors_supported=no
11255 if test $_pkg_short_errors_supported = yes; then
11256 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11258 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11260 # Put the nasty error message in config.log where it belongs
11261 echo "$XORG_PKG_ERRORS" >&5
11263 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES) were not met:
11267 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11268 installed software in a non-standard prefix.
11270 Alternatively, you may set the environment variables XORG_CFLAGS
11271 and XORG_LIBS to avoid the need to call pkg-config.
11272 See the pkg-config man page for more details." "$LINENO" 5
11274 elif test $pkg_failed = untried; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11279 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11280 is in your PATH or set the PKG_CONFIG environment variable to the full
11281 path to pkg-config.
11283 Alternatively, you may set the environment variables XORG_CFLAGS
11284 and XORG_LIBS to avoid the need to call pkg-config.
11285 See the pkg-config man page for more details.
11287 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11288 See \`config.log' for more details" "$LINENO" 5; }
11291 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11292 XORG_LIBS=$pkg_cv_XORG_LIBS
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11298 # X Server SDK location is required to install Synaptics header files
11299 # This location is also relayed in the xorg-synaptics.pc file
11300 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
11303 DRIVER_NAME=synaptics
11306 # -----------------------------------------------------------------------------
11307 # Configuration options
11308 # -----------------------------------------------------------------------------
11309 # Define a configure option for an alternate input module directory
11311 # Check whether --with-xorg-module-dir was given.
11312 if test "${with_xorg_module_dir+set}" = set; then :
11313 withval=$with_xorg_module_dir; moduledir="$withval"
11315 moduledir="$libdir/xorg/modules"
11318 inputdir=${moduledir}/input
11321 # Define a configure option for an alternate X Server configuration directory
11322 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
11324 # Check whether --with-xorg-conf-dir was given.
11325 if test "${with_xorg_conf_dir+set}" = set; then :
11326 withval=$with_xorg_conf_dir; configdir="$withval"
11328 configdir="$sysconfigdir"
11332 if test "x$sysconfigdir" != "x"; then
11333 HAS_XORG_CONF_DIR_TRUE=
11334 HAS_XORG_CONF_DIR_FALSE='#'
11336 HAS_XORG_CONF_DIR_TRUE='#'
11337 HAS_XORG_CONF_DIR_FALSE=
11341 # Define a configure option to enable code debugging
11342 # Check whether --enable-debug was given.
11343 if test "${enable_debug+set}" = set; then :
11344 enableval=$enable_debug; DEBUGGING=$enableval
11349 if test "x$DEBUGGING" = xyes; then
11351 $as_echo "#define DEBUG 1" >>confdefs.h
11354 if test "x$DEBUGGING" = xyes; then
11363 # -----------------------------------------------------------------------------
11364 # Determine which backend, if any, to build
11365 # -----------------------------------------------------------------------------
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which optional backends will be build" >&5
11367 $as_echo_n "checking which optional backends will be build... " >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: eventcomm" >&5
11371 $as_echo "eventcomm" >&6; }
11372 BUILD_EVENTCOMM="yes"
11374 $as_echo "#define BUILD_EVENTCOMM 1" >>confdefs.h
11377 *freebsd* | *openbsd* | *netbsd* | *dragonfly*)
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: psmcomm" >&5
11379 $as_echo "psmcomm" >&6; }
11380 BUILD_PSMCOMM="yes"
11382 $as_echo "#define BUILD_PSMCOMM 1" >>confdefs.h
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11387 $as_echo "none" >&6; }
11390 if test "x${BUILD_EVENTCOMM}" = "xyes"; then
11391 BUILD_EVENTCOMM_TRUE=
11392 BUILD_EVENTCOMM_FALSE='#'
11394 BUILD_EVENTCOMM_TRUE='#'
11395 BUILD_EVENTCOMM_FALSE=
11398 if test "x${BUILD_PSMCOMM}" = "xyes"; then
11399 BUILD_PSMCOMM_TRUE=
11400 BUILD_PSMCOMM_FALSE='#'
11402 BUILD_PSMCOMM_TRUE='#'
11403 BUILD_PSMCOMM_FALSE=
11407 # -----------------------------------------------------------------------------
11408 # Dependencies for synclient and syndaemon
11409 # -----------------------------------------------------------------------------
11410 # Obtain compiler/linker options for the Synaptics apps dependencies
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
11414 $as_echo_n "checking for XI... " >&6; }
11416 if test -n "$XI_CFLAGS"; then
11417 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
11418 elif test -n "$PKG_CONFIG"; then
11419 if test -n "$PKG_CONFIG" && \
11420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11421 ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424 test $ac_status = 0; }; then
11425 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 inputproto xi >= 1.2" 2>/dev/null`
11432 if test -n "$XI_LIBS"; then
11433 pkg_cv_XI_LIBS="$XI_LIBS"
11434 elif test -n "$PKG_CONFIG"; then
11435 if test -n "$PKG_CONFIG" && \
11436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
11437 ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
11439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440 test $ac_status = 0; }; then
11441 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 inputproto xi >= 1.2" 2>/dev/null`
11451 if test $pkg_failed = yes; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11456 _pkg_short_errors_supported=yes
11458 _pkg_short_errors_supported=no
11460 if test $_pkg_short_errors_supported = yes; then
11461 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11463 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 inputproto xi >= 1.2" 2>&1`
11465 # Put the nasty error message in config.log where it belongs
11466 echo "$XI_PKG_ERRORS" >&5
11468 as_fn_error $? "Package requirements (x11 inputproto xi >= 1.2) were not met:
11472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11473 installed software in a non-standard prefix.
11475 Alternatively, you may set the environment variables XI_CFLAGS
11476 and XI_LIBS to avoid the need to call pkg-config.
11477 See the pkg-config man page for more details." "$LINENO" 5
11479 elif test $pkg_failed = untried; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11484 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11485 is in your PATH or set the PKG_CONFIG environment variable to the full
11486 path to pkg-config.
11488 Alternatively, you may set the environment variables XI_CFLAGS
11489 and XI_LIBS to avoid the need to call pkg-config.
11490 See the pkg-config man page for more details.
11492 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11493 See \`config.log' for more details" "$LINENO" 5; }
11496 XI_CFLAGS=$pkg_cv_XI_CFLAGS
11497 XI_LIBS=$pkg_cv_XI_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11503 # The syndaemon program uses an optional XRecord extension implementation
11504 # If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h
11505 # If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
11509 $as_echo_n "checking for XTST... " >&6; }
11511 if test -n "$XTST_CFLAGS"; then
11512 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
11513 elif test -n "$PKG_CONFIG"; then
11514 if test -n "$PKG_CONFIG" && \
11515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11516 ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519 test $ac_status = 0; }; then
11520 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto" 2>/dev/null`
11527 if test -n "$XTST_LIBS"; then
11528 pkg_cv_XTST_LIBS="$XTST_LIBS"
11529 elif test -n "$PKG_CONFIG"; then
11530 if test -n "$PKG_CONFIG" && \
11531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
11532 ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
11534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11535 test $ac_status = 0; }; then
11536 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst recordproto" 2>/dev/null`
11546 if test $pkg_failed = yes; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11551 _pkg_short_errors_supported=yes
11553 _pkg_short_errors_supported=no
11555 if test $_pkg_short_errors_supported = yes; then
11556 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto" 2>&1`
11558 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto" 2>&1`
11560 # Put the nasty error message in config.log where it belongs
11561 echo "$XTST_PKG_ERRORS" >&5
11564 elif test $pkg_failed = untried; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11569 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
11570 XTST_LIBS=$pkg_cv_XTST_LIBS
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11575 if test "x$have_libxtst" = "xyes" ; then
11576 # Header record.h may come from the xtst or recordproto package, or may be missing
11577 SAVE_CPPFLAGS="$CPPFLAGS"
11578 CPPFLAGS="$CPPFLAGS $XTST_CFLAGS"
11579 for ac_header in X11/extensions/record.h
11581 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
11583 if test "x$ac_cv_header_X11_extensions_record_h" = x""yes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_X11_EXTENSIONS_RECORD_H 1
11592 CPPFLAGS="$SAVE_CPPFLAGS"
11594 # -----------------------------------------------------------------------------
11596 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile conf/Makefile include/Makefile xorg-synaptics.pc"
11598 cat >confcache <<\_ACEOF
11599 # This file is a shell script that caches the results of configure
11600 # tests run on this system so they can be shared between configure
11601 # scripts and configure runs, see configure's option --config-cache.
11602 # It is not useful on other systems. If it contains results you don't
11603 # want to keep, you may remove or edit it.
11605 # config.status only pays attention to the cache file if you give it
11606 # the --recheck option to rerun configure.
11608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11610 # following values.
11614 # The following way of writing the cache mishandles newlines in values,
11615 # but we know of no workaround that is simple, portable, and efficient.
11616 # So, we kill variables containing newlines.
11617 # Ultrix sh set writes to stderr and can't be redirected directly,
11618 # and sets the high bit in the cache file unless we assign to the vars.
11620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11621 eval ac_val=\$$ac_var
11625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11629 _ | IFS | as_nl) ;; #(
11630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11631 *) { eval $ac_var=; unset $ac_var;} ;;
11637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11638 *${as_nl}ac_space=\ *)
11639 # `set' does not quote correctly, so add quotes: double-quote
11640 # substitution turns \\\\ into \\, and sed turns \\ into \.
11643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11646 # `set' quotes correctly as required by POSIX, so do not add quotes.
11647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11661 if test -w "$cache_file"; then
11662 test "x$cache_file" != "x/dev/null" &&
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11664 $as_echo "$as_me: updating cache $cache_file" >&6;}
11665 cat confcache >$cache_file
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11674 # Let make expand exec_prefix.
11675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11677 DEFS=-DHAVE_CONFIG_H
11682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11683 # 1. Remove the extension, and $U if already installed.
11684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11687 # will be set to the directory where LIBOBJS objects are built.
11688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11691 LIBOBJS=$ac_libobjs
11693 LTLIBOBJS=$ac_ltlibobjs
11696 if test -n "$EXEEXT"; then
11698 am__EXEEXT_FALSE='#'
11700 am__EXEEXT_TRUE='#'
11704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11705 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11709 as_fn_error $? "conditional \"AMDEP\" was never defined.
11710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11716 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
11717 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
11718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11720 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11721 as_fn_error $? "conditional \"DEBUG\" was never defined.
11722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11724 if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
11725 as_fn_error $? "conditional \"BUILD_EVENTCOMM\" was never defined.
11726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11728 if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
11729 as_fn_error $? "conditional \"BUILD_PSMCOMM\" was never defined.
11730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11733 : ${CONFIG_STATUS=./config.status}
11735 ac_clean_files_save=$ac_clean_files
11736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11742 # Generated by $as_me.
11743 # Run this file to recreate the current configuration.
11744 # Compiler output produced by configure, useful for debugging
11745 # configure, is in config.log if it exists.
11748 ac_cs_recheck=false
11751 SHELL=\${CONFIG_SHELL-$SHELL}
11754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11755 ## -------------------- ##
11756 ## M4sh Initialization. ##
11757 ## -------------------- ##
11759 # Be more Bourne compatible
11760 DUALCASE=1; export DUALCASE # for MKS sh
11761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11765 # is contrary to our usage. Disable this feature.
11766 alias -g '${1+"$@"}'='"$@"'
11767 setopt NO_GLOB_SUBST
11769 case `(set -o) 2>/dev/null` in #(
11781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11782 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11785 # Prefer a ksh shell builtin over an external printf program on Solaris,
11786 # but without wasting forks for bash or zsh.
11787 if test -z "$BASH_VERSION$ZSH_VERSION" \
11788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11789 as_echo='print -r --'
11790 as_echo_n='print -rn --'
11791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11792 as_echo='printf %s\n'
11793 as_echo_n='printf %s'
11795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11797 as_echo_n='/usr/ucb/echo -n'
11799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11800 as_echo_n_body='eval
11804 expr "X$arg" : "X\\(.*\\)$as_nl";
11805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11809 export as_echo_n_body
11810 as_echo_n='sh -c $as_echo_n_body as_echo'
11812 export as_echo_body
11813 as_echo='sh -c $as_echo_body as_echo'
11816 # The user is always right.
11817 if test "${PATH_SEPARATOR+set}" != set; then
11819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11827 # We need space, tab and new line, in precisely that order. Quoting is
11828 # there to prevent editors from complaining about space-tab.
11829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11830 # splitting by setting IFS to empty value.)
11833 # Find who we are. Look in the path if we contain no directory separator.
11835 *[\\/]* ) as_myself=$0 ;;
11836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11840 test -z "$as_dir" && as_dir=.
11841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11847 # We did not find ourselves, most probably we were run as `sh COMMAND'
11848 # in which case we are not to be found in the path.
11849 if test "x$as_myself" = x; then
11852 if test ! -f "$as_myself"; then
11853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11857 # Unset variables that we do not need and which cause bugs (e.g. in
11858 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11859 # suppresses any "Segmentation fault" message there. '((' could
11860 # trigger a bug in pdksh 5.2.14.
11861 for as_var in BASH_ENV ENV MAIL MAILPATH
11862 do eval test x\${$as_var+set} = xset \
11863 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11879 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11880 # ----------------------------------------
11881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11883 # script with STATUS, using 1 if that was 0.
11886 as_status=$1; test $as_status -eq 0 && as_status=1
11888 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11891 $as_echo "$as_me: error: $2" >&2
11892 as_fn_exit $as_status
11896 # as_fn_set_status STATUS
11897 # -----------------------
11898 # Set $? to STATUS, without forking.
11899 as_fn_set_status ()
11902 } # as_fn_set_status
11904 # as_fn_exit STATUS
11905 # -----------------
11906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11910 as_fn_set_status $1
11916 # Portably unset VAR.
11919 { eval $1=; unset $1;}
11921 as_unset=as_fn_unset
11922 # as_fn_append VAR VALUE
11923 # ----------------------
11924 # Append the text in VALUE to the end of the definition contained in VAR. Take
11925 # advantage of any shell optimizations that allow amortized linear growth over
11926 # repeated appends, instead of the typical quadratic growth present in naive
11928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11929 eval 'as_fn_append ()
11940 # as_fn_arith ARG...
11941 # ------------------
11942 # Perform arithmetic evaluation on the ARGs, and store the result in the
11943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11944 # must be portable across $(()) and expr.
11945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11946 eval 'as_fn_arith ()
11953 as_val=`expr "$@" || test $? -eq 1`
11958 if expr a : '\(a\)' >/dev/null 2>&1 &&
11959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11966 as_basename=basename
11971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11977 as_me=`$as_basename -- "$0" ||
11978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11979 X"$0" : 'X\(//\)$' \| \
11980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11982 sed '/^.*\/\([^/][^/]*\)\/*$/{
11996 # Avoid depending upon Character Ranges.
11997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12000 as_cr_digits='0123456789'
12001 as_cr_alnum=$as_cr_Letters$as_cr_digits
12003 ECHO_C= ECHO_N= ECHO_T=
12004 case `echo -n x` in #(((((
12006 case `echo 'xy\c'` in
12007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12016 rm -f conf$$ conf$$.exe conf$$.file
12017 if test -d conf$$.dir; then
12018 rm -f conf$$.dir/conf$$.file
12021 mkdir conf$$.dir 2>/dev/null
12023 if (echo >conf$$.file) 2>/dev/null; then
12024 if ln -s conf$$.file conf$$ 2>/dev/null; then
12026 # ... but there are two gotchas:
12027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12029 # In both cases, we have to default to `cp -p'.
12030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12032 elif ln conf$$.file conf$$ 2>/dev/null; then
12040 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12041 rmdir conf$$.dir 2>/dev/null
12046 # Create "$as_dir" as a directory, including parents if necessary.
12051 -*) as_dir=./$as_dir;;
12053 test -d "$as_dir" || eval $as_mkdir_p || {
12057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12058 *) as_qdir=$as_dir;;
12060 as_dirs="'$as_qdir' $as_dirs"
12061 as_dir=`$as_dirname -- "$as_dir" ||
12062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12063 X"$as_dir" : 'X\(//\)[^/]' \| \
12064 X"$as_dir" : 'X\(//\)$' \| \
12065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12066 $as_echo X"$as_dir" |
12067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12071 /^X\(\/\/\)[^/].*/{
12084 test -d "$as_dir" && break
12086 test -z "$as_dirs" || eval "mkdir $as_dirs"
12087 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12091 if mkdir -p . 2>/dev/null; then
12092 as_mkdir_p='mkdir -p "$as_dir"'
12094 test -d ./-p && rmdir ./-p
12098 if test -x / >/dev/null 2>&1; then
12099 as_test_x='test -x'
12101 if ls -dL / >/dev/null 2>&1; then
12108 if test -d "$1"; then
12114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12115 ???[sx]*):;;*)false;;esac;fi
12119 as_executable_p=$as_test_x
12121 # Sed expression to map a string onto a valid CPP name.
12122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12124 # Sed expression to map a string onto a valid variable name.
12125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12129 ## ----------------------------------- ##
12130 ## Main body of $CONFIG_STATUS script. ##
12131 ## ----------------------------------- ##
12133 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136 # Save the log message, to keep $0 and so on meaningful, and to
12137 # report actual input values of CONFIG_FILES etc. instead of their
12138 # values after options handling.
12140 This file was extended by xf86-input-synaptics $as_me 1.4.0, which was
12141 generated by GNU Autoconf 2.66. Invocation command line was
12143 CONFIG_FILES = $CONFIG_FILES
12144 CONFIG_HEADERS = $CONFIG_HEADERS
12145 CONFIG_LINKS = $CONFIG_LINKS
12146 CONFIG_COMMANDS = $CONFIG_COMMANDS
12149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12154 case $ac_config_files in *"
12155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12158 case $ac_config_headers in *"
12159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12164 # Files that config.status was made for.
12165 config_files="$ac_config_files"
12166 config_headers="$ac_config_headers"
12167 config_commands="$ac_config_commands"
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12173 \`$as_me' instantiates files and other configuration actions
12174 from templates according to the current configuration. Unless the files
12175 and actions are specified as TAGs, all are instantiated by default.
12177 Usage: $0 [OPTION]... [TAG]...
12179 -h, --help print this help, then exit
12180 -V, --version print version number and configuration settings, then exit
12181 --config print configuration, then exit
12182 -q, --quiet, --silent
12183 do not print progress messages
12184 -d, --debug don't remove temporary files
12185 --recheck update $as_me by reconfiguring in the same conditions
12186 --file=FILE[:TEMPLATE]
12187 instantiate the configuration file FILE
12188 --header=FILE[:TEMPLATE]
12189 instantiate the configuration header FILE
12191 Configuration files:
12194 Configuration headers:
12197 Configuration commands:
12200 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12206 xf86-input-synaptics config.status 1.4.0
12207 configured by $0, generated by GNU Autoconf 2.66,
12208 with options \\"\$ac_cs_config\\"
12210 Copyright (C) 2010 Free Software Foundation, Inc.
12211 This config.status script is free software; the Free Software Foundation
12212 gives unlimited permission to copy, distribute and modify it."
12219 test -n "\$AWK" || AWK=awk
12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223 # The default lists apply if the user does not specify any file.
12229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12241 # Handling of the options.
12242 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12244 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12245 $as_echo "$ac_cs_version"; exit ;;
12246 --config | --confi | --conf | --con | --co | --c )
12247 $as_echo "$ac_cs_config"; exit ;;
12248 --debug | --debu | --deb | --de | --d | -d )
12250 --file | --fil | --fi | --f )
12253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12255 as_fn_append CONFIG_FILES " '$ac_optarg'"
12256 ac_need_defaults=false;;
12257 --header | --heade | --head | --hea )
12260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12262 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12263 ac_need_defaults=false;;
12265 # Conflict between --help and --header
12266 as_fn_error $? "ambiguous option: \`$1'
12267 Try \`$0 --help' for more information.";;
12268 --help | --hel | -h )
12269 $as_echo "$ac_cs_usage"; exit ;;
12270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12274 # This is an error.
12275 -*) as_fn_error $? "unrecognized option: \`$1'
12276 Try \`$0 --help' for more information." ;;
12278 *) as_fn_append ac_config_targets " $1"
12279 ac_need_defaults=false ;;
12285 ac_configure_extra_args=
12287 if $ac_cs_silent; then
12289 ac_configure_extra_args="$ac_configure_extra_args --silent"
12293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294 if \$ac_cs_recheck; then
12295 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12298 CONFIG_SHELL='$SHELL'
12299 export CONFIG_SHELL
12304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12309 ## Running $as_me. ##
12315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12322 # The HP-UX ksh and POSIX shell print the target directory to stdout
12323 # if CDPATH is set.
12324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12326 sed_quote_subst='$sed_quote_subst'
12327 double_quote_subst='$double_quote_subst'
12328 delay_variable_subst='$delay_variable_subst'
12329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12333 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12334 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12335 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12336 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12337 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12338 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12339 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12340 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12341 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12342 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12343 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12344 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12345 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12346 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12347 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12348 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12349 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12350 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12351 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12352 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12353 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12354 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12355 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12356 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12357 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12358 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12359 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12360 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12361 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12364 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12365 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12366 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12367 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12368 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12369 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12370 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12371 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12372 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12373 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12374 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12375 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12376 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12381 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12382 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12386 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12387 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12388 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12389 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12390 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12391 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12392 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12393 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12394 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12395 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12396 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12397 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12398 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12399 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12400 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12401 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12402 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12403 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12404 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12405 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12406 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12407 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12408 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12409 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12418 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12419 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12420 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12421 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12422 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12423 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12443 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12444 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12445 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12446 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12447 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12448 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12451 LTCFLAGS='$LTCFLAGS'
12452 compiler='$compiler_DEFAULT'
12454 # A function that is used when there is no print builtin or printf.
12455 func_fallback_echo ()
12457 eval 'cat <<_LTECHO_EOF
12462 # Quote evaled strings.
12476 deplibs_check_method \
12485 lt_cv_sys_global_symbol_pipe \
12486 lt_cv_sys_global_symbol_to_cdecl \
12487 lt_cv_sys_global_symbol_to_c_name_address \
12488 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12489 lt_prog_compiler_no_builtin_flag \
12490 lt_prog_compiler_wl \
12491 lt_prog_compiler_pic \
12492 lt_prog_compiler_static \
12493 lt_cv_prog_compiler_c_o \
12501 export_dynamic_flag_spec \
12502 whole_archive_flag_spec \
12503 compiler_needs_object \
12505 allow_undefined_flag \
12506 no_undefined_flag \
12507 hardcode_libdir_flag_spec \
12508 hardcode_libdir_flag_spec_ld \
12509 hardcode_libdir_separator \
12514 variables_saved_for_relink \
12516 library_names_spec \
12518 install_override_mode \
12522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12523 *[\\\\\\\`\\"\\\$]*)
12524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12532 # Double-quote double-evaled strings.
12533 for var in reload_cmds \
12534 old_postinstall_cmds \
12535 old_postuninstall_cmds \
12537 extract_expsyms_cmds \
12538 old_archive_from_new_cmds \
12539 old_archive_from_expsyms_cmds \
12541 archive_expsym_cmds \
12543 module_expsym_cmds \
12544 export_symbols_cmds \
12547 postuninstall_cmds \
12549 sys_lib_search_path_spec \
12550 sys_lib_dlsearch_path_spec; do
12551 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12552 *[\\\\\\\`\\"\\\$]*)
12553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12561 ac_aux_dir='$ac_aux_dir'
12562 xsi_shell='$xsi_shell'
12563 lt_shell_append='$lt_shell_append'
12565 # See if we are running on zsh, and set the options which allow our
12566 # commands through without removal of \ escapes INIT.
12567 if test -n "\${ZSH_VERSION+set}" ; then
12568 setopt NO_GLOB_SUBST
12574 TIMESTAMP='$TIMESTAMP'
12583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 # Handling of arguments.
12586 for ac_config_target in $ac_config_targets
12588 case $ac_config_target in
12589 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12591 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12593 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12594 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12595 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12596 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
12597 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12598 "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
12600 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12605 # If the user did not use the arguments to specify the items to instantiate,
12606 # then the envvar interface is used. Set only those that are not.
12607 # We use the long form for the default assignment because of an extremely
12608 # bizarre bug on SunOS 4.1.3.
12609 if $ac_need_defaults; then
12610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12615 # Have a temporary directory for convenience. Make it in the build tree
12616 # simply because there is no reason against having it here, and in addition,
12617 # creating and moving files from /tmp can sometimes cause problems.
12618 # Hook for its removal unless debugging.
12619 # Note that there is a small window in which the directory will not be cleaned:
12620 # after its creation but before its name has been assigned to `$tmp'.
12624 trap 'exit_status=$?
12625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12627 trap 'as_fn_exit 1' 1 2 13 15
12629 # Create a (secure) tmp directory for tmp files.
12632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12633 test -n "$tmp" && test -d "$tmp"
12636 tmp=./conf$$-$RANDOM
12637 (umask 077 && mkdir "$tmp")
12638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12640 # Set up the scripts for CONFIG_FILES section.
12641 # No need to generate them if there are no CONFIG_FILES.
12642 # This happens for instance with `./config.status config.h'.
12643 if test -n "$CONFIG_FILES"; then
12646 ac_cr=`echo X | tr X '\015'`
12647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12648 # But we know of no other shell where ac_cr would be empty at this
12649 # point, so we can use a bashism as a fallback.
12650 if test "x$ac_cr" = x; then
12651 eval ac_cr=\$\'\\r\'
12653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12657 ac_cs_awk_cr=$ac_cr
12660 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12665 echo "cat >conf$$subs.awk <<_ACEOF" &&
12666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12668 } >conf$$subs.sh ||
12669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12672 for ac_last_try in false false false false false :; do
12673 . ./conf$$subs.sh ||
12674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12677 if test $ac_delim_n = $ac_delim_num; then
12679 elif $ac_last_try; then
12680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12685 rm -f conf$$subs.sh
12687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12688 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12692 s/^/S["/; s/!.*/"]=/
12702 s/\(.\{148\}\)..*/\1/
12704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12716 s/\(.\{148\}\)..*/\1/
12718 s/["\\]/\\&/g; s/^/"/; s/$/"/
12722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12727 ' <conf$$subs.awk | sed '
12732 ' >>$CONFIG_STATUS || ac_write_fail=1
12733 rm -f conf$$subs.awk
12734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12736 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12737 for (key in S) S_is_set[key] = 1
12743 nfields = split(line, field, "@")
12745 len = length(field[1])
12746 for (i = 2; i < nfields; i++) {
12748 keylen = length(key)
12749 if (S_is_set[key]) {
12751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12752 len += length(value) + length(field[++i])
12763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12768 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12774 # trailing colons and then remove the whole line if VPATH becomes empty
12775 # (actually we leave an empty line to preserve line numbers).
12776 if test "x$srcdir" = x.; then
12777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796 fi # test -n "$CONFIG_FILES"
12798 # Set up the scripts for CONFIG_HEADERS section.
12799 # No need to generate them if there are no CONFIG_HEADERS.
12800 # This happens for instance with `./config.status Makefile'.
12801 if test -n "$CONFIG_HEADERS"; then
12802 cat >"$tmp/defines.awk" <<\_ACAWK ||
12806 # Transform confdefs.h into an awk script `defines.awk', embedded as
12807 # here-document in config.status, that substitutes the proper values into
12808 # config.h.in to produce config.h.
12810 # Create a delimiter string that does not exist in confdefs.h, to ease
12811 # handling of long lines.
12813 for ac_last_try in false false :; do
12814 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12815 if test -z "$ac_t"; then
12817 elif $ac_last_try; then
12818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12824 # For the awk script, D is an array of macro values keyed by name,
12825 # likewise P contains macro parameters if any. Preserve backslash
12826 # newline sequences.
12828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12830 s/.\{148\}/&'"$ac_delim"'/g
12833 s/^[ ]*#[ ]*define[ ][ ]*/ /
12840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12847 D["\1"]=" \3\\\\\\n"\\/p
12849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12854 s/.\{148\}/&'"$ac_delim"'/g
12859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12864 ' <confdefs.h | sed '
12865 s/'"$ac_delim"'/"\\\
12866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12869 for (key in D) D_is_set[key] = 1
12872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12874 split(line, arg, " ")
12875 if (arg[1] == "#") {
12879 defundef = substr(arg[1], 2)
12882 split(mac1, mac2, "(") #)
12884 prefix = substr(line, 1, index(line, defundef) - 1)
12885 if (D_is_set[macro]) {
12886 # Preserve the white space surrounding the "#".
12887 print prefix "define", macro P[macro] D[macro]
12890 # Replace #undef with comments. This is necessary, for example,
12891 # in the case of _POSIX_SOURCE, which is predefined and required
12892 # on some systems where configure will not decide to define it.
12893 if (defundef == "undef") {
12894 print "/*", prefix defundef, macro, "*/"
12902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12904 fi # test -n "$CONFIG_HEADERS"
12907 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12912 :[FHLC]) ac_mode=$ac_tag; continue;;
12914 case $ac_mode$ac_tag in
12916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12917 :[FH]-) ac_tag=-:-;;
12918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12935 -) ac_f="$tmp/stdin";;
12936 *) # Look for the file first in the build tree, then in the source tree
12937 # (if the path is not absolute). The absolute path cannot be DOS-style,
12938 # because $ac_f cannot contain `:'.
12942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12947 as_fn_append ac_file_inputs " '$ac_f'"
12950 # Let's still pretend it is `configure' which instantiates (i.e., don't
12951 # use $as_me), people would be surprised to read:
12952 # /* config.h. Generated by config.status. */
12953 configure_input='Generated from '`
12954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12956 if test x"$ac_file" != x-; then
12957 configure_input="$ac_file. $configure_input"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12959 $as_echo "$as_me: creating $ac_file" >&6;}
12961 # Neutralize special characters interpreted by sed in replacement strings.
12962 case $configure_input in #(
12963 *\&* | *\|* | *\\* )
12964 ac_sed_conf_input=`$as_echo "$configure_input" |
12965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12966 *) ac_sed_conf_input=$configure_input;;
12970 *:-:* | *:-) cat >"$tmp/stdin" \
12971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12976 ac_dir=`$as_dirname -- "$ac_file" ||
12977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12978 X"$ac_file" : 'X\(//\)[^/]' \| \
12979 X"$ac_file" : 'X\(//\)$' \| \
12980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12981 $as_echo X"$ac_file" |
12982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12986 /^X\(\/\/\)[^/].*/{
12999 as_dir="$ac_dir"; as_fn_mkdir_p
13003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13006 # A ".." for each directory in $ac_dir_suffix.
13007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13008 case $ac_top_builddir_sub in
13009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13013 ac_abs_top_builddir=$ac_pwd
13014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13015 # for backward compatibility:
13016 ac_top_builddir=$ac_top_build_prefix
13019 .) # We are building in place.
13021 ac_top_srcdir=$ac_top_builddir_sub
13022 ac_abs_top_srcdir=$ac_pwd ;;
13023 [\\/]* | ?:[\\/]* ) # Absolute name.
13024 ac_srcdir=$srcdir$ac_dir_suffix;
13025 ac_top_srcdir=$srcdir
13026 ac_abs_top_srcdir=$srcdir ;;
13027 *) # Relative name.
13028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13029 ac_top_srcdir=$ac_top_build_prefix$srcdir
13030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13045 ac_MKDIR_P=$MKDIR_P
13047 [\\/$]* | ?:[\\/]* ) ;;
13048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053 # If the template does not know about datarootdir, expand it.
13054 # FIXME: This hack should be removed a few years after 2.60.
13055 ac_datarootdir_hack=; ac_datarootdir_seen=
13066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13067 *datarootdir*) ac_datarootdir_seen=yes;;
13068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073 ac_datarootdir_hack='
13074 s&@datadir@&$datadir&g
13075 s&@docdir@&$docdir&g
13076 s&@infodir@&$infodir&g
13077 s&@localedir@&$localedir&g
13078 s&@mandir@&$mandir&g
13079 s&\\\${datarootdir}&$datarootdir&g' ;;
13083 # Neutralize VPATH when `$srcdir' = `.'.
13084 # Shell code in configure.ac might set extrasub.
13085 # FIXME: do we really want to maintain this feature?
13086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13087 ac_sed_extra="$ac_vpsub
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13093 s|@configure_input@|$ac_sed_conf_input|;t t
13094 s&@top_builddir@&$ac_top_builddir_sub&;t t
13095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13096 s&@srcdir@&$ac_srcdir&;t t
13097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13098 s&@top_srcdir@&$ac_top_srcdir&;t t
13099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13100 s&@builddir@&$ac_builddir&;t t
13101 s&@abs_builddir@&$ac_abs_builddir&;t t
13102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13103 s&@INSTALL@&$ac_INSTALL&;t t
13104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13105 $ac_datarootdir_hack
13107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13111 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13114 which seems to be undefined. Please make sure it is defined" >&5
13115 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13116 which seems to be undefined. Please make sure it is defined" >&2;}
13120 -) cat "$tmp/out" && rm -f "$tmp/out";;
13121 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13129 if test x"$ac_file" != x-; then
13131 $as_echo "/* $configure_input */" \
13132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13133 } >"$tmp/config.h" \
13134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13135 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13137 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13140 mv "$tmp/config.h" "$ac_file" \
13141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13144 $as_echo "/* $configure_input */" \
13145 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13146 || as_fn_error $? "could not create -" "$LINENO" 5
13148 # Compute "$ac_file"'s index in $config_headers.
13151 for _am_header in $config_headers :; do
13152 case $_am_header in
13153 $_am_arg | $_am_arg:* )
13156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13161 X"$_am_arg" : 'X\(//\)[^/]' \| \
13162 X"$_am_arg" : 'X\(//\)$' \| \
13163 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13164 $as_echo X"$_am_arg" |
13165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13169 /^X\(\/\/\)[^/].*/{
13181 s/.*/./; q'`/stamp-h$_am_stamp_count
13184 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13185 $as_echo "$as_me: executing $ac_file commands" >&6;}
13190 case $ac_file$ac_mode in
13191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13192 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13193 # are listed without --file. Let's play safe and only enable the eval
13194 # if we detect the quoting.
13195 case $CONFIG_FILES in
13196 *\'*) eval set x "$CONFIG_FILES" ;;
13197 *) set x $CONFIG_FILES ;;
13202 # Strip MF so we end up with the name of the file.
13203 mf=`echo "$mf" | sed -e 's/:.*$//'`
13204 # Check whether this is an Automake generated Makefile or not.
13205 # We used to match only the files named `Makefile.in', but
13206 # some people rename them; so instead we look at the file content.
13207 # Grep'ing the first line is not enough: some people post-process
13208 # each Makefile.in and add a new line on top of each file to say so.
13209 # Grep'ing the whole file is not good either: AIX grep has a line
13210 # limit of 2048, but all sed's we know have understand at least 4000.
13211 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13212 dirpart=`$as_dirname -- "$mf" ||
13213 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13214 X"$mf" : 'X\(//\)[^/]' \| \
13215 X"$mf" : 'X\(//\)$' \| \
13216 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13222 /^X\(\/\/\)[^/].*/{
13238 # Extract the definition of DEPDIR, am__include, and am__quote
13239 # from the Makefile without running `make'.
13240 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13241 test -z "$DEPDIR" && continue
13242 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13243 test -z "am__include" && continue
13244 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13245 # When using ansi2knr, U may be empty or an underscore; expand it
13246 U=`sed -n 's/^U = //p' < "$mf"`
13247 # Find all dependency output files, they are included files with
13248 # $(DEPDIR) in their names. We invoke sed twice because it is the
13249 # simplest approach to changing $(DEPDIR) to its actual value in the
13251 for file in `sed -n "
13252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13254 # Make sure the directory exists.
13255 test -f "$dirpart/$file" && continue
13256 fdir=`$as_dirname -- "$file" ||
13257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13258 X"$file" : 'X\(//\)[^/]' \| \
13259 X"$file" : 'X\(//\)$' \| \
13260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13261 $as_echo X"$file" |
13262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13266 /^X\(\/\/\)[^/].*/{
13279 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13280 # echo "creating $dirpart/$file"
13281 echo '# dummy' > "$dirpart/$file"
13288 # See if we are running on zsh, and set the options which allow our
13289 # commands through without removal of \ escapes.
13290 if test -n "${ZSH_VERSION+set}" ; then
13291 setopt NO_GLOB_SUBST
13294 cfgfile="${ofile}T"
13295 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13298 cat <<_LT_EOF >> "$cfgfile"
13301 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13302 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13304 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13306 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13307 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13309 # Written by Gordon Matzigkeit, 1996
13311 # This file is part of GNU Libtool.
13313 # GNU Libtool is free software; you can redistribute it and/or
13314 # modify it under the terms of the GNU General Public License as
13315 # published by the Free Software Foundation; either version 2 of
13316 # the License, or (at your option) any later version.
13318 # As a special exception to the GNU General Public License,
13319 # if you distribute this file as part of a program or library that
13320 # is built using GNU Libtool, you may include this file under the
13321 # same distribution terms that you use for the rest of that program.
13323 # GNU Libtool is distributed in the hope that it will be useful,
13324 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13326 # GNU General Public License for more details.
13328 # You should have received a copy of the GNU General Public License
13329 # along with GNU Libtool; see the file COPYING. If not, a copy
13330 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13331 # obtained by writing to the Free Software Foundation, Inc.,
13332 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13335 # The names of the tagged configurations supported by this script.
13338 # ### BEGIN LIBTOOL CONFIG
13340 # Whether or not to build static libraries.
13341 build_old_libs=$enable_static
13343 # Which release of libtool.m4 was used?
13344 macro_version=$macro_version
13345 macro_revision=$macro_revision
13347 # Whether or not to build shared libraries.
13348 build_libtool_libs=$enable_shared
13350 # What type of objects to build.
13353 # Whether or not to optimize for fast installation.
13354 fast_install=$enable_fast_install
13356 # Shell to use when invoking shell scripts.
13359 # An echo program that protects backslashes.
13363 host_alias=$host_alias
13367 # The build system.
13368 build_alias=$build_alias
13372 # A sed program that does not truncate output.
13375 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13376 Xsed="\$SED -e 1s/^X//"
13378 # A grep program that handles long lines.
13384 # A literal string matcher.
13387 # A BSD- or MS-compatible name lister.
13390 # Whether we need soft or hard links.
13393 # What is the maximum length of a command?
13394 max_cmd_len=$max_cmd_len
13396 # Object file suffix (normally "o").
13399 # Executable file suffix (normally "").
13402 # whether the shell understands "unset".
13405 # turn spaces into newlines.
13408 # turn newlines into spaces.
13411 # An object symbol dumper.
13412 OBJDUMP=$lt_OBJDUMP
13414 # Method to check whether dependent libraries are shared objects.
13415 deplibs_check_method=$lt_deplibs_check_method
13417 # Command to use when deplibs_check_method == "file_magic".
13418 file_magic_cmd=$lt_file_magic_cmd
13422 AR_FLAGS=$lt_AR_FLAGS
13424 # A symbol stripping program.
13427 # Commands used to install an old-style archive.
13429 old_postinstall_cmds=$lt_old_postinstall_cmds
13430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13432 # Whether to use a lock for old archive extraction.
13433 lock_old_archive_extraction=$lock_old_archive_extraction
13438 # LTCC compiler flags.
13439 LTCFLAGS=$lt_CFLAGS
13441 # Take the output of nm and produce a listing of raw symbols and C names.
13442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13444 # Transform the output of nm in a proper C declaration.
13445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13447 # Transform the output of nm in a C name address pair.
13448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13450 # Transform the output of nm in a C name address pair when lib prefix is needed.
13451 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13453 # The name of the directory that contains temporary libtool files.
13456 # Used to examine libraries when file_magic_cmd begins with "file".
13457 MAGIC_CMD=$MAGIC_CMD
13459 # Must we lock files when doing compilation?
13460 need_locks=$lt_need_locks
13462 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13463 DSYMUTIL=$lt_DSYMUTIL
13465 # Tool to change global to local symbols on Mac OS X.
13468 # Tool to manipulate fat objects and archives on Mac OS X.
13471 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13474 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13475 OTOOL64=$lt_OTOOL64
13477 # Old archive suffix (normally "a").
13480 # Shared library suffix (normally ".so").
13481 shrext_cmds=$lt_shrext_cmds
13483 # The commands to extract the exported symbol list from a shared archive.
13484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13486 # Variables whose values should be saved in libtool wrapper scripts and
13487 # restored at link time.
13488 variables_saved_for_relink=$lt_variables_saved_for_relink
13490 # Do we need the "lib" prefix for modules?
13491 need_lib_prefix=$need_lib_prefix
13493 # Do we need a version for libraries?
13494 need_version=$need_version
13496 # Library versioning type.
13497 version_type=$version_type
13499 # Shared library runtime path variable.
13500 runpath_var=$runpath_var
13502 # Shared library path variable.
13503 shlibpath_var=$shlibpath_var
13505 # Is shlibpath searched before the hard-coded library search path?
13506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13508 # Format of library name prefix.
13509 libname_spec=$lt_libname_spec
13511 # List of archive names. First name is the real one, the rest are links.
13512 # The last name is the one that the linker finds with -lNAME
13513 library_names_spec=$lt_library_names_spec
13515 # The coded name of the library, if different from the real name.
13516 soname_spec=$lt_soname_spec
13518 # Permission mode override for installation of shared libraries.
13519 install_override_mode=$lt_install_override_mode
13521 # Command to use after installation of a shared archive.
13522 postinstall_cmds=$lt_postinstall_cmds
13524 # Command to use after uninstallation of a shared archive.
13525 postuninstall_cmds=$lt_postuninstall_cmds
13527 # Commands used to finish a libtool library installation in a directory.
13528 finish_cmds=$lt_finish_cmds
13530 # As "finish_cmds", except a single script fragment to be evaled but
13532 finish_eval=$lt_finish_eval
13534 # Whether we should hardcode library paths into libraries.
13535 hardcode_into_libs=$hardcode_into_libs
13537 # Compile-time system search path for libraries.
13538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13540 # Run-time system search path for libraries.
13541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13543 # Whether dlopen is supported.
13544 dlopen_support=$enable_dlopen
13546 # Whether dlopen of programs is supported.
13547 dlopen_self=$enable_dlopen_self
13549 # Whether dlopen of statically linked programs is supported.
13550 dlopen_self_static=$enable_dlopen_self_static
13552 # Commands to strip libraries.
13553 old_striplib=$lt_old_striplib
13554 striplib=$lt_striplib
13557 # The linker used to build libraries.
13560 # How to create reloadable object files.
13561 reload_flag=$lt_reload_flag
13562 reload_cmds=$lt_reload_cmds
13564 # Commands used to build an old-style archive.
13565 old_archive_cmds=$lt_old_archive_cmds
13567 # A language specific compiler.
13570 # Is the compiler the GNU compiler?
13573 # Compiler flag to turn off builtin functions.
13574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13576 # How to pass a linker flag through the compiler.
13577 wl=$lt_lt_prog_compiler_wl
13579 # Additional compiler flags for building library objects.
13580 pic_flag=$lt_lt_prog_compiler_pic
13582 # Compiler flag to prevent dynamic linking.
13583 link_static_flag=$lt_lt_prog_compiler_static
13585 # Does compiler simultaneously support -c and -o options?
13586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13588 # Whether or not to add -lc for building shared libraries.
13589 build_libtool_need_lc=$archive_cmds_need_lc
13591 # Whether or not to disallow shared libs when runtime libs are static.
13592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13594 # Compiler flag to allow reflexive dlopens.
13595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13597 # Compiler flag to generate shared objects directly from archives.
13598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13600 # Whether the compiler copes with passing no objects directly.
13601 compiler_needs_object=$lt_compiler_needs_object
13603 # Create an old-style archive from a shared archive.
13604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13606 # Create a temporary old-style archive to link instead of a shared archive.
13607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13609 # Commands used to build a shared archive.
13610 archive_cmds=$lt_archive_cmds
13611 archive_expsym_cmds=$lt_archive_expsym_cmds
13613 # Commands used to build a loadable module if different from building
13614 # a shared archive.
13615 module_cmds=$lt_module_cmds
13616 module_expsym_cmds=$lt_module_expsym_cmds
13618 # Whether we are building with GNU ld or not.
13619 with_gnu_ld=$lt_with_gnu_ld
13621 # Flag that allows shared libraries with undefined symbols to be built.
13622 allow_undefined_flag=$lt_allow_undefined_flag
13624 # Flag that enforces no undefined symbols.
13625 no_undefined_flag=$lt_no_undefined_flag
13627 # Flag to hardcode \$libdir into a binary during linking.
13628 # This must work even if \$libdir does not exist
13629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13631 # If ld is used when linking, flag to hardcode \$libdir into a binary
13632 # during linking. This must work even if \$libdir does not exist.
13633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13635 # Whether we need a single "-rpath" flag with a separated argument.
13636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13639 # DIR into the resulting binary.
13640 hardcode_direct=$hardcode_direct
13642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13643 # DIR into the resulting binary and the resulting library dependency is
13644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13645 # library is relocated.
13646 hardcode_direct_absolute=$hardcode_direct_absolute
13648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13649 # into the resulting binary.
13650 hardcode_minus_L=$hardcode_minus_L
13652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13653 # into the resulting binary.
13654 hardcode_shlibpath_var=$hardcode_shlibpath_var
13656 # Set to "yes" if building a shared library automatically hardcodes DIR
13657 # into the library and all subsequent libraries and executables linked
13659 hardcode_automatic=$hardcode_automatic
13661 # Set to yes if linker adds runtime paths of dependent libraries
13662 # to runtime path list.
13663 inherit_rpath=$inherit_rpath
13665 # Whether libtool must link a program against all its dependency libraries.
13666 link_all_deplibs=$link_all_deplibs
13668 # Fix the shell variable \$srcfile for the compiler.
13669 fix_srcfile_path=$lt_fix_srcfile_path
13671 # Set to "yes" if exported symbols are required.
13672 always_export_symbols=$always_export_symbols
13674 # The commands to list exported symbols.
13675 export_symbols_cmds=$lt_export_symbols_cmds
13677 # Symbols that should not be listed in the preloaded symbols.
13678 exclude_expsyms=$lt_exclude_expsyms
13680 # Symbols that must always be exported.
13681 include_expsyms=$lt_include_expsyms
13683 # Commands necessary for linking programs (against libraries) with templates.
13684 prelink_cmds=$lt_prelink_cmds
13686 # Specify filename containing input files.
13687 file_list_spec=$lt_file_list_spec
13689 # How to hardcode a shared library path into an executable.
13690 hardcode_action=$hardcode_action
13692 # ### END LIBTOOL CONFIG
13698 cat <<\_LT_EOF >> "$cfgfile"
13699 # AIX sometimes has problems with the GCC collect2 program. For some
13700 # reason, if we set the COLLECT_NAMES environment variable, the problems
13701 # vanish in a puff of smoke.
13702 if test "X${COLLECT_NAMES+set}" != Xset; then
13704 export COLLECT_NAMES
13711 ltmain="$ac_aux_dir/ltmain.sh"
13714 # We use sed instead of cat because bash on DJGPP gets confused if
13715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13716 # text mode, it properly converts lines to CR/LF. This bash problem
13717 # is reportedly fixed, but why not run on old versions too?
13718 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13719 || (rm -f "$cfgfile"; exit 1)
13723 cat << \_LT_EOF >> "$cfgfile"
13725 # func_dirname file append nondir_replacement
13726 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13727 # otherwise set result to NONDIR_REPLACEMENT.
13731 */*) func_dirname_result="${1%/*}${2}" ;;
13732 * ) func_dirname_result="${3}" ;;
13736 # func_basename file
13739 func_basename_result="${1##*/}"
13742 # func_dirname_and_basename file append nondir_replacement
13743 # perform func_basename and func_dirname in a single function
13745 # dirname: Compute the dirname of FILE. If nonempty,
13746 # add APPEND to the result, otherwise set result
13747 # to NONDIR_REPLACEMENT.
13748 # value returned in "$func_dirname_result"
13749 # basename: Compute filename of FILE.
13750 # value retuned in "$func_basename_result"
13751 # Implementation must be kept synchronized with func_dirname
13752 # and func_basename. For efficiency, we do not delegate to
13753 # those functions but instead duplicate the functionality here.
13754 func_dirname_and_basename ()
13757 */*) func_dirname_result="${1%/*}${2}" ;;
13758 * ) func_dirname_result="${3}" ;;
13760 func_basename_result="${1##*/}"
13763 # func_stripname prefix suffix name
13764 # strip PREFIX and SUFFIX off of NAME.
13765 # PREFIX and SUFFIX must not contain globbing or regex special
13766 # characters, hashes, percent signs, but SUFFIX may contain a leading
13767 # dot (in which case that matches only a dot).
13770 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13771 # positional parameters, so assign one to ordinary parameter first.
13772 func_stripname_result=${3}
13773 func_stripname_result=${func_stripname_result#"${1}"}
13774 func_stripname_result=${func_stripname_result%"${2}"}
13780 func_opt_split_opt=${1%%=*}
13781 func_opt_split_arg=${1#*=}
13788 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13789 *) func_lo2o_result=${1} ;;
13793 # func_xform libobj-or-source
13796 func_xform_result=${1%.*}.lo
13799 # func_arith arithmetic-term...
13802 func_arith_result=$(( $* ))
13806 # STRING may not start with a hyphen.
13809 func_len_result=${#1}
13814 *) # Bourne compatible functions.
13815 cat << \_LT_EOF >> "$cfgfile"
13817 # func_dirname file append nondir_replacement
13818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13819 # otherwise set result to NONDIR_REPLACEMENT.
13822 # Extract subdirectory from the argument.
13823 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13824 if test "X$func_dirname_result" = "X${1}"; then
13825 func_dirname_result="${3}"
13827 func_dirname_result="$func_dirname_result${2}"
13831 # func_basename file
13834 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13838 # func_stripname prefix suffix name
13839 # strip PREFIX and SUFFIX off of NAME.
13840 # PREFIX and SUFFIX must not contain globbing or regex special
13841 # characters, hashes, percent signs, but SUFFIX may contain a leading
13842 # dot (in which case that matches only a dot).
13843 # func_strip_suffix prefix name
13847 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13848 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13853 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13854 my_sed_long_arg='1s/^-[^=]*=//'
13859 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13860 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13866 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13869 # func_xform libobj-or-source
13872 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13875 # func_arith arithmetic-term...
13878 func_arith_result=`expr "$@"`
13882 # STRING may not start with a hyphen.
13885 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13891 case $lt_shell_append in
13893 cat << \_LT_EOF >> "$cfgfile"
13895 # func_append var value
13896 # Append VALUE to the end of shell variable VAR.
13904 cat << \_LT_EOF >> "$cfgfile"
13906 # func_append var value
13907 # Append VALUE to the end of shell variable VAR.
13918 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13919 || (rm -f "$cfgfile"; exit 1)
13921 mv -f "$cfgfile" "$ofile" ||
13922 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13933 ac_clean_files=$ac_clean_files_save
13935 test $ac_write_fail = 0 ||
13936 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13939 # configure is writing to config.log, and then calls config.status.
13940 # config.status does its own redirection, appending to config.log.
13941 # Unfortunately, on DOS this fails, as config.log is still kept open
13942 # by configure, so config.status won't be able to write to it; its
13943 # output is simply discarded. So we exec the FD to /dev/null,
13944 # effectively closing config.log, so it can be properly (re)opened and
13945 # appended to by config.status. When coming back to configure, we
13946 # need to make the FD available again.
13947 if test "$no_create" != yes; then
13949 ac_config_status_args=
13950 test "$silent" = yes &&
13951 ac_config_status_args="$ac_config_status_args --quiet"
13953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13956 # would make configure fail if this is the last instruction.
13957 $ac_cs_success || as_fn_exit 1
13959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}