2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libjpeg-turbo 1.4.2.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='libjpeg-turbo'
589 PACKAGE_TARNAME='libjpeg-turbo'
590 PACKAGE_VERSION='1.4.2'
591 PACKAGE_STRING='libjpeg-turbo 1.4.2'
595 ac_default_prefix=/opt/libjpeg-turbo
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
655 WITH_SSE_FLOAT_DCT_FALSE
656 WITH_SSE_FLOAT_DCT_TRUE
687 JPEG_LIB_VERSION_DECIMAL
717 am__fastdepCCAS_FALSE
754 INSTALL_STRIP_PROGRAM
796 program_transform_name
809 enable_option_checking
811 enable_dependency_tracking
824 enable_ld_version_script
830 with_gas_preprocessor
833 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures libjpeg-turbo 1.4.2 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg-turbo]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of libjpeg-turbo 1.4.2:";;
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --disable-ld-version-script
1484 Disable linker version script for libjpeg-turbo
1485 (default is to use linker version script if the
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1493 --with-aix-soname=aix|svr4|both
1494 shared library versioning (aka "SONAME") variant to
1495 provide on AIX, [default=aix].
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1498 compiler's sysroot if not specified).
1499 Use custom build string to enable reproducible builds (default: YYMMDD)
1500 --with-jpeg7 Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo
1501 backward incompatible with libjpeg v6b.)
1502 --with-jpeg8 Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo
1503 backward incompatible with libjpeg v6b.)
1504 --without-mem-srcdst Do not include in-memory source/destination manager
1505 functions when emulating the libjpeg v6b or v7
1507 --without-arith-enc Do not include arithmetic encoding support
1508 --without-arith-dec Do not include arithmetic decoding support
1509 --with-12bit Encode/decode JPEG images with 12-bit samples
1510 (implies --without-simd --without-turbojpeg
1511 --without-arith-dec --without-arith-enc)
1512 --without-turbojpeg Do not include the TurboJPEG wrapper library and
1513 associated test programs
1514 --with-java Build Java wrapper for the TurboJPEG library
1515 --with-gas-preprocessor Force using gas-preprocessor.pl on ARM.
1516 --without-simd Do not include SIMD extensions
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1530 User-defined run-time library search path.
1532 libjpeg API version (62, 70, or 80)
1534 Major version of the libjpeg-turbo shared library (default is
1535 determined by the API version)
1537 Minor version of the libjpeg-turbo shared library (default is
1538 determined by the API version)
1539 JAVAC Java compiler command (default: javac)
1540 JAVACFLAGS Java compiler flags
1541 JAR Java archive command (default: jar)
1542 JAVA Java runtime command (default: java)
1543 JNI_CFLAGS C compiler flags needed to include jni.h (default:
1544 -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X,
1545 '-I/usr/java/include -I/usr/java/include/solaris' on Solaris,
1546 and '-I/usr/java/default/include
1547 -I/usr/java/default/include/linux' on Linux)
1548 PKGNAME distribution package name (default: libjpeg-turbo)
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 Report bugs to the package provider.
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 libjpeg-turbo configure 1.4.2
1617 generated by GNU Autoconf 2.69
1619 Copyright (C) 2012 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1666 } # ac_fn_c_try_compile
1668 # ac_fn_c_try_cpp LINENO
1669 # ----------------------
1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } > conftest.i && {
1690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_c_try_link
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } # ac_fn_c_check_header_compile
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=$ac_status
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1847 # include <limits.h>
1849 # include <assert.h>
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1876 if ac_fn_c_try_link "$LINENO"; then :
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_check_func
1891 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1892 # --------------------------------------------
1893 # Tries to find the compile-time value of EXPR in a program that includes
1894 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1896 ac_fn_c_compute_int ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if test "$cross_compiling" = yes; then
1900 # Depending upon the size, compute the lo and hi bounds.
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1907 static int test_array [1 - 2 * !(($2) >= 0)];
1909 return test_array [0];
1915 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1924 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926 return test_array [0];
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_hi=$ac_mid; break
1935 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1936 if test $ac_lo -le $ac_mid; then
1940 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) < 0)];
1953 return test_array [0];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970 return test_array [0];
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_lo=$ac_mid; break
1979 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1980 if test $ac_mid -le $ac_hi; then
1984 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 # Binary search between lo and hi bounds.
1995 while test "x$ac_lo" != "x$ac_hi"; do
1996 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 return test_array [0];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2014 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2026 static long int longval () { return $2; }
2027 static unsigned long int ulongval () { return $2; }
2034 FILE *f = fopen ("conftest.val", "w");
2039 long int i = longval ();
2042 fprintf (f, "%ld", i);
2046 unsigned long int i = ulongval ();
2049 fprintf (f, "%lu", i);
2051 /* Do not output a trailing newline, as this causes \r\n confusion
2052 on some platforms. */
2053 return ferror (f) || fclose (f) != 0;
2059 if ac_fn_c_try_run "$LINENO"; then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 as_fn_set_status $ac_retval
2072 } # ac_fn_c_compute_int
2074 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2075 # ---------------------------------------------
2076 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078 ac_fn_c_check_decl ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 as_decl_name=`echo $2|sed 's/ *(.*//'`
2082 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2084 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 #ifndef $as_decl_name
2096 (void) $as_decl_use;
2098 (void) $as_decl_name;
2106 if ac_fn_c_try_compile "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 } # ac_fn_c_check_decl
2120 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121 # -------------------------------------------------------
2122 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123 # the include files in INCLUDES and setting the cache variable VAR
2125 ac_fn_c_check_header_mongrel ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if eval \${$3+:} false; then :
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2138 # Is the header compilable?
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140 $as_echo_n "checking $2 usability... " >&6; }
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_header_compiler=yes
2149 ac_header_compiler=no
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153 $as_echo "$ac_header_compiler" >&6; }
2155 # Is the header present?
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157 $as_echo_n "checking $2 presence... " >&6; }
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 if ac_fn_c_try_cpp "$LINENO"; then :
2163 ac_header_preproc=yes
2165 ac_header_preproc=no
2167 rm -f conftest.err conftest.i conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169 $as_echo "$ac_header_preproc" >&6; }
2171 # So? What about this header?
2172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2183 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2187 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2197 eval "$3=\$ac_header_compiler"
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 } # ac_fn_c_check_header_mongrel
2207 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2208 # -------------------------------------------
2209 # Tests whether TYPE exists after having included INCLUDES, setting cache
2210 # variable VAR accordingly.
2211 ac_fn_c_check_type ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217 $as_echo_n "(cached) " >&6
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_check_type
2260 cat >config.log <<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2264 It was created by libjpeg-turbo $as_me 1.4.2, which was
2265 generated by GNU Autoconf 2.69. Invocation command line was
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 $as_echo "PATH: $as_dir"
2317 # Keep a trace of the command line.
2318 # Strip out --no-create and --no-recursion so they do not pile up.
2319 # Strip out --silent because we don't want to record it for future runs.
2320 # Also quote any args containing shell meta-characters.
2321 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_must_keep_next=false
2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333 | -silent | --silent | --silen | --sile | --sil)
2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2341 as_fn_append ac_configure_args1 " '$ac_arg'"
2342 if test $ac_must_keep_next = true; then
2343 ac_must_keep_next=false # Got value, back to normal.
2346 *=* | --config-cache | -C | -disable-* | --disable-* \
2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349 | -with-* | --with-* | -without-* | --without-* | --x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 -* ) ac_must_keep_next=true ;;
2357 as_fn_append ac_configure_args " '$ac_arg'"
2362 { ac_configure_args0=; unset ac_configure_args0;}
2363 { ac_configure_args1=; unset ac_configure_args1;}
2365 # When interrupted or exit'd, cleanup temporary files, and complete
2366 # config.log. We remove comments because anyway the quotes in there
2367 # would cause problems or look ugly.
2368 # WARNING: Use '\'' to represent an apostrophe within the trap.
2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370 trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2375 $as_echo "## ---------------- ##
2376 ## Cache variables. ##
2377 ## ---------------- ##"
2379 # The following way of writing the cache mishandles newlines in values,
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 $as_echo "## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##"
2415 for ac_var in $ac_subst_vars
2417 eval ac_val=\$$ac_var
2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 $as_echo "$ac_var='\''$ac_val'\''"
2425 if test -n "$ac_subst_files"; then
2426 $as_echo "## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##"
2430 for ac_var in $ac_subst_files
2432 eval ac_val=\$$ac_var
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -s confdefs.h; then
2442 $as_echo "## ----------- ##
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2465 $as_echo "/* confdefs.h */" > confdefs.h
2467 # Predefined preprocessor variables.
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2498 if test -n "$CONFIG_SITE"; then
2499 # We do not want a PATH search for config.site.
2500 case $CONFIG_SITE in #((
2501 -*) ac_site_file1=./$CONFIG_SITE;;
2502 */*) ac_site_file1=$CONFIG_SITE;;
2503 *) ac_site_file1=./$CONFIG_SITE;;
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2514 test "x$ac_site_file" = xNONE && continue
2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2520 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 as_fn_error $? "failed to load site script $ac_site_file
2523 See \`config.log' for more details" "$LINENO" 5; }
2527 if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 # Check that the precious variables saved in the cache have kept the same
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 am__api_version='1.15'
2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617 if test -f "$ac_dir/install-sh"; then
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2621 elif test -f "$ac_dir/install.sh"; then
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2625 elif test -f "$ac_dir/shtool"; then
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 if test -z "$ac_aux_dir"; then
2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Find a good install program. We prefer a C program (faster),
2645 # so one script is as good as another. But avoid the broken or
2646 # incompatible versions:
2647 # SysV /etc/install, /usr/sbin/install
2648 # SunOS /usr/etc/install
2649 # IRIX /sbin/install
2651 # AmigaOS /C/install, which installs bootblocks on floppy discs
2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655 # OS/2's system install, which has a completely different semantic
2656 # ./install, which can be erroneously created by make from ./install.sh.
2657 # Reject install programs that cannot install multiple files.
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2660 if test -z "$INSTALL"; then
2661 if ${ac_cv_path_install+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 # Account for people who put trailing slashes in PATH elements.
2670 case $as_dir/ in #((
2671 ./ | .// | /[cC]/* | \
2672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676 # OSF1 and SCO ODT 3.0 have their own names for install.
2677 # Don't use installbsd from OSF since it installs stuff as root
2679 for ac_prog in ginstall scoinst install; do
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2682 if test $ac_prog = install &&
2683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2686 elif test $ac_prog = install &&
2687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688 # program-specific install script used by HP pwplus--don't use.
2691 rm -rf conftest.one conftest.two conftest.dir
2692 echo one > conftest.one
2693 echo two > conftest.two
2695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2696 test -s conftest.one && test -s conftest.two &&
2697 test -s conftest.dir/conftest.one &&
2698 test -s conftest.dir/conftest.two
2700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2713 rm -rf conftest.one conftest.two conftest.dir
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL=$ac_cv_path_install
2719 # As a last resort, use the slow shell script. Don't cache a
2720 # value for INSTALL within a source directory, because that will
2721 # break other packages using the cache if that directory is
2722 # removed, or if the value is a relative name.
2723 INSTALL=$ac_install_sh
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2727 $as_echo "$INSTALL" >&6; }
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2738 $as_echo_n "checking whether build environment is sane... " >&6; }
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name. Accept space and tab only in the latter.
2744 *[\\\"\#\$\&\'\`$am_lf]*)
2745 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2748 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2749 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752 # Do 'set' in a subshell so we don't clobber the current shell's
2753 # arguments. Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2759 for am_try in 1 2; do
2760 echo "timestamp, slept: $am_has_slept" > conftest.file
2761 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762 if test "$*" = "X"; then
2764 set X `ls -t "$srcdir/configure" conftest.file`
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2776 if test "$2" = conftest.file || test $am_try -eq 2; then
2783 test "$2" = conftest.file
2789 as_fn_error $? "newly created file is older than distributed files!
2790 Check your system clock" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794 # If we didn't sleep, we still need to ensure time stamps of config.status and
2795 # generated files are strictly newer.
2797 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2804 test "$program_prefix" != NONE &&
2805 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE &&
2808 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2809 # Double any \ or $.
2810 # By default was `s,x,x', remove it if useless.
2811 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2812 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2814 # Expand $ac_aux_dir to an absolute path.
2815 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2817 if test x"${MISSING+set}" != xset; then
2820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --is-lightweight"; then
2827 am_missing_run="$MISSING "
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2834 if test x"${install_sh+set}" != xset; then
2837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839 install_sh="\${SHELL} $am_aux_dir/install-sh"
2843 # Installed binaries are usually stripped using 'strip' when the user
2844 # run "make install-strip". However 'strip' might not be the right
2845 # tool to use in cross-compilation environments, therefore Automake
2846 # will honor the 'STRIP' environment variable to overrule this program.
2847 if test "$cross_compiling" != no; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}strip; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_STRIP+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 $as_echo "$STRIP" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_STRIP"; then
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_STRIP="strip"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2917 if test -n "$ac_ct_STRIP"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919 $as_echo "$ac_ct_STRIP" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_STRIP" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2937 STRIP="$ac_cv_prog_STRIP"
2941 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2944 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946 if ${ac_cv_path_mkdir+:} false; then :
2947 $as_echo_n "(cached) " >&6
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2953 test -z "$as_dir" && as_dir=.
2954 for ac_prog in mkdir gmkdir; do
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958 'mkdir (GNU coreutils) '* | \
2959 'mkdir (coreutils) '* | \
2960 'mkdir (fileutils) '4.1*)
2961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2971 test -d ./--version && rmdir ./--version
2972 if test "${ac_cv_path_mkdir+set}" = set; then
2973 MKDIR_P="$ac_cv_path_mkdir -p"
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for MKDIR_P within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 MKDIR_P="$ac_install_sh -d"
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 $as_echo "$MKDIR_P" >&6; }
2985 for ac_prog in gawk mawk nawk awk
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$AWK"; then
2995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_AWK="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$AWK"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$AWK" && break
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3030 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 cat >conftest.make <<\_ACEOF
3037 @echo '@@@%%%=$(MAKE)=@@@%%%'
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3042 eval ac_cv_prog_make_${ac_make}_set=yes;;
3044 eval ac_cv_prog_make_${ac_make}_set=no;;
3048 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 SET_MAKE="MAKE=${MAKE-make}"
3058 rm -rf .tst 2>/dev/null
3059 mkdir .tst 2>/dev/null
3060 if test -d .tst; then
3065 rmdir .tst 2>/dev/null
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069 enableval=$enable_silent_rules;
3072 case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY=0;;
3074 no) AM_DEFAULT_VERBOSITY=1;;
3075 *) AM_DEFAULT_VERBOSITY=1;;
3077 am_make=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if $as_echo 'TRUE=$(BAR$(V))
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090 am_cv_make_support_nested_variables=yes
3092 am_cv_make_support_nested_variables=no
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3101 AM_V=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status; then
3112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118 if (cygpath --version) >/dev/null 2>/dev/null; then
3119 CYGPATH_W='cygpath -w'
3126 # Define the identity of the package.
3127 PACKAGE='libjpeg-turbo'
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE "$PACKAGE"
3136 cat >>confdefs.h <<_ACEOF
3137 #define VERSION "$VERSION"
3140 # Some tools Automake needs.
3142 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3145 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3148 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3151 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3154 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3156 # For better backward compatibility. To be removed once Automake 1.9.x
3157 # dies out for good. For more background, see:
3158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160 mkdir_p='$(MKDIR_P)'
3162 # We need awk for the "check" target (and possibly the TAP driver). The
3163 # system "awk" is bad on some platforms.
3164 # Always define AMTAR for backward compatibility. Yes, it's still used
3165 # in the wild :-( We should find a proper way to deprecate it ...
3169 # We'll loop over all known methods to create a tar archive until one works.
3170 _am_tools='gnutar pax cpio none'
3172 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3179 # POSIX will say in a future version that running "rm -f" with no argument
3180 # is OK; and we want to be able to make that assumption in our Makefile
3181 # recipes. So use an aggressive probe to check that the usage we want is
3182 # actually supported "in the wild" to an acceptable degree.
3183 # See automake bug#10828.
3184 # To make any issue more visible, cause the running configure to be aborted
3185 # by default if the 'rm' program in use doesn't match our expectations; the
3186 # user can still override this though.
3187 if rm -f && rm -fr && rm -rf; then : OK; else
3191 Your 'rm' program seems unable to run without file operands specified
3192 on the command line, even when the '-f' option is present. This is contrary
3193 to the behaviour of most rm programs out there, and not conforming with
3194 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3196 Please tell bug-automake@gnu.org about your system, including the value
3197 of your $PATH and any error possibly output before this message. This
3198 can help us improve future automake versions.
3201 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3202 echo 'Configuration will proceed anyway, since you have set the' >&2
3203 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3207 Aborting the configuration process, to ensure you take notice of the issue.
3209 You can download and install GNU coreutils to get an 'rm' implementation
3210 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3212 If you want to complete the configuration process using your problematic
3213 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3214 to "yes", and re-run configure.
3217 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3223 # Check whether --enable-silent-rules was given.
3224 if test "${enable_silent_rules+set}" = set; then :
3225 enableval=$enable_silent_rules;
3228 case $enable_silent_rules in # (((
3229 yes) AM_DEFAULT_VERBOSITY=0;;
3230 no) AM_DEFAULT_VERBOSITY=1;;
3231 *) AM_DEFAULT_VERBOSITY=0;;
3233 am_make=${MAKE-make}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3235 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3236 if ${am_cv_make_support_nested_variables+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 if $as_echo 'TRUE=$(BAR$(V))
3245 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3246 am_cv_make_support_nested_variables=yes
3248 am_cv_make_support_nested_variables=no
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3252 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3253 if test $am_cv_make_support_nested_variables = yes; then
3255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3257 AM_V=$AM_DEFAULT_VERBOSITY
3258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3263 # Checks for programs.
3264 SAVED_CFLAGS=${CFLAGS}
3265 SAVED_CPPFLAGS=${CPPFLAGS}
3266 DEPDIR="${am__leading_dot}deps"
3268 ac_config_commands="$ac_config_commands depfiles"
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3274 @echo this is the am__doit target
3277 # If we don't find an include directive, just comment out the code.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3279 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # Ignore all kinds of additional output from 'make'.
3286 case `$am_make -s -f confmf 2> /dev/null` in #(
3287 *the\ am__doit\ target*)
3293 # Now try BSD make style include.
3294 if test "$am__include" = "#"; then
3295 echo '.include "confinc"' > confmf
3296 case `$am_make -s -f confmf 2> /dev/null` in #(
3297 *the\ am__doit\ target*)
3298 am__include=.include
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3307 $as_echo "$_am_result" >&6; }
3308 rm -f confinc confmf
3310 # Check whether --enable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then :
3312 enableval=$enable_dependency_tracking;
3315 if test "x$enable_dependency_tracking" != xno; then
3316 am_depcomp="$ac_aux_dir/depcomp"
3320 if test "x$enable_dependency_tracking" != xno; then
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3373 if test -z "$ac_cv_prog_CC"; then
3375 # Extract the first word of "gcc", so it can be a program name with args.
3376 set dummy gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_CC="gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3411 if test "x$ac_ct_CC" = x; then
3414 case $cross_compiling:$ac_tool_warned in
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3426 if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC="${ac_tool_prefix}cc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3467 if test -z "$CC"; then
3468 # Extract the first word of "cc", so it can be a program name with args.
3469 set dummy cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3487 ac_prog_rejected=yes
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test $ac_prog_rejected = yes; then
3499 # We found a bogon in the path, so make sure we never use it.
3500 set dummy $ac_cv_prog_CC
3502 if test $# != 0; then
3503 # We chose a different compiler from the bogus one.
3504 # However, it has the same basename, so the bogon will be chosen
3505 # first if we set CC to just the basename; use the full file name.
3507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3513 if test -n "$CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3523 if test -z "$CC"; then
3524 if test -n "$ac_tool_prefix"; then
3525 for ac_prog in cl.exe
3527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_CC+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 if test -n "$CC"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3564 test -n "$CC" && break
3567 if test -z "$CC"; then
3569 for ac_prog in cl.exe
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 if test -n "$ac_ct_CC"; then
3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_ac_ct_CC="$ac_prog"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599 if test -n "$ac_ct_CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3601 $as_echo "$ac_ct_CC" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3608 test -n "$ac_ct_CC" && break
3611 if test "x$ac_ct_CC" = x; then
3614 case $cross_compiling:$ac_tool_warned in
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3627 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "no acceptable C compiler found in \$PATH
3630 See \`config.log' for more details" "$LINENO" 5; }
3632 # Provide some information about the compiler.
3633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3636 for ac_option in --version -v -V -qversion; do
3637 { { ac_try="$ac_compiler $ac_option >&5"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646 if test -s conftest.err; then
3648 ... rest of stderr output deleted ...
3649 10q' conftest.err >conftest.er1
3650 cat conftest.er1 >&5
3652 rm -f conftest.er1 conftest.err
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 ac_clean_files_save=$ac_clean_files
3669 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3670 # Try to create an executable without -o first, disregard a.out.
3671 # It will help us diagnose broken compilers, and finding out an intuition
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3674 $as_echo_n "checking whether the C compiler works... " >&6; }
3675 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3677 # The possible output files:
3678 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3681 for ac_file in $ac_files
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3690 if { { ac_try="$ac_link_default"
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_link_default") 2>&5
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3703 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3704 # so that the user can short-circuit this test for compilers unknown to
3706 for ac_file in $ac_files ''
3708 test -f "$ac_file" || continue
3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3713 # We found the default executable, but exeext='' is most
3717 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3719 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 # We set ac_cv_exeext here because the later test for it is not
3722 # safe: cross compilers may not add the suffix if given an `-o'
3723 # argument, so we may need to know it at that point already.
3724 # Even if this section looks crufty: it has the advantage of
3731 test "$ac_cv_exeext" = no && ac_cv_exeext=
3736 if test -z "$ac_file"; then :
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error 77 "C compiler cannot create executables
3745 See \`config.log' for more details" "$LINENO" 5; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3748 $as_echo "yes" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3751 $as_echo_n "checking for C compiler default output file name... " >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3753 $as_echo "$ac_file" >&6; }
3754 ac_exeext=$ac_cv_exeext
3756 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3757 ac_clean_files=$ac_clean_files_save
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3759 $as_echo_n "checking for suffix of executables... " >&6; }
3760 if { { ac_try="$ac_link"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_link") 2>&5
3769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770 test $ac_status = 0; }; then :
3771 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3772 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3773 # work properly (i.e., refer to `conftest.exe'), while it won't with
3775 for ac_file in conftest.exe conftest conftest.*; do
3776 test -f "$ac_file" || continue
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3788 See \`config.log' for more details" "$LINENO" 5; }
3790 rm -f conftest conftest$ac_cv_exeext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3792 $as_echo "$ac_cv_exeext" >&6; }
3794 rm -f conftest.$ac_ext
3795 EXEEXT=$ac_cv_exeext
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3803 FILE *f = fopen ("conftest.out", "w");
3804 return ferror (f) || fclose (f) != 0;
3810 ac_clean_files="$ac_clean_files conftest.out"
3811 # Check that the compiler produces executables we can run. If not, either
3812 # the compiler is broken, or we cross compile.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3814 $as_echo_n "checking whether we are cross compiling... " >&6; }
3815 if test "$cross_compiling" != yes; then
3816 { { ac_try="$ac_link"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }
3827 if { ac_try='./conftest$ac_cv_exeext'
3828 { { case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_try") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; }; then
3840 if test "$cross_compiling" = maybe; then
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot run C compiled programs.
3846 If you meant to cross compile, use \`--host'.
3847 See \`config.log' for more details" "$LINENO" 5; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3852 $as_echo "$cross_compiling" >&6; }
3854 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3855 ac_clean_files=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857 $as_echo_n "checking for suffix of object files... " >&6; }
3858 if ${ac_cv_objext+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 rm -f conftest.o conftest.obj
3873 if { { ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_compile") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 for ac_file in conftest.o conftest.obj conftest.*; do
3885 test -f "$ac_file" || continue;
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3893 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of object files: cannot compile
3899 See \`config.log' for more details" "$LINENO" 5; }
3901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3904 $as_echo "$ac_cv_objext" >&6; }
3905 OBJEXT=$ac_cv_objext
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909 if ${ac_cv_c_compiler_gnu+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3936 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then
3942 ac_test_CFLAGS=${CFLAGS+set}
3943 ac_save_CFLAGS=$CFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3945 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3946 if ${ac_cv_prog_cc_g+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 ac_save_c_werror_flag=$ac_c_werror_flag
3950 ac_c_werror_flag=yes
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3979 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 if ac_fn_c_try_compile "$LINENO"; then :
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4006 $as_echo "$ac_cv_prog_cc_g" >&6; }
4007 if test "$ac_test_CFLAGS" = set; then
4008 CFLAGS=$ac_save_CFLAGS
4009 elif test $ac_cv_prog_cc_g = yes; then
4010 if test "$GCC" = yes; then
4016 if test "$GCC" = yes; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4023 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024 if ${ac_cv_prog_cc_c89+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 ac_cv_prog_cc_c89=no
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4035 struct buf { int x; };
4036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4037 static char *e (p, i)
4043 static char *f (char * (*g) (char **, int), char **p, ...)
4048 s = g (p, va_arg (v,int));
4053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4054 function prototypes and stuff, but not '\xHH' hex character constants.
4055 These don't provoke an error unfortunately, instead are silently treated
4056 as 'x'. The following induces an error, until -std is added to get
4057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4058 array size at least. It's necessary to write '\x00'==0 to get something
4059 that's true only with -std. */
4060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4063 inside strings and character constants. */
4065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4084 CC="$ac_save_CC $ac_arg"
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_c89=$ac_arg
4088 rm -f core conftest.err conftest.$ac_objext
4089 test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 rm -f conftest.$ac_ext
4096 case "x$ac_cv_prog_cc_c89" in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4099 $as_echo "none needed" >&6; } ;;
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4102 $as_echo "unsupported" >&6; } ;;
4104 CC="$CC $ac_cv_prog_cc_c89"
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4106 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 if test "x$ac_cv_prog_cc_c89" != xno; then :
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4124 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4125 if ${am_cv_prog_cc_c_o+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 # Make sure it works both with $CC and with simple cc.
4140 # Following AC_PROG_CC_C_O, we do the test twice because some
4141 # compilers refuse to overwrite an existing .o file with -o,
4142 # though they will create one.
4143 am_cv_prog_cc_c_o=yes
4145 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4146 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } \
4150 && test -f conftest2.$ac_objext; then
4153 am_cv_prog_cc_c_o=no
4157 rm -f core conftest*
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4161 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4162 if test "$am_cv_prog_cc_c_o" != yes; then
4163 # Losing compiler, so override with the script.
4164 # FIXME: It is wrong to rewrite CC.
4165 # But if we don't then we get into trouble of one sort or another.
4166 # A longer-term fix would be to have automake use am__CC in this case,
4167 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4168 CC="$am_aux_dir/compile $CC"
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 depcc="$CC" am_compiler_list=
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185 # We make a subdir and do the tests there. Otherwise we can end up
4186 # making bogus files that we don't know about and never remove. For
4187 # instance it was reported that on HP-UX the gcc test will end up
4188 # making a dummy file named 'D' -- because '-MD' means "put the output
4192 # Copy depcomp to subdir because otherwise we won't find it if we're
4193 # using a relative directory.
4194 cp "$am_depcomp" conftest.dir
4196 # We will build objects and dependencies in a subdirectory because
4197 # it helps to detect inapplicable dependency modes. For instance
4198 # both Tru64's cc and ICC support -MD to output dependencies as a
4199 # side effect of compilation, but ICC will put the dependencies in
4200 # the current directory while Tru64 will put them in the object
4204 am_cv_CC_dependencies_compiler_type=none
4205 if test "$am_compiler_list" = ""; then
4206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4209 case " $depcc " in #(
4210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4213 for depmode in $am_compiler_list; do
4214 # Setup a source with many dependencies, because some compilers
4215 # like to wrap large dependency lists on column 80 (with \), and
4216 # we should not choose a depcomp mode which is confused by this.
4218 # We need to recreate these files for each test, as the compiler may
4219 # overwrite some of them when testing with obscure command lines.
4220 # This happens at least with the AIX C compiler.
4222 for i in 1 2 3 4 5 6; do
4223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4225 # Solaris 10 /bin/sh.
4226 echo '/* dummy */' > sub/conftst$i.h
4228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4231 # mode. It turns out that the SunPro C++ compiler does not properly
4232 # handle '-M -o', and we need to detect this. Also, some Intel
4233 # versions had trouble with output in subdirs.
4234 am__obj=sub/conftest.${OBJEXT-o}
4235 am__minus_obj="-o $am__obj"
4238 # This depmode causes a compiler race in universal mode.
4239 test "$am__universal" = false || continue
4242 # After this tag, mechanisms are not by side-effect, so they'll
4243 # only be used when explicitly requested.
4244 if test "x$enable_dependency_tracking" = xyes; then
4250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4251 # This compiler won't grok '-c -o', but also, the minuso test has
4252 # not run yet. These depmodes are late enough in the game, and
4253 # so weak that their functioning should not be impacted.
4254 am__obj=conftest.${OBJEXT-o}
4259 if depmode=$depmode \
4260 source=sub/conftest.c object=$am__obj \
4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4263 >/dev/null 2>conftest.err &&
4264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4268 # icc doesn't choke on unknown options, it will just issue warnings
4269 # or remarks (even with -Werror). So we grep stderr for any message
4270 # that says an option was ignored or not supported.
4271 # When given -MP, icc 7.0 and 7.1 complain thusly:
4272 # icc: Command line warning: ignoring option '-M'; no argument required
4273 # The diagnosis changed in icc 8.0:
4274 # icc: Command line remark: option '-MP' not supported
4275 if (grep 'ignoring option' conftest.err ||
4276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4277 am_cv_CC_dependencies_compiler_type=$depmode
4286 am_cv_CC_dependencies_compiler_type=none
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4291 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4292 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4295 test "x$enable_dependency_tracking" != xno \
4296 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCC_FALSE='#'
4300 am__fastdepCC_TRUE='#'
4301 am__fastdepCC_FALSE=
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4316 if test -z "$CPP"; then
4317 if ${ac_cv_prog_CPP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 # Double quotes because CPP needs to be expanded
4321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4324 for ac_c_preproc_warn_flag in '' yes
4326 # Use a header file that comes with gcc, so configuring glibc
4327 # with a fresh cross-compiler works.
4328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 # <limits.h> exists even on freestanding compilers.
4330 # On the NeXT, cc -E runs the code through the compiler's parser,
4331 # not just through cpp. "Syntax error" is here to catch this case.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4335 # include <limits.h>
4337 # include <assert.h>
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4344 # Broken: fails on valid input.
4347 rm -f conftest.err conftest.i conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #include <ac_nonexistent.h>
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356 # Broken: success on invalid input.
4359 # Passes both tests.
4363 rm -f conftest.err conftest.i conftest.$ac_ext
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.i conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then :
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4381 $as_echo "$CPP" >&6; }
4383 for ac_c_preproc_warn_flag in '' yes
4385 # Use a header file that comes with gcc, so configuring glibc
4386 # with a fresh cross-compiler works.
4387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388 # <limits.h> exists even on freestanding compilers.
4389 # On the NeXT, cc -E runs the code through the compiler's parser,
4390 # not just through cpp. "Syntax error" is here to catch this case.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4394 # include <limits.h>
4396 # include <assert.h>
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4403 # Broken: fails on valid input.
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4408 # OK, works on sane cases. Now check whether nonexistent headers
4409 # can be detected and how.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415 # Broken: success on invalid input.
4418 # Passes both tests.
4422 rm -f conftest.err conftest.i conftest.$ac_ext
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.i conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then :
4430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4433 See \`config.log' for more details" "$LINENO" 5; }
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test -z "$ac_cv_prog_CC"; then
4488 # Extract the first word of "gcc", so it can be a program name with args.
4489 set dummy gcc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_ac_ct_CC="gcc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4518 $as_echo "$ac_ct_CC" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4524 if test "x$ac_ct_CC" = x; then
4527 case $cross_compiling:$ac_tool_warned in
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4539 if test -z "$CC"; then
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_CC+:} false; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_CC="${ac_tool_prefix}cc"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4580 if test -z "$CC"; then
4581 # Extract the first word of "cc", so it can be a program name with args.
4582 set dummy cc; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600 ac_prog_rejected=yes
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 if test $ac_prog_rejected = yes; then
4612 # We found a bogon in the path, so make sure we never use it.
4613 set dummy $ac_cv_prog_CC
4615 if test $# != 0; then
4616 # We chose a different compiler from the bogus one.
4617 # However, it has the same basename, so the bogon will be chosen
4618 # first if we set CC to just the basename; use the full file name.
4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4636 if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in cl.exe
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_CC+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$CC"; then
4648 ac_cv_prog_CC="$CC" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 if test -n "$CC"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$CC" && break
4680 if test -z "$CC"; then
4682 for ac_prog in cl.exe
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_ac_ct_CC="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 $as_echo "$ac_ct_CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$ac_ct_CC" && break
4724 if test "x$ac_ct_CC" = x; then
4727 case $cross_compiling:$ac_tool_warned in
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "no acceptable C compiler found in \$PATH
4743 See \`config.log' for more details" "$LINENO" 5; }
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4749 for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 if test -s conftest.err; then
4761 ... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
4765 rm -f conftest.er1 conftest.err
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4772 if ${ac_cv_c_compiler_gnu+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4789 if ac_fn_c_try_compile "$LINENO"; then :
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4799 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4800 if test $ac_compiler_gnu = yes; then
4805 ac_test_CFLAGS=${CFLAGS+set}
4806 ac_save_CFLAGS=$CFLAGS
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4808 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4809 if ${ac_cv_prog_cc_g+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 ac_save_c_werror_flag=$ac_c_werror_flag
4813 ac_c_werror_flag=yes
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4842 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_c_werror_flag=$ac_save_c_werror_flag
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4858 if ac_fn_c_try_compile "$LINENO"; then :
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 ac_c_werror_flag=$ac_save_c_werror_flag
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869 $as_echo "$ac_cv_prog_cc_g" >&6; }
4870 if test "$ac_test_CFLAGS" = set; then
4871 CFLAGS=$ac_save_CFLAGS
4872 elif test $ac_cv_prog_cc_g = yes; then
4873 if test "$GCC" = yes; then
4879 if test "$GCC" = yes; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4886 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4887 if ${ac_cv_prog_cc_c89+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 ac_cv_prog_cc_c89=no
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4898 struct buf { int x; };
4899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4900 static char *e (p, i)
4906 static char *f (char * (*g) (char **, int), char **p, ...)
4911 s = g (p, va_arg (v,int));
4916 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4917 function prototypes and stuff, but not '\xHH' hex character constants.
4918 These don't provoke an error unfortunately, instead are silently treated
4919 as 'x'. The following induces an error, until -std is added to get
4920 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4921 array size at least. It's necessary to write '\x00'==0 to get something
4922 that's true only with -std. */
4923 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4925 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4926 inside strings and character constants. */
4928 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4930 int test (int i, double x);
4931 struct s1 {int (*f) (int a);};
4932 struct s2 {int (*f) (double a);};
4933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4939 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4945 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4947 CC="$ac_save_CC $ac_arg"
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_cv_prog_cc_c89=$ac_arg
4951 rm -f core conftest.err conftest.$ac_objext
4952 test "x$ac_cv_prog_cc_c89" != "xno" && break
4954 rm -f conftest.$ac_ext
4959 case "x$ac_cv_prog_cc_c89" in
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4962 $as_echo "none needed" >&6; } ;;
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4965 $as_echo "unsupported" >&6; } ;;
4967 CC="$CC $ac_cv_prog_cc_c89"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4971 if test "x$ac_cv_prog_cc_c89" != xno; then :
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4987 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4988 if ${am_cv_prog_cc_c_o+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
5002 # Make sure it works both with $CC and with simple cc.
5003 # Following AC_PROG_CC_C_O, we do the test twice because some
5004 # compilers refuse to overwrite an existing .o file with -o,
5005 # though they will create one.
5006 am_cv_prog_cc_c_o=yes
5008 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5009 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } \
5013 && test -f conftest2.$ac_objext; then
5016 am_cv_prog_cc_c_o=no
5020 rm -f core conftest*
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5024 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5025 if test "$am_cv_prog_cc_c_o" != yes; then
5026 # Losing compiler, so override with the script.
5027 # FIXME: It is wrong to rewrite CC.
5028 # But if we don't then we get into trouble of one sort or another.
5029 # A longer-term fix would be to have automake use am__CC in this case,
5030 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5031 CC="$am_aux_dir/compile $CC"
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 depcc="$CC" am_compiler_list=
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5043 $as_echo_n "checking dependency style of $depcc... " >&6; }
5044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5048 # We make a subdir and do the tests there. Otherwise we can end up
5049 # making bogus files that we don't know about and never remove. For
5050 # instance it was reported that on HP-UX the gcc test will end up
5051 # making a dummy file named 'D' -- because '-MD' means "put the output
5055 # Copy depcomp to subdir because otherwise we won't find it if we're
5056 # using a relative directory.
5057 cp "$am_depcomp" conftest.dir
5059 # We will build objects and dependencies in a subdirectory because
5060 # it helps to detect inapplicable dependency modes. For instance
5061 # both Tru64's cc and ICC support -MD to output dependencies as a
5062 # side effect of compilation, but ICC will put the dependencies in
5063 # the current directory while Tru64 will put them in the object
5067 am_cv_CC_dependencies_compiler_type=none
5068 if test "$am_compiler_list" = ""; then
5069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5072 case " $depcc " in #(
5073 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5076 for depmode in $am_compiler_list; do
5077 # Setup a source with many dependencies, because some compilers
5078 # like to wrap large dependency lists on column 80 (with \), and
5079 # we should not choose a depcomp mode which is confused by this.
5081 # We need to recreate these files for each test, as the compiler may
5082 # overwrite some of them when testing with obscure command lines.
5083 # This happens at least with the AIX C compiler.
5085 for i in 1 2 3 4 5 6; do
5086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5087 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5088 # Solaris 10 /bin/sh.
5089 echo '/* dummy */' > sub/conftst$i.h
5091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5093 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5094 # mode. It turns out that the SunPro C++ compiler does not properly
5095 # handle '-M -o', and we need to detect this. Also, some Intel
5096 # versions had trouble with output in subdirs.
5097 am__obj=sub/conftest.${OBJEXT-o}
5098 am__minus_obj="-o $am__obj"
5101 # This depmode causes a compiler race in universal mode.
5102 test "$am__universal" = false || continue
5105 # After this tag, mechanisms are not by side-effect, so they'll
5106 # only be used when explicitly requested.
5107 if test "x$enable_dependency_tracking" = xyes; then
5113 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5114 # This compiler won't grok '-c -o', but also, the minuso test has
5115 # not run yet. These depmodes are late enough in the game, and
5116 # so weak that their functioning should not be impacted.
5117 am__obj=conftest.${OBJEXT-o}
5122 if depmode=$depmode \
5123 source=sub/conftest.c object=$am__obj \
5124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5125 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5126 >/dev/null 2>conftest.err &&
5127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5129 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5131 # icc doesn't choke on unknown options, it will just issue warnings
5132 # or remarks (even with -Werror). So we grep stderr for any message
5133 # that says an option was ignored or not supported.
5134 # When given -MP, icc 7.0 and 7.1 complain thusly:
5135 # icc: Command line warning: ignoring option '-M'; no argument required
5136 # The diagnosis changed in icc 8.0:
5137 # icc: Command line remark: option '-MP' not supported
5138 if (grep 'ignoring option' conftest.err ||
5139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5140 am_cv_CC_dependencies_compiler_type=$depmode
5149 am_cv_CC_dependencies_compiler_type=none
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5158 test "x$enable_dependency_tracking" != xno \
5159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5161 am__fastdepCC_FALSE='#'
5163 am__fastdepCC_TRUE='#'
5164 am__fastdepCC_FALSE=
5169 if test -n "$ac_tool_prefix"; then
5170 for ac_prog in ar lib "link -lib"
5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_AR+:} false; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$AR"; then
5180 ac_cv_prog_AR="$AR" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 if test -n "$AR"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5202 $as_echo "$AR" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 test -n "$AR" && break
5212 if test -z "$AR"; then
5214 for ac_prog in ar lib "link -lib"
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$ac_ct_AR"; then
5224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ac_ct_AR="$ac_prog"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5244 if test -n "$ac_ct_AR"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5246 $as_echo "$ac_ct_AR" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 test -n "$ac_ct_AR" && break
5256 if test "x$ac_ct_AR" = x; then
5259 case $cross_compiling:$ac_tool_warned in
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5272 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5273 if ${am_cv_ar_interface+:} false; then :
5274 $as_echo_n "(cached) " >&6
5277 ac_cpp='$CPP $CPPFLAGS'
5278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282 am_cv_ar_interface=ar
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 int some_variable = 0;
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5290 (eval $am_ar_try) 2>&5
5292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5293 test $ac_status = 0; }
5294 if test "$ac_status" -eq 0; then
5295 am_cv_ar_interface=ar
5297 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5299 (eval $am_ar_try) 2>&5
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }
5303 if test "$ac_status" -eq 0; then
5304 am_cv_ar_interface=lib
5306 am_cv_ar_interface=unknown
5309 rm -f conftest.lib libconftest.a
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5321 $as_echo "$am_cv_ar_interface" >&6; }
5323 case $am_cv_ar_interface in
5327 # Microsoft lib, so override with the ar-lib wrapper script.
5328 # FIXME: It is wrong to rewrite AR.
5329 # But if we don't then we get into trouble of one sort or another.
5330 # A longer-term fix would be to have automake use am__AR in this case,
5331 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5333 AR="$am_aux_dir/ar-lib $AR"
5336 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5340 # By default we simply use the C compiler to build assembly code.
5342 test "${CCAS+set}" = set || CCAS=$CC
5343 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5347 depcc="$CCAS" am_compiler_list=
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5350 $as_echo_n "checking dependency style of $depcc... " >&6; }
5351 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5355 # We make a subdir and do the tests there. Otherwise we can end up
5356 # making bogus files that we don't know about and never remove. For
5357 # instance it was reported that on HP-UX the gcc test will end up
5358 # making a dummy file named 'D' -- because '-MD' means "put the output
5362 # Copy depcomp to subdir because otherwise we won't find it if we're
5363 # using a relative directory.
5364 cp "$am_depcomp" conftest.dir
5366 # We will build objects and dependencies in a subdirectory because
5367 # it helps to detect inapplicable dependency modes. For instance
5368 # both Tru64's cc and ICC support -MD to output dependencies as a
5369 # side effect of compilation, but ICC will put the dependencies in
5370 # the current directory while Tru64 will put them in the object
5374 am_cv_CCAS_dependencies_compiler_type=none
5375 if test "$am_compiler_list" = ""; then
5376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5381 for depmode in $am_compiler_list; do
5382 # Setup a source with many dependencies, because some compilers
5383 # like to wrap large dependency lists on column 80 (with \), and
5384 # we should not choose a depcomp mode which is confused by this.
5386 # We need to recreate these files for each test, as the compiler may
5387 # overwrite some of them when testing with obscure command lines.
5388 # This happens at least with the AIX C compiler.
5390 for i in 1 2 3 4 5 6; do
5391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5392 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5393 # Solaris 10 /bin/sh.
5394 echo '/* dummy */' > sub/conftst$i.h
5396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5398 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5399 # mode. It turns out that the SunPro C++ compiler does not properly
5400 # handle '-M -o', and we need to detect this. Also, some Intel
5401 # versions had trouble with output in subdirs.
5402 am__obj=sub/conftest.${OBJEXT-o}
5403 am__minus_obj="-o $am__obj"
5406 # This depmode causes a compiler race in universal mode.
5407 test "$am__universal" = false || continue
5410 # After this tag, mechanisms are not by side-effect, so they'll
5411 # only be used when explicitly requested.
5412 if test "x$enable_dependency_tracking" = xyes; then
5418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5419 # This compiler won't grok '-c -o', but also, the minuso test has
5420 # not run yet. These depmodes are late enough in the game, and
5421 # so weak that their functioning should not be impacted.
5422 am__obj=conftest.${OBJEXT-o}
5427 if depmode=$depmode \
5428 source=sub/conftest.c object=$am__obj \
5429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5431 >/dev/null 2>conftest.err &&
5432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5436 # icc doesn't choke on unknown options, it will just issue warnings
5437 # or remarks (even with -Werror). So we grep stderr for any message
5438 # that says an option was ignored or not supported.
5439 # When given -MP, icc 7.0 and 7.1 complain thusly:
5440 # icc: Command line warning: ignoring option '-M'; no argument required
5441 # The diagnosis changed in icc 8.0:
5442 # icc: Command line remark: option '-MP' not supported
5443 if (grep 'ignoring option' conftest.err ||
5444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5445 am_cv_CCAS_dependencies_compiler_type=$depmode
5454 am_cv_CCAS_dependencies_compiler_type=none
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5459 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5460 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5463 test "x$enable_dependency_tracking" != xno \
5464 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5465 am__fastdepCCAS_TRUE=
5466 am__fastdepCCAS_FALSE='#'
5468 am__fastdepCCAS_TRUE='#'
5469 am__fastdepCCAS_FALSE=
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5478 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5483 macro_version='2.4.6'
5484 macro_revision='2.4.6'
5498 ltmain=$ac_aux_dir/ltmain.sh
5500 # Make sure we can run config.sub.
5501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5502 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5505 $as_echo_n "checking build system type... " >&6; }
5506 if ${ac_cv_build+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 ac_build_alias=$build_alias
5510 test "x$ac_build_alias" = x &&
5511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5512 test "x$ac_build_alias" = x &&
5513 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5514 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5519 $as_echo "$ac_cv_build" >&6; }
5520 case $ac_cv_build in
5522 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5525 ac_save_IFS=$IFS; IFS='-'
5531 # Remember, the first character of IFS is used to create $*,
5532 # except with old shells:
5535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5539 $as_echo_n "checking host system type... " >&6; }
5540 if ${ac_cv_host+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 if test "x$host_alias" = x; then
5544 ac_cv_host=$ac_cv_build
5546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5547 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5552 $as_echo "$ac_cv_host" >&6; }
5555 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5558 ac_save_IFS=$IFS; IFS='-'
5564 # Remember, the first character of IFS is used to create $*,
5565 # except with old shells:
5568 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5571 # Backslashify metacharacters that are still active within
5572 # double-quoted strings.
5573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5575 # Same as above, but do not quote variable references.
5576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5578 # Sed substitution to delay expansion of an escaped shell variable in a
5579 # double_quote_subst'ed string.
5580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5582 # Sed substitution to delay expansion of an escaped single quote.
5583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5585 # Sed substitution to avoid accidental globbing in evaled expressions
5586 no_glob_subst='s/\*/\\\*/g'
5588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5593 $as_echo_n "checking how to print strings... " >&6; }
5594 # Test print first, because it will be a builtin if present.
5595 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 # Use this function as a fallback that always works.
5602 func_fallback_echo ()
5604 eval 'cat <<_LTECHO_EOF
5608 ECHO='func_fallback_echo'
5611 # func_echo_all arg...
5612 # Invoke $ECHO with all args, space-separated.
5619 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5620 $as_echo "printf" >&6; } ;;
5621 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5622 $as_echo "print -r" >&6; } ;;
5623 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5624 $as_echo "cat" >&6; } ;;
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5642 if ${ac_cv_path_SED+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5646 for ac_i in 1 2 3 4 5 6 7; do
5647 ac_script="$ac_script$as_nl$ac_script"
5649 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5650 { ac_script=; unset ac_script;}
5651 if test -z "$SED"; then
5652 ac_path_SED_found=false
5653 # Loop through the user's path and test for each of PROGNAME-LIST
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_prog in sed gsed; do
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5662 as_fn_executable_p "$ac_path_SED" || continue
5663 # Check for GNU ac_path_SED and select it if it is found.
5664 # Check for GNU $ac_path_SED
5665 case `"$ac_path_SED" --version 2>&1` in
5667 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5670 $as_echo_n 0123456789 >"conftest.in"
5673 cat "conftest.in" "conftest.in" >"conftest.tmp"
5674 mv "conftest.tmp" "conftest.in"
5675 cp "conftest.in" "conftest.nl"
5676 $as_echo '' >> "conftest.nl"
5677 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679 as_fn_arith $ac_count + 1 && ac_count=$as_val
5680 if test $ac_count -gt ${ac_path_SED_max-0}; then
5681 # Best one so far, save it but keep looking for a better one
5682 ac_cv_path_SED="$ac_path_SED"
5683 ac_path_SED_max=$ac_count
5685 # 10*(2^10) chars as input seems more than enough
5686 test $ac_count -gt 10 && break
5688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5691 $ac_path_SED_found && break 3
5696 if test -z "$ac_cv_path_SED"; then
5697 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5705 $as_echo "$ac_cv_path_SED" >&6; }
5706 SED="$ac_cv_path_SED"
5709 test -z "$SED" && SED=sed
5710 Xsed="$SED -e 1s/^X//"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5724 if ${ac_cv_path_GREP+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -z "$GREP"; then
5728 ac_path_GREP_found=false
5729 # Loop through the user's path and test for each of PROGNAME-LIST
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5734 test -z "$as_dir" && as_dir=.
5735 for ac_prog in grep ggrep; do
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5738 as_fn_executable_p "$ac_path_GREP" || continue
5739 # Check for GNU ac_path_GREP and select it if it is found.
5740 # Check for GNU $ac_path_GREP
5741 case `"$ac_path_GREP" --version 2>&1` in
5743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5746 $as_echo_n 0123456789 >"conftest.in"
5749 cat "conftest.in" "conftest.in" >"conftest.tmp"
5750 mv "conftest.tmp" "conftest.in"
5751 cp "conftest.in" "conftest.nl"
5752 $as_echo 'GREP' >> "conftest.nl"
5753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5755 as_fn_arith $ac_count + 1 && ac_count=$as_val
5756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5757 # Best one so far, save it but keep looking for a better one
5758 ac_cv_path_GREP="$ac_path_GREP"
5759 ac_path_GREP_max=$ac_count
5761 # 10*(2^10) chars as input seems more than enough
5762 test $ac_count -gt 10 && break
5764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5767 $ac_path_GREP_found && break 3
5772 if test -z "$ac_cv_path_GREP"; then
5773 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5776 ac_cv_path_GREP=$GREP
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5781 $as_echo "$ac_cv_path_GREP" >&6; }
5782 GREP="$ac_cv_path_GREP"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5786 $as_echo_n "checking for egrep... " >&6; }
5787 if ${ac_cv_path_EGREP+:} false; then :
5788 $as_echo_n "(cached) " >&6
5790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5791 then ac_cv_path_EGREP="$GREP -E"
5793 if test -z "$EGREP"; then
5794 ac_path_EGREP_found=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5800 test -z "$as_dir" && as_dir=.
5801 for ac_prog in egrep; do
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5804 as_fn_executable_p "$ac_path_EGREP" || continue
5805 # Check for GNU ac_path_EGREP and select it if it is found.
5806 # Check for GNU $ac_path_EGREP
5807 case `"$ac_path_EGREP" --version 2>&1` in
5809 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5812 $as_echo_n 0123456789 >"conftest.in"
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo 'EGREP' >> "conftest.nl"
5819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_EGREP="$ac_path_EGREP"
5825 ac_path_EGREP_max=$ac_count
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5833 $ac_path_EGREP_found && break 3
5838 if test -z "$ac_cv_path_EGREP"; then
5839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5842 ac_cv_path_EGREP=$EGREP
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5848 $as_echo "$ac_cv_path_EGREP" >&6; }
5849 EGREP="$ac_cv_path_EGREP"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5853 $as_echo_n "checking for fgrep... " >&6; }
5854 if ${ac_cv_path_FGREP+:} false; then :
5855 $as_echo_n "(cached) " >&6
5857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5858 then ac_cv_path_FGREP="$GREP -F"
5860 if test -z "$FGREP"; then
5861 ac_path_FGREP_found=false
5862 # Loop through the user's path and test for each of PROGNAME-LIST
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867 test -z "$as_dir" && as_dir=.
5868 for ac_prog in fgrep; do
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5871 as_fn_executable_p "$ac_path_FGREP" || continue
5872 # Check for GNU ac_path_FGREP and select it if it is found.
5873 # Check for GNU $ac_path_FGREP
5874 case `"$ac_path_FGREP" --version 2>&1` in
5876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5879 $as_echo_n 0123456789 >"conftest.in"
5882 cat "conftest.in" "conftest.in" >"conftest.tmp"
5883 mv "conftest.tmp" "conftest.in"
5884 cp "conftest.in" "conftest.nl"
5885 $as_echo 'FGREP' >> "conftest.nl"
5886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5888 as_fn_arith $ac_count + 1 && ac_count=$as_val
5889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5890 # Best one so far, save it but keep looking for a better one
5891 ac_cv_path_FGREP="$ac_path_FGREP"
5892 ac_path_FGREP_max=$ac_count
5894 # 10*(2^10) chars as input seems more than enough
5895 test $ac_count -gt 10 && break
5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900 $ac_path_FGREP_found && break 3
5905 if test -z "$ac_cv_path_FGREP"; then
5906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5909 ac_cv_path_FGREP=$FGREP
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5915 $as_echo "$ac_cv_path_FGREP" >&6; }
5916 FGREP="$ac_cv_path_FGREP"
5919 test -z "$GREP" && GREP=grep
5939 # Check whether --with-gnu-ld was given.
5940 if test "${with_gnu_ld+set}" = set; then :
5941 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5947 if test yes = "$GCC"; then
5948 # Check if gcc -print-prog-name=ld gives a path.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5950 $as_echo_n "checking for ld used by $CC... " >&6; }
5953 # gcc leaves a trailing carriage return, which upsets mingw
5954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5959 # Accept absolute paths.
5961 re_direlt='/[^/][^/]*/\.\./'
5962 # Canonicalize the pathname of ld
5963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5967 test -z "$LD" && LD=$ac_prog
5970 # If it fails, then pretend we aren't using GCC.
5974 # If it is relative, then search for the first ld in PATH.
5978 elif test yes = "$with_gnu_ld"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5980 $as_echo_n "checking for GNU ld... " >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5983 $as_echo_n "checking for non-GNU ld... " >&6; }
5985 if ${lt_cv_path_LD+:} false; then :
5986 $as_echo_n "(cached) " >&6
5988 if test -z "$LD"; then
5989 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5990 for ac_dir in $PATH; do
5992 test -z "$ac_dir" && ac_dir=.
5993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994 lt_cv_path_LD=$ac_dir/$ac_prog
5995 # Check to see if the program is GNU ld. I'd rather use --version,
5996 # but apparently some variants of GNU ld only accept -v.
5997 # Break only if it was the GNU/non-GNU ld that we prefer.
5998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5999 *GNU* | *'with BFD'*)
6000 test no != "$with_gnu_ld" && break
6003 test yes != "$with_gnu_ld" && break
6010 lt_cv_path_LD=$LD # Let the user override the test with a path.
6015 if test -n "$LD"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6017 $as_echo "$LD" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6022 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6025 if ${lt_cv_prog_gnu_ld+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6029 case `$LD -v 2>&1 </dev/null` in
6030 *GNU* | *'with BFD'*)
6031 lt_cv_prog_gnu_ld=yes
6034 lt_cv_prog_gnu_ld=no
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6040 with_gnu_ld=$lt_cv_prog_gnu_ld
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6052 if ${lt_cv_path_NM+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$NM"; then
6056 # Let the user override the test.
6059 lt_nm_to_check=${ac_tool_prefix}nm
6060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6061 lt_nm_to_check="$lt_nm_to_check nm"
6063 for lt_tmp_nm in $lt_nm_to_check; do
6064 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6067 test -z "$ac_dir" && ac_dir=.
6068 tmp_nm=$ac_dir/$lt_tmp_nm
6069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6070 # Check to see if the nm accepts a BSD-compat flag.
6071 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6072 # nm: unknown option "B" ignored
6073 # Tru64's nm complains that /dev/null is an invalid object file
6074 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6076 mingw*) lt_bad_file=conftest.nm/nofile ;;
6077 *) lt_bad_file=/dev/null ;;
6079 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6080 *$lt_bad_file* | *'Invalid file or object type'*)
6081 lt_cv_path_NM="$tmp_nm -B"
6085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6087 lt_cv_path_NM="$tmp_nm -p"
6091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6092 continue # so that we can try to find one that supports BSD flags
6101 : ${lt_cv_path_NM=no}
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6105 $as_echo "$lt_cv_path_NM" >&6; }
6106 if test no != "$lt_cv_path_NM"; then
6109 # Didn't find any BSD compatible name lister, look for dumpbin.
6110 if test -n "$DUMPBIN"; then :
6111 # Let the user override the test.
6113 if test -n "$ac_tool_prefix"; then
6114 for ac_prog in dumpbin "link -dump"
6116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_DUMPBIN+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 if test -n "$DUMPBIN"; then
6124 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 DUMPBIN=$ac_cv_prog_DUMPBIN
6144 if test -n "$DUMPBIN"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6146 $as_echo "$DUMPBIN" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6153 test -n "$DUMPBIN" && break
6156 if test -z "$DUMPBIN"; then
6157 ac_ct_DUMPBIN=$DUMPBIN
6158 for ac_prog in dumpbin "link -dump"
6160 # Extract the first word of "$ac_prog", so it can be a program name with args.
6161 set dummy $ac_prog; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 if test -n "$ac_ct_DUMPBIN"; then
6168 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6188 if test -n "$ac_ct_DUMPBIN"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6190 $as_echo "$ac_ct_DUMPBIN" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6197 test -n "$ac_ct_DUMPBIN" && break
6200 if test "x$ac_ct_DUMPBIN" = x; then
6203 case $cross_compiling:$ac_tool_warned in
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6209 DUMPBIN=$ac_ct_DUMPBIN
6213 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6215 DUMPBIN="$DUMPBIN -symbols -headers"
6223 if test : != "$DUMPBIN"; then
6227 test -z "$NM" && NM=nm
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6236 if ${lt_cv_nm_interface+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 lt_cv_nm_interface="BSD nm"
6240 echo "int some_variable = 0;" > conftest.$ac_ext
6241 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6242 (eval "$ac_compile" 2>conftest.err)
6243 cat conftest.err >&5
6244 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6246 cat conftest.err >&5
6247 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6248 cat conftest.out >&5
6249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6250 lt_cv_nm_interface="MS dumpbin"
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6255 $as_echo "$lt_cv_nm_interface" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6258 $as_echo_n "checking whether ln -s works... " >&6; }
6260 if test "$LN_S" = "ln -s"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6265 $as_echo "no, using $LN_S" >&6; }
6268 # find the maximum length of command line arguments
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271 if ${lt_cv_sys_max_cmd_len+:} false; then :
6272 $as_echo_n "(cached) " >&6
6279 # On DJGPP, this test can blow up pretty badly due to problems in libc
6280 # (any single argument exceeding 2000 bytes causes a buffer overrun
6281 # during glob expansion). Even if it were fixed, the result of this
6282 # check would be larger than it should be.
6283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6287 # Under GNU Hurd, this test is not required because there is
6288 # no limit to the length of command line arguments.
6289 # Libtool will interpret -1 as no limit whatsoever
6290 lt_cv_sys_max_cmd_len=-1;
6293 cygwin* | mingw* | cegcc*)
6294 # On Win9x/ME, this test blows up -- it succeeds, but takes
6295 # about 5 minutes as the teststring grows exponentially.
6296 # Worse, since 9x/ME are not pre-emptively multitasking,
6297 # you end up with a "frozen" computer, even though with patience
6298 # the test eventually succeeds (with a max line length of 256k).
6299 # Instead, let's just punt: use the minimum linelength reported by
6300 # all of the supported platforms: 8192 (on NT/2K/XP).
6301 lt_cv_sys_max_cmd_len=8192;
6305 # On MiNT this can take a long time and run out of memory.
6306 lt_cv_sys_max_cmd_len=8192;
6310 # On AmigaOS with pdksh, this test takes hours, literally.
6311 # So we just punt and use a minimum line length of 8192.
6312 lt_cv_sys_max_cmd_len=8192;
6315 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6316 # This has been around since 386BSD, at least. Likely further.
6317 if test -x /sbin/sysctl; then
6318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6319 elif test -x /usr/sbin/sysctl; then
6320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6324 # And add a safety zone
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6331 lt_cv_sys_max_cmd_len=196608
6335 # The test takes a long time on OS/2.
6336 lt_cv_sys_max_cmd_len=8192
6340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6342 # nice to cause kernel panics so lets avoid the loop below.
6343 # First set a reasonable default.
6344 lt_cv_sys_max_cmd_len=16384
6346 if test -x /sbin/sysconfig; then
6347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6353 lt_cv_sys_max_cmd_len=102400
6355 sysv5* | sco5v6* | sysv4.2uw2*)
6356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6357 if test -n "$kargmax"; then
6358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6360 lt_cv_sys_max_cmd_len=32768
6364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6365 if test -n "$lt_cv_sys_max_cmd_len" && \
6366 test undefined != "$lt_cv_sys_max_cmd_len"; then
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6370 # Make teststring a little bigger before we do anything with it.
6371 # a 1K string should be a reasonable start.
6372 for i in 1 2 3 4 5 6 7 8; do
6373 teststring=$teststring$teststring
6375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6376 # If test is not a shell built-in, we'll probably end up computing a
6377 # maximum length that is only half of the actual maximum length, but
6379 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6380 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6381 test 17 != "$i" # 1/2 MB should be enough
6384 teststring=$teststring$teststring
6386 # Only check the string length outside the loop.
6387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6389 # Add a significant safety factor because C++ compilers can tack on
6390 # massive amounts of additional arguments before passing them to the
6391 # linker. It appears as though 1/2 is a usable value.
6392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6399 if test -n "$lt_cv_sys_max_cmd_len"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6404 $as_echo "none" >&6; }
6406 max_cmd_len=$lt_cv_sys_max_cmd_len
6417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6427 # test EBCDIC or ASCII
6428 case `echo X|tr X '\101'` in
6429 A) # ASCII based system
6430 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431 lt_SP2NL='tr \040 \012'
6432 lt_NL2SP='tr \015\012 \040\040'
6434 *) # EBCDIC based system
6435 lt_SP2NL='tr \100 \n'
6436 lt_NL2SP='tr \r\n \100\100'
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6449 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6450 if ${lt_cv_to_host_file_cmd+:} false; then :
6451 $as_echo_n "(cached) " >&6
6456 *-*-mingw* ) # actually msys
6457 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6460 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6462 * ) # otherwise, assume *nix
6463 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6469 *-*-mingw* ) # actually msys
6470 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6473 lt_cv_to_host_file_cmd=func_convert_file_noop
6475 * ) # otherwise, assume *nix
6476 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6480 * ) # unhandled hosts (and "normal" native builds)
6481 lt_cv_to_host_file_cmd=func_convert_file_noop
6487 to_host_file_cmd=$lt_cv_to_host_file_cmd
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6489 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6496 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6497 if ${lt_cv_to_tool_file_cmd+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 #assume ordinary cross tools, or native build.
6501 lt_cv_to_tool_file_cmd=func_convert_file_noop
6505 *-*-mingw* ) # actually msys
6506 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6516 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6523 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6524 if ${lt_cv_ld_reload_flag+:} false; then :
6525 $as_echo_n "(cached) " >&6
6527 lt_cv_ld_reload_flag='-r'
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6530 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6531 reload_flag=$lt_cv_ld_reload_flag
6532 case $reload_flag in
6534 *) reload_flag=" $reload_flag" ;;
6536 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6538 cygwin* | mingw* | pw32* | cegcc*)
6539 if test yes != "$GCC"; then
6544 if test yes = "$GCC"; then
6545 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_OBJDUMP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$OBJDUMP"; then
6569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 OBJDUMP=$ac_cv_prog_OBJDUMP
6589 if test -n "$OBJDUMP"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6591 $as_echo "$OBJDUMP" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6599 if test -z "$ac_cv_prog_OBJDUMP"; then
6600 ac_ct_OBJDUMP=$OBJDUMP
6601 # Extract the first word of "objdump", so it can be a program name with args.
6602 set dummy objdump; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$ac_ct_OBJDUMP"; then
6609 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6629 if test -n "$ac_ct_OBJDUMP"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6631 $as_echo "$ac_ct_OBJDUMP" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6637 if test "x$ac_ct_OBJDUMP" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6646 OBJDUMP=$ac_ct_OBJDUMP
6649 OBJDUMP="$ac_cv_prog_OBJDUMP"
6652 test -z "$OBJDUMP" && OBJDUMP=objdump
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6663 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6664 if ${lt_cv_deplibs_check_method+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 lt_cv_file_magic_cmd='$MAGIC_CMD'
6668 lt_cv_file_magic_test_file=
6669 lt_cv_deplibs_check_method='unknown'
6670 # Need to set the preceding variable on all platforms that support
6671 # interlibrary dependencies.
6672 # 'none' -- dependencies not supported.
6673 # 'unknown' -- same as none, but documents that we really don't know.
6674 # 'pass_all' -- all dependencies passed with no checks.
6675 # 'test_compile' -- check by making test program.
6676 # 'file_magic [[regex]]' -- check by looking for files in library path
6677 # that responds to the $file_magic_cmd with a given extended regex.
6678 # If you have 'file' or equivalent on your system and you're not sure
6679 # whether 'pass_all' will *always* work, you probably want this one.
6683 lt_cv_deplibs_check_method=pass_all
6687 lt_cv_deplibs_check_method=pass_all
6691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6692 lt_cv_file_magic_cmd='/usr/bin/file -L'
6693 lt_cv_file_magic_test_file=/shlib/libc.so
6697 # func_win32_libid is a shell function defined in ltmain.sh
6698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6699 lt_cv_file_magic_cmd='func_win32_libid'
6703 # Base MSYS/MinGW do not provide the 'file' command needed by
6704 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6705 # unless we find 'file', for example because we are cross-compiling.
6706 if ( file / ) >/dev/null 2>&1; then
6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6708 lt_cv_file_magic_cmd='func_win32_libid'
6710 # Keep this pattern in sync with the one in func_win32_libid.
6711 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6712 lt_cv_file_magic_cmd='$OBJDUMP -f'
6717 # use the weaker test based on 'objdump'. See mingw*.
6718 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6719 lt_cv_file_magic_cmd='$OBJDUMP -f'
6722 darwin* | rhapsody*)
6723 lt_cv_deplibs_check_method=pass_all
6726 freebsd* | dragonfly*)
6727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6730 # Not sure whether the presence of OpenBSD here was a mistake.
6731 # Let's accept both of them until this is cleared up.
6732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6733 lt_cv_file_magic_cmd=/usr/bin/file
6734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6738 lt_cv_deplibs_check_method=pass_all
6743 lt_cv_deplibs_check_method=pass_all
6746 hpux10.20* | hpux11*)
6747 lt_cv_file_magic_cmd=/usr/bin/file
6750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6751 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6754 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]'
6755 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6765 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6769 irix5* | irix6* | nonstopux*)
6771 *-32|*"-32 ") libmagic=32-bit;;
6772 *-n32|*"-n32 ") libmagic=N32;;
6773 *-64|*"-64 ") libmagic=64-bit;;
6774 *) libmagic=never-match;;
6776 lt_cv_deplibs_check_method=pass_all
6779 # This must be glibc/ELF.
6780 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6781 lt_cv_deplibs_check_method=pass_all
6785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6794 lt_cv_file_magic_cmd=/usr/bin/file
6795 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6799 lt_cv_deplibs_check_method=pass_all
6803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6810 osf3* | osf4* | osf5*)
6811 lt_cv_deplibs_check_method=pass_all
6815 lt_cv_deplibs_check_method=pass_all
6819 lt_cv_deplibs_check_method=pass_all
6822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6823 lt_cv_deplibs_check_method=pass_all
6827 case $host_vendor in
6829 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]'
6830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6833 lt_cv_deplibs_check_method=pass_all
6836 lt_cv_file_magic_cmd='/bin/file'
6837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6840 lt_cv_file_magic_cmd='/bin/file'
6841 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6842 lt_cv_file_magic_test_file=/lib/libc.so
6845 lt_cv_deplibs_check_method=pass_all
6848 lt_cv_deplibs_check_method=pass_all
6854 lt_cv_deplibs_check_method=pass_all
6857 lt_cv_deplibs_check_method=pass_all
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6863 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6867 if test "$build" = "$host"; then
6870 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6873 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6879 file_magic_cmd=$lt_cv_file_magic_cmd
6880 deplibs_check_method=$lt_cv_deplibs_check_method
6881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_DLLTOOL+:} false; then :
6910 $as_echo_n "(cached) " >&6
6912 if test -n "$DLLTOOL"; then
6913 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 DLLTOOL=$ac_cv_prog_DLLTOOL
6933 if test -n "$DLLTOOL"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6935 $as_echo "$DLLTOOL" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6943 if test -z "$ac_cv_prog_DLLTOOL"; then
6944 ac_ct_DLLTOOL=$DLLTOOL
6945 # Extract the first word of "dlltool", so it can be a program name with args.
6946 set dummy dlltool; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6950 $as_echo_n "(cached) " >&6
6952 if test -n "$ac_ct_DLLTOOL"; then
6953 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6973 if test -n "$ac_ct_DLLTOOL"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6975 $as_echo "$ac_ct_DLLTOOL" >&6; }
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6981 if test "x$ac_ct_DLLTOOL" = x; then
6984 case $cross_compiling:$ac_tool_warned in
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6988 ac_tool_warned=yes ;;
6990 DLLTOOL=$ac_ct_DLLTOOL
6993 DLLTOOL="$ac_cv_prog_DLLTOOL"
6996 test -z "$DLLTOOL" && DLLTOOL=dlltool
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7008 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7009 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7010 $as_echo_n "(cached) " >&6
7012 lt_cv_sharedlib_from_linklib_cmd='unknown'
7015 cygwin* | mingw* | pw32* | cegcc*)
7016 # two different shell functions defined in ltmain.sh;
7017 # decide which one to use based on capabilities of $DLLTOOL
7018 case `$DLLTOOL --help 2>&1` in
7019 *--identify-strict*)
7020 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7023 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7028 # fallback: assume linklib IS sharedlib
7029 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7035 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7036 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7037 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7045 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_AR+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 if test -n "$AR"; then
7056 ac_cv_prog_AR="$AR" # Let the user override the test.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 if test -n "$AR"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7078 $as_echo "$AR" >&6; }
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7085 test -n "$AR" && break
7088 if test -z "$AR"; then
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 if test -n "$ac_ct_AR"; then
7100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_AR="$ac_prog"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7120 if test -n "$ac_ct_AR"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7122 $as_echo "$ac_ct_AR" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7129 test -n "$ac_ct_AR" && break
7132 if test "x$ac_ct_AR" = x; then
7135 case $cross_compiling:$ac_tool_warned in
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7159 $as_echo_n "checking for archiver @FILE support... " >&6; }
7160 if ${lt_cv_ar_at_file+:} false; then :
7161 $as_echo_n "(cached) " >&6
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176 echo conftest.$ac_objext > conftest.lst
7177 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7179 (eval $lt_ar_try) 2>&5
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }
7183 if test 0 -eq "$ac_status"; then
7184 # Ensure the archiver fails upon bogus file names.
7185 rm -f conftest.$ac_objext libconftest.a
7186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7187 (eval $lt_ar_try) 2>&5
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; }
7191 if test 0 -ne "$ac_status"; then
7195 rm -f conftest.* libconftest.a
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7202 $as_echo "$lt_cv_ar_at_file" >&6; }
7204 if test no = "$lt_cv_ar_at_file"; then
7207 archiver_list_spec=$lt_cv_ar_at_file
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}strip; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_STRIP+:} false; then :
7222 $as_echo_n "(cached) " >&6
7224 if test -n "$STRIP"; then
7225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 STRIP=$ac_cv_prog_STRIP
7245 if test -n "$STRIP"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7247 $as_echo "$STRIP" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7255 if test -z "$ac_cv_prog_STRIP"; then
7257 # Extract the first word of "strip", so it can be a program name with args.
7258 set dummy strip; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$ac_ct_STRIP"; then
7265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_ac_ct_STRIP="strip"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7285 if test -n "$ac_ct_STRIP"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7287 $as_echo "$ac_ct_STRIP" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7293 if test "x$ac_ct_STRIP" = x; then
7296 case $cross_compiling:$ac_tool_warned in
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7305 STRIP="$ac_cv_prog_STRIP"
7308 test -z "$STRIP" && STRIP=:
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_RANLIB+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$RANLIB"; then
7324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 RANLIB=$ac_cv_prog_RANLIB
7344 if test -n "$RANLIB"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7346 $as_echo "$RANLIB" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_RANLIB"; then
7355 ac_ct_RANLIB=$RANLIB
7356 # Extract the first word of "ranlib", so it can be a program name with args.
7357 set dummy ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$ac_ct_RANLIB"; then
7364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_ac_ct_RANLIB="ranlib"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7384 if test -n "$ac_ct_RANLIB"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7386 $as_echo "$ac_ct_RANLIB" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_RANLIB" = x; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7401 RANLIB=$ac_ct_RANLIB
7404 RANLIB="$ac_cv_prog_RANLIB"
7407 test -z "$RANLIB" && RANLIB=:
7414 # Determine commands to create old-style static archives.
7415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7416 old_postinstall_cmds='chmod 644 $oldlib'
7417 old_postuninstall_cmds=
7419 if test -n "$RANLIB"; then
7422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7433 lock_old_archive_extraction=yes ;;
7435 lock_old_archive_extraction=no ;;
7476 # If no C compiler was specified, use CC.
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7482 # Allow CC to be a program name with arguments.
7486 # Check for command to grab the raw symbol name followed by C symbol from nm.
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7489 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7490 $as_echo_n "(cached) " >&6
7493 # These are sane defaults that work on at least a few old systems.
7494 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7496 # Character class describing NM global symbol codes.
7497 symcode='[BCDEGRST]'
7499 # Regexp to match symbols that can be accessed directly from C.
7500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7502 # Define system-specific variables.
7507 cygwin* | mingw* | pw32* | cegcc*)
7508 symcode='[ABCDGISTW]'
7511 if test ia64 = "$host_cpu"; then
7512 symcode='[ABCDEGRST]'
7516 symcode='[BCDEGRST]'
7519 symcode='[BCDEGQRST]'
7530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7538 # If we're using GNU nm, then use its standard symbol codes.
7539 case `$NM -V 2>&1` in
7540 *GNU* | *'with BFD'*)
7541 symcode='[ABCDGIRSTW]' ;;
7544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7545 # Gets list of data symbols to import.
7546 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7547 # Adjust the below global symbol transforms to fixup imported variables.
7548 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7549 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7550 lt_c_name_lib_hook="\
7551 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7552 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7554 # Disable hooks by default.
7555 lt_cv_sys_global_symbol_to_import=
7561 # Transform an extracted symbol line into a proper C declaration.
7562 # Some systems (esp. on ia64) link data and code symbols differently,
7563 # so use this general approach.
7564 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7566 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7567 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7569 # Transform an extracted symbol line into symbol name and symbol address
7570 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7572 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7573 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7575 # Transform an extracted symbol line into symbol name with lib prefix and
7577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7578 $lt_c_name_lib_hook\
7579 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7580 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7581 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7583 # Handle CRLF in mingw tool chain
7587 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7591 # Try without a prefix underscore, then with it.
7592 for ac_symprfx in "" "_"; do
7594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7595 symxfrm="\\1 $ac_symprfx\\2 \\2"
7597 # Write the raw and C identifiers.
7598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7599 # Fake it for dumpbin and say T for any non-static function,
7600 # D for any global variable and I for any imported variable.
7601 # Also find C++ and __fastcall symbols from MSVC++,
7602 # which start with @ or ?.
7603 lt_cv_sys_global_symbol_pipe="$AWK '"\
7604 " {last_section=section; section=\$ 3};"\
7605 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7606 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7607 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7608 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7609 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7610 " \$ 0!~/External *\|/{next};"\
7611 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7612 " {if(hide[section]) next};"\
7613 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7614 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7615 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7616 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7617 " ' prfx=^$ac_symprfx"
7619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7621 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7623 # Check to see that the pipe works correctly.
7627 cat > conftest.$ac_ext <<_LT_EOF
7632 void nm_test_func(void);
7633 void nm_test_func(void){}
7637 int main(){nm_test_var='a';nm_test_func();return(0);}
7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7641 (eval $ac_compile) 2>&5
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 # Now try to grab the symbols.
7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7648 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651 test $ac_status = 0; } && test -s "$nlist"; then
7652 # Try sorting and uniquifying the output.
7653 if sort "$nlist" | uniq > "$nlist"T; then
7654 mv -f "$nlist"T "$nlist"
7659 # Make sure that we snagged all the symbols we need.
7660 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7661 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7662 cat <<_LT_EOF > conftest.$ac_ext
7663 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7664 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7665 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7666 relocations are performed -- see ld's documentation on pseudo-relocs. */
7667 # define LT_DLSYM_CONST
7668 #elif defined __osf__
7669 /* This system does not cope well with relocations in const data. */
7670 # define LT_DLSYM_CONST
7672 # define LT_DLSYM_CONST const
7680 # Now generate the symbol file.
7681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7683 cat <<_LT_EOF >> conftest.$ac_ext
7685 /* The mapping between symbol names and symbols. */
7686 LT_DLSYM_CONST struct {
7690 lt__PROGRAM__LTX_preloaded_symbols[] =
7692 { "@PROGRAM@", (void *) 0 },
7694 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7695 cat <<\_LT_EOF >> conftest.$ac_ext
7699 /* This works around a problem in FreeBSD linker */
7700 #ifdef FREEBSD_WORKAROUND
7701 static const void *lt_preloaded_setup() {
7702 return lt__PROGRAM__LTX_preloaded_symbols;
7710 # Now try linking the two files.
7711 mv conftest.$ac_objext conftstm.$ac_objext
7712 lt_globsym_save_LIBS=$LIBS
7713 lt_globsym_save_CFLAGS=$CFLAGS
7714 LIBS=conftstm.$ac_objext
7715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7717 (eval $ac_link) 2>&5
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7723 LIBS=$lt_globsym_save_LIBS
7724 CFLAGS=$lt_globsym_save_CFLAGS
7726 echo "cannot find nm_test_func in $nlist" >&5
7729 echo "cannot find nm_test_var in $nlist" >&5
7732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7735 echo "$progname: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 rm -rf conftest* conftst*
7740 # Do not use the global_symbol_pipe unless it works.
7741 if test yes = "$pipe_works"; then
7744 lt_cv_sys_global_symbol_pipe=
7750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7751 lt_cv_sys_global_symbol_to_cdecl=
7753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7755 $as_echo "failed" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7758 $as_echo "ok" >&6; }
7761 # Response file support.
7762 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7763 nm_file_list_spec='@'
7764 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7765 nm_file_list_spec='@'
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7805 $as_echo_n "checking for sysroot... " >&6; }
7807 # Check whether --with-sysroot was given.
7808 if test "${with_sysroot+set}" = set; then :
7809 withval=$with_sysroot;
7816 case $with_sysroot in #(
7818 if test yes = "$GCC"; then
7819 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7823 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7829 $as_echo "$with_sysroot" >&6; }
7830 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7835 $as_echo "${lt_sysroot:-no}" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7842 $as_echo_n "checking for a working dd... " >&6; }
7843 if ${ac_cv_path_lt_DD+:} false; then :
7844 $as_echo_n "(cached) " >&6
7846 printf 0123456789abcdef0123456789abcdef >conftest.i
7847 cat conftest.i conftest.i >conftest2.i
7849 if test -z "$lt_DD"; then
7850 ac_path_lt_DD_found=false
7851 # Loop through the user's path and test for each of PROGNAME-LIST
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir=.
7857 for ac_prog in dd; do
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7860 as_fn_executable_p "$ac_path_lt_DD" || continue
7861 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7862 cmp -s conftest.i conftest.out \
7863 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7865 $ac_path_lt_DD_found && break 3
7870 if test -z "$ac_cv_path_lt_DD"; then
7874 ac_cv_path_lt_DD=$lt_DD
7877 rm -f conftest.i conftest2.i conftest.out
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7880 $as_echo "$ac_cv_path_lt_DD" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7884 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7885 if ${lt_cv_truncate_bin+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 printf 0123456789abcdef0123456789abcdef >conftest.i
7889 cat conftest.i conftest.i >conftest2.i
7891 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7892 cmp -s conftest.i conftest.out \
7893 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7895 rm -f conftest.i conftest2.i conftest.out
7896 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7899 $as_echo "$lt_cv_truncate_bin" >&6; }
7907 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7910 for cc_temp in $*""; do
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7918 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7921 # Check whether --enable-libtool-lock was given.
7922 if test "${enable_libtool_lock+set}" = set; then :
7923 enableval=$enable_libtool_lock;
7926 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7928 # Some flags need to be propagated to the compiler or linker for good
7932 # Find out what ABI is being produced by ac_compile, and set mode
7933 # options accordingly.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.$ac_objext` in
7952 # Find out what ABI is being produced by ac_compile, and set linker
7953 # options accordingly.
7954 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7956 (eval $ac_compile) 2>&5
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }; then
7960 if test yes = "$lt_cv_prog_gnu_ld"; then
7961 case `/usr/bin/file conftest.$ac_objext` in
7963 LD="${LD-ld} -melf32bsmip"
7966 LD="${LD-ld} -melf32bmipn32"
7969 LD="${LD-ld} -melf64bmip"
7973 case `/usr/bin/file conftest.$ac_objext` in
7990 # Find out what ABI is being produced by ac_compile, and set linker
7991 # options accordingly.
7992 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7994 (eval $ac_compile) 2>&5
7996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997 test $ac_status = 0; }; then
7999 case `/usr/bin/file conftest.$ac_objext` in
8007 case `/usr/bin/file conftest.$ac_objext` in
8009 emul="${emul}btsmip"
8012 emul="${emul}ltsmip"
8015 case `/usr/bin/file conftest.$ac_objext` in
8020 LD="${LD-ld} -m $emul"
8025 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8026 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8027 # Find out what ABI is being produced by ac_compile, and set linker
8028 # options accordingly. Note that the listed cases only cover the
8029 # situations where additional linker options are needed (such as when
8030 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8031 # vice versa); the common cases where no linker options are needed do
8032 # not appear in the list.
8033 echo 'int i;' > conftest.$ac_ext
8034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035 (eval $ac_compile) 2>&5
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 case `/usr/bin/file conftest.o` in
8042 x86_64-*kfreebsd*-gnu)
8043 LD="${LD-ld} -m elf_i386_fbsd"
8046 case `/usr/bin/file conftest.o` in
8048 LD="${LD-ld} -m elf32_x86_64"
8051 LD="${LD-ld} -m elf_i386"
8055 powerpc64le-*linux*)
8056 LD="${LD-ld} -m elf32lppclinux"
8059 LD="${LD-ld} -m elf32ppclinux"
8062 LD="${LD-ld} -m elf_s390"
8065 LD="${LD-ld} -m elf32_sparc"
8071 x86_64-*kfreebsd*-gnu)
8072 LD="${LD-ld} -m elf_x86_64_fbsd"
8075 LD="${LD-ld} -m elf_x86_64"
8078 LD="${LD-ld} -m elf64lppc"
8081 LD="${LD-ld} -m elf64ppc"
8083 s390*-*linux*|s390*-*tpf*)
8084 LD="${LD-ld} -m elf64_s390"
8087 LD="${LD-ld} -m elf64_sparc"
8097 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8099 CFLAGS="$CFLAGS -belf"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8101 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8102 if ${lt_cv_cc_needs_belf+:} false; then :
8103 $as_echo_n "(cached) " >&6
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 lt_cv_cc_needs_belf=yes
8125 lt_cv_cc_needs_belf=no
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8137 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8138 if test yes != "$lt_cv_cc_needs_belf"; then
8139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8144 # Find out what ABI is being produced by ac_compile, and set linker
8145 # options accordingly.
8146 echo 'int i;' > conftest.$ac_ext
8147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8148 (eval $ac_compile) 2>&5
8150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8151 test $ac_status = 0; }; then
8152 case `/usr/bin/file conftest.o` in
8154 case $lt_cv_prog_gnu_ld in
8157 i?86-*-solaris*|x86_64-*-solaris*)
8158 LD="${LD-ld} -m elf_x86_64"
8161 LD="${LD-ld} -m elf64_sparc"
8164 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8165 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8170 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8182 need_locks=$enable_libtool_lock
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}mt; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 if test -n "$MANIFEST_TOOL"; then
8193 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8213 if test -n "$MANIFEST_TOOL"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8215 $as_echo "$MANIFEST_TOOL" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8223 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8224 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8225 # Extract the first word of "mt", so it can be a program name with args.
8226 set dummy mt; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$ac_ct_MANIFEST_TOOL"; then
8233 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8253 if test -n "$ac_ct_MANIFEST_TOOL"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8255 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8261 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8264 case $cross_compiling:$ac_tool_warned in
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8270 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8273 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8276 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8278 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8279 if ${lt_cv_path_mainfest_tool+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_path_mainfest_tool=no
8283 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8284 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8285 cat conftest.err >&5
8286 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8287 lt_cv_path_mainfest_tool=yes
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8292 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8293 if test yes != "$lt_cv_path_mainfest_tool"; then
8303 rhapsody* | darwin*)
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8310 $as_echo_n "(cached) " >&6
8312 if test -n "$DSYMUTIL"; then
8313 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8333 if test -n "$DSYMUTIL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8335 $as_echo "$DSYMUTIL" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8343 if test -z "$ac_cv_prog_DSYMUTIL"; then
8344 ac_ct_DSYMUTIL=$DSYMUTIL
8345 # Extract the first word of "dsymutil", so it can be a program name with args.
8346 set dummy dsymutil; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -n "$ac_ct_DSYMUTIL"; then
8353 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8373 if test -n "$ac_ct_DSYMUTIL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8375 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8381 if test "x$ac_ct_DSYMUTIL" = x; then
8384 case $cross_compiling:$ac_tool_warned in
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8390 DSYMUTIL=$ac_ct_DSYMUTIL
8393 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_NMEDIT+:} false; then :
8402 $as_echo_n "(cached) " >&6
8404 if test -n "$NMEDIT"; then
8405 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 NMEDIT=$ac_cv_prog_NMEDIT
8425 if test -n "$NMEDIT"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8427 $as_echo "$NMEDIT" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_NMEDIT"; then
8436 ac_ct_NMEDIT=$NMEDIT
8437 # Extract the first word of "nmedit", so it can be a program name with args.
8438 set dummy nmedit; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 if test -n "$ac_ct_NMEDIT"; then
8445 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8465 if test -n "$ac_ct_NMEDIT"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8467 $as_echo "$ac_ct_NMEDIT" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_NMEDIT" = x; then
8476 case $cross_compiling:$ac_tool_warned in
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8482 NMEDIT=$ac_ct_NMEDIT
8485 NMEDIT="$ac_cv_prog_NMEDIT"
8488 if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_LIPO+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$LIPO"; then
8497 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 LIPO=$ac_cv_prog_LIPO
8517 if test -n "$LIPO"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8519 $as_echo "$LIPO" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test -z "$ac_cv_prog_LIPO"; then
8529 # Extract the first word of "lipo", so it can be a program name with args.
8530 set dummy lipo; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 if test -n "$ac_ct_LIPO"; then
8537 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_LIPO="lipo"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8557 if test -n "$ac_ct_LIPO"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8559 $as_echo "$ac_ct_LIPO" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8565 if test "x$ac_ct_LIPO" = x; then
8568 case $cross_compiling:$ac_tool_warned in
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8577 LIPO="$ac_cv_prog_LIPO"
8580 if test -n "$ac_tool_prefix"; then
8581 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}otool; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_OTOOL+:} false; then :
8586 $as_echo_n "(cached) " >&6
8588 if test -n "$OTOOL"; then
8589 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 OTOOL=$ac_cv_prog_OTOOL
8609 if test -n "$OTOOL"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8611 $as_echo "$OTOOL" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8619 if test -z "$ac_cv_prog_OTOOL"; then
8621 # Extract the first word of "otool", so it can be a program name with args.
8622 set dummy otool; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8626 $as_echo_n "(cached) " >&6
8628 if test -n "$ac_ct_OTOOL"; then
8629 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_ac_ct_OTOOL="otool"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8649 if test -n "$ac_ct_OTOOL"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8651 $as_echo "$ac_ct_OTOOL" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8657 if test "x$ac_ct_OTOOL" = x; then
8660 case $cross_compiling:$ac_tool_warned in
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8669 OTOOL="$ac_cv_prog_OTOOL"
8672 if test -n "$ac_tool_prefix"; then
8673 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL64+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$OTOOL64"; then
8681 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 OTOOL64=$ac_cv_prog_OTOOL64
8701 if test -n "$OTOOL64"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8703 $as_echo "$OTOOL64" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 if test -z "$ac_cv_prog_OTOOL64"; then
8712 ac_ct_OTOOL64=$OTOOL64
8713 # Extract the first word of "otool64", so it can be a program name with args.
8714 set dummy otool64; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$ac_ct_OTOOL64"; then
8721 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_OTOOL64="otool64"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8741 if test -n "$ac_ct_OTOOL64"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8743 $as_echo "$ac_ct_OTOOL64" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8749 if test "x$ac_ct_OTOOL64" = x; then
8752 case $cross_compiling:$ac_tool_warned in
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8758 OTOOL64=$ac_ct_OTOOL64
8761 OTOOL64="$ac_cv_prog_OTOOL64"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8791 $as_echo_n "checking for -single_module linker flag... " >&6; }
8792 if ${lt_cv_apple_cc_single_mod+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 lt_cv_apple_cc_single_mod=no
8796 if test -z "$LT_MULTI_MODULE"; then
8797 # By default we will add the -single_module flag. You can override
8798 # by either setting the environment variable LT_MULTI_MODULE
8799 # non-empty at configure time, or by adding -multi_module to the
8801 rm -rf libconftest.dylib*
8802 echo "int foo(void){return 1;}" > conftest.c
8803 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8804 -dynamiclib -Wl,-single_module conftest.c" >&5
8805 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8806 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8808 # If there is a non-empty error log, and "single_module"
8809 # appears in it, assume the flag caused a linker warning
8810 if test -s conftest.err && $GREP single_module conftest.err; then
8811 cat conftest.err >&5
8812 # Otherwise, if the output was created with a 0 exit code from
8813 # the compiler, it worked.
8814 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8815 lt_cv_apple_cc_single_mod=yes
8817 cat conftest.err >&5
8819 rm -rf libconftest.dylib*
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8824 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8827 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8828 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8829 $as_echo_n "(cached) " >&6
8831 lt_cv_ld_exported_symbols_list=no
8832 save_LDFLAGS=$LDFLAGS
8833 echo "_main" > conftest.sym
8834 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8846 if ac_fn_c_try_link "$LINENO"; then :
8847 lt_cv_ld_exported_symbols_list=yes
8849 lt_cv_ld_exported_symbols_list=no
8851 rm -f core conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LDFLAGS=$save_LDFLAGS
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8857 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8860 $as_echo_n "checking for -force_load linker flag... " >&6; }
8861 if ${lt_cv_ld_force_load+:} false; then :
8862 $as_echo_n "(cached) " >&6
8864 lt_cv_ld_force_load=no
8865 cat > conftest.c << _LT_EOF
8866 int forced_loaded() { return 2;}
8868 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8869 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8870 echo "$AR cru libconftest.a conftest.o" >&5
8871 $AR cru libconftest.a conftest.o 2>&5
8872 echo "$RANLIB libconftest.a" >&5
8873 $RANLIB libconftest.a 2>&5
8874 cat > conftest.c << _LT_EOF
8875 int main() { return 0;}
8877 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8878 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8880 if test -s conftest.err && $GREP force_load conftest.err; then
8881 cat conftest.err >&5
8882 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8883 lt_cv_ld_force_load=yes
8885 cat conftest.err >&5
8887 rm -f conftest.err libconftest.a conftest conftest.c
8888 rm -rf conftest.dSYM
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8892 $as_echo "$lt_cv_ld_force_load" >&6; }
8894 rhapsody* | darwin1.[012])
8895 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8897 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8898 darwin*) # darwin 5.x on
8899 # if running on 10.5 or later, the deployment target defaults
8900 # to the OS version, if on x86, and 10.4, the deployment
8901 # target defaults to 10.4. Don't you love it?
8902 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8903 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8904 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8906 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8908 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8912 if test yes = "$lt_cv_apple_cc_single_mod"; then
8913 _lt_dar_single_mod='$single_module'
8915 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8916 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8918 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8920 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8921 _lt_dsymutil='~$DSYMUTIL $lib || :'
8928 # func_munge_path_list VARIABLE PATH
8929 # -----------------------------------
8930 # VARIABLE is name of variable containing _space_ separated list of
8931 # directories to be munged by the contents of PATH, which is string
8934 # string "DIR[ DIR]" will be prepended to VARIABLE
8936 # string "DIR[ DIR]" will be appended to VARIABLE
8937 # "DIRP[:DIRP]::[DIRA:]DIRA"
8938 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8939 # "DIRA[ DIRA]" will be appended to VARIABLE
8941 # VARIABLE will be replaced by "DIR[ DIR]"
8942 func_munge_path_list ()
8948 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8951 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8954 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8955 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8958 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8965 $as_echo_n "checking for ANSI C header files... " >&6; }
8966 if ${ac_cv_header_stdc+:} false; then :
8967 $as_echo_n "(cached) " >&6
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8984 if ac_fn_c_try_compile "$LINENO"; then :
8985 ac_cv_header_stdc=yes
8987 ac_cv_header_stdc=no
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 if test $ac_cv_header_stdc = yes; then
8992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999 $EGREP "memchr" >/dev/null 2>&1; then :
9002 ac_cv_header_stdc=no
9008 if test $ac_cv_header_stdc = yes; then
9009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9016 $EGREP "free" >/dev/null 2>&1; then :
9019 ac_cv_header_stdc=no
9025 if test $ac_cv_header_stdc = yes; then
9026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9027 if test "$cross_compiling" = yes; then :
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9034 #if ((' ' & 0x0FF) == 0x020)
9035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9038 # define ISLOWER(c) \
9039 (('a' <= (c) && (c) <= 'i') \
9040 || ('j' <= (c) && (c) <= 'r') \
9041 || ('s' <= (c) && (c) <= 'z'))
9042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9050 for (i = 0; i < 256; i++)
9051 if (XOR (islower (i), ISLOWER (i))
9052 || toupper (i) != TOUPPER (i))
9057 if ac_fn_c_try_run "$LINENO"; then :
9060 ac_cv_header_stdc=no
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063 conftest.$ac_objext conftest.beam conftest.$ac_ext
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9069 $as_echo "$ac_cv_header_stdc" >&6; }
9070 if test $ac_cv_header_stdc = yes; then
9072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9076 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9078 inttypes.h stdint.h unistd.h
9080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9084 cat >>confdefs.h <<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093 for ac_header in dlfcn.h
9095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9097 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_DLFCN_H 1
9120 # Check whether --enable-shared was given.
9121 if test "${enable_shared+set}" = set; then :
9122 enableval=$enable_shared; p=${PACKAGE-default}
9124 yes) enable_shared=yes ;;
9125 no) enable_shared=no ;;
9128 # Look at the argument we got. We use all the common list separators.
9129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9130 for pkg in $enableval; do
9132 if test "X$pkg" = "X$p"; then
9151 # Check whether --enable-static was given.
9152 if test "${enable_static+set}" = set; then :
9153 enableval=$enable_static; p=${PACKAGE-default}
9155 yes) enable_static=yes ;;
9156 no) enable_static=no ;;
9159 # Look at the argument we got. We use all the common list separators.
9160 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9161 for pkg in $enableval; do
9163 if test "X$pkg" = "X$p"; then
9183 # Check whether --with-pic was given.
9184 if test "${with_pic+set}" = set; then :
9185 withval=$with_pic; lt_p=${PACKAGE-default}
9187 yes|no) pic_mode=$withval ;;
9190 # Look at the argument we got. We use all the common list separators.
9191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192 for lt_pkg in $withval; do
9194 if test "X$lt_pkg" = "X$lt_p"; then
9212 # Check whether --enable-fast-install was given.
9213 if test "${enable_fast_install+set}" = set; then :
9214 enableval=$enable_fast_install; p=${PACKAGE-default}
9216 yes) enable_fast_install=yes ;;
9217 no) enable_fast_install=no ;;
9219 enable_fast_install=no
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9222 for pkg in $enableval; do
9224 if test "X$pkg" = "X$p"; then
9225 enable_fast_install=yes
9232 enable_fast_install=yes
9242 shared_archive_member_spec=
9243 case $host,$enable_shared in
9244 power*-*-aix[5-9]*,yes)
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9246 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9248 # Check whether --with-aix-soname was given.
9249 if test "${with_aix_soname+set}" = set; then :
9250 withval=$with_aix_soname; case $withval in
9254 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9257 lt_cv_with_aix_soname=$with_aix_soname
9259 if ${lt_cv_with_aix_soname+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 lt_cv_with_aix_soname=aix
9265 with_aix_soname=$lt_cv_with_aix_soname
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269 $as_echo "$with_aix_soname" >&6; }
9270 if test aix != "$with_aix_soname"; then
9271 # For the AIX way of multilib, we name the shared archive member
9272 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276 if test 64 = "${OBJECT_MODE-32}"; then
9277 shared_archive_member_spec=shr_64
9279 shared_archive_member_spec=shr
9297 # This can be used to rebuild libtool when needed
9298 LIBTOOL_DEPS=$ltmain
9300 # Always use our own libtool.
9301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9332 test -z "$LN_S" && LN_S="ln -s"
9347 if test -n "${ZSH_VERSION+set}"; then
9348 setopt NO_GLOB_SUBST
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352 $as_echo_n "checking for objdir... " >&6; }
9353 if ${lt_cv_objdir+:} false; then :
9354 $as_echo_n "(cached) " >&6
9356 rm -f .libs 2>/dev/null
9357 mkdir .libs 2>/dev/null
9358 if test -d .libs; then
9361 # MS-DOS does not allow filenames that begin with a dot.
9364 rmdir .libs 2>/dev/null
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9367 $as_echo "$lt_cv_objdir" >&6; }
9368 objdir=$lt_cv_objdir
9374 cat >>confdefs.h <<_ACEOF
9375 #define LT_OBJDIR "$lt_cv_objdir/"
9383 # AIX sometimes has problems with the GCC collect2 program. For some
9384 # reason, if we set the COLLECT_NAMES environment variable, the problems
9385 # vanish in a puff of smoke.
9386 if test set != "${COLLECT_NAMES+set}"; then
9388 export COLLECT_NAMES
9395 can_build_shared=yes
9397 # All known linkers require a '.a' archive for static linking (except MSVC,
9398 # which needs '.lib').
9401 with_gnu_ld=$lt_cv_prog_gnu_ld
9406 # Set sane defaults for various variables
9407 test -z "$CC" && CC=cc
9408 test -z "$LTCC" && LTCC=$CC
9409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9410 test -z "$LD" && LD=ld
9411 test -z "$ac_objext" && ac_objext=o
9413 func_cc_basename $compiler
9414 cc_basename=$func_cc_basename_result
9417 # Only perform the check for file, if the check method requires it
9418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9419 case $deplibs_check_method in
9421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9425 $as_echo_n "(cached) " >&6
9429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9432 lt_save_MAGIC_CMD=$MAGIC_CMD
9433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435 for ac_dir in $ac_dummy; do
9437 test -z "$ac_dir" && ac_dir=.
9438 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440 if test -n "$file_magic_test_file"; then
9441 case $deplibs_check_method in
9443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446 $EGREP "$file_magic_regex" > /dev/null; then
9451 *** Warning: the command libtool uses to detect shared libraries,
9452 *** $file_magic_cmd, produces output that libtool cannot recognize.
9453 *** The result is that libtool may fail to recognize shared libraries
9454 *** as such. This will affect the creation of libtool libraries that
9455 *** depend on shared libraries, but programs linked with such libtool
9456 *** libraries will work regardless of this problem. Nevertheless, you
9457 *** may want to report the problem to your system manager and/or to
9458 *** bug-libtool@gnu.org
9468 MAGIC_CMD=$lt_save_MAGIC_CMD
9473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474 if test -n "$MAGIC_CMD"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476 $as_echo "$MAGIC_CMD" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9486 if test -z "$lt_cv_path_MAGIC_CMD"; then
9487 if test -n "$ac_tool_prefix"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489 $as_echo_n "checking for file... " >&6; }
9490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9491 $as_echo_n "(cached) " >&6
9495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9498 lt_save_MAGIC_CMD=$MAGIC_CMD
9499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501 for ac_dir in $ac_dummy; do
9503 test -z "$ac_dir" && ac_dir=.
9504 if test -f "$ac_dir/file"; then
9505 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9506 if test -n "$file_magic_test_file"; then
9507 case $deplibs_check_method in
9509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512 $EGREP "$file_magic_regex" > /dev/null; then
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such. This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem. Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** bug-libtool@gnu.org
9534 MAGIC_CMD=$lt_save_MAGIC_CMD
9539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540 if test -n "$MAGIC_CMD"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 $as_echo "$MAGIC_CMD" >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9558 # Use C for the default configuration in the libtool script
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568 # Source file extension for C test sources.
9571 # Object file extension for compiled C test sources.
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;"
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(){return(0);}'
9587 # If no C compiler was specified, use CC.
9590 # If no C compiler flags were specified, use CFLAGS.
9591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9593 # Allow CC to be a program name with arguments.
9596 # Save the default compiler, since it gets overwritten when the other
9597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9598 compiler_DEFAULT=$CC
9600 # save warnings/boilerplate of simple test code
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9604 _lt_compiler_boilerplate=`cat conftest.err`
9607 ac_outfile=conftest.$ac_objext
9608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9610 _lt_linker_boilerplate=`cat conftest.err`
9614 if test -n "$compiler"; then
9616 lt_prog_compiler_no_builtin_flag=
9618 if test yes = "$GCC"; then
9619 case $cc_basename in
9621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9629 $as_echo_n "(cached) " >&6
9631 lt_cv_prog_compiler_rtti_exceptions=no
9632 ac_outfile=conftest.$ac_objext
9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9635 # Insert the option either (1) after the last *FLAGS variable, or
9636 # (2) before a word containing "conftest.", or (3) at the end.
9637 # Note that $ac_compile itself does not contain backslashes and begins
9638 # with a dollar sign (not a hyphen), so the echo should work correctly.
9639 # The option is referenced via a variable to avoid confusing sed.
9640 lt_compile=`echo "$ac_compile" | $SED \
9641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9643 -e 's:$: $lt_compiler_flag:'`
9644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9645 (eval "$lt_compile" 2>conftest.err)
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 if (exit $ac_status) && test -s "$ac_outfile"; then
9650 # The compiler can only warn and ignore the option if not recognized
9651 # So say no if there are warnings other than the usual output.
9652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9655 lt_cv_prog_compiler_rtti_exceptions=yes
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9664 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9677 lt_prog_compiler_wl=
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_static=
9682 if test yes = "$GCC"; then
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_static='-static'
9688 # All AIX code is PIC.
9689 if test ia64 = "$host_cpu"; then
9690 # AIX 5 now supports IA64 processor
9691 lt_prog_compiler_static='-Bstatic'
9693 lt_prog_compiler_pic='-fPIC'
9699 # see comment about AmigaOS4 .so support
9700 lt_prog_compiler_pic='-fPIC'
9703 # FIXME: we need at least 68020 code to build shared libraries, but
9704 # adding the '-m68020' flag to GCC prevents building anything better,
9706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9712 # PIC is the default for these OSes.
9715 mingw* | cygwin* | pw32* | os2* | cegcc*)
9716 # This hack is so that the source file can tell whether it is being
9717 # built for inclusion in a dll (and should export symbols for example).
9718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9719 # (--disable-auto-import) libraries
9720 lt_prog_compiler_pic='-DDLL_EXPORT'
9723 lt_prog_compiler_static='$wl-static'
9728 darwin* | rhapsody*)
9729 # PIC is the default on this platform
9730 # Common symbols not allowed in MH_DYLIB files
9731 lt_prog_compiler_pic='-fno-common'
9735 # PIC is the default for Haiku.
9736 # The "-static" flag exists, but is broken.
9737 lt_prog_compiler_static=
9741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9743 # sets the default TLS model and affects inlining.
9749 lt_prog_compiler_pic='-fPIC'
9755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9756 # Instead, we relocate shared libraries at runtime.
9760 # Just because we use GCC doesn't mean we suddenly get shared libraries
9761 # on systems that don't support them.
9762 lt_prog_compiler_can_build_shared=no
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9769 lt_prog_compiler_pic='-fPIC -shared'
9773 if test -d /usr/nec; then
9774 lt_prog_compiler_pic=-Kconform_pic
9779 lt_prog_compiler_pic='-fPIC'
9783 case $cc_basename in
9784 nvcc*) # Cuda Compiler Driver 2.2
9785 lt_prog_compiler_wl='-Xlinker '
9786 if test -n "$lt_prog_compiler_pic"; then
9787 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9792 # PORTME Check for flag to pass linker flags through the system compiler.
9795 lt_prog_compiler_wl='-Wl,'
9796 if test ia64 = "$host_cpu"; then
9797 # AIX 5 now supports IA64 processor
9798 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9804 darwin* | rhapsody*)
9805 # PIC is the default on this platform
9806 # Common symbols not allowed in MH_DYLIB files
9807 lt_prog_compiler_pic='-fno-common'
9808 case $cc_basename in
9810 # NAG Fortran compiler
9811 lt_prog_compiler_wl='-Wl,-Wl,,'
9812 lt_prog_compiler_pic='-PIC'
9813 lt_prog_compiler_static='-Bstatic'
9818 mingw* | cygwin* | pw32* | os2* | cegcc*)
9819 # This hack is so that the source file can tell whether it is being
9820 # built for inclusion in a dll (and should export symbols for example).
9821 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 lt_prog_compiler_static='$wl-static'
9829 hpux9* | hpux10* | hpux11*)
9830 lt_prog_compiler_wl='-Wl,'
9831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838 lt_prog_compiler_pic='+Z'
9841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842 lt_prog_compiler_static='$wl-a ${wl}archive'
9845 irix5* | irix6* | nonstopux*)
9846 lt_prog_compiler_wl='-Wl,'
9847 # PIC (with -KPIC) is the default.
9848 lt_prog_compiler_static='-non_shared'
9851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852 case $cc_basename in
9853 # old Intel for x86_64, which still supported -KPIC.
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-static'
9859 # icc used to be incompatible with GCC.
9860 # ICC 10 doesn't accept -KPIC any more.
9862 lt_prog_compiler_wl='-Wl,'
9863 lt_prog_compiler_pic='-fPIC'
9864 lt_prog_compiler_static='-static'
9866 # Lahey Fortran 8.1.
9868 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='--shared'
9870 lt_prog_compiler_static='--static'
9873 # NAG Fortran compiler
9874 lt_prog_compiler_wl='-Wl,-Wl,,'
9875 lt_prog_compiler_pic='-PIC'
9876 lt_prog_compiler_static='-Bstatic'
9879 # Fabrice Bellard et al's Tiny C Compiler
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-fPIC'
9882 lt_prog_compiler_static='-static'
9884 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9885 # Portland Group compilers (*not* the Pentium gcc compiler,
9886 # which looks to be a dead project)
9887 lt_prog_compiler_wl='-Wl,'
9888 lt_prog_compiler_pic='-fpic'
9889 lt_prog_compiler_static='-Bstatic'
9892 lt_prog_compiler_wl='-Wl,'
9893 # All Alpha code is PIC.
9894 lt_prog_compiler_static='-non_shared'
9896 xl* | bgxl* | bgf* | mpixl*)
9897 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-qpic'
9900 lt_prog_compiler_static='-qstaticlink'
9903 case `$CC -V 2>&1 | sed 5q` in
9904 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9905 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9906 lt_prog_compiler_pic='-KPIC'
9907 lt_prog_compiler_static='-Bstatic'
9908 lt_prog_compiler_wl=''
9910 *Sun\ F* | *Sun*Fortran*)
9911 lt_prog_compiler_pic='-KPIC'
9912 lt_prog_compiler_static='-Bstatic'
9913 lt_prog_compiler_wl='-Qoption ld '
9917 lt_prog_compiler_pic='-KPIC'
9918 lt_prog_compiler_static='-Bstatic'
9919 lt_prog_compiler_wl='-Wl,'
9921 *Intel*\ [CF]*Compiler*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fPIC'
9924 lt_prog_compiler_static='-static'
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_pic='-fpic'
9929 lt_prog_compiler_static='-Bstatic'
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9942 # QNX uses GNU C++, but need to define -shared option too, otherwise
9944 lt_prog_compiler_pic='-fPIC -shared'
9947 osf3* | osf4* | osf5*)
9948 lt_prog_compiler_wl='-Wl,'
9949 # All OSF/1 code is PIC.
9950 lt_prog_compiler_static='-non_shared'
9954 lt_prog_compiler_static='-non_shared'
9958 lt_prog_compiler_pic='-KPIC'
9959 lt_prog_compiler_static='-Bstatic'
9960 case $cc_basename in
9961 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9962 lt_prog_compiler_wl='-Qoption ld ';;
9964 lt_prog_compiler_wl='-Wl,';;
9969 lt_prog_compiler_wl='-Qoption ld '
9970 lt_prog_compiler_pic='-PIC'
9971 lt_prog_compiler_static='-Bstatic'
9974 sysv4 | sysv4.2uw2* | sysv4.3*)
9975 lt_prog_compiler_wl='-Wl,'
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
9981 if test -d /usr/nec; then
9982 lt_prog_compiler_pic='-Kconform_pic'
9983 lt_prog_compiler_static='-Bstatic'
9987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9988 lt_prog_compiler_wl='-Wl,'
9989 lt_prog_compiler_pic='-KPIC'
9990 lt_prog_compiler_static='-Bstatic'
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_can_build_shared=no
9999 lt_prog_compiler_pic='-pic'
10000 lt_prog_compiler_static='-Bstatic'
10004 lt_prog_compiler_can_build_shared=no
10010 # For platforms that do not support PIC, -DPIC is meaningless:
10012 lt_prog_compiler_pic=
10015 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10021 if ${lt_cv_prog_compiler_pic+:} false; then :
10022 $as_echo_n "(cached) " >&6
10024 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10027 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10028 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10031 # Check to make sure the PIC flag actually works.
10033 if test -n "$lt_prog_compiler_pic"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10037 $as_echo_n "(cached) " >&6
10039 lt_cv_prog_compiler_pic_works=no
10040 ac_outfile=conftest.$ac_objext
10041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10043 # Insert the option either (1) after the last *FLAGS variable, or
10044 # (2) before a word containing "conftest.", or (3) at the end.
10045 # Note that $ac_compile itself does not contain backslashes and begins
10046 # with a dollar sign (not a hyphen), so the echo should work correctly.
10047 # The option is referenced via a variable to avoid confusing sed.
10048 lt_compile=`echo "$ac_compile" | $SED \
10049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051 -e 's:$: $lt_compiler_flag:'`
10052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053 (eval "$lt_compile" 2>conftest.err)
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 if (exit $ac_status) && test -s "$ac_outfile"; then
10058 # The compiler can only warn and ignore the option if not recognized
10059 # So say no if there are warnings other than the usual output.
10060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10063 lt_cv_prog_compiler_pic_works=yes
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10072 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10073 case $lt_prog_compiler_pic in
10075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10078 lt_prog_compiler_pic=
10079 lt_prog_compiler_can_build_shared=no
10095 # Check to make sure the static flag actually works.
10097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10100 if ${lt_cv_prog_compiler_static_works+:} false; then :
10101 $as_echo_n "(cached) " >&6
10103 lt_cv_prog_compiler_static_works=no
10104 save_LDFLAGS=$LDFLAGS
10105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108 # The linker can only warn and ignore the option if not recognized
10109 # So say no if there are warnings
10110 if test -s conftest.err; then
10111 # Append any errors to the config.log.
10112 cat conftest.err 1>&5
10113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115 if diff conftest.exp conftest.er2 >/dev/null; then
10116 lt_cv_prog_compiler_static_works=yes
10119 lt_cv_prog_compiler_static_works=yes
10123 LDFLAGS=$save_LDFLAGS
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10129 if test yes = "$lt_cv_prog_compiler_static_works"; then
10132 lt_prog_compiler_static=
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10143 if ${lt_cv_prog_compiler_c_o+:} false; then :
10144 $as_echo_n "(cached) " >&6
10146 lt_cv_prog_compiler_c_o=no
10147 $RM -r conftest 2>/dev/null
10151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153 lt_compiler_flag="-o out/conftest2.$ac_objext"
10154 # Insert the option either (1) after the last *FLAGS variable, or
10155 # (2) before a word containing "conftest.", or (3) at the end.
10156 # Note that $ac_compile itself does not contain backslashes and begins
10157 # with a dollar sign (not a hyphen), so the echo should work correctly.
10158 lt_compile=`echo "$ac_compile" | $SED \
10159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10161 -e 's:$: $lt_compiler_flag:'`
10162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10163 (eval "$lt_compile" 2>out/conftest.err)
10165 cat out/conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10169 # The compiler can only warn and ignore the option if not recognized
10170 # So say no if there are warnings
10171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10174 lt_cv_prog_compiler_c_o=yes
10179 # SGI C++ compiler will create directory out/ii_files/ for
10180 # template instantiation
10181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10182 $RM out/* && rmdir out
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10198 if ${lt_cv_prog_compiler_c_o+:} false; then :
10199 $as_echo_n "(cached) " >&6
10201 lt_cv_prog_compiler_c_o=no
10202 $RM -r conftest 2>/dev/null
10206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10208 lt_compiler_flag="-o out/conftest2.$ac_objext"
10209 # Insert the option either (1) after the last *FLAGS variable, or
10210 # (2) before a word containing "conftest.", or (3) at the end.
10211 # Note that $ac_compile itself does not contain backslashes and begins
10212 # with a dollar sign (not a hyphen), so the echo should work correctly.
10213 lt_compile=`echo "$ac_compile" | $SED \
10214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10216 -e 's:$: $lt_compiler_flag:'`
10217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10218 (eval "$lt_compile" 2>out/conftest.err)
10220 cat out/conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10224 # The compiler can only warn and ignore the option if not recognized
10225 # So say no if there are warnings
10226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10229 lt_cv_prog_compiler_c_o=yes
10234 # SGI C++ compiler will create directory out/ii_files/ for
10235 # template instantiation
10236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10237 $RM out/* && rmdir out
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10249 hard_links=nottested
10250 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10251 # do not overwrite the value of need_locks provided by the user
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10253 $as_echo_n "checking if we can lock with hard links... " >&6; }
10256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10258 ln conftest.a conftest.b 2>&5 || hard_links=no
10259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10261 $as_echo "$hard_links" >&6; }
10262 if test no = "$hard_links"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10264 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10280 allow_undefined_flag=
10281 always_export_symbols=no
10283 archive_expsym_cmds=
10284 compiler_needs_object=no
10285 enable_shared_with_static_runtimes=no
10286 export_dynamic_flag_spec=
10287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10288 hardcode_automatic=no
10290 hardcode_direct_absolute=no
10291 hardcode_libdir_flag_spec=
10292 hardcode_libdir_separator=
10293 hardcode_minus_L=no
10294 hardcode_shlibpath_var=unsupported
10296 link_all_deplibs=unknown
10298 module_expsym_cmds=
10299 old_archive_from_new_cmds=
10300 old_archive_from_expsyms_cmds=
10301 thread_safe_flag_spec=
10302 whole_archive_flag_spec=
10303 # include_expsyms should be a list of space-separated symbols to be *always*
10304 # included in the symbol list
10306 # exclude_expsyms can be an extended regexp of symbols to exclude
10307 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10308 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10309 # as well as any symbol that contains 'd'.
10310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10312 # platforms (ab)use it in PIC code, but their linkers get confused if
10313 # the symbol is explicitly referenced. Since portable code cannot
10314 # rely on this symbol name, it's probably fine to never include it in
10315 # preloaded symbol tables.
10316 # Exclude shared library initialization/finalization symbols.
10317 extract_expsyms_cmds=
10320 cygwin* | mingw* | pw32* | cegcc*)
10321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10322 # When not using gcc, we currently assume that we are using
10323 # Microsoft Visual C++.
10324 if test yes != "$GCC"; then
10329 # we just hope/assume this is gcc and not c89 (= MSVC++)
10332 openbsd* | bitrig*)
10339 # On some targets, GNU ld is compatible enough with the native linker
10340 # that we're better off using the native interface for both.
10341 lt_use_gnu_ld_interface=no
10342 if test yes = "$with_gnu_ld"; then
10345 # The AIX port of GNU ld has always aspired to compatibility
10346 # with the native linker. However, as the warning in the GNU ld
10347 # block says, versions before 2.19.5* couldn't really create working
10348 # shared libraries, regardless of the interface used.
10349 case `$LD -v 2>&1` in
10350 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10351 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10352 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10354 lt_use_gnu_ld_interface=yes
10359 lt_use_gnu_ld_interface=yes
10364 if test yes = "$lt_use_gnu_ld_interface"; then
10365 # If archive_cmds runs LD, not CC, wlarc should be empty
10368 # Set some defaults for GNU ld with shared library support. These
10369 # are reset later if shared libraries are not supported. Putting them
10370 # here allows them to be overridden if necessary.
10371 runpath_var=LD_RUN_PATH
10372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10373 export_dynamic_flag_spec='$wl--export-dynamic'
10374 # ancient GNU ld didn't support --whole-archive et. al.
10375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10376 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10378 whole_archive_flag_spec=
10380 supports_anon_versioning=no
10381 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10382 *GNU\ gold*) supports_anon_versioning=yes ;;
10383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10386 *\ 2.11.*) ;; # other 2.11 versions
10387 *) supports_anon_versioning=yes ;;
10390 # See if GNU ld supports shared libraries.
10393 # On AIX/PPC, the GNU linker is very broken
10394 if test ia64 != "$host_cpu"; then
10398 *** Warning: the GNU linker, at least up to release 2.19, is reported
10399 *** to be unable to reliably create shared libraries on AIX.
10400 *** Therefore, libtool is disabling shared libraries support. If you
10401 *** really care for shared libraries, you may want to install binutils
10402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10403 *** You will then need to restart the configuration process.
10412 # see comment about AmigaOS4 .so support
10413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414 archive_expsym_cmds=''
10417 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)'
10418 hardcode_libdir_flag_spec='-L$libdir'
10419 hardcode_minus_L=yes
10425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10426 allow_undefined_flag=unsupported
10427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10428 # support --undefined. This deserves some investigation. FIXME
10429 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435 cygwin* | mingw* | pw32* | cegcc*)
10436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10437 # as there is no search path for DLLs.
10438 hardcode_libdir_flag_spec='-L$libdir'
10439 export_dynamic_flag_spec='$wl--export-all-symbols'
10440 allow_undefined_flag=unsupported
10441 always_export_symbols=no
10442 enable_shared_with_static_runtimes=yes
10443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10444 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10448 # If the export-symbols file already is a .def file, use it as
10449 # is; otherwise, prepend EXPORTS...
10450 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10451 cp $export_symbols $output_objdir/$soname.def;
10453 echo EXPORTS > $output_objdir/$soname.def;
10454 cat $export_symbols >> $output_objdir/$soname.def;
10456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10464 link_all_deplibs=yes
10468 hardcode_libdir_flag_spec='-L$libdir'
10469 hardcode_minus_L=yes
10470 allow_undefined_flag=unsupported
10472 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10475 $ECHO EXPORTS >> $output_objdir/$libname.def~
10476 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10478 emximp -o $lib $output_objdir/$libname.def'
10479 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10480 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10481 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10482 $ECHO EXPORTS >> $output_objdir/$libname.def~
10483 prefix_cmds="$SED"~
10484 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10485 prefix_cmds="$prefix_cmds -e 1d";
10487 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10488 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10489 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10490 emximp -o $lib $output_objdir/$libname.def'
10491 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10492 enable_shared_with_static_runtimes=yes
10497 hardcode_shlibpath_var=no
10498 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10499 export_dynamic_flag_spec='$wl-E'
10500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10501 # Instead, shared libraries are loaded at an image base (0x10000000 by
10502 # default) and relocated if they conflict, which is a slow very memory
10503 # consuming and fragmenting process. To avoid this, we pick a random,
10504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10505 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10507 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'
10510 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10512 if test linux-dietlibc = "$host_os"; then
10513 case $cc_basename in
10514 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10517 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10518 && test no = "$tmp_diet"
10520 tmp_addflag=' $pic_flag'
10521 tmp_sharedflag='-shared'
10522 case $cc_basename,$host_cpu in
10523 pgcc*) # Portland Group C compiler
10524 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'
10525 tmp_addflag=' $pic_flag'
10527 pgf77* | pgf90* | pgf95* | pgfortran*)
10528 # Portland Group f77 and f90 compilers
10529 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'
10530 tmp_addflag=' $pic_flag -Mnomain' ;;
10531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10532 tmp_addflag=' -i_dynamic' ;;
10533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10534 tmp_addflag=' -i_dynamic -nofor_main' ;;
10535 ifc* | ifort*) # Intel Fortran compiler
10536 tmp_addflag=' -nofor_main' ;;
10537 lf95*) # Lahey Fortran 8.1
10538 whole_archive_flag_spec=
10539 tmp_sharedflag='--shared' ;;
10540 nagfor*) # NAGFOR 5.3
10541 tmp_sharedflag='-Wl,-shared' ;;
10542 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10543 tmp_sharedflag='-qmkshrobj'
10545 nvcc*) # Cuda Compiler Driver 2.2
10546 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'
10547 compiler_needs_object=yes
10550 case `$CC -V 2>&1 | sed 5q` in
10551 *Sun\ C*) # Sun C 5.9
10552 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'
10553 compiler_needs_object=yes
10554 tmp_sharedflag='-G' ;;
10555 *Sun\ F*) # Sun Fortran 8.3
10556 tmp_sharedflag='-G' ;;
10558 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10560 if test yes = "$supports_anon_versioning"; then
10561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10563 echo "local: *; };" >> $output_objdir/$libname.ver~
10564 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10567 case $cc_basename in
10569 export_dynamic_flag_spec='-rdynamic'
10571 xlf* | bgf* | bgxlf* | mpixlf*)
10572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10573 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10575 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10576 if test yes = "$supports_anon_versioning"; then
10577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10579 echo "local: *; };" >> $output_objdir/$libname.ver~
10580 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10591 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10600 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10605 *** create shared libraries on Solaris systems. Therefore, libtool
10606 *** is disabling shared libraries support. We urge you to upgrade GNU
10607 *** binutils to release 2.9.1 or newer. Another option is to modify
10608 *** your PATH or compiler configuration so that the native linker is
10609 *** used, and then restart.
10612 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10621 case `$LD -v 2>&1` in
10622 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10627 *** reliably create shared libraries on SCO systems. Therefore, libtool
10628 *** is disabling shared libraries support. We urge you to upgrade GNU
10629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10630 *** your PATH or compiler configuration so that the native linker is
10631 *** used, and then restart.
10636 # For security reasons, it is highly recommended that you always
10637 # use absolute paths for naming shared libraries, and exclude the
10638 # DT_RUNPATH tag from executables and libraries. But doing so
10639 # requires that you compile everything twice, which is a pain.
10640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10641 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10652 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_direct=yes
10655 hardcode_shlibpath_var=no
10659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10668 if test no = "$ld_shlibs"; then
10670 hardcode_libdir_flag_spec=
10671 export_dynamic_flag_spec=
10672 whole_archive_flag_spec=
10675 # PORTME fill in a description of your system's linker (not GNU ld)
10678 allow_undefined_flag=unsupported
10679 always_export_symbols=yes
10680 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'
10681 # Note: this linker hardcodes the directories in LIBPATH if there
10682 # are no directories specified by -L.
10683 hardcode_minus_L=yes
10684 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10685 # Neither direct hardcoding nor static linking is supported with a
10687 hardcode_direct=unsupported
10692 if test ia64 = "$host_cpu"; then
10693 # On IA64, the linker does run time linking by default, so we don't
10694 # have to do anything special.
10695 aix_use_runtimelinking=no
10696 exp_sym_flag='-Bexport'
10699 # If we're using GNU nm, then we don't want the "-C" option.
10700 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10701 # Without the "-l" option, or with the "-B" option, AIX nm treats
10702 # weak defined symbols like other global defined symbols, whereas
10703 # GNU nm marks them as "W".
10704 # While the 'weak' keyword is ignored in the Export File, we need
10705 # it in the Import File for the 'aix-soname' feature, so we have
10706 # to replace the "-B" option with "-P" for AIX nm.
10707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10708 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10710 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10712 aix_use_runtimelinking=no
10714 # Test if we are trying to use run time linking or normal
10715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10716 # have runtime linking enabled, and use it for executables.
10717 # For shared libraries, we enable/disable runtime linking
10718 # depending on the kind of the shared library created -
10719 # when "with_aix_soname,aix_use_runtimelinking" is:
10720 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10721 # "aix,yes" lib.so shared, rtl:yes, for executables
10722 # lib.a static archive
10723 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10724 # lib.a(lib.so.V) shared, rtl:no, for executables
10725 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10726 # lib.a(lib.so.V) shared, rtl:no
10727 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10728 # lib.a static archive
10729 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10730 for ld_flag in $LDFLAGS; do
10731 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10732 aix_use_runtimelinking=yes
10736 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10737 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10738 # so we don't have lib.a shared libs to link our executables.
10739 # We have to force runtime linking in this case.
10740 aix_use_runtimelinking=yes
10741 LDFLAGS="$LDFLAGS -Wl,-brtl"
10746 exp_sym_flag='-bexport'
10747 no_entry_flag='-bnoentry'
10750 # When large executables or shared objects are built, AIX ld can
10751 # have problems creating the table of contents. If linking a library
10752 # or program results in "error TOC overflow" add -mminimal-toc to
10753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10757 hardcode_direct=yes
10758 hardcode_direct_absolute=yes
10759 hardcode_libdir_separator=':'
10760 link_all_deplibs=yes
10761 file_list_spec='$wl-f,'
10762 case $with_aix_soname,$aix_use_runtimelinking in
10763 aix,*) ;; # traditional, no import file
10764 svr4,* | *,yes) # use import file
10765 # The Import File defines what to hardcode.
10767 hardcode_direct_absolute=no
10771 if test yes = "$GCC"; then
10772 case $host_os in aix4.[012]|aix4.[012].*)
10773 # We only want to do this on AIX 4.2 and lower, the check
10774 # below for broken collect2 doesn't work under 4.3+
10775 collect2name=`$CC -print-prog-name=collect2`
10776 if test -f "$collect2name" &&
10777 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10779 # We have reworked collect2
10782 # We have old collect2
10783 hardcode_direct=unsupported
10784 # It fails to find uninstalled libraries when the uninstalled
10785 # path is not listed in the libpath. Setting hardcode_minus_L
10786 # to unsupported forces relinking
10787 hardcode_minus_L=yes
10788 hardcode_libdir_flag_spec='-L$libdir'
10789 hardcode_libdir_separator=
10793 shared_flag='-shared'
10794 if test yes = "$aix_use_runtimelinking"; then
10795 shared_flag="$shared_flag "'$wl-G'
10797 # Need to ensure runtime linking is disabled for the traditional
10798 # shared library, or the linker may eventually find shared libraries
10799 # /with/ Import File - we do not want to mix them.
10800 shared_flag_aix='-shared'
10801 shared_flag_svr4='-shared $wl-G'
10804 if test ia64 = "$host_cpu"; then
10805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10806 # chokes on -Wl,-G. The following line is correct:
10809 if test yes = "$aix_use_runtimelinking"; then
10810 shared_flag='$wl-G'
10812 shared_flag='$wl-bM:SRE'
10814 shared_flag_aix='$wl-bM:SRE'
10815 shared_flag_svr4='$wl-G'
10819 export_dynamic_flag_spec='$wl-bexpall'
10820 # It seems that -bexpall does not export symbols beginning with
10821 # underscore (_), so it is better to generate a list of symbols to export.
10822 always_export_symbols=yes
10823 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10824 # Warning - without using the other runtime loading flags (-brtl),
10825 # -berok will link without error, but may produce a broken library.
10826 allow_undefined_flag='-berok'
10827 # Determine the default libpath from the value encoded in an
10828 # empty executable.
10829 if test set = "${lt_cv_aix_libpath+set}"; then
10830 aix_libpath=$lt_cv_aix_libpath
10832 if ${lt_cv_aix_libpath_+:} false; then :
10833 $as_echo_n "(cached) " >&6
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10846 if ac_fn_c_try_link "$LINENO"; then :
10848 lt_aix_libpath_sed='
10849 /Import File Strings/,/^$/ {
10851 s/^0 *\([^ ]*\) *$/\1/
10855 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10856 # Check for a 64-bit object if we didn't find anything.
10857 if test -z "$lt_cv_aix_libpath_"; then
10858 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 if test -z "$lt_cv_aix_libpath_"; then
10864 lt_cv_aix_libpath_=/usr/lib:/lib
10869 aix_libpath=$lt_cv_aix_libpath_
10872 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10873 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10875 if test ia64 = "$host_cpu"; then
10876 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10877 allow_undefined_flag="-z nodefs"
10878 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"
10880 # Determine the default libpath from the value encoded in an
10881 # empty executable.
10882 if test set = "${lt_cv_aix_libpath+set}"; then
10883 aix_libpath=$lt_cv_aix_libpath
10885 if ${lt_cv_aix_libpath_+:} false; then :
10886 $as_echo_n "(cached) " >&6
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10899 if ac_fn_c_try_link "$LINENO"; then :
10901 lt_aix_libpath_sed='
10902 /Import File Strings/,/^$/ {
10904 s/^0 *\([^ ]*\) *$/\1/
10908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10909 # Check for a 64-bit object if we didn't find anything.
10910 if test -z "$lt_cv_aix_libpath_"; then
10911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 if test -z "$lt_cv_aix_libpath_"; then
10917 lt_cv_aix_libpath_=/usr/lib:/lib
10922 aix_libpath=$lt_cv_aix_libpath_
10925 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10926 # Warning - without using the other run time loading flags,
10927 # -berok will link without error, but may produce a broken library.
10928 no_undefined_flag=' $wl-bernotok'
10929 allow_undefined_flag=' $wl-berok'
10930 if test yes = "$with_gnu_ld"; then
10931 # We only use this code for GNU lds that support --whole-archive.
10932 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10934 # Exported symbols can be pulled into shared objects from archives
10935 whole_archive_flag_spec='$convenience'
10937 archive_cmds_need_lc=yes
10938 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10939 # -brtl affects multiple linker settings, -berok does not and is overridden later
10940 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10941 if test svr4 != "$with_aix_soname"; then
10942 # This is similar to how AIX traditionally builds its shared libraries.
10943 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10945 if test aix != "$with_aix_soname"; then
10946 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10948 # used by -dlpreopen to get the symbols
10949 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10951 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10959 # see comment about AmigaOS4 .so support
10960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10961 archive_expsym_cmds=''
10964 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)'
10965 hardcode_libdir_flag_spec='-L$libdir'
10966 hardcode_minus_L=yes
10972 export_dynamic_flag_spec=-rdynamic
10975 cygwin* | mingw* | pw32* | cegcc*)
10976 # When not using gcc, we currently assume that we are using
10977 # Microsoft Visual C++.
10978 # hardcode_libdir_flag_spec is actually meaningless, as there is
10979 # no search path for DLLs.
10980 case $cc_basename in
10983 hardcode_libdir_flag_spec=' '
10984 allow_undefined_flag=unsupported
10985 always_export_symbols=yes
10987 # Tell ltmain to make .lib files, not .a files.
10989 # Tell ltmain to make .dll files, not .so files.
10991 # FIXME: Setting linknames here is a bad hack.
10992 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10993 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10994 cp "$export_symbols" "$output_objdir/$soname.def";
10995 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10997 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10999 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11001 # The linker will not automatically build a static lib if we build a DLL.
11002 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11003 enable_shared_with_static_runtimes=yes
11004 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11007 old_postinstall_cmds='chmod 644 $oldlib'
11008 postlink_cmds='lt_outputfile="@OUTPUT@"~
11009 lt_tool_outputfile="@TOOL_OUTPUT@"~
11010 case $lt_outputfile in
11013 lt_outputfile=$lt_outputfile.exe
11014 lt_tool_outputfile=$lt_tool_outputfile.exe
11017 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11018 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11019 $RM "$lt_outputfile.manifest";
11023 # Assume MSVC wrapper
11024 hardcode_libdir_flag_spec=' '
11025 allow_undefined_flag=unsupported
11026 # Tell ltmain to make .lib files, not .a files.
11028 # Tell ltmain to make .dll files, not .so files.
11030 # FIXME: Setting linknames here is a bad hack.
11031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11032 # The linker will automatically build a .lib file if we build a DLL.
11033 old_archive_from_new_cmds='true'
11034 # FIXME: Should let the user specify the lib program.
11035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11036 enable_shared_with_static_runtimes=yes
11041 darwin* | rhapsody*)
11044 archive_cmds_need_lc=no
11046 hardcode_automatic=yes
11047 hardcode_shlibpath_var=unsupported
11048 if test yes = "$lt_cv_ld_force_load"; then
11049 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\"`'
11052 whole_archive_flag_spec=''
11054 link_all_deplibs=yes
11055 allow_undefined_flag=$_lt_dar_allow_undefined
11056 case $cc_basename in
11057 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11058 *) _lt_dar_can_shared=$GCC ;;
11060 if test yes = "$_lt_dar_can_shared"; then
11061 output_verbose_link_cmd=func_echo_all
11062 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11063 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11064 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"
11065 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"
11074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11075 hardcode_libdir_flag_spec='-L$libdir'
11076 hardcode_shlibpath_var=no
11079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11080 # support. Future versions do this automatically, but an explicit c++rt0.o
11081 # does not break anything, and helps significantly (at the cost of a little
11084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11085 hardcode_libdir_flag_spec='-R$libdir'
11086 hardcode_direct=yes
11087 hardcode_shlibpath_var=no
11090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11093 hardcode_direct=yes
11094 hardcode_minus_L=yes
11095 hardcode_shlibpath_var=no
11098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11099 freebsd* | dragonfly*)
11100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11101 hardcode_libdir_flag_spec='-R$libdir'
11102 hardcode_direct=yes
11103 hardcode_shlibpath_var=no
11107 if test yes = "$GCC"; then
11108 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11110 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11113 hardcode_libdir_separator=:
11114 hardcode_direct=yes
11116 # hardcode_minus_L: Not really in the search PATH,
11117 # but as the default location of the library.
11118 hardcode_minus_L=yes
11119 export_dynamic_flag_spec='$wl-E'
11123 if test yes,no = "$GCC,$with_gnu_ld"; then
11124 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11128 if test no = "$with_gnu_ld"; then
11129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11130 hardcode_libdir_separator=:
11131 hardcode_direct=yes
11132 hardcode_direct_absolute=yes
11133 export_dynamic_flag_spec='$wl-E'
11134 # hardcode_minus_L: Not really in the search PATH,
11135 # but as the default location of the library.
11136 hardcode_minus_L=yes
11141 if test yes,no = "$GCC,$with_gnu_ld"; then
11144 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11147 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11150 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11156 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11159 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11163 # Older versions of the 11.00 compiler do not understand -b yet
11164 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11166 $as_echo_n "checking if $CC understands -b... " >&6; }
11167 if ${lt_cv_prog_compiler__b+:} false; then :
11168 $as_echo_n "(cached) " >&6
11170 lt_cv_prog_compiler__b=no
11171 save_LDFLAGS=$LDFLAGS
11172 LDFLAGS="$LDFLAGS -b"
11173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11175 # The linker can only warn and ignore the option if not recognized
11176 # So say no if there are warnings
11177 if test -s conftest.err; then
11178 # Append any errors to the config.log.
11179 cat conftest.err 1>&5
11180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11182 if diff conftest.exp conftest.er2 >/dev/null; then
11183 lt_cv_prog_compiler__b=yes
11186 lt_cv_prog_compiler__b=yes
11190 LDFLAGS=$save_LDFLAGS
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11194 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11196 if test yes = "$lt_cv_prog_compiler__b"; then
11197 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11205 if test no = "$with_gnu_ld"; then
11206 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11207 hardcode_libdir_separator=:
11212 hardcode_shlibpath_var=no
11215 hardcode_direct=yes
11216 hardcode_direct_absolute=yes
11217 export_dynamic_flag_spec='$wl-E'
11219 # hardcode_minus_L: Not really in the search PATH,
11220 # but as the default location of the library.
11221 hardcode_minus_L=yes
11227 irix5* | irix6* | nonstopux*)
11228 if test yes = "$GCC"; then
11229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11230 # Try to use the -exported_symbol ld option, if it does not
11231 # work, assume that -exports_file does not work either and
11232 # implicitly export all symbols.
11233 # This should be the same for all languages, so no per-tag cache variable.
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11235 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11236 if ${lt_cv_irix_exported_symbol+:} false; then :
11237 $as_echo_n "(cached) " >&6
11239 save_LDFLAGS=$LDFLAGS
11240 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 int foo (void) { return 0; }
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 lt_cv_irix_exported_symbol=yes
11248 lt_cv_irix_exported_symbol=no
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LDFLAGS=$save_LDFLAGS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11255 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11256 if test yes = "$lt_cv_irix_exported_symbol"; then
11257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11260 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'
11261 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'
11263 archive_cmds_need_lc='no'
11264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11265 hardcode_libdir_separator=:
11267 link_all_deplibs=yes
11271 case $cc_basename in
11273 # Fabrice Bellard et al's Tiny C Compiler
11275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11286 hardcode_libdir_flag_spec='-R$libdir'
11287 hardcode_direct=yes
11288 hardcode_shlibpath_var=no
11292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11293 hardcode_direct=yes
11294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11295 hardcode_libdir_separator=:
11296 hardcode_shlibpath_var=no
11302 openbsd* | bitrig*)
11303 if test -f /usr/libexec/ld.so; then
11304 hardcode_direct=yes
11305 hardcode_shlibpath_var=no
11306 hardcode_direct_absolute=yes
11307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11310 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11311 export_dynamic_flag_spec='$wl-E'
11313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11322 hardcode_libdir_flag_spec='-L$libdir'
11323 hardcode_minus_L=yes
11324 allow_undefined_flag=unsupported
11326 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11327 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11328 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11329 $ECHO EXPORTS >> $output_objdir/$libname.def~
11330 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11331 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11332 emximp -o $lib $output_objdir/$libname.def'
11333 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11334 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11335 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11336 $ECHO EXPORTS >> $output_objdir/$libname.def~
11337 prefix_cmds="$SED"~
11338 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11339 prefix_cmds="$prefix_cmds -e 1d";
11341 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11342 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11343 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11344 emximp -o $lib $output_objdir/$libname.def'
11345 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11346 enable_shared_with_static_runtimes=yes
11350 if test yes = "$GCC"; then
11351 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11352 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'
11354 allow_undefined_flag=' -expect_unresolved \*'
11355 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'
11357 archive_cmds_need_lc='no'
11358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11359 hardcode_libdir_separator=:
11362 osf4* | osf5*) # as osf3* with the addition of -msym flag
11363 if test yes = "$GCC"; then
11364 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11365 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11368 allow_undefined_flag=' -expect_unresolved \*'
11369 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'
11370 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~
11371 $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'
11373 # Both c and cxx compiler support -rpath directly
11374 hardcode_libdir_flag_spec='-rpath $libdir'
11376 archive_cmds_need_lc='no'
11377 hardcode_libdir_separator=:
11381 no_undefined_flag=' -z defs'
11382 if test yes = "$GCC"; then
11384 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11386 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11388 case `$CC -V 2>&1` in
11391 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11393 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11397 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11399 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11403 hardcode_libdir_flag_spec='-R$libdir'
11404 hardcode_shlibpath_var=no
11406 solaris2.[0-5] | solaris2.[0-5].*) ;;
11408 # The compiler driver will combine and reorder linker options,
11409 # but understands '-z linker_flag'. GCC discards it without '$wl',
11410 # but is careful enough not to reorder.
11411 # Supported since Solaris 2.6 (maybe 2.5.1?)
11412 if test yes = "$GCC"; then
11413 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11419 link_all_deplibs=yes
11423 if test sequent = "$host_vendor"; then
11424 # Use $CC to link under sequent, because it throws in some extra .o
11425 # files that make .init and .fini sections work.
11426 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11430 hardcode_libdir_flag_spec='-L$libdir'
11431 hardcode_direct=yes
11432 hardcode_minus_L=yes
11433 hardcode_shlibpath_var=no
11437 case $host_vendor in
11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440 hardcode_direct=yes # is this really true???
11443 ## LD is ld it makes a PLAMLIB
11444 ## CC just makes a GrossModule.
11445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11446 reload_cmds='$CC -r -o $output$reload_objs'
11450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11454 runpath_var='LD_RUN_PATH'
11455 hardcode_shlibpath_var=no
11459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11460 hardcode_shlibpath_var=no
11461 export_dynamic_flag_spec='-Bexport'
11465 if test -d /usr/nec; then
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467 hardcode_shlibpath_var=no
11468 runpath_var=LD_RUN_PATH
11469 hardcode_runpath_var=yes
11474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11475 no_undefined_flag='$wl-z,text'
11476 archive_cmds_need_lc=no
11477 hardcode_shlibpath_var=no
11478 runpath_var='LD_RUN_PATH'
11480 if test yes = "$GCC"; then
11481 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11484 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11485 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11489 sysv5* | sco3.2v5* | sco5v6*)
11490 # Note: We CANNOT use -z defs as we might desire, because we do not
11491 # link with -lc, and that would cause any symbols used from libc to
11492 # always be unresolved, which means just about no library would
11493 # ever link correctly. If we're not using GNU ld we use -z text
11494 # though, which does catch some bad symbols but isn't as heavy-handed
11496 no_undefined_flag='$wl-z,text'
11497 allow_undefined_flag='$wl-z,nodefs'
11498 archive_cmds_need_lc=no
11499 hardcode_shlibpath_var=no
11500 hardcode_libdir_flag_spec='$wl-R,$libdir'
11501 hardcode_libdir_separator=':'
11502 link_all_deplibs=yes
11503 export_dynamic_flag_spec='$wl-Bexport'
11504 runpath_var='LD_RUN_PATH'
11506 if test yes = "$GCC"; then
11507 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11508 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11511 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517 hardcode_libdir_flag_spec='-L$libdir'
11518 hardcode_shlibpath_var=no
11526 if test sni = "$host_vendor"; then
11528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11529 export_dynamic_flag_spec='$wl-Blargedynsym'
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11536 $as_echo "$ld_shlibs" >&6; }
11537 test no = "$ld_shlibs" && can_build_shared=no
11539 with_gnu_ld=$with_gnu_ld
11556 # Do we need to explicitly link libc?
11558 case "x$archive_cmds_need_lc" in
11560 # Assume -lc should be added
11561 archive_cmds_need_lc=yes
11563 if test yes,yes = "$GCC,$enable_shared"; then
11564 case $archive_cmds in
11566 # FIXME: we may have to deal with multi-command sequences.
11569 # Test whether the compiler implicitly links with -lc since on some
11570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11571 # to ld, don't add -lc before -lgcc.
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11574 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11575 $as_echo_n "(cached) " >&6
11578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11581 (eval $ac_compile) 2>&5
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } 2>conftest.err; then
11587 libobjs=conftest.$ac_objext
11589 wl=$lt_prog_compiler_wl
11590 pic_flag=$lt_prog_compiler_pic
11596 lt_save_allow_undefined_flag=$allow_undefined_flag
11597 allow_undefined_flag=
11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602 test $ac_status = 0; }
11604 lt_cv_archive_cmds_need_lc=no
11606 lt_cv_archive_cmds_need_lc=yes
11608 allow_undefined_flag=$lt_save_allow_undefined_flag
11610 cat conftest.err 1>&5
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11616 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11617 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11778 if test yes = "$GCC"; then
11780 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11781 *) lt_awk_arg='/^libraries:/' ;;
11784 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11785 *) lt_sed_strip_eq='s|=/|/|g' ;;
11787 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11788 case $lt_search_path_spec in
11790 # if the path contains ";" then we assume it to be the separator
11791 # otherwise default to the standard path separator (i.e. ":") - it is
11792 # assumed that no part of a normal pathname contains ";" but that should
11793 # okay in the real world where ";" in dirpaths is itself problematic.
11794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11800 # Ok, now we have the path, separated by spaces, we can step through it
11801 # and add multilib dir if necessary...
11802 lt_tmp_lt_search_path_spec=
11803 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11804 # ...but if some path component already ends with the multilib dir we assume
11805 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11806 case "$lt_multi_os_dir; $lt_search_path_spec " in
11807 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11811 for lt_sys_path in $lt_search_path_spec; do
11812 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11814 elif test -n "$lt_multi_os_dir"; then
11815 test -d "$lt_sys_path" && \
11816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11820 BEGIN {RS = " "; FS = "/|\n";} {
11823 for (lt_i = NF; lt_i > 0; lt_i--) {
11824 if ($lt_i != "" && $lt_i != ".") {
11825 if ($lt_i == "..") {
11828 if (lt_count == 0) {
11829 lt_foo = "/" $lt_i lt_foo;
11836 if (lt_foo != "") { lt_freq[lt_foo]++; }
11837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11839 # AWK program above erroneously prepends '/' to C:/dos/paths
11842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11843 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11849 library_names_spec=
11850 libname_spec='lib$name'
11854 postuninstall_cmds=
11858 shlibpath_overrides_runpath=unknown
11860 dynamic_linker="$host_os ld.so"
11861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11862 need_lib_prefix=unknown
11863 hardcode_into_libs=no
11865 # when you set need_version to no, make sure it does not cause -set_version
11866 # flags to be left without arguments
11867 need_version=unknown
11873 version_type=linux # correct to gnu/linux during the next big refactor
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11875 shlibpath_var=LIBPATH
11877 # AIX 3 has no versioning support, so we append a major version to the name.
11878 soname_spec='$libname$release$shared_ext$major'
11882 version_type=linux # correct to gnu/linux during the next big refactor
11885 hardcode_into_libs=yes
11886 if test ia64 = "$host_cpu"; then
11887 # AIX 5 supports IA64
11888 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11889 shlibpath_var=LD_LIBRARY_PATH
11891 # With GCC up to 2.95.x, collect2 would create an import file
11892 # for dependence libraries. The import file would start with
11893 # the line '#! .'. This would cause the generated library to
11894 # depend on '.', always an invalid library. This was fixed in
11895 # development snapshots of GCC prior to 3.0.
11897 aix4 | aix4.[01] | aix4.[01].*)
11898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11900 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11903 can_build_shared=no
11907 # Using Import Files as archive members, it is possible to support
11908 # filename-based versioning of shared library archives on AIX. While
11909 # this would work for both with and without runtime linking, it will
11910 # prevent static linking of such archives. So we do filename-based
11911 # shared library versioning with .so extension only, which is used
11912 # when both runtime linking and shared linking is enabled.
11913 # Unfortunately, runtime linking may impact performance, so we do
11914 # not want this to be the default eventually. Also, we use the
11915 # versioned .so libs for executables only if there is the -brtl
11916 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11917 # To allow for filename-based versioning support, we need to create
11918 # libNAME.so.V as an archive file, containing:
11919 # *) an Import File, referring to the versioned filename of the
11920 # archive as well as the shared archive member, telling the
11921 # bitwidth (32 or 64) of that shared object, and providing the
11922 # list of exported symbols of that shared object, eventually
11923 # decorated with the 'weak' keyword
11924 # *) the shared object with the F_LOADONLY flag set, to really avoid
11925 # it being seen by the linker.
11926 # At run time we better use the real file rather than another symlink,
11927 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11929 case $with_aix_soname,$aix_use_runtimelinking in
11930 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11931 # soname into executable. Probably we can add versioning support to
11932 # collect2, so additional links can be useful in future.
11933 aix,yes) # traditional libtool
11934 dynamic_linker='AIX unversionable lib.so'
11935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11936 # instead of lib<name>.a to let people know that these are not
11937 # typical AIX shared libraries.
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940 aix,no) # traditional AIX only
11941 dynamic_linker='AIX lib.a(lib.so.V)'
11942 # We preserve .a as extension for shared libraries through AIX4.2
11943 # and later when we are not doing run time linking.
11944 library_names_spec='$libname$release.a $libname.a'
11945 soname_spec='$libname$release$shared_ext$major'
11947 svr4,*) # full svr4 only
11948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11950 # We do not specify a path in Import Files, so LIBPATH fires.
11951 shlibpath_overrides_runpath=yes
11953 *,yes) # both, prefer svr4
11954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11956 # unpreferred sharedlib libNAME.a needs extra handling
11957 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11958 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11959 # We do not specify a path in Import Files, so LIBPATH fires.
11960 shlibpath_overrides_runpath=yes
11962 *,no) # both, prefer aix
11963 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11964 library_names_spec='$libname$release.a $libname.a'
11965 soname_spec='$libname$release$shared_ext$major'
11966 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11967 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11968 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11971 shlibpath_var=LIBPATH
11978 # Since July 2007 AmigaOS4 officially supports .so libraries.
11979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 library_names_spec='$libname.ixlibrary $libname.a'
11984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11985 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11991 library_names_spec='$libname$shared_ext'
11992 dynamic_linker="$host_os ld.so"
11993 shlibpath_var=LIBRARY_PATH
11997 version_type=linux # correct to gnu/linux during the next big refactor
11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000 soname_spec='$libname$release$shared_ext$major'
12001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12005 # the default ld.so.conf also contains /usr/contrib/lib and
12006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12007 # libtool to hard-code these into programs
12010 cygwin* | mingw* | pw32* | cegcc*)
12011 version_type=windows
12016 case $GCC,$cc_basename in
12019 library_names_spec='$libname.dll.a'
12020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12021 postinstall_cmds='base_file=`basename \$file`~
12022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12023 dldir=$destdir/`dirname \$dlpath`~
12024 test -d \$dldir || mkdir -p \$dldir~
12025 $install_prog $dir/$dlname \$dldir/$dlname~
12026 chmod a+x \$dldir/$dlname~
12027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12031 dlpath=$dir/\$dldll~
12033 shlibpath_overrides_runpath=yes
12037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12038 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12043 # MinGW DLLs use traditional 'lib' prefix
12044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12047 # pw32 DLLs use 'pw' prefix rather than 'lib'
12048 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12051 dynamic_linker='Win32 ld.exe'
12056 libname_spec='$name'
12057 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12058 library_names_spec='$libname.dll.lib'
12062 sys_lib_search_path_spec=
12065 for lt_path in $LIB
12068 # Let DOS variable expansion print the short 8.3 style file name.
12069 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12070 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12073 # Convert to MSYS style.
12074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12077 # Convert to unix form, then to dos form, then back to unix form
12078 # but this time dos style (no spaces!) so that the unix form looks
12079 # like /cygdrive/c/PROGRA~1:/cygdr...
12080 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12081 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12082 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12085 sys_lib_search_path_spec=$LIB
12086 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12087 # It is most probably a Windows format PATH.
12088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12092 # FIXME: find the short name or the path components, as spaces are
12093 # common. (e.g. "Program Files" -> "PROGRA~1")
12097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12098 postinstall_cmds='base_file=`basename \$file`~
12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12100 dldir=$destdir/`dirname \$dlpath`~
12101 test -d \$dldir || mkdir -p \$dldir~
12102 $install_prog $dir/$dlname \$dldir/$dlname'
12103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12104 dlpath=$dir/\$dldll~
12106 shlibpath_overrides_runpath=yes
12107 dynamic_linker='Win32 link.exe'
12111 # Assume MSVC wrapper
12112 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12113 dynamic_linker='Win32 ld.exe'
12116 # FIXME: first we should search . and the directory the executable is in
12120 darwin* | rhapsody*)
12121 dynamic_linker="$host_os dyld"
12122 version_type=darwin
12125 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12126 soname_spec='$libname$release$major$shared_ext'
12127 shlibpath_overrides_runpath=yes
12128 shlibpath_var=DYLD_LIBRARY_PATH
12129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12136 version_type=linux # correct to gnu/linux during the next big refactor
12139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140 soname_spec='$libname$release$shared_ext$major'
12141 shlibpath_var=LD_LIBRARY_PATH
12144 freebsd* | dragonfly*)
12145 # DragonFly does not have aout. When/if they implement a new
12146 # versioning mechanism, adjust this.
12147 if test -x /usr/bin/objformat; then
12148 objformat=`/usr/bin/objformat`
12151 freebsd[23].*) objformat=aout ;;
12152 *) objformat=elf ;;
12155 version_type=freebsd-$objformat
12156 case $version_type in
12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12159 soname_spec='$libname$release$shared_ext$major'
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12168 shlibpath_var=LD_LIBRARY_PATH
12171 shlibpath_overrides_runpath=yes
12173 freebsd3.[01]* | freebsdelf3.[01]*)
12174 shlibpath_overrides_runpath=yes
12175 hardcode_into_libs=yes
12177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12179 shlibpath_overrides_runpath=no
12180 hardcode_into_libs=yes
12182 *) # from 4.6 on, and DragonFly
12183 shlibpath_overrides_runpath=yes
12184 hardcode_into_libs=yes
12190 version_type=linux # correct to gnu/linux during the next big refactor
12193 dynamic_linker="$host_os runtime_loader"
12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195 soname_spec='$libname$release$shared_ext$major'
12196 shlibpath_var=LIBRARY_PATH
12197 shlibpath_overrides_runpath=no
12198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12199 hardcode_into_libs=yes
12202 hpux9* | hpux10* | hpux11*)
12203 # Give a soname corresponding to the major version so that dld.sl refuses to
12204 # link against other versions.
12211 hardcode_into_libs=yes
12212 dynamic_linker="$host_os dld.so"
12213 shlibpath_var=LD_LIBRARY_PATH
12214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216 soname_spec='$libname$release$shared_ext$major'
12217 if test 32 = "$HPUX_IA64_MODE"; then
12218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12219 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12222 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12227 hardcode_into_libs=yes
12228 dynamic_linker="$host_os dld.sl"
12229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232 soname_spec='$libname$release$shared_ext$major'
12233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12238 dynamic_linker="$host_os dld.sl"
12239 shlibpath_var=SHLIB_PATH
12240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242 soname_spec='$libname$release$shared_ext$major'
12245 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12246 postinstall_cmds='chmod 555 $lib'
12247 # or fails outright, so override atomically:
12248 install_override_mode=555
12252 version_type=linux # correct to gnu/linux during the next big refactor
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
12257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=no
12260 hardcode_into_libs=yes
12263 irix5* | irix6* | nonstopux*)
12265 nonstopux*) version_type=nonstopux ;;
12267 if test yes = "$lt_cv_prog_gnu_ld"; then
12268 version_type=linux # correct to gnu/linux during the next big refactor
12275 soname_spec='$libname$release$shared_ext$major'
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12278 irix5* | nonstopux*)
12279 libsuff= shlibsuff=
12282 case $LD in # libtool.m4 will add one of these switches to LD
12283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12284 libsuff= shlibsuff= libmagic=32-bit;;
12285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12286 libsuff=32 shlibsuff=N32 libmagic=N32;;
12287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12289 *) libsuff= shlibsuff= libmagic=never-match;;
12293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12294 shlibpath_overrides_runpath=no
12295 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12296 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12297 hardcode_into_libs=yes
12300 # No shared lib support for Linux oldld, aout, or coff.
12301 linux*oldld* | linux*aout* | linux*coff*)
12306 version_type=none # Android doesn't support versioned libraries.
12309 library_names_spec='$libname$release$shared_ext'
12310 soname_spec='$libname$release$shared_ext'
12312 shlibpath_var=LD_LIBRARY_PATH
12313 shlibpath_overrides_runpath=yes
12315 # This implies no fast_install, which is unacceptable.
12316 # Some rework will be needed to allow for fast_install
12317 # before this can be enabled.
12318 hardcode_into_libs=yes
12320 dynamic_linker='Android linker'
12321 # Don't embed -rpath directories since the linker doesn't support them.
12322 hardcode_libdir_flag_spec='-L$libdir'
12325 # This must be glibc/ELF.
12326 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12327 version_type=linux # correct to gnu/linux during the next big refactor
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 shlibpath_overrides_runpath=no
12336 # Some binutils ld are patched to set DT_RUNPATH
12337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12338 $as_echo_n "(cached) " >&6
12340 lt_cv_shlibpath_overrides_runpath=no
12341 save_LDFLAGS=$LDFLAGS
12342 save_libdir=$libdir
12343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12358 lt_cv_shlibpath_overrides_runpath=yes
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LDFLAGS=$save_LDFLAGS
12364 libdir=$save_libdir
12368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12370 # This implies no fast_install, which is unacceptable.
12371 # Some rework will be needed to allow for fast_install
12372 # before this can be enabled.
12373 hardcode_into_libs=yes
12375 # Ideally, we could use ldconfig to report *all* directores which are
12376 # searched for libraries, however this is still not possible. Aside from not
12377 # being certain /sbin/ldconfig is available, command
12378 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12379 # even though it is searched at run-time. Try to do the best guess by
12380 # appending ld.so.conf contents (and includes) to the search path.
12381 if test -f /etc/ld.so.conf; then
12382 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' ' '`
12383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12386 # We used to test for /lib/ld.so.1 and disable shared libraries on
12387 # powerpc, because MkLinux only supported shared libraries with the
12388 # GNU dynamic linker. Since this was broken with cross compilers,
12389 # most powerpc-linux boxes support dynamic linking these days and
12390 # people can always --disable-shared, the test was removed, and we
12391 # assume the GNU/Linux dynamic linker is in use.
12392 dynamic_linker='GNU/Linux ld.so'
12399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12402 dynamic_linker='NetBSD (a.out) ld.so'
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405 soname_spec='$libname$release$shared_ext$major'
12406 dynamic_linker='NetBSD ld.elf_so'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=yes
12410 hardcode_into_libs=yes
12414 version_type=linux # correct to gnu/linux during the next big refactor
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416 shlibpath_var=LD_LIBRARY_PATH
12417 shlibpath_overrides_runpath=yes
12424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12425 soname_spec='$libname$release$shared_ext$major'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 shlibpath_overrides_runpath=no
12428 hardcode_into_libs=yes
12429 dynamic_linker='ldqnx.so'
12432 openbsd* | bitrig*)
12434 sys_lib_dlsearch_path_spec=/usr/lib
12436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=yes
12448 libname_spec='$name'
12449 version_type=windows
12453 # OS/2 can only load a DLL with a base name of 8 characters or less.
12454 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12455 v=$($ECHO $release$versuffix | tr -d .-);
12456 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12457 $ECHO $n$v`$shared_ext'
12458 library_names_spec='${libname}_dll.$libext'
12459 dynamic_linker='OS/2 ld.exe'
12460 shlibpath_var=BEGINLIBPATH
12461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12463 postinstall_cmds='base_file=`basename \$file`~
12464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12465 dldir=$destdir/`dirname \$dlpath`~
12466 test -d \$dldir || mkdir -p \$dldir~
12467 $install_prog $dir/$dlname \$dldir/$dlname~
12468 chmod a+x \$dldir/$dlname~
12469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12473 dlpath=$dir/\$dldll~
12477 osf3* | osf4* | osf5*)
12481 soname_spec='$libname$release$shared_ext$major'
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 shlibpath_var=LD_LIBRARY_PATH
12484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12493 version_type=linux # correct to gnu/linux during the next big refactor
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 shlibpath_overrides_runpath=yes
12500 hardcode_into_libs=yes
12501 # ldd complains unless libraries are executable
12502 postinstall_cmds='chmod +x $lib'
12507 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12509 shlibpath_var=LD_LIBRARY_PATH
12510 shlibpath_overrides_runpath=yes
12511 if test yes = "$with_gnu_ld"; then
12518 version_type=linux # correct to gnu/linux during the next big refactor
12519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12520 soname_spec='$libname$release$shared_ext$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 case $host_vendor in
12524 shlibpath_overrides_runpath=no
12526 runpath_var=LD_RUN_PATH
12534 shlibpath_overrides_runpath=no
12535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12541 if test -d /usr/nec; then
12542 version_type=linux # correct to gnu/linux during the next big refactor
12543 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12544 soname_spec='$libname$shared_ext.$major'
12545 shlibpath_var=LD_LIBRARY_PATH
12549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12554 soname_spec='$libname$release$shared_ext$major'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=yes
12557 hardcode_into_libs=yes
12558 if test yes = "$with_gnu_ld"; then
12559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12561 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12564 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12568 sys_lib_dlsearch_path_spec='/usr/lib'
12572 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12573 version_type=linux # correct to gnu/linux during the next big refactor
12576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=no
12579 hardcode_into_libs=yes
12583 version_type=linux # correct to gnu/linux during the next big refactor
12584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12585 soname_spec='$libname$release$shared_ext$major'
12586 shlibpath_var=LD_LIBRARY_PATH
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12594 $as_echo "$dynamic_linker" >&6; }
12595 test no = "$dynamic_linker" && can_build_shared=no
12597 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12598 if test yes = "$GCC"; then
12599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12602 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12603 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12606 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12607 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12610 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12611 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12613 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12614 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12616 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12617 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12716 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12718 if test -n "$hardcode_libdir_flag_spec" ||
12719 test -n "$runpath_var" ||
12720 test yes = "$hardcode_automatic"; then
12722 # We can hardcode non-existent directories.
12723 if test no != "$hardcode_direct" &&
12724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12725 # have to relink, otherwise we might link with an installed library
12726 # when we should be linking with a yet-to-be-installed one
12727 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12728 test no != "$hardcode_minus_L"; then
12729 # Linking always hardcodes the temporary library directory.
12730 hardcode_action=relink
12732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12733 hardcode_action=immediate
12736 # We cannot hardcode anything, or else we can only hardcode existing
12738 hardcode_action=unsupported
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12741 $as_echo "$hardcode_action" >&6; }
12743 if test relink = "$hardcode_action" ||
12744 test yes = "$inherit_rpath"; then
12745 # Fast installation is not supported
12746 enable_fast_install=no
12747 elif test yes = "$shlibpath_overrides_runpath" ||
12748 test no = "$enable_shared"; then
12749 # Fast installation is not necessary
12750 enable_fast_install=needless
12758 if test yes != "$enable_dlopen"; then
12759 enable_dlopen=unknown
12760 enable_dlopen_self=unknown
12761 enable_dlopen_self_static=unknown
12768 lt_cv_dlopen=load_add_on
12770 lt_cv_dlopen_self=yes
12773 mingw* | pw32* | cegcc*)
12774 lt_cv_dlopen=LoadLibrary
12779 lt_cv_dlopen=dlopen
12784 # if libdl is installed we need to link against it
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12787 if ${ac_cv_lib_dl_dlopen+:} false; then :
12788 $as_echo_n "(cached) " >&6
12790 ac_check_lib_save_LIBS=$LIBS
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 ac_cv_lib_dl_dlopen=yes
12813 ac_cv_lib_dl_dlopen=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12821 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12822 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12827 lt_cv_dlopen_self=yes
12834 # Don't try to run any link tests for TPF. We know it's impossible
12835 # because TPF is a cross-compiler, and we know how we open DSOs.
12836 lt_cv_dlopen=dlopen
12838 lt_cv_dlopen_self=no
12842 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12843 if test "x$ac_cv_func_shl_load" = xyes; then :
12844 lt_cv_dlopen=shl_load
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12847 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12848 if ${ac_cv_lib_dld_shl_load+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 ac_check_lib_save_LIBS=$LIBS
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12866 return shl_load ();
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_lib_dld_shl_load=yes
12874 ac_cv_lib_dld_shl_load=no
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12881 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12882 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12883 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12885 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12886 if test "x$ac_cv_func_dlopen" = xyes; then :
12887 lt_cv_dlopen=dlopen
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12891 if ${ac_cv_lib_dl_dlopen+:} false; then :
12892 $as_echo_n "(cached) " >&6
12894 ac_check_lib_save_LIBS=$LIBS
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12914 if ac_fn_c_try_link "$LINENO"; then :
12915 ac_cv_lib_dl_dlopen=yes
12917 ac_cv_lib_dl_dlopen=no
12919 rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12925 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12926 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12929 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12930 if ${ac_cv_lib_svld_dlopen+:} false; then :
12931 $as_echo_n "(cached) " >&6
12933 ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lsvld $LIBS"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12953 if ac_fn_c_try_link "$LINENO"; then :
12954 ac_cv_lib_svld_dlopen=yes
12956 ac_cv_lib_svld_dlopen=no
12958 rm -f core conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12960 LIBS=$ac_check_lib_save_LIBS
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12963 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12964 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12965 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12968 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12969 if ${ac_cv_lib_dld_dld_link+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 ac_check_lib_save_LIBS=$LIBS
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12987 return dld_link ();
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_lib_dld_dld_link=yes
12995 ac_cv_lib_dld_dld_link=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13003 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13004 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13025 if test no = "$lt_cv_dlopen"; then
13031 case $lt_cv_dlopen in
13033 save_CPPFLAGS=$CPPFLAGS
13034 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13036 save_LDFLAGS=$LDFLAGS
13037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13040 LIBS="$lt_cv_dlopen_libs $LIBS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13044 if ${lt_cv_dlopen_self+:} false; then :
13045 $as_echo_n "(cached) " >&6
13047 if test yes = "$cross_compiling"; then :
13048 lt_cv_dlopen_self=cross
13050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13051 lt_status=$lt_dlunknown
13052 cat > conftest.$ac_ext <<_LT_EOF
13053 #line $LINENO "configure"
13054 #include "confdefs.h"
13063 # define LT_DLGLOBAL RTLD_GLOBAL
13066 # define LT_DLGLOBAL DL_GLOBAL
13068 # define LT_DLGLOBAL 0
13072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13073 find out it does not work in some platform. */
13074 #ifndef LT_DLLAZY_OR_NOW
13076 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13079 # define LT_DLLAZY_OR_NOW DL_LAZY
13082 # define LT_DLLAZY_OR_NOW RTLD_NOW
13085 # define LT_DLLAZY_OR_NOW DL_NOW
13087 # define LT_DLLAZY_OR_NOW 0
13094 /* When -fvisibility=hidden is used, assume the code has been annotated
13095 correspondingly for the symbols needed. */
13096 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13097 int fnord () __attribute__((visibility("default")));
13100 int fnord () { return 42; }
13103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13104 int status = $lt_dlunknown;
13108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13112 else puts (dlerror ());
13114 /* dlclose (self); */
13122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13123 (eval $ac_link) 2>&5
13125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13127 (./conftest; exit; ) >&5 2>/dev/null
13129 case x$lt_status in
13130 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13131 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13132 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13135 # compilation failed
13136 lt_cv_dlopen_self=no
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13144 $as_echo "$lt_cv_dlopen_self" >&6; }
13146 if test yes = "$lt_cv_dlopen_self"; then
13147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13149 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13150 if ${lt_cv_dlopen_self_static+:} false; then :
13151 $as_echo_n "(cached) " >&6
13153 if test yes = "$cross_compiling"; then :
13154 lt_cv_dlopen_self_static=cross
13156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13157 lt_status=$lt_dlunknown
13158 cat > conftest.$ac_ext <<_LT_EOF
13159 #line $LINENO "configure"
13160 #include "confdefs.h"
13169 # define LT_DLGLOBAL RTLD_GLOBAL
13172 # define LT_DLGLOBAL DL_GLOBAL
13174 # define LT_DLGLOBAL 0
13178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13179 find out it does not work in some platform. */
13180 #ifndef LT_DLLAZY_OR_NOW
13182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13185 # define LT_DLLAZY_OR_NOW DL_LAZY
13188 # define LT_DLLAZY_OR_NOW RTLD_NOW
13191 # define LT_DLLAZY_OR_NOW DL_NOW
13193 # define LT_DLLAZY_OR_NOW 0
13200 /* When -fvisibility=hidden is used, assume the code has been annotated
13201 correspondingly for the symbols needed. */
13202 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13203 int fnord () __attribute__((visibility("default")));
13206 int fnord () { return 42; }
13209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13210 int status = $lt_dlunknown;
13214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13217 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13218 else puts (dlerror ());
13220 /* dlclose (self); */
13228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13229 (eval $ac_link) 2>&5
13231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13232 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13233 (./conftest; exit; ) >&5 2>/dev/null
13235 case x$lt_status in
13236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13238 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13241 # compilation failed
13242 lt_cv_dlopen_self_static=no
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13250 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13253 CPPFLAGS=$save_CPPFLAGS
13254 LDFLAGS=$save_LDFLAGS
13259 case $lt_cv_dlopen_self in
13260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13261 *) enable_dlopen_self=unknown ;;
13264 case $lt_cv_dlopen_self_static in
13265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13266 *) enable_dlopen_self_static=unknown ;;
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13289 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13290 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13291 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13292 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13294 $as_echo "yes" >&6; }
13296 # FIXME - insert some real tests, host_os isn't really good enough
13299 if test -n "$STRIP"; then
13300 striplib="$STRIP -x"
13301 old_striplib="$STRIP -S"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13303 $as_echo "yes" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13327 # Report what library types will actually be built
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13329 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13331 $as_echo "$can_build_shared" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13334 $as_echo_n "checking whether to build shared libraries... " >&6; }
13335 test no = "$can_build_shared" && enable_shared=no
13337 # On AIX, shared libraries and static libraries use the same namespace, and
13338 # are all built from PIC.
13341 test yes = "$enable_shared" && enable_static=no
13342 if test -n "$RANLIB"; then
13343 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13344 postinstall_cmds='$RANLIB $lib'
13349 if test ia64 != "$host_cpu"; then
13350 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13351 yes,aix,yes) ;; # shared object as lib.so file only
13352 yes,svr4,*) ;; # shared object as lib.so archive member only
13353 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13359 $as_echo "$enable_shared" >&6; }
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13362 $as_echo_n "checking whether to build static libraries... " >&6; }
13363 # Make sure either enable_shared or enable_static is yes.
13364 test yes = "$enable_shared" || enable_static=yes
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13366 $as_echo "$enable_static" >&6; }
13373 ac_cpp='$CPP $CPPFLAGS'
13374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394 ac_config_commands="$ac_config_commands libtool"
13399 # Only expand once:
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13403 $as_echo_n "checking whether ln -s works... " >&6; }
13405 if test "$LN_S" = "ln -s"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13410 $as_echo "no, using $LN_S" >&6; }
13415 # Check whether --with-build-date was given.
13416 if test "${with_build_date+set}" = set; then :
13417 withval=$with_build_date; BUILD="$with_build_date"
13419 BUILD=`date +%Y%m%d`
13423 # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
13424 # being created, and thus we install things into specific locations.
13426 old_prefix=${prefix}
13427 if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then
13428 prefix=$ac_default_prefix
13430 DATADIR=`eval echo ${datadir}`
13431 DATADIR=`eval echo $DATADIR`
13432 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
13433 datadir='${prefix}'
13435 DATADIR=`eval echo ${datarootdir}`
13436 DATADIR=`eval echo $DATADIR`
13437 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
13438 datarootdir='${prefix}'
13440 DOCDIR=`eval echo ${docdir}`
13441 DOCDIR=`eval echo $DOCDIR`
13442 if test "$DOCDIR" = "/opt/libjpeg-turbo/doc/libjpeg-turbo"; then
13443 docdir='${datadir}/doc'
13446 old_exec_prefix=${exec_prefix}
13447 if test "x$exec_prefix" = "xNONE"; then
13448 exec_prefix=${prefix}
13451 # The cast to long int works around a bug in the HP C Compiler
13452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13454 # This bug is HP SR number 8606223364.
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13456 $as_echo_n "checking size of size_t... " >&6; }
13457 if ${ac_cv_sizeof_size_t+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13463 if test "$ac_cv_type_size_t" = yes; then
13464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13466 as_fn_error 77 "cannot compute sizeof (size_t)
13467 See \`config.log' for more details" "$LINENO" 5; }
13469 ac_cv_sizeof_size_t=0
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13475 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13479 cat >>confdefs.h <<_ACEOF
13480 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13485 if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then
13486 LIBDIR=`eval echo ${libdir}`
13487 LIBDIR=`eval echo $LIBDIR`
13488 if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then
13493 if test "${ac_cv_sizeof_size_t}" = "8"; then
13494 libdir='${exec_prefix}/lib64'
13495 elif test "${ac_cv_sizeof_size_t}" = "4"; then
13496 libdir='${exec_prefix}/lib32'
13502 exec_prefix=${old_exec_prefix}
13503 prefix=${old_prefix}
13505 # Check whether compiler supports pointers to undefined structures
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointers to undefined structures" >&5
13507 $as_echo_n "checking whether compiler supports pointers to undefined structures... " >&6; }
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 typedef struct undefined_structure * undef_struct_ptr;
13519 if ac_fn_c_try_compile "$LINENO"; then :
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13521 $as_echo "yes" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13526 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 if test "x${GCC}" = "xyes"; then
13532 if test "x${SAVED_CFLAGS}" = "x"; then
13535 if test "x${SAVED_CPPFLAGS}" = "x"; then
13540 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13541 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13547 if test "x${SUNCC}" = "xyes"; then
13548 if test "x${SAVED_CFLAGS}" = "x"; then
13553 # Checks for libraries.
13555 # Checks for header files.
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13557 $as_echo_n "checking for ANSI C header files... " >&6; }
13558 if ${ac_cv_header_stdc+:} false; then :
13559 $as_echo_n "(cached) " >&6
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <stdlib.h>
13564 #include <stdarg.h>
13565 #include <string.h>
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577 ac_cv_header_stdc=yes
13579 ac_cv_header_stdc=no
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 if test $ac_cv_header_stdc = yes; then
13584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 #include <string.h>
13590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13591 $EGREP "memchr" >/dev/null 2>&1; then :
13594 ac_cv_header_stdc=no
13600 if test $ac_cv_header_stdc = yes; then
13601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 #include <stdlib.h>
13607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13608 $EGREP "free" >/dev/null 2>&1; then :
13611 ac_cv_header_stdc=no
13617 if test $ac_cv_header_stdc = yes; then
13618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13619 if test "$cross_compiling" = yes; then :
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13625 #include <stdlib.h>
13626 #if ((' ' & 0x0FF) == 0x020)
13627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13630 # define ISLOWER(c) \
13631 (('a' <= (c) && (c) <= 'i') \
13632 || ('j' <= (c) && (c) <= 'r') \
13633 || ('s' <= (c) && (c) <= 'z'))
13634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13642 for (i = 0; i < 256; i++)
13643 if (XOR (islower (i), ISLOWER (i))
13644 || toupper (i) != TOUPPER (i))
13649 if ac_fn_c_try_run "$LINENO"; then :
13652 ac_cv_header_stdc=no
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13655 conftest.$ac_objext conftest.beam conftest.$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13661 $as_echo "$ac_cv_header_stdc" >&6; }
13662 if test $ac_cv_header_stdc = yes; then
13664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13668 for ac_header in stddef.h stdlib.h locale.h string.h
13670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13673 cat >>confdefs.h <<_ACEOF
13674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13681 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_sys_types_h" = xyes; then :
13684 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
13690 # Checks for typedefs, structures, and compiler characteristics.
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13692 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13693 if ${ac_cv_c_const+:} false; then :
13694 $as_echo_n "(cached) " >&6
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13703 #ifndef __cplusplus
13704 /* Ultrix mips cc rejects this sort of thing. */
13705 typedef int charset[2];
13706 const charset cs = { 0, 0 };
13707 /* SunOS 4.1.1 cc rejects this. */
13708 char const *const *pcpcc;
13710 /* NEC SVR4.0.2 mips cc rejects this. */
13711 struct point {int x, y;};
13712 static struct point const zero = {0,0};
13713 /* AIX XL C 1.02.0.0 rejects this.
13714 It does not let you subtract one const X* pointer from another in
13715 an arm of an if-expression whose if-part is not a constant
13717 const char *g = "string";
13718 pcpcc = &g + (g ? g-g : 0);
13719 /* HPUX 7.0 cc rejects these. */
13721 ppc = (char**) pcpcc;
13722 pcpcc = (char const *const *) ppc;
13723 { /* SCO 3.2v4 cc rejects this sort of thing. */
13726 char const *s = 0 ? (char *) 0 : (char const *) 0;
13731 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13732 int x[] = {25, 17};
13733 const int *foo = &x[0];
13736 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13737 typedef const int *iptr;
13741 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13742 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13743 struct s { int j; const int *ap[3]; } bx;
13744 struct s *b = &bx; b->j = 5;
13746 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13747 const int foo = 10;
13748 if (!foo) return 0;
13750 return !cs[0] && !zero.x;
13757 if ac_fn_c_try_compile "$LINENO"; then :
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13765 $as_echo "$ac_cv_c_const" >&6; }
13766 if test $ac_cv_c_const = no; then
13768 $as_echo "#define const /**/" >>confdefs.h
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13773 $as_echo_n "checking whether char is unsigned... " >&6; }
13774 if ${ac_cv_c_char_unsigned+:} false; then :
13775 $as_echo_n "(cached) " >&6
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 $ac_includes_default
13783 static int test_array [1 - 2 * !(((char) -1) < 0)];
13784 test_array [0] = 0;
13785 return test_array [0];
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792 ac_cv_c_char_unsigned=no
13794 ac_cv_c_char_unsigned=yes
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13799 $as_echo "$ac_cv_c_char_unsigned" >&6; }
13800 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13801 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13806 $as_echo_n "checking for inline... " >&6; }
13807 if ${ac_cv_c_inline+:} false; then :
13808 $as_echo_n "(cached) " >&6
13811 for ac_kw in inline __inline__ __inline; do
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #ifndef __cplusplus
13816 static $ac_kw foo_t static_foo () {return 0; }
13817 $ac_kw foo_t foo () {return 0; }
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 ac_cv_c_inline=$ac_kw
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 test "$ac_cv_c_inline" != no && break
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13830 $as_echo "$ac_cv_c_inline" >&6; }
13832 case $ac_cv_c_inline in
13835 case $ac_cv_c_inline in
13837 *) ac_val=$ac_cv_c_inline;;
13839 cat >>confdefs.h <<_ACEOF
13840 #ifndef __cplusplus
13841 #define inline $ac_val
13847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13848 if test "x$ac_cv_type_size_t" = xyes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define size_t unsigned int
13858 ac_fn_c_check_type "$LINENO" "unsigned char" "ac_cv_type_unsigned_char" "$ac_includes_default"
13859 if test "x$ac_cv_type_unsigned_char" = xyes; then :
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_UNSIGNED_CHAR 1
13867 ac_fn_c_check_type "$LINENO" "unsigned short" "ac_cv_type_unsigned_short" "$ac_includes_default"
13868 if test "x$ac_cv_type_unsigned_short" = xyes; then :
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_UNSIGNED_SHORT 1
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if right shift is signed" >&5
13879 $as_echo_n "checking if right shift is signed... " >&6; }
13880 if test "$cross_compiling" = yes; then :
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
13882 $as_echo "Assuming that right shift is signed on target machine." >&6; }
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13887 int is_shifting_signed (long arg) {
13888 long res = arg >> 4;
13890 if (res == -0x7F7E80CL)
13891 return 1; /* right shift is signed */
13893 /* see if unsigned-shift hack will fix it. */
13894 /* we can't just test exact value since it depends on width of long... */
13895 res |= (~0L) << (32-4);
13896 if (res == -0x7F7E80CL)
13897 return 0; /* right shift is unsigned */
13899 printf("Right shift isn't acting as I expect it to.\n");
13900 printf("I fear the JPEG software will not work at all.\n\n");
13901 return 0; /* try it with unsigned anyway */
13904 exit(is_shifting_signed(-0x7F7E80B1L));
13907 if ac_fn_c_try_run "$LINENO"; then :
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13911 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13915 $as_echo "yes" >&6; }
13917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13918 conftest.$ac_objext conftest.beam conftest.$ac_ext
13922 # Checks for library functions.
13923 for ac_func in memset memcpy
13925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13928 cat >>confdefs.h <<_ACEOF
13929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13934 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg API version" >&5
13941 $as_echo_n "checking libjpeg API version... " >&6; }
13943 if test "x$JPEG_LIB_VERSION" = "x"; then
13945 # Check whether --with-jpeg7 was given.
13946 if test "${with_jpeg7+set}" = set; then :
13947 withval=$with_jpeg7;
13951 # Check whether --with-jpeg8 was given.
13952 if test "${with_jpeg8+set}" = set; then :
13953 withval=$with_jpeg8;
13956 if test "x${with_jpeg8}" = "xyes"; then
13957 JPEG_LIB_VERSION=80
13959 if test "x${with_jpeg7}" = "xyes"; then
13960 JPEG_LIB_VERSION=70
13962 JPEG_LIB_VERSION=62
13966 JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION_DECIMAL" >&5
13969 $as_echo "$JPEG_LIB_VERSION_DECIMAL" >&6; }
13971 cat >>confdefs.h <<_ACEOF
13972 #define JPEG_LIB_VERSION $JPEG_LIB_VERSION
13978 if test "x$SO_MAJOR_VERSION" = "x"; then
13979 case "$JPEG_LIB_VERSION" in
13980 62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
13981 *) SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;;
13984 if test "x$SO_MINOR_VERSION" = "x"; then
13985 case "$JPEG_LIB_VERSION" in
13986 80) SO_MINOR_VERSION=2 ;;
13987 *) SO_MINOR_VERSION=0 ;;
13993 # Memory source/destination managers
13995 MEM_SRCDST_FUNCTIONS=
13996 if test "x${with_jpeg8}" != "xyes"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include in-memory source/destination managers" >&5
13998 $as_echo_n "checking whether to include in-memory source/destination managers... " >&6; }
14000 # Check whether --with-mem-srcdst was given.
14001 if test "${with_mem_srcdst+set}" = set; then :
14002 withval=$with_mem_srcdst;
14005 if test "x$with_mem_srcdst" != "xno"; then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14009 $as_echo "#define MEM_SRCDST_SUPPORTED 1" >>confdefs.h
14012 MEM_SRCDST_FUNCTIONS="global: jpeg_mem_dest; jpeg_mem_src;";
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst"
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg shared library version" >&5
14021 $as_echo_n "checking libjpeg shared library version... " >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&5
14023 $as_echo "$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&6; }
14024 LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE`
14032 cat >>confdefs.h <<_ACEOF
14033 #define LIBJPEG_TURBO_VERSION $VERSION
14038 # Check whether --enable-ld-version-script was given.
14039 if test "${enable_ld_version_script+set}" = set; then :
14040 enableval=$enable_ld_version_script; VERSION_SCRIPT=$enableval
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports version scripts" >&5
14045 $as_echo_n "checking whether the linker supports version scripts... " >&6; }
14046 SAVED_LDFLAGS="$LDFLAGS"
14047 LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
14048 cat > conftest.map <<EOF
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 VERSION_SCRIPT_FLAG=-Wl,--version-script,;
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (GNU style)" >&5
14067 $as_echo "yes (GNU style)" >&6; }
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
14072 LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14084 if ac_fn_c_try_link "$LINENO"; then :
14085 VERSION_SCRIPT_FLAG=-Wl,-M,;
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (Sun style)" >&5
14087 $as_echo "yes (Sun style)" >&6; }
14089 rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14092 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14097 LDFLAGS="$SAVED_LDFLAGS"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use version script when building libjpeg-turbo" >&5
14100 $as_echo_n "checking whether to use version script when building libjpeg-turbo... " >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_SCRIPT" >&5
14102 $as_echo "$VERSION_SCRIPT" >&6; }
14104 if test "x$VERSION_SCRIPT" = "xyes"; then
14105 VERSION_SCRIPT_TRUE=
14106 VERSION_SCRIPT_FALSE='#'
14108 VERSION_SCRIPT_TRUE='#'
14109 VERSION_SCRIPT_FALSE=
14114 # Check for non-broken inline under various spellings
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14116 $as_echo_n "checking for inline... " >&6; }
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14124 } inline __attribute__((always_inline)) int foo() { return 0; }
14125 int bar() { return foo();
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 ljt_cv_inline="inline __attribute__((always_inline))"
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14139 } __inline__ int foo() { return 0; }
14140 int bar() { return foo();
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146 ljt_cv_inline="__inline__"
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14154 } __inline int foo() { return 0; }
14155 int bar() { return foo();
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 ljt_cv_inline="__inline"
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14169 } inline int foo() { return 0; }
14170 int bar() { return foo();
14175 if ac_fn_c_try_compile "$LINENO"; then :
14176 ljt_cv_inline="inline"
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ljt_cv_inline" >&5
14186 $as_echo "$ljt_cv_inline" >&6; }
14188 cat >>confdefs.h <<_ACEOF
14189 #define INLINE $ljt_cv_inline
14193 # Arithmetic coding support
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include arithmetic encoding support" >&5
14195 $as_echo_n "checking whether to include arithmetic encoding support... " >&6; }
14197 # Check whether --with-arith-enc was given.
14198 if test "${with_arith_enc+set}" = set; then :
14199 withval=$with_arith_enc;
14202 if test "x$with_12bit" = "xyes"; then
14205 if test "x$with_arith_enc" = "xno"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14208 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
14211 $as_echo "#define C_ARITH_CODING_SUPPORTED 1" >>confdefs.h
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14214 $as_echo "yes" >&6; }
14216 if test "x$with_arith_enc" != "xno"; then
14217 WITH_ARITH_ENC_TRUE=
14218 WITH_ARITH_ENC_FALSE='#'
14220 WITH_ARITH_ENC_TRUE='#'
14221 WITH_ARITH_ENC_FALSE=
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include arithmetic decoding support" >&5
14226 $as_echo_n "checking whether to include arithmetic decoding support... " >&6; }
14228 # Check whether --with-arith-dec was given.
14229 if test "${with_arith_dec+set}" = set; then :
14230 withval=$with_arith_dec;
14233 if test "x$with_12bit" = "xyes"; then
14236 if test "x$with_arith_dec" = "xno"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14239 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
14242 $as_echo "#define D_ARITH_CODING_SUPPORTED 1" >>confdefs.h
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245 $as_echo "yes" >&6; }
14247 if test "x$with_arith_dec" != "xno"; then
14248 WITH_ARITH_DEC_TRUE=
14249 WITH_ARITH_DEC_FALSE='#'
14251 WITH_ARITH_DEC_TRUE='#'
14252 WITH_ARITH_DEC_FALSE=
14256 if test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"; then
14258 WITH_ARITH_FALSE='#'
14260 WITH_ARITH_TRUE='#'
14265 # 12-bit component support
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use 12-bit samples" >&5
14267 $as_echo_n "checking whether to use 12-bit samples... " >&6; }
14269 # Check whether --with-12bit was given.
14270 if test "${with_12bit+set}" = set; then :
14271 withval=$with_12bit;
14274 if test "x$with_12bit" = "xyes"; then
14276 $as_echo "#define BITS_IN_JSAMPLE 12" >>confdefs.h
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14279 $as_echo "yes" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14284 if test "x$with_12bit" = "xyes"; then
14286 WITH_12BIT_FALSE='#'
14288 WITH_12BIT_TRUE='#'
14293 # TurboJPEG support
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build TurboJPEG C wrapper" >&5
14295 $as_echo_n "checking whether to build TurboJPEG C wrapper... " >&6; }
14297 # Check whether --with-turbojpeg was given.
14298 if test "${with_turbojpeg+set}" = set; then :
14299 withval=$with_turbojpeg;
14302 if test "x$with_12bit" = "xyes"; then
14305 if test "x$with_turbojpeg" = "xno"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 $as_echo "no" >&6; }
14308 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14316 if test "x$JAVAC" = "x"; then
14323 if test "x$JAR" = "x"; then
14328 if test "x$JAVA" = "x"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build TurboJPEG Java wrapper" >&5
14335 $as_echo_n "checking whether to build TurboJPEG Java wrapper... " >&6; }
14337 # Check whether --with-java was given.
14338 if test "${with_java+set}" = set; then :
14339 withval=$with_java;
14342 if test "x$with_12bit" = "xyes" -o "x$with_turbojpeg" = "xno"; then
14347 if test "x$with_java" = "xyes"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14353 DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
14356 DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
14359 DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux'
14362 if test "x$JNI_CFLAGS" = "x"; then
14363 JNI_CFLAGS=$DEFAULT_JNI_CFLAGS
14366 SAVE_CPPFLAGS=${CPPFLAGS}
14367 CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}"
14368 for ac_header in jni.h
14370 ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
14371 if test "x$ac_cv_header_jni_h" = xyes; then :
14372 cat >>confdefs.h <<_ACEOF
14373 #define HAVE_JNI_H 1
14377 as_fn_error $? "Could not find JNI header file" "$LINENO" 5
14382 CPPFLAGS=${SAVE_CPPFLAGS}
14385 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java"
14386 JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes'
14387 JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14393 if test "x$with_java" = "xyes"; then
14395 WITH_JAVA_FALSE='#'
14405 # optionally force using gas-preprocessor.pl for compatibility testing
14407 # Check whether --with-gas-preprocessor was given.
14408 if test "${with_gas_preprocessor+set}" = set; then :
14409 withval=$with_gas_preprocessor;
14412 if test "x${with_gas_preprocessor}" = "xyes"; then
14415 CCAS="gas-preprocessor.pl -fix-unreq $CC"
14418 CCAS="gas-preprocessor.pl -no-fix-unreq $CC"
14426 # Check whether --with-simd was given.
14427 if test "${with_simd+set}" = set; then :
14428 withval=$with_simd;
14431 if test "x$with_12bit" = "xyes"; then
14434 if test "x${with_simd}" != "xno"; then
14436 if test "x${with_simd}" = "xyes"; then
14439 # Check if we're on a supported CPU
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have SIMD optimisations for cpu type" >&5
14441 $as_echo_n "checking if we have SIMD optimisations for cpu type... " >&6; }
14442 case "$host_cpu" in
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (x86_64)" >&5
14445 $as_echo "yes (x86_64)" >&6; }
14448 for ac_prog in nasm nasmw yasm
14450 # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy $ac_prog; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_NASM+:} false; then :
14455 $as_echo_n "(cached) " >&6
14457 if test -n "$NASM"; then
14458 ac_cv_prog_NASM="$NASM" # Let the user override the test.
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_NASM="$ac_prog"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 NASM=$ac_cv_prog_NASM
14478 if test -n "$NASM"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
14480 $as_echo "$NASM" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14487 test -n "$NASM" && break
14490 test -z "$NASM" && as_fn_error $? "no nasm (Netwide Assembler) found" "$LINENO" 5
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format of host system" >&5
14493 $as_echo_n "checking for object file format of host system... " >&6; }
14495 cygwin* | mingw* | pw32* | interix*)
14496 case "$host_cpu" in
14498 objfmt='Win64-COFF'
14501 objfmt='Win32-COFF'
14505 msdosdjgpp* | go32*)
14508 os2-emx*) # not tested
14509 objfmt='MSOMF' # obj
14511 linux*coff* | linux*oldld*)
14512 objfmt='COFF' # ???
14518 case "$host_cpu" in
14527 kfreebsd* | freebsd* | netbsd* | openbsd*)
14528 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14531 case "$host_cpu" in
14541 solaris* | sunos* | sysv* | sco*)
14542 case "$host_cpu" in
14551 darwin* | rhapsody* | nextstep* | openstep* | macos*)
14552 case "$host_cpu" in
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objfmt" >&5
14567 $as_echo "$objfmt" >&6; }
14568 if test "$objfmt" = 'ELF ?'; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
14571 $as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format specifier (NAFLAGS) " >&5
14575 $as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
14577 MSOMF) NAFLAGS='-fobj -DOBJ32';;
14578 Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
14579 Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
14580 COFF) NAFLAGS='-fcoff -DCOFF';;
14581 a.out) NAFLAGS='-faout -DAOUT';;
14582 BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
14583 ELF) NAFLAGS='-felf -DELF';;
14584 ELF64) NAFLAGS='-felf64 -DELF -D__x86_64__';;
14585 RDF) NAFLAGS='-frdf -DRDF';;
14586 Mach-O) NAFLAGS='-fmacho -DMACHO';;
14587 Mach-O64) NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAFLAGS" >&5
14590 $as_echo "$NAFLAGS" >&6; }
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler ($NASM $NAFLAGS) works" >&5
14594 $as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
14595 cat > conftest.asm <<EOF
14596 %line 14596 "configure"
14603 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
14604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14605 (eval $try_nasm) 2>&5
14607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608 test $ac_status = 0; } && test -s conftest.o; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14610 $as_echo "yes" >&6; }
14612 echo "configure: failed program was:" >&5
14613 cat conftest.asm >&5
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617 as_fn_error $? "installation or configuration problem: assembler cannot create object files." "$LINENO" 5
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts assembler output" >&5
14621 $as_echo_n "checking whether the linker accepts assembler output... " >&6; }
14622 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
14623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14624 (eval $try_nasm) 2>&5
14626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14627 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14630 $as_echo "yes" >&6; }
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635 as_fn_error $? "configuration problem: maybe object file format mismatch." "$LINENO" 5
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (i386)" >&5
14643 $as_echo "yes (i386)" >&6; }
14646 for ac_prog in nasm nasmw yasm
14648 # Extract the first word of "$ac_prog", so it can be a program name with args.
14649 set dummy $ac_prog; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if ${ac_cv_prog_NASM+:} false; then :
14653 $as_echo_n "(cached) " >&6
14655 if test -n "$NASM"; then
14656 ac_cv_prog_NASM="$NASM" # Let the user override the test.
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665 ac_cv_prog_NASM="$ac_prog"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14675 NASM=$ac_cv_prog_NASM
14676 if test -n "$NASM"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
14678 $as_echo "$NASM" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14685 test -n "$NASM" && break
14688 test -z "$NASM" && as_fn_error $? "no nasm (Netwide Assembler) found" "$LINENO" 5
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format of host system" >&5
14691 $as_echo_n "checking for object file format of host system... " >&6; }
14693 cygwin* | mingw* | pw32* | interix*)
14694 case "$host_cpu" in
14696 objfmt='Win64-COFF'
14699 objfmt='Win32-COFF'
14703 msdosdjgpp* | go32*)
14706 os2-emx*) # not tested
14707 objfmt='MSOMF' # obj
14709 linux*coff* | linux*oldld*)
14710 objfmt='COFF' # ???
14716 case "$host_cpu" in
14725 kfreebsd* | freebsd* | netbsd* | openbsd*)
14726 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14729 case "$host_cpu" in
14739 solaris* | sunos* | sysv* | sco*)
14740 case "$host_cpu" in
14749 darwin* | rhapsody* | nextstep* | openstep* | macos*)
14750 case "$host_cpu" in
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objfmt" >&5
14765 $as_echo "$objfmt" >&6; }
14766 if test "$objfmt" = 'ELF ?'; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
14769 $as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for object file format specifier (NAFLAGS) " >&5
14773 $as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
14775 MSOMF) NAFLAGS='-fobj -DOBJ32';;
14776 Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
14777 Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
14778 COFF) NAFLAGS='-fcoff -DCOFF';;
14779 a.out) NAFLAGS='-faout -DAOUT';;
14780 BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
14781 ELF) NAFLAGS='-felf -DELF';;
14782 ELF64) NAFLAGS='-felf64 -DELF -D__x86_64__';;
14783 RDF) NAFLAGS='-frdf -DRDF';;
14784 Mach-O) NAFLAGS='-fmacho -DMACHO';;
14785 Mach-O64) NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAFLAGS" >&5
14788 $as_echo "$NAFLAGS" >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler ($NASM $NAFLAGS) works" >&5
14792 $as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
14793 cat > conftest.asm <<EOF
14794 %line 14794 "configure"
14801 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
14802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14803 (eval $try_nasm) 2>&5
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; } && test -s conftest.o; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14808 $as_echo "yes" >&6; }
14810 echo "configure: failed program was:" >&5
14811 cat conftest.asm >&5
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 $as_echo "no" >&6; }
14815 as_fn_error $? "installation or configuration problem: assembler cannot create object files." "$LINENO" 5
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts assembler output" >&5
14819 $as_echo_n "checking whether the linker accepts assembler output... " >&6; }
14820 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
14821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$try_nasm\""; } >&5
14822 (eval $try_nasm) 2>&5
14824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14825 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14828 $as_echo "yes" >&6; }
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14833 as_fn_error $? "configuration problem: maybe object file format mismatch." "$LINENO" 5
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (arm)" >&5
14841 $as_echo "yes (arm)" >&6; }
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14843 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14845 ac_good_gnu_arm_assembler=no
14847 ac_save_CFLAGS="$CFLAGS"
14848 CFLAGS="$CCASFLAGS -x assembler-with-cpp"
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 ac_good_gnu_arm_assembler=yes
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 ac_use_gas_preprocessor=no
14867 if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
14868 CC="gas-preprocessor.pl $CCAS"
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881 ac_use_gas_preprocessor=yes
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 CFLAGS="$ac_save_CFLAGS"
14888 if test "x$ac_use_gas_preprocessor" = "xyes" ; then
14889 CCAS="gas-preprocessor.pl $CCAS"
14891 ac_good_gnu_arm_assembler=yes
14894 if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
14895 if test "x$ac_use_gas_preprocessor" = "xyes"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (with gas-preprocessor)" >&5
14897 $as_echo "yes (with gas-preprocessor)" >&6; }
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14900 $as_echo "yes" >&6; }
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905 $as_echo "no" >&6; }
14909 if test "x${with_simd}" = "xno"; then
14910 if test "x${require_simd}" = "xyes"; then
14911 as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled. Performance will suffer." >&5
14914 $as_echo "$as_me: WARNING: SIMD support can't be enabled. Performance will suffer." >&2;}
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (arm64)" >&5
14920 $as_echo "yes (arm64)" >&6; }
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14922 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14924 ac_good_gnu_arm_assembler=no
14926 ac_save_CFLAGS="$CFLAGS"
14927 CFLAGS="$CCASFLAGS -x assembler-with-cpp"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14933 .arch armv8-a+fp+simd
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937 ac_good_gnu_arm_assembler=yes
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 ac_use_gas_preprocessor=no
14942 if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
14943 CC="gas-preprocessor.pl $CCAS"
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14948 .arch armv8-a+fp+simd
14951 if ac_fn_c_try_compile "$LINENO"; then :
14952 ac_use_gas_preprocessor=yes
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 CFLAGS="$ac_save_CFLAGS"
14959 if test "x$ac_use_gas_preprocessor" = "xyes" ; then
14960 CCAS="gas-preprocessor.pl $CCAS"
14962 ac_good_gnu_arm_assembler=yes
14965 if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
14966 if test "x$ac_use_gas_preprocessor" = "xyes"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (with gas-preprocessor)" >&5
14968 $as_echo "yes (with gas-preprocessor)" >&6; }
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14971 $as_echo "yes" >&6; }
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14980 if test "x${with_simd}" = "xno"; then
14981 if test "x${require_simd}" = "xyes"; then
14982 as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled. Performance will suffer." >&5
14985 $as_echo "$as_me: WARNING: SIMD support can't be enabled. Performance will suffer." >&2;}
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (mips)" >&5
14991 $as_echo "yes (mips)" >&6; }
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler is GNU-compatible and can be used" >&5
14993 $as_echo_n "checking if the assembler is GNU-compatible and can be used... " >&6; }
14996 ac_save_CFLAGS="$CFLAGS"
14997 CFLAGS="$CCASFLAGS -mdspr2"
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15005 int c = 0, a = 0, b = 0;
15006 __asm__ __volatile__ (
15007 "precr.qb.ph %[c], %[a], %[b] \n\t"
15009 : [a] "r" (a), [b] "r" (b)
15015 if ac_fn_c_try_compile "$LINENO"; then :
15016 have_mips_dspr2=yes
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 CFLAGS=$ac_save_CFLAGS
15021 if test "x$have_mips_dspr2" = "xyes" ; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 $as_echo "yes" >&6; }
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15031 if test "x${with_simd}" = "xno"; then
15032 if test "x${require_simd}" = "xyes"; then
15033 as_fn_error $? "SIMD support can't be enabled." "$LINENO" 5
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support can't be enabled. Performance will suffer." >&5
15036 $as_echo "$as_me: WARNING: SIMD support can't be enabled. Performance will suffer." >&2;}
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (\"$host_cpu\")" >&5
15042 $as_echo "no (\"$host_cpu\")" >&6; }
15044 if test "x${require_simd}" = "xyes"; then
15045 as_fn_error $? "SIMD support not available for this CPU." "$LINENO" 5
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SIMD support not available for this CPU. Performance will suffer." >&5
15048 $as_echo "$as_me: WARNING: SIMD support not available for this CPU. Performance will suffer." >&2;}
15053 if test "x${with_simd}" != "xno"; then
15055 $as_echo "#define WITH_SIMD 1" >>confdefs.h
15059 RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd"
15062 if test "x$with_simd" != "xno"; then
15064 WITH_SIMD_FALSE='#'
15070 if test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"; then
15071 WITH_SSE_FLOAT_DCT_TRUE=
15072 WITH_SSE_FLOAT_DCT_FALSE='#'
15074 WITH_SSE_FLOAT_DCT_TRUE='#'
15075 WITH_SSE_FLOAT_DCT_FALSE=
15078 if test "x$simd_arch" = "xi386"; then
15080 SIMD_I386_FALSE='#'
15086 if test "x$simd_arch" = "xx86_64"; then
15088 SIMD_X86_64_FALSE='#'
15090 SIMD_X86_64_TRUE='#'
15094 if test "x$simd_arch" = "xarm"; then
15102 if test "x$simd_arch" = "xaarch64"; then
15104 SIMD_ARM_64_FALSE='#'
15106 SIMD_ARM_64_TRUE='#'
15110 if test "x$simd_arch" = "xmips"; then
15112 SIMD_MIPS_FALSE='#'
15118 if test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"; then
15126 if test "x$with_turbojpeg" != "xno"; then
15127 WITH_TURBOJPEG_TRUE=
15128 WITH_TURBOJPEG_FALSE='#'
15130 WITH_TURBOJPEG_TRUE='#'
15131 WITH_TURBOJPEG_FALSE=
15136 if test "x$PKGNAME" = "x"; then
15137 PKGNAME=$PACKAGE_NAME
15141 case "$host_cpu" in
15156 if test "${docdir}" = ""; then
15157 docdir=${datadir}/doc
15166 cat >>confdefs.h <<_ACEOF
15167 #define BUILD "$BUILD"
15171 # NOTE: autoheader automatically modifies the input file of the first
15172 # invocation of AC_CONFIG_HEADERS, so we put config.h first to prevent
15173 # jconfig.h.in from being clobbered. config.h is used only internally, whereas
15174 # jconfig.h contains macros that are relevant to external programs (macros that
15175 # specify which features were built into the library.)
15176 ac_config_headers="$ac_config_headers config.h"
15178 ac_config_headers="$ac_config_headers jconfig.h"
15180 ac_config_headers="$ac_config_headers jconfigint.h"
15182 ac_config_files="$ac_config_files pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in"
15184 ac_config_files="$ac_config_files pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in"
15186 ac_config_files="$ac_config_files pkgscripts/makedpkg.tmpl:release/makedpkg.in"
15188 ac_config_files="$ac_config_files pkgscripts/makemacpkg.tmpl:release/makemacpkg.in"
15190 ac_config_files="$ac_config_files pkgscripts/uninstall.tmpl:release/uninstall.in"
15192 if test "x$with_turbojpeg" != "xno"; then
15193 ac_config_files="$ac_config_files tjbenchtest"
15196 if test "x$with_java" = "xyes"; then
15197 ac_config_files="$ac_config_files tjbenchtest.java"
15199 ac_config_files="$ac_config_files tjexampletest"
15202 ac_config_files="$ac_config_files libjpeg.map"
15204 ac_config_files="$ac_config_files Makefile simd/Makefile"
15206 ac_config_files="$ac_config_files java/Makefile"
15208 ac_config_files="$ac_config_files md5/Makefile"
15210 cat >confcache <<\_ACEOF
15211 # This file is a shell script that caches the results of configure
15212 # tests run on this system so they can be shared between configure
15213 # scripts and configure runs, see configure's option --config-cache.
15214 # It is not useful on other systems. If it contains results you don't
15215 # want to keep, you may remove or edit it.
15217 # config.status only pays attention to the cache file if you give it
15218 # the --recheck option to rerun configure.
15220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15222 # following values.
15226 # The following way of writing the cache mishandles newlines in values,
15227 # but we know of no workaround that is simple, portable, and efficient.
15228 # So, we kill variables containing newlines.
15229 # Ultrix sh set writes to stderr and can't be redirected directly,
15230 # and sets the high bit in the cache file unless we assign to the vars.
15232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15233 eval ac_val=\$$ac_var
15237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15241 _ | IFS | as_nl) ;; #(
15242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15243 *) { eval $ac_var=; unset $ac_var;} ;;
15249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15250 *${as_nl}ac_space=\ *)
15251 # `set' does not quote correctly, so add quotes: double-quote
15252 # substitution turns \\\\ into \\, and sed turns \\ into \.
15255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15258 # `set' quotes correctly as required by POSIX, so do not add quotes.
15259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15273 if test -w "$cache_file"; then
15274 if test "x$cache_file" != "x/dev/null"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15276 $as_echo "$as_me: updating cache $cache_file" >&6;}
15277 if test ! -f "$cache_file" || test -h "$cache_file"; then
15278 cat confcache >"$cache_file"
15280 case $cache_file in #(
15282 mv -f confcache "$cache_file"$$ &&
15283 mv -f "$cache_file"$$ "$cache_file" ;; #(
15285 mv -f confcache "$cache_file" ;;
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15297 # Let make expand exec_prefix.
15298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15300 DEFS=-DHAVE_CONFIG_H
15305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15306 # 1. Remove the extension, and $U if already installed.
15307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15310 # will be set to the directory where LIBOBJS objects are built.
15311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15314 LIBOBJS=$ac_libobjs
15316 LTLIBOBJS=$ac_ltlibobjs
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15320 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15321 if test -n "$am_sleep_pid"; then
15322 # Hide warnings about reused PIDs.
15323 wait $am_sleep_pid 2>/dev/null
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15326 $as_echo "done" >&6; }
15327 if test -n "$EXEEXT"; then
15329 am__EXEEXT_FALSE='#'
15331 am__EXEEXT_TRUE='#'
15335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15336 as_fn_error $? "conditional \"AMDEP\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15340 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15348 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 if test -z "${VERSION_SCRIPT_TRUE}" && test -z "${VERSION_SCRIPT_FALSE}"; then
15352 as_fn_error $? "conditional \"VERSION_SCRIPT\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 if test -z "${WITH_ARITH_ENC_TRUE}" && test -z "${WITH_ARITH_ENC_FALSE}"; then
15356 as_fn_error $? "conditional \"WITH_ARITH_ENC\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 if test -z "${WITH_ARITH_DEC_TRUE}" && test -z "${WITH_ARITH_DEC_FALSE}"; then
15360 as_fn_error $? "conditional \"WITH_ARITH_DEC\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 if test -z "${WITH_ARITH_TRUE}" && test -z "${WITH_ARITH_FALSE}"; then
15364 as_fn_error $? "conditional \"WITH_ARITH\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 if test -z "${WITH_12BIT_TRUE}" && test -z "${WITH_12BIT_FALSE}"; then
15368 as_fn_error $? "conditional \"WITH_12BIT\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
15372 as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 if test -z "${WITH_SIMD_TRUE}" && test -z "${WITH_SIMD_FALSE}"; then
15376 as_fn_error $? "conditional \"WITH_SIMD\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 if test -z "${WITH_SSE_FLOAT_DCT_TRUE}" && test -z "${WITH_SSE_FLOAT_DCT_FALSE}"; then
15380 as_fn_error $? "conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 if test -z "${SIMD_I386_TRUE}" && test -z "${SIMD_I386_FALSE}"; then
15384 as_fn_error $? "conditional \"SIMD_I386\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387 if test -z "${SIMD_X86_64_TRUE}" && test -z "${SIMD_X86_64_FALSE}"; then
15388 as_fn_error $? "conditional \"SIMD_X86_64\" was never defined.
15389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 if test -z "${SIMD_ARM_TRUE}" && test -z "${SIMD_ARM_FALSE}"; then
15392 as_fn_error $? "conditional \"SIMD_ARM\" was never defined.
15393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395 if test -z "${SIMD_ARM_64_TRUE}" && test -z "${SIMD_ARM_64_FALSE}"; then
15396 as_fn_error $? "conditional \"SIMD_ARM_64\" was never defined.
15397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399 if test -z "${SIMD_MIPS_TRUE}" && test -z "${SIMD_MIPS_FALSE}"; then
15400 as_fn_error $? "conditional \"SIMD_MIPS\" was never defined.
15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15404 as_fn_error $? "conditional \"X86_64\" was never defined.
15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407 if test -z "${WITH_TURBOJPEG_TRUE}" && test -z "${WITH_TURBOJPEG_FALSE}"; then
15408 as_fn_error $? "conditional \"WITH_TURBOJPEG\" was never defined.
15409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 : "${CONFIG_STATUS=./config.status}"
15414 ac_clean_files_save=$ac_clean_files
15415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15421 # Generated by $as_me.
15422 # Run this file to recreate the current configuration.
15423 # Compiler output produced by configure, useful for debugging
15424 # configure, is in config.log if it exists.
15427 ac_cs_recheck=false
15430 SHELL=\${CONFIG_SHELL-$SHELL}
15433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15434 ## -------------------- ##
15435 ## M4sh Initialization. ##
15436 ## -------------------- ##
15438 # Be more Bourne compatible
15439 DUALCASE=1; export DUALCASE # for MKS sh
15440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
15446 setopt NO_GLOB_SUBST
15448 case `(set -o) 2>/dev/null` in #(
15460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15464 # Prefer a ksh shell builtin over an external printf program on Solaris,
15465 # but without wasting forks for bash or zsh.
15466 if test -z "$BASH_VERSION$ZSH_VERSION" \
15467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='print -r --'
15469 as_echo_n='print -rn --'
15470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='printf %s\n'
15472 as_echo_n='printf %s'
15474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15476 as_echo_n='/usr/ucb/echo -n'
15478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15479 as_echo_n_body='eval
15483 expr "X$arg" : "X\\(.*\\)$as_nl";
15484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15488 export as_echo_n_body
15489 as_echo_n='sh -c $as_echo_n_body as_echo'
15491 export as_echo_body
15492 as_echo='sh -c $as_echo_body as_echo'
15495 # The user is always right.
15496 if test "${PATH_SEPARATOR+set}" != set; then
15498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15506 # We need space, tab and new line, in precisely that order. Quoting is
15507 # there to prevent editors from complaining about space-tab.
15508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15509 # splitting by setting IFS to empty value.)
15512 # Find who we are. Look in the path if we contain no directory separator.
15515 *[\\/]* ) as_myself=$0 ;;
15516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15520 test -z "$as_dir" && as_dir=.
15521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15527 # We did not find ourselves, most probably we were run as `sh COMMAND'
15528 # in which case we are not to be found in the path.
15529 if test "x$as_myself" = x; then
15532 if test ! -f "$as_myself"; then
15533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15537 # Unset variables that we do not need and which cause bugs (e.g. in
15538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15539 # suppresses any "Segmentation fault" message there. '((' could
15540 # trigger a bug in pdksh 5.2.14.
15541 for as_var in BASH_ENV ENV MAIL MAILPATH
15542 do eval test x\${$as_var+set} = xset \
15543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15560 # ----------------------------------------
15561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15563 # script with STATUS, using 1 if that was 0.
15566 as_status=$1; test $as_status -eq 0 && as_status=1
15568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15571 $as_echo "$as_me: error: $2" >&2
15572 as_fn_exit $as_status
15576 # as_fn_set_status STATUS
15577 # -----------------------
15578 # Set $? to STATUS, without forking.
15579 as_fn_set_status ()
15582 } # as_fn_set_status
15584 # as_fn_exit STATUS
15585 # -----------------
15586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15590 as_fn_set_status $1
15596 # Portably unset VAR.
15599 { eval $1=; unset $1;}
15601 as_unset=as_fn_unset
15602 # as_fn_append VAR VALUE
15603 # ----------------------
15604 # Append the text in VALUE to the end of the definition contained in VAR. Take
15605 # advantage of any shell optimizations that allow amortized linear growth over
15606 # repeated appends, instead of the typical quadratic growth present in naive
15608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15609 eval 'as_fn_append ()
15620 # as_fn_arith ARG...
15621 # ------------------
15622 # Perform arithmetic evaluation on the ARGs, and store the result in the
15623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15624 # must be portable across $(()) and expr.
15625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15626 eval 'as_fn_arith ()
15633 as_val=`expr "$@" || test $? -eq 1`
15638 if expr a : '\(a\)' >/dev/null 2>&1 &&
15639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15646 as_basename=basename
15651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15657 as_me=`$as_basename -- "$0" ||
15658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15659 X"$0" : 'X\(//\)$' \| \
15660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15662 sed '/^.*\/\([^/][^/]*\)\/*$/{
15676 # Avoid depending upon Character Ranges.
15677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15680 as_cr_digits='0123456789'
15681 as_cr_alnum=$as_cr_Letters$as_cr_digits
15683 ECHO_C= ECHO_N= ECHO_T=
15684 case `echo -n x` in #(((((
15686 case `echo 'xy\c'` in
15687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15696 rm -f conf$$ conf$$.exe conf$$.file
15697 if test -d conf$$.dir; then
15698 rm -f conf$$.dir/conf$$.file
15701 mkdir conf$$.dir 2>/dev/null
15703 if (echo >conf$$.file) 2>/dev/null; then
15704 if ln -s conf$$.file conf$$ 2>/dev/null; then
15706 # ... but there are two gotchas:
15707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15709 # In both cases, we have to default to `cp -pR'.
15710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15712 elif ln conf$$.file conf$$ 2>/dev/null; then
15720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15721 rmdir conf$$.dir 2>/dev/null
15726 # Create "$as_dir" as a directory, including parents if necessary.
15731 -*) as_dir=./$as_dir;;
15733 test -d "$as_dir" || eval $as_mkdir_p || {
15737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15738 *) as_qdir=$as_dir;;
15740 as_dirs="'$as_qdir' $as_dirs"
15741 as_dir=`$as_dirname -- "$as_dir" ||
15742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15746 $as_echo X"$as_dir" |
15747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15751 /^X\(\/\/\)[^/].*/{
15764 test -d "$as_dir" && break
15766 test -z "$as_dirs" || eval "mkdir $as_dirs"
15767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15771 if mkdir -p . 2>/dev/null; then
15772 as_mkdir_p='mkdir -p "$as_dir"'
15774 test -d ./-p && rmdir ./-p
15779 # as_fn_executable_p FILE
15780 # -----------------------
15781 # Test if FILE is an executable regular file.
15782 as_fn_executable_p ()
15784 test -f "$1" && test -x "$1"
15785 } # as_fn_executable_p
15786 as_test_x='test -x'
15787 as_executable_p=as_fn_executable_p
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15797 ## ----------------------------------- ##
15798 ## Main body of $CONFIG_STATUS script. ##
15799 ## ----------------------------------- ##
15801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 # Save the log message, to keep $0 and so on meaningful, and to
15805 # report actual input values of CONFIG_FILES etc. instead of their
15806 # values after options handling.
15808 This file was extended by libjpeg-turbo $as_me 1.4.2, which was
15809 generated by GNU Autoconf 2.69. Invocation command line was
15811 CONFIG_FILES = $CONFIG_FILES
15812 CONFIG_HEADERS = $CONFIG_HEADERS
15813 CONFIG_LINKS = $CONFIG_LINKS
15814 CONFIG_COMMANDS = $CONFIG_COMMANDS
15817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15822 case $ac_config_files in *"
15823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15826 case $ac_config_headers in *"
15827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 # Files that config.status was made for.
15833 config_files="$ac_config_files"
15834 config_headers="$ac_config_headers"
15835 config_commands="$ac_config_commands"
15839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15841 \`$as_me' instantiates files and other configuration actions
15842 from templates according to the current configuration. Unless the files
15843 and actions are specified as TAGs, all are instantiated by default.
15845 Usage: $0 [OPTION]... [TAG]...
15847 -h, --help print this help, then exit
15848 -V, --version print version number and configuration settings, then exit
15849 --config print configuration, then exit
15850 -q, --quiet, --silent
15851 do not print progress messages
15852 -d, --debug don't remove temporary files
15853 --recheck update $as_me by reconfiguring in the same conditions
15854 --file=FILE[:TEMPLATE]
15855 instantiate the configuration file FILE
15856 --header=FILE[:TEMPLATE]
15857 instantiate the configuration header FILE
15859 Configuration files:
15862 Configuration headers:
15865 Configuration commands:
15868 Report bugs to the package provider."
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15874 libjpeg-turbo config.status 1.4.2
15875 configured by $0, generated by GNU Autoconf 2.69,
15876 with options \\"\$ac_cs_config\\"
15878 Copyright (C) 2012 Free Software Foundation, Inc.
15879 This config.status script is free software; the Free Software Foundation
15880 gives unlimited permission to copy, distribute and modify it."
15887 test -n "\$AWK" || AWK=awk
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15891 # The default lists apply if the user does not specify any file.
15897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15914 # Handling of the options.
15915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15918 $as_echo "$ac_cs_version"; exit ;;
15919 --config | --confi | --conf | --con | --co | --c )
15920 $as_echo "$ac_cs_config"; exit ;;
15921 --debug | --debu | --deb | --de | --d | -d )
15923 --file | --fil | --fi | --f )
15926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15927 '') as_fn_error $? "missing file argument" ;;
15929 as_fn_append CONFIG_FILES " '$ac_optarg'"
15930 ac_need_defaults=false;;
15931 --header | --heade | --head | --hea )
15934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15937 ac_need_defaults=false;;
15939 # Conflict between --help and --header
15940 as_fn_error $? "ambiguous option: \`$1'
15941 Try \`$0 --help' for more information.";;
15942 --help | --hel | -h )
15943 $as_echo "$ac_cs_usage"; exit ;;
15944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15948 # This is an error.
15949 -*) as_fn_error $? "unrecognized option: \`$1'
15950 Try \`$0 --help' for more information." ;;
15952 *) as_fn_append ac_config_targets " $1"
15953 ac_need_defaults=false ;;
15959 ac_configure_extra_args=
15961 if $ac_cs_silent; then
15963 ac_configure_extra_args="$ac_configure_extra_args --silent"
15967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15968 if \$ac_cs_recheck; then
15969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15972 CONFIG_SHELL='$SHELL'
15973 export CONFIG_SHELL
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15983 ## Running $as_me. ##
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15996 # The HP-UX ksh and POSIX shell print the target directory to stdout
15997 # if CDPATH is set.
15998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16000 sed_quote_subst='$sed_quote_subst'
16001 double_quote_subst='$double_quote_subst'
16002 delay_variable_subst='$delay_variable_subst'
16003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16005 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16009 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16010 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16011 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16012 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16013 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16014 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16015 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16016 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16017 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16018 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16019 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16020 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16021 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16022 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16023 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16024 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16025 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16026 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16027 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16028 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16029 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16030 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16031 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16032 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16033 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16034 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16035 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16036 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16037 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16038 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16039 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16040 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16041 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16042 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16043 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16044 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16045 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16046 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16047 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16048 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16049 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16050 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16051 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16052 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16053 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16054 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16055 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16056 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16057 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16058 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16059 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16061 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"`'
16062 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16063 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16064 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16065 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16066 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16067 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16068 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16069 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16072 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16073 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16074 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16075 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16076 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16077 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16078 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16079 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16080 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16081 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16082 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16083 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16084 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16085 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16086 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16087 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16088 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16089 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16090 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16091 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16092 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16093 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16094 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16095 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16096 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16097 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16099 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16100 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16101 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16102 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16103 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16104 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16105 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16106 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16107 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16108 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16109 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16110 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16111 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16112 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16113 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16114 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16115 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16116 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16117 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16118 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16119 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16120 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16121 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16122 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16123 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16124 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16125 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16126 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16127 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16128 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16129 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16130 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16131 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16132 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16133 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16134 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16135 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16136 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16137 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16140 LTCFLAGS='$LTCFLAGS'
16141 compiler='$compiler_DEFAULT'
16143 # A function that is used when there is no print builtin or printf.
16144 func_fallback_echo ()
16146 eval 'cat <<_LTECHO_EOF
16151 # Quote evaled strings.
16166 deplibs_check_method \
16171 sharedlib_from_linklib_cmd \
16174 archiver_list_spec \
16180 lt_cv_sys_global_symbol_pipe \
16181 lt_cv_sys_global_symbol_to_cdecl \
16182 lt_cv_sys_global_symbol_to_import \
16183 lt_cv_sys_global_symbol_to_c_name_address \
16184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16185 lt_cv_nm_interface \
16186 nm_file_list_spec \
16187 lt_cv_truncate_bin \
16188 lt_prog_compiler_no_builtin_flag \
16189 lt_prog_compiler_pic \
16190 lt_prog_compiler_wl \
16191 lt_prog_compiler_static \
16192 lt_cv_prog_compiler_c_o \
16201 export_dynamic_flag_spec \
16202 whole_archive_flag_spec \
16203 compiler_needs_object \
16205 allow_undefined_flag \
16206 no_undefined_flag \
16207 hardcode_libdir_flag_spec \
16208 hardcode_libdir_separator \
16212 variables_saved_for_relink \
16214 library_names_spec \
16216 install_override_mode \
16220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16221 *[\\\\\\\`\\"\\\$]*)
16222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16225 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16230 # Double-quote double-evaled strings.
16231 for var in reload_cmds \
16232 old_postinstall_cmds \
16233 old_postuninstall_cmds \
16235 extract_expsyms_cmds \
16236 old_archive_from_new_cmds \
16237 old_archive_from_expsyms_cmds \
16239 archive_expsym_cmds \
16241 module_expsym_cmds \
16242 export_symbols_cmds \
16246 postuninstall_cmds \
16248 sys_lib_search_path_spec \
16249 configure_time_dlsearch_path \
16250 configure_time_lt_sys_library_path; do
16251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16252 *[\\\\\\\`\\"\\\$]*)
16253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16261 ac_aux_dir='$ac_aux_dir'
16263 # See if we are running on zsh, and set the options that allow our
16264 # commands through without removal of \ escapes INIT.
16265 if test -n "\${ZSH_VERSION+set}"; then
16266 setopt NO_GLOB_SUBST
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 # Handling of arguments.
16283 for ac_config_target in $ac_config_targets
16285 case $ac_config_target in
16286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16287 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16289 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
16290 "jconfigint.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfigint.h" ;;
16291 "pkgscripts/libjpeg-turbo.spec.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in" ;;
16292 "pkgscripts/makecygwinpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in" ;;
16293 "pkgscripts/makedpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makedpkg.tmpl:release/makedpkg.in" ;;
16294 "pkgscripts/makemacpkg.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/makemacpkg.tmpl:release/makemacpkg.in" ;;
16295 "pkgscripts/uninstall.tmpl") CONFIG_FILES="$CONFIG_FILES pkgscripts/uninstall.tmpl:release/uninstall.in" ;;
16296 "tjbenchtest") CONFIG_FILES="$CONFIG_FILES tjbenchtest" ;;
16297 "tjbenchtest.java") CONFIG_FILES="$CONFIG_FILES tjbenchtest.java" ;;
16298 "tjexampletest") CONFIG_FILES="$CONFIG_FILES tjexampletest" ;;
16299 "libjpeg.map") CONFIG_FILES="$CONFIG_FILES libjpeg.map" ;;
16300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16301 "simd/Makefile") CONFIG_FILES="$CONFIG_FILES simd/Makefile" ;;
16302 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
16303 "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
16305 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16310 # If the user did not use the arguments to specify the items to instantiate,
16311 # then the envvar interface is used. Set only those that are not.
16312 # We use the long form for the default assignment because of an extremely
16313 # bizarre bug on SunOS 4.1.3.
16314 if $ac_need_defaults; then
16315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16320 # Have a temporary directory for convenience. Make it in the build tree
16321 # simply because there is no reason against having it here, and in addition,
16322 # creating and moving files from /tmp can sometimes cause problems.
16323 # Hook for its removal unless debugging.
16324 # Note that there is a small window in which the directory will not be cleaned:
16325 # after its creation but before its name has been assigned to `$tmp'.
16329 trap 'exit_status=$?
16330 : "${ac_tmp:=$tmp}"
16331 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16333 trap 'as_fn_exit 1' 1 2 13 15
16335 # Create a (secure) tmp directory for tmp files.
16338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16342 tmp=./conf$$-$RANDOM
16343 (umask 077 && mkdir "$tmp")
16344 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16347 # Set up the scripts for CONFIG_FILES section.
16348 # No need to generate them if there are no CONFIG_FILES.
16349 # This happens for instance with `./config.status config.h'.
16350 if test -n "$CONFIG_FILES"; then
16353 ac_cr=`echo X | tr X '\015'`
16354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16355 # But we know of no other shell where ac_cr would be empty at this
16356 # point, so we can use a bashism as a fallback.
16357 if test "x$ac_cr" = x; then
16358 eval ac_cr=\$\'\\r\'
16360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16364 ac_cs_awk_cr=$ac_cr
16367 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16372 echo "cat >conf$$subs.awk <<_ACEOF" &&
16373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16375 } >conf$$subs.sh ||
16376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16379 for ac_last_try in false false false false false :; do
16380 . ./conf$$subs.sh ||
16381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16384 if test $ac_delim_n = $ac_delim_num; then
16386 elif $ac_last_try; then
16387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16392 rm -f conf$$subs.sh
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16399 s/^/S["/; s/!.*/"]=/
16409 s/\(.\{148\}\)..*/\1/
16411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16423 s/\(.\{148\}\)..*/\1/
16425 s/["\\]/\\&/g; s/^/"/; s/$/"/
16429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16434 ' <conf$$subs.awk | sed '
16439 ' >>$CONFIG_STATUS || ac_write_fail=1
16440 rm -f conf$$subs.awk
16441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16444 for (key in S) S_is_set[key] = 1
16450 nfields = split(line, field, "@")
16452 len = length(field[1])
16453 for (i = 2; i < nfields; i++) {
16455 keylen = length(key)
16456 if (S_is_set[key]) {
16458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16459 len += length(value) + length(field[++i])
16470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16476 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16481 # trailing colons and then remove the whole line if VPATH becomes empty
16482 # (actually we leave an empty line to preserve line numbers).
16483 if test "x$srcdir" = x.; then
16484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16503 fi # test -n "$CONFIG_FILES"
16505 # Set up the scripts for CONFIG_HEADERS section.
16506 # No need to generate them if there are no CONFIG_HEADERS.
16507 # This happens for instance with `./config.status Makefile'.
16508 if test -n "$CONFIG_HEADERS"; then
16509 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16513 # Transform confdefs.h into an awk script `defines.awk', embedded as
16514 # here-document in config.status, that substitutes the proper values into
16515 # config.h.in to produce config.h.
16517 # Create a delimiter string that does not exist in confdefs.h, to ease
16518 # handling of long lines.
16520 for ac_last_try in false false :; do
16521 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16522 if test -z "$ac_tt"; then
16524 elif $ac_last_try; then
16525 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16531 # For the awk script, D is an array of macro values keyed by name,
16532 # likewise P contains macro parameters if any. Preserve backslash
16533 # newline sequences.
16535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16537 s/.\{148\}/&'"$ac_delim"'/g
16540 s/^[ ]*#[ ]*define[ ][ ]*/ /
16547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16554 D["\1"]=" \3\\\\\\n"\\/p
16556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16561 s/.\{148\}/&'"$ac_delim"'/g
16566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16571 ' <confdefs.h | sed '
16572 s/'"$ac_delim"'/"\\\
16573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 for (key in D) D_is_set[key] = 1
16579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16581 split(line, arg, " ")
16582 if (arg[1] == "#") {
16586 defundef = substr(arg[1], 2)
16589 split(mac1, mac2, "(") #)
16591 prefix = substr(line, 1, index(line, defundef) - 1)
16592 if (D_is_set[macro]) {
16593 # Preserve the white space surrounding the "#".
16594 print prefix "define", macro P[macro] D[macro]
16597 # Replace #undef with comments. This is necessary, for example,
16598 # in the case of _POSIX_SOURCE, which is predefined and required
16599 # on some systems where configure will not decide to define it.
16600 if (defundef == "undef") {
16601 print "/*", prefix defundef, macro, "*/"
16609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16611 fi # test -n "$CONFIG_HEADERS"
16614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16619 :[FHLC]) ac_mode=$ac_tag; continue;;
16621 case $ac_mode$ac_tag in
16623 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16624 :[FH]-) ac_tag=-:-;;
16625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16642 -) ac_f="$ac_tmp/stdin";;
16643 *) # Look for the file first in the build tree, then in the source tree
16644 # (if the path is not absolute). The absolute path cannot be DOS-style,
16645 # because $ac_f cannot contain `:'.
16649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16651 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16654 as_fn_append ac_file_inputs " '$ac_f'"
16657 # Let's still pretend it is `configure' which instantiates (i.e., don't
16658 # use $as_me), people would be surprised to read:
16659 # /* config.h. Generated by config.status. */
16660 configure_input='Generated from '`
16661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16663 if test x"$ac_file" != x-; then
16664 configure_input="$ac_file. $configure_input"
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16666 $as_echo "$as_me: creating $ac_file" >&6;}
16668 # Neutralize special characters interpreted by sed in replacement strings.
16669 case $configure_input in #(
16670 *\&* | *\|* | *\\* )
16671 ac_sed_conf_input=`$as_echo "$configure_input" |
16672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16673 *) ac_sed_conf_input=$configure_input;;
16677 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16683 ac_dir=`$as_dirname -- "$ac_file" ||
16684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16685 X"$ac_file" : 'X\(//\)[^/]' \| \
16686 X"$ac_file" : 'X\(//\)$' \| \
16687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16688 $as_echo X"$ac_file" |
16689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16693 /^X\(\/\/\)[^/].*/{
16706 as_dir="$ac_dir"; as_fn_mkdir_p
16710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16713 # A ".." for each directory in $ac_dir_suffix.
16714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16715 case $ac_top_builddir_sub in
16716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16720 ac_abs_top_builddir=$ac_pwd
16721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16722 # for backward compatibility:
16723 ac_top_builddir=$ac_top_build_prefix
16726 .) # We are building in place.
16728 ac_top_srcdir=$ac_top_builddir_sub
16729 ac_abs_top_srcdir=$ac_pwd ;;
16730 [\\/]* | ?:[\\/]* ) # Absolute name.
16731 ac_srcdir=$srcdir$ac_dir_suffix;
16732 ac_top_srcdir=$srcdir
16733 ac_abs_top_srcdir=$srcdir ;;
16734 *) # Relative name.
16735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16736 ac_top_srcdir=$ac_top_build_prefix$srcdir
16737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16752 ac_MKDIR_P=$MKDIR_P
16754 [\\/$]* | ?:[\\/]* ) ;;
16755 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 # If the template does not know about datarootdir, expand it.
16761 # FIXME: This hack should be removed a few years after 2.60.
16762 ac_datarootdir_hack=; ac_datarootdir_seen=
16773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16774 *datarootdir*) ac_datarootdir_seen=yes;;
16775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 ac_datarootdir_hack='
16781 s&@datadir@&$datadir&g
16782 s&@docdir@&$docdir&g
16783 s&@infodir@&$infodir&g
16784 s&@localedir@&$localedir&g
16785 s&@mandir@&$mandir&g
16786 s&\\\${datarootdir}&$datarootdir&g' ;;
16790 # Neutralize VPATH when `$srcdir' = `.'.
16791 # Shell code in configure.ac might set extrasub.
16792 # FIXME: do we really want to maintain this feature?
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 ac_sed_extra="$ac_vpsub
16797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16800 s|@configure_input@|$ac_sed_conf_input|;t t
16801 s&@top_builddir@&$ac_top_builddir_sub&;t t
16802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16803 s&@srcdir@&$ac_srcdir&;t t
16804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16805 s&@top_srcdir@&$ac_top_srcdir&;t t
16806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16807 s&@builddir@&$ac_builddir&;t t
16808 s&@abs_builddir@&$ac_abs_builddir&;t t
16809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16810 s&@INSTALL@&$ac_INSTALL&;t t
16811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16812 $ac_datarootdir_hack
16814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16815 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16818 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16820 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16822 which seems to be undefined. Please make sure it is defined" >&5
16823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16824 which seems to be undefined. Please make sure it is defined" >&2;}
16826 rm -f "$ac_tmp/stdin"
16828 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16829 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16837 if test x"$ac_file" != x-; then
16839 $as_echo "/* $configure_input */" \
16840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16841 } >"$ac_tmp/config.h" \
16842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16843 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16848 mv "$ac_tmp/config.h" "$ac_file" \
16849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16852 $as_echo "/* $configure_input */" \
16853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16854 || as_fn_error $? "could not create -" "$LINENO" 5
16856 # Compute "$ac_file"'s index in $config_headers.
16859 for _am_header in $config_headers :; do
16860 case $_am_header in
16861 $_am_arg | $_am_arg:* )
16864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$_am_arg" : 'X\(//\)[^/]' \| \
16870 X"$_am_arg" : 'X\(//\)$' \| \
16871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$_am_arg" |
16873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16877 /^X\(\/\/\)[^/].*/{
16889 s/.*/./; q'`/stamp-h$_am_stamp_count
16892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16893 $as_echo "$as_me: executing $ac_file commands" >&6;}
16898 case $ac_file$ac_mode in
16899 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16900 # Older Autoconf quotes --file arguments for eval, but not when files
16901 # are listed without --file. Let's play safe and only enable the eval
16902 # if we detect the quoting.
16903 case $CONFIG_FILES in
16904 *\'*) eval set x "$CONFIG_FILES" ;;
16905 *) set x $CONFIG_FILES ;;
16910 # Strip MF so we end up with the name of the file.
16911 mf=`echo "$mf" | sed -e 's/:.*$//'`
16912 # Check whether this is an Automake generated Makefile or not.
16913 # We used to match only the files named 'Makefile.in', but
16914 # some people rename them; so instead we look at the file content.
16915 # Grep'ing the first line is not enough: some people post-process
16916 # each Makefile.in and add a new line on top of each file to say so.
16917 # Grep'ing the whole file is not good either: AIX grep has a line
16918 # limit of 2048, but all sed's we know have understand at least 4000.
16919 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16920 dirpart=`$as_dirname -- "$mf" ||
16921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16922 X"$mf" : 'X\(//\)[^/]' \| \
16923 X"$mf" : 'X\(//\)$' \| \
16924 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16930 /^X\(\/\/\)[^/].*/{
16946 # Extract the definition of DEPDIR, am__include, and am__quote
16947 # from the Makefile without running 'make'.
16948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16949 test -z "$DEPDIR" && continue
16950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16951 test -z "$am__include" && continue
16952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16953 # Find all dependency output files, they are included files with
16954 # $(DEPDIR) in their names. We invoke sed twice because it is the
16955 # simplest approach to changing $(DEPDIR) to its actual value in the
16957 for file in `sed -n "
16958 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16960 # Make sure the directory exists.
16961 test -f "$dirpart/$file" && continue
16962 fdir=`$as_dirname -- "$file" ||
16963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964 X"$file" : 'X\(//\)[^/]' \| \
16965 X"$file" : 'X\(//\)$' \| \
16966 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16967 $as_echo X"$file" |
16968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16972 /^X\(\/\/\)[^/].*/{
16985 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16986 # echo "creating $dirpart/$file"
16987 echo '# dummy' > "$dirpart/$file"
16994 # See if we are running on zsh, and set the options that allow our
16995 # commands through without removal of \ escapes.
16996 if test -n "${ZSH_VERSION+set}"; then
16997 setopt NO_GLOB_SUBST
17001 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17004 cat <<_LT_EOF >> "$cfgfile"
17006 # Generated automatically by $as_me ($PACKAGE) $VERSION
17007 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17008 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17010 # Provide generalized library-building support services.
17011 # Written by Gordon Matzigkeit, 1996
17013 # Copyright (C) 2014 Free Software Foundation, Inc.
17014 # This is free software; see the source for copying conditions. There is NO
17015 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17017 # GNU Libtool is free software; you can redistribute it and/or modify
17018 # it under the terms of the GNU General Public License as published by
17019 # the Free Software Foundation; either version 2 of of the License, or
17020 # (at your option) any later version.
17022 # As a special exception to the GNU General Public License, if you
17023 # distribute this file as part of a program or library that is built
17024 # using GNU Libtool, you may include this file under the same
17025 # distribution terms that you use for the rest of that program.
17027 # GNU Libtool is distributed in the hope that it will be useful, but
17028 # WITHOUT ANY WARRANTY; without even the implied warranty of
17029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17030 # GNU General Public License for more details.
17032 # You should have received a copy of the GNU General Public License
17033 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17036 # The names of the tagged configurations supported by this script.
17039 # Configured defaults for sys_lib_dlsearch_path munging.
17040 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17042 # ### BEGIN LIBTOOL CONFIG
17044 # Which release of libtool.m4 was used?
17045 macro_version=$macro_version
17046 macro_revision=$macro_revision
17048 # Whether or not to build shared libraries.
17049 build_libtool_libs=$enable_shared
17051 # Whether or not to build static libraries.
17052 build_old_libs=$enable_static
17054 # What type of objects to build.
17057 # Whether or not to optimize for fast installation.
17058 fast_install=$enable_fast_install
17060 # Shared archive member basename,for filename based shared library versioning on AIX.
17061 shared_archive_member_spec=$shared_archive_member_spec
17063 # Shell to use when invoking shell scripts.
17066 # An echo program that protects backslashes.
17069 # The PATH separator for the build system.
17070 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17073 host_alias=$host_alias
17077 # The build system.
17078 build_alias=$build_alias
17082 # A sed program that does not truncate output.
17085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17086 Xsed="\$SED -e 1s/^X//"
17088 # A grep program that handles long lines.
17094 # A literal string matcher.
17097 # A BSD- or MS-compatible name lister.
17100 # Whether we need soft or hard links.
17103 # What is the maximum length of a command?
17104 max_cmd_len=$max_cmd_len
17106 # Object file suffix (normally "o").
17109 # Executable file suffix (normally "").
17112 # whether the shell understands "unset".
17115 # turn spaces into newlines.
17118 # turn newlines into spaces.
17121 # convert \$build file names to \$host format.
17122 to_host_file_cmd=$lt_cv_to_host_file_cmd
17124 # convert \$build files to toolchain format.
17125 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17127 # An object symbol dumper.
17128 OBJDUMP=$lt_OBJDUMP
17130 # Method to check whether dependent libraries are shared objects.
17131 deplibs_check_method=$lt_deplibs_check_method
17133 # Command to use when deplibs_check_method = "file_magic".
17134 file_magic_cmd=$lt_file_magic_cmd
17136 # How to find potential files when deplibs_check_method = "file_magic".
17137 file_magic_glob=$lt_file_magic_glob
17139 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17140 want_nocaseglob=$lt_want_nocaseglob
17142 # DLL creation program.
17143 DLLTOOL=$lt_DLLTOOL
17145 # Command to associate shared and link libraries.
17146 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17151 # Flags to create an archive.
17152 AR_FLAGS=$lt_AR_FLAGS
17154 # How to feed a file listing to the archiver.
17155 archiver_list_spec=$lt_archiver_list_spec
17157 # A symbol stripping program.
17160 # Commands used to install an old-style archive.
17162 old_postinstall_cmds=$lt_old_postinstall_cmds
17163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17165 # Whether to use a lock for old archive extraction.
17166 lock_old_archive_extraction=$lock_old_archive_extraction
17171 # LTCC compiler flags.
17172 LTCFLAGS=$lt_CFLAGS
17174 # Take the output of nm and produce a listing of raw symbols and C names.
17175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17177 # Transform the output of nm in a proper C declaration.
17178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17180 # Transform the output of nm into a list of symbols to manually relocate.
17181 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17183 # Transform the output of nm in a C name address pair.
17184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17186 # Transform the output of nm in a C name address pair when lib prefix is needed.
17187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17189 # The name lister interface.
17190 nm_interface=$lt_lt_cv_nm_interface
17192 # Specify filename containing input files for \$NM.
17193 nm_file_list_spec=$lt_nm_file_list_spec
17195 # The root where to search for dependent libraries,and where our libraries should be installed.
17196 lt_sysroot=$lt_sysroot
17198 # Command to truncate a binary pipe.
17199 lt_truncate_bin=$lt_lt_cv_truncate_bin
17201 # The name of the directory that contains temporary libtool files.
17204 # Used to examine libraries when file_magic_cmd begins with "file".
17205 MAGIC_CMD=$MAGIC_CMD
17207 # Must we lock files when doing compilation?
17208 need_locks=$lt_need_locks
17211 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17213 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17214 DSYMUTIL=$lt_DSYMUTIL
17216 # Tool to change global to local symbols on Mac OS X.
17219 # Tool to manipulate fat objects and archives on Mac OS X.
17222 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17225 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17226 OTOOL64=$lt_OTOOL64
17228 # Old archive suffix (normally "a").
17231 # Shared library suffix (normally ".so").
17232 shrext_cmds=$lt_shrext_cmds
17234 # The commands to extract the exported symbol list from a shared archive.
17235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17237 # Variables whose values should be saved in libtool wrapper scripts and
17238 # restored at link time.
17239 variables_saved_for_relink=$lt_variables_saved_for_relink
17241 # Do we need the "lib" prefix for modules?
17242 need_lib_prefix=$need_lib_prefix
17244 # Do we need a version for libraries?
17245 need_version=$need_version
17247 # Library versioning type.
17248 version_type=$version_type
17250 # Shared library runtime path variable.
17251 runpath_var=$runpath_var
17253 # Shared library path variable.
17254 shlibpath_var=$shlibpath_var
17256 # Is shlibpath searched before the hard-coded library search path?
17257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17259 # Format of library name prefix.
17260 libname_spec=$lt_libname_spec
17262 # List of archive names. First name is the real one, the rest are links.
17263 # The last name is the one that the linker finds with -lNAME
17264 library_names_spec=$lt_library_names_spec
17266 # The coded name of the library, if different from the real name.
17267 soname_spec=$lt_soname_spec
17269 # Permission mode override for installation of shared libraries.
17270 install_override_mode=$lt_install_override_mode
17272 # Command to use after installation of a shared archive.
17273 postinstall_cmds=$lt_postinstall_cmds
17275 # Command to use after uninstallation of a shared archive.
17276 postuninstall_cmds=$lt_postuninstall_cmds
17278 # Commands used to finish a libtool library installation in a directory.
17279 finish_cmds=$lt_finish_cmds
17281 # As "finish_cmds", except a single script fragment to be evaled but
17283 finish_eval=$lt_finish_eval
17285 # Whether we should hardcode library paths into libraries.
17286 hardcode_into_libs=$hardcode_into_libs
17288 # Compile-time system search path for libraries.
17289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17291 # Detected run-time system search path for libraries.
17292 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17294 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17295 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17297 # Whether dlopen is supported.
17298 dlopen_support=$enable_dlopen
17300 # Whether dlopen of programs is supported.
17301 dlopen_self=$enable_dlopen_self
17303 # Whether dlopen of statically linked programs is supported.
17304 dlopen_self_static=$enable_dlopen_self_static
17306 # Commands to strip libraries.
17307 old_striplib=$lt_old_striplib
17308 striplib=$lt_striplib
17311 # The linker used to build libraries.
17314 # How to create reloadable object files.
17315 reload_flag=$lt_reload_flag
17316 reload_cmds=$lt_reload_cmds
17318 # Commands used to build an old-style archive.
17319 old_archive_cmds=$lt_old_archive_cmds
17321 # A language specific compiler.
17324 # Is the compiler the GNU compiler?
17327 # Compiler flag to turn off builtin functions.
17328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17330 # Additional compiler flags for building library objects.
17331 pic_flag=$lt_lt_prog_compiler_pic
17333 # How to pass a linker flag through the compiler.
17334 wl=$lt_lt_prog_compiler_wl
17336 # Compiler flag to prevent dynamic linking.
17337 link_static_flag=$lt_lt_prog_compiler_static
17339 # Does compiler simultaneously support -c and -o options?
17340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17342 # Whether or not to add -lc for building shared libraries.
17343 build_libtool_need_lc=$archive_cmds_need_lc
17345 # Whether or not to disallow shared libs when runtime libs are static.
17346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17348 # Compiler flag to allow reflexive dlopens.
17349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17351 # Compiler flag to generate shared objects directly from archives.
17352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17354 # Whether the compiler copes with passing no objects directly.
17355 compiler_needs_object=$lt_compiler_needs_object
17357 # Create an old-style archive from a shared archive.
17358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17360 # Create a temporary old-style archive to link instead of a shared archive.
17361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17363 # Commands used to build a shared archive.
17364 archive_cmds=$lt_archive_cmds
17365 archive_expsym_cmds=$lt_archive_expsym_cmds
17367 # Commands used to build a loadable module if different from building
17368 # a shared archive.
17369 module_cmds=$lt_module_cmds
17370 module_expsym_cmds=$lt_module_expsym_cmds
17372 # Whether we are building with GNU ld or not.
17373 with_gnu_ld=$lt_with_gnu_ld
17375 # Flag that allows shared libraries with undefined symbols to be built.
17376 allow_undefined_flag=$lt_allow_undefined_flag
17378 # Flag that enforces no undefined symbols.
17379 no_undefined_flag=$lt_no_undefined_flag
17381 # Flag to hardcode \$libdir into a binary during linking.
17382 # This must work even if \$libdir does not exist
17383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17385 # Whether we need a single "-rpath" flag with a separated argument.
17386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17388 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17389 # DIR into the resulting binary.
17390 hardcode_direct=$hardcode_direct
17392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17393 # DIR into the resulting binary and the resulting library dependency is
17394 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17395 # library is relocated.
17396 hardcode_direct_absolute=$hardcode_direct_absolute
17398 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17399 # into the resulting binary.
17400 hardcode_minus_L=$hardcode_minus_L
17402 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17403 # into the resulting binary.
17404 hardcode_shlibpath_var=$hardcode_shlibpath_var
17406 # Set to "yes" if building a shared library automatically hardcodes DIR
17407 # into the library and all subsequent libraries and executables linked
17409 hardcode_automatic=$hardcode_automatic
17411 # Set to yes if linker adds runtime paths of dependent libraries
17412 # to runtime path list.
17413 inherit_rpath=$inherit_rpath
17415 # Whether libtool must link a program against all its dependency libraries.
17416 link_all_deplibs=$link_all_deplibs
17418 # Set to "yes" if exported symbols are required.
17419 always_export_symbols=$always_export_symbols
17421 # The commands to list exported symbols.
17422 export_symbols_cmds=$lt_export_symbols_cmds
17424 # Symbols that should not be listed in the preloaded symbols.
17425 exclude_expsyms=$lt_exclude_expsyms
17427 # Symbols that must always be exported.
17428 include_expsyms=$lt_include_expsyms
17430 # Commands necessary for linking programs (against libraries) with templates.
17431 prelink_cmds=$lt_prelink_cmds
17433 # Commands necessary for finishing linking programs.
17434 postlink_cmds=$lt_postlink_cmds
17436 # Specify filename containing input files.
17437 file_list_spec=$lt_file_list_spec
17439 # How to hardcode a shared library path into an executable.
17440 hardcode_action=$hardcode_action
17442 # ### END LIBTOOL CONFIG
17446 cat <<'_LT_EOF' >> "$cfgfile"
17448 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17450 # func_munge_path_list VARIABLE PATH
17451 # -----------------------------------
17452 # VARIABLE is name of variable containing _space_ separated list of
17453 # directories to be munged by the contents of PATH, which is string
17456 # string "DIR[ DIR]" will be prepended to VARIABLE
17458 # string "DIR[ DIR]" will be appended to VARIABLE
17459 # "DIRP[:DIRP]::[DIRA:]DIRA"
17460 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17461 # "DIRA[ DIRA]" will be appended to VARIABLE
17463 # VARIABLE will be replaced by "DIR[ DIR]"
17464 func_munge_path_list ()
17470 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17473 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17476 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17477 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17480 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17486 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17487 func_cc_basename ()
17489 for cc_temp in $*""; do
17491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17497 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17501 # ### END FUNCTIONS SHARED WITH CONFIGURE
17507 cat <<\_LT_EOF >> "$cfgfile"
17508 # AIX sometimes has problems with the GCC collect2 program. For some
17509 # reason, if we set the COLLECT_NAMES environment variable, the problems
17510 # vanish in a puff of smoke.
17511 if test set != "${COLLECT_NAMES+set}"; then
17513 export COLLECT_NAMES
17520 ltmain=$ac_aux_dir/ltmain.sh
17523 # We use sed instead of cat because bash on DJGPP gets confused if
17524 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17525 # text mode, it properly converts lines to CR/LF. This bash problem
17526 # is reportedly fixed, but why not run on old versions too?
17527 sed '$q' "$ltmain" >> "$cfgfile" \
17528 || (rm -f "$cfgfile"; exit 1)
17530 mv -f "$cfgfile" "$ofile" ||
17531 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17542 ac_clean_files=$ac_clean_files_save
17544 test $ac_write_fail = 0 ||
17545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17548 # configure is writing to config.log, and then calls config.status.
17549 # config.status does its own redirection, appending to config.log.
17550 # Unfortunately, on DOS this fails, as config.log is still kept open
17551 # by configure, so config.status won't be able to write to it; its
17552 # output is simply discarded. So we exec the FD to /dev/null,
17553 # effectively closing config.log, so it can be properly (re)opened and
17554 # appended to by config.status. When coming back to configure, we
17555 # need to make the FD available again.
17556 if test "$no_create" != yes; then
17558 ac_config_status_args=
17559 test "$silent" = yes &&
17560 ac_config_status_args="$ac_config_status_args --quiet"
17562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565 # would make configure fail if this is the last instruction.
17566 $ac_cs_success || as_fn_exit 1
17568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17570 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}