2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cups-filters 1.0.36.
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='cups-filters'
589 PACKAGE_TARNAME='cups-filters'
590 PACKAGE_VERSION='1.0.36'
591 PACKAGE_STRING='cups-filters 1.0.36'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars='am__EXEEXT_FALSE
635 SED_EXTENDED_REGEX_OPT
666 BROWSEREMOTEPROTOCOLS
680 ENABLE_IMAGEFILTERS_FALSE
681 ENABLE_IMAGEFILTERS_TRUE
684 CUPS_DEFAULT_DOMAINSOCKET
765 INSTALL_STRIP_PROGRAM
807 program_transform_name
820 enable_option_checking
822 enable_dependency_tracking
841 with_browseremoteprotocols
858 ac_precious_vars='build_alias
896 # Initialize some variables set by options.
898 ac_init_version=false
899 ac_unrecognized_opts=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name=s,x,x,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
956 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=no ;;
1015 -docdir | --docdir | --docdi | --doc | --do)
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1025 -enable-* | --enable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_$ac_useropt"
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1039 eval enable_$ac_useropt=\$ac_optarg ;;
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 htmldir=$ac_optarg ;;
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1084 -libdir | --libdir | --libdi | --libd)
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1175 -psdir | --psdir | --psdi | --psd | --ps)
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 sbindir=$ac_optarg ;;
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 sharedstatedir=$ac_optarg ;;
1201 -site | --site | --sit)
1203 -site=* | --site=* | --sit=*)
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1230 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1243 eval with_$ac_useropt=\$ac_optarg ;;
1245 -without-* | --without-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1259 eval with_$ac_useropt=no ;;
1262 # Obsolete; use --with-x.
1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266 | --x-incl | --x-inc | --x-in | --x-i)
1267 ac_prev=x_includes ;;
1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270 x_includes=$ac_optarg ;;
1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274 ac_prev=x_libraries ;;
1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277 x_libraries=$ac_optarg ;;
1279 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1280 Try \`$0 --help' for more information"
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 case $ac_envvar in #(
1287 '' | [0-9]* | *[!_$as_cr_alnum]* )
1288 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 eval $ac_envvar=\$ac_optarg
1291 export $ac_envvar ;;
1294 # FIXME: should be removed in autoconf 3.0.
1295 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1298 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 if test -n "$ac_prev"; then
1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1306 as_fn_error $? "missing argument to $ac_option"
1309 if test -n "$ac_unrecognized_opts"; then
1310 case $enable_option_checking in
1312 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 # Check all directory arguments for consistency.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val=\$$ac_var
1324 # Remove trailing slashes.
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1330 # Be sure to have absolute directory names.
1332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 # There might be people who depend on the old broken behavior: `$host'
1339 # used to hold the argument of --host etc.
1340 # FIXME: To remove some day.
1343 target=$target_alias
1345 # FIXME: To remove some day.
1346 if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
1349 elif test "x$build_alias" != "x$host_alias"; then
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error $? "pwd does not report name of working directory"
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1434 \`configure' configures cups-filters 1.0.36 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/cups-filters]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of cups-filters 1.0.36:";;
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-silent-rules less verbose build output (undo: `make V=1')
1513 --disable-silent-rules verbose build output (undo: `make V=0')
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --disable-imagefilters Build the image filters.
1522 --disable-avahi Disable DNS Service Discovery support using Avahi.
1523 --disable-largefile omit support for large files
1524 --enable-werror Treat all warnings as errors, useful for
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-sysroot=DIR Search for dependent libraries within DIR
1534 (or the compiler's sysroot if not specified).
1535 --with-fontdir=path Specify path to font config directory (default:
1537 --with-cups-config=path Specify path to cups-config executable.
1538 --with-cups-rundir set transient run-time state directory of CUPS
1539 --with-cups-domainsocket set unix domain socket name used by CUPS
1541 --without-jpeg Disable jpeg support.
1542 --without-png Disable png support.
1543 --without-tiff Disable tiff support.
1544 --with-avahi-libs Set directory for Avahi library.
1545 --with-avahi-includes Set directory for Avahi includes
1546 --with-browseremoteprotocols=value
1547 Set which protocols to listen for in cups-browsed
1548 (default: dnssd cups)
1549 --with-rcdir Set path for rc scripts
1550 --with-rclevels Set run levels for rc scripts
1551 --with-rcstart Set start number for rc scripts
1552 --with-rcstop Set stop number for rc scripts
1553 --with-pdftops=value Set which pdftops to use
1554 (gs,pdftops,pdftocairo,acroread).
1555 --with-gs-path=value Set path to ghostcript binary (default: system).
1556 --with-pdftops-path=value
1557 Set path to pdftops/ghostscript binary (default:
1559 --with-pdftocairo-path=value
1560 Set path to pdftocairo binary (default: system).
1561 --with-acroread-path=value
1562 Set path to acroread binary (default: system).
1563 --with-pdftops-maxres=value
1564 Set maximum image rendering resolution for pdftops
1565 filter (0, 75, 150, 300, 600, 1200, 2400, 4800, 90,
1566 180, 360, 720, 1440, 2880, 5760, unlimited).
1568 --with-php Determine whether to build php cups extension.
1569 --with-php-config=path Specify path to php-config executable.
1570 --with-test-font-path=value
1571 Set path to pdftops/ghostscript binary (default:
1572 /usr/share/fonts/dejavu/DejaVuSans.ttf).
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1585 CXXCPP C++ preprocessor
1586 PKG_CONFIG path to pkg-config utility
1588 directories to add to pkg-config's search path
1590 path overriding pkg-config's built-in search path
1592 C compiler flags for LIBPNG, overriding pkg-config
1593 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1594 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1595 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1597 C compiler flags for AVAHI_GLIB, overriding pkg-config
1599 linker flags for AVAHI_GLIB, overriding pkg-config
1600 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
1601 LCMS_LIBS linker flags for LCMS, overriding pkg-config
1603 C compiler flags for FREETYPE, overriding pkg-config
1605 linker flags for FREETYPE, overriding pkg-config
1607 C compiler flags for FONTCONFIG, overriding pkg-config
1609 linker flags for FONTCONFIG, overriding pkg-config
1610 IJS_CFLAGS C compiler flags for IJS, overriding pkg-config
1611 IJS_LIBS linker flags for IJS, overriding pkg-config
1613 C compiler flags for POPPLER, overriding pkg-config
1615 linker flags for POPPLER, overriding pkg-config
1616 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1617 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1619 C compiler flags for LIBQPDF, overriding pkg-config
1621 linker flags for LIBQPDF, overriding pkg-config
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to the package provider.
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1656 .) # We are building in place.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1689 cups-filters configure 1.0.36
1690 generated by GNU Autoconf 2.69
1692 Copyright (C) 2012 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_compile
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists and can be compiled using the include files in
1865 # INCLUDES, setting the cache variable VAR accordingly.
1866 ac_fn_c_check_header_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1879 if ac_fn_c_try_compile "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_header_compile
1893 # ac_fn_c_try_run LINENO
1894 # ----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1896 # that executables *can* be run.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>&5
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1911 { { case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_try") 2>&5
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; }; }; then :
1923 $as_echo "$as_me: program exited with status $ac_status" >&5
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=$ac_status
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1935 # ac_fn_c_check_func LINENO FUNC VAR
1936 # ----------------------------------
1937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1938 ac_fn_c_check_func ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950 #define $2 innocuous_$2
1952 /* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (); below.
1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955 <limits.h> exists even on freestanding compilers. */
1958 # include <limits.h>
1960 # include <assert.h>
1965 /* Override any GCC internal prototype to avoid an error.
1966 Use char because int might match the return type of a GCC
1967 builtin and then its argument prototype would still apply. */
1972 /* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975 #if defined __stub_$2 || defined __stub___$2
1987 if ac_fn_c_try_link "$LINENO"; then :
1992 rm -f core conftest.err conftest.$ac_objext \
1993 conftest$ac_exeext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_func
2002 # ac_fn_cxx_try_cpp LINENO
2003 # ------------------------
2004 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_cpp ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_cpp conftest.$ac_ext"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } > conftest.i && {
2024 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_cxx_try_cpp
2039 # ac_fn_cxx_try_link LINENO
2040 # -------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_link ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext conftest$ac_exeext
2046 if { { ac_try="$ac_link"
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>conftest.err
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest$ac_exeext && {
2065 test "$cross_compiling" = yes ||
2066 test -x conftest$ac_exeext
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2075 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2076 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2077 # interfere with the next link command; also delete a directory that is
2078 # left behind by Apple's compiler. We do this before executing the actions.
2079 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2083 } # ac_fn_cxx_try_link
2085 # ac_fn_cxx_check_func LINENO FUNC VAR
2086 # ------------------------------------
2087 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2088 ac_fn_cxx_check_func ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2100 #define $2 innocuous_$2
2102 /* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char $2 (); below.
2104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105 <limits.h> exists even on freestanding compilers. */
2108 # include <limits.h>
2110 # include <assert.h>
2115 /* Override any GCC internal prototype to avoid an error.
2116 Use char because int might match the return type of a GCC
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined __stub_$2 || defined __stub___$2
2137 if ac_fn_cxx_try_link "$LINENO"; then :
2142 rm -f core conftest.err conftest.$ac_objext \
2143 conftest$ac_exeext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 } # ac_fn_cxx_check_func
2152 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2153 # ---------------------------------------------------------
2154 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155 # the include files in INCLUDES and setting the cache variable VAR
2157 ac_fn_cxx_check_header_mongrel ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if eval \${$3+:} false; then :
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 # Is the header compilable?
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172 $as_echo_n "checking $2 usability... " >&6; }
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_header_compiler=yes
2181 ac_header_compiler=no
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185 $as_echo "$ac_header_compiler" >&6; }
2187 # Is the header present?
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189 $as_echo_n "checking $2 presence... " >&6; }
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 if ac_fn_cxx_try_cpp "$LINENO"; then :
2195 ac_header_preproc=yes
2197 ac_header_preproc=no
2199 rm -f conftest.err conftest.i conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201 $as_echo "$ac_header_preproc" >&6; }
2203 # So? What about this header?
2204 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2215 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2219 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227 $as_echo_n "(cached) " >&6
2229 eval "$3=\$ac_header_compiler"
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_cxx_check_header_mongrel
2239 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2240 # ---------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_cxx_check_type ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2277 if ac_fn_cxx_try_compile "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_cxx_check_type
2292 cat >config.log <<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2296 It was created by cups-filters $as_me 1.0.36, which was
2297 generated by GNU Autoconf 2.69. Invocation command line was
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2318 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2319 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2322 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2323 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2324 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 $as_echo "PATH: $as_dir"
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2357 ac_must_keep_next=false
2363 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365 | -silent | --silent | --silen | --sile | --sil)
2368 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373 as_fn_append ac_configure_args1 " '$ac_arg'"
2374 if test $ac_must_keep_next = true; then
2375 ac_must_keep_next=false # Got value, back to normal.
2378 *=* | --config-cache | -C | -disable-* | --disable-* \
2379 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381 | -with-* | --with-* | -without-* | --without-* | --x)
2382 case "$ac_configure_args0 " in
2383 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386 -* ) ac_must_keep_next=true ;;
2389 as_fn_append ac_configure_args " '$ac_arg'"
2394 { ac_configure_args0=; unset ac_configure_args0;}
2395 { ac_configure_args1=; unset ac_configure_args1;}
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log. We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403 # Save into config.log some information that might help in debugging.
2407 $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2411 # The following way of writing the cache mishandles newlines in values,
2413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414 eval ac_val=\$$ac_var
2418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422 _ | IFS | as_nl) ;; #(
2423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424 *) { eval $ac_var=; unset $ac_var;} ;;
2429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430 *${as_nl}ac_space=\ *)
2432 "s/'\''/'\''\\\\'\'''\''/g;
2433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443 $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2447 for ac_var in $ac_subst_vars
2449 eval ac_val=\$$ac_var
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 $as_echo "$ac_var='\''$ac_val'\''"
2457 if test -n "$ac_subst_files"; then
2458 $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2462 for ac_var in $ac_subst_files
2464 eval ac_val=\$$ac_var
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2473 if test -s confdefs.h; then
2474 $as_echo "## ----------- ##
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489 for ac_signal in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2497 $as_echo "/* confdefs.h */" > confdefs.h
2499 # Predefined preprocessor variables.
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2530 if test -n "$CONFIG_SITE"; then
2531 # We do not want a PATH search for config.site.
2532 case $CONFIG_SITE in #((
2533 -*) ac_site_file1=./$CONFIG_SITE;;
2534 */*) ac_site_file1=$CONFIG_SITE;;
2535 *) ac_site_file1=./$CONFIG_SITE;;
2537 elif test "x$prefix" != xNONE; then
2538 ac_site_file1=$prefix/share/config.site
2539 ac_site_file2=$prefix/etc/config.site
2541 ac_site_file1=$ac_default_prefix/share/config.site
2542 ac_site_file2=$ac_default_prefix/etc/config.site
2544 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546 test "x$ac_site_file" = xNONE && continue
2547 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550 sed 's/^/| /' "$ac_site_file" >&5
2552 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2559 if test -r "$cache_file"; then
2560 # Some versions of bash will fail to source /dev/null (special files
2561 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2562 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2566 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2567 *) . "./$cache_file";;
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2576 # Check that the precious variables saved in the cache have kept the same
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2609 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2611 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2617 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626 if $ac_cache_corrupted; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2631 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 # ===========================================================================
2649 # http://www.gnu.org/software/autoconf-archive/ax_compare_version.html
2650 # ===========================================================================
2654 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2658 # This macro compares two version strings. Due to the various number of
2659 # minor-version numbers that can exist, and the fact that string
2660 # comparisons are not compatible with numeric comparisons, this is not
2661 # necessarily trivial to do in a autoconf script. This macro makes doing
2662 # these comparisons easy.
2664 # The six basic comparisons are available, as well as checking equality
2665 # limited to a certain number of minor-version levels.
2667 # The operator OP determines what type of comparison to do, and can be one
2670 # eq - equal (test A == B)
2671 # ne - not equal (test A != B)
2672 # le - less than or equal (test A <= B)
2673 # ge - greater than or equal (test A >= B)
2674 # lt - less than (test A < B)
2675 # gt - greater than (test A > B)
2677 # Additionally, the eq and ne operator can have a number after it to limit
2678 # the test to that number of minor versions.
2680 # eq0 - equal up to the length of the shorter version
2681 # ne0 - not equal up to the length of the shorter version
2682 # eqN - equal up to N sub-version levels
2683 # neN - not equal up to N sub-version levels
2685 # When the condition is true, shell commands ACTION-IF-TRUE are run,
2686 # otherwise shell commands ACTION-IF-FALSE are run. The environment
2687 # variable 'ax_compare_version' is always set to either 'true' or 'false'
2692 # AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
2693 # AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
2695 # would both be true.
2697 # AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
2698 # AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
2700 # would both be false.
2702 # AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
2704 # would be true because it is only comparing two minor versions.
2706 # AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
2708 # would be true because it is only comparing the lesser number of minor
2709 # versions of the two values.
2711 # Note: The characters that separate the version numbers do not matter. An
2712 # empty string is the same as version 0. OP is evaluated by autoconf, not
2713 # configure, so must be a string, not a variable.
2715 # The author would like to acknowledge Guido Draheim whose advice about
2716 # the m4_case and m4_ifvaln functions make this macro only include the
2717 # portions necessary to perform the specific comparison specified by the
2718 # OP argument in the final configure script.
2722 # Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
2724 # Copying and distribution of this file, with or without modification, are
2725 # permitted in any medium without royalty provided the copyright notice
2726 # and this notice are preserved. This file is offered as-is, without any
2732 am__api_version='1.11'
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2740 elif test -f "$ac_dir/install.sh"; then
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2744 elif test -f "$ac_dir/shtool"; then
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763 # Find a good install program. We prefer a C program (faster),
2764 # so one script is as good as another. But avoid the broken or
2765 # incompatible versions:
2766 # SysV /etc/install, /usr/sbin/install
2767 # SunOS /usr/etc/install
2768 # IRIX /sbin/install
2770 # AmigaOS /C/install, which installs bootblocks on floppy discs
2771 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2772 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2773 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2774 # OS/2's system install, which has a completely different semantic
2775 # ./install, which can be erroneously created by make from ./install.sh.
2776 # Reject install programs that cannot install multiple files.
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2778 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2779 if test -z "$INSTALL"; then
2780 if ${ac_cv_path_install+:} false; then :
2781 $as_echo_n "(cached) " >&6
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 # Account for people who put trailing slashes in PATH elements.
2789 case $as_dir/ in #((
2790 ./ | .// | /[cC]/* | \
2791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2792 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2795 # OSF1 and SCO ODT 3.0 have their own names for install.
2796 # Don't use installbsd from OSF since it installs stuff as root
2798 for ac_prog in ginstall scoinst install; do
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2801 if test $ac_prog = install &&
2802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2803 # AIX install. It has an incompatible calling convention.
2805 elif test $ac_prog = install &&
2806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # program-specific install script used by HP pwplus--don't use.
2810 rm -rf conftest.one conftest.two conftest.dir
2811 echo one > conftest.one
2812 echo two > conftest.two
2814 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2815 test -s conftest.one && test -s conftest.two &&
2816 test -s conftest.dir/conftest.one &&
2817 test -s conftest.dir/conftest.two
2819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2832 rm -rf conftest.one conftest.two conftest.dir
2835 if test "${ac_cv_path_install+set}" = set; then
2836 INSTALL=$ac_cv_path_install
2838 # As a last resort, use the slow shell script. Don't cache a
2839 # value for INSTALL within a source directory, because that will
2840 # break other packages using the cache if that directory is
2841 # removed, or if the value is a relative name.
2842 INSTALL=$ac_install_sh
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2846 $as_echo "$INSTALL" >&6; }
2848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2849 # It thinks the first close brace ends the variable substitution.
2850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2857 $as_echo_n "checking whether build environment is sane... " >&6; }
2860 echo timestamp > conftest.file
2861 # Reject unsafe characters in $srcdir or the absolute working directory
2862 # name. Accept space and tab only in the latter.
2866 *[\\\"\#\$\&\'\`$am_lf]*)
2867 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2870 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2871 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2874 # Do `set' in a subshell so we don't clobber the current shell's
2875 # arguments. Must try -L first in case configure is actually a
2876 # symlink; some systems play weird games with the mod time of symlinks
2877 # (eg FreeBSD returns the mod time of the symlink's containing
2880 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2881 if test "$*" = "X"; then
2883 set X `ls -t "$srcdir/configure" conftest.file`
2886 if test "$*" != "X $srcdir/configure conftest.file" \
2887 && test "$*" != "X conftest.file $srcdir/configure"; then
2889 # If neither matched, then we have a broken ls. This can happen
2890 # if, for instance, CONFIG_SHELL is bash and it inherits a
2891 # broken ls alias from the environment. This has actually
2892 # happened. Such a system could not be considered "sane".
2893 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2894 alias in your environment" "$LINENO" 5
2897 test "$2" = conftest.file
2903 as_fn_error $? "newly created file is older than distributed files!
2904 Check your system clock" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908 test "$program_prefix" != NONE &&
2909 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE &&
2912 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was `s,x,x', remove it if useless.
2915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2918 # expand $ac_aux_dir to an absolute path
2919 am_aux_dir=`cd $ac_aux_dir && pwd`
2921 if test x"${MISSING+set}" != xset; then
2924 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2926 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2929 # Use eval to expand $SHELL
2930 if eval "$MISSING --run true"; then
2931 am_missing_run="$MISSING --run "
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2935 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2938 if test x"${install_sh}" != xset; then
2941 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2943 install_sh="\${SHELL} $am_aux_dir/install-sh"
2947 # Installed binaries are usually stripped using `strip' when the user
2948 # run `make install-strip'. However `strip' might not be the right
2949 # tool to use in cross-compilation environments, therefore Automake
2950 # will honor the `STRIP' environment variable to overrule this program.
2951 if test "$cross_compiling" != no; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}strip; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_STRIP+:} false; then :
2958 $as_echo_n "(cached) " >&6
2960 if test -n "$STRIP"; then
2961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 STRIP=$ac_cv_prog_STRIP
2981 if test -n "$STRIP"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2983 $as_echo "$STRIP" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2991 if test -z "$ac_cv_prog_STRIP"; then
2993 # Extract the first word of "strip", so it can be a program name with args.
2994 set dummy strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$ac_ct_STRIP"; then
3001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_ac_ct_STRIP="strip"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 $as_echo "$ac_ct_STRIP" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3029 if test "x$ac_ct_STRIP" = x; then
3032 case $cross_compiling:$ac_tool_warned in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3041 STRIP="$ac_cv_prog_STRIP"
3045 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3048 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3049 if test -z "$MKDIR_P"; then
3050 if ${ac_cv_path_mkdir+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057 test -z "$as_dir" && as_dir=.
3058 for ac_prog in mkdir gmkdir; do
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3061 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062 'mkdir (GNU coreutils) '* | \
3063 'mkdir (coreutils) '* | \
3064 'mkdir (fileutils) '4.1*)
3065 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3075 test -d ./--version && rmdir ./--version
3076 if test "${ac_cv_path_mkdir+set}" = set; then
3077 MKDIR_P="$ac_cv_path_mkdir -p"
3079 # As a last resort, use the slow shell script. Don't cache a
3080 # value for MKDIR_P within a source directory, because that will
3081 # break other packages using the cache if that directory is
3082 # removed, or if the value is a relative name.
3083 MKDIR_P="$ac_install_sh -d"
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087 $as_echo "$MKDIR_P" >&6; }
3091 [\\/$]* | ?:[\\/]*) ;;
3092 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3095 for ac_prog in gawk mawk nawk awk
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_AWK+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$AWK"; then
3105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_AWK="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$AWK"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3127 $as_echo "$AWK" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3134 test -n "$AWK" && break
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3140 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3141 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 cat >conftest.make <<\_ACEOF
3147 @echo '@@@%%%=$(MAKE)=@@@%%%'
3149 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3152 eval ac_cv_prog_make_${ac_make}_set=yes;;
3154 eval ac_cv_prog_make_${ac_make}_set=no;;
3158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 SET_MAKE="MAKE=${MAKE-make}"
3168 rm -rf .tst 2>/dev/null
3169 mkdir .tst 2>/dev/null
3170 if test -d .tst; then
3175 rmdir .tst 2>/dev/null
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179 # is not polluted with repeated "-I."
3180 am__isrc=' -I$(srcdir)'
3181 # test to see if srcdir already configured
3182 if test -f $srcdir/config.status; then
3183 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189 if (cygpath --version) >/dev/null 2>/dev/null; then
3190 CYGPATH_W='cygpath -w'
3197 # Define the identity of the package.
3198 PACKAGE='cups-filters'
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE "$PACKAGE"
3207 cat >>confdefs.h <<_ACEOF
3208 #define VERSION "$VERSION"
3211 # Some tools Automake needs.
3213 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3216 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3219 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3222 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3225 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3227 # We need awk for the "check" target. The system "awk" is bad on
3229 # Always define AMTAR for backward compatibility. Yes, it's still used
3230 # in the wild :-( We should find a proper way to deprecate it ...
3233 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3239 # Check whether --enable-silent-rules was given.
3240 if test "${enable_silent_rules+set}" = set; then :
3241 enableval=$enable_silent_rules;
3244 case $enable_silent_rules in
3245 yes) AM_DEFAULT_VERBOSITY=0;;
3246 no) AM_DEFAULT_VERBOSITY=1;;
3247 *) AM_DEFAULT_VERBOSITY=0;;
3249 am_make=${MAKE-make}
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3251 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3252 if ${am_cv_make_support_nested_variables+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 if $as_echo 'TRUE=$(BAR$(V))
3261 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3262 am_cv_make_support_nested_variables=yes
3264 am_cv_make_support_nested_variables=no
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3268 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3269 if test $am_cv_make_support_nested_variables = yes; then
3271 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3273 AM_V=$AM_DEFAULT_VERBOSITY
3274 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3279 ac_cpp='$CXXCPP $CPPFLAGS'
3280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3284 ac_config_headers="$ac_config_headers config.h"
3286 # Extra defines for the config.h
3289 # ===========================
3290 # Find required base packages
3291 # ===========================
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$ac_cv_prog_CC"; then
3338 # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$ac_ct_CC"; then
3346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_ac_ct_CC="gcc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 if test "x$ac_ct_CC" = x; then
3377 case $cross_compiling:$ac_tool_warned in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}cc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl.exe
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CC" && break
3530 if test -z "$CC"; then
3532 for ac_prog in cl.exe
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CC" && break
3574 if test "x$ac_ct_CC" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details" "$LINENO" 5; }
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3599 for ac_option in --version -v -V -qversion; do
3600 { { ac_try="$ac_compiler $ac_option >&5"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 if test -s conftest.err; then
3611 ... rest of stderr output deleted ...
3612 10q' conftest.err >conftest.er1
3613 cat conftest.er1 >&5
3615 rm -f conftest.er1 conftest.err
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644 for ac_file in $ac_files
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 if { { ac_try="$ac_link_default"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link_default") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3669 for ac_file in $ac_files ''
3671 test -f "$ac_file" || continue
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 # We found the default executable, but exeext='' is most
3680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 # We set ac_cv_exeext here because the later test for it is not
3685 # safe: cross compilers may not add the suffix if given an `-o'
3686 # argument, so we may need to know it at that point already.
3687 # Even if this section looks crufty: it has the advantage of
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699 if test -z "$ac_file"; then :
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error 77 "C compiler cannot create executables
3708 See \`config.log' for more details" "$LINENO" 5; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711 $as_echo "yes" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714 $as_echo_n "checking for C compiler default output file name... " >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3716 $as_echo "$ac_file" >&6; }
3717 ac_exeext=$ac_cv_exeext
3719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3720 ac_clean_files=$ac_clean_files_save
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3722 $as_echo_n "checking for suffix of executables... " >&6; }
3723 if { { ac_try="$ac_link"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link") 2>&5
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3736 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 for ac_file in conftest.exe conftest conftest.*; do
3739 test -f "$ac_file" || continue
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3751 See \`config.log' for more details" "$LINENO" 5; }
3753 rm -f conftest conftest$ac_cv_exeext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3755 $as_echo "$ac_cv_exeext" >&6; }
3757 rm -f conftest.$ac_ext
3758 EXEEXT=$ac_cv_exeext
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3766 FILE *f = fopen ("conftest.out", "w");
3767 return ferror (f) || fclose (f) != 0;
3773 ac_clean_files="$ac_clean_files conftest.out"
3774 # Check that the compiler produces executables we can run. If not, either
3775 # the compiler is broken, or we cross compile.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3777 $as_echo_n "checking whether we are cross compiling... " >&6; }
3778 if test "$cross_compiling" != yes; then
3779 { { ac_try="$ac_link"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link") 2>&5
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790 if { ac_try='./conftest$ac_cv_exeext'
3791 { { case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_try") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; }; then
3803 if test "$cross_compiling" = maybe; then
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot run C compiled programs.
3809 If you meant to cross compile, use \`--host'.
3810 See \`config.log' for more details" "$LINENO" 5; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3820 $as_echo_n "checking for suffix of object files... " >&6; }
3821 if ${ac_cv_objext+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 rm -f conftest.o conftest.obj
3836 if { { ac_try="$ac_compile"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_compile") 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 for ac_file in conftest.o conftest.obj conftest.*; do
3848 test -f "$ac_file" || continue;
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See \`config.log' for more details" "$LINENO" 5; }
3864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3867 $as_echo "$ac_cv_objext" >&6; }
3868 OBJEXT=$ac_cv_objext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3872 if ${ac_cv_c_compiler_gnu+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3900 if test $ac_compiler_gnu = yes; then
3905 ac_test_CFLAGS=${CFLAGS+set}
3906 ac_save_CFLAGS=$CFLAGS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3909 if ${ac_cv_prog_cc_g+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 ac_save_c_werror_flag=$ac_c_werror_flag
3913 ac_c_werror_flag=yes
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 if ac_fn_c_try_compile "$LINENO"; then :
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3942 if ac_fn_c_try_compile "$LINENO"; then :
3945 ac_c_werror_flag=$ac_save_c_werror_flag
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 if ac_fn_c_try_compile "$LINENO"; then :
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3969 $as_echo "$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971 CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973 if test "$GCC" = yes; then
3979 if test "$GCC" = yes; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3987 if ${ac_cv_prog_cc_c89+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_cv_prog_cc_c89=no
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4011 s = g (p, va_arg (v,int));
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4017 function prototypes and stuff, but not '\xHH' hex character constants.
4018 These don't provoke an error unfortunately, instead are silently treated
4019 as 'x'. The following induces an error, until -std is added to get
4020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4021 array size at least. It's necessary to write '\x00'==0 to get something
4022 that's true only with -std. */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026 inside strings and character constants. */
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047 CC="$ac_save_CC $ac_arg"
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_c89=$ac_arg
4051 rm -f core conftest.err conftest.$ac_objext
4052 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 rm -f conftest.$ac_ext
4059 case "x$ac_cv_prog_cc_c89" in
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4067 CC="$CC $ac_cv_prog_cc_c89"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 DEPDIR="${am__leading_dot}deps"
4082 ac_config_commands="$ac_config_commands depfiles"
4085 am_make=${MAKE-make}
4086 cat > confinc << 'END'
4088 @echo this is the am__doit target
4091 # If we don't find an include directive, just comment out the code.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4093 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4097 # First try GNU make style include.
4098 echo "include confinc" > confmf
4099 # Ignore all kinds of additional output from `make'.
4100 case `$am_make -s -f confmf 2> /dev/null` in #(
4101 *the\ am__doit\ target*)
4107 # Now try BSD make style include.
4108 if test "$am__include" = "#"; then
4109 echo '.include "confinc"' > confmf
4110 case `$am_make -s -f confmf 2> /dev/null` in #(
4111 *the\ am__doit\ target*)
4112 am__include=.include
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4121 $as_echo "$_am_result" >&6; }
4122 rm -f confinc confmf
4124 # Check whether --enable-dependency-tracking was given.
4125 if test "${enable_dependency_tracking+set}" = set; then :
4126 enableval=$enable_dependency_tracking;
4129 if test "x$enable_dependency_tracking" != xno; then
4130 am_depcomp="$ac_aux_dir/depcomp"
4134 if test "x$enable_dependency_tracking" != xno; then
4144 depcc="$CC" am_compiler_list=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4147 $as_echo_n "checking dependency style of $depcc... " >&6; }
4148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152 # We make a subdir and do the tests there. Otherwise we can end up
4153 # making bogus files that we don't know about and never remove. For
4154 # instance it was reported that on HP-UX the gcc test will end up
4155 # making a dummy file named `D' -- because `-MD' means `put the output
4159 # Copy depcomp to subdir because otherwise we won't find it if we're
4160 # using a relative directory.
4161 cp "$am_depcomp" conftest.dir
4163 # We will build objects and dependencies in a subdirectory because
4164 # it helps to detect inapplicable dependency modes. For instance
4165 # both Tru64's cc and ICC support -MD to output dependencies as a
4166 # side effect of compilation, but ICC will put the dependencies in
4167 # the current directory while Tru64 will put them in the object
4171 am_cv_CC_dependencies_compiler_type=none
4172 if test "$am_compiler_list" = ""; then
4173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176 case " $depcc " in #(
4177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4180 for depmode in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4189 for i in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192 # Solaris 8's {/usr,}/bin/sh.
4193 touch sub/conftst$i.h
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4198 # mode. It turns out that the SunPro C++ compiler does not properly
4199 # handle `-M -o', and we need to detect this. Also, some Intel
4200 # versions had trouble with output in subdirs
4201 am__obj=sub/conftest.${OBJEXT-o}
4202 am__minus_obj="-o $am__obj"
4205 # This depmode causes a compiler race in universal mode.
4206 test "$am__universal" = false || continue
4209 # after this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested
4211 if test "x$enable_dependency_tracking" = xyes; then
4217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4218 # This compiler won't grok `-c -o', but also, the minuso test has
4219 # not run yet. These depmodes are late enough in the game, and
4220 # so weak that their functioning should not be impacted.
4221 am__obj=conftest.${OBJEXT-o}
4226 if depmode=$depmode \
4227 source=sub/conftest.c object=$am__obj \
4228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4230 >/dev/null 2>conftest.err &&
4231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type=$depmode
4253 am_cv_CC_dependencies_compiler_type=none
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4265 am__fastdepCC_FALSE='#'
4267 am__fastdepCC_TRUE='#'
4268 am__fastdepCC_FALSE=
4273 ac_cpp='$CXXCPP $CPPFLAGS'
4274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4277 if test -z "$CXX"; then
4278 if test -n "$CCC"; then
4281 if test -n "$ac_tool_prefix"; then
4282 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CXX+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 if test -n "$CXX"; then
4292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 if test -n "$CXX"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4314 $as_echo "$CXX" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4321 test -n "$CXX" && break
4324 if test -z "$CXX"; then
4326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4328 # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$ac_ct_CXX"; then
4336 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_prog_ac_ct_CXX="$ac_prog"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4356 if test -n "$ac_ct_CXX"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4358 $as_echo "$ac_ct_CXX" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4365 test -n "$ac_ct_CXX" && break
4368 if test "x$ac_ct_CXX" = x; then
4371 case $cross_compiling:$ac_tool_warned in
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned=yes ;;
4383 # Provide some information about the compiler.
4384 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4387 for ac_option in --version -v -V -qversion; do
4388 { { ac_try="$ac_compiler $ac_option >&5"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4397 if test -s conftest.err; then
4399 ... rest of stderr output deleted ...
4400 10q' conftest.err >conftest.er1
4401 cat conftest.er1 >&5
4403 rm -f conftest.er1 conftest.err
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4409 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4410 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4411 $as_echo_n "(cached) " >&6
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4427 if ac_fn_cxx_try_compile "$LINENO"; then :
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4437 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4438 if test $ac_compiler_gnu = yes; then
4443 ac_test_CXXFLAGS=${CXXFLAGS+set}
4444 ac_save_CXXFLAGS=$CXXFLAGS
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4446 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4447 if ${ac_cv_prog_cxx_g+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4451 ac_cxx_werror_flag=yes
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4465 if ac_fn_cxx_try_compile "$LINENO"; then :
4466 ac_cv_prog_cxx_g=yes
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4480 if ac_fn_cxx_try_compile "$LINENO"; then :
4483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4497 ac_cv_prog_cxx_g=yes
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4507 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4508 if test "$ac_test_CXXFLAGS" = set; then
4509 CXXFLAGS=$ac_save_CXXFLAGS
4510 elif test $ac_cv_prog_cxx_g = yes; then
4511 if test "$GXX" = yes; then
4517 if test "$GXX" = yes; then
4524 ac_cpp='$CXXCPP $CPPFLAGS'
4525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4529 depcc="$CXX" am_compiler_list=
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4532 $as_echo_n "checking dependency style of $depcc... " >&6; }
4533 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4537 # We make a subdir and do the tests there. Otherwise we can end up
4538 # making bogus files that we don't know about and never remove. For
4539 # instance it was reported that on HP-UX the gcc test will end up
4540 # making a dummy file named `D' -- because `-MD' means `put the output
4544 # Copy depcomp to subdir because otherwise we won't find it if we're
4545 # using a relative directory.
4546 cp "$am_depcomp" conftest.dir
4548 # We will build objects and dependencies in a subdirectory because
4549 # it helps to detect inapplicable dependency modes. For instance
4550 # both Tru64's cc and ICC support -MD to output dependencies as a
4551 # side effect of compilation, but ICC will put the dependencies in
4552 # the current directory while Tru64 will put them in the object
4556 am_cv_CXX_dependencies_compiler_type=none
4557 if test "$am_compiler_list" = ""; then
4558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4561 case " $depcc " in #(
4562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4565 for depmode in $am_compiler_list; do
4566 # Setup a source with many dependencies, because some compilers
4567 # like to wrap large dependency lists on column 80 (with \), and
4568 # we should not choose a depcomp mode which is confused by this.
4570 # We need to recreate these files for each test, as the compiler may
4571 # overwrite some of them when testing with obscure command lines.
4572 # This happens at least with the AIX C compiler.
4574 for i in 1 2 3 4 5 6; do
4575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4577 # Solaris 8's {/usr,}/bin/sh.
4578 touch sub/conftst$i.h
4580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4583 # mode. It turns out that the SunPro C++ compiler does not properly
4584 # handle `-M -o', and we need to detect this. Also, some Intel
4585 # versions had trouble with output in subdirs
4586 am__obj=sub/conftest.${OBJEXT-o}
4587 am__minus_obj="-o $am__obj"
4590 # This depmode causes a compiler race in universal mode.
4591 test "$am__universal" = false || continue
4594 # after this tag, mechanisms are not by side-effect, so they'll
4595 # only be used when explicitly requested
4596 if test "x$enable_dependency_tracking" = xyes; then
4602 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4603 # This compiler won't grok `-c -o', but also, the minuso test has
4604 # not run yet. These depmodes are late enough in the game, and
4605 # so weak that their functioning should not be impacted.
4606 am__obj=conftest.${OBJEXT-o}
4611 if depmode=$depmode \
4612 source=sub/conftest.c object=$am__obj \
4613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4615 >/dev/null 2>conftest.err &&
4616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4620 # icc doesn't choke on unknown options, it will just issue warnings
4621 # or remarks (even with -Werror). So we grep stderr for any message
4622 # that says an option was ignored or not supported.
4623 # When given -MP, icc 7.0 and 7.1 complain thusly:
4624 # icc: Command line warning: ignoring option '-M'; no argument required
4625 # The diagnosis changed in icc 8.0:
4626 # icc: Command line remark: option '-MP' not supported
4627 if (grep 'ignoring option' conftest.err ||
4628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4629 am_cv_CXX_dependencies_compiler_type=$depmode
4638 am_cv_CXX_dependencies_compiler_type=none
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4643 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4644 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4647 test "x$enable_dependency_tracking" != xno \
4648 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4649 am__fastdepCXX_TRUE=
4650 am__fastdepCXX_FALSE='#'
4652 am__fastdepCXX_TRUE='#'
4653 am__fastdepCXX_FALSE=
4657 if test "x$CC" != xcc; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4659 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4662 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4664 set dummy $CC; ac_cc=`$as_echo "$2" |
4665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4666 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4680 # Make sure it works both with $CC and with simple cc.
4681 # We do the test twice because some compilers refuse to overwrite an
4682 # existing .o file with -o, though they will create one.
4683 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4685 if { { case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_try") 2>&5
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; } &&
4695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_try") 2>&5
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; };
4706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4707 if test "x$CC" != xcc; then
4708 # Test first that cc exists at all.
4709 if { ac_try='cc -c conftest.$ac_ext >&5'
4710 { { case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_try") 2>&5
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }; }; then
4720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4722 if { { case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 $as_echo "$ac_try_echo"; } >&5
4728 (eval "$ac_try") 2>&5
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; } &&
4732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4737 $as_echo "$ac_try_echo"; } >&5
4738 (eval "$ac_try") 2>&5
4740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741 test $ac_status = 0; };
4746 # cc exists but doesn't like -o.
4747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4754 rm -f core conftest*
4757 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4759 $as_echo "yes" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4764 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4768 # FIXME: we rely on the cache variable name because
4769 # there is no other way.
4771 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4772 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4773 if test "$am_t" != yes; then
4774 # Losing compiler, so override with the script.
4775 # FIXME: It is wrong to rewrite CC.
4776 # But if we don't then we get into trouble of one sort or another.
4777 # A longer-term fix would be to have automake use am__CC in this case,
4778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4779 CC="$am_aux_dir/compile $CC"
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4794 if test -z "$CPP"; then
4795 if ${ac_cv_prog_CPP+:} false; then :
4796 $as_echo_n "(cached) " >&6
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4813 # include <limits.h>
4815 # include <assert.h>
4819 if ac_fn_c_try_cpp "$LINENO"; then :
4822 # Broken: fails on valid input.
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4833 if ac_fn_c_try_cpp "$LINENO"; then :
4834 # Broken: success on invalid input.
4837 # Passes both tests.
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then :
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4859 $as_echo "$CPP" >&6; }
4861 for ac_c_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4881 # Broken: fails on valid input.
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4886 # OK, works on sane cases. Now check whether nonexistent headers
4887 # can be detected and how.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893 # Broken: success on invalid input.
4896 # Passes both tests.
4900 rm -f conftest.err conftest.i conftest.$ac_ext
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.i conftest.err conftest.$ac_ext
4905 if $ac_preproc_ok; then :
4908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4911 See \`config.log' for more details" "$LINENO" 5; }
4915 ac_cpp='$CXXCPP $CPPFLAGS'
4916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4922 $as_echo_n "checking whether ln -s works... " >&6; }
4924 if test "$LN_S" = "ln -s"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 $as_echo "yes" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4929 $as_echo "no, using $LN_S" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4936 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 cat >conftest.make <<\_ACEOF
4942 @echo '@@@%%%=$(MAKE)=@@@%%%'
4944 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4947 eval ac_cv_prog_make_${ac_make}_set=yes;;
4949 eval ac_cv_prog_make_${ac_make}_set=no;;
4953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 $as_echo "yes" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 SET_MAKE="MAKE=${MAKE-make}"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4971 macro_version='2.4.2'
4972 macro_revision='1.3337'
4986 ltmain="$ac_aux_dir/ltmain.sh"
4988 # Make sure we can run config.sub.
4989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4990 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4993 $as_echo_n "checking build system type... " >&6; }
4994 if ${ac_cv_build+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 ac_build_alias=$build_alias
4998 test "x$ac_build_alias" = x &&
4999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5000 test "x$ac_build_alias" = x &&
5001 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5007 $as_echo "$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5010 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5013 ac_save_IFS=$IFS; IFS='-'
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5027 $as_echo_n "checking host system type... " >&6; }
5028 if ${ac_cv_host+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 if test "x$host_alias" = x; then
5032 ac_cv_host=$ac_cv_build
5034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5040 $as_echo "$ac_cv_host" >&6; }
5043 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5046 ac_save_IFS=$IFS; IFS='-'
5052 # Remember, the first character of IFS is used to create $*,
5053 # except with old shells:
5056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5059 # Backslashify metacharacters that are still active within
5060 # double-quoted strings.
5061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5063 # Same as above, but do not quote variable references.
5064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5066 # Sed substitution to delay expansion of an escaped shell variable in a
5067 # double_quote_subst'ed string.
5068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5070 # Sed substitution to delay expansion of an escaped single quote.
5071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5073 # Sed substitution to avoid accidental globbing in evaled expressions
5074 no_glob_subst='s/\*/\\\*/g'
5076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5081 $as_echo_n "checking how to print strings... " >&6; }
5082 # Test print first, because it will be a builtin if present.
5083 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 # Use this function as a fallback that always works.
5090 func_fallback_echo ()
5092 eval 'cat <<_LTECHO_EOF
5096 ECHO='func_fallback_echo'
5099 # func_echo_all arg...
5100 # Invoke $ECHO with all args, space-separated.
5107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5108 $as_echo "printf" >&6; } ;;
5109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5110 $as_echo "print -r" >&6; } ;;
5111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5112 $as_echo "cat" >&6; } ;;
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5130 if ${ac_cv_path_SED+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5134 for ac_i in 1 2 3 4 5 6 7; do
5135 ac_script="$ac_script$as_nl$ac_script"
5137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5138 { ac_script=; unset ac_script;}
5139 if test -z "$SED"; then
5140 ac_path_SED_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in sed gsed; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_SED" || continue
5151 # Check for GNU ac_path_SED and select it if it is found.
5152 # Check for GNU $ac_path_SED
5153 case `"$ac_path_SED" --version 2>&1` in
5155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5158 $as_echo_n 0123456789 >"conftest.in"
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo '' >> "conftest.nl"
5165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_SED_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_SED="$ac_path_SED"
5171 ac_path_SED_max=$ac_count
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5179 $ac_path_SED_found && break 3
5184 if test -z "$ac_cv_path_SED"; then
5185 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5193 $as_echo "$ac_cv_path_SED" >&6; }
5194 SED="$ac_cv_path_SED"
5197 test -z "$SED" && SED=sed
5198 Xsed="$SED -e 1s/^X//"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5212 if ${ac_cv_path_GREP+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -z "$GREP"; then
5216 ac_path_GREP_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5222 test -z "$as_dir" && as_dir=.
5223 for ac_prog in grep ggrep; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5226 as_fn_executable_p "$ac_path_GREP" || continue
5227 # Check for GNU ac_path_GREP and select it if it is found.
5228 # Check for GNU $ac_path_GREP
5229 case `"$ac_path_GREP" --version 2>&1` in
5231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5234 $as_echo_n 0123456789 >"conftest.in"
5237 cat "conftest.in" "conftest.in" >"conftest.tmp"
5238 mv "conftest.tmp" "conftest.in"
5239 cp "conftest.in" "conftest.nl"
5240 $as_echo 'GREP' >> "conftest.nl"
5241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243 as_fn_arith $ac_count + 1 && ac_count=$as_val
5244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5245 # Best one so far, save it but keep looking for a better one
5246 ac_cv_path_GREP="$ac_path_GREP"
5247 ac_path_GREP_max=$ac_count
5249 # 10*(2^10) chars as input seems more than enough
5250 test $ac_count -gt 10 && break
5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255 $ac_path_GREP_found && break 3
5260 if test -z "$ac_cv_path_GREP"; then
5261 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5264 ac_cv_path_GREP=$GREP
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5269 $as_echo "$ac_cv_path_GREP" >&6; }
5270 GREP="$ac_cv_path_GREP"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5274 $as_echo_n "checking for egrep... " >&6; }
5275 if ${ac_cv_path_EGREP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5279 then ac_cv_path_EGREP="$GREP -E"
5281 if test -z "$EGREP"; then
5282 ac_path_EGREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in egrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5292 as_fn_executable_p "$ac_path_EGREP" || continue
5293 # Check for GNU ac_path_EGREP and select it if it is found.
5294 # Check for GNU $ac_path_EGREP
5295 case `"$ac_path_EGREP" --version 2>&1` in
5297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5300 $as_echo_n 0123456789 >"conftest.in"
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 $as_echo 'EGREP' >> "conftest.nl"
5307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_EGREP="$ac_path_EGREP"
5313 ac_path_EGREP_max=$ac_count
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5321 $ac_path_EGREP_found && break 3
5326 if test -z "$ac_cv_path_EGREP"; then
5327 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5330 ac_cv_path_EGREP=$EGREP
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5336 $as_echo "$ac_cv_path_EGREP" >&6; }
5337 EGREP="$ac_cv_path_EGREP"
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5341 $as_echo_n "checking for fgrep... " >&6; }
5342 if ${ac_cv_path_FGREP+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5346 then ac_cv_path_FGREP="$GREP -F"
5348 if test -z "$FGREP"; then
5349 ac_path_FGREP_found=false
5350 # Loop through the user's path and test for each of PROGNAME-LIST
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355 test -z "$as_dir" && as_dir=.
5356 for ac_prog in fgrep; do
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5359 as_fn_executable_p "$ac_path_FGREP" || continue
5360 # Check for GNU ac_path_FGREP and select it if it is found.
5361 # Check for GNU $ac_path_FGREP
5362 case `"$ac_path_FGREP" --version 2>&1` in
5364 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5367 $as_echo_n 0123456789 >"conftest.in"
5370 cat "conftest.in" "conftest.in" >"conftest.tmp"
5371 mv "conftest.tmp" "conftest.in"
5372 cp "conftest.in" "conftest.nl"
5373 $as_echo 'FGREP' >> "conftest.nl"
5374 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376 as_fn_arith $ac_count + 1 && ac_count=$as_val
5377 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5378 # Best one so far, save it but keep looking for a better one
5379 ac_cv_path_FGREP="$ac_path_FGREP"
5380 ac_path_FGREP_max=$ac_count
5382 # 10*(2^10) chars as input seems more than enough
5383 test $ac_count -gt 10 && break
5385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5388 $ac_path_FGREP_found && break 3
5393 if test -z "$ac_cv_path_FGREP"; then
5394 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5397 ac_cv_path_FGREP=$FGREP
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5403 $as_echo "$ac_cv_path_FGREP" >&6; }
5404 FGREP="$ac_cv_path_FGREP"
5407 test -z "$GREP" && GREP=grep
5427 # Check whether --with-gnu-ld was given.
5428 if test "${with_gnu_ld+set}" = set; then :
5429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5435 if test "$GCC" = yes; then
5436 # Check if gcc -print-prog-name=ld gives a path.
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5438 $as_echo_n "checking for ld used by $CC... " >&6; }
5441 # gcc leaves a trailing carriage return which upsets mingw
5442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5447 # Accept absolute paths.
5449 re_direlt='/[^/][^/]*/\.\./'
5450 # Canonicalize the pathname of ld
5451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5455 test -z "$LD" && LD="$ac_prog"
5458 # If it fails, then pretend we aren't using GCC.
5462 # If it is relative, then search for the first ld in PATH.
5466 elif test "$with_gnu_ld" = yes; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5468 $as_echo_n "checking for GNU ld... " >&6; }
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5471 $as_echo_n "checking for non-GNU ld... " >&6; }
5473 if ${lt_cv_path_LD+:} false; then :
5474 $as_echo_n "(cached) " >&6
5476 if test -z "$LD"; then
5477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5478 for ac_dir in $PATH; do
5480 test -z "$ac_dir" && ac_dir=.
5481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5482 lt_cv_path_LD="$ac_dir/$ac_prog"
5483 # Check to see if the program is GNU ld. I'd rather use --version,
5484 # but apparently some variants of GNU ld only accept -v.
5485 # Break only if it was the GNU/non-GNU ld that we prefer.
5486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5487 *GNU* | *'with BFD'*)
5488 test "$with_gnu_ld" != no && break
5491 test "$with_gnu_ld" != yes && break
5498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5503 if test -n "$LD"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5505 $as_echo "$LD" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5513 if ${lt_cv_prog_gnu_ld+:} false; then :
5514 $as_echo_n "(cached) " >&6
5516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5517 case `$LD -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519 lt_cv_prog_gnu_ld=yes
5522 lt_cv_prog_gnu_ld=no
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5528 with_gnu_ld=$lt_cv_prog_gnu_ld
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5540 if ${lt_cv_path_NM+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 if test -n "$NM"; then
5544 # Let the user override the test.
5547 lt_nm_to_check="${ac_tool_prefix}nm"
5548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5549 lt_nm_to_check="$lt_nm_to_check nm"
5551 for lt_tmp_nm in $lt_nm_to_check; do
5552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5555 test -z "$ac_dir" && ac_dir=.
5556 tmp_nm="$ac_dir/$lt_tmp_nm"
5557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5558 # Check to see if the nm accepts a BSD-compat flag.
5559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5560 # nm: unknown option "B" ignored
5561 # Tru64's nm complains that /dev/null is an invalid object file
5562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5563 */dev/null* | *'Invalid file or object type'*)
5564 lt_cv_path_NM="$tmp_nm -B"
5568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5570 lt_cv_path_NM="$tmp_nm -p"
5574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5575 continue # so that we can try to find one that supports BSD flags
5584 : ${lt_cv_path_NM=no}
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5588 $as_echo "$lt_cv_path_NM" >&6; }
5589 if test "$lt_cv_path_NM" != "no"; then
5592 # Didn't find any BSD compatible name lister, look for dumpbin.
5593 if test -n "$DUMPBIN"; then :
5594 # Let the user override the test.
5596 if test -n "$ac_tool_prefix"; then
5597 for ac_prog in dumpbin "link -dump"
5599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_DUMPBIN+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$DUMPBIN"; then
5607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 DUMPBIN=$ac_cv_prog_DUMPBIN
5627 if test -n "$DUMPBIN"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5629 $as_echo "$DUMPBIN" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 test -n "$DUMPBIN" && break
5639 if test -z "$DUMPBIN"; then
5640 ac_ct_DUMPBIN=$DUMPBIN
5641 for ac_prog in dumpbin "link -dump"
5643 # Extract the first word of "$ac_prog", so it can be a program name with args.
5644 set dummy $ac_prog; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 if test -n "$ac_ct_DUMPBIN"; then
5651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5671 if test -n "$ac_ct_DUMPBIN"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5673 $as_echo "$ac_ct_DUMPBIN" >&6; }
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5680 test -n "$ac_ct_DUMPBIN" && break
5683 if test "x$ac_ct_DUMPBIN" = x; then
5686 case $cross_compiling:$ac_tool_warned in
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5692 DUMPBIN=$ac_ct_DUMPBIN
5696 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5698 DUMPBIN="$DUMPBIN -symbols"
5706 if test "$DUMPBIN" != ":"; then
5710 test -z "$NM" && NM=nm
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5718 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5719 if ${lt_cv_nm_interface+:} false; then :
5720 $as_echo_n "(cached) " >&6
5722 lt_cv_nm_interface="BSD nm"
5723 echo "int some_variable = 0;" > conftest.$ac_ext
5724 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5725 (eval "$ac_compile" 2>conftest.err)
5726 cat conftest.err >&5
5727 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5728 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5729 cat conftest.err >&5
5730 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5731 cat conftest.out >&5
5732 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5733 lt_cv_nm_interface="MS dumpbin"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5738 $as_echo "$lt_cv_nm_interface" >&6; }
5740 # find the maximum length of command line arguments
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5742 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5743 if ${lt_cv_sys_max_cmd_len+:} false; then :
5744 $as_echo_n "(cached) " >&6
5751 # On DJGPP, this test can blow up pretty badly due to problems in libc
5752 # (any single argument exceeding 2000 bytes causes a buffer overrun
5753 # during glob expansion). Even if it were fixed, the result of this
5754 # check would be larger than it should be.
5755 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5759 # Under GNU Hurd, this test is not required because there is
5760 # no limit to the length of command line arguments.
5761 # Libtool will interpret -1 as no limit whatsoever
5762 lt_cv_sys_max_cmd_len=-1;
5765 cygwin* | mingw* | cegcc*)
5766 # On Win9x/ME, this test blows up -- it succeeds, but takes
5767 # about 5 minutes as the teststring grows exponentially.
5768 # Worse, since 9x/ME are not pre-emptively multitasking,
5769 # you end up with a "frozen" computer, even though with patience
5770 # the test eventually succeeds (with a max line length of 256k).
5771 # Instead, let's just punt: use the minimum linelength reported by
5772 # all of the supported platforms: 8192 (on NT/2K/XP).
5773 lt_cv_sys_max_cmd_len=8192;
5777 # On MiNT this can take a long time and run out of memory.
5778 lt_cv_sys_max_cmd_len=8192;
5782 # On AmigaOS with pdksh, this test takes hours, literally.
5783 # So we just punt and use a minimum line length of 8192.
5784 lt_cv_sys_max_cmd_len=8192;
5787 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5788 # This has been around since 386BSD, at least. Likely further.
5789 if test -x /sbin/sysctl; then
5790 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5791 elif test -x /usr/sbin/sysctl; then
5792 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5794 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5796 # And add a safety zone
5797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5803 lt_cv_sys_max_cmd_len=196608
5807 # The test takes a long time on OS/2.
5808 lt_cv_sys_max_cmd_len=8192
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5825 lt_cv_sys_max_cmd_len=102400
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5832 lt_cv_sys_max_cmd_len=32768
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len" && \
5838 test undefined != "$lt_cv_sys_max_cmd_len"; then
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842 # Make teststring a little bigger before we do anything with it.
5843 # a 1K string should be a reasonable start.
5844 for i in 1 2 3 4 5 6 7 8 ; do
5845 teststring=$teststring$teststring
5847 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5848 # If test is not a shell built-in, we'll probably end up computing a
5849 # maximum length that is only half of the actual maximum length, but
5851 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5852 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5853 test $i != 17 # 1/2 MB should be enough
5856 teststring=$teststring$teststring
5858 # Only check the string length outside the loop.
5859 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5861 # Add a significant safety factor because C++ compilers can tack on
5862 # massive amounts of additional arguments before passing them to the
5863 # linker. It appears as though 1/2 is a usable value.
5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5871 if test -n $lt_cv_sys_max_cmd_len ; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5873 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5876 $as_echo "none" >&6; }
5878 max_cmd_len=$lt_cv_sys_max_cmd_len
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5890 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5891 # Try some XSI features
5894 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5896 && eval 'test $(( 1 + 1 )) -eq 2 \
5897 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5900 $as_echo "$xsi_shell" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5904 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5906 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5908 && lt_shell_append=yes
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5910 $as_echo "$lt_shell_append" >&6; }
5913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5923 # test EBCDIC or ASCII
5924 case `echo X|tr X '\101'` in
5925 A) # ASCII based system
5926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5927 lt_SP2NL='tr \040 \012'
5928 lt_NL2SP='tr \015\012 \040\040'
5930 *) # EBCDIC based system
5931 lt_SP2NL='tr \100 \n'
5932 lt_NL2SP='tr \r\n \100\100'
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5945 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5946 if ${lt_cv_to_host_file_cmd+:} false; then :
5947 $as_echo_n "(cached) " >&6
5952 *-*-mingw* ) # actually msys
5953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5956 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5958 * ) # otherwise, assume *nix
5959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5965 *-*-mingw* ) # actually msys
5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5969 lt_cv_to_host_file_cmd=func_convert_file_noop
5971 * ) # otherwise, assume *nix
5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5976 * ) # unhandled hosts (and "normal" native builds)
5977 lt_cv_to_host_file_cmd=func_convert_file_noop
5983 to_host_file_cmd=$lt_cv_to_host_file_cmd
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5985 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5992 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5993 if ${lt_cv_to_tool_file_cmd+:} false; then :
5994 $as_echo_n "(cached) " >&6
5996 #assume ordinary cross tools, or native build.
5997 lt_cv_to_tool_file_cmd=func_convert_file_noop
6001 *-*-mingw* ) # actually msys
6002 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6012 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6019 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6020 if ${lt_cv_ld_reload_flag+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 lt_cv_ld_reload_flag='-r'
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6026 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6027 reload_flag=$lt_cv_ld_reload_flag
6028 case $reload_flag in
6030 *) reload_flag=" $reload_flag" ;;
6032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6034 cygwin* | mingw* | pw32* | cegcc*)
6035 if test "$GCC" != yes; then
6040 if test "$GCC" = yes; then
6041 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6043 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6056 if test -n "$ac_tool_prefix"; then
6057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_prog_OBJDUMP+:} false; then :
6062 $as_echo_n "(cached) " >&6
6064 if test -n "$OBJDUMP"; then
6065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 OBJDUMP=$ac_cv_prog_OBJDUMP
6085 if test -n "$OBJDUMP"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6087 $as_echo "$OBJDUMP" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6095 if test -z "$ac_cv_prog_OBJDUMP"; then
6096 ac_ct_OBJDUMP=$OBJDUMP
6097 # Extract the first word of "objdump", so it can be a program name with args.
6098 set dummy objdump; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$ac_ct_OBJDUMP"; then
6105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6125 if test -n "$ac_ct_OBJDUMP"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6127 $as_echo "$ac_ct_OBJDUMP" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6133 if test "x$ac_ct_OBJDUMP" = x; then
6136 case $cross_compiling:$ac_tool_warned in
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140 ac_tool_warned=yes ;;
6142 OBJDUMP=$ac_ct_OBJDUMP
6145 OBJDUMP="$ac_cv_prog_OBJDUMP"
6148 test -z "$OBJDUMP" && OBJDUMP=objdump
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6160 if ${lt_cv_deplibs_check_method+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 lt_cv_file_magic_cmd='$MAGIC_CMD'
6164 lt_cv_file_magic_test_file=
6165 lt_cv_deplibs_check_method='unknown'
6166 # Need to set the preceding variable on all platforms that support
6167 # interlibrary dependencies.
6168 # 'none' -- dependencies not supported.
6169 # `unknown' -- same as none, but documents that we really don't know.
6170 # 'pass_all' -- all dependencies passed with no checks.
6171 # 'test_compile' -- check by making test program.
6172 # 'file_magic [[regex]]' -- check by looking for files in library path
6173 # which responds to the $file_magic_cmd with a given extended regex.
6174 # If you have `file' or equivalent on your system and you're not sure
6175 # whether `pass_all' will *always* work, you probably want this one.
6179 lt_cv_deplibs_check_method=pass_all
6183 lt_cv_deplibs_check_method=pass_all
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6188 lt_cv_file_magic_cmd='/usr/bin/file -L'
6189 lt_cv_file_magic_test_file=/shlib/libc.so
6193 # func_win32_libid is a shell function defined in ltmain.sh
6194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6195 lt_cv_file_magic_cmd='func_win32_libid'
6199 # Base MSYS/MinGW do not provide the 'file' command needed by
6200 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6201 # unless we find 'file', for example because we are cross-compiling.
6202 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6203 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6205 lt_cv_file_magic_cmd='func_win32_libid'
6207 # Keep this pattern in sync with the one in func_win32_libid.
6208 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6209 lt_cv_file_magic_cmd='$OBJDUMP -f'
6214 # use the weaker test based on 'objdump'. See mingw*.
6215 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6216 lt_cv_file_magic_cmd='$OBJDUMP -f'
6219 darwin* | rhapsody*)
6220 lt_cv_deplibs_check_method=pass_all
6223 freebsd* | dragonfly*)
6224 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6227 # Not sure whether the presence of OpenBSD here was a mistake.
6228 # Let's accept both of them until this is cleared up.
6229 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6230 lt_cv_file_magic_cmd=/usr/bin/file
6231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6235 lt_cv_deplibs_check_method=pass_all
6240 lt_cv_deplibs_check_method=pass_all
6243 hpux10.20* | hpux11*)
6244 lt_cv_file_magic_cmd=/usr/bin/file
6247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6248 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6251 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]'
6252 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6262 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6266 irix5* | irix6* | nonstopux*)
6268 *-32|*"-32 ") libmagic=32-bit;;
6269 *-n32|*"-n32 ") libmagic=N32;;
6270 *-64|*"-64 ") libmagic=64-bit;;
6271 *) libmagic=never-match;;
6273 lt_cv_deplibs_check_method=pass_all
6276 # This must be glibc/ELF.
6277 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6278 lt_cv_deplibs_check_method=pass_all
6281 netbsd* | netbsdelf*-gnu)
6282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6291 lt_cv_file_magic_cmd=/usr/bin/file
6292 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6296 lt_cv_deplibs_check_method=pass_all
6300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6307 osf3* | osf4* | osf5*)
6308 lt_cv_deplibs_check_method=pass_all
6312 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6320 lt_cv_deplibs_check_method=pass_all
6324 case $host_vendor in
6326 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]'
6327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6330 lt_cv_deplibs_check_method=pass_all
6333 lt_cv_file_magic_cmd='/bin/file'
6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6337 lt_cv_file_magic_cmd='/bin/file'
6338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6339 lt_cv_file_magic_test_file=/lib/libc.so
6342 lt_cv_deplibs_check_method=pass_all
6345 lt_cv_deplibs_check_method=pass_all
6351 lt_cv_deplibs_check_method=pass_all
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6357 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6361 if test "$build" = "$host"; then
6364 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6367 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6373 file_magic_cmd=$lt_cv_file_magic_cmd
6374 deplibs_check_method=$lt_cv_deplibs_check_method
6375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_DLLTOOL+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$DLLTOOL"; then
6407 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 DLLTOOL=$ac_cv_prog_DLLTOOL
6427 if test -n "$DLLTOOL"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6429 $as_echo "$DLLTOOL" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_DLLTOOL"; then
6438 ac_ct_DLLTOOL=$DLLTOOL
6439 # Extract the first word of "dlltool", so it can be a program name with args.
6440 set dummy dlltool; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_DLLTOOL"; then
6447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6467 if test -n "$ac_ct_DLLTOOL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6469 $as_echo "$ac_ct_DLLTOOL" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_DLLTOOL" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6484 DLLTOOL=$ac_ct_DLLTOOL
6487 DLLTOOL="$ac_cv_prog_DLLTOOL"
6490 test -z "$DLLTOOL" && DLLTOOL=dlltool
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6502 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6503 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 lt_cv_sharedlib_from_linklib_cmd='unknown'
6509 cygwin* | mingw* | pw32* | cegcc*)
6510 # two different shell functions defined in ltmain.sh
6511 # decide which to use based on capabilities of $DLLTOOL
6512 case `$DLLTOOL --help 2>&1` in
6513 *--identify-strict*)
6514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6522 # fallback: assume linklib IS sharedlib
6523 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6529 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6530 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6531 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6540 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_AR+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$AR"; then
6551 ac_cv_prog_AR="$AR" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 if test -n "$AR"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6573 $as_echo "$AR" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6580 test -n "$AR" && break
6583 if test -z "$AR"; then
6587 # Extract the first word of "$ac_prog", so it can be a program name with args.
6588 set dummy $ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 if test -n "$ac_ct_AR"; then
6595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_ac_ct_AR="$ac_prog"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6617 $as_echo "$ac_ct_AR" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6624 test -n "$ac_ct_AR" && break
6627 if test "x$ac_ct_AR" = x; then
6630 case $cross_compiling:$ac_tool_warned in
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6654 $as_echo_n "checking for archiver @FILE support... " >&6; }
6655 if ${lt_cv_ar_at_file+:} false; then :
6656 $as_echo_n "(cached) " >&6
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6670 if ac_fn_cxx_try_compile "$LINENO"; then :
6671 echo conftest.$ac_objext > conftest.lst
6672 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6674 (eval $lt_ar_try) 2>&5
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }
6678 if test "$ac_status" -eq 0; then
6679 # Ensure the archiver fails upon bogus file names.
6680 rm -f conftest.$ac_objext libconftest.a
6681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682 (eval $lt_ar_try) 2>&5
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }
6686 if test "$ac_status" -ne 0; then
6690 rm -f conftest.* libconftest.a
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6697 $as_echo "$lt_cv_ar_at_file" >&6; }
6699 if test "x$lt_cv_ar_at_file" = xno; then
6702 archiver_list_spec=$lt_cv_ar_at_file
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}strip; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_STRIP+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$STRIP"; then
6720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6742 $as_echo "$STRIP" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6750 if test -z "$ac_cv_prog_STRIP"; then
6752 # Extract the first word of "strip", so it can be a program name with args.
6753 set dummy strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 if test -n "$ac_ct_STRIP"; then
6760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_STRIP="strip"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6780 if test -n "$ac_ct_STRIP"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6782 $as_echo "$ac_ct_STRIP" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6788 if test "x$ac_ct_STRIP" = x; then
6791 case $cross_compiling:$ac_tool_warned in
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6800 STRIP="$ac_cv_prog_STRIP"
6803 test -z "$STRIP" && STRIP=:
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_RANLIB+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 if test -n "$RANLIB"; then
6819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6841 $as_echo "$RANLIB" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6849 if test -z "$ac_cv_prog_RANLIB"; then
6850 ac_ct_RANLIB=$RANLIB
6851 # Extract the first word of "ranlib", so it can be a program name with args.
6852 set dummy ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 if test -n "$ac_ct_RANLIB"; then
6859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_RANLIB="ranlib"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6879 if test -n "$ac_ct_RANLIB"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6881 $as_echo "$ac_ct_RANLIB" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6887 if test "x$ac_ct_RANLIB" = x; then
6890 case $cross_compiling:$ac_tool_warned in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6896 RANLIB=$ac_ct_RANLIB
6899 RANLIB="$ac_cv_prog_RANLIB"
6902 test -z "$RANLIB" && RANLIB=:
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6914 if test -n "$RANLIB"; then
6917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6928 lock_old_archive_extraction=yes ;;
6930 lock_old_archive_extraction=no ;;
6971 # If no C compiler was specified, use CC.
6974 # If no C compiler flags were specified, use CFLAGS.
6975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6977 # Allow CC to be a program name with arguments.
6981 # Check for command to grab the raw symbol name followed by C symbol from nm.
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6984 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6985 $as_echo_n "(cached) " >&6
6988 # These are sane defaults that work on at least a few old systems.
6989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6991 # Character class describing NM global symbol codes.
6992 symcode='[BCDEGRST]'
6994 # Regexp to match symbols that can be accessed directly from C.
6995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6997 # Define system-specific variables.
7002 cygwin* | mingw* | pw32* | cegcc*)
7003 symcode='[ABCDGISTW]'
7006 if test "$host_cpu" = ia64; then
7007 symcode='[ABCDEGRST]'
7011 symcode='[BCDEGRST]'
7014 symcode='[BCDEGQRST]'
7025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7033 # If we're using GNU nm, then use its standard symbol codes.
7034 case `$NM -V 2>&1` in
7035 *GNU* | *'with BFD'*)
7036 symcode='[ABCDGIRSTW]' ;;
7039 # Transform an extracted symbol line into a proper C declaration.
7040 # Some systems (esp. on ia64) link data and code symbols differently,
7041 # so use this general approach.
7042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7044 # Transform an extracted symbol line into symbol name and symbol address
7045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7046 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7048 # Handle CRLF in mingw tool chain
7052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7056 # Try without a prefix underscore, then with it.
7057 for ac_symprfx in "" "_"; do
7059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7060 symxfrm="\\1 $ac_symprfx\\2 \\2"
7062 # Write the raw and C identifiers.
7063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7064 # Fake it for dumpbin and say T for any non-static function
7065 # and D for any global variable.
7066 # Also find C++ and __fastcall symbols from MSVC++,
7067 # which start with @ or ?.
7068 lt_cv_sys_global_symbol_pipe="$AWK '"\
7069 " {last_section=section; section=\$ 3};"\
7070 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7071 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7072 " \$ 0!~/External *\|/{next};"\
7073 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7074 " {if(hide[section]) next};"\
7075 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7076 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7077 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7078 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7079 " ' prfx=^$ac_symprfx"
7081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7083 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7085 # Check to see that the pipe works correctly.
7089 cat > conftest.$ac_ext <<_LT_EOF
7094 void nm_test_func(void);
7095 void nm_test_func(void){}
7099 int main(){nm_test_var='a';nm_test_func();return(0);}
7102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7103 (eval $ac_compile) 2>&5
7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106 test $ac_status = 0; }; then
7107 # Now try to grab the symbols.
7109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7110 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113 test $ac_status = 0; } && test -s "$nlist"; then
7114 # Try sorting and uniquifying the output.
7115 if sort "$nlist" | uniq > "$nlist"T; then
7116 mv -f "$nlist"T "$nlist"
7121 # Make sure that we snagged all the symbols we need.
7122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7124 cat <<_LT_EOF > conftest.$ac_ext
7125 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7126 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7127 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7128 relocations are performed -- see ld's documentation on pseudo-relocs. */
7129 # define LT_DLSYM_CONST
7130 #elif defined(__osf__)
7131 /* This system does not cope well with relocations in const data. */
7132 # define LT_DLSYM_CONST
7134 # define LT_DLSYM_CONST const
7142 # Now generate the symbol file.
7143 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7145 cat <<_LT_EOF >> conftest.$ac_ext
7147 /* The mapping between symbol names and symbols. */
7148 LT_DLSYM_CONST struct {
7152 lt__PROGRAM__LTX_preloaded_symbols[] =
7154 { "@PROGRAM@", (void *) 0 },
7156 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7157 cat <<\_LT_EOF >> conftest.$ac_ext
7161 /* This works around a problem in FreeBSD linker */
7162 #ifdef FREEBSD_WORKAROUND
7163 static const void *lt_preloaded_setup() {
7164 return lt__PROGRAM__LTX_preloaded_symbols;
7172 # Now try linking the two files.
7173 mv conftest.$ac_objext conftstm.$ac_objext
7174 lt_globsym_save_LIBS=$LIBS
7175 lt_globsym_save_CFLAGS=$CFLAGS
7176 LIBS="conftstm.$ac_objext"
7177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7179 (eval $ac_link) 2>&5
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7185 LIBS=$lt_globsym_save_LIBS
7186 CFLAGS=$lt_globsym_save_CFLAGS
7188 echo "cannot find nm_test_func in $nlist" >&5
7191 echo "cannot find nm_test_var in $nlist" >&5
7194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7197 echo "$progname: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 rm -rf conftest* conftst*
7202 # Do not use the global_symbol_pipe unless it works.
7203 if test "$pipe_works" = yes; then
7206 lt_cv_sys_global_symbol_pipe=
7212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7213 lt_cv_sys_global_symbol_to_cdecl=
7215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7217 $as_echo "failed" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7220 $as_echo "ok" >&6; }
7223 # Response file support.
7224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7225 nm_file_list_spec='@'
7226 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7227 nm_file_list_spec='@'
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7257 $as_echo_n "checking for sysroot... " >&6; }
7259 # Check whether --with-sysroot was given.
7260 if test "${with_sysroot+set}" = set; then :
7261 withval=$with_sysroot;
7268 case ${with_sysroot} in #(
7270 if test "$GCC" = yes; then
7271 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7275 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7281 $as_echo "${with_sysroot}" >&6; }
7282 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7287 $as_echo "${lt_sysroot:-no}" >&6; }
7294 # Check whether --enable-libtool-lock was given.
7295 if test "${enable_libtool_lock+set}" = set; then :
7296 enableval=$enable_libtool_lock;
7299 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7301 # Some flags need to be propagated to the compiler or linker for good
7305 # Find out which ABI we are using.
7306 echo 'int i;' > conftest.$ac_ext
7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7308 (eval $ac_compile) 2>&5
7310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; }; then
7312 case `/usr/bin/file conftest.$ac_objext` in
7324 # Find out which ABI we are using.
7325 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327 (eval $ac_compile) 2>&5
7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330 test $ac_status = 0; }; then
7331 if test "$lt_cv_prog_gnu_ld" = yes; then
7332 case `/usr/bin/file conftest.$ac_objext` in
7334 LD="${LD-ld} -melf32bsmip"
7337 LD="${LD-ld} -melf32bmipn32"
7340 LD="${LD-ld} -melf64bmip"
7344 case `/usr/bin/file conftest.$ac_objext` in
7360 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7361 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7362 # Find out which ABI we are using.
7363 echo 'int i;' > conftest.$ac_ext
7364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365 (eval $ac_compile) 2>&5
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }; then
7369 case `/usr/bin/file conftest.o` in
7372 x86_64-*kfreebsd*-gnu)
7373 LD="${LD-ld} -m elf_i386_fbsd"
7376 case `/usr/bin/file conftest.o` in
7378 LD="${LD-ld} -m elf32_x86_64"
7381 LD="${LD-ld} -m elf_i386"
7385 ppc64-*linux*|powerpc64-*linux*)
7386 LD="${LD-ld} -m elf32ppclinux"
7389 LD="${LD-ld} -m elf_s390"
7392 LD="${LD-ld} -m elf32_sparc"
7398 x86_64-*kfreebsd*-gnu)
7399 LD="${LD-ld} -m elf_x86_64_fbsd"
7402 LD="${LD-ld} -m elf_x86_64"
7404 ppc*-*linux*|powerpc*-*linux*)
7405 LD="${LD-ld} -m elf64ppc"
7407 s390*-*linux*|s390*-*tpf*)
7408 LD="${LD-ld} -m elf64_s390"
7411 LD="${LD-ld} -m elf64_sparc"
7421 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7422 SAVE_CFLAGS="$CFLAGS"
7423 CFLAGS="$CFLAGS -belf"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7425 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7426 if ${lt_cv_cc_needs_belf+:} false; then :
7427 $as_echo_n "(cached) " >&6
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7446 if ac_fn_c_try_link "$LINENO"; then :
7447 lt_cv_cc_needs_belf=yes
7449 lt_cv_cc_needs_belf=no
7451 rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7454 ac_cpp='$CPP $CPPFLAGS'
7455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7461 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7462 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7463 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7464 CFLAGS="$SAVE_CFLAGS"
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.o` in
7477 case $lt_cv_prog_gnu_ld in
7481 LD="${LD-ld} -m elf_x86_64"
7484 LD="${LD-ld} -m elf64_sparc"
7487 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7488 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7505 need_locks="$enable_libtool_lock"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}mt; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$MANIFEST_TOOL"; then
7516 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7536 if test -n "$MANIFEST_TOOL"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7538 $as_echo "$MANIFEST_TOOL" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7546 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7547 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7548 # Extract the first word of "mt", so it can be a program name with args.
7549 set dummy mt; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$ac_ct_MANIFEST_TOOL"; then
7556 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7576 if test -n "$ac_ct_MANIFEST_TOOL"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7578 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7587 case $cross_compiling:$ac_tool_warned in
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7593 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7596 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7599 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7601 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7602 if ${lt_cv_path_mainfest_tool+:} false; then :
7603 $as_echo_n "(cached) " >&6
7605 lt_cv_path_mainfest_tool=no
7606 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7607 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7608 cat conftest.err >&5
7609 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7610 lt_cv_path_mainfest_tool=yes
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7615 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7616 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7626 rhapsody* | darwin*)
7627 if test -n "$ac_tool_prefix"; then
7628 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 if test -n "$DSYMUTIL"; then
7636 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7656 if test -n "$DSYMUTIL"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7658 $as_echo "$DSYMUTIL" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7666 if test -z "$ac_cv_prog_DSYMUTIL"; then
7667 ac_ct_DSYMUTIL=$DSYMUTIL
7668 # Extract the first word of "dsymutil", so it can be a program name with args.
7669 set dummy dsymutil; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$ac_ct_DSYMUTIL"; then
7676 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7696 if test -n "$ac_ct_DSYMUTIL"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7698 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7704 if test "x$ac_ct_DSYMUTIL" = x; then
7707 case $cross_compiling:$ac_tool_warned in
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7713 DSYMUTIL=$ac_ct_DSYMUTIL
7716 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_prog_NMEDIT+:} false; then :
7725 $as_echo_n "(cached) " >&6
7727 if test -n "$NMEDIT"; then
7728 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 NMEDIT=$ac_cv_prog_NMEDIT
7748 if test -n "$NMEDIT"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7750 $as_echo "$NMEDIT" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7758 if test -z "$ac_cv_prog_NMEDIT"; then
7759 ac_ct_NMEDIT=$NMEDIT
7760 # Extract the first word of "nmedit", so it can be a program name with args.
7761 set dummy nmedit; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$ac_ct_NMEDIT"; then
7768 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7788 if test -n "$ac_ct_NMEDIT"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7790 $as_echo "$ac_ct_NMEDIT" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7796 if test "x$ac_ct_NMEDIT" = x; then
7799 case $cross_compiling:$ac_tool_warned in
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7805 NMEDIT=$ac_ct_NMEDIT
7808 NMEDIT="$ac_cv_prog_NMEDIT"
7811 if test -n "$ac_tool_prefix"; then
7812 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_LIPO+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$LIPO"; then
7820 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 LIPO=$ac_cv_prog_LIPO
7840 if test -n "$LIPO"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7842 $as_echo "$LIPO" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7850 if test -z "$ac_cv_prog_LIPO"; then
7852 # Extract the first word of "lipo", so it can be a program name with args.
7853 set dummy lipo; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$ac_ct_LIPO"; then
7860 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_ac_ct_LIPO="lipo"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7880 if test -n "$ac_ct_LIPO"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7882 $as_echo "$ac_ct_LIPO" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7888 if test "x$ac_ct_LIPO" = x; then
7891 case $cross_compiling:$ac_tool_warned in
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7900 LIPO="$ac_cv_prog_LIPO"
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}otool; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_prog_OTOOL+:} false; then :
7909 $as_echo_n "(cached) " >&6
7911 if test -n "$OTOOL"; then
7912 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 OTOOL=$ac_cv_prog_OTOOL
7932 if test -n "$OTOOL"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7934 $as_echo "$OTOOL" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7942 if test -z "$ac_cv_prog_OTOOL"; then
7944 # Extract the first word of "otool", so it can be a program name with args.
7945 set dummy otool; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$ac_ct_OTOOL"; then
7952 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_ac_ct_OTOOL="otool"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7972 if test -n "$ac_ct_OTOOL"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7974 $as_echo "$ac_ct_OTOOL" >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7980 if test "x$ac_ct_OTOOL" = x; then
7983 case $cross_compiling:$ac_tool_warned in
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987 ac_tool_warned=yes ;;
7992 OTOOL="$ac_cv_prog_OTOOL"
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_OTOOL64+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$OTOOL64"; then
8004 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 OTOOL64=$ac_cv_prog_OTOOL64
8024 if test -n "$OTOOL64"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8026 $as_echo "$OTOOL64" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8034 if test -z "$ac_cv_prog_OTOOL64"; then
8035 ac_ct_OTOOL64=$OTOOL64
8036 # Extract the first word of "otool64", so it can be a program name with args.
8037 set dummy otool64; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ac_ct_OTOOL64"; then
8044 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_OTOOL64="otool64"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8064 if test -n "$ac_ct_OTOOL64"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8066 $as_echo "$ac_ct_OTOOL64" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_ct_OTOOL64" = x; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8081 OTOOL64=$ac_ct_OTOOL64
8084 OTOOL64="$ac_cv_prog_OTOOL64"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8114 $as_echo_n "checking for -single_module linker flag... " >&6; }
8115 if ${lt_cv_apple_cc_single_mod+:} false; then :
8116 $as_echo_n "(cached) " >&6
8118 lt_cv_apple_cc_single_mod=no
8119 if test -z "${LT_MULTI_MODULE}"; then
8120 # By default we will add the -single_module flag. You can override
8121 # by either setting the environment variable LT_MULTI_MODULE
8122 # non-empty at configure time, or by adding -multi_module to the
8124 rm -rf libconftest.dylib*
8125 echo "int foo(void){return 1;}" > conftest.c
8126 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8127 -dynamiclib -Wl,-single_module conftest.c" >&5
8128 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8129 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8131 # If there is a non-empty error log, and "single_module"
8132 # appears in it, assume the flag caused a linker warning
8133 if test -s conftest.err && $GREP single_module conftest.err; then
8134 cat conftest.err >&5
8135 # Otherwise, if the output was created with a 0 exit code from
8136 # the compiler, it worked.
8137 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8138 lt_cv_apple_cc_single_mod=yes
8140 cat conftest.err >&5
8142 rm -rf libconftest.dylib*
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8147 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8150 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8151 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8152 $as_echo_n "(cached) " >&6
8154 lt_cv_ld_exported_symbols_list=no
8155 save_LDFLAGS=$LDFLAGS
8156 echo "_main" > conftest.sym
8157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 lt_cv_ld_exported_symbols_list=yes
8172 lt_cv_ld_exported_symbols_list=no
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LDFLAGS="$save_LDFLAGS"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8183 $as_echo_n "checking for -force_load linker flag... " >&6; }
8184 if ${lt_cv_ld_force_load+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 lt_cv_ld_force_load=no
8188 cat > conftest.c << _LT_EOF
8189 int forced_loaded() { return 2;}
8191 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8192 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8193 echo "$AR cru libconftest.a conftest.o" >&5
8194 $AR cru libconftest.a conftest.o 2>&5
8195 echo "$RANLIB libconftest.a" >&5
8196 $RANLIB libconftest.a 2>&5
8197 cat > conftest.c << _LT_EOF
8198 int main() { return 0;}
8200 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8201 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8203 if test -s conftest.err && $GREP force_load conftest.err; then
8204 cat conftest.err >&5
8205 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8206 lt_cv_ld_force_load=yes
8208 cat conftest.err >&5
8210 rm -f conftest.err libconftest.a conftest conftest.c
8211 rm -rf conftest.dSYM
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8215 $as_echo "$lt_cv_ld_force_load" >&6; }
8217 rhapsody* | darwin1.[012])
8218 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8221 darwin*) # darwin 5.x on
8222 # if running on 10.5 or later, the deployment target defaults
8223 # to the OS version, if on x86, and 10.4, the deployment
8224 # target defaults to 10.4. Don't you love it?
8225 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8226 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8229 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8235 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8236 _lt_dar_single_mod='$single_module'
8238 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8239 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8241 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8243 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8244 _lt_dsymutil='~$DSYMUTIL $lib || :'
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8253 $as_echo_n "checking for ANSI C header files... " >&6; }
8254 if ${ac_cv_header_stdc+:} false; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273 ac_cv_header_stdc=yes
8275 ac_cv_header_stdc=no
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 if test $ac_cv_header_stdc = yes; then
8280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8287 $EGREP "memchr" >/dev/null 2>&1; then :
8290 ac_cv_header_stdc=no
8296 if test $ac_cv_header_stdc = yes; then
8297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304 $EGREP "free" >/dev/null 2>&1; then :
8307 ac_cv_header_stdc=no
8313 if test $ac_cv_header_stdc = yes; then
8314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8315 if test "$cross_compiling" = yes; then :
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8322 #if ((' ' & 0x0FF) == 0x020)
8323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8326 # define ISLOWER(c) \
8327 (('a' <= (c) && (c) <= 'i') \
8328 || ('j' <= (c) && (c) <= 'r') \
8329 || ('s' <= (c) && (c) <= 'z'))
8330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8338 for (i = 0; i < 256; i++)
8339 if (XOR (islower (i), ISLOWER (i))
8340 || toupper (i) != TOUPPER (i))
8345 if ac_fn_c_try_run "$LINENO"; then :
8348 ac_cv_header_stdc=no
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351 conftest.$ac_objext conftest.beam conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8357 $as_echo "$ac_cv_header_stdc" >&6; }
8358 if test $ac_cv_header_stdc = yes; then
8360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8366 inttypes.h stdint.h unistd.h
8368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8372 cat >>confdefs.h <<_ACEOF
8373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381 for ac_header in dlfcn.h
8383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_DLFCN_H 1
8396 func_stripname_cnf ()
8399 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8400 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8402 } # func_stripname_cnf
8418 # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420 enableval=$enable_shared; p=${PACKAGE-default}
8422 yes) enable_shared=yes ;;
8423 no) enable_shared=no ;;
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428 for pkg in $enableval; do
8430 if test "X$pkg" = "X$p"; then
8449 # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451 enableval=$enable_static; p=${PACKAGE-default}
8453 yes) enable_static=yes ;;
8454 no) enable_static=no ;;
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8459 for pkg in $enableval; do
8461 if test "X$pkg" = "X$p"; then
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483 withval=$with_pic; lt_p=${PACKAGE-default}
8485 yes|no) pic_mode=$withval ;;
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490 for lt_pkg in $withval; do
8492 if test "X$lt_pkg" = "X$lt_p"; then
8504 test -z "$pic_mode" && pic_mode=default
8512 # Check whether --enable-fast-install was given.
8513 if test "${enable_fast_install+set}" = set; then :
8514 enableval=$enable_fast_install; p=${PACKAGE-default}
8516 yes) enable_fast_install=yes ;;
8517 no) enable_fast_install=no ;;
8519 enable_fast_install=no
8520 # Look at the argument we got. We use all the common list separators.
8521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8522 for pkg in $enableval; do
8524 if test "X$pkg" = "X$p"; then
8525 enable_fast_install=yes
8532 enable_fast_install=yes
8545 # This can be used to rebuild libtool when needed
8546 LIBTOOL_DEPS="$ltmain"
8548 # Always use our own libtool.
8549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8580 test -z "$LN_S" && LN_S="ln -s"
8595 if test -n "${ZSH_VERSION+set}" ; then
8596 setopt NO_GLOB_SUBST
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8600 $as_echo_n "checking for objdir... " >&6; }
8601 if ${lt_cv_objdir+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 rm -f .libs 2>/dev/null
8605 mkdir .libs 2>/dev/null
8606 if test -d .libs; then
8609 # MS-DOS does not allow filenames that begin with a dot.
8612 rmdir .libs 2>/dev/null
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8615 $as_echo "$lt_cv_objdir" >&6; }
8616 objdir=$lt_cv_objdir
8622 cat >>confdefs.h <<_ACEOF
8623 #define LT_OBJDIR "$lt_cv_objdir/"
8631 # AIX sometimes has problems with the GCC collect2 program. For some
8632 # reason, if we set the COLLECT_NAMES environment variable, the problems
8633 # vanish in a puff of smoke.
8634 if test "X${COLLECT_NAMES+set}" != Xset; then
8636 export COLLECT_NAMES
8643 can_build_shared=yes
8645 # All known linkers require a `.a' archive for static linking (except MSVC,
8646 # which needs '.lib').
8649 with_gnu_ld="$lt_cv_prog_gnu_ld"
8652 old_CFLAGS="$CFLAGS"
8654 # Set sane defaults for various variables
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$LD" && LD=ld
8659 test -z "$ac_objext" && ac_objext=o
8661 for cc_temp in $compiler""; do
8663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8672 # Only perform the check for file, if the check method requires it
8673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8674 case $deplibs_check_method in
8676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8679 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8680 $as_echo_n "(cached) " >&6
8684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8687 lt_save_MAGIC_CMD="$MAGIC_CMD"
8688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8690 for ac_dir in $ac_dummy; do
8692 test -z "$ac_dir" && ac_dir=.
8693 if test -f $ac_dir/${ac_tool_prefix}file; then
8694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8695 if test -n "$file_magic_test_file"; then
8696 case $deplibs_check_method in
8698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8701 $EGREP "$file_magic_regex" > /dev/null; then
8706 *** Warning: the command libtool uses to detect shared libraries,
8707 *** $file_magic_cmd, produces output that libtool cannot recognize.
8708 *** The result is that libtool may fail to recognize shared libraries
8709 *** as such. This will affect the creation of libtool libraries that
8710 *** depend on shared libraries, but programs linked with such libtool
8711 *** libraries will work regardless of this problem. Nevertheless, you
8712 *** may want to report the problem to your system manager and/or to
8713 *** bug-libtool@gnu.org
8723 MAGIC_CMD="$lt_save_MAGIC_CMD"
8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729 if test -n "$MAGIC_CMD"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8731 $as_echo "$MAGIC_CMD" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8741 if test -z "$lt_cv_path_MAGIC_CMD"; then
8742 if test -n "$ac_tool_prefix"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8744 $as_echo_n "checking for file... " >&6; }
8745 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8746 $as_echo_n "(cached) " >&6
8750 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8753 lt_save_MAGIC_CMD="$MAGIC_CMD"
8754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8756 for ac_dir in $ac_dummy; do
8758 test -z "$ac_dir" && ac_dir=.
8759 if test -f $ac_dir/file; then
8760 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8761 if test -n "$file_magic_test_file"; then
8762 case $deplibs_check_method in
8764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8767 $EGREP "$file_magic_regex" > /dev/null; then
8772 *** Warning: the command libtool uses to detect shared libraries,
8773 *** $file_magic_cmd, produces output that libtool cannot recognize.
8774 *** The result is that libtool may fail to recognize shared libraries
8775 *** as such. This will affect the creation of libtool libraries that
8776 *** depend on shared libraries, but programs linked with such libtool
8777 *** libraries will work regardless of this problem. Nevertheless, you
8778 *** may want to report the problem to your system manager and/or to
8779 *** bug-libtool@gnu.org
8789 MAGIC_CMD="$lt_save_MAGIC_CMD"
8794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8795 if test -n "$MAGIC_CMD"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8797 $as_echo "$MAGIC_CMD" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8813 # Use C for the default configuration in the libtool script
8817 ac_cpp='$CPP $CPPFLAGS'
8818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823 # Source file extension for C test sources.
8826 # Object file extension for compiled C test sources.
8830 # Code to be used in simple compile tests
8831 lt_simple_compile_test_code="int some_variable = 0;"
8833 # Code to be used in simple link tests
8834 lt_simple_link_test_code='int main(){return(0);}'
8842 # If no C compiler was specified, use CC.
8845 # If no C compiler flags were specified, use CFLAGS.
8846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8848 # Allow CC to be a program name with arguments.
8851 # Save the default compiler, since it gets overwritten when the other
8852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8853 compiler_DEFAULT=$CC
8855 # save warnings/boilerplate of simple test code
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8859 _lt_compiler_boilerplate=`cat conftest.err`
8862 ac_outfile=conftest.$ac_objext
8863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8865 _lt_linker_boilerplate=`cat conftest.err`
8869 if test -n "$compiler"; then
8871 lt_prog_compiler_no_builtin_flag=
8873 if test "$GCC" = yes; then
8874 case $cc_basename in
8876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8883 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8884 $as_echo_n "(cached) " >&6
8886 lt_cv_prog_compiler_rtti_exceptions=no
8887 ac_outfile=conftest.$ac_objext
8888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889 lt_compiler_flag="-fno-rtti -fno-exceptions"
8890 # Insert the option either (1) after the last *FLAGS variable, or
8891 # (2) before a word containing "conftest.", or (3) at the end.
8892 # Note that $ac_compile itself does not contain backslashes and begins
8893 # with a dollar sign (not a hyphen), so the echo should work correctly.
8894 # The option is referenced via a variable to avoid confusing sed.
8895 lt_compile=`echo "$ac_compile" | $SED \
8896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898 -e 's:$: $lt_compiler_flag:'`
8899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900 (eval "$lt_compile" 2>conftest.err)
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 if (exit $ac_status) && test -s "$ac_outfile"; then
8905 # The compiler can only warn and ignore the option if not recognized
8906 # So say no if there are warnings other than the usual output.
8907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_rtti_exceptions=yes
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8932 lt_prog_compiler_wl=
8933 lt_prog_compiler_pic=
8934 lt_prog_compiler_static=
8937 if test "$GCC" = yes; then
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_static='-static'
8943 # All AIX code is PIC.
8944 if test "$host_cpu" = ia64; then
8945 # AIX 5 now supports IA64 processor
8946 lt_prog_compiler_static='-Bstatic'
8953 # see comment about AmigaOS4 .so support
8954 lt_prog_compiler_pic='-fPIC'
8957 # FIXME: we need at least 68020 code to build shared libraries, but
8958 # adding the `-m68020' flag to GCC prevents building anything better,
8960 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8966 # PIC is the default for these OSes.
8969 mingw* | cygwin* | pw32* | os2* | cegcc*)
8970 # This hack is so that the source file can tell whether it is being
8971 # built for inclusion in a dll (and should export symbols for example).
8972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8973 # (--disable-auto-import) libraries
8974 lt_prog_compiler_pic='-DDLL_EXPORT'
8977 darwin* | rhapsody*)
8978 # PIC is the default on this platform
8979 # Common symbols not allowed in MH_DYLIB files
8980 lt_prog_compiler_pic='-fno-common'
8984 # PIC is the default for Haiku.
8985 # The "-static" flag exists, but is broken.
8986 lt_prog_compiler_static=
8990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8992 # sets the default TLS model and affects inlining.
8998 lt_prog_compiler_pic='-fPIC'
9004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9005 # Instead, we relocate shared libraries at runtime.
9009 # Just because we use GCC doesn't mean we suddenly get shared libraries
9010 # on systems that don't support them.
9011 lt_prog_compiler_can_build_shared=no
9016 # QNX uses GNU C++, but need to define -shared option too, otherwise
9018 lt_prog_compiler_pic='-fPIC -shared'
9022 if test -d /usr/nec; then
9023 lt_prog_compiler_pic=-Kconform_pic
9028 lt_prog_compiler_pic='-fPIC'
9032 case $cc_basename in
9033 nvcc*) # Cuda Compiler Driver 2.2
9034 lt_prog_compiler_wl='-Xlinker '
9035 if test -n "$lt_prog_compiler_pic"; then
9036 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9041 # PORTME Check for flag to pass linker flags through the system compiler.
9044 lt_prog_compiler_wl='-Wl,'
9045 if test "$host_cpu" = ia64; then
9046 # AIX 5 now supports IA64 processor
9047 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 mingw* | cygwin* | pw32* | os2* | cegcc*)
9054 # This hack is so that the source file can tell whether it is being
9055 # built for inclusion in a dll (and should export symbols for example).
9056 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 hpux9* | hpux10* | hpux11*)
9060 lt_prog_compiler_wl='-Wl,'
9061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9068 lt_prog_compiler_pic='+Z'
9071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9072 lt_prog_compiler_static='${wl}-a ${wl}archive'
9075 irix5* | irix6* | nonstopux*)
9076 lt_prog_compiler_wl='-Wl,'
9077 # PIC (with -KPIC) is the default.
9078 lt_prog_compiler_static='-non_shared'
9081 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9082 case $cc_basename in
9083 # old Intel for x86_64 which still supported -KPIC.
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-static'
9089 # icc used to be incompatible with GCC.
9090 # ICC 10 doesn't accept -KPIC any more.
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fPIC'
9094 lt_prog_compiler_static='-static'
9096 # Lahey Fortran 8.1.
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='--shared'
9100 lt_prog_compiler_static='--static'
9103 # NAG Fortran compiler
9104 lt_prog_compiler_wl='-Wl,-Wl,,'
9105 lt_prog_compiler_pic='-PIC'
9106 lt_prog_compiler_static='-Bstatic'
9108 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9109 # Portland Group compilers (*not* the Pentium gcc compiler,
9110 # which looks to be a dead project)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-fpic'
9113 lt_prog_compiler_static='-Bstatic'
9116 lt_prog_compiler_wl='-Wl,'
9117 # All Alpha code is PIC.
9118 lt_prog_compiler_static='-non_shared'
9120 xl* | bgxl* | bgf* | mpixl*)
9121 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9122 lt_prog_compiler_wl='-Wl,'
9123 lt_prog_compiler_pic='-qpic'
9124 lt_prog_compiler_static='-qstaticlink'
9127 case `$CC -V 2>&1 | sed 5q` in
9128 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9129 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9132 lt_prog_compiler_wl=''
9134 *Sun\ F* | *Sun*Fortran*)
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-Bstatic'
9137 lt_prog_compiler_wl='-Qoption ld '
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 lt_prog_compiler_wl='-Wl,'
9145 *Intel*\ [CF]*Compiler*)
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-fPIC'
9148 lt_prog_compiler_static='-static'
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_pic='-fpic'
9153 lt_prog_compiler_static='-Bstatic'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-Bstatic'
9166 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 lt_prog_compiler_pic='-fPIC -shared'
9171 osf3* | osf4* | osf5*)
9172 lt_prog_compiler_wl='-Wl,'
9173 # All OSF/1 code is PIC.
9174 lt_prog_compiler_static='-non_shared'
9178 lt_prog_compiler_static='-non_shared'
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 case $cc_basename in
9185 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9186 lt_prog_compiler_wl='-Qoption ld ';;
9188 lt_prog_compiler_wl='-Wl,';;
9193 lt_prog_compiler_wl='-Qoption ld '
9194 lt_prog_compiler_pic='-PIC'
9195 lt_prog_compiler_static='-Bstatic'
9198 sysv4 | sysv4.2uw2* | sysv4.3*)
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_pic='-KPIC'
9201 lt_prog_compiler_static='-Bstatic'
9205 if test -d /usr/nec ;then
9206 lt_prog_compiler_pic='-Kconform_pic'
9207 lt_prog_compiler_static='-Bstatic'
9211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_can_build_shared=no
9223 lt_prog_compiler_pic='-pic'
9224 lt_prog_compiler_static='-Bstatic'
9228 lt_prog_compiler_can_build_shared=no
9234 # For platforms which do not support PIC, -DPIC is meaningless:
9236 lt_prog_compiler_pic=
9239 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9245 if ${lt_cv_prog_compiler_pic+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9251 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9255 # Check to make sure the PIC flag actually works.
9257 if test -n "$lt_prog_compiler_pic"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9260 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9261 $as_echo_n "(cached) " >&6
9263 lt_cv_prog_compiler_pic_works=no
9264 ac_outfile=conftest.$ac_objext
9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9266 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9267 # Insert the option either (1) after the last *FLAGS variable, or
9268 # (2) before a word containing "conftest.", or (3) at the end.
9269 # Note that $ac_compile itself does not contain backslashes and begins
9270 # with a dollar sign (not a hyphen), so the echo should work correctly.
9271 # The option is referenced via a variable to avoid confusing sed.
9272 lt_compile=`echo "$ac_compile" | $SED \
9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9275 -e 's:$: $lt_compiler_flag:'`
9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9277 (eval "$lt_compile" 2>conftest.err)
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 if (exit $ac_status) && test -s "$ac_outfile"; then
9282 # The compiler can only warn and ignore the option if not recognized
9283 # So say no if there are warnings other than the usual output.
9284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9287 lt_cv_prog_compiler_pic_works=yes
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9294 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9296 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9297 case $lt_prog_compiler_pic in
9299 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9302 lt_prog_compiler_pic=
9303 lt_prog_compiler_can_build_shared=no
9319 # Check to make sure the static flag actually works.
9321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9324 if ${lt_cv_prog_compiler_static_works+:} false; then :
9325 $as_echo_n "(cached) " >&6
9327 lt_cv_prog_compiler_static_works=no
9328 save_LDFLAGS="$LDFLAGS"
9329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332 # The linker can only warn and ignore the option if not recognized
9333 # So say no if there are warnings
9334 if test -s conftest.err; then
9335 # Append any errors to the config.log.
9336 cat conftest.err 1>&5
9337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339 if diff conftest.exp conftest.er2 >/dev/null; then
9340 lt_cv_prog_compiler_static_works=yes
9343 lt_cv_prog_compiler_static_works=yes
9347 LDFLAGS="$save_LDFLAGS"
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9356 lt_prog_compiler_static=
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9367 if ${lt_cv_prog_compiler_c_o+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 lt_cv_prog_compiler_c_o=no
9371 $RM -r conftest 2>/dev/null
9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9377 lt_compiler_flag="-o out/conftest2.$ac_objext"
9378 # Insert the option either (1) after the last *FLAGS variable, or
9379 # (2) before a word containing "conftest.", or (3) at the end.
9380 # Note that $ac_compile itself does not contain backslashes and begins
9381 # with a dollar sign (not a hyphen), so the echo should work correctly.
9382 lt_compile=`echo "$ac_compile" | $SED \
9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385 -e 's:$: $lt_compiler_flag:'`
9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387 (eval "$lt_compile" 2>out/conftest.err)
9389 cat out/conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9393 # The compiler can only warn and ignore the option if not recognized
9394 # So say no if there are warnings
9395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398 lt_cv_prog_compiler_c_o=yes
9403 # SGI C++ compiler will create directory out/ii_files/ for
9404 # template instantiation
9405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406 $RM out/* && rmdir out
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if ${lt_cv_prog_compiler_c_o+:} false; then :
9423 $as_echo_n "(cached) " >&6
9425 lt_cv_prog_compiler_c_o=no
9426 $RM -r conftest 2>/dev/null
9430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432 lt_compiler_flag="-o out/conftest2.$ac_objext"
9433 # Insert the option either (1) after the last *FLAGS variable, or
9434 # (2) before a word containing "conftest.", or (3) at the end.
9435 # Note that $ac_compile itself does not contain backslashes and begins
9436 # with a dollar sign (not a hyphen), so the echo should work correctly.
9437 lt_compile=`echo "$ac_compile" | $SED \
9438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440 -e 's:$: $lt_compiler_flag:'`
9441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9442 (eval "$lt_compile" 2>out/conftest.err)
9444 cat out/conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 # The compiler can only warn and ignore the option if not recognized
9449 # So say no if there are warnings
9450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453 lt_cv_prog_compiler_c_o=yes
9458 # SGI C++ compiler will create directory out/ii_files/ for
9459 # template instantiation
9460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461 $RM out/* && rmdir out
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9473 hard_links="nottested"
9474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9475 # do not overwrite the value of need_locks provided by the user
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9477 $as_echo_n "checking if we can lock with hard links... " >&6; }
9480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482 ln conftest.a conftest.b 2>&5 || hard_links=no
9483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9485 $as_echo "$hard_links" >&6; }
9486 if test "$hard_links" = no; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9504 allow_undefined_flag=
9505 always_export_symbols=no
9507 archive_expsym_cmds=
9508 compiler_needs_object=no
9509 enable_shared_with_static_runtimes=no
9510 export_dynamic_flag_spec=
9511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9512 hardcode_automatic=no
9514 hardcode_direct_absolute=no
9515 hardcode_libdir_flag_spec=
9516 hardcode_libdir_separator=
9518 hardcode_shlibpath_var=unsupported
9520 link_all_deplibs=unknown
9523 old_archive_from_new_cmds=
9524 old_archive_from_expsyms_cmds=
9525 thread_safe_flag_spec=
9526 whole_archive_flag_spec=
9527 # include_expsyms should be a list of space-separated symbols to be *always*
9528 # included in the symbol list
9530 # exclude_expsyms can be an extended regexp of symbols to exclude
9531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9533 # as well as any symbol that contains `d'.
9534 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9536 # platforms (ab)use it in PIC code, but their linkers get confused if
9537 # the symbol is explicitly referenced. Since portable code cannot
9538 # rely on this symbol name, it's probably fine to never include it in
9539 # preloaded symbol tables.
9540 # Exclude shared library initialization/finalization symbols.
9541 extract_expsyms_cmds=
9544 cygwin* | mingw* | pw32* | cegcc*)
9545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9546 # When not using gcc, we currently assume that we are using
9547 # Microsoft Visual C++.
9548 if test "$GCC" != yes; then
9553 # we just hope/assume this is gcc and not c89 (= MSVC++)
9559 linux* | k*bsd*-gnu | gnu*)
9566 # On some targets, GNU ld is compatible enough with the native linker
9567 # that we're better off using the native interface for both.
9568 lt_use_gnu_ld_interface=no
9569 if test "$with_gnu_ld" = yes; then
9572 # The AIX port of GNU ld has always aspired to compatibility
9573 # with the native linker. However, as the warning in the GNU ld
9574 # block says, versions before 2.19.5* couldn't really create working
9575 # shared libraries, regardless of the interface used.
9576 case `$LD -v 2>&1` in
9577 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9578 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9579 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9581 lt_use_gnu_ld_interface=yes
9586 lt_use_gnu_ld_interface=yes
9591 if test "$lt_use_gnu_ld_interface" = yes; then
9592 # If archive_cmds runs LD, not CC, wlarc should be empty
9595 # Set some defaults for GNU ld with shared library support. These
9596 # are reset later if shared libraries are not supported. Putting them
9597 # here allows them to be overridden if necessary.
9598 runpath_var=LD_RUN_PATH
9599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600 export_dynamic_flag_spec='${wl}--export-dynamic'
9601 # ancient GNU ld didn't support --whole-archive et. al.
9602 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9603 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9605 whole_archive_flag_spec=
9607 supports_anon_versioning=no
9608 case `$LD -v 2>&1` in
9609 *GNU\ gold*) supports_anon_versioning=yes ;;
9610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9613 *\ 2.11.*) ;; # other 2.11 versions
9614 *) supports_anon_versioning=yes ;;
9617 # See if GNU ld supports shared libraries.
9620 # On AIX/PPC, the GNU linker is very broken
9621 if test "$host_cpu" != ia64; then
9625 *** Warning: the GNU linker, at least up to release 2.19, is reported
9626 *** to be unable to reliably create shared libraries on AIX.
9627 *** Therefore, libtool is disabling shared libraries support. If you
9628 *** really care for shared libraries, you may want to install binutils
9629 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9630 *** You will then need to restart the configuration process.
9639 # see comment about AmigaOS4 .so support
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 archive_expsym_cmds=''
9644 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)'
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_minus_L=yes
9652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653 allow_undefined_flag=unsupported
9654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9655 # support --undefined. This deserves some investigation. FIXME
9656 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 cygwin* | mingw* | pw32* | cegcc*)
9663 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9664 # as there is no search path for DLLs.
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 export_dynamic_flag_spec='${wl}--export-all-symbols'
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=no
9669 enable_shared_with_static_runtimes=yes
9670 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'
9671 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9673 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675 # If the export-symbols file already is a .def file (1st line
9676 # is EXPORTS), use it as is; otherwise, prepend...
9677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9678 cp $export_symbols $output_objdir/$soname.def;
9680 echo EXPORTS > $output_objdir/$soname.def;
9681 cat $export_symbols >> $output_objdir/$soname.def;
9683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 link_all_deplibs=yes
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698 export_dynamic_flag_spec='${wl}-E'
9699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700 # Instead, shared libraries are loaded at an image base (0x10000000 by
9701 # default) and relocated if they conflict, which is a slow very memory
9702 # consuming and fragmenting process. To avoid this, we pick a random,
9703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706 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'
9709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711 if test "$host_os" = linux-dietlibc; then
9712 case $cc_basename in
9713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717 && test "$tmp_diet" = no
9719 tmp_addflag=' $pic_flag'
9720 tmp_sharedflag='-shared'
9721 case $cc_basename,$host_cpu in
9722 pgcc*) # Portland Group C compiler
9723 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'
9724 tmp_addflag=' $pic_flag'
9726 pgf77* | pgf90* | pgf95* | pgfortran*)
9727 # Portland Group f77 and f90 compilers
9728 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'
9729 tmp_addflag=' $pic_flag -Mnomain' ;;
9730 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9731 tmp_addflag=' -i_dynamic' ;;
9732 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9733 tmp_addflag=' -i_dynamic -nofor_main' ;;
9734 ifc* | ifort*) # Intel Fortran compiler
9735 tmp_addflag=' -nofor_main' ;;
9736 lf95*) # Lahey Fortran 8.1
9737 whole_archive_flag_spec=
9738 tmp_sharedflag='--shared' ;;
9739 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9740 tmp_sharedflag='-qmkshrobj'
9742 nvcc*) # Cuda Compiler Driver 2.2
9743 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'
9744 compiler_needs_object=yes
9747 case `$CC -V 2>&1 | sed 5q` in
9748 *Sun\ C*) # Sun C 5.9
9749 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'
9750 compiler_needs_object=yes
9751 tmp_sharedflag='-G' ;;
9752 *Sun\ F*) # Sun Fortran 8.3
9753 tmp_sharedflag='-G' ;;
9755 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 if test "x$supports_anon_versioning" = xyes; then
9758 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9760 echo "local: *; };" >> $output_objdir/$libname.ver~
9761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9764 case $cc_basename in
9765 xlf* | bgf* | bgxlf* | mpixlf*)
9766 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9767 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9770 if test "x$supports_anon_versioning" = xyes; then
9771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773 echo "local: *; };" >> $output_objdir/$libname.ver~
9774 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9783 netbsd* | netbsdelf*-gnu)
9784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9785 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9799 *** create shared libraries on Solaris systems. Therefore, libtool
9800 *** is disabling shared libraries support. We urge you to upgrade GNU
9801 *** binutils to release 2.9.1 or newer. Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9806 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9815 case `$LD -v 2>&1` in
9816 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9821 *** reliably create shared libraries on SCO systems. Therefore, libtool
9822 *** is disabling shared libraries support. We urge you to upgrade GNU
9823 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9824 *** your PATH or compiler configuration so that the native linker is
9825 *** used, and then restart.
9830 # For security reasons, it is highly recommended that you always
9831 # use absolute paths for naming shared libraries, and exclude the
9832 # DT_RUNPATH tag from executables and libraries. But doing so
9833 # requires that you compile everything twice, which is a pain.
9834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_shlibpath_var=no
9853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9862 if test "$ld_shlibs" = no; then
9864 hardcode_libdir_flag_spec=
9865 export_dynamic_flag_spec=
9866 whole_archive_flag_spec=
9869 # PORTME fill in a description of your system's linker (not GNU ld)
9872 allow_undefined_flag=unsupported
9873 always_export_symbols=yes
9874 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'
9875 # Note: this linker hardcodes the directories in LIBPATH if there
9876 # are no directories specified by -L.
9877 hardcode_minus_L=yes
9878 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9879 # Neither direct hardcoding nor static linking is supported with a
9881 hardcode_direct=unsupported
9886 if test "$host_cpu" = ia64; then
9887 # On IA64, the linker does run time linking by default, so we don't
9888 # have to do anything special.
9889 aix_use_runtimelinking=no
9890 exp_sym_flag='-Bexport'
9893 # If we're using GNU nm, then we don't want the "-C" option.
9894 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9895 # Also, AIX nm treats weak defined symbols like other global
9896 # defined symbols, whereas GNU nm marks them as "W".
9897 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9898 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9900 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9902 aix_use_runtimelinking=no
9904 # Test if we are trying to use run time linking or normal
9905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9906 # need to do runtime linking.
9907 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9908 for ld_flag in $LDFLAGS; do
9909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9910 aix_use_runtimelinking=yes
9917 exp_sym_flag='-bexport'
9918 no_entry_flag='-bnoentry'
9921 # When large executables or shared objects are built, AIX ld can
9922 # have problems creating the table of contents. If linking a library
9923 # or program results in "error TOC overflow" add -mminimal-toc to
9924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9929 hardcode_direct_absolute=yes
9930 hardcode_libdir_separator=':'
9931 link_all_deplibs=yes
9932 file_list_spec='${wl}-f,'
9934 if test "$GCC" = yes; then
9935 case $host_os in aix4.[012]|aix4.[012].*)
9936 # We only want to do this on AIX 4.2 and lower, the check
9937 # below for broken collect2 doesn't work under 4.3+
9938 collect2name=`${CC} -print-prog-name=collect2`
9939 if test -f "$collect2name" &&
9940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9942 # We have reworked collect2
9945 # We have old collect2
9946 hardcode_direct=unsupported
9947 # It fails to find uninstalled libraries when the uninstalled
9948 # path is not listed in the libpath. Setting hardcode_minus_L
9949 # to unsupported forces relinking
9950 hardcode_minus_L=yes
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_libdir_separator=
9956 shared_flag='-shared'
9957 if test "$aix_use_runtimelinking" = yes; then
9958 shared_flag="$shared_flag "'${wl}-G'
9963 if test "$host_cpu" = ia64; then
9964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965 # chokes on -Wl,-G. The following line is correct:
9968 if test "$aix_use_runtimelinking" = yes; then
9969 shared_flag='${wl}-G'
9971 shared_flag='${wl}-bM:SRE'
9976 export_dynamic_flag_spec='${wl}-bexpall'
9977 # It seems that -bexpall does not export symbols beginning with
9978 # underscore (_), so it is better to generate a list of symbols to export.
9979 always_export_symbols=yes
9980 if test "$aix_use_runtimelinking" = yes; then
9981 # Warning - without using the other runtime loading flags (-brtl),
9982 # -berok will link without error, but may produce a broken library.
9983 allow_undefined_flag='-berok'
9984 # Determine the default libpath from the value encoded in an
9986 if test "${lt_cv_aix_libpath+set}" = set; then
9987 aix_libpath=$lt_cv_aix_libpath
9989 if ${lt_cv_aix_libpath_+:} false; then :
9990 $as_echo_n "(cached) " >&6
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10005 lt_aix_libpath_sed='
10006 /Import File Strings/,/^$/ {
10008 s/^0 *\([^ ]*\) *$/\1/
10012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013 # Check for a 64-bit object if we didn't find anything.
10014 if test -z "$lt_cv_aix_libpath_"; then
10015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$lt_cv_aix_libpath_"; then
10021 lt_cv_aix_libpath_="/usr/lib:/lib"
10026 aix_libpath=$lt_cv_aix_libpath_
10029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10030 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10032 if test "$host_cpu" = ia64; then
10033 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10034 allow_undefined_flag="-z nodefs"
10035 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"
10037 # Determine the default libpath from the value encoded in an
10038 # empty executable.
10039 if test "${lt_cv_aix_libpath+set}" = set; then
10040 aix_libpath=$lt_cv_aix_libpath
10042 if ${lt_cv_aix_libpath_+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10056 if ac_fn_c_try_link "$LINENO"; then :
10058 lt_aix_libpath_sed='
10059 /Import File Strings/,/^$/ {
10061 s/^0 *\([^ ]*\) *$/\1/
10065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10066 # Check for a 64-bit object if we didn't find anything.
10067 if test -z "$lt_cv_aix_libpath_"; then
10068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 if test -z "$lt_cv_aix_libpath_"; then
10074 lt_cv_aix_libpath_="/usr/lib:/lib"
10079 aix_libpath=$lt_cv_aix_libpath_
10082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10083 # Warning - without using the other run time loading flags,
10084 # -berok will link without error, but may produce a broken library.
10085 no_undefined_flag=' ${wl}-bernotok'
10086 allow_undefined_flag=' ${wl}-berok'
10087 if test "$with_gnu_ld" = yes; then
10088 # We only use this code for GNU lds that support --whole-archive.
10089 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091 # Exported symbols can be pulled into shared objects from archives
10092 whole_archive_flag_spec='$convenience'
10094 archive_cmds_need_lc=yes
10095 # This is similar to how AIX traditionally builds its shared libraries.
10096 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 export_dynamic_flag_spec=-rdynamic
10120 cygwin* | mingw* | pw32* | cegcc*)
10121 # When not using gcc, we currently assume that we are using
10122 # Microsoft Visual C++.
10123 # hardcode_libdir_flag_spec is actually meaningless, as there is
10124 # no search path for DLLs.
10125 case $cc_basename in
10128 hardcode_libdir_flag_spec=' '
10129 allow_undefined_flag=unsupported
10130 always_export_symbols=yes
10132 # Tell ltmain to make .lib files, not .a files.
10134 # Tell ltmain to make .dll files, not .so files.
10136 # FIXME: Setting linknames here is a bad hack.
10137 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10138 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10139 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10141 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10143 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10145 # The linker will not automatically build a static lib if we build a DLL.
10146 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10147 enable_shared_with_static_runtimes=yes
10148 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10151 old_postinstall_cmds='chmod 644 $oldlib'
10152 postlink_cmds='lt_outputfile="@OUTPUT@"~
10153 lt_tool_outputfile="@TOOL_OUTPUT@"~
10154 case $lt_outputfile in
10157 lt_outputfile="$lt_outputfile.exe"
10158 lt_tool_outputfile="$lt_tool_outputfile.exe"
10161 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10162 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10163 $RM "$lt_outputfile.manifest";
10167 # Assume MSVC wrapper
10168 hardcode_libdir_flag_spec=' '
10169 allow_undefined_flag=unsupported
10170 # Tell ltmain to make .lib files, not .a files.
10172 # Tell ltmain to make .dll files, not .so files.
10174 # FIXME: Setting linknames here is a bad hack.
10175 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10176 # The linker will automatically build a .lib file if we build a DLL.
10177 old_archive_from_new_cmds='true'
10178 # FIXME: Should let the user specify the lib program.
10179 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10180 enable_shared_with_static_runtimes=yes
10185 darwin* | rhapsody*)
10188 archive_cmds_need_lc=no
10190 hardcode_automatic=yes
10191 hardcode_shlibpath_var=unsupported
10192 if test "$lt_cv_ld_force_load" = "yes"; then
10193 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\"`'
10196 whole_archive_flag_spec=''
10198 link_all_deplibs=yes
10199 allow_undefined_flag="$_lt_dar_allow_undefined"
10200 case $cc_basename in
10201 ifort*) _lt_dar_can_shared=yes ;;
10202 *) _lt_dar_can_shared=$GCC ;;
10204 if test "$_lt_dar_can_shared" = "yes"; then
10205 output_verbose_link_cmd=func_echo_all
10206 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10207 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10208 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}"
10209 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}"
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_shlibpath_var=no
10223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10224 # support. Future versions do this automatically, but an explicit c++rt0.o
10225 # does not break anything, and helps significantly (at the cost of a little
10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10229 hardcode_libdir_flag_spec='-R$libdir'
10230 hardcode_direct=yes
10231 hardcode_shlibpath_var=no
10234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_direct=yes
10238 hardcode_minus_L=yes
10239 hardcode_shlibpath_var=no
10242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10243 freebsd* | dragonfly*)
10244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245 hardcode_libdir_flag_spec='-R$libdir'
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10251 if test "$GCC" = yes; then
10252 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10254 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10257 hardcode_libdir_separator=:
10258 hardcode_direct=yes
10260 # hardcode_minus_L: Not really in the search PATH,
10261 # but as the default location of the library.
10262 hardcode_minus_L=yes
10263 export_dynamic_flag_spec='${wl}-E'
10267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10268 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10272 if test "$with_gnu_ld" = no; then
10273 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10274 hardcode_libdir_separator=:
10275 hardcode_direct=yes
10276 hardcode_direct_absolute=yes
10277 export_dynamic_flag_spec='${wl}-E'
10278 # hardcode_minus_L: Not really in the search PATH,
10279 # but as the default location of the library.
10280 hardcode_minus_L=yes
10285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10288 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 # Older versions of the 11.00 compiler do not understand -b yet
10308 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10310 $as_echo_n "checking if $CC understands -b... " >&6; }
10311 if ${lt_cv_prog_compiler__b+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 lt_cv_prog_compiler__b=no
10315 save_LDFLAGS="$LDFLAGS"
10316 LDFLAGS="$LDFLAGS -b"
10317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10319 # The linker can only warn and ignore the option if not recognized
10320 # So say no if there are warnings
10321 if test -s conftest.err; then
10322 # Append any errors to the config.log.
10323 cat conftest.err 1>&5
10324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10326 if diff conftest.exp conftest.er2 >/dev/null; then
10327 lt_cv_prog_compiler__b=yes
10330 lt_cv_prog_compiler__b=yes
10334 LDFLAGS="$save_LDFLAGS"
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10338 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10340 if test x"$lt_cv_prog_compiler__b" = xyes; then
10341 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349 if test "$with_gnu_ld" = no; then
10350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10351 hardcode_libdir_separator=:
10356 hardcode_shlibpath_var=no
10359 hardcode_direct=yes
10360 hardcode_direct_absolute=yes
10361 export_dynamic_flag_spec='${wl}-E'
10363 # hardcode_minus_L: Not really in the search PATH,
10364 # but as the default location of the library.
10365 hardcode_minus_L=yes
10371 irix5* | irix6* | nonstopux*)
10372 if test "$GCC" = yes; then
10373 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'
10374 # Try to use the -exported_symbol ld option, if it does not
10375 # work, assume that -exports_file does not work either and
10376 # implicitly export all symbols.
10377 # This should be the same for all languages, so no per-tag cache variable.
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10379 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10380 if ${lt_cv_irix_exported_symbol+:} false; then :
10381 $as_echo_n "(cached) " >&6
10383 save_LDFLAGS="$LDFLAGS"
10384 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int foo (void) { return 0; }
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 lt_cv_irix_exported_symbol=yes
10392 lt_cv_irix_exported_symbol=no
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LDFLAGS="$save_LDFLAGS"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10399 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10400 if test "$lt_cv_irix_exported_symbol" = yes; then
10401 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'
10404 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'
10405 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'
10407 archive_cmds_need_lc='no'
10408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10409 hardcode_libdir_separator=:
10411 link_all_deplibs=yes
10414 netbsd* | netbsdelf*-gnu)
10415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10420 hardcode_libdir_flag_spec='-R$libdir'
10421 hardcode_direct=yes
10422 hardcode_shlibpath_var=no
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_direct=yes
10428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429 hardcode_libdir_separator=:
10430 hardcode_shlibpath_var=no
10437 if test -f /usr/libexec/ld.so; then
10438 hardcode_direct=yes
10439 hardcode_shlibpath_var=no
10440 hardcode_direct_absolute=yes
10441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445 export_dynamic_flag_spec='${wl}-E'
10448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_libdir_flag_spec='-R$libdir'
10453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 allow_undefined_flag=unsupported
10467 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10468 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10472 if test "$GCC" = yes; then
10473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10474 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'
10476 allow_undefined_flag=' -expect_unresolved \*'
10477 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'
10479 archive_cmds_need_lc='no'
10480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481 hardcode_libdir_separator=:
10484 osf4* | osf5*) # as osf3* with the addition of -msym flag
10485 if test "$GCC" = yes; then
10486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 allow_undefined_flag=' -expect_unresolved \*'
10491 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'
10492 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~
10493 $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'
10495 # Both c and cxx compiler support -rpath directly
10496 hardcode_libdir_flag_spec='-rpath $libdir'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_separator=:
10503 no_undefined_flag=' -z defs'
10504 if test "$GCC" = yes; then
10506 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508 $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'
10510 case `$CC -V 2>&1` in
10513 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10519 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525 hardcode_libdir_flag_spec='-R$libdir'
10526 hardcode_shlibpath_var=no
10528 solaris2.[0-5] | solaris2.[0-5].*) ;;
10530 # The compiler driver will combine and reorder linker options,
10531 # but understands `-z linker_flag'. GCC discards it without `$wl',
10532 # but is careful enough not to reorder.
10533 # Supported since Solaris 2.6 (maybe 2.5.1?)
10534 if test "$GCC" = yes; then
10535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10541 link_all_deplibs=yes
10545 if test "x$host_vendor" = xsequent; then
10546 # Use $CC to link under sequent, because it throws in some extra .o
10547 # files that make .init and .fini sections work.
10548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10559 case $host_vendor in
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_direct=yes # is this really true???
10565 ## LD is ld it makes a PLAMLIB
10566 ## CC just makes a GrossModule.
10567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568 reload_cmds='$CC -r -o $output$reload_objs'
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10576 runpath_var='LD_RUN_PATH'
10577 hardcode_shlibpath_var=no
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_shlibpath_var=no
10583 export_dynamic_flag_spec='-Bexport'
10587 if test -d /usr/nec; then
10588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_shlibpath_var=no
10590 runpath_var=LD_RUN_PATH
10591 hardcode_runpath_var=yes
10596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597 no_undefined_flag='${wl}-z,text'
10598 archive_cmds_need_lc=no
10599 hardcode_shlibpath_var=no
10600 runpath_var='LD_RUN_PATH'
10602 if test "$GCC" = yes; then
10603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 sysv5* | sco3.2v5* | sco5v6*)
10612 # Note: We can NOT use -z defs as we might desire, because we do not
10613 # link with -lc, and that would cause any symbols used from libc to
10614 # always be unresolved, which means just about no library would
10615 # ever link correctly. If we're not using GNU ld we use -z text
10616 # though, which does catch some bad symbols but isn't as heavy-handed
10618 no_undefined_flag='${wl}-z,text'
10619 allow_undefined_flag='${wl}-z,nodefs'
10620 archive_cmds_need_lc=no
10621 hardcode_shlibpath_var=no
10622 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10623 hardcode_libdir_separator=':'
10624 link_all_deplibs=yes
10625 export_dynamic_flag_spec='${wl}-Bexport'
10626 runpath_var='LD_RUN_PATH'
10628 if test "$GCC" = yes; then
10629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_libdir_flag_spec='-L$libdir'
10640 hardcode_shlibpath_var=no
10648 if test x$host_vendor = xsni; then
10650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651 export_dynamic_flag_spec='${wl}-Blargedynsym'
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 $as_echo "$ld_shlibs" >&6; }
10659 test "$ld_shlibs" = no && can_build_shared=no
10661 with_gnu_ld=$with_gnu_ld
10678 # Do we need to explicitly link libc?
10680 case "x$archive_cmds_need_lc" in
10682 # Assume -lc should be added
10683 archive_cmds_need_lc=yes
10685 if test "$enable_shared" = yes && test "$GCC" = yes; then
10686 case $archive_cmds in
10688 # FIXME: we may have to deal with multi-command sequences.
10691 # Test whether the compiler implicitly links with -lc since on some
10692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693 # to ld, don't add -lc before -lgcc.
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10696 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10697 $as_echo_n "(cached) " >&6
10700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10703 (eval $ac_compile) 2>&5
10705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706 test $ac_status = 0; } 2>conftest.err; then
10709 libobjs=conftest.$ac_objext
10711 wl=$lt_prog_compiler_wl
10712 pic_flag=$lt_prog_compiler_pic
10718 lt_save_allow_undefined_flag=$allow_undefined_flag
10719 allow_undefined_flag=
10720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10721 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724 test $ac_status = 0; }
10726 lt_cv_archive_cmds_need_lc=no
10728 lt_cv_archive_cmds_need_lc=yes
10730 allow_undefined_flag=$lt_save_allow_undefined_flag
10732 cat conftest.err 1>&5
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10738 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10739 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10900 if test "$GCC" = yes; then
10902 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10903 *) lt_awk_arg="/^libraries:/" ;;
10906 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10907 *) lt_sed_strip_eq="s,=/,/,g" ;;
10909 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10910 case $lt_search_path_spec in
10912 # if the path contains ";" then we assume it to be the separator
10913 # otherwise default to the standard path separator (i.e. ":") - it is
10914 # assumed that no part of a normal pathname contains ";" but that should
10915 # okay in the real world where ";" in dirpaths is itself problematic.
10916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10922 # Ok, now we have the path, separated by spaces, we can step through it
10923 # and add multilib dir if necessary.
10924 lt_tmp_lt_search_path_spec=
10925 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10926 for lt_sys_path in $lt_search_path_spec; do
10927 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10930 test -d "$lt_sys_path" && \
10931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10934 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10935 BEGIN {RS=" "; FS="/|\n";} {
10938 for (lt_i = NF; lt_i > 0; lt_i--) {
10939 if ($lt_i != "" && $lt_i != ".") {
10940 if ($lt_i == "..") {
10943 if (lt_count == 0) {
10944 lt_foo="/" $lt_i lt_foo;
10951 if (lt_foo != "") { lt_freq[lt_foo]++; }
10952 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10954 # AWK program above erroneously prepends '/' to C:/dos/paths
10957 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10958 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10960 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964 library_names_spec=
10965 libname_spec='lib$name'
10969 postuninstall_cmds=
10973 shlibpath_overrides_runpath=unknown
10975 dynamic_linker="$host_os ld.so"
10976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10977 need_lib_prefix=unknown
10978 hardcode_into_libs=no
10980 # when you set need_version to no, make sure it does not cause -set_version
10981 # flags to be left without arguments
10982 need_version=unknown
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10988 shlibpath_var=LIBPATH
10990 # AIX 3 has no versioning support, so we append a major version to the name.
10991 soname_spec='${libname}${release}${shared_ext}$major'
10995 version_type=linux # correct to gnu/linux during the next big refactor
10998 hardcode_into_libs=yes
10999 if test "$host_cpu" = ia64; then
11000 # AIX 5 supports IA64
11001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11002 shlibpath_var=LD_LIBRARY_PATH
11004 # With GCC up to 2.95.x, collect2 would create an import file
11005 # for dependence libraries. The import file would start with
11006 # the line `#! .'. This would cause the generated library to
11007 # depend on `.', always an invalid library. This was fixed in
11008 # development snapshots of GCC prior to 3.0.
11010 aix4 | aix4.[01] | aix4.[01].*)
11011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11013 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11016 can_build_shared=no
11020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11021 # soname into executable. Probably we can add versioning support to
11022 # collect2, so additional links can be useful in future.
11023 if test "$aix_use_runtimelinking" = yes; then
11024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11025 # instead of lib<name>.a to let people know that these are not
11026 # typical AIX shared libraries.
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 # We preserve .a as extension for shared libraries through AIX4.2
11030 # and later when we are not doing run time linking.
11031 library_names_spec='${libname}${release}.a $libname.a'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LIBPATH
11041 # Since July 2007 AmigaOS4 officially supports .so libraries.
11042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 library_names_spec='$libname.ixlibrary $libname.a'
11047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11048 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11054 library_names_spec='${libname}${shared_ext}'
11055 dynamic_linker="$host_os ld.so"
11056 shlibpath_var=LIBRARY_PATH
11060 version_type=linux # correct to gnu/linux during the next big refactor
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11068 # the default ld.so.conf also contains /usr/contrib/lib and
11069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11070 # libtool to hard-code these into programs
11073 cygwin* | mingw* | pw32* | cegcc*)
11074 version_type=windows
11079 case $GCC,$cc_basename in
11082 library_names_spec='$libname.dll.a'
11083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11084 postinstall_cmds='base_file=`basename \${file}`~
11085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11086 dldir=$destdir/`dirname \$dlpath`~
11087 test -d \$dldir || mkdir -p \$dldir~
11088 $install_prog $dir/$dlname \$dldir/$dlname~
11089 chmod a+x \$dldir/$dlname~
11090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11094 dlpath=$dir/\$dldll~
11096 shlibpath_overrides_runpath=yes
11100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11106 # MinGW DLLs use traditional 'lib' prefix
11107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 # pw32 DLLs use 'pw' prefix rather than 'lib'
11111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11114 dynamic_linker='Win32 ld.exe'
11119 libname_spec='$name'
11120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11121 library_names_spec='${libname}.dll.lib'
11125 sys_lib_search_path_spec=
11128 for lt_path in $LIB
11131 # Let DOS variable expansion print the short 8.3 style file name.
11132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11136 # Convert to MSYS style.
11137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11140 # Convert to unix form, then to dos form, then back to unix form
11141 # but this time dos style (no spaces!) so that the unix form looks
11142 # like /cygdrive/c/PROGRA~1:/cygdr...
11143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11148 sys_lib_search_path_spec="$LIB"
11149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11150 # It is most probably a Windows format PATH.
11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155 # FIXME: find the short name or the path components, as spaces are
11156 # common. (e.g. "Program Files" -> "PROGRA~1")
11160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 postinstall_cmds='base_file=`basename \${file}`~
11162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11163 dldir=$destdir/`dirname \$dlpath`~
11164 test -d \$dldir || mkdir -p \$dldir~
11165 $install_prog $dir/$dlname \$dldir/$dlname'
11166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11167 dlpath=$dir/\$dldll~
11169 shlibpath_overrides_runpath=yes
11170 dynamic_linker='Win32 link.exe'
11174 # Assume MSVC wrapper
11175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11176 dynamic_linker='Win32 ld.exe'
11179 # FIXME: first we should search . and the directory the executable is in
11183 darwin* | rhapsody*)
11184 dynamic_linker="$host_os dyld"
11185 version_type=darwin
11188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11189 soname_spec='${libname}${release}${major}$shared_ext'
11190 shlibpath_overrides_runpath=yes
11191 shlibpath_var=DYLD_LIBRARY_PATH
11192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11199 version_type=linux # correct to gnu/linux during the next big refactor
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11207 freebsd* | dragonfly*)
11208 # DragonFly does not have aout. When/if they implement a new
11209 # versioning mechanism, adjust this.
11210 if test -x /usr/bin/objformat; then
11211 objformat=`/usr/bin/objformat`
11214 freebsd[23].*) objformat=aout ;;
11215 *) objformat=elf ;;
11218 version_type=freebsd-$objformat
11219 case $version_type in
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11230 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11235 freebsd3.[01]* | freebsdelf3.[01]*)
11236 shlibpath_overrides_runpath=yes
11237 hardcode_into_libs=yes
11239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11241 shlibpath_overrides_runpath=no
11242 hardcode_into_libs=yes
11244 *) # from 4.6 on, and DragonFly
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11252 version_type=linux # correct to gnu/linux during the next big refactor
11255 dynamic_linker="$host_os runtime_loader"
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11261 hardcode_into_libs=yes
11264 hpux9* | hpux10* | hpux11*)
11265 # Give a soname corresponding to the major version so that dld.sl refuses to
11266 # link against other versions.
11273 hardcode_into_libs=yes
11274 dynamic_linker="$host_os dld.so"
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 if test "X$HPUX_IA64_MODE" = X32; then
11280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11288 hardcode_into_libs=yes
11289 dynamic_linker="$host_os dld.sl"
11290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11299 dynamic_linker="$host_os dld.sl"
11300 shlibpath_var=SHLIB_PATH
11301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11307 postinstall_cmds='chmod 555 $lib'
11308 # or fails outright, so override atomically:
11309 install_override_mode=555
11313 version_type=linux # correct to gnu/linux during the next big refactor
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11324 irix5* | irix6* | nonstopux*)
11326 nonstopux*) version_type=nonstopux ;;
11328 if test "$lt_cv_prog_gnu_ld" = yes; then
11329 version_type=linux # correct to gnu/linux during the next big refactor
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11339 irix5* | nonstopux*)
11340 libsuff= shlibsuff=
11343 case $LD in # libtool.m4 will add one of these switches to LD
11344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11345 libsuff= shlibsuff= libmagic=32-bit;;
11346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11347 libsuff=32 shlibsuff=N32 libmagic=N32;;
11348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11350 *) libsuff= shlibsuff= libmagic=never-match;;
11354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11355 shlibpath_overrides_runpath=no
11356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11358 hardcode_into_libs=yes
11361 # No shared lib support for Linux oldld, aout, or coff.
11362 linux*oldld* | linux*aout* | linux*coff*)
11366 # This must be glibc/ELF.
11367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11368 version_type=linux # correct to gnu/linux during the next big refactor
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11374 shlibpath_var=LD_LIBRARY_PATH
11375 shlibpath_overrides_runpath=no
11377 # Some binutils ld are patched to set DT_RUNPATH
11378 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11379 $as_echo_n "(cached) " >&6
11381 lt_cv_shlibpath_overrides_runpath=no
11382 save_LDFLAGS=$LDFLAGS
11383 save_libdir=$libdir
11384 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11385 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11399 lt_cv_shlibpath_overrides_runpath=yes
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LDFLAGS=$save_LDFLAGS
11405 libdir=$save_libdir
11409 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11411 # This implies no fast_install, which is unacceptable.
11412 # Some rework will be needed to allow for fast_install
11413 # before this can be enabled.
11414 hardcode_into_libs=yes
11416 # Append ld.so.conf contents to the search path
11417 if test -f /etc/ld.so.conf; then
11418 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' ' '`
11419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11422 # We used to test for /lib/ld.so.1 and disable shared libraries on
11423 # powerpc, because MkLinux only supported shared libraries with the
11424 # GNU dynamic linker. Since this was broken with cross compilers,
11425 # most powerpc-linux boxes support dynamic linking these days and
11426 # people can always --disable-shared, the test was removed, and we
11427 # assume the GNU/Linux dynamic linker is in use.
11428 dynamic_linker='GNU/Linux ld.so'
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 hardcode_into_libs=yes
11440 dynamic_linker='NetBSD ld.elf_so'
11447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11450 dynamic_linker='NetBSD (a.out) ld.so'
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 dynamic_linker='NetBSD ld.elf_so'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=yes
11458 hardcode_into_libs=yes
11462 version_type=linux # correct to gnu/linux during the next big refactor
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=no
11476 hardcode_into_libs=yes
11477 dynamic_linker='ldqnx.so'
11482 sys_lib_dlsearch_path_spec="/usr/lib"
11484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11487 *) need_version=no ;;
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494 openbsd2.[89] | openbsd2.[89].*)
11495 shlibpath_overrides_runpath=no
11498 shlibpath_overrides_runpath=yes
11502 shlibpath_overrides_runpath=yes
11507 libname_spec='$name'
11510 library_names_spec='$libname${shared_ext} $libname.a'
11511 dynamic_linker='OS/2 ld.exe'
11512 shlibpath_var=LIBPATH
11515 osf3* | osf4* | osf5*)
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11531 version_type=linux # correct to gnu/linux during the next big refactor
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 hardcode_into_libs=yes
11539 # ldd complains unless libraries are executable
11540 postinstall_cmds='chmod +x $lib'
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11549 if test "$with_gnu_ld" = yes; then
11556 version_type=linux # correct to gnu/linux during the next big refactor
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 case $host_vendor in
11562 shlibpath_overrides_runpath=no
11564 runpath_var=LD_RUN_PATH
11572 shlibpath_overrides_runpath=no
11573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11579 if test -d /usr/nec ;then
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11582 soname_spec='$libname${shared_ext}.$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11588 version_type=freebsd-elf
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595 hardcode_into_libs=yes
11596 if test "$with_gnu_ld" = yes; then
11597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11606 sys_lib_dlsearch_path_spec='/usr/lib'
11610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11611 version_type=linux # correct to gnu/linux during the next big refactor
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=no
11617 hardcode_into_libs=yes
11621 version_type=linux # correct to gnu/linux during the next big refactor
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11632 $as_echo "$dynamic_linker" >&6; }
11633 test "$dynamic_linker" = no && can_build_shared=no
11635 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11636 if test "$GCC" = yes; then
11637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11640 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11641 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11643 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11644 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11739 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11741 if test -n "$hardcode_libdir_flag_spec" ||
11742 test -n "$runpath_var" ||
11743 test "X$hardcode_automatic" = "Xyes" ; then
11745 # We can hardcode non-existent directories.
11746 if test "$hardcode_direct" != no &&
11747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11748 # have to relink, otherwise we might link with an installed library
11749 # when we should be linking with a yet-to-be-installed one
11750 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11751 test "$hardcode_minus_L" != no; then
11752 # Linking always hardcodes the temporary library directory.
11753 hardcode_action=relink
11755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11756 hardcode_action=immediate
11759 # We cannot hardcode anything, or else we can only hardcode existing
11761 hardcode_action=unsupported
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11764 $as_echo "$hardcode_action" >&6; }
11766 if test "$hardcode_action" = relink ||
11767 test "$inherit_rpath" = yes; then
11768 # Fast installation is not supported
11769 enable_fast_install=no
11770 elif test "$shlibpath_overrides_runpath" = yes ||
11771 test "$enable_shared" = no; then
11772 # Fast installation is not necessary
11773 enable_fast_install=needless
11781 if test "x$enable_dlopen" != xyes; then
11782 enable_dlopen=unknown
11783 enable_dlopen_self=unknown
11784 enable_dlopen_self_static=unknown
11791 lt_cv_dlopen="load_add_on"
11793 lt_cv_dlopen_self=yes
11796 mingw* | pw32* | cegcc*)
11797 lt_cv_dlopen="LoadLibrary"
11802 lt_cv_dlopen="dlopen"
11807 # if libdl is installed we need to link against it
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11810 if ${ac_cv_lib_dl_dlopen+:} false; then :
11811 $as_echo_n "(cached) " >&6
11813 ac_check_lib_save_LIBS=$LIBS
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11818 /* Override any GCC internal prototype to avoid an error.
11819 Use char because int might match the return type of a GCC
11820 builtin and then its argument prototype would still apply. */
11833 if ac_fn_c_try_link "$LINENO"; then :
11834 ac_cv_lib_dl_dlopen=yes
11836 ac_cv_lib_dl_dlopen=no
11838 rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11844 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11848 lt_cv_dlopen="dyld"
11850 lt_cv_dlopen_self=yes
11857 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11858 if test "x$ac_cv_func_shl_load" = xyes; then :
11859 lt_cv_dlopen="shl_load"
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11862 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11863 if ${ac_cv_lib_dld_shl_load+:} false; then :
11864 $as_echo_n "(cached) " >&6
11866 ac_check_lib_save_LIBS=$LIBS
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11871 /* Override any GCC internal prototype to avoid an error.
11872 Use char because int might match the return type of a GCC
11873 builtin and then its argument prototype would still apply. */
11881 return shl_load ();
11886 if ac_fn_c_try_link "$LINENO"; then :
11887 ac_cv_lib_dld_shl_load=yes
11889 ac_cv_lib_dld_shl_load=no
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11896 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11897 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11900 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11901 if test "x$ac_cv_func_dlopen" = xyes; then :
11902 lt_cv_dlopen="dlopen"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11905 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11906 if ${ac_cv_lib_dl_dlopen+:} false; then :
11907 $as_echo_n "(cached) " >&6
11909 ac_check_lib_save_LIBS=$LIBS
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11914 /* Override any GCC internal prototype to avoid an error.
11915 Use char because int might match the return type of a GCC
11916 builtin and then its argument prototype would still apply. */
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 ac_cv_lib_dl_dlopen=yes
11932 ac_cv_lib_dl_dlopen=no
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11939 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11940 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11944 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11945 if ${ac_cv_lib_svld_dlopen+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-lsvld $LIBS"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 ac_cv_lib_svld_dlopen=yes
11971 ac_cv_lib_svld_dlopen=no
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11978 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11979 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11983 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11984 if ${ac_cv_lib_dld_dld_link+:} false; then :
11985 $as_echo_n "(cached) " >&6
11987 ac_check_lib_save_LIBS=$LIBS
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
12002 return dld_link ();
12007 if ac_fn_c_try_link "$LINENO"; then :
12008 ac_cv_lib_dld_dld_link=yes
12010 ac_cv_lib_dld_dld_link=no
12012 rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12017 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12018 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12040 if test "x$lt_cv_dlopen" != xno; then
12046 case $lt_cv_dlopen in
12048 save_CPPFLAGS="$CPPFLAGS"
12049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12051 save_LDFLAGS="$LDFLAGS"
12052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12055 LIBS="$lt_cv_dlopen_libs $LIBS"
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12058 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12059 if ${lt_cv_dlopen_self+:} false; then :
12060 $as_echo_n "(cached) " >&6
12062 if test "$cross_compiling" = yes; then :
12063 lt_cv_dlopen_self=cross
12065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066 lt_status=$lt_dlunknown
12067 cat > conftest.$ac_ext <<_LT_EOF
12068 #line $LINENO "configure"
12069 #include "confdefs.h"
12078 # define LT_DLGLOBAL RTLD_GLOBAL
12081 # define LT_DLGLOBAL DL_GLOBAL
12083 # define LT_DLGLOBAL 0
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088 find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12094 # define LT_DLLAZY_OR_NOW DL_LAZY
12097 # define LT_DLLAZY_OR_NOW RTLD_NOW
12100 # define LT_DLLAZY_OR_NOW DL_NOW
12102 # define LT_DLLAZY_OR_NOW 0
12109 /* When -fvisbility=hidden is used, assume the code has been annotated
12110 correspondingly for the symbols needed. */
12111 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12112 int fnord () __attribute__((visibility("default")));
12115 int fnord () { return 42; }
12118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12119 int status = $lt_dlunknown;
12123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12126 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12127 else puts (dlerror ());
12129 /* dlclose (self); */
12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12138 (eval $ac_link) 2>&5
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12142 (./conftest; exit; ) >&5 2>/dev/null
12144 case x$lt_status in
12145 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12146 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12147 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12150 # compilation failed
12151 lt_cv_dlopen_self=no
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12159 $as_echo "$lt_cv_dlopen_self" >&6; }
12161 if test "x$lt_cv_dlopen_self" = xyes; then
12162 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12164 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12165 if ${lt_cv_dlopen_self_static+:} false; then :
12166 $as_echo_n "(cached) " >&6
12168 if test "$cross_compiling" = yes; then :
12169 lt_cv_dlopen_self_static=cross
12171 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12172 lt_status=$lt_dlunknown
12173 cat > conftest.$ac_ext <<_LT_EOF
12174 #line $LINENO "configure"
12175 #include "confdefs.h"
12184 # define LT_DLGLOBAL RTLD_GLOBAL
12187 # define LT_DLGLOBAL DL_GLOBAL
12189 # define LT_DLGLOBAL 0
12193 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12194 find out it does not work in some platform. */
12195 #ifndef LT_DLLAZY_OR_NOW
12197 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12200 # define LT_DLLAZY_OR_NOW DL_LAZY
12203 # define LT_DLLAZY_OR_NOW RTLD_NOW
12206 # define LT_DLLAZY_OR_NOW DL_NOW
12208 # define LT_DLLAZY_OR_NOW 0
12215 /* When -fvisbility=hidden is used, assume the code has been annotated
12216 correspondingly for the symbols needed. */
12217 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12218 int fnord () __attribute__((visibility("default")));
12221 int fnord () { return 42; }
12224 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12225 int status = $lt_dlunknown;
12229 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12232 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12233 else puts (dlerror ());
12235 /* dlclose (self); */
12243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12244 (eval $ac_link) 2>&5
12246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12247 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12248 (./conftest; exit; ) >&5 2>/dev/null
12250 case x$lt_status in
12251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12253 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12256 # compilation failed
12257 lt_cv_dlopen_self_static=no
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12265 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12268 CPPFLAGS="$save_CPPFLAGS"
12269 LDFLAGS="$save_LDFLAGS"
12274 case $lt_cv_dlopen_self in
12275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12276 *) enable_dlopen_self=unknown ;;
12279 case $lt_cv_dlopen_self_static in
12280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12281 *) enable_dlopen_self_static=unknown ;;
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12304 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12305 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309 $as_echo "yes" >&6; }
12311 # FIXME - insert some real tests, host_os isn't really good enough
12314 if test -n "$STRIP" ; then
12315 striplib="$STRIP -x"
12316 old_striplib="$STRIP -S"
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12318 $as_echo "yes" >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12342 # Report which library types will actually be built
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12344 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12346 $as_echo "$can_build_shared" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12349 $as_echo_n "checking whether to build shared libraries... " >&6; }
12350 test "$can_build_shared" = "no" && enable_shared=no
12352 # On AIX, shared libraries and static libraries use the same namespace, and
12353 # are all built from PIC.
12356 test "$enable_shared" = yes && enable_static=no
12357 if test -n "$RANLIB"; then
12358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12359 postinstall_cmds='$RANLIB $lib'
12364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12365 test "$enable_shared" = yes && enable_static=no
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12370 $as_echo "$enable_shared" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12373 $as_echo_n "checking whether to build static libraries... " >&6; }
12374 # Make sure either enable_shared or enable_static is yes.
12375 test "$enable_shared" = yes || enable_static=yes
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12377 $as_echo "$enable_static" >&6; }
12384 ac_cpp='$CXXCPP $CPPFLAGS'
12385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12393 (test "X$CXX" != "Xg++"))) ; then
12395 ac_cpp='$CXXCPP $CPPFLAGS'
12396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12400 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12401 if test -z "$CXXCPP"; then
12402 if ${ac_cv_prog_CXXCPP+:} false; then :
12403 $as_echo_n "(cached) " >&6
12405 # Double quotes because CXXCPP needs to be expanded
12406 for CXXCPP in "$CXX -E" "/lib/cpp"
12408 ac_preproc_ok=false
12409 for ac_cxx_preproc_warn_flag in '' yes
12411 # Use a header file that comes with gcc, so configuring glibc
12412 # with a fresh cross-compiler works.
12413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12414 # <limits.h> exists even on freestanding compilers.
12415 # On the NeXT, cc -E runs the code through the compiler's parser,
12416 # not just through cpp. "Syntax error" is here to catch this case.
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12420 # include <limits.h>
12422 # include <assert.h>
12426 if ac_fn_cxx_try_cpp "$LINENO"; then :
12429 # Broken: fails on valid input.
12432 rm -f conftest.err conftest.i conftest.$ac_ext
12434 # OK, works on sane cases. Now check whether nonexistent headers
12435 # can be detected and how.
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 #include <ac_nonexistent.h>
12440 if ac_fn_cxx_try_cpp "$LINENO"; then :
12441 # Broken: success on invalid input.
12444 # Passes both tests.
12448 rm -f conftest.err conftest.i conftest.$ac_ext
12451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12452 rm -f conftest.i conftest.err conftest.$ac_ext
12453 if $ac_preproc_ok; then :
12458 ac_cv_prog_CXXCPP=$CXXCPP
12461 CXXCPP=$ac_cv_prog_CXXCPP
12463 ac_cv_prog_CXXCPP=$CXXCPP
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12466 $as_echo "$CXXCPP" >&6; }
12467 ac_preproc_ok=false
12468 for ac_cxx_preproc_warn_flag in '' yes
12470 # Use a header file that comes with gcc, so configuring glibc
12471 # with a fresh cross-compiler works.
12472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473 # <limits.h> exists even on freestanding compilers.
12474 # On the NeXT, cc -E runs the code through the compiler's parser,
12475 # not just through cpp. "Syntax error" is here to catch this case.
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12479 # include <limits.h>
12481 # include <assert.h>
12485 if ac_fn_cxx_try_cpp "$LINENO"; then :
12488 # Broken: fails on valid input.
12491 rm -f conftest.err conftest.i conftest.$ac_ext
12493 # OK, works on sane cases. Now check whether nonexistent headers
12494 # can be detected and how.
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #include <ac_nonexistent.h>
12499 if ac_fn_cxx_try_cpp "$LINENO"; then :
12500 # Broken: success on invalid input.
12503 # Passes both tests.
12507 rm -f conftest.err conftest.i conftest.$ac_ext
12510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12511 rm -f conftest.i conftest.err conftest.$ac_ext
12512 if $ac_preproc_ok; then :
12515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12517 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12518 See \`config.log' for more details" "$LINENO" 5; }
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12528 _lt_caught_CXX_error=yes
12532 ac_cpp='$CXXCPP $CPPFLAGS'
12533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12537 archive_cmds_need_lc_CXX=no
12538 allow_undefined_flag_CXX=
12539 always_export_symbols_CXX=no
12540 archive_expsym_cmds_CXX=
12541 compiler_needs_object_CXX=no
12542 export_dynamic_flag_spec_CXX=
12543 hardcode_direct_CXX=no
12544 hardcode_direct_absolute_CXX=no
12545 hardcode_libdir_flag_spec_CXX=
12546 hardcode_libdir_separator_CXX=
12547 hardcode_minus_L_CXX=no
12548 hardcode_shlibpath_var_CXX=unsupported
12549 hardcode_automatic_CXX=no
12550 inherit_rpath_CXX=no
12552 module_expsym_cmds_CXX=
12553 link_all_deplibs_CXX=unknown
12554 old_archive_cmds_CXX=$old_archive_cmds
12555 reload_flag_CXX=$reload_flag
12556 reload_cmds_CXX=$reload_cmds
12557 no_undefined_flag_CXX=
12558 whole_archive_flag_spec_CXX=
12559 enable_shared_with_static_runtimes_CXX=no
12561 # Source file extension for C++ test sources.
12564 # Object file extension for compiled C++ test sources.
12568 # No sense in running all these tests if we already determined that
12569 # the CXX compiler isn't working. Some variables (like enable_shared)
12570 # are currently assumed to apply to all compilers on this platform,
12571 # and will be corrupted by setting them based on a non-working compiler.
12572 if test "$_lt_caught_CXX_error" != yes; then
12573 # Code to be used in simple compile tests
12574 lt_simple_compile_test_code="int some_variable = 0;"
12576 # Code to be used in simple link tests
12577 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12586 # If no C compiler was specified, use CC.
12589 # If no C compiler flags were specified, use CFLAGS.
12590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12592 # Allow CC to be a program name with arguments.
12596 # save warnings/boilerplate of simple test code
12597 ac_outfile=conftest.$ac_objext
12598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_compiler_boilerplate=`cat conftest.err`
12603 ac_outfile=conftest.$ac_objext
12604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12606 _lt_linker_boilerplate=`cat conftest.err`
12610 # Allow CC to be a program name with arguments.
12612 lt_save_CFLAGS=$CFLAGS
12616 lt_save_with_gnu_ld=$with_gnu_ld
12617 lt_save_path_LD=$lt_cv_path_LD
12618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12619 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12621 $as_unset lt_cv_prog_gnu_ld
12623 if test -n "${lt_cv_path_LDCXX+set}"; then
12624 lt_cv_path_LD=$lt_cv_path_LDCXX
12626 $as_unset lt_cv_path_LD
12628 test -z "${LDCXX+set}" || LD=$LDCXX
12633 for cc_temp in $compiler""; do
12635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12641 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12644 if test -n "$compiler"; then
12645 # We don't want -fno-exception when compiling C++ code, so set the
12646 # no_builtin_flag separately
12647 if test "$GXX" = yes; then
12648 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12650 lt_prog_compiler_no_builtin_flag_CXX=
12653 if test "$GXX" = yes; then
12654 # Set up default GNU C++ configuration
12658 # Check whether --with-gnu-ld was given.
12659 if test "${with_gnu_ld+set}" = set; then :
12660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12666 if test "$GCC" = yes; then
12667 # Check if gcc -print-prog-name=ld gives a path.
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12669 $as_echo_n "checking for ld used by $CC... " >&6; }
12672 # gcc leaves a trailing carriage return which upsets mingw
12673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12678 # Accept absolute paths.
12680 re_direlt='/[^/][^/]*/\.\./'
12681 # Canonicalize the pathname of ld
12682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12686 test -z "$LD" && LD="$ac_prog"
12689 # If it fails, then pretend we aren't using GCC.
12693 # If it is relative, then search for the first ld in PATH.
12694 with_gnu_ld=unknown
12697 elif test "$with_gnu_ld" = yes; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12699 $as_echo_n "checking for GNU ld... " >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12702 $as_echo_n "checking for non-GNU ld... " >&6; }
12704 if ${lt_cv_path_LD+:} false; then :
12705 $as_echo_n "(cached) " >&6
12707 if test -z "$LD"; then
12708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12709 for ac_dir in $PATH; do
12711 test -z "$ac_dir" && ac_dir=.
12712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12713 lt_cv_path_LD="$ac_dir/$ac_prog"
12714 # Check to see if the program is GNU ld. I'd rather use --version,
12715 # but apparently some variants of GNU ld only accept -v.
12716 # Break only if it was the GNU/non-GNU ld that we prefer.
12717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12718 *GNU* | *'with BFD'*)
12719 test "$with_gnu_ld" != no && break
12722 test "$with_gnu_ld" != yes && break
12729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12733 LD="$lt_cv_path_LD"
12734 if test -n "$LD"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12736 $as_echo "$LD" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12741 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12744 if ${lt_cv_prog_gnu_ld+:} false; then :
12745 $as_echo_n "(cached) " >&6
12747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12748 case `$LD -v 2>&1 </dev/null` in
12749 *GNU* | *'with BFD'*)
12750 lt_cv_prog_gnu_ld=yes
12753 lt_cv_prog_gnu_ld=no
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12758 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12759 with_gnu_ld=$lt_cv_prog_gnu_ld
12767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12768 # archiving commands below assume that GNU ld is being used.
12769 if test "$with_gnu_ld" = yes; then
12770 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12776 # If archive_cmds runs LD, not CC, wlarc should be empty
12777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12778 # investigate it a little bit more. (MM)
12781 # ancient GNU ld didn't support --whole-archive et. al.
12782 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12783 $GREP 'no-whole-archive' > /dev/null; then
12784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12786 whole_archive_flag_spec_CXX=
12792 # A generic and very simple default shared library creation
12793 # command for GNU C++ for the case where it uses the native
12794 # linker, instead of GNU ld. If possible, this setting should
12795 # overridden to take advantage of the native linker features on
12796 # the platform it is being used on.
12797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12800 # Commands to make compiler produce verbose output that lists
12801 # what "hidden" libraries, object files and flags are used when
12802 # linking a shared library.
12803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12811 # PORTME: fill in a description of your system's C++ link characteristics
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12813 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12817 # FIXME: insert proper C++ library support
12821 if test "$host_cpu" = ia64; then
12822 # On IA64, the linker does run time linking by default, so we don't
12823 # have to do anything special.
12824 aix_use_runtimelinking=no
12825 exp_sym_flag='-Bexport'
12828 aix_use_runtimelinking=no
12830 # Test if we are trying to use run time linking or normal
12831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12832 # need to do runtime linking.
12833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12834 for ld_flag in $LDFLAGS; do
12837 aix_use_runtimelinking=yes
12845 exp_sym_flag='-bexport'
12846 no_entry_flag='-bnoentry'
12849 # When large executables or shared objects are built, AIX ld can
12850 # have problems creating the table of contents. If linking a library
12851 # or program results in "error TOC overflow" add -mminimal-toc to
12852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12855 archive_cmds_CXX=''
12856 hardcode_direct_CXX=yes
12857 hardcode_direct_absolute_CXX=yes
12858 hardcode_libdir_separator_CXX=':'
12859 link_all_deplibs_CXX=yes
12860 file_list_spec_CXX='${wl}-f,'
12862 if test "$GXX" = yes; then
12863 case $host_os in aix4.[012]|aix4.[012].*)
12864 # We only want to do this on AIX 4.2 and lower, the check
12865 # below for broken collect2 doesn't work under 4.3+
12866 collect2name=`${CC} -print-prog-name=collect2`
12867 if test -f "$collect2name" &&
12868 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12870 # We have reworked collect2
12873 # We have old collect2
12874 hardcode_direct_CXX=unsupported
12875 # It fails to find uninstalled libraries when the uninstalled
12876 # path is not listed in the libpath. Setting hardcode_minus_L
12877 # to unsupported forces relinking
12878 hardcode_minus_L_CXX=yes
12879 hardcode_libdir_flag_spec_CXX='-L$libdir'
12880 hardcode_libdir_separator_CXX=
12883 shared_flag='-shared'
12884 if test "$aix_use_runtimelinking" = yes; then
12885 shared_flag="$shared_flag "'${wl}-G'
12889 if test "$host_cpu" = ia64; then
12890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12891 # chokes on -Wl,-G. The following line is correct:
12894 if test "$aix_use_runtimelinking" = yes; then
12895 shared_flag='${wl}-G'
12897 shared_flag='${wl}-bM:SRE'
12902 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12903 # It seems that -bexpall does not export symbols beginning with
12904 # underscore (_), so it is better to generate a list of symbols to
12906 always_export_symbols_CXX=yes
12907 if test "$aix_use_runtimelinking" = yes; then
12908 # Warning - without using the other runtime loading flags (-brtl),
12909 # -berok will link without error, but may produce a broken library.
12910 allow_undefined_flag_CXX='-berok'
12911 # Determine the default libpath from the value encoded in an empty
12913 if test "${lt_cv_aix_libpath+set}" = set; then
12914 aix_libpath=$lt_cv_aix_libpath
12916 if ${lt_cv_aix_libpath__CXX+:} false; then :
12917 $as_echo_n "(cached) " >&6
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12930 if ac_fn_cxx_try_link "$LINENO"; then :
12932 lt_aix_libpath_sed='
12933 /Import File Strings/,/^$/ {
12935 s/^0 *\([^ ]*\) *$/\1/
12939 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940 # Check for a 64-bit object if we didn't find anything.
12941 if test -z "$lt_cv_aix_libpath__CXX"; then
12942 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12945 rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947 if test -z "$lt_cv_aix_libpath__CXX"; then
12948 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12953 aix_libpath=$lt_cv_aix_libpath__CXX
12956 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12958 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12960 if test "$host_cpu" = ia64; then
12961 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12962 allow_undefined_flag_CXX="-z nodefs"
12963 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12965 # Determine the default libpath from the value encoded in an
12966 # empty executable.
12967 if test "${lt_cv_aix_libpath+set}" = set; then
12968 aix_libpath=$lt_cv_aix_libpath
12970 if ${lt_cv_aix_libpath__CXX+:} false; then :
12971 $as_echo_n "(cached) " >&6
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12984 if ac_fn_cxx_try_link "$LINENO"; then :
12986 lt_aix_libpath_sed='
12987 /Import File Strings/,/^$/ {
12989 s/^0 *\([^ ]*\) *$/\1/
12993 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12994 # Check for a 64-bit object if we didn't find anything.
12995 if test -z "$lt_cv_aix_libpath__CXX"; then
12996 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 if test -z "$lt_cv_aix_libpath__CXX"; then
13002 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13007 aix_libpath=$lt_cv_aix_libpath__CXX
13010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13011 # Warning - without using the other run time loading flags,
13012 # -berok will link without error, but may produce a broken library.
13013 no_undefined_flag_CXX=' ${wl}-bernotok'
13014 allow_undefined_flag_CXX=' ${wl}-berok'
13015 if test "$with_gnu_ld" = yes; then
13016 # We only use this code for GNU lds that support --whole-archive.
13017 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13019 # Exported symbols can be pulled into shared objects from archives
13020 whole_archive_flag_spec_CXX='$convenience'
13022 archive_cmds_need_lc_CXX=yes
13023 # This is similar to how AIX traditionally builds its shared
13025 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13032 allow_undefined_flag_CXX=unsupported
13033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13034 # support --undefined. This deserves some investigation. FIXME
13035 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042 case $cc_basename in
13044 # FIXME: insert proper C++ library support
13050 cygwin* | mingw* | pw32* | cegcc*)
13051 case $GXX,$cc_basename in
13054 # hardcode_libdir_flag_spec is actually meaningless, as there is
13055 # no search path for DLLs.
13056 hardcode_libdir_flag_spec_CXX=' '
13057 allow_undefined_flag_CXX=unsupported
13058 always_export_symbols_CXX=yes
13059 file_list_spec_CXX='@'
13060 # Tell ltmain to make .lib files, not .a files.
13062 # Tell ltmain to make .dll files, not .so files.
13064 # FIXME: Setting linknames here is a bad hack.
13065 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13066 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13067 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13069 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13071 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13073 # The linker will not automatically build a static lib if we build a DLL.
13074 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13075 enable_shared_with_static_runtimes_CXX=yes
13077 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13078 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13079 lt_tool_outputfile="@TOOL_OUTPUT@"~
13080 case $lt_outputfile in
13083 lt_outputfile="$lt_outputfile.exe"
13084 lt_tool_outputfile="$lt_tool_outputfile.exe"
13087 func_to_tool_file "$lt_outputfile"~
13088 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13089 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13090 $RM "$lt_outputfile.manifest";
13095 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096 # as there is no search path for DLLs.
13097 hardcode_libdir_flag_spec_CXX='-L$libdir'
13098 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13099 allow_undefined_flag_CXX=unsupported
13100 always_export_symbols_CXX=no
13101 enable_shared_with_static_runtimes_CXX=yes
13103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13104 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13105 # If the export-symbols file already is a .def file (1st line
13106 # is EXPORTS), use it as is; otherwise, prepend...
13107 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13108 cp $export_symbols $output_objdir/$soname.def;
13110 echo EXPORTS > $output_objdir/$soname.def;
13111 cat $export_symbols >> $output_objdir/$soname.def;
13113 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13120 darwin* | rhapsody*)
13123 archive_cmds_need_lc_CXX=no
13124 hardcode_direct_CXX=no
13125 hardcode_automatic_CXX=yes
13126 hardcode_shlibpath_var_CXX=unsupported
13127 if test "$lt_cv_ld_force_load" = "yes"; then
13128 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13131 whole_archive_flag_spec_CXX=''
13133 link_all_deplibs_CXX=yes
13134 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13135 case $cc_basename in
13136 ifort*) _lt_dar_can_shared=yes ;;
13137 *) _lt_dar_can_shared=$GCC ;;
13139 if test "$_lt_dar_can_shared" = "yes"; then
13140 output_verbose_link_cmd=func_echo_all
13141 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13142 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13143 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13144 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13145 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13146 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13147 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13157 case $cc_basename in
13159 # FIXME: insert proper C++ library support
13163 # Green Hills C++ Compiler
13164 # FIXME: insert proper C++ library support
13168 # FIXME: insert proper C++ library support
13175 # C++ shared libraries reported to be fairly broken before
13181 archive_cmds_need_lc_CXX=no
13184 freebsd* | dragonfly*)
13185 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13191 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 link_all_deplibs_CXX=yes
13196 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13197 hardcode_libdir_separator_CXX=:
13198 export_dynamic_flag_spec_CXX='${wl}-E'
13199 hardcode_direct_CXX=yes
13200 hardcode_minus_L_CXX=yes # Not in the search PATH,
13201 # but as the default
13202 # location of the library.
13204 case $cc_basename in
13206 # FIXME: insert proper C++ library support
13210 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13211 # Commands to make compiler produce verbose output that lists
13212 # what "hidden" libraries, object files and flags are used when
13213 # linking a shared library.
13215 # There doesn't appear to be a way to prevent this compiler from
13216 # explicitly linking system object files so we need to strip them
13217 # from the output so that they don't get included in the library
13219 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13222 if test "$GXX" = yes; then
13223 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13225 # FIXME: insert proper C++ library support
13233 if test $with_gnu_ld = no; then
13234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13235 hardcode_libdir_separator_CXX=:
13241 export_dynamic_flag_spec_CXX='${wl}-E'
13247 hardcode_direct_CXX=no
13248 hardcode_shlibpath_var_CXX=no
13251 hardcode_direct_CXX=yes
13252 hardcode_direct_absolute_CXX=yes
13253 hardcode_minus_L_CXX=yes # Not in the search PATH,
13254 # but as the default
13255 # location of the library.
13259 case $cc_basename in
13261 # FIXME: insert proper C++ library support
13267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13284 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13287 if test "$GXX" = yes; then
13288 if test $with_gnu_ld = no; then
13291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13294 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13297 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13302 # FIXME: insert proper C++ library support
13310 hardcode_direct_CXX=no
13311 hardcode_shlibpath_var_CXX=no
13312 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13313 export_dynamic_flag_spec_CXX='${wl}-E'
13314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13315 # Instead, shared libraries are loaded at an image base (0x10000000 by
13316 # default) and relocated if they conflict, which is a slow very memory
13317 # consuming and fragmenting process. To avoid this, we pick a random,
13318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13320 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13321 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13324 case $cc_basename in
13327 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13329 # Archives containing C++ object files must be created using
13330 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13331 # necessary to make sure instantiated templates are included
13333 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13336 if test "$GXX" = yes; then
13337 if test "$with_gnu_ld" = no; then
13338 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13340 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13343 link_all_deplibs_CXX=yes
13346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13347 hardcode_libdir_separator_CXX=:
13348 inherit_rpath_CXX=yes
13351 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13352 case $cc_basename in
13354 # Kuck and Associates, Inc. (KAI) C++ Compiler
13356 # KCC will only create a shared library if the output file
13357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13358 # to its proper name (with version) after linking.
13359 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13360 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13361 # Commands to make compiler produce verbose output that lists
13362 # what "hidden" libraries, object files and flags are used when
13363 # linking a shared library.
13365 # There doesn't appear to be a way to prevent this compiler from
13366 # explicitly linking system object files so we need to strip them
13367 # from the output so that they don't get included in the library
13369 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13374 # Archives containing C++ object files must be created using
13375 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13376 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13381 # version 8.0 and above of icpc choke on multiply defined symbols
13382 # if we add $predep_objects and $postdep_objects, however 7.1 and
13383 # earlier do not add the objects themselves.
13384 case `$CC -V 2>&1` in
13386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13389 *) # Version 8.0 or newer
13392 ia64*) tmp_idyn=' -i_dynamic';;
13394 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13395 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13398 archive_cmds_need_lc_CXX=no
13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13401 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13404 # Portland Group C++ compiler
13406 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13407 prelink_cmds_CXX='tpldir=Template.dir~
13409 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13410 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13411 old_archive_cmds_CXX='tpldir=Template.dir~
13413 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13414 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13416 archive_cmds_CXX='tpldir=Template.dir~
13418 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13419 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420 archive_expsym_cmds_CXX='tpldir=Template.dir~
13422 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13423 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13425 *) # Version 6 and above use weak symbols
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13431 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13433 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13440 runpath_var=LD_RUN_PATH
13441 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13442 hardcode_libdir_separator_CXX=:
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13448 # There doesn't appear to be a way to prevent this compiler from
13449 # explicitly linking system object files so we need to strip them
13450 # from the output so that they don't get included in the library
13452 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13454 xl* | mpixl* | bgxl*)
13455 # IBM XL 8.0 on PPC, with GNU ld
13456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 if test "x$supports_anon_versioning" = xyes; then
13460 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13462 echo "local: *; };" >> $output_objdir/$libname.ver~
13463 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13467 case `$CC -V 2>&1 | sed 5q` in
13470 no_undefined_flag_CXX=' -zdefs'
13471 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13473 hardcode_libdir_flag_spec_CXX='-R$libdir'
13474 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13475 compiler_needs_object_CXX=yes
13477 # Not sure whether something based on
13478 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13480 output_verbose_link_cmd='func_echo_all'
13482 # Archives containing C++ object files must be created using
13483 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13484 # necessary to make sure instantiated templates are included
13486 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13494 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13504 case $cc_basename in
13506 # FIXME: insert proper C++ library support
13510 # FIXME: insert proper C++ library support
13517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13518 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13520 hardcode_libdir_flag_spec_CXX='-R$libdir'
13521 hardcode_direct_CXX=yes
13522 hardcode_shlibpath_var_CXX=no
13524 # Workaround some broken pre-1.5 toolchains
13525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13533 # C++ shared libraries are fairly broken
13538 if test -f /usr/libexec/ld.so; then
13539 hardcode_direct_CXX=yes
13540 hardcode_shlibpath_var_CXX=no
13541 hardcode_direct_absolute_CXX=yes
13542 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13545 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13546 export_dynamic_flag_spec_CXX='${wl}-E'
13547 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13549 output_verbose_link_cmd=func_echo_all
13555 osf3* | osf4* | osf5*)
13556 case $cc_basename in
13558 # Kuck and Associates, Inc. (KAI) C++ Compiler
13560 # KCC will only create a shared library if the output file
13561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13562 # to its proper name (with version) after linking.
13563 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566 hardcode_libdir_separator_CXX=:
13568 # Archives containing C++ object files must be created using
13569 # the KAI C++ compiler.
13571 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13572 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13576 # Rational C++ 2.4.1
13577 # FIXME: insert proper C++ library support
13583 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13584 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13588 allow_undefined_flag_CXX=' -expect_unresolved \*'
13589 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13590 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13591 echo "-hidden">> $lib.exp~
13592 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13594 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13598 hardcode_libdir_separator_CXX=:
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13608 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13612 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13615 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13618 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator_CXX=:
13625 # Commands to make compiler produce verbose output that lists
13626 # what "hidden" libraries, object files and flags are used when
13627 # linking a shared library.
13628 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13631 # FIXME: insert proper C++ library support
13639 # FIXME: insert proper C++ library support
13644 case $cc_basename in
13647 # FIXME: insert proper C++ library support
13652 # FIXME: insert proper C++ library support
13656 # FIXME: insert proper C++ library support
13663 case $cc_basename in
13665 # Sun C++ 4.2, 5.x and Centerline C++
13666 archive_cmds_need_lc_CXX=yes
13667 no_undefined_flag_CXX=' -zdefs'
13668 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13672 hardcode_libdir_flag_spec_CXX='-R$libdir'
13673 hardcode_shlibpath_var_CXX=no
13675 solaris2.[0-5] | solaris2.[0-5].*) ;;
13677 # The compiler driver will combine and reorder linker options,
13678 # but understands `-z linker_flag'.
13679 # Supported since Solaris 2.6 (maybe 2.5.1?)
13680 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13683 link_all_deplibs_CXX=yes
13685 output_verbose_link_cmd='func_echo_all'
13687 # Archives containing C++ object files must be created using
13688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13689 # necessary to make sure instantiated templates are included
13691 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13694 # Green Hills C++ Compiler
13695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13697 # The C++ compiler must be used to create the archive.
13698 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13701 # GNU C++ compiler with Solaris linker
13702 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13703 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13704 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13705 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13714 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13716 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13720 # Commands to make compiler produce verbose output that lists
13721 # what "hidden" libraries, object files and flags are used when
13722 # linking a shared library.
13723 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13726 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13728 solaris2.[0-5] | solaris2.[0-5].*) ;;
13730 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13739 no_undefined_flag_CXX='${wl}-z,text'
13740 archive_cmds_need_lc_CXX=no
13741 hardcode_shlibpath_var_CXX=no
13742 runpath_var='LD_RUN_PATH'
13744 case $cc_basename in
13746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 sysv5* | sco3.2v5* | sco5v6*)
13757 # Note: We can NOT use -z defs as we might desire, because we do not
13758 # link with -lc, and that would cause any symbols used from libc to
13759 # always be unresolved, which means just about no library would
13760 # ever link correctly. If we're not using GNU ld we use -z text
13761 # though, which does catch some bad symbols but isn't as heavy-handed
13763 no_undefined_flag_CXX='${wl}-z,text'
13764 allow_undefined_flag_CXX='${wl}-z,nodefs'
13765 archive_cmds_need_lc_CXX=no
13766 hardcode_shlibpath_var_CXX=no
13767 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13768 hardcode_libdir_separator_CXX=':'
13769 link_all_deplibs_CXX=yes
13770 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13771 runpath_var='LD_RUN_PATH'
13773 case $cc_basename in
13775 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13778 '"$old_archive_cmds_CXX"
13779 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13780 '"$reload_cmds_CXX"
13783 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 case $cc_basename in
13792 # NonStop-UX NCC 3.20
13793 # FIXME: insert proper C++ library support
13797 # FIXME: insert proper C++ library support
13804 # FIXME: insert proper C++ library support
13809 # FIXME: insert proper C++ library support
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13815 $as_echo "$ld_shlibs_CXX" >&6; }
13816 test "$ld_shlibs_CXX" = no && can_build_shared=no
13822 ## There is no encapsulation within the following macros, do not change
13823 ## the running order or otherwise move them around unless you know exactly
13824 ## what you are doing...
13825 # Dependencies to place before and after the object being linked:
13826 predep_objects_CXX=
13827 postdep_objects_CXX=
13830 compiler_lib_search_path_CXX=
13832 cat > conftest.$ac_ext <<_LT_EOF
13836 Foo (void) { a = 0; }
13843 _lt_libdeps_save_CFLAGS=$CFLAGS
13844 case "$CC $CFLAGS " in #(
13845 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13846 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13847 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13851 (eval $ac_compile) 2>&5
13853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854 test $ac_status = 0; }; then
13855 # Parse the compiler output and extract the necessary
13856 # objects, libraries and library flags.
13858 # Sentinel used to keep track of whether or not we are before
13859 # the conftest object file.
13860 pre_test_object_deps_done=no
13862 for p in `eval "$output_verbose_link_cmd"`; do
13863 case ${prev}${p} in
13866 # Some compilers place space between "-{L,R}" and the path.
13867 # Remove the space.
13868 if test $p = "-L" ||
13869 test $p = "-R"; then
13874 # Expand the sysroot to ease extracting the directories later.
13875 if test -z "$prev"; then
13877 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13878 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13879 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13883 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13885 if test "$pre_test_object_deps_done" = no; then
13888 # Internal compiler library paths should come after those
13889 # provided the user. The postdeps already come after the
13890 # user supplied libs so there is no need to process them.
13891 if test -z "$compiler_lib_search_path_CXX"; then
13892 compiler_lib_search_path_CXX="${prev}${p}"
13894 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13897 # The "-l" case would never come before the object being
13898 # linked, so don't bother handling this case.
13901 if test -z "$postdeps_CXX"; then
13902 postdeps_CXX="${prev}${p}"
13904 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13910 *.lto.$objext) ;; # Ignore GCC LTO objects
13912 # This assumes that the test object file only shows up
13913 # once in the compiler output.
13914 if test "$p" = "conftest.$objext"; then
13915 pre_test_object_deps_done=yes
13919 if test "$pre_test_object_deps_done" = no; then
13920 if test -z "$predep_objects_CXX"; then
13921 predep_objects_CXX="$p"
13923 predep_objects_CXX="$predep_objects_CXX $p"
13926 if test -z "$postdep_objects_CXX"; then
13927 postdep_objects_CXX="$p"
13929 postdep_objects_CXX="$postdep_objects_CXX $p"
13934 *) ;; # Ignore the rest.
13942 echo "libtool.m4: error: problem compiling CXX test program"
13945 $RM -f confest.$objext
13946 CFLAGS=$_lt_libdeps_save_CFLAGS
13948 # PORTME: override above test on systems where it is broken
13951 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13952 # hack all around it, let's just trust "g++" to DTRT.
13953 predep_objects_CXX=
13954 postdep_objects_CXX=
13959 case `$CC -V 2>&1 | sed 5q` in
13963 # The more standards-conforming stlport4 library is
13964 # incompatible with the Cstd library. Avoid specifying
13965 # it if it's in CXXFLAGS. Ignore libCrun as
13966 # -library=stlport4 depends on it.
13967 case " $CXX $CXXFLAGS " in
13968 *" -library=stlport4 "*)
13969 solaris_use_stlport4=yes
13973 if test "$solaris_use_stlport4" != yes; then
13974 postdeps_CXX='-library=Cstd -library=Crun'
13981 case $cc_basename in
13983 # The more standards-conforming stlport4 library is
13984 # incompatible with the Cstd library. Avoid specifying
13985 # it if it's in CXXFLAGS. Ignore libCrun as
13986 # -library=stlport4 depends on it.
13987 case " $CXX $CXXFLAGS " in
13988 *" -library=stlport4 "*)
13989 solaris_use_stlport4=yes
13993 # Adding this requires a known-good setup of shared libraries for
13994 # Sun compiler versions before 5.6, else PIC objects from an old
13995 # archive will be linked into the output, leading to subtle bugs.
13996 if test "$solaris_use_stlport4" != yes; then
13997 postdeps_CXX='-library=Cstd -library=Crun'
14005 case " $postdeps_CXX " in
14006 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14008 compiler_lib_search_dirs_CXX=
14009 if test -n "${compiler_lib_search_path_CXX}"; then
14010 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14043 lt_prog_compiler_wl_CXX=
14044 lt_prog_compiler_pic_CXX=
14045 lt_prog_compiler_static_CXX=
14048 # C++ specific cases for pic, static, wl, etc.
14049 if test "$GXX" = yes; then
14050 lt_prog_compiler_wl_CXX='-Wl,'
14051 lt_prog_compiler_static_CXX='-static'
14055 # All AIX code is PIC.
14056 if test "$host_cpu" = ia64; then
14057 # AIX 5 now supports IA64 processor
14058 lt_prog_compiler_static_CXX='-Bstatic'
14065 # see comment about AmigaOS4 .so support
14066 lt_prog_compiler_pic_CXX='-fPIC'
14069 # FIXME: we need at least 68020 code to build shared libraries, but
14070 # adding the `-m68020' flag to GCC prevents building anything better,
14072 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14078 # PIC is the default for these OSes.
14080 mingw* | cygwin* | os2* | pw32* | cegcc*)
14081 # This hack is so that the source file can tell whether it is being
14082 # built for inclusion in a dll (and should export symbols for example).
14083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14084 # (--disable-auto-import) libraries
14085 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14087 darwin* | rhapsody*)
14088 # PIC is the default on this platform
14089 # Common symbols not allowed in MH_DYLIB files
14090 lt_prog_compiler_pic_CXX='-fno-common'
14093 # DJGPP does not support shared libraries at all
14094 lt_prog_compiler_pic_CXX=
14097 # PIC is the default for Haiku.
14098 # The "-static" flag exists, but is broken.
14099 lt_prog_compiler_static_CXX=
14102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14103 # Instead, we relocate shared libraries at runtime.
14106 if test -d /usr/nec; then
14107 lt_prog_compiler_pic_CXX=-Kconform_pic
14111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14113 # sets the default TLS model and affects inlining.
14118 lt_prog_compiler_pic_CXX='-fPIC'
14123 # QNX uses GNU C++, but need to define -shared option too, otherwise
14124 # it will coredump.
14125 lt_prog_compiler_pic_CXX='-fPIC -shared'
14128 lt_prog_compiler_pic_CXX='-fPIC'
14134 # All AIX code is PIC.
14135 if test "$host_cpu" = ia64; then
14136 # AIX 5 now supports IA64 processor
14137 lt_prog_compiler_static_CXX='-Bstatic'
14139 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14143 case $cc_basename in
14145 # Green Hills C++ Compiler
14146 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14150 mingw* | cygwin* | os2* | pw32* | cegcc*)
14151 # This hack is so that the source file can tell whether it is being
14152 # built for inclusion in a dll (and should export symbols for example).
14153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14156 case $cc_basename in
14158 lt_prog_compiler_pic_CXX='-KPIC'
14161 # Green Hills C++ Compiler
14162 lt_prog_compiler_pic_CXX='-pic'
14168 freebsd* | dragonfly*)
14169 # FreeBSD uses GNU C++
14171 hpux9* | hpux10* | hpux11*)
14172 case $cc_basename in
14174 lt_prog_compiler_wl_CXX='-Wl,'
14175 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14176 if test "$host_cpu" != ia64; then
14177 lt_prog_compiler_pic_CXX='+Z'
14181 lt_prog_compiler_wl_CXX='-Wl,'
14182 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14188 lt_prog_compiler_pic_CXX='+Z'
14197 # This is c89, which is MS Visual C++ (no shared libs)
14198 # Anyone wants to do a port?
14200 irix5* | irix6* | nonstopux*)
14201 case $cc_basename in
14203 lt_prog_compiler_wl_CXX='-Wl,'
14204 lt_prog_compiler_static_CXX='-non_shared'
14205 # CC pic flag -KPIC is the default.
14211 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14212 case $cc_basename in
14215 lt_prog_compiler_wl_CXX='--backend -Wl,'
14216 lt_prog_compiler_pic_CXX='-fPIC'
14219 # old Intel C++ for x86_64 which still supported -KPIC.
14220 lt_prog_compiler_wl_CXX='-Wl,'
14221 lt_prog_compiler_pic_CXX='-KPIC'
14222 lt_prog_compiler_static_CXX='-static'
14225 # Intel C++, used to be incompatible with GCC.
14226 # ICC 10 doesn't accept -KPIC any more.
14227 lt_prog_compiler_wl_CXX='-Wl,'
14228 lt_prog_compiler_pic_CXX='-fPIC'
14229 lt_prog_compiler_static_CXX='-static'
14232 # Portland Group C++ compiler
14233 lt_prog_compiler_wl_CXX='-Wl,'
14234 lt_prog_compiler_pic_CXX='-fpic'
14235 lt_prog_compiler_static_CXX='-Bstatic'
14239 # Make sure the PIC flag is empty. It appears that all Alpha
14240 # Linux and Compaq Tru64 Unix objects are PIC.
14241 lt_prog_compiler_pic_CXX=
14242 lt_prog_compiler_static_CXX='-non_shared'
14244 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14245 # IBM XL 8.0, 9.0 on PPC and BlueGene
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 lt_prog_compiler_pic_CXX='-qpic'
14248 lt_prog_compiler_static_CXX='-qstaticlink'
14251 case `$CC -V 2>&1 | sed 5q` in
14254 lt_prog_compiler_pic_CXX='-KPIC'
14255 lt_prog_compiler_static_CXX='-Bstatic'
14256 lt_prog_compiler_wl_CXX='-Qoption ld '
14267 case $cc_basename in
14269 lt_prog_compiler_pic_CXX='-W c,exportall'
14275 netbsd* | netbsdelf*-gnu)
14278 # QNX uses GNU C++, but need to define -shared option too, otherwise
14279 # it will coredump.
14280 lt_prog_compiler_pic_CXX='-fPIC -shared'
14282 osf3* | osf4* | osf5*)
14283 case $cc_basename in
14285 lt_prog_compiler_wl_CXX='--backend -Wl,'
14288 # Rational C++ 2.4.1
14289 lt_prog_compiler_pic_CXX='-pic'
14292 # Digital/Compaq C++
14293 lt_prog_compiler_wl_CXX='-Wl,'
14294 # Make sure the PIC flag is empty. It appears that all Alpha
14295 # Linux and Compaq Tru64 Unix objects are PIC.
14296 lt_prog_compiler_pic_CXX=
14297 lt_prog_compiler_static_CXX='-non_shared'
14306 case $cc_basename in
14308 # Sun C++ 4.2, 5.x and Centerline C++
14309 lt_prog_compiler_pic_CXX='-KPIC'
14310 lt_prog_compiler_static_CXX='-Bstatic'
14311 lt_prog_compiler_wl_CXX='-Qoption ld '
14314 # Green Hills C++ Compiler
14315 lt_prog_compiler_pic_CXX='-PIC'
14322 case $cc_basename in
14325 lt_prog_compiler_pic_CXX='-pic'
14326 lt_prog_compiler_static_CXX='-Bstatic'
14330 lt_prog_compiler_pic_CXX='-pic'
14336 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14337 case $cc_basename in
14339 lt_prog_compiler_wl_CXX='-Wl,'
14340 lt_prog_compiler_pic_CXX='-KPIC'
14341 lt_prog_compiler_static_CXX='-Bstatic'
14346 case $cc_basename in
14348 # NonStop-UX NCC 3.20
14349 lt_prog_compiler_pic_CXX='-KPIC'
14358 lt_prog_compiler_can_build_shared_CXX=no
14364 # For platforms which do not support PIC, -DPIC is meaningless:
14366 lt_prog_compiler_pic_CXX=
14369 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14374 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14375 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14376 $as_echo_n "(cached) " >&6
14378 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14382 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14385 # Check to make sure the PIC flag actually works.
14387 if test -n "$lt_prog_compiler_pic_CXX"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14389 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14390 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14391 $as_echo_n "(cached) " >&6
14393 lt_cv_prog_compiler_pic_works_CXX=no
14394 ac_outfile=conftest.$ac_objext
14395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 # The option is referenced via a variable to avoid confusing sed.
14402 lt_compile=`echo "$ac_compile" | $SED \
14403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405 -e 's:$: $lt_compiler_flag:'`
14406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14407 (eval "$lt_compile" 2>conftest.err)
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 if (exit $ac_status) && test -s "$ac_outfile"; then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings other than the usual output.
14414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_pic_works_CXX=yes
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14424 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14426 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14427 case $lt_prog_compiler_pic_CXX in
14429 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14432 lt_prog_compiler_pic_CXX=
14433 lt_prog_compiler_can_build_shared_CXX=no
14443 # Check to make sure the static flag actually works.
14445 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14448 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14449 $as_echo_n "(cached) " >&6
14451 lt_cv_prog_compiler_static_works_CXX=no
14452 save_LDFLAGS="$LDFLAGS"
14453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456 # The linker can only warn and ignore the option if not recognized
14457 # So say no if there are warnings
14458 if test -s conftest.err; then
14459 # Append any errors to the config.log.
14460 cat conftest.err 1>&5
14461 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463 if diff conftest.exp conftest.er2 >/dev/null; then
14464 lt_cv_prog_compiler_static_works_CXX=yes
14467 lt_cv_prog_compiler_static_works_CXX=yes
14471 LDFLAGS="$save_LDFLAGS"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14475 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14477 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14480 lt_prog_compiler_static_CXX=
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14488 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14489 $as_echo_n "(cached) " >&6
14491 lt_cv_prog_compiler_c_o_CXX=no
14492 $RM -r conftest 2>/dev/null
14496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14498 lt_compiler_flag="-o out/conftest2.$ac_objext"
14499 # Insert the option either (1) after the last *FLAGS variable, or
14500 # (2) before a word containing "conftest.", or (3) at the end.
14501 # Note that $ac_compile itself does not contain backslashes and begins
14502 # with a dollar sign (not a hyphen), so the echo should work correctly.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>out/conftest.err)
14510 cat out/conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14514 # The compiler can only warn and ignore the option if not recognized
14515 # So say no if there are warnings
14516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14519 lt_cv_prog_compiler_c_o_CXX=yes
14524 # SGI C++ compiler will create directory out/ii_files/ for
14525 # template instantiation
14526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14527 $RM out/* && rmdir out
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14534 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14540 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14541 $as_echo_n "(cached) " >&6
14543 lt_cv_prog_compiler_c_o_CXX=no
14544 $RM -r conftest 2>/dev/null
14548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550 lt_compiler_flag="-o out/conftest2.$ac_objext"
14551 # Insert the option either (1) after the last *FLAGS variable, or
14552 # (2) before a word containing "conftest.", or (3) at the end.
14553 # Note that $ac_compile itself does not contain backslashes and begins
14554 # with a dollar sign (not a hyphen), so the echo should work correctly.
14555 lt_compile=`echo "$ac_compile" | $SED \
14556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14558 -e 's:$: $lt_compiler_flag:'`
14559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14560 (eval "$lt_compile" 2>out/conftest.err)
14562 cat out/conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14566 # The compiler can only warn and ignore the option if not recognized
14567 # So say no if there are warnings
14568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14571 lt_cv_prog_compiler_c_o_CXX=yes
14576 # SGI C++ compiler will create directory out/ii_files/ for
14577 # template instantiation
14578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14579 $RM out/* && rmdir out
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14586 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14591 hard_links="nottested"
14592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14593 # do not overwrite the value of need_locks provided by the user
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14595 $as_echo_n "checking if we can lock with hard links... " >&6; }
14598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14600 ln conftest.a conftest.b 2>&5 || hard_links=no
14601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14603 $as_echo "$hard_links" >&6; }
14604 if test "$hard_links" = no; then
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14606 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14619 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14622 # If we're using GNU nm, then we don't want the "-C" option.
14623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14624 # Also, AIX nm treats weak defined symbols like other global defined
14625 # symbols, whereas GNU nm marks them as "W".
14626 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14627 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14629 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14633 export_symbols_cmds_CXX="$ltdll_cmds"
14635 cygwin* | mingw* | cegcc*)
14636 case $cc_basename in
14638 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14641 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14642 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14646 linux* | k*bsd*-gnu | gnu*)
14647 link_all_deplibs_CXX=no
14650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14655 $as_echo "$ld_shlibs_CXX" >&6; }
14656 test "$ld_shlibs_CXX" = no && can_build_shared=no
14658 with_gnu_ld_CXX=$with_gnu_ld
14666 # Do we need to explicitly link libc?
14668 case "x$archive_cmds_need_lc_CXX" in
14670 # Assume -lc should be added
14671 archive_cmds_need_lc_CXX=yes
14673 if test "$enable_shared" = yes && test "$GCC" = yes; then
14674 case $archive_cmds_CXX in
14676 # FIXME: we may have to deal with multi-command sequences.
14679 # Test whether the compiler implicitly links with -lc since on some
14680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14681 # to ld, don't add -lc before -lgcc.
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14683 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14684 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14685 $as_echo_n "(cached) " >&6
14688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14691 (eval $ac_compile) 2>&5
14693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14694 test $ac_status = 0; } 2>conftest.err; then
14697 libobjs=conftest.$ac_objext
14699 wl=$lt_prog_compiler_wl_CXX
14700 pic_flag=$lt_prog_compiler_pic_CXX
14706 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14707 allow_undefined_flag_CXX=
14708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14709 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; }
14714 lt_cv_archive_cmds_need_lc_CXX=no
14716 lt_cv_archive_cmds_need_lc_CXX=yes
14718 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14720 cat conftest.err 1>&5
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14726 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14727 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14796 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14798 library_names_spec=
14799 libname_spec='lib$name'
14803 postuninstall_cmds=
14807 shlibpath_overrides_runpath=unknown
14809 dynamic_linker="$host_os ld.so"
14810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14811 need_lib_prefix=unknown
14812 hardcode_into_libs=no
14814 # when you set need_version to no, make sure it does not cause -set_version
14815 # flags to be left without arguments
14816 need_version=unknown
14820 version_type=linux # correct to gnu/linux during the next big refactor
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14822 shlibpath_var=LIBPATH
14824 # AIX 3 has no versioning support, so we append a major version to the name.
14825 soname_spec='${libname}${release}${shared_ext}$major'
14829 version_type=linux # correct to gnu/linux during the next big refactor
14832 hardcode_into_libs=yes
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 supports IA64
14835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14836 shlibpath_var=LD_LIBRARY_PATH
14838 # With GCC up to 2.95.x, collect2 would create an import file
14839 # for dependence libraries. The import file would start with
14840 # the line `#! .'. This would cause the generated library to
14841 # depend on `.', always an invalid library. This was fixed in
14842 # development snapshots of GCC prior to 3.0.
14844 aix4 | aix4.[01] | aix4.[01].*)
14845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14847 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14850 can_build_shared=no
14854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14855 # soname into executable. Probably we can add versioning support to
14856 # collect2, so additional links can be useful in future.
14857 if test "$aix_use_runtimelinking" = yes; then
14858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14859 # instead of lib<name>.a to let people know that these are not
14860 # typical AIX shared libraries.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 # We preserve .a as extension for shared libraries through AIX4.2
14864 # and later when we are not doing run time linking.
14865 library_names_spec='${libname}${release}.a $libname.a'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14868 shlibpath_var=LIBPATH
14875 # Since July 2007 AmigaOS4 officially supports .so libraries.
14876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 library_names_spec='$libname.ixlibrary $libname.a'
14881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14882 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14888 library_names_spec='${libname}${shared_ext}'
14889 dynamic_linker="$host_os ld.so"
14890 shlibpath_var=LIBRARY_PATH
14894 version_type=linux # correct to gnu/linux during the next big refactor
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14902 # the default ld.so.conf also contains /usr/contrib/lib and
14903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14904 # libtool to hard-code these into programs
14907 cygwin* | mingw* | pw32* | cegcc*)
14908 version_type=windows
14913 case $GCC,$cc_basename in
14916 library_names_spec='$libname.dll.a'
14917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14918 postinstall_cmds='base_file=`basename \${file}`~
14919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14920 dldir=$destdir/`dirname \$dlpath`~
14921 test -d \$dldir || mkdir -p \$dldir~
14922 $install_prog $dir/$dlname \$dldir/$dlname~
14923 chmod a+x \$dldir/$dlname~
14924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14928 dlpath=$dir/\$dldll~
14930 shlibpath_overrides_runpath=yes
14934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14935 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14939 # MinGW DLLs use traditional 'lib' prefix
14940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943 # pw32 DLLs use 'pw' prefix rather than 'lib'
14944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947 dynamic_linker='Win32 ld.exe'
14952 libname_spec='$name'
14953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954 library_names_spec='${libname}.dll.lib'
14958 sys_lib_search_path_spec=
14961 for lt_path in $LIB
14964 # Let DOS variable expansion print the short 8.3 style file name.
14965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14969 # Convert to MSYS style.
14970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14973 # Convert to unix form, then to dos form, then back to unix form
14974 # but this time dos style (no spaces!) so that the unix form looks
14975 # like /cygdrive/c/PROGRA~1:/cygdr...
14976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14981 sys_lib_search_path_spec="$LIB"
14982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14983 # It is most probably a Windows format PATH.
14984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14988 # FIXME: find the short name or the path components, as spaces are
14989 # common. (e.g. "Program Files" -> "PROGRA~1")
14993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14994 postinstall_cmds='base_file=`basename \${file}`~
14995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14996 dldir=$destdir/`dirname \$dlpath`~
14997 test -d \$dldir || mkdir -p \$dldir~
14998 $install_prog $dir/$dlname \$dldir/$dlname'
14999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15000 dlpath=$dir/\$dldll~
15002 shlibpath_overrides_runpath=yes
15003 dynamic_linker='Win32 link.exe'
15007 # Assume MSVC wrapper
15008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15009 dynamic_linker='Win32 ld.exe'
15012 # FIXME: first we should search . and the directory the executable is in
15016 darwin* | rhapsody*)
15017 dynamic_linker="$host_os dyld"
15018 version_type=darwin
15021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15022 soname_spec='${libname}${release}${major}$shared_ext'
15023 shlibpath_overrides_runpath=yes
15024 shlibpath_var=DYLD_LIBRARY_PATH
15025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15031 version_type=linux # correct to gnu/linux during the next big refactor
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15039 freebsd* | dragonfly*)
15040 # DragonFly does not have aout. When/if they implement a new
15041 # versioning mechanism, adjust this.
15042 if test -x /usr/bin/objformat; then
15043 objformat=`/usr/bin/objformat`
15046 freebsd[23].*) objformat=aout ;;
15047 *) objformat=elf ;;
15050 version_type=freebsd-$objformat
15051 case $version_type in
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15062 shlibpath_var=LD_LIBRARY_PATH
15065 shlibpath_overrides_runpath=yes
15067 freebsd3.[01]* | freebsdelf3.[01]*)
15068 shlibpath_overrides_runpath=yes
15069 hardcode_into_libs=yes
15071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15073 shlibpath_overrides_runpath=no
15074 hardcode_into_libs=yes
15076 *) # from 4.6 on, and DragonFly
15077 shlibpath_overrides_runpath=yes
15078 hardcode_into_libs=yes
15084 version_type=linux # correct to gnu/linux during the next big refactor
15087 dynamic_linker="$host_os runtime_loader"
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LIBRARY_PATH
15091 shlibpath_overrides_runpath=yes
15092 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15093 hardcode_into_libs=yes
15096 hpux9* | hpux10* | hpux11*)
15097 # Give a soname corresponding to the major version so that dld.sl refuses to
15098 # link against other versions.
15105 hardcode_into_libs=yes
15106 dynamic_linker="$host_os dld.so"
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 if test "X$HPUX_IA64_MODE" = X32; then
15112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15120 hardcode_into_libs=yes
15121 dynamic_linker="$host_os dld.sl"
15122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15131 dynamic_linker="$host_os dld.sl"
15132 shlibpath_var=SHLIB_PATH
15133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15138 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15139 postinstall_cmds='chmod 555 $lib'
15140 # or fails outright, so override atomically:
15141 install_override_mode=555
15145 version_type=linux # correct to gnu/linux during the next big refactor
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15156 irix5* | irix6* | nonstopux*)
15158 nonstopux*) version_type=nonstopux ;;
15160 if test "$lt_cv_prog_gnu_ld" = yes; then
15161 version_type=linux # correct to gnu/linux during the next big refactor
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15171 irix5* | nonstopux*)
15172 libsuff= shlibsuff=
15175 case $LD in # libtool.m4 will add one of these switches to LD
15176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15177 libsuff= shlibsuff= libmagic=32-bit;;
15178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15179 libsuff=32 shlibsuff=N32 libmagic=N32;;
15180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15182 *) libsuff= shlibsuff= libmagic=never-match;;
15186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15187 shlibpath_overrides_runpath=no
15188 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15189 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15190 hardcode_into_libs=yes
15193 # No shared lib support for Linux oldld, aout, or coff.
15194 linux*oldld* | linux*aout* | linux*coff*)
15198 # This must be glibc/ELF.
15199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15200 version_type=linux # correct to gnu/linux during the next big refactor
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=no
15209 # Some binutils ld are patched to set DT_RUNPATH
15210 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15211 $as_echo_n "(cached) " >&6
15213 lt_cv_shlibpath_overrides_runpath=no
15214 save_LDFLAGS=$LDFLAGS
15215 save_libdir=$libdir
15216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15229 if ac_fn_cxx_try_link "$LINENO"; then :
15230 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15231 lt_cv_shlibpath_overrides_runpath=yes
15234 rm -f core conftest.err conftest.$ac_objext \
15235 conftest$ac_exeext conftest.$ac_ext
15236 LDFLAGS=$save_LDFLAGS
15237 libdir=$save_libdir
15241 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15243 # This implies no fast_install, which is unacceptable.
15244 # Some rework will be needed to allow for fast_install
15245 # before this can be enabled.
15246 hardcode_into_libs=yes
15248 # Append ld.so.conf contents to the search path
15249 if test -f /etc/ld.so.conf; then
15250 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' ' '`
15251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15254 # We used to test for /lib/ld.so.1 and disable shared libraries on
15255 # powerpc, because MkLinux only supported shared libraries with the
15256 # GNU dynamic linker. Since this was broken with cross compilers,
15257 # most powerpc-linux boxes support dynamic linking these days and
15258 # people can always --disable-shared, the test was removed, and we
15259 # assume the GNU/Linux dynamic linker is in use.
15260 dynamic_linker='GNU/Linux ld.so'
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=no
15271 hardcode_into_libs=yes
15272 dynamic_linker='NetBSD ld.elf_so'
15279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15282 dynamic_linker='NetBSD (a.out) ld.so'
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 dynamic_linker='NetBSD ld.elf_so'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 shlibpath_overrides_runpath=yes
15290 hardcode_into_libs=yes
15294 version_type=linux # correct to gnu/linux during the next big refactor
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=yes
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=no
15308 hardcode_into_libs=yes
15309 dynamic_linker='ldqnx.so'
15314 sys_lib_dlsearch_path_spec="/usr/lib"
15316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15319 *) need_version=no ;;
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15326 openbsd2.[89] | openbsd2.[89].*)
15327 shlibpath_overrides_runpath=no
15330 shlibpath_overrides_runpath=yes
15334 shlibpath_overrides_runpath=yes
15339 libname_spec='$name'
15342 library_names_spec='$libname${shared_ext} $libname.a'
15343 dynamic_linker='OS/2 ld.exe'
15344 shlibpath_var=LIBPATH
15347 osf3* | osf4* | osf5*)
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15363 version_type=linux # correct to gnu/linux during the next big refactor
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 shlibpath_overrides_runpath=yes
15370 hardcode_into_libs=yes
15371 # ldd complains unless libraries are executable
15372 postinstall_cmds='chmod +x $lib'
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes
15381 if test "$with_gnu_ld" = yes; then
15388 version_type=linux # correct to gnu/linux during the next big refactor
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 case $host_vendor in
15394 shlibpath_overrides_runpath=no
15396 runpath_var=LD_RUN_PATH
15404 shlibpath_overrides_runpath=no
15405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15411 if test -d /usr/nec ;then
15412 version_type=linux # correct to gnu/linux during the next big refactor
15413 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15414 soname_spec='$libname${shared_ext}.$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15420 version_type=freebsd-elf
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes
15427 hardcode_into_libs=yes
15428 if test "$with_gnu_ld" = yes; then
15429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15438 sys_lib_dlsearch_path_spec='/usr/lib'
15442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15443 version_type=linux # correct to gnu/linux during the next big refactor
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=no
15449 hardcode_into_libs=yes
15453 version_type=linux # correct to gnu/linux during the next big refactor
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 shlibpath_var=LD_LIBRARY_PATH
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15464 $as_echo "$dynamic_linker" >&6; }
15465 test "$dynamic_linker" = no && can_build_shared=no
15467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15468 if test "$GCC" = yes; then
15469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15472 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15473 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15475 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15517 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15518 hardcode_action_CXX=
15519 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15520 test -n "$runpath_var_CXX" ||
15521 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15523 # We can hardcode non-existent directories.
15524 if test "$hardcode_direct_CXX" != no &&
15525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15526 # have to relink, otherwise we might link with an installed library
15527 # when we should be linking with a yet-to-be-installed one
15528 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15529 test "$hardcode_minus_L_CXX" != no; then
15530 # Linking always hardcodes the temporary library directory.
15531 hardcode_action_CXX=relink
15533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15534 hardcode_action_CXX=immediate
15537 # We cannot hardcode anything, or else we can only hardcode existing
15539 hardcode_action_CXX=unsupported
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15542 $as_echo "$hardcode_action_CXX" >&6; }
15544 if test "$hardcode_action_CXX" = relink ||
15545 test "$inherit_rpath_CXX" = yes; then
15546 # Fast installation is not supported
15547 enable_fast_install=no
15548 elif test "$shlibpath_overrides_runpath" = yes ||
15549 test "$enable_shared" = no; then
15550 # Fast installation is not necessary
15551 enable_fast_install=needless
15560 fi # test -n "$compiler"
15563 CFLAGS=$lt_save_CFLAGS
15567 with_gnu_ld=$lt_save_with_gnu_ld
15568 lt_cv_path_LDCXX=$lt_cv_path_LD
15569 lt_cv_path_LD=$lt_save_path_LD
15570 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15571 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15572 fi # test "$_lt_caught_CXX_error" != yes
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15594 ac_config_commands="$ac_config_commands libtool"
15599 # Only expand once:
15609 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15610 if test -n "$ac_tool_prefix"; then
15611 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15612 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15614 $as_echo_n "checking for $ac_word... " >&6; }
15615 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15616 $as_echo_n "(cached) " >&6
15618 case $PKG_CONFIG in
15620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624 for as_dir in $PATH
15627 test -z "$as_dir" && as_dir=.
15628 for ac_exec_ext in '' $ac_executable_extensions; do
15629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15641 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15642 if test -n "$PKG_CONFIG"; then
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15644 $as_echo "$PKG_CONFIG" >&6; }
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 $as_echo "no" >&6; }
15652 if test -z "$ac_cv_path_PKG_CONFIG"; then
15653 ac_pt_PKG_CONFIG=$PKG_CONFIG
15654 # Extract the first word of "pkg-config", so it can be a program name with args.
15655 set dummy pkg-config; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15659 $as_echo_n "(cached) " >&6
15661 case $ac_pt_PKG_CONFIG in
15663 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15670 test -z "$as_dir" && as_dir=.
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15684 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15685 if test -n "$ac_pt_PKG_CONFIG"; then
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15687 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 $as_echo "no" >&6; }
15693 if test "x$ac_pt_PKG_CONFIG" = x; then
15696 case $cross_compiling:$ac_tool_warned in
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15700 ac_tool_warned=yes ;;
15702 PKG_CONFIG=$ac_pt_PKG_CONFIG
15705 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15709 if test -n "$PKG_CONFIG"; then
15710 _pkg_min_version=0.20
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15712 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15713 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715 $as_echo "yes" >&6; }
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15723 # ========================================
15724 # Specify the fontdir patch if not default
15725 # ========================================
15727 # Check whether --with-fontdir was given.
15728 if test "${with_fontdir+set}" = set; then :
15729 withval=$with_fontdir; FONTDIR="$withval"
15731 FONTDIR="fonts/conf.d"
15737 # ================================
15738 # Find CUPS internals (no pc file)
15739 # ================================
15741 # Check whether --with-cups-config was given.
15742 if test "${with_cups_config+set}" = set; then :
15743 withval=$with_cups_config; with_cups_config="$withval"
15745 with_cups_config=system
15750 if test "x$with_cups_config" != "xsystem"; then :
15752 CUPSCONFIG=$with_cups_config
15756 # Extract the first word of "cups-config", so it can be a program name with args.
15757 set dummy cups-config; ac_word=$2
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15759 $as_echo_n "checking for $ac_word... " >&6; }
15760 if ${ac_cv_path_CUPSCONFIG+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 case $CUPSCONFIG in
15765 ac_cv_path_CUPSCONFIG="$CUPSCONFIG" # Let the user override the test with a path.
15768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15772 test -z "$as_dir" && as_dir=.
15773 for ac_exec_ext in '' $ac_executable_extensions; do
15774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15775 ac_cv_path_CUPSCONFIG="$as_dir/$ac_word$ac_exec_ext"
15776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15786 CUPSCONFIG=$ac_cv_path_CUPSCONFIG
15787 if test -n "$CUPSCONFIG"; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPSCONFIG" >&5
15789 $as_echo "$CUPSCONFIG" >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15796 if test -z "$CUPSCONFIG"; then :
15798 as_fn_error $? "Required cups-config is missing. Please install CUPS developer packages." "$LINENO" 5
15803 CUPS_CFLAGS=`$CUPSCONFIG --cflags`
15804 CUPS_LIBS=`$CUPSCONFIG --image --libs`
15805 CUPS_VERSION=`$CUPSCONFIG --version`
15809 CUPS_DATADIR="`$CUPSCONFIG --datadir`"
15811 cat >>confdefs.h <<_ACEOF
15812 #define CUPS_DATADIR "$CUPS_DATADIR"
15817 CUPS_SERVERROOT="`$CUPSCONFIG --serverroot`"
15819 cat >>confdefs.h <<_ACEOF
15820 #define CUPS_SERVERROOT "$CUPS_SERVERROOT"
15825 CUPS_FONTPATH="$CUPS_DATADIR/fonts"
15827 cat >>confdefs.h <<_ACEOF
15828 #define CUPS_FONTPATH "$CUPS_FONTPATH"
15833 CUPS_SERVERBIN="`$CUPSCONFIG --serverbin`"
15835 cat >>confdefs.h <<_ACEOF
15836 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
15844 # Used to indicate true or false condition
15845 ax_compare_version=false
15847 # Convert the two version strings to be compared into a format that
15848 # allows a simple string comparison. The end result is that a version
15849 # string of the form 1.12.5-r617 will be converted to the form
15850 # 0001001200050617. In other words, each number is zero padded to four
15851 # digits, and non digits are removed.
15853 ax_compare_version_A=`echo "$CUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15854 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15855 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15856 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15860 ax_compare_version_B=`echo "1.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15861 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15862 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15863 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15867 ax_compare_version=`echo "x$ax_compare_version_A
15868 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15872 if test "$ax_compare_version" = "true" ; then
15875 $as_echo "#define CUPS_1_4 1" >>confdefs.h
15881 $as_echo "#define PDFTOPDF /**/" >>confdefs.h
15886 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15887 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15888 eval ac_define_dir="\"$"{CUPS_DATADIR}/data"\""
15889 eval ac_define_dir="\"$ac_define_dir\""
15890 BANNERTOPDF_DATADIR="$ac_define_dir"
15893 cat >>confdefs.h <<_ACEOF
15894 #define BANNERTOPDF_DATADIR "$ac_define_dir"
15897 test "$prefix_NONE" && prefix=NONE
15898 test "$exec_prefix_NONE" && exec_prefix=NONE
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15902 $as_echo_n "checking for library containing dlopen... " >&6; }
15903 if ${ac_cv_search_dlopen+:} false; then :
15904 $as_echo_n "(cached) " >&6
15906 ac_func_search_save_LIBS=$LIBS
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15910 /* Override any GCC internal prototype to avoid an error.
15911 Use char because int might match the return type of a GCC
15912 builtin and then its argument prototype would still apply. */
15925 for ac_lib in '' dl; do
15926 if test -z "$ac_lib"; then
15927 ac_res="none required"
15930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15932 if ac_fn_cxx_try_link "$LINENO"; then :
15933 ac_cv_search_dlopen=$ac_res
15935 rm -f core conftest.err conftest.$ac_objext \
15937 if ${ac_cv_search_dlopen+:} false; then :
15941 if ${ac_cv_search_dlopen+:} false; then :
15944 ac_cv_search_dlopen=no
15946 rm conftest.$ac_ext
15947 LIBS=$ac_func_search_save_LIBS
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15950 $as_echo "$ac_cv_search_dlopen" >&6; }
15951 ac_res=$ac_cv_search_dlopen
15952 if test "$ac_res" != no; then :
15953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15954 if test "$ac_cv_search_dlopen" != "none required"; then :
15956 DLOPEN_LIBS="$ac_cv_search_dlopen"
15960 as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
15966 # Transient run-time state dir of CUPS
15969 # Check whether --with-rundir was given.
15970 if test "${with_rundir+set}" = set; then :
15971 withval=$with_rundir; CUPS_STATEDIR="$withval"
15977 CUPS_STATEDIR="$CUPS_SERVERROOT"
15981 CUPS_STATEDIR="$localstatedir/run/cups"
15987 cat >>confdefs.h <<_ACEOF
15988 #define CUPS_STATEDIR "$CUPS_STATEDIR"
15993 # Domain socket of CUPS...
15994 CUPS_DEFAULT_DOMAINSOCKET=""
15996 # Check whether --with-domainsocket was given.
15997 if test "${with_domainsocket+set}" = set; then :
15998 withval=$with_domainsocket; default_domainsocket="$withval"
16000 default_domainsocket=""
16004 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
16005 if test "x$default_domainsocket" = x; then
16008 # Darwin and MaxOS X do their own thing...
16009 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cu
16013 # All others use FHS standard...
16014 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
16018 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
16022 cat >>confdefs.h <<_ACEOF
16023 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
16028 # ======================
16029 # Check system functions
16030 # ======================
16031 for ac_func in sigaction
16033 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
16034 if test "x$ac_cv_func_sigaction" = xyes; then :
16035 cat >>confdefs.h <<_ACEOF
16036 #define HAVE_SIGACTION 1
16042 for ac_func in waitpid wait3
16044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16045 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16047 cat >>confdefs.h <<_ACEOF
16048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16054 for ac_func in strtoll
16056 ac_fn_cxx_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16057 if test "x$ac_cv_func_strtoll" = xyes; then :
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_STRTOLL 1
16065 for ac_func in open_memstream
16067 ac_fn_cxx_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
16068 if test "x$ac_cv_func_open_memstream" = xyes; then :
16069 cat >>confdefs.h <<_ACEOF
16070 #define HAVE_OPEN_MEMSTREAM 1
16076 for ac_func in getline
16078 ac_fn_cxx_check_func "$LINENO" "getline" "ac_cv_func_getline"
16079 if test "x$ac_cv_func_getline" = xyes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_GETLINE 1
16085 GETLINE='bannertopdf-getline.$(OBJEXT)'
16090 for ac_func in strcasestr
16092 ac_fn_cxx_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
16093 if test "x$ac_cv_func_strcasestr" = xyes; then :
16094 cat >>confdefs.h <<_ACEOF
16095 #define HAVE_STRCASESTR 1
16099 STRCASESTR='pdftops-strcasestr.$(OBJEXT)'
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
16105 $as_echo_n "checking for library containing pow... " >&6; }
16106 if ${ac_cv_search_pow+:} false; then :
16107 $as_echo_n "(cached) " >&6
16109 ac_func_search_save_LIBS=$LIBS
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16113 /* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16128 for ac_lib in '' m; do
16129 if test -z "$ac_lib"; then
16130 ac_res="none required"
16133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16135 if ac_fn_cxx_try_link "$LINENO"; then :
16136 ac_cv_search_pow=$ac_res
16138 rm -f core conftest.err conftest.$ac_objext \
16140 if ${ac_cv_search_pow+:} false; then :
16144 if ${ac_cv_search_pow+:} false; then :
16147 ac_cv_search_pow=no
16149 rm conftest.$ac_ext
16150 LIBS=$ac_func_search_save_LIBS
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
16153 $as_echo "$ac_cv_search_pow" >&6; }
16154 ac_res=$ac_cv_search_pow
16155 if test "$ac_res" != no; then :
16156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16161 # ========================
16162 # Check for system headers
16163 # ========================
16165 for ac_header in stdlib.h
16167 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16168 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_STDLIB_H 1
16177 for ac_header in sys/stat.h
16179 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
16180 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_SYS_STAT_H 1
16189 for ac_header in sys/types.h
16191 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16192 if test "x$ac_cv_header_sys_types_h" = xyes; then :
16193 cat >>confdefs.h <<_ACEOF
16194 #define HAVE_SYS_TYPES_H 1
16201 for ac_header in unistd.h
16203 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16204 if test "x$ac_cv_header_unistd_h" = xyes; then :
16205 cat >>confdefs.h <<_ACEOF
16206 #define HAVE_UNISTD_H 1
16213 for ac_header in zlib.h
16215 ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16216 if test "x$ac_cv_header_zlib_h" = xyes; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_ZLIB_H 1
16225 for ac_header in endian.h
16227 ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16228 if test "x$ac_cv_header_endian_h" = xyes; then :
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_ENDIAN_H 1
16237 for ac_header in dirent.h
16239 ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
16240 if test "x$ac_cv_header_dirent_h" = xyes; then :
16241 cat >>confdefs.h <<_ACEOF
16242 #define HAVE_DIRENT_H 1
16249 for ac_header in sys/ioctl.h
16251 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16252 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16253 cat >>confdefs.h <<_ACEOF
16254 #define HAVE_SYS_IOCTL_H 1
16265 # Check whether --enable-imagefilters was given.
16266 if test "${enable_imagefilters+set}" = set; then :
16267 enableval=$enable_imagefilters; enable_imagefilters="$enableval"
16269 enable_imagefilters=yes
16273 if test "x$enable_imagefilters" != "xno"; then
16274 ENABLE_IMAGEFILTERS_TRUE=
16275 ENABLE_IMAGEFILTERS_FALSE='#'
16277 ENABLE_IMAGEFILTERS_TRUE='#'
16278 ENABLE_IMAGEFILTERS_FALSE=
16284 # Check whether --with-jpeg was given.
16285 if test "${with_jpeg+set}" = set; then :
16286 withval=$with_jpeg; with_jpeg="$withval"
16292 if test x"$with_jpeg" != "xno"; then :
16295 $as_echo "#define HAVE_LIBJPEG /**/" >>confdefs.h
16297 for ac_header in jpeglib.h
16299 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
16300 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
16301 cat >>confdefs.h <<_ACEOF
16302 #define HAVE_JPEGLIB_H 1
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_destroy_decompress" >&5
16310 $as_echo_n "checking for library containing jpeg_destroy_decompress... " >&6; }
16311 if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16312 $as_echo_n "(cached) " >&6
16314 ac_func_search_save_LIBS=$LIBS
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16318 /* Override any GCC internal prototype to avoid an error.
16319 Use char because int might match the return type of a GCC
16320 builtin and then its argument prototype would still apply. */
16324 char jpeg_destroy_decompress ();
16328 return jpeg_destroy_decompress ();
16333 for ac_lib in '' jpeg; do
16334 if test -z "$ac_lib"; then
16335 ac_res="none required"
16338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16340 if ac_fn_cxx_try_link "$LINENO"; then :
16341 ac_cv_search_jpeg_destroy_decompress=$ac_res
16343 rm -f core conftest.err conftest.$ac_objext \
16345 if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16349 if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16352 ac_cv_search_jpeg_destroy_decompress=no
16354 rm conftest.$ac_ext
16355 LIBS=$ac_func_search_save_LIBS
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_destroy_decompress" >&5
16358 $as_echo "$ac_cv_search_jpeg_destroy_decompress" >&6; }
16359 ac_res=$ac_cv_search_jpeg_destroy_decompress
16360 if test "$ac_res" != no; then :
16361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16362 LIBJPEG_LIBS="-ljpeg"
16364 as_fn_error $? "jpeg libraries not found." "$LINENO" 5
16373 # Check whether --with-png was given.
16374 if test "${with_png+set}" = set; then :
16375 withval=$with_png; with_png="$withval"
16381 if test x"$with_png" != "xno"; then :
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
16386 $as_echo_n "checking for LIBPNG... " >&6; }
16388 if test -n "$LIBPNG_CFLAGS"; then
16389 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
16390 elif test -n "$PKG_CONFIG"; then
16391 if test -n "$PKG_CONFIG" && \
16392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
16393 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
16395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396 test $ac_status = 0; }; then
16397 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
16398 test "x$?" != "x0" && pkg_failed=yes
16405 if test -n "$LIBPNG_LIBS"; then
16406 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
16407 elif test -n "$PKG_CONFIG"; then
16408 if test -n "$PKG_CONFIG" && \
16409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
16410 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
16412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413 test $ac_status = 0; }; then
16414 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
16415 test "x$?" != "x0" && pkg_failed=yes
16425 if test $pkg_failed = yes; then
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16430 _pkg_short_errors_supported=yes
16432 _pkg_short_errors_supported=no
16434 if test $_pkg_short_errors_supported = yes; then
16435 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
16437 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
16439 # Put the nasty error message in config.log where it belongs
16440 echo "$LIBPNG_PKG_ERRORS" >&5
16442 as_fn_error $? "Package requirements (libpng) were not met:
16446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16447 installed software in a non-standard prefix.
16449 Alternatively, you may set the environment variables LIBPNG_CFLAGS
16450 and LIBPNG_LIBS to avoid the need to call pkg-config.
16451 See the pkg-config man page for more details." "$LINENO" 5
16452 elif test $pkg_failed = untried; then
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16457 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16458 is in your PATH or set the PKG_CONFIG environment variable to the full
16459 path to pkg-config.
16461 Alternatively, you may set the environment variables LIBPNG_CFLAGS
16462 and LIBPNG_LIBS to avoid the need to call pkg-config.
16463 See the pkg-config man page for more details.
16465 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16466 See \`config.log' for more details" "$LINENO" 5; }
16468 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
16469 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16471 $as_echo "yes" >&6; }
16475 $as_echo "#define HAVE_LIBPNG /**/" >>confdefs.h
16481 # Check whether --with-tiff was given.
16482 if test "${with_tiff+set}" = set; then :
16483 withval=$with_tiff; with_tiff="$withval"
16489 if test x"$with_tiff" != "xno"; then :
16492 $as_echo "#define HAVE_LIBTIFF /**/" >>confdefs.h
16494 for ac_header in tiff.h
16496 ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16497 if test "x$ac_cv_header_tiff_h" = xyes; then :
16498 cat >>confdefs.h <<_ACEOF
16499 #define HAVE_TIFF_H 1
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TIFFReadScanline" >&5
16507 $as_echo_n "checking for library containing TIFFReadScanline... " >&6; }
16508 if ${ac_cv_search_TIFFReadScanline+:} false; then :
16509 $as_echo_n "(cached) " >&6
16511 ac_func_search_save_LIBS=$LIBS
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16515 /* Override any GCC internal prototype to avoid an error.
16516 Use char because int might match the return type of a GCC
16517 builtin and then its argument prototype would still apply. */
16521 char TIFFReadScanline ();
16525 return TIFFReadScanline ();
16530 for ac_lib in '' tiff; do
16531 if test -z "$ac_lib"; then
16532 ac_res="none required"
16535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16537 if ac_fn_cxx_try_link "$LINENO"; then :
16538 ac_cv_search_TIFFReadScanline=$ac_res
16540 rm -f core conftest.err conftest.$ac_objext \
16542 if ${ac_cv_search_TIFFReadScanline+:} false; then :
16546 if ${ac_cv_search_TIFFReadScanline+:} false; then :
16549 ac_cv_search_TIFFReadScanline=no
16551 rm conftest.$ac_ext
16552 LIBS=$ac_func_search_save_LIBS
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TIFFReadScanline" >&5
16555 $as_echo "$ac_cv_search_TIFFReadScanline" >&6; }
16556 ac_res=$ac_cv_search_TIFFReadScanline
16557 if test "$ac_res" != no; then :
16558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16559 LIBJPEG_LIBS="-ltiff"
16561 as_fn_error $? "tiff libraries not found." "$LINENO" 5
16569 # ==================================
16570 # Check for modules needed by utils/
16571 # ==================================
16573 # Extract the first word of "pkg-config", so it can be a program name with args.
16574 set dummy pkg-config; ac_word=$2
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16576 $as_echo_n "checking for $ac_word... " >&6; }
16577 if ${ac_cv_path_PKGCONFIG+:} false; then :
16578 $as_echo_n "(cached) " >&6
16582 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
16585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16589 test -z "$as_dir" && as_dir=.
16590 for ac_exec_ext in '' $ac_executable_extensions; do
16591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16592 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
16593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16603 PKGCONFIG=$ac_cv_path_PKGCONFIG
16604 if test -n "$PKGCONFIG"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
16606 $as_echo "$PKGCONFIG" >&6; }
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16616 AVAHI_GLIB_CFLAGS=""
16619 # Check whether --enable-avahi was given.
16620 if test "${enable_avahi+set}" = set; then :
16621 enableval=$enable_avahi; enable_avahi="$enableval"
16627 if test "x$enable_avahi" != "xno"; then
16629 ENABLE_AVAHI_FALSE='#'
16631 ENABLE_AVAHI_TRUE='#'
16632 ENABLE_AVAHI_FALSE=
16637 # Check whether --with-avahi-libs was given.
16638 if test "${with_avahi_libs+set}" = set; then :
16639 withval=$with_avahi_libs; AVAHI_LIBS="-L$withval $AVAHI_LIBS"
16643 # Check whether --with-avahi-includes was given.
16644 if test "${with_avahi_includes+set}" = set; then :
16645 withval=$with_avahi_includes; AVAHI_CFLAGS="-I$withval $AVAHI_CFLAGS"
16649 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
16651 $as_echo_n "checking for Avahi... " >&6; }
16652 if $PKGCONFIG --exists avahi-client; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 $as_echo "yes" >&6; }
16655 AVAHI_CFLAGS="$AVAHI_CFLAGS `$PKGCONFIG --cflags avahi-client`"
16656 AVAHI_LIBS="$AVAHI_LIBS `$PKGCONFIG --libs avahi-client`"
16658 $as_echo "#define HAVE_AVAHI /**/" >>confdefs.h
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16662 $as_echo "no" >&6; }
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
16673 $as_echo_n "checking for GLIB... " >&6; }
16675 if test -n "$GLIB_CFLAGS"; then
16676 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16677 elif test -n "$PKG_CONFIG"; then
16678 if test -n "$PKG_CONFIG" && \
16679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
16680 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; then
16684 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30.2" 2>/dev/null`
16685 test "x$?" != "x0" && pkg_failed=yes
16692 if test -n "$GLIB_LIBS"; then
16693 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16694 elif test -n "$PKG_CONFIG"; then
16695 if test -n "$PKG_CONFIG" && \
16696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
16697 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
16699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16700 test $ac_status = 0; }; then
16701 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30.2" 2>/dev/null`
16702 test "x$?" != "x0" && pkg_failed=yes
16712 if test $pkg_failed = yes; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 $as_echo "no" >&6; }
16716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16717 _pkg_short_errors_supported=yes
16719 _pkg_short_errors_supported=no
16721 if test $_pkg_short_errors_supported = yes; then
16722 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
16724 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
16726 # Put the nasty error message in config.log where it belongs
16727 echo "$GLIB_PKG_ERRORS" >&5
16729 as_fn_error $? "Package requirements (glib-2.0 >= 2.30.2) were not met:
16733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16734 installed software in a non-standard prefix.
16736 Alternatively, you may set the environment variables GLIB_CFLAGS
16737 and GLIB_LIBS to avoid the need to call pkg-config.
16738 See the pkg-config man page for more details." "$LINENO" 5
16739 elif test $pkg_failed = untried; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16744 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16745 is in your PATH or set the PKG_CONFIG environment variable to the full
16746 path to pkg-config.
16748 Alternatively, you may set the environment variables GLIB_CFLAGS
16749 and GLIB_LIBS to avoid the need to call pkg-config.
16750 See the pkg-config man page for more details.
16752 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16753 See \`config.log' for more details" "$LINENO" 5; }
16755 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16756 GLIB_LIBS=$pkg_cv_GLIB_LIBS
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16764 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI_GLIB" >&5
16768 $as_echo_n "checking for AVAHI_GLIB... " >&6; }
16770 if test -n "$AVAHI_GLIB_CFLAGS"; then
16771 pkg_cv_AVAHI_GLIB_CFLAGS="$AVAHI_GLIB_CFLAGS"
16772 elif test -n "$PKG_CONFIG"; then
16773 if test -n "$PKG_CONFIG" && \
16774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
16775 ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
16777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16778 test $ac_status = 0; }; then
16779 pkg_cv_AVAHI_GLIB_CFLAGS=`$PKG_CONFIG --cflags "avahi-glib" 2>/dev/null`
16780 test "x$?" != "x0" && pkg_failed=yes
16787 if test -n "$AVAHI_GLIB_LIBS"; then
16788 pkg_cv_AVAHI_GLIB_LIBS="$AVAHI_GLIB_LIBS"
16789 elif test -n "$PKG_CONFIG"; then
16790 if test -n "$PKG_CONFIG" && \
16791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
16792 ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
16794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16795 test $ac_status = 0; }; then
16796 pkg_cv_AVAHI_GLIB_LIBS=`$PKG_CONFIG --libs "avahi-glib" 2>/dev/null`
16797 test "x$?" != "x0" && pkg_failed=yes
16807 if test $pkg_failed = yes; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809 $as_echo "no" >&6; }
16811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16812 _pkg_short_errors_supported=yes
16814 _pkg_short_errors_supported=no
16816 if test $_pkg_short_errors_supported = yes; then
16817 AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-glib" 2>&1`
16819 AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-glib" 2>&1`
16821 # Put the nasty error message in config.log where it belongs
16822 echo "$AVAHI_GLIB_PKG_ERRORS" >&5
16824 as_fn_error $? "Package requirements (avahi-glib) were not met:
16826 $AVAHI_GLIB_PKG_ERRORS
16828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16829 installed software in a non-standard prefix.
16831 Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
16832 and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
16833 See the pkg-config man page for more details." "$LINENO" 5
16834 elif test $pkg_failed = untried; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16840 is in your PATH or set the PKG_CONFIG environment variable to the full
16841 path to pkg-config.
16843 Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
16844 and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
16845 See the pkg-config man page for more details.
16847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16848 See \`config.log' for more details" "$LINENO" 5; }
16850 AVAHI_GLIB_CFLAGS=$pkg_cv_AVAHI_GLIB_CFLAGS
16851 AVAHI_GLIB_LIBS=$pkg_cv_AVAHI_GLIB_LIBS
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16862 # Check whether --with-browseremoteprotocols was given.
16863 if test "${with_browseremoteprotocols+set}" = set; then :
16864 withval=$with_browseremoteprotocols; with_browseremoteprotocols="$withval"
16866 with_browseremoteprotocols="dnssd cups"
16870 BROWSEREMOTEPROTOCOLS="$with_browseremoteprotocols"
16874 # Check whether --with-rcdir was given.
16875 if test "${with_rcdir+set}" = set; then :
16876 withval=$with_rcdir; rcdir="$withval"
16882 # Check whether --with-rclevels was given.
16883 if test "${with_rclevels+set}" = set; then :
16884 withval=$with_rclevels; rclevels="$withval"
16890 # Check whether --with-rcstart was given.
16891 if test "${with_rcstart+set}" = set; then :
16892 withval=$with_rcstart; rcstart="$withval"
16898 # Check whether --with-rcstop was given.
16899 if test "${with_rcstop+set}" = set; then :
16900 withval=$with_rcstop; rcstop="$withval"
16908 RCLEVELS="$rclevels"
16912 if test x$rcdir = x; then
16914 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
16915 # FreeBSD and OpenBSD
16918 Linux | GNU | GNU/k*BSD*)
16919 # Linux/HURD seems to choose an init.d directory at random...
16920 if test -d /sbin/init.d; then
16922 INITDIR="/sbin/init.d"
16924 if test -d /etc/init.d; then
16929 INITDIR="/etc/rc.d"
16938 INITDDIR="/etc/rc.d"
16946 elif test "x$rcdir" != xno; then
16947 if test "x$rclevels" = x; then
16954 if test "x$INITDIR" != "x"; then
16963 if test "x${INITDIR}" != "x" -a "x${INITDDIR}" = "x"; then
16964 INITDDIR="${INITDIR}/init.d"
16973 # ======================================
16974 # Check for various pdf required modules
16975 # ======================================
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
16979 $as_echo_n "checking for LCMS... " >&6; }
16981 if test -n "$LCMS_CFLAGS"; then
16982 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
16983 elif test -n "$PKG_CONFIG"; then
16984 if test -n "$PKG_CONFIG" && \
16985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
16986 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
16988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16989 test $ac_status = 0; }; then
16990 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
16991 test "x$?" != "x0" && pkg_failed=yes
16998 if test -n "$LCMS_LIBS"; then
16999 pkg_cv_LCMS_LIBS="$LCMS_LIBS"
17000 elif test -n "$PKG_CONFIG"; then
17001 if test -n "$PKG_CONFIG" && \
17002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
17003 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
17005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17006 test $ac_status = 0; }; then
17007 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
17008 test "x$?" != "x0" && pkg_failed=yes
17018 if test $pkg_failed = yes; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17023 _pkg_short_errors_supported=yes
17025 _pkg_short_errors_supported=no
17027 if test $_pkg_short_errors_supported = yes; then
17028 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
17030 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
17032 # Put the nasty error message in config.log where it belongs
17033 echo "$LCMS_PKG_ERRORS" >&5
17036 elif test $pkg_failed = untried; then
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 $as_echo "no" >&6; }
17041 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
17042 LCMS_LIBS=$pkg_cv_LCMS_LIBS
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044 $as_echo "yes" >&6; }
17047 if test x"$lcms2" = "xno"; then :
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
17052 $as_echo_n "checking for LCMS... " >&6; }
17054 if test -n "$LCMS_CFLAGS"; then
17055 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
17056 elif test -n "$PKG_CONFIG"; then
17057 if test -n "$PKG_CONFIG" && \
17058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
17059 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
17061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17062 test $ac_status = 0; }; then
17063 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
17064 test "x$?" != "x0" && pkg_failed=yes
17071 if test -n "$LCMS_LIBS"; then
17072 pkg_cv_LCMS_LIBS="$LCMS_LIBS"
17073 elif test -n "$PKG_CONFIG"; then
17074 if test -n "$PKG_CONFIG" && \
17075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
17076 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
17078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17079 test $ac_status = 0; }; then
17080 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
17081 test "x$?" != "x0" && pkg_failed=yes
17091 if test $pkg_failed = yes; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17096 _pkg_short_errors_supported=yes
17098 _pkg_short_errors_supported=no
17100 if test $_pkg_short_errors_supported = yes; then
17101 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms" 2>&1`
17103 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms" 2>&1`
17105 # Put the nasty error message in config.log where it belongs
17106 echo "$LCMS_PKG_ERRORS" >&5
17108 as_fn_error $? "Package requirements (lcms) were not met:
17112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17113 installed software in a non-standard prefix.
17115 Alternatively, you may set the environment variables LCMS_CFLAGS
17116 and LCMS_LIBS to avoid the need to call pkg-config.
17117 See the pkg-config man page for more details." "$LINENO" 5
17118 elif test $pkg_failed = untried; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17123 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17124 is in your PATH or set the PKG_CONFIG environment variable to the full
17125 path to pkg-config.
17127 Alternatively, you may set the environment variables LCMS_CFLAGS
17128 and LCMS_LIBS to avoid the need to call pkg-config.
17129 See the pkg-config man page for more details.
17131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17132 See \`config.log' for more details" "$LINENO" 5; }
17134 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
17135 LCMS_LIBS=$pkg_cv_LCMS_LIBS
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17137 $as_echo "yes" >&6; }
17141 $as_echo "#define USE_LCMS1 1" >>confdefs.h
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17148 $as_echo_n "checking for FREETYPE... " >&6; }
17150 if test -n "$FREETYPE_CFLAGS"; then
17151 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17152 elif test -n "$PKG_CONFIG"; then
17153 if test -n "$PKG_CONFIG" && \
17154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17155 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158 test $ac_status = 0; }; then
17159 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
17160 test "x$?" != "x0" && pkg_failed=yes
17167 if test -n "$FREETYPE_LIBS"; then
17168 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17169 elif test -n "$PKG_CONFIG"; then
17170 if test -n "$PKG_CONFIG" && \
17171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17172 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }; then
17176 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
17177 test "x$?" != "x0" && pkg_failed=yes
17187 if test $pkg_failed = yes; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17192 _pkg_short_errors_supported=yes
17194 _pkg_short_errors_supported=no
17196 if test $_pkg_short_errors_supported = yes; then
17197 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
17199 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
17201 # Put the nasty error message in config.log where it belongs
17202 echo "$FREETYPE_PKG_ERRORS" >&5
17204 as_fn_error $? "Package requirements (freetype2) were not met:
17206 $FREETYPE_PKG_ERRORS
17208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17209 installed software in a non-standard prefix.
17211 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17212 and FREETYPE_LIBS to avoid the need to call pkg-config.
17213 See the pkg-config man page for more details." "$LINENO" 5
17214 elif test $pkg_failed = untried; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 $as_echo "no" >&6; }
17217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17219 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17220 is in your PATH or set the PKG_CONFIG environment variable to the full
17221 path to pkg-config.
17223 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17224 and FREETYPE_LIBS to avoid the need to call pkg-config.
17225 See the pkg-config man page for more details.
17227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17228 See \`config.log' for more details" "$LINENO" 5; }
17230 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17231 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17233 $as_echo "yes" >&6; }
17235 $as_echo "#define HAVE_FREETYPE_H 1" >>confdefs.h
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17241 $as_echo_n "checking for FONTCONFIG... " >&6; }
17243 if test -n "$FONTCONFIG_CFLAGS"; then
17244 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17245 elif test -n "$PKG_CONFIG"; then
17246 if test -n "$PKG_CONFIG" && \
17247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
17248 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
17250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251 test $ac_status = 0; }; then
17252 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.0.0" 2>/dev/null`
17253 test "x$?" != "x0" && pkg_failed=yes
17260 if test -n "$FONTCONFIG_LIBS"; then
17261 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17262 elif test -n "$PKG_CONFIG"; then
17263 if test -n "$PKG_CONFIG" && \
17264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
17265 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
17267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17268 test $ac_status = 0; }; then
17269 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.0.0" 2>/dev/null`
17270 test "x$?" != "x0" && pkg_failed=yes
17280 if test $pkg_failed = yes; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17285 _pkg_short_errors_supported=yes
17287 _pkg_short_errors_supported=no
17289 if test $_pkg_short_errors_supported = yes; then
17290 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
17292 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
17294 # Put the nasty error message in config.log where it belongs
17295 echo "$FONTCONFIG_PKG_ERRORS" >&5
17297 as_fn_error $? "Package requirements (fontconfig >= 2.0.0) were not met:
17299 $FONTCONFIG_PKG_ERRORS
17301 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17302 installed software in a non-standard prefix.
17304 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17305 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17306 See the pkg-config man page for more details." "$LINENO" 5
17307 elif test $pkg_failed = untried; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309 $as_echo "no" >&6; }
17310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17312 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17313 is in your PATH or set the PKG_CONFIG environment variable to the full
17314 path to pkg-config.
17316 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17317 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17318 See the pkg-config man page for more details.
17320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17321 See \`config.log' for more details" "$LINENO" 5; }
17323 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
17324 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17326 $as_echo "yes" >&6; }
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IJS" >&5
17332 $as_echo_n "checking for IJS... " >&6; }
17334 if test -n "$IJS_CFLAGS"; then
17335 pkg_cv_IJS_CFLAGS="$IJS_CFLAGS"
17336 elif test -n "$PKG_CONFIG"; then
17337 if test -n "$PKG_CONFIG" && \
17338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ijs\""; } >&5
17339 ($PKG_CONFIG --exists --print-errors "ijs") 2>&5
17341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17342 test $ac_status = 0; }; then
17343 pkg_cv_IJS_CFLAGS=`$PKG_CONFIG --cflags "ijs" 2>/dev/null`
17344 test "x$?" != "x0" && pkg_failed=yes
17351 if test -n "$IJS_LIBS"; then
17352 pkg_cv_IJS_LIBS="$IJS_LIBS"
17353 elif test -n "$PKG_CONFIG"; then
17354 if test -n "$PKG_CONFIG" && \
17355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ijs\""; } >&5
17356 ($PKG_CONFIG --exists --print-errors "ijs") 2>&5
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; }; then
17360 pkg_cv_IJS_LIBS=`$PKG_CONFIG --libs "ijs" 2>/dev/null`
17361 test "x$?" != "x0" && pkg_failed=yes
17371 if test $pkg_failed = yes; then
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373 $as_echo "no" >&6; }
17375 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17376 _pkg_short_errors_supported=yes
17378 _pkg_short_errors_supported=no
17380 if test $_pkg_short_errors_supported = yes; then
17381 IJS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ijs" 2>&1`
17383 IJS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ijs" 2>&1`
17385 # Put the nasty error message in config.log where it belongs
17386 echo "$IJS_PKG_ERRORS" >&5
17388 as_fn_error $? "Package requirements (ijs) were not met:
17392 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17393 installed software in a non-standard prefix.
17395 Alternatively, you may set the environment variables IJS_CFLAGS
17396 and IJS_LIBS to avoid the need to call pkg-config.
17397 See the pkg-config man page for more details." "$LINENO" 5
17398 elif test $pkg_failed = untried; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17403 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17404 is in your PATH or set the PKG_CONFIG environment variable to the full
17405 path to pkg-config.
17407 Alternatively, you may set the environment variables IJS_CFLAGS
17408 and IJS_LIBS to avoid the need to call pkg-config.
17409 See the pkg-config man page for more details.
17411 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17412 See \`config.log' for more details" "$LINENO" 5; }
17414 IJS_CFLAGS=$pkg_cv_IJS_CFLAGS
17415 IJS_LIBS=$pkg_cv_IJS_LIBS
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17417 $as_echo "yes" >&6; }
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
17423 $as_echo_n "checking for POPPLER... " >&6; }
17425 if test -n "$POPPLER_CFLAGS"; then
17426 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
17427 elif test -n "$PKG_CONFIG"; then
17428 if test -n "$PKG_CONFIG" && \
17429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.18\""; } >&5
17430 ($PKG_CONFIG --exists --print-errors "poppler >= 0.18") 2>&5
17432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433 test $ac_status = 0; }; then
17434 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.18" 2>/dev/null`
17435 test "x$?" != "x0" && pkg_failed=yes
17442 if test -n "$POPPLER_LIBS"; then
17443 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
17444 elif test -n "$PKG_CONFIG"; then
17445 if test -n "$PKG_CONFIG" && \
17446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.18\""; } >&5
17447 ($PKG_CONFIG --exists --print-errors "poppler >= 0.18") 2>&5
17449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17450 test $ac_status = 0; }; then
17451 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.18" 2>/dev/null`
17452 test "x$?" != "x0" && pkg_failed=yes
17462 if test $pkg_failed = yes; then
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17464 $as_echo "no" >&6; }
17466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17467 _pkg_short_errors_supported=yes
17469 _pkg_short_errors_supported=no
17471 if test $_pkg_short_errors_supported = yes; then
17472 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler >= 0.18" 2>&1`
17474 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler >= 0.18" 2>&1`
17476 # Put the nasty error message in config.log where it belongs
17477 echo "$POPPLER_PKG_ERRORS" >&5
17479 as_fn_error $? "Package requirements (poppler >= 0.18) were not met:
17481 $POPPLER_PKG_ERRORS
17483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17484 installed software in a non-standard prefix.
17486 Alternatively, you may set the environment variables POPPLER_CFLAGS
17487 and POPPLER_LIBS to avoid the need to call pkg-config.
17488 See the pkg-config man page for more details." "$LINENO" 5
17489 elif test $pkg_failed = untried; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17494 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17495 is in your PATH or set the PKG_CONFIG environment variable to the full
17496 path to pkg-config.
17498 Alternatively, you may set the environment variables POPPLER_CFLAGS
17499 and POPPLER_LIBS to avoid the need to call pkg-config.
17500 See the pkg-config man page for more details.
17502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17503 See \`config.log' for more details" "$LINENO" 5; }
17505 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
17506 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17508 $as_echo "yes" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
17514 $as_echo_n "checking for ZLIB... " >&6; }
17516 if test -n "$ZLIB_CFLAGS"; then
17517 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
17518 elif test -n "$PKG_CONFIG"; then
17519 if test -n "$PKG_CONFIG" && \
17520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
17521 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
17523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17524 test $ac_status = 0; }; then
17525 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
17526 test "x$?" != "x0" && pkg_failed=yes
17533 if test -n "$ZLIB_LIBS"; then
17534 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
17535 elif test -n "$PKG_CONFIG"; then
17536 if test -n "$PKG_CONFIG" && \
17537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
17538 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
17540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17541 test $ac_status = 0; }; then
17542 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
17543 test "x$?" != "x0" && pkg_failed=yes
17553 if test $pkg_failed = yes; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555 $as_echo "no" >&6; }
17557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17558 _pkg_short_errors_supported=yes
17560 _pkg_short_errors_supported=no
17562 if test $_pkg_short_errors_supported = yes; then
17563 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
17565 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
17567 # Put the nasty error message in config.log where it belongs
17568 echo "$ZLIB_PKG_ERRORS" >&5
17570 as_fn_error $? "Package requirements (zlib) were not met:
17574 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17575 installed software in a non-standard prefix.
17577 Alternatively, you may set the environment variables ZLIB_CFLAGS
17578 and ZLIB_LIBS to avoid the need to call pkg-config.
17579 See the pkg-config man page for more details." "$LINENO" 5
17580 elif test $pkg_failed = untried; then
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582 $as_echo "no" >&6; }
17583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17586 is in your PATH or set the PKG_CONFIG environment variable to the full
17587 path to pkg-config.
17589 Alternatively, you may set the environment variables ZLIB_CFLAGS
17590 and ZLIB_LIBS to avoid the need to call pkg-config.
17591 See the pkg-config man page for more details.
17593 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17594 See \`config.log' for more details" "$LINENO" 5; }
17596 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
17597 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17599 $as_echo "yes" >&6; }
17603 $as_echo "#define HAVE_LIBZ /**/" >>confdefs.h
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQPDF" >&5
17608 $as_echo_n "checking for LIBQPDF... " >&6; }
17610 if test -n "$LIBQPDF_CFLAGS"; then
17611 pkg_cv_LIBQPDF_CFLAGS="$LIBQPDF_CFLAGS"
17612 elif test -n "$PKG_CONFIG"; then
17613 if test -n "$PKG_CONFIG" && \
17614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0.2\""; } >&5
17615 ($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0.2") 2>&5
17617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17618 test $ac_status = 0; }; then
17619 pkg_cv_LIBQPDF_CFLAGS=`$PKG_CONFIG --cflags "libqpdf >= 3.0.2" 2>/dev/null`
17620 test "x$?" != "x0" && pkg_failed=yes
17627 if test -n "$LIBQPDF_LIBS"; then
17628 pkg_cv_LIBQPDF_LIBS="$LIBQPDF_LIBS"
17629 elif test -n "$PKG_CONFIG"; then
17630 if test -n "$PKG_CONFIG" && \
17631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0.2\""; } >&5
17632 ($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0.2") 2>&5
17634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17635 test $ac_status = 0; }; then
17636 pkg_cv_LIBQPDF_LIBS=`$PKG_CONFIG --libs "libqpdf >= 3.0.2" 2>/dev/null`
17637 test "x$?" != "x0" && pkg_failed=yes
17647 if test $pkg_failed = yes; then
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17649 $as_echo "no" >&6; }
17651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17652 _pkg_short_errors_supported=yes
17654 _pkg_short_errors_supported=no
17656 if test $_pkg_short_errors_supported = yes; then
17657 LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqpdf >= 3.0.2" 2>&1`
17659 LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqpdf >= 3.0.2" 2>&1`
17661 # Put the nasty error message in config.log where it belongs
17662 echo "$LIBQPDF_PKG_ERRORS" >&5
17664 as_fn_error $? "Package requirements (libqpdf >= 3.0.2) were not met:
17666 $LIBQPDF_PKG_ERRORS
17668 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17669 installed software in a non-standard prefix.
17671 Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17672 and LIBQPDF_LIBS to avoid the need to call pkg-config.
17673 See the pkg-config man page for more details." "$LINENO" 5
17674 elif test $pkg_failed = untried; then
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676 $as_echo "no" >&6; }
17677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17679 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17680 is in your PATH or set the PKG_CONFIG environment variable to the full
17681 path to pkg-config.
17683 Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17684 and LIBQPDF_LIBS to avoid the need to call pkg-config.
17685 See the pkg-config man page for more details.
17687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17688 See \`config.log' for more details" "$LINENO" 5; }
17690 LIBQPDF_CFLAGS=$pkg_cv_LIBQPDF_CFLAGS
17691 LIBQPDF_LIBS=$pkg_cv_LIBQPDF_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693 $as_echo "yes" >&6; }
17700 ac_fn_cxx_check_header_mongrel "$LINENO" "poppler/cpp/poppler-version.h" "ac_cv_header_poppler_cpp_poppler_version_h" "$ac_includes_default"
17701 if test "x$ac_cv_header_poppler_cpp_poppler_version_h" = xyes; then :
17703 $as_echo "#define HAVE_CPP_POPPLER_VERSION_H /**/" >>confdefs.h
17709 # ===================================
17710 # Check for large files and long long
17711 # ===================================
17712 # Check whether --enable-largefile was given.
17713 if test "${enable_largefile+set}" = set; then :
17714 enableval=$enable_largefile;
17717 if test "$enable_largefile" != no; then
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17720 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17721 if ${ac_cv_sys_largefile_CC+:} false; then :
17722 $as_echo_n "(cached) " >&6
17724 ac_cv_sys_largefile_CC=no
17725 if test "$GCC" != yes; then
17728 # IRIX 6.2 and later do not support large files by default,
17729 # so use the C compiler's -n32 option if that helps.
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17732 #include <sys/types.h>
17733 /* Check that off_t can represent 2**63 - 1 correctly.
17734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17735 since some C++ compilers masquerading as C compilers
17736 incorrectly reject 9223372036854775807. */
17737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17739 && LARGE_OFF_T % 2147483647 == 1)
17749 if ac_fn_cxx_try_compile "$LINENO"; then :
17752 rm -f core conftest.err conftest.$ac_objext
17754 if ac_fn_cxx_try_compile "$LINENO"; then :
17755 ac_cv_sys_largefile_CC=' -n32'; break
17757 rm -f core conftest.err conftest.$ac_objext
17761 rm -f conftest.$ac_ext
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17765 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17766 if test "$ac_cv_sys_largefile_CC" != no; then
17767 CC=$CC$ac_cv_sys_largefile_CC
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17771 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17772 if ${ac_cv_sys_file_offset_bits+:} false; then :
17773 $as_echo_n "(cached) " >&6
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17778 #include <sys/types.h>
17779 /* Check that off_t can represent 2**63 - 1 correctly.
17780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17781 since some C++ compilers masquerading as C compilers
17782 incorrectly reject 9223372036854775807. */
17783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17785 && LARGE_OFF_T % 2147483647 == 1)
17795 if ac_fn_cxx_try_compile "$LINENO"; then :
17796 ac_cv_sys_file_offset_bits=no; break
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801 #define _FILE_OFFSET_BITS 64
17802 #include <sys/types.h>
17803 /* Check that off_t can represent 2**63 - 1 correctly.
17804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17805 since some C++ compilers masquerading as C compilers
17806 incorrectly reject 9223372036854775807. */
17807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17809 && LARGE_OFF_T % 2147483647 == 1)
17819 if ac_fn_cxx_try_compile "$LINENO"; then :
17820 ac_cv_sys_file_offset_bits=64; break
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823 ac_cv_sys_file_offset_bits=unknown
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17828 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17829 case $ac_cv_sys_file_offset_bits in #(
17832 cat >>confdefs.h <<_ACEOF
17833 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17838 if test $ac_cv_sys_file_offset_bits = unknown; then
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17840 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17841 if ${ac_cv_sys_large_files+:} false; then :
17842 $as_echo_n "(cached) " >&6
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847 #include <sys/types.h>
17848 /* Check that off_t can represent 2**63 - 1 correctly.
17849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17850 since some C++ compilers masquerading as C compilers
17851 incorrectly reject 9223372036854775807. */
17852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17854 && LARGE_OFF_T % 2147483647 == 1)
17864 if ac_fn_cxx_try_compile "$LINENO"; then :
17865 ac_cv_sys_large_files=no; break
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870 #define _LARGE_FILES 1
17871 #include <sys/types.h>
17872 /* Check that off_t can represent 2**63 - 1 correctly.
17873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17874 since some C++ compilers masquerading as C compilers
17875 incorrectly reject 9223372036854775807. */
17876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17878 && LARGE_OFF_T % 2147483647 == 1)
17888 if ac_fn_cxx_try_compile "$LINENO"; then :
17889 ac_cv_sys_large_files=1; break
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 ac_cv_sys_large_files=unknown
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17897 $as_echo "$ac_cv_sys_large_files" >&6; }
17898 case $ac_cv_sys_large_files in #(
17901 cat >>confdefs.h <<_ACEOF
17902 #define _LARGE_FILES $ac_cv_sys_large_files
17913 if test x"$enable_largefile" != "xno"; then :
17915 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
17916 if test x"$ac_cv_sys_large_files" = "x1"; then :
17917 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
17919 if test x"$ac_cv_sys_file_offset_bits" = "x64"; then :
17920 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
17926 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17927 if test "x$ac_cv_type_long_long" = xyes; then :
17928 long_long_found=yes
17933 if test x"$long_long_found" = "xyes"; then :
17936 $as_echo "#define HAVE_LONG_LONG /**/" >>confdefs.h
17945 # Check whether --with-pdftops was given.
17946 if test "${with_pdftops+set}" = set; then :
17947 withval=$with_pdftops; with_pdftops="$withval"
17953 case x$with_pdftops in #(
17954 xgs|xpdftops|xpdftocairo|xacroread) :
17957 as_fn_error $? "Unknown value of with-pdftops provided: $with_pdftops" "$LINENO" 5
17961 # Check whether --with-gs-path was given.
17962 if test "${with_gs_path+set}" = set; then :
17963 withval=$with_gs_path; with_gs_path="$withval"
17965 with_gs_path=system
17970 # Check whether --with-pdftops-path was given.
17971 if test "${with_pdftops_path+set}" = set; then :
17972 withval=$with_pdftops_path; with_pdftops_path="$withval"
17974 with_pdftops_path=system
17979 # Check whether --with-pdftocairo-path was given.
17980 if test "${with_pdftocairo_path+set}" = set; then :
17981 withval=$with_pdftocairo_path; with_pdftocairo_path="$withval"
17983 with_pdftocairo_path=system
17988 # Check whether --with-acroread-path was given.
17989 if test "${with_acroread_path+set}" = set; then :
17990 withval=$with_acroread_path; with_acroread_path="$withval"
17992 with_acroread_path=system
17997 # Check whether --with-pdftops-maxres was given.
17998 if test "${with_pdftops_maxres+set}" = set; then :
17999 withval=$with_pdftops_maxres; with_pdftops_maxres="$withval"
18001 with_pdftops_maxres=1440
18005 case x$with_pdftops_maxres in #(
18006 x0|x75|x150|x300|x600|x1200|x2400|x4800|x90|x180|x360|x720|x1440|x2880|x5760) :
18007 CUPS_PDFTOPS_MAXRES=$with_pdftops_maxres ;; #(
18009 CUPS_PDFTOPS_MAXRES=0 ;; #(
18011 as_fn_error $? "Unknown value of with-pdftops-maxres provided: $with_pdftops" "$LINENO" 5
18015 if test "x$with_gs_path" != "xsystem"; then :
18017 CUPS_GHOSTSCRIPT="$with_gs_path"
18021 # Extract the first word of "gs", so it can be a program name with args.
18022 set dummy gs; ac_word=$2
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18024 $as_echo_n "checking for $ac_word... " >&6; }
18025 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
18026 $as_echo_n "(cached) " >&6
18028 case $CUPS_GHOSTSCRIPT in
18030 ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
18033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18034 for as_dir in $PATH
18037 test -z "$as_dir" && as_dir=.
18038 for ac_exec_ext in '' $ac_executable_extensions; do
18039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18040 ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
18041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18048 test -z "$ac_cv_path_CUPS_GHOSTSCRIPT" && ac_cv_path_CUPS_GHOSTSCRIPT="as_fn_error $? "Required gs binary is missing. Please install ghostscript-gpl package." "$LINENO" 5"
18052 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
18053 if test -n "$CUPS_GHOSTSCRIPT"; then
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
18055 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18064 if test "x$CUPS_GHOSTSCRIPT" != "x"; then :
18067 $as_echo "#define HAVE_GHOSTSCRIPT /**/" >>confdefs.h
18069 if test x"$with_pdftops" = xgs; then :
18071 cat >>confdefs.h <<_ACEOF
18072 #define CUPS_PDFTOPS_RENDERER GS
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
18078 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
18079 if `$CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write`; then :
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18082 $as_echo "yes" >&6; }
18084 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE /**/" >>confdefs.h
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090 $as_echo "no" >&6; }
18096 CUPS_GHOSTSCRIPT="gs"
18100 if test "x$with_pdftops_path" != "xsystem"; then :
18102 CUPS_PDFTOPS="$with_pdftops"
18106 # Extract the first word of "pdftops", so it can be a program name with args.
18107 set dummy pdftops; ac_word=$2
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18109 $as_echo_n "checking for $ac_word... " >&6; }
18110 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
18111 $as_echo_n "(cached) " >&6
18113 case $CUPS_PDFTOPS in
18115 ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
18126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18133 test -z "$ac_cv_path_CUPS_PDFTOPS" && ac_cv_path_CUPS_PDFTOPS="as_fn_error $? "Required pdftops is missing. Please install CUPS developer packages." "$LINENO" 5"
18137 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
18138 if test -n "$CUPS_PDFTOPS"; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
18140 $as_echo "$CUPS_PDFTOPS" >&6; }
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143 $as_echo "no" >&6; }
18149 if test "x$CUPS_PDFTOPS" != "x"; then :
18152 $as_echo "#define HAVE_POPPLER_PDFTOPS /**/" >>confdefs.h
18154 if test x"$with_pdftops" = xpdftops; then :
18156 cat >>confdefs.h <<_ACEOF
18157 #define CUPS_PDFTOPS_RENDERER PDFTOPS
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
18163 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
18164 if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes`; then :
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18167 $as_echo "yes" >&6; }
18169 $as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES " >>confdefs.h
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18175 $as_echo "no" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -r" >&5
18179 $as_echo_n "checking whether pdftops supports -r... " >&6; }
18180 if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- '-r '`; then :
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18183 $as_echo "yes" >&6; }
18185 $as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION " >>confdefs.h
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18191 $as_echo "no" >&6; }
18197 CUPS_PDFTOPS="/usr/bin/pdftops"
18200 if test "x$with_pdftocairo_path" != "xsystem"; then :
18202 CUPS_PDFTOPS="$with_pdftocairo_path"
18206 # Extract the first word of "pdftocairo", so it can be a program name with args.
18207 set dummy pdftocairo; ac_word=$2
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18209 $as_echo_n "checking for $ac_word... " >&6; }
18210 if ${ac_cv_path_CUPS_PDFTOCAIRO+:} false; then :
18211 $as_echo_n "(cached) " >&6
18213 case $CUPS_PDFTOCAIRO in
18215 ac_cv_path_CUPS_PDFTOCAIRO="$CUPS_PDFTOCAIRO" # Let the user override the test with a path.
18218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219 for as_dir in $PATH
18222 test -z "$as_dir" && as_dir=.
18223 for ac_exec_ext in '' $ac_executable_extensions; do
18224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18225 ac_cv_path_CUPS_PDFTOCAIRO="$as_dir/$ac_word$ac_exec_ext"
18226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18233 test -z "$ac_cv_path_CUPS_PDFTOCAIRO" && ac_cv_path_CUPS_PDFTOCAIRO="as_fn_error $? "Required pdftocairo is missing. Please install Poppler developer packages." "$LINENO" 5"
18237 CUPS_PDFTOCAIRO=$ac_cv_path_CUPS_PDFTOCAIRO
18238 if test -n "$CUPS_PDFTOCAIRO"; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOCAIRO" >&5
18240 $as_echo "$CUPS_PDFTOCAIRO" >&6; }
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18243 $as_echo "no" >&6; }
18249 if test "x$CUPS_PDFTOCAIRO" != "x"; then :
18252 $as_echo "#define HAVE_POPPLER_PDFTOCAIRO /**/" >>confdefs.h
18254 if test x"$with_pdftops" = xpdftocairo; then :
18256 cat >>confdefs.h <<_ACEOF
18257 #define CUPS_PDFTOPS_RENDERER PDFTOCAIRO
18264 CUPS_PDFTOCAIRO="pdftocairo"
18267 if test "x$with_acroread_path" != "xsystem"; then :
18269 CUPS_ACROREAD="$with_acroread_path"
18273 # Extract the first word of "acroread", so it can be a program name with args.
18274 set dummy acroread; ac_word=$2
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18276 $as_echo_n "checking for $ac_word... " >&6; }
18277 if ${ac_cv_path_CUPS_ACROREAD+:} false; then :
18278 $as_echo_n "(cached) " >&6
18280 case $CUPS_ACROREAD in
18282 ac_cv_path_CUPS_ACROREAD="$CUPS_ACROREAD" # Let the user override the test with a path.
18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in $PATH
18289 test -z "$as_dir" && as_dir=.
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292 ac_cv_path_CUPS_ACROREAD="$as_dir/$ac_word$ac_exec_ext"
18293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18300 test -z "$ac_cv_path_CUPS_ACROREAD" && ac_cv_path_CUPS_ACROREAD="as_fn_error $? "Required acroread binary is missing. Please install acroread package." "$LINENO" 5"
18304 CUPS_ACROREAD=$ac_cv_path_CUPS_ACROREAD
18305 if test -n "$CUPS_ACROREAD"; then
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_ACROREAD" >&5
18307 $as_echo "$CUPS_ACROREAD" >&6; }
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18316 if test "x$CUPS_ACROREAD" != "x"; then :
18319 $as_echo "#define HAVE_ACROREAD /**/" >>confdefs.h
18321 if test x"$with_pdftops" = xacroread; then :
18323 cat >>confdefs.h <<_ACEOF
18324 #define CUPS_PDFTOPS_RENDERER ACROREAD
18331 CUPS_ACROREAD="acroread"
18336 cat >>confdefs.h <<_ACEOF
18337 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
18341 cat >>confdefs.h <<_ACEOF
18342 #define CUPS_POPPLER_PDFTOPS "$CUPS_PDFTOPS"
18346 cat >>confdefs.h <<_ACEOF
18347 #define CUPS_POPPLER_PDFTOCAIRO "$CUPS_PDFTOCAIRO"
18351 cat >>confdefs.h <<_ACEOF
18352 #define CUPS_ACROREAD "$CUPS_ACROREAD"
18356 cat >>confdefs.h <<_ACEOF
18357 #define CUPS_PDFTOPS_MAX_RESOLUTION $CUPS_PDFTOPS_MAXRES
18364 # NOTE: This stuff is broken, requires internal cups headers.
18366 # Check whether --with-php was given.
18367 if test "${with_php+set}" = set; then :
18368 withval=$with_php; with_php="$withval"
18375 # Check whether --with-php-config was given.
18376 if test "${with_php_config+set}" = set; then :
18377 withval=$with_php_config; with_php_config="$withval"
18379 with_php_config=system
18383 if test "x$with_php" = "xyes"; then
18391 if test x"$with_php" = "xyes"; then :
18393 if test "x$with_php_config" != "xsystem"; then :
18395 PHPCONFIG=$with_php_config
18399 # Extract the first word of "php-config", so it can be a program name with args.
18400 set dummy php-config; ac_word=$2
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18402 $as_echo_n "checking for $ac_word... " >&6; }
18403 if ${ac_cv_path_PHPCONFIG+:} false; then :
18404 $as_echo_n "(cached) " >&6
18408 ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18415 test -z "$as_dir" && as_dir=.
18416 for ac_exec_ext in '' $ac_executable_extensions; do
18417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18418 ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
18419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18429 PHPCONFIG=$ac_cv_path_PHPCONFIG
18430 if test -n "$PHPCONFIG"; then
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
18432 $as_echo "$PHPCONFIG" >&6; }
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18435 $as_echo "no" >&6; }
18439 if test -z "$PHPCONFIG"; then :
18441 as_fn_error $? "Required php-config is missing. Please install PHP developer packages." "$LINENO" 5
18446 PHPDIR="`$PHPCONFIG --extension-dir`"
18455 # Check whether --with-test-font-path was given.
18456 if test "${with_test_font_path+set}" = set; then :
18457 withval=$with_test_font_path; with_test_font_path="$withval"
18459 with_test_font_path="/usr/share/fonts/dejavu/DejaVuSans.ttf"
18464 cat >>confdefs.h <<_ACEOF
18465 #define TESTFONT "$with_test_font_path"
18472 # Check whether --enable-werror was given.
18473 if test "${enable_werror+set}" = set; then :
18474 enableval=$enable_werror; enable_werror="$enableval"
18480 if test x"$enable_werror" = "xyes"; then :
18482 CFLAGS="$CFLAGS -Werror"
18485 if test x"$GCC" = "xyes"; then :
18487 # Be tough with warnings and produce less careless code
18488 CFLAGS="$CFLAGS -Wall -pedantic -std=gnu99"
18489 CXXFLAGS="$CXXFLAGS -Wall -pedantic" # -Weffc++" # TODO: enable when it does not print 1MB of warnings
18492 CFLAGS="$CFLAGS -D_GNU_SOURCE"
18493 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
18499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
18500 if ${ac_cv_path_SED+:} false; then :
18501 $as_echo_n "(cached) " >&6
18503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
18504 for ac_i in 1 2 3 4 5 6 7; do
18505 ac_script="$ac_script$as_nl$ac_script"
18507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
18508 { ac_script=; unset ac_script;}
18509 if test -z "$SED"; then
18510 ac_path_SED_found=false
18511 # Loop through the user's path and test for each of PROGNAME-LIST
18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18516 test -z "$as_dir" && as_dir=.
18517 for ac_prog in sed gsed; do
18518 for ac_exec_ext in '' $ac_executable_extensions; do
18519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
18520 as_fn_executable_p "$ac_path_SED" || continue
18521 # Check for GNU ac_path_SED and select it if it is found.
18522 # Check for GNU $ac_path_SED
18523 case `"$ac_path_SED" --version 2>&1` in
18525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
18528 $as_echo_n 0123456789 >"conftest.in"
18531 cat "conftest.in" "conftest.in" >"conftest.tmp"
18532 mv "conftest.tmp" "conftest.in"
18533 cp "conftest.in" "conftest.nl"
18534 $as_echo '' >> "conftest.nl"
18535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
18536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18537 as_fn_arith $ac_count + 1 && ac_count=$as_val
18538 if test $ac_count -gt ${ac_path_SED_max-0}; then
18539 # Best one so far, save it but keep looking for a better one
18540 ac_cv_path_SED="$ac_path_SED"
18541 ac_path_SED_max=$ac_count
18543 # 10*(2^10) chars as input seems more than enough
18544 test $ac_count -gt 10 && break
18546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18549 $ac_path_SED_found && break 3
18554 if test -z "$ac_cv_path_SED"; then
18555 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18558 ac_cv_path_SED=$SED
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
18563 $as_echo "$ac_cv_path_SED" >&6; }
18564 SED="$ac_cv_path_SED"
18567 SED_EXTENDED_REGEX_OPT=-nre
18568 sed_variant=`sed --version 2>&1`
18569 sed_variant=`echo $sed_variant|sed -e 's/ .*//'`
18570 if test "$sed_variant" != GNU ; then
18571 SED_EXTENDED_REGEX_OPT=-nEe
18576 # =====================
18577 # Prepare all .in files
18578 # =====================
18579 ac_config_files="$ac_config_files libcupsfilters.pc libfontembed.pc Makefile filter/gstopxl utils/cups-browsed utils/cups-browsed.conf"
18581 cat >confcache <<\_ACEOF
18582 # This file is a shell script that caches the results of configure
18583 # tests run on this system so they can be shared between configure
18584 # scripts and configure runs, see configure's option --config-cache.
18585 # It is not useful on other systems. If it contains results you don't
18586 # want to keep, you may remove or edit it.
18588 # config.status only pays attention to the cache file if you give it
18589 # the --recheck option to rerun configure.
18591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18593 # following values.
18597 # The following way of writing the cache mishandles newlines in values,
18598 # but we know of no workaround that is simple, portable, and efficient.
18599 # So, we kill variables containing newlines.
18600 # Ultrix sh set writes to stderr and can't be redirected directly,
18601 # and sets the high bit in the cache file unless we assign to the vars.
18603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18604 eval ac_val=\$$ac_var
18608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18612 _ | IFS | as_nl) ;; #(
18613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18614 *) { eval $ac_var=; unset $ac_var;} ;;
18620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18621 *${as_nl}ac_space=\ *)
18622 # `set' does not quote correctly, so add quotes: double-quote
18623 # substitution turns \\\\ into \\, and sed turns \\ into \.
18626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18629 # `set' quotes correctly as required by POSIX, so do not add quotes.
18630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18644 if test -w "$cache_file"; then
18645 if test "x$cache_file" != "x/dev/null"; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18647 $as_echo "$as_me: updating cache $cache_file" >&6;}
18648 if test ! -f "$cache_file" || test -h "$cache_file"; then
18649 cat confcache >"$cache_file"
18651 case $cache_file in #(
18653 mv -f confcache "$cache_file"$$ &&
18654 mv -f "$cache_file"$$ "$cache_file" ;; #(
18656 mv -f confcache "$cache_file" ;;
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18668 # Let make expand exec_prefix.
18669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18671 DEFS=-DHAVE_CONFIG_H
18676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18677 # 1. Remove the extension, and $U if already installed.
18678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18679 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18681 # will be set to the directory where LIBOBJS objects are built.
18682 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18683 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18685 LIBOBJS=$ac_libobjs
18687 LTLIBOBJS=$ac_ltlibobjs
18690 if test -n "$EXEEXT"; then
18692 am__EXEEXT_FALSE='#'
18694 am__EXEEXT_TRUE='#'
18698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18699 as_fn_error $? "conditional \"AMDEP\" was never defined.
18700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18702 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18703 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18706 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18707 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18710 if test -z "${ENABLE_IMAGEFILTERS_TRUE}" && test -z "${ENABLE_IMAGEFILTERS_FALSE}"; then
18711 as_fn_error $? "conditional \"ENABLE_IMAGEFILTERS\" was never defined.
18712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18714 if test -z "${ENABLE_AVAHI_TRUE}" && test -z "${ENABLE_AVAHI_FALSE}"; then
18715 as_fn_error $? "conditional \"ENABLE_AVAHI\" was never defined.
18716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18718 if test -z "${RCLINKS_TRUE}" && test -z "${RCLINKS_FALSE}"; then
18719 as_fn_error $? "conditional \"RCLINKS\" was never defined.
18720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18722 if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
18723 as_fn_error $? "conditional \"WITH_PHP\" was never defined.
18724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727 : "${CONFIG_STATUS=./config.status}"
18729 ac_clean_files_save=$ac_clean_files
18730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18736 # Generated by $as_me.
18737 # Run this file to recreate the current configuration.
18738 # Compiler output produced by configure, useful for debugging
18739 # configure, is in config.log if it exists.
18742 ac_cs_recheck=false
18745 SHELL=\${CONFIG_SHELL-$SHELL}
18748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18749 ## -------------------- ##
18750 ## M4sh Initialization. ##
18751 ## -------------------- ##
18753 # Be more Bourne compatible
18754 DUALCASE=1; export DUALCASE # for MKS sh
18755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18759 # is contrary to our usage. Disable this feature.
18760 alias -g '${1+"$@"}'='"$@"'
18761 setopt NO_GLOB_SUBST
18763 case `(set -o) 2>/dev/null` in #(
18775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18779 # Prefer a ksh shell builtin over an external printf program on Solaris,
18780 # but without wasting forks for bash or zsh.
18781 if test -z "$BASH_VERSION$ZSH_VERSION" \
18782 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18783 as_echo='print -r --'
18784 as_echo_n='print -rn --'
18785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18786 as_echo='printf %s\n'
18787 as_echo_n='printf %s'
18789 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18790 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18791 as_echo_n='/usr/ucb/echo -n'
18793 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18794 as_echo_n_body='eval
18798 expr "X$arg" : "X\\(.*\\)$as_nl";
18799 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18801 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18803 export as_echo_n_body
18804 as_echo_n='sh -c $as_echo_n_body as_echo'
18806 export as_echo_body
18807 as_echo='sh -c $as_echo_body as_echo'
18810 # The user is always right.
18811 if test "${PATH_SEPARATOR+set}" != set; then
18813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18821 # We need space, tab and new line, in precisely that order. Quoting is
18822 # there to prevent editors from complaining about space-tab.
18823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18824 # splitting by setting IFS to empty value.)
18827 # Find who we are. Look in the path if we contain no directory separator.
18830 *[\\/]* ) as_myself=$0 ;;
18831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18832 for as_dir in $PATH
18835 test -z "$as_dir" && as_dir=.
18836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18842 # We did not find ourselves, most probably we were run as `sh COMMAND'
18843 # in which case we are not to be found in the path.
18844 if test "x$as_myself" = x; then
18847 if test ! -f "$as_myself"; then
18848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18852 # Unset variables that we do not need and which cause bugs (e.g. in
18853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18854 # suppresses any "Segmentation fault" message there. '((' could
18855 # trigger a bug in pdksh 5.2.14.
18856 for as_var in BASH_ENV ENV MAIL MAILPATH
18857 do eval test x\${$as_var+set} = xset \
18858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18875 # ----------------------------------------
18876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18878 # script with STATUS, using 1 if that was 0.
18881 as_status=$1; test $as_status -eq 0 && as_status=1
18883 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18886 $as_echo "$as_me: error: $2" >&2
18887 as_fn_exit $as_status
18891 # as_fn_set_status STATUS
18892 # -----------------------
18893 # Set $? to STATUS, without forking.
18894 as_fn_set_status ()
18897 } # as_fn_set_status
18899 # as_fn_exit STATUS
18900 # -----------------
18901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18905 as_fn_set_status $1
18911 # Portably unset VAR.
18914 { eval $1=; unset $1;}
18916 as_unset=as_fn_unset
18917 # as_fn_append VAR VALUE
18918 # ----------------------
18919 # Append the text in VALUE to the end of the definition contained in VAR. Take
18920 # advantage of any shell optimizations that allow amortized linear growth over
18921 # repeated appends, instead of the typical quadratic growth present in naive
18923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18924 eval 'as_fn_append ()
18935 # as_fn_arith ARG...
18936 # ------------------
18937 # Perform arithmetic evaluation on the ARGs, and store the result in the
18938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18939 # must be portable across $(()) and expr.
18940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18941 eval 'as_fn_arith ()
18948 as_val=`expr "$@" || test $? -eq 1`
18953 if expr a : '\(a\)' >/dev/null 2>&1 &&
18954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18961 as_basename=basename
18966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18972 as_me=`$as_basename -- "$0" ||
18973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18974 X"$0" : 'X\(//\)$' \| \
18975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18977 sed '/^.*\/\([^/][^/]*\)\/*$/{
18991 # Avoid depending upon Character Ranges.
18992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18995 as_cr_digits='0123456789'
18996 as_cr_alnum=$as_cr_Letters$as_cr_digits
18998 ECHO_C= ECHO_N= ECHO_T=
18999 case `echo -n x` in #(((((
19001 case `echo 'xy\c'` in
19002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19011 rm -f conf$$ conf$$.exe conf$$.file
19012 if test -d conf$$.dir; then
19013 rm -f conf$$.dir/conf$$.file
19016 mkdir conf$$.dir 2>/dev/null
19018 if (echo >conf$$.file) 2>/dev/null; then
19019 if ln -s conf$$.file conf$$ 2>/dev/null; then
19021 # ... but there are two gotchas:
19022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19024 # In both cases, we have to default to `cp -pR'.
19025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19027 elif ln conf$$.file conf$$ 2>/dev/null; then
19035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19036 rmdir conf$$.dir 2>/dev/null
19041 # Create "$as_dir" as a directory, including parents if necessary.
19046 -*) as_dir=./$as_dir;;
19048 test -d "$as_dir" || eval $as_mkdir_p || {
19052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19053 *) as_qdir=$as_dir;;
19055 as_dirs="'$as_qdir' $as_dirs"
19056 as_dir=`$as_dirname -- "$as_dir" ||
19057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19058 X"$as_dir" : 'X\(//\)[^/]' \| \
19059 X"$as_dir" : 'X\(//\)$' \| \
19060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19061 $as_echo X"$as_dir" |
19062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19066 /^X\(\/\/\)[^/].*/{
19079 test -d "$as_dir" && break
19081 test -z "$as_dirs" || eval "mkdir $as_dirs"
19082 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19086 if mkdir -p . 2>/dev/null; then
19087 as_mkdir_p='mkdir -p "$as_dir"'
19089 test -d ./-p && rmdir ./-p
19094 # as_fn_executable_p FILE
19095 # -----------------------
19096 # Test if FILE is an executable regular file.
19097 as_fn_executable_p ()
19099 test -f "$1" && test -x "$1"
19100 } # as_fn_executable_p
19101 as_test_x='test -x'
19102 as_executable_p=as_fn_executable_p
19104 # Sed expression to map a string onto a valid CPP name.
19105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19107 # Sed expression to map a string onto a valid variable name.
19108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19112 ## ----------------------------------- ##
19113 ## Main body of $CONFIG_STATUS script. ##
19114 ## ----------------------------------- ##
19116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19119 # Save the log message, to keep $0 and so on meaningful, and to
19120 # report actual input values of CONFIG_FILES etc. instead of their
19121 # values after options handling.
19123 This file was extended by cups-filters $as_me 1.0.36, which was
19124 generated by GNU Autoconf 2.69. Invocation command line was
19126 CONFIG_FILES = $CONFIG_FILES
19127 CONFIG_HEADERS = $CONFIG_HEADERS
19128 CONFIG_LINKS = $CONFIG_LINKS
19129 CONFIG_COMMANDS = $CONFIG_COMMANDS
19132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19137 case $ac_config_files in *"
19138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19141 case $ac_config_headers in *"
19142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19147 # Files that config.status was made for.
19148 config_files="$ac_config_files"
19149 config_headers="$ac_config_headers"
19150 config_commands="$ac_config_commands"
19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156 \`$as_me' instantiates files and other configuration actions
19157 from templates according to the current configuration. Unless the files
19158 and actions are specified as TAGs, all are instantiated by default.
19160 Usage: $0 [OPTION]... [TAG]...
19162 -h, --help print this help, then exit
19163 -V, --version print version number and configuration settings, then exit
19164 --config print configuration, then exit
19165 -q, --quiet, --silent
19166 do not print progress messages
19167 -d, --debug don't remove temporary files
19168 --recheck update $as_me by reconfiguring in the same conditions
19169 --file=FILE[:TEMPLATE]
19170 instantiate the configuration file FILE
19171 --header=FILE[:TEMPLATE]
19172 instantiate the configuration header FILE
19174 Configuration files:
19177 Configuration headers:
19180 Configuration commands:
19183 Report bugs to the package provider."
19186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19189 cups-filters config.status 1.0.36
19190 configured by $0, generated by GNU Autoconf 2.69,
19191 with options \\"\$ac_cs_config\\"
19193 Copyright (C) 2012 Free Software Foundation, Inc.
19194 This config.status script is free software; the Free Software Foundation
19195 gives unlimited permission to copy, distribute and modify it."
19202 test -n "\$AWK" || AWK=awk
19205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19206 # The default lists apply if the user does not specify any file.
19212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19229 # Handling of the options.
19230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19233 $as_echo "$ac_cs_version"; exit ;;
19234 --config | --confi | --conf | --con | --co | --c )
19235 $as_echo "$ac_cs_config"; exit ;;
19236 --debug | --debu | --deb | --de | --d | -d )
19238 --file | --fil | --fi | --f )
19241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19242 '') as_fn_error $? "missing file argument" ;;
19244 as_fn_append CONFIG_FILES " '$ac_optarg'"
19245 ac_need_defaults=false;;
19246 --header | --heade | --head | --hea )
19249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19252 ac_need_defaults=false;;
19254 # Conflict between --help and --header
19255 as_fn_error $? "ambiguous option: \`$1'
19256 Try \`$0 --help' for more information.";;
19257 --help | --hel | -h )
19258 $as_echo "$ac_cs_usage"; exit ;;
19259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19263 # This is an error.
19264 -*) as_fn_error $? "unrecognized option: \`$1'
19265 Try \`$0 --help' for more information." ;;
19267 *) as_fn_append ac_config_targets " $1"
19268 ac_need_defaults=false ;;
19274 ac_configure_extra_args=
19276 if $ac_cs_silent; then
19278 ac_configure_extra_args="$ac_configure_extra_args --silent"
19282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19283 if \$ac_cs_recheck; then
19284 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19287 CONFIG_SHELL='$SHELL'
19288 export CONFIG_SHELL
19293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19298 ## Running $as_me. ##
19304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19311 # The HP-UX ksh and POSIX shell print the target directory to stdout
19312 # if CDPATH is set.
19313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19315 sed_quote_subst='$sed_quote_subst'
19316 double_quote_subst='$double_quote_subst'
19317 delay_variable_subst='$delay_variable_subst'
19318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19347 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19348 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19349 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19350 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19351 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19352 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19353 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19354 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19355 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19356 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19357 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19358 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19359 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19360 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19361 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19362 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19363 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19364 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19365 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19366 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19367 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19368 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19369 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19370 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19371 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19373 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19374 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"`'
19375 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19376 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19377 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19378 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19379 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19380 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19381 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19382 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19383 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19384 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19385 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19386 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19387 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19388 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19389 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19390 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19391 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19392 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19393 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19394 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19395 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19396 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19397 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19398 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19399 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19400 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19401 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19402 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19403 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19404 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19405 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19406 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19407 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19408 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19409 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19410 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19411 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19412 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19413 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19414 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19415 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19416 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19417 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19418 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19419 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19420 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19421 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19422 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19423 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19424 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19425 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19426 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19427 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19428 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19429 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19430 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19431 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19432 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19433 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19434 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19435 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19436 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19437 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19438 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19439 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19440 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19441 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19448 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19449 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19450 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19451 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19452 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19453 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19454 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19455 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19456 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19458 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19459 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19460 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19461 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19462 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19463 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19464 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19465 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19466 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19467 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19468 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19469 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19470 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19472 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19473 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19474 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19475 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19477 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19478 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19479 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19480 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19481 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19482 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19483 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19484 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19485 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19486 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19487 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19488 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19489 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19491 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19492 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19493 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19494 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19495 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19496 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19497 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19498 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19499 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19500 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19501 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19504 LTCFLAGS='$LTCFLAGS'
19505 compiler='$compiler_DEFAULT'
19507 # A function that is used when there is no print builtin or printf.
19508 func_fallback_echo ()
19510 eval 'cat <<_LTECHO_EOF
19515 # Quote evaled strings.
19530 deplibs_check_method \
19535 sharedlib_from_linklib_cmd \
19538 archiver_list_spec \
19544 lt_cv_sys_global_symbol_pipe \
19545 lt_cv_sys_global_symbol_to_cdecl \
19546 lt_cv_sys_global_symbol_to_c_name_address \
19547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19548 nm_file_list_spec \
19549 lt_prog_compiler_no_builtin_flag \
19550 lt_prog_compiler_pic \
19551 lt_prog_compiler_wl \
19552 lt_prog_compiler_static \
19553 lt_cv_prog_compiler_c_o \
19562 export_dynamic_flag_spec \
19563 whole_archive_flag_spec \
19564 compiler_needs_object \
19566 allow_undefined_flag \
19567 no_undefined_flag \
19568 hardcode_libdir_flag_spec \
19569 hardcode_libdir_separator \
19573 variables_saved_for_relink \
19575 library_names_spec \
19577 install_override_mode \
19581 compiler_lib_search_dirs \
19586 compiler_lib_search_path \
19590 lt_prog_compiler_no_builtin_flag_CXX \
19591 lt_prog_compiler_pic_CXX \
19592 lt_prog_compiler_wl_CXX \
19593 lt_prog_compiler_static_CXX \
19594 lt_cv_prog_compiler_c_o_CXX \
19595 export_dynamic_flag_spec_CXX \
19596 whole_archive_flag_spec_CXX \
19597 compiler_needs_object_CXX \
19599 allow_undefined_flag_CXX \
19600 no_undefined_flag_CXX \
19601 hardcode_libdir_flag_spec_CXX \
19602 hardcode_libdir_separator_CXX \
19603 exclude_expsyms_CXX \
19604 include_expsyms_CXX \
19605 file_list_spec_CXX \
19606 compiler_lib_search_dirs_CXX \
19607 predep_objects_CXX \
19608 postdep_objects_CXX \
19611 compiler_lib_search_path_CXX; do
19612 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19613 *[\\\\\\\`\\"\\\$]*)
19614 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19617 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19622 # Double-quote double-evaled strings.
19623 for var in reload_cmds \
19624 old_postinstall_cmds \
19625 old_postuninstall_cmds \
19627 extract_expsyms_cmds \
19628 old_archive_from_new_cmds \
19629 old_archive_from_expsyms_cmds \
19631 archive_expsym_cmds \
19633 module_expsym_cmds \
19634 export_symbols_cmds \
19638 postuninstall_cmds \
19640 sys_lib_search_path_spec \
19641 sys_lib_dlsearch_path_spec \
19643 old_archive_cmds_CXX \
19644 old_archive_from_new_cmds_CXX \
19645 old_archive_from_expsyms_cmds_CXX \
19647 archive_expsym_cmds_CXX \
19649 module_expsym_cmds_CXX \
19650 export_symbols_cmds_CXX \
19652 postlink_cmds_CXX; do
19653 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19654 *[\\\\\\\`\\"\\\$]*)
19655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19663 ac_aux_dir='$ac_aux_dir'
19664 xsi_shell='$xsi_shell'
19665 lt_shell_append='$lt_shell_append'
19667 # See if we are running on zsh, and set the options which allow our
19668 # commands through without removal of \ escapes INIT.
19669 if test -n "\${ZSH_VERSION+set}" ; then
19670 setopt NO_GLOB_SUBST
19676 TIMESTAMP='$TIMESTAMP'
19687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19689 # Handling of arguments.
19690 for ac_config_target in $ac_config_targets
19692 case $ac_config_target in
19693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19696 "libcupsfilters.pc") CONFIG_FILES="$CONFIG_FILES libcupsfilters.pc" ;;
19697 "libfontembed.pc") CONFIG_FILES="$CONFIG_FILES libfontembed.pc" ;;
19698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19699 "filter/gstopxl") CONFIG_FILES="$CONFIG_FILES filter/gstopxl" ;;
19700 "utils/cups-browsed") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed" ;;
19701 "utils/cups-browsed.conf") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed.conf" ;;
19703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19708 # If the user did not use the arguments to specify the items to instantiate,
19709 # then the envvar interface is used. Set only those that are not.
19710 # We use the long form for the default assignment because of an extremely
19711 # bizarre bug on SunOS 4.1.3.
19712 if $ac_need_defaults; then
19713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19718 # Have a temporary directory for convenience. Make it in the build tree
19719 # simply because there is no reason against having it here, and in addition,
19720 # creating and moving files from /tmp can sometimes cause problems.
19721 # Hook for its removal unless debugging.
19722 # Note that there is a small window in which the directory will not be cleaned:
19723 # after its creation but before its name has been assigned to `$tmp'.
19727 trap 'exit_status=$?
19728 : "${ac_tmp:=$tmp}"
19729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19731 trap 'as_fn_exit 1' 1 2 13 15
19733 # Create a (secure) tmp directory for tmp files.
19736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19740 tmp=./conf$$-$RANDOM
19741 (umask 077 && mkdir "$tmp")
19742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19745 # Set up the scripts for CONFIG_FILES section.
19746 # No need to generate them if there are no CONFIG_FILES.
19747 # This happens for instance with `./config.status config.h'.
19748 if test -n "$CONFIG_FILES"; then
19751 ac_cr=`echo X | tr X '\015'`
19752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19753 # But we know of no other shell where ac_cr would be empty at this
19754 # point, so we can use a bashism as a fallback.
19755 if test "x$ac_cr" = x; then
19756 eval ac_cr=\$\'\\r\'
19758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19762 ac_cs_awk_cr=$ac_cr
19765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19770 echo "cat >conf$$subs.awk <<_ACEOF" &&
19771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19773 } >conf$$subs.sh ||
19774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19777 for ac_last_try in false false false false false :; do
19778 . ./conf$$subs.sh ||
19779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19782 if test $ac_delim_n = $ac_delim_num; then
19784 elif $ac_last_try; then
19785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19790 rm -f conf$$subs.sh
19792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19797 s/^/S["/; s/!.*/"]=/
19807 s/\(.\{148\}\)..*/\1/
19809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19821 s/\(.\{148\}\)..*/\1/
19823 s/["\\]/\\&/g; s/^/"/; s/$/"/
19827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19832 ' <conf$$subs.awk | sed '
19837 ' >>$CONFIG_STATUS || ac_write_fail=1
19838 rm -f conf$$subs.awk
19839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19842 for (key in S) S_is_set[key] = 1
19848 nfields = split(line, field, "@")
19850 len = length(field[1])
19851 for (i = 2; i < nfields; i++) {
19853 keylen = length(key)
19854 if (S_is_set[key]) {
19856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19857 len += length(value) + length(field[++i])
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19879 # trailing colons and then remove the whole line if VPATH becomes empty
19880 # (actually we leave an empty line to preserve line numbers).
19881 if test "x$srcdir" = x.; then
19882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19901 fi # test -n "$CONFIG_FILES"
19903 # Set up the scripts for CONFIG_HEADERS section.
19904 # No need to generate them if there are no CONFIG_HEADERS.
19905 # This happens for instance with `./config.status Makefile'.
19906 if test -n "$CONFIG_HEADERS"; then
19907 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19911 # Transform confdefs.h into an awk script `defines.awk', embedded as
19912 # here-document in config.status, that substitutes the proper values into
19913 # config.h.in to produce config.h.
19915 # Create a delimiter string that does not exist in confdefs.h, to ease
19916 # handling of long lines.
19918 for ac_last_try in false false :; do
19919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19920 if test -z "$ac_tt"; then
19922 elif $ac_last_try; then
19923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19929 # For the awk script, D is an array of macro values keyed by name,
19930 # likewise P contains macro parameters if any. Preserve backslash
19931 # newline sequences.
19933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19935 s/.\{148\}/&'"$ac_delim"'/g
19938 s/^[ ]*#[ ]*define[ ][ ]*/ /
19945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19952 D["\1"]=" \3\\\\\\n"\\/p
19954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19959 s/.\{148\}/&'"$ac_delim"'/g
19964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19969 ' <confdefs.h | sed '
19970 s/'"$ac_delim"'/"\\\
19971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19974 for (key in D) D_is_set[key] = 1
19977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19979 split(line, arg, " ")
19980 if (arg[1] == "#") {
19984 defundef = substr(arg[1], 2)
19987 split(mac1, mac2, "(") #)
19989 prefix = substr(line, 1, index(line, defundef) - 1)
19990 if (D_is_set[macro]) {
19991 # Preserve the white space surrounding the "#".
19992 print prefix "define", macro P[macro] D[macro]
19995 # Replace #undef with comments. This is necessary, for example,
19996 # in the case of _POSIX_SOURCE, which is predefined and required
19997 # on some systems where configure will not decide to define it.
19998 if (defundef == "undef") {
19999 print "/*", prefix defundef, macro, "*/"
20007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20009 fi # test -n "$CONFIG_HEADERS"
20012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20017 :[FHLC]) ac_mode=$ac_tag; continue;;
20019 case $ac_mode$ac_tag in
20021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20022 :[FH]-) ac_tag=-:-;;
20023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20040 -) ac_f="$ac_tmp/stdin";;
20041 *) # Look for the file first in the build tree, then in the source tree
20042 # (if the path is not absolute). The absolute path cannot be DOS-style,
20043 # because $ac_f cannot contain `:'.
20047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20052 as_fn_append ac_file_inputs " '$ac_f'"
20055 # Let's still pretend it is `configure' which instantiates (i.e., don't
20056 # use $as_me), people would be surprised to read:
20057 # /* config.h. Generated by config.status. */
20058 configure_input='Generated from '`
20059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20061 if test x"$ac_file" != x-; then
20062 configure_input="$ac_file. $configure_input"
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20064 $as_echo "$as_me: creating $ac_file" >&6;}
20066 # Neutralize special characters interpreted by sed in replacement strings.
20067 case $configure_input in #(
20068 *\&* | *\|* | *\\* )
20069 ac_sed_conf_input=`$as_echo "$configure_input" |
20070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20071 *) ac_sed_conf_input=$configure_input;;
20075 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20081 ac_dir=`$as_dirname -- "$ac_file" ||
20082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20083 X"$ac_file" : 'X\(//\)[^/]' \| \
20084 X"$ac_file" : 'X\(//\)$' \| \
20085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20086 $as_echo X"$ac_file" |
20087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20091 /^X\(\/\/\)[^/].*/{
20104 as_dir="$ac_dir"; as_fn_mkdir_p
20108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20111 # A ".." for each directory in $ac_dir_suffix.
20112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20113 case $ac_top_builddir_sub in
20114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20118 ac_abs_top_builddir=$ac_pwd
20119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20120 # for backward compatibility:
20121 ac_top_builddir=$ac_top_build_prefix
20124 .) # We are building in place.
20126 ac_top_srcdir=$ac_top_builddir_sub
20127 ac_abs_top_srcdir=$ac_pwd ;;
20128 [\\/]* | ?:[\\/]* ) # Absolute name.
20129 ac_srcdir=$srcdir$ac_dir_suffix;
20130 ac_top_srcdir=$srcdir
20131 ac_abs_top_srcdir=$srcdir ;;
20132 *) # Relative name.
20133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20134 ac_top_srcdir=$ac_top_build_prefix$srcdir
20135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20150 ac_MKDIR_P=$MKDIR_P
20152 [\\/$]* | ?:[\\/]* ) ;;
20153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20158 # If the template does not know about datarootdir, expand it.
20159 # FIXME: This hack should be removed a few years after 2.60.
20160 ac_datarootdir_hack=; ac_datarootdir_seen=
20171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20172 *datarootdir*) ac_datarootdir_seen=yes;;
20173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20178 ac_datarootdir_hack='
20179 s&@datadir@&$datadir&g
20180 s&@docdir@&$docdir&g
20181 s&@infodir@&$infodir&g
20182 s&@localedir@&$localedir&g
20183 s&@mandir@&$mandir&g
20184 s&\\\${datarootdir}&$datarootdir&g' ;;
20188 # Neutralize VPATH when `$srcdir' = `.'.
20189 # Shell code in configure.ac might set extrasub.
20190 # FIXME: do we really want to maintain this feature?
20191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20192 ac_sed_extra="$ac_vpsub
20195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20198 s|@configure_input@|$ac_sed_conf_input|;t t
20199 s&@top_builddir@&$ac_top_builddir_sub&;t t
20200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20201 s&@srcdir@&$ac_srcdir&;t t
20202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20203 s&@top_srcdir@&$ac_top_srcdir&;t t
20204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20205 s&@builddir@&$ac_builddir&;t t
20206 s&@abs_builddir@&$ac_abs_builddir&;t t
20207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20208 s&@INSTALL@&$ac_INSTALL&;t t
20209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20210 $ac_datarootdir_hack
20212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20213 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20215 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20216 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20218 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20220 which seems to be undefined. Please make sure it is defined" >&5
20221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20222 which seems to be undefined. Please make sure it is defined" >&2;}
20224 rm -f "$ac_tmp/stdin"
20226 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20227 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20235 if test x"$ac_file" != x-; then
20237 $as_echo "/* $configure_input */" \
20238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20239 } >"$ac_tmp/config.h" \
20240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20241 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20246 mv "$ac_tmp/config.h" "$ac_file" \
20247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20250 $as_echo "/* $configure_input */" \
20251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20252 || as_fn_error $? "could not create -" "$LINENO" 5
20254 # Compute "$ac_file"'s index in $config_headers.
20257 for _am_header in $config_headers :; do
20258 case $_am_header in
20259 $_am_arg | $_am_arg:* )
20262 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20267 X"$_am_arg" : 'X\(//\)[^/]' \| \
20268 X"$_am_arg" : 'X\(//\)$' \| \
20269 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20270 $as_echo X"$_am_arg" |
20271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20275 /^X\(\/\/\)[^/].*/{
20287 s/.*/./; q'`/stamp-h$_am_stamp_count
20290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20291 $as_echo "$as_me: executing $ac_file commands" >&6;}
20296 case $ac_file$ac_mode in
20297 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20298 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20299 # are listed without --file. Let's play safe and only enable the eval
20300 # if we detect the quoting.
20301 case $CONFIG_FILES in
20302 *\'*) eval set x "$CONFIG_FILES" ;;
20303 *) set x $CONFIG_FILES ;;
20308 # Strip MF so we end up with the name of the file.
20309 mf=`echo "$mf" | sed -e 's/:.*$//'`
20310 # Check whether this is an Automake generated Makefile or not.
20311 # We used to match only the files named `Makefile.in', but
20312 # some people rename them; so instead we look at the file content.
20313 # Grep'ing the first line is not enough: some people post-process
20314 # each Makefile.in and add a new line on top of each file to say so.
20315 # Grep'ing the whole file is not good either: AIX grep has a line
20316 # limit of 2048, but all sed's we know have understand at least 4000.
20317 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20318 dirpart=`$as_dirname -- "$mf" ||
20319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320 X"$mf" : 'X\(//\)[^/]' \| \
20321 X"$mf" : 'X\(//\)$' \| \
20322 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20328 /^X\(\/\/\)[^/].*/{
20344 # Extract the definition of DEPDIR, am__include, and am__quote
20345 # from the Makefile without running `make'.
20346 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20347 test -z "$DEPDIR" && continue
20348 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20349 test -z "am__include" && continue
20350 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20351 # When using ansi2knr, U may be empty or an underscore; expand it
20352 U=`sed -n 's/^U = //p' < "$mf"`
20353 # Find all dependency output files, they are included files with
20354 # $(DEPDIR) in their names. We invoke sed twice because it is the
20355 # simplest approach to changing $(DEPDIR) to its actual value in the
20357 for file in `sed -n "
20358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20360 # Make sure the directory exists.
20361 test -f "$dirpart/$file" && continue
20362 fdir=`$as_dirname -- "$file" ||
20363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364 X"$file" : 'X\(//\)[^/]' \| \
20365 X"$file" : 'X\(//\)$' \| \
20366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20367 $as_echo X"$file" |
20368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20372 /^X\(\/\/\)[^/].*/{
20385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20386 # echo "creating $dirpart/$file"
20387 echo '# dummy' > "$dirpart/$file"
20394 # See if we are running on zsh, and set the options which allow our
20395 # commands through without removal of \ escapes.
20396 if test -n "${ZSH_VERSION+set}" ; then
20397 setopt NO_GLOB_SUBST
20400 cfgfile="${ofile}T"
20401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20404 cat <<_LT_EOF >> "$cfgfile"
20407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20412 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20413 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20415 # Written by Gordon Matzigkeit, 1996
20417 # This file is part of GNU Libtool.
20419 # GNU Libtool is free software; you can redistribute it and/or
20420 # modify it under the terms of the GNU General Public License as
20421 # published by the Free Software Foundation; either version 2 of
20422 # the License, or (at your option) any later version.
20424 # As a special exception to the GNU General Public License,
20425 # if you distribute this file as part of a program or library that
20426 # is built using GNU Libtool, you may include this file under the
20427 # same distribution terms that you use for the rest of that program.
20429 # GNU Libtool is distributed in the hope that it will be useful,
20430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20432 # GNU General Public License for more details.
20434 # You should have received a copy of the GNU General Public License
20435 # along with GNU Libtool; see the file COPYING. If not, a copy
20436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20437 # obtained by writing to the Free Software Foundation, Inc.,
20438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20441 # The names of the tagged configurations supported by this script.
20442 available_tags="CXX "
20444 # ### BEGIN LIBTOOL CONFIG
20446 # Which release of libtool.m4 was used?
20447 macro_version=$macro_version
20448 macro_revision=$macro_revision
20450 # Whether or not to build shared libraries.
20451 build_libtool_libs=$enable_shared
20453 # Whether or not to build static libraries.
20454 build_old_libs=$enable_static
20456 # What type of objects to build.
20459 # Whether or not to optimize for fast installation.
20460 fast_install=$enable_fast_install
20462 # Shell to use when invoking shell scripts.
20465 # An echo program that protects backslashes.
20468 # The PATH separator for the build system.
20469 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20472 host_alias=$host_alias
20476 # The build system.
20477 build_alias=$build_alias
20481 # A sed program that does not truncate output.
20484 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20485 Xsed="\$SED -e 1s/^X//"
20487 # A grep program that handles long lines.
20493 # A literal string matcher.
20496 # A BSD- or MS-compatible name lister.
20499 # Whether we need soft or hard links.
20502 # What is the maximum length of a command?
20503 max_cmd_len=$max_cmd_len
20505 # Object file suffix (normally "o").
20508 # Executable file suffix (normally "").
20511 # whether the shell understands "unset".
20514 # turn spaces into newlines.
20517 # turn newlines into spaces.
20520 # convert \$build file names to \$host format.
20521 to_host_file_cmd=$lt_cv_to_host_file_cmd
20523 # convert \$build files to toolchain format.
20524 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20526 # An object symbol dumper.
20527 OBJDUMP=$lt_OBJDUMP
20529 # Method to check whether dependent libraries are shared objects.
20530 deplibs_check_method=$lt_deplibs_check_method
20532 # Command to use when deplibs_check_method = "file_magic".
20533 file_magic_cmd=$lt_file_magic_cmd
20535 # How to find potential files when deplibs_check_method = "file_magic".
20536 file_magic_glob=$lt_file_magic_glob
20538 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20539 want_nocaseglob=$lt_want_nocaseglob
20541 # DLL creation program.
20542 DLLTOOL=$lt_DLLTOOL
20544 # Command to associate shared and link libraries.
20545 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20550 # Flags to create an archive.
20551 AR_FLAGS=$lt_AR_FLAGS
20553 # How to feed a file listing to the archiver.
20554 archiver_list_spec=$lt_archiver_list_spec
20556 # A symbol stripping program.
20559 # Commands used to install an old-style archive.
20561 old_postinstall_cmds=$lt_old_postinstall_cmds
20562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20564 # Whether to use a lock for old archive extraction.
20565 lock_old_archive_extraction=$lock_old_archive_extraction
20570 # LTCC compiler flags.
20571 LTCFLAGS=$lt_CFLAGS
20573 # Take the output of nm and produce a listing of raw symbols and C names.
20574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20576 # Transform the output of nm in a proper C declaration.
20577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20579 # Transform the output of nm in a C name address pair.
20580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20582 # Transform the output of nm in a C name address pair when lib prefix is needed.
20583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20585 # Specify filename containing input files for \$NM.
20586 nm_file_list_spec=$lt_nm_file_list_spec
20588 # The root where to search for dependent libraries,and in which our libraries should be installed.
20589 lt_sysroot=$lt_sysroot
20591 # The name of the directory that contains temporary libtool files.
20594 # Used to examine libraries when file_magic_cmd begins with "file".
20595 MAGIC_CMD=$MAGIC_CMD
20597 # Must we lock files when doing compilation?
20598 need_locks=$lt_need_locks
20601 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20604 DSYMUTIL=$lt_DSYMUTIL
20606 # Tool to change global to local symbols on Mac OS X.
20609 # Tool to manipulate fat objects and archives on Mac OS X.
20612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20616 OTOOL64=$lt_OTOOL64
20618 # Old archive suffix (normally "a").
20621 # Shared library suffix (normally ".so").
20622 shrext_cmds=$lt_shrext_cmds
20624 # The commands to extract the exported symbol list from a shared archive.
20625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20627 # Variables whose values should be saved in libtool wrapper scripts and
20628 # restored at link time.
20629 variables_saved_for_relink=$lt_variables_saved_for_relink
20631 # Do we need the "lib" prefix for modules?
20632 need_lib_prefix=$need_lib_prefix
20634 # Do we need a version for libraries?
20635 need_version=$need_version
20637 # Library versioning type.
20638 version_type=$version_type
20640 # Shared library runtime path variable.
20641 runpath_var=$runpath_var
20643 # Shared library path variable.
20644 shlibpath_var=$shlibpath_var
20646 # Is shlibpath searched before the hard-coded library search path?
20647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20649 # Format of library name prefix.
20650 libname_spec=$lt_libname_spec
20652 # List of archive names. First name is the real one, the rest are links.
20653 # The last name is the one that the linker finds with -lNAME
20654 library_names_spec=$lt_library_names_spec
20656 # The coded name of the library, if different from the real name.
20657 soname_spec=$lt_soname_spec
20659 # Permission mode override for installation of shared libraries.
20660 install_override_mode=$lt_install_override_mode
20662 # Command to use after installation of a shared archive.
20663 postinstall_cmds=$lt_postinstall_cmds
20665 # Command to use after uninstallation of a shared archive.
20666 postuninstall_cmds=$lt_postuninstall_cmds
20668 # Commands used to finish a libtool library installation in a directory.
20669 finish_cmds=$lt_finish_cmds
20671 # As "finish_cmds", except a single script fragment to be evaled but
20673 finish_eval=$lt_finish_eval
20675 # Whether we should hardcode library paths into libraries.
20676 hardcode_into_libs=$hardcode_into_libs
20678 # Compile-time system search path for libraries.
20679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20681 # Run-time system search path for libraries.
20682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20684 # Whether dlopen is supported.
20685 dlopen_support=$enable_dlopen
20687 # Whether dlopen of programs is supported.
20688 dlopen_self=$enable_dlopen_self
20690 # Whether dlopen of statically linked programs is supported.
20691 dlopen_self_static=$enable_dlopen_self_static
20693 # Commands to strip libraries.
20694 old_striplib=$lt_old_striplib
20695 striplib=$lt_striplib
20698 # The linker used to build libraries.
20701 # How to create reloadable object files.
20702 reload_flag=$lt_reload_flag
20703 reload_cmds=$lt_reload_cmds
20705 # Commands used to build an old-style archive.
20706 old_archive_cmds=$lt_old_archive_cmds
20708 # A language specific compiler.
20711 # Is the compiler the GNU compiler?
20714 # Compiler flag to turn off builtin functions.
20715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20717 # Additional compiler flags for building library objects.
20718 pic_flag=$lt_lt_prog_compiler_pic
20720 # How to pass a linker flag through the compiler.
20721 wl=$lt_lt_prog_compiler_wl
20723 # Compiler flag to prevent dynamic linking.
20724 link_static_flag=$lt_lt_prog_compiler_static
20726 # Does compiler simultaneously support -c and -o options?
20727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20729 # Whether or not to add -lc for building shared libraries.
20730 build_libtool_need_lc=$archive_cmds_need_lc
20732 # Whether or not to disallow shared libs when runtime libs are static.
20733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20735 # Compiler flag to allow reflexive dlopens.
20736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20738 # Compiler flag to generate shared objects directly from archives.
20739 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20741 # Whether the compiler copes with passing no objects directly.
20742 compiler_needs_object=$lt_compiler_needs_object
20744 # Create an old-style archive from a shared archive.
20745 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20747 # Create a temporary old-style archive to link instead of a shared archive.
20748 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20750 # Commands used to build a shared archive.
20751 archive_cmds=$lt_archive_cmds
20752 archive_expsym_cmds=$lt_archive_expsym_cmds
20754 # Commands used to build a loadable module if different from building
20755 # a shared archive.
20756 module_cmds=$lt_module_cmds
20757 module_expsym_cmds=$lt_module_expsym_cmds
20759 # Whether we are building with GNU ld or not.
20760 with_gnu_ld=$lt_with_gnu_ld
20762 # Flag that allows shared libraries with undefined symbols to be built.
20763 allow_undefined_flag=$lt_allow_undefined_flag
20765 # Flag that enforces no undefined symbols.
20766 no_undefined_flag=$lt_no_undefined_flag
20768 # Flag to hardcode \$libdir into a binary during linking.
20769 # This must work even if \$libdir does not exist
20770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20772 # Whether we need a single "-rpath" flag with a separated argument.
20773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20776 # DIR into the resulting binary.
20777 hardcode_direct=$hardcode_direct
20779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20780 # DIR into the resulting binary and the resulting library dependency is
20781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20782 # library is relocated.
20783 hardcode_direct_absolute=$hardcode_direct_absolute
20785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20786 # into the resulting binary.
20787 hardcode_minus_L=$hardcode_minus_L
20789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20790 # into the resulting binary.
20791 hardcode_shlibpath_var=$hardcode_shlibpath_var
20793 # Set to "yes" if building a shared library automatically hardcodes DIR
20794 # into the library and all subsequent libraries and executables linked
20796 hardcode_automatic=$hardcode_automatic
20798 # Set to yes if linker adds runtime paths of dependent libraries
20799 # to runtime path list.
20800 inherit_rpath=$inherit_rpath
20802 # Whether libtool must link a program against all its dependency libraries.
20803 link_all_deplibs=$link_all_deplibs
20805 # Set to "yes" if exported symbols are required.
20806 always_export_symbols=$always_export_symbols
20808 # The commands to list exported symbols.
20809 export_symbols_cmds=$lt_export_symbols_cmds
20811 # Symbols that should not be listed in the preloaded symbols.
20812 exclude_expsyms=$lt_exclude_expsyms
20814 # Symbols that must always be exported.
20815 include_expsyms=$lt_include_expsyms
20817 # Commands necessary for linking programs (against libraries) with templates.
20818 prelink_cmds=$lt_prelink_cmds
20820 # Commands necessary for finishing linking programs.
20821 postlink_cmds=$lt_postlink_cmds
20823 # Specify filename containing input files.
20824 file_list_spec=$lt_file_list_spec
20826 # How to hardcode a shared library path into an executable.
20827 hardcode_action=$hardcode_action
20829 # The directories searched by this compiler when creating a shared library.
20830 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20832 # Dependencies to place before and after the objects being linked to
20833 # create a shared library.
20834 predep_objects=$lt_predep_objects
20835 postdep_objects=$lt_postdep_objects
20836 predeps=$lt_predeps
20837 postdeps=$lt_postdeps
20839 # The library search path used internally by the compiler when linking
20840 # a shared library.
20841 compiler_lib_search_path=$lt_compiler_lib_search_path
20843 # ### END LIBTOOL CONFIG
20849 cat <<\_LT_EOF >> "$cfgfile"
20850 # AIX sometimes has problems with the GCC collect2 program. For some
20851 # reason, if we set the COLLECT_NAMES environment variable, the problems
20852 # vanish in a puff of smoke.
20853 if test "X${COLLECT_NAMES+set}" != Xset; then
20855 export COLLECT_NAMES
20862 ltmain="$ac_aux_dir/ltmain.sh"
20865 # We use sed instead of cat because bash on DJGPP gets confused if
20866 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20867 # text mode, it properly converts lines to CR/LF. This bash problem
20868 # is reportedly fixed, but why not run on old versions too?
20869 sed '$q' "$ltmain" >> "$cfgfile" \
20870 || (rm -f "$cfgfile"; exit 1)
20872 if test x"$xsi_shell" = xyes; then
20873 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20877 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20878 \ * ) func_dirname_result="${3}" ;;\
20880 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20881 && mv -f "$cfgfile.tmp" "$cfgfile" \
20882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20883 test 0 -eq $? || _lt_function_replace_fail=:
20886 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20889 \ func_basename_result="${1##*/}"\
20890 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20891 && mv -f "$cfgfile.tmp" "$cfgfile" \
20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20893 test 0 -eq $? || _lt_function_replace_fail=:
20896 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20897 func_dirname_and_basename ()\
20900 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20901 \ * ) func_dirname_result="${3}" ;;\
20903 \ func_basename_result="${1##*/}"\
20904 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20905 && mv -f "$cfgfile.tmp" "$cfgfile" \
20906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20907 test 0 -eq $? || _lt_function_replace_fail=:
20910 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20913 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20914 \ # positional parameters, so assign one to ordinary parameter first.\
20915 \ func_stripname_result=${3}\
20916 \ func_stripname_result=${func_stripname_result#"${1}"}\
20917 \ func_stripname_result=${func_stripname_result%"${2}"}\
20918 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20919 && mv -f "$cfgfile.tmp" "$cfgfile" \
20920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20921 test 0 -eq $? || _lt_function_replace_fail=:
20924 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20925 func_split_long_opt ()\
20927 \ func_split_long_opt_name=${1%%=*}\
20928 \ func_split_long_opt_arg=${1#*=}\
20929 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20930 && mv -f "$cfgfile.tmp" "$cfgfile" \
20931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20932 test 0 -eq $? || _lt_function_replace_fail=:
20935 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20936 func_split_short_opt ()\
20938 \ func_split_short_opt_arg=${1#??}\
20939 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20940 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20941 && mv -f "$cfgfile.tmp" "$cfgfile" \
20942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20943 test 0 -eq $? || _lt_function_replace_fail=:
20946 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20950 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20951 \ *) func_lo2o_result=${1} ;;\
20953 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20954 && mv -f "$cfgfile.tmp" "$cfgfile" \
20955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20956 test 0 -eq $? || _lt_function_replace_fail=:
20959 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20962 func_xform_result=${1%.*}.lo\
20963 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20964 && mv -f "$cfgfile.tmp" "$cfgfile" \
20965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20966 test 0 -eq $? || _lt_function_replace_fail=:
20969 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20972 func_arith_result=$(( $* ))\
20973 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20974 && mv -f "$cfgfile.tmp" "$cfgfile" \
20975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20976 test 0 -eq $? || _lt_function_replace_fail=:
20979 sed -e '/^func_len ()$/,/^} # func_len /c\
20982 func_len_result=${#1}\
20983 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20984 && mv -f "$cfgfile.tmp" "$cfgfile" \
20985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20986 test 0 -eq $? || _lt_function_replace_fail=:
20990 if test x"$lt_shell_append" = xyes; then
20991 sed -e '/^func_append ()$/,/^} # func_append /c\
20994 eval "${1}+=\\${2}"\
20995 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20996 && mv -f "$cfgfile.tmp" "$cfgfile" \
20997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20998 test 0 -eq $? || _lt_function_replace_fail=:
21001 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21002 func_append_quoted ()\
21004 \ func_quote_for_eval "${2}"\
21005 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21006 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21007 && mv -f "$cfgfile.tmp" "$cfgfile" \
21008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21009 test 0 -eq $? || _lt_function_replace_fail=:
21012 # Save a `func_append' function call where possible by direct use of '+='
21013 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21014 && mv -f "$cfgfile.tmp" "$cfgfile" \
21015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21016 test 0 -eq $? || _lt_function_replace_fail=:
21018 # Save a `func_append' function call even when '+=' is not available
21019 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21020 && mv -f "$cfgfile.tmp" "$cfgfile" \
21021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21022 test 0 -eq $? || _lt_function_replace_fail=:
21025 if test x"$_lt_function_replace_fail" = x":"; then
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21027 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21031 mv -f "$cfgfile" "$ofile" ||
21032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21036 cat <<_LT_EOF >> "$ofile"
21038 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21040 # The linker used to build libraries.
21043 # How to create reloadable object files.
21044 reload_flag=$lt_reload_flag_CXX
21045 reload_cmds=$lt_reload_cmds_CXX
21047 # Commands used to build an old-style archive.
21048 old_archive_cmds=$lt_old_archive_cmds_CXX
21050 # A language specific compiler.
21051 CC=$lt_compiler_CXX
21053 # Is the compiler the GNU compiler?
21056 # Compiler flag to turn off builtin functions.
21057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21059 # Additional compiler flags for building library objects.
21060 pic_flag=$lt_lt_prog_compiler_pic_CXX
21062 # How to pass a linker flag through the compiler.
21063 wl=$lt_lt_prog_compiler_wl_CXX
21065 # Compiler flag to prevent dynamic linking.
21066 link_static_flag=$lt_lt_prog_compiler_static_CXX
21068 # Does compiler simultaneously support -c and -o options?
21069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21071 # Whether or not to add -lc for building shared libraries.
21072 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21074 # Whether or not to disallow shared libs when runtime libs are static.
21075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21077 # Compiler flag to allow reflexive dlopens.
21078 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21080 # Compiler flag to generate shared objects directly from archives.
21081 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21083 # Whether the compiler copes with passing no objects directly.
21084 compiler_needs_object=$lt_compiler_needs_object_CXX
21086 # Create an old-style archive from a shared archive.
21087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21089 # Create a temporary old-style archive to link instead of a shared archive.
21090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21092 # Commands used to build a shared archive.
21093 archive_cmds=$lt_archive_cmds_CXX
21094 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21096 # Commands used to build a loadable module if different from building
21097 # a shared archive.
21098 module_cmds=$lt_module_cmds_CXX
21099 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21101 # Whether we are building with GNU ld or not.
21102 with_gnu_ld=$lt_with_gnu_ld_CXX
21104 # Flag that allows shared libraries with undefined symbols to be built.
21105 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21107 # Flag that enforces no undefined symbols.
21108 no_undefined_flag=$lt_no_undefined_flag_CXX
21110 # Flag to hardcode \$libdir into a binary during linking.
21111 # This must work even if \$libdir does not exist
21112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21114 # Whether we need a single "-rpath" flag with a separated argument.
21115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21118 # DIR into the resulting binary.
21119 hardcode_direct=$hardcode_direct_CXX
21121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21122 # DIR into the resulting binary and the resulting library dependency is
21123 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21124 # library is relocated.
21125 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21127 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21128 # into the resulting binary.
21129 hardcode_minus_L=$hardcode_minus_L_CXX
21131 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21132 # into the resulting binary.
21133 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21135 # Set to "yes" if building a shared library automatically hardcodes DIR
21136 # into the library and all subsequent libraries and executables linked
21138 hardcode_automatic=$hardcode_automatic_CXX
21140 # Set to yes if linker adds runtime paths of dependent libraries
21141 # to runtime path list.
21142 inherit_rpath=$inherit_rpath_CXX
21144 # Whether libtool must link a program against all its dependency libraries.
21145 link_all_deplibs=$link_all_deplibs_CXX
21147 # Set to "yes" if exported symbols are required.
21148 always_export_symbols=$always_export_symbols_CXX
21150 # The commands to list exported symbols.
21151 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21153 # Symbols that should not be listed in the preloaded symbols.
21154 exclude_expsyms=$lt_exclude_expsyms_CXX
21156 # Symbols that must always be exported.
21157 include_expsyms=$lt_include_expsyms_CXX
21159 # Commands necessary for linking programs (against libraries) with templates.
21160 prelink_cmds=$lt_prelink_cmds_CXX
21162 # Commands necessary for finishing linking programs.
21163 postlink_cmds=$lt_postlink_cmds_CXX
21165 # Specify filename containing input files.
21166 file_list_spec=$lt_file_list_spec_CXX
21168 # How to hardcode a shared library path into an executable.
21169 hardcode_action=$hardcode_action_CXX
21171 # The directories searched by this compiler when creating a shared library.
21172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21174 # Dependencies to place before and after the objects being linked to
21175 # create a shared library.
21176 predep_objects=$lt_predep_objects_CXX
21177 postdep_objects=$lt_postdep_objects_CXX
21178 predeps=$lt_predeps_CXX
21179 postdeps=$lt_postdeps_CXX
21181 # The library search path used internally by the compiler when linking
21182 # a shared library.
21183 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21185 # ### END LIBTOOL TAG CONFIG: CXX
21196 ac_clean_files=$ac_clean_files_save
21198 test $ac_write_fail = 0 ||
21199 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21202 # configure is writing to config.log, and then calls config.status.
21203 # config.status does its own redirection, appending to config.log.
21204 # Unfortunately, on DOS this fails, as config.log is still kept open
21205 # by configure, so config.status won't be able to write to it; its
21206 # output is simply discarded. So we exec the FD to /dev/null,
21207 # effectively closing config.log, so it can be properly (re)opened and
21208 # appended to by config.status. When coming back to configure, we
21209 # need to make the FD available again.
21210 if test "$no_create" != yes; then
21212 ac_config_status_args=
21213 test "$silent" = yes &&
21214 ac_config_status_args="$ac_config_status_args --quiet"
21216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21219 # would make configure fail if this is the last instruction.
21220 $ac_cs_success || as_fn_exit 1
21222 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21224 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21228 # ==============================================
21229 # Display final informations about configuration
21230 # ==============================================
21231 { $as_echo "$as_me:${as_lineno-$LINENO}:
21232 ==============================================================================
21233 Environment settings:
21235 CXXFLAGS: ${CXXFLAGS}
21236 LDFLAGS: ${LDFLAGS}
21237 Build configuration:
21238 cups-config: ${with_cups_config}
21239 font directory: ${sysconfdir}/${FONTDIR}
21240 init directory: ${INITDDIR}
21241 cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
21242 gs-path: ${with_gs_path}
21243 imagefilters: ${enable_imagefilters}
21245 pdftocairo-path: ${with_pdftocairo_path}
21246 pdftops: ${with_pdftops}
21247 pdftops-path: ${with_pdftops_path}
21250 php-config: ${with_php_config}
21251 test-font: ${with_test_font_path}
21253 avahi: ${enable_avahi}
21254 browsing: ${with_browseremoteprotocols}
21255 werror: ${enable_werror}
21256 ==============================================================================
21259 ==============================================================================
21260 Environment settings:
21262 CXXFLAGS: ${CXXFLAGS}
21263 LDFLAGS: ${LDFLAGS}
21264 Build configuration:
21265 cups-config: ${with_cups_config}
21266 font directory: ${sysconfdir}/${FONTDIR}
21267 init directory: ${INITDDIR}
21268 cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
21269 gs-path: ${with_gs_path}
21270 imagefilters: ${enable_imagefilters}
21272 pdftocairo-path: ${with_pdftocairo_path}
21273 pdftops: ${with_pdftops}
21274 pdftops-path: ${with_pdftops_path}
21277 php-config: ${with_php_config}
21278 test-font: ${with_test_font_path}
21280 avahi: ${enable_avahi}
21281 browsing: ${with_browseremoteprotocols}
21282 werror: ${enable_werror}
21283 ==============================================================================