2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for poppler 0.16.3.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
test \$(( 1 + 1 )) = 2 || exit 1
203
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207
PATH=/empty FPATH=/empty; export PATH FPATH
208
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=poppler
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
306
# as_fn_set_status STATUS
307
# -----------------------
308
# Set $? to STATUS, without forking.
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Create "$as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
# as_fn_executable_p FILE
373
# -----------------------
374
# Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} # as_fn_executable_p
379
# as_fn_append VAR VALUE
380
# ----------------------
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
382
# advantage of any shell optimizations that allow amortized linear growth over
383
# repeated appends, instead of the typical quadratic growth present in naive
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
401
# must be portable across $(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
416
# ----------------------------------------
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
# script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in #(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='poppler'
593
PACKAGE_TARNAME='poppler'
594
PACKAGE_VERSION='0.16.3'
595
PACKAGE_STRING='poppler 0.16.3'
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=poppler'
599
# Factoring default headers for most tests.
600
ac_includes_default="\
602
#ifdef HAVE_SYS_TYPES_H
603
# include <sys/types.h>
605
#ifdef HAVE_SYS_STAT_H
606
# include <sys/stat.h>
612
# ifdef HAVE_STDLIB_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622
#ifdef HAVE_STRINGS_H
623
# include <strings.h>
625
#ifdef HAVE_INTTYPES_H
626
# include <inttypes.h>
635
ac_subst_vars='am__EXEEXT_FALSE
640
POPPLER_MICRO_VERSION
641
POPPLER_MINOR_VERSION
642
POPPLER_MAJOR_VERSION
651
BUILD_ABIWORD_OUTPUT_FALSE
652
BUILD_ABIWORD_OUTPUT_TRUE
659
BUILD_POPPLER_CPP_FALSE
660
BUILD_POPPLER_CPP_TRUE
663
BUILD_POPPLER_QT4_FALSE
664
BUILD_POPPLER_QT4_TRUE
667
POPPLER_QT4_TEST_LIBS
668
POPPLER_QT4_TEST_CFLAGS
671
BUILD_POPPLER_QT_FALSE
672
BUILD_POPPLER_QT_TRUE
677
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES
678
POPPLER_GLIB_DISABLE_DEPRECATED
685
GTK_DOC_USE_REBASE_FALSE
686
GTK_DOC_USE_REBASE_TRUE
687
GTK_DOC_USE_LIBTOOL_FALSE
688
GTK_DOC_USE_LIBTOOL_TRUE
689
GTK_DOC_BUILD_PDF_FALSE
690
GTK_DOC_BUILD_PDF_TRUE
691
GTK_DOC_BUILD_HTML_FALSE
692
GTK_DOC_BUILD_HTML_TRUE
700
BUILD_POPPLER_GLIB_FALSE
701
BUILD_POPPLER_GLIB_TRUE
703
HAVE_INTROSPECTION_FALSE
704
HAVE_INTROSPECTION_TRUE
705
INTROSPECTION_MAKEFILE
708
INTROSPECTION_TYPELIBDIR
710
INTROSPECTION_GENERATE
711
INTROSPECTION_COMPILER
712
INTROSPECTION_SCANNER
717
BUILD_CAIRO_OUTPUT_FALSE
718
BUILD_CAIRO_OUTPUT_TRUE
722
BUILD_SPLASH_OUTPUT_FALSE
723
BUILD_SPLASH_OUTPUT_TRUE
724
BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE
725
BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE
744
BUILD_LIBOPENJPEG_FALSE
745
BUILD_LIBOPENJPEG_TRUE
753
ENABLE_XPDF_HEADERS_FALSE
754
ENABLE_XPDF_HEADERS_TRUE
829
INSTALL_STRIP_PROGRAM
871
program_transform_name
884
enable_option_checking
886
enable_dependency_tracking
895
enable_single_precision
905
with_font_configuration
920
enable_abiword_output
922
enable_compile_warnings
925
ac_precious_vars='build_alias
958
POPPLER_QT4_TEST_CFLAGS
959
POPPLER_QT4_TEST_LIBS
968
# Initialize some variables set by options.
970
ac_init_version=false
971
ac_unrecognized_opts=
973
# The variables have the same names as the options, with
974
# dashes changed to underlines.
982
program_transform_name=s,x,x,
990
# Installation directory options.
991
# These are left unexpanded so users can "make install exec_prefix=/foo"
992
# and all the variables that are supposed to be based on exec_prefix
993
# by default will actually change.
994
# Use braces instead of parens because sh, perl, etc. also accept them.
995
# (The list follows the same order as the GNU Coding Standards.)
996
bindir='${exec_prefix}/bin'
997
sbindir='${exec_prefix}/sbin'
998
libexecdir='${exec_prefix}/libexec'
999
datarootdir='${prefix}/share'
1000
datadir='${datarootdir}'
1001
sysconfdir='${prefix}/etc'
1002
sharedstatedir='${prefix}/com'
1003
localstatedir='${prefix}/var'
1004
includedir='${prefix}/include'
1005
oldincludedir='/usr/include'
1006
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1007
infodir='${datarootdir}/info'
1012
libdir='${exec_prefix}/lib'
1013
localedir='${datarootdir}/locale'
1014
mandir='${datarootdir}/man'
1020
# If the previous option needs an argument, assign it.
1021
if test -n "$ac_prev"; then
1022
eval $ac_prev=\$ac_option
1028
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033
# Accept the important Cygnus configure options, so we can diagnose typos.
1035
case $ac_dashdash$ac_option in
1039
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1041
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042
bindir=$ac_optarg ;;
1044
-build | --build | --buil | --bui | --bu)
1045
ac_prev=build_alias ;;
1046
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047
build_alias=$ac_optarg ;;
1049
-cache-file | --cache-file | --cache-fil | --cache-fi \
1050
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051
ac_prev=cache_file ;;
1052
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054
cache_file=$ac_optarg ;;
1056
--config-cache | -C)
1057
cache_file=config.cache ;;
1059
-datadir | --datadir | --datadi | --datad)
1061
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1062
datadir=$ac_optarg ;;
1064
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065
| --dataroo | --dataro | --datar)
1066
ac_prev=datarootdir ;;
1067
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069
datarootdir=$ac_optarg ;;
1071
-disable-* | --disable-*)
1072
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073
# Reject names that are not valid shell variable names.
1074
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075
as_fn_error $? "invalid feature name: $ac_useropt"
1076
ac_useropt_orig=$ac_useropt
1077
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078
case $ac_user_opts in
1080
"enable_$ac_useropt"
1082
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083
ac_unrecognized_sep=', ';;
1085
eval enable_$ac_useropt=no ;;
1087
-docdir | --docdir | --docdi | --doc | --do)
1089
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090
docdir=$ac_optarg ;;
1092
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095
dvidir=$ac_optarg ;;
1097
-enable-* | --enable-*)
1098
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099
# Reject names that are not valid shell variable names.
1100
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101
as_fn_error $? "invalid feature name: $ac_useropt"
1102
ac_useropt_orig=$ac_useropt
1103
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104
case $ac_user_opts in
1106
"enable_$ac_useropt"
1108
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109
ac_unrecognized_sep=', ';;
1111
eval enable_$ac_useropt=\$ac_optarg ;;
1113
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115
| --exec | --exe | --ex)
1116
ac_prev=exec_prefix ;;
1117
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119
| --exec=* | --exe=* | --ex=*)
1120
exec_prefix=$ac_optarg ;;
1122
-gas | --gas | --ga | --g)
1123
# Obsolete; use --with-gas.
1126
-help | --help | --hel | --he | -h)
1127
ac_init_help=long ;;
1128
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129
ac_init_help=recursive ;;
1130
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131
ac_init_help=short ;;
1133
-host | --host | --hos | --ho)
1134
ac_prev=host_alias ;;
1135
-host=* | --host=* | --hos=* | --ho=*)
1136
host_alias=$ac_optarg ;;
1138
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1140
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1142
htmldir=$ac_optarg ;;
1144
-includedir | --includedir | --includedi | --included | --include \
1145
| --includ | --inclu | --incl | --inc)
1146
ac_prev=includedir ;;
1147
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148
| --includ=* | --inclu=* | --incl=* | --inc=*)
1149
includedir=$ac_optarg ;;
1151
-infodir | --infodir | --infodi | --infod | --info | --inf)
1153
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154
infodir=$ac_optarg ;;
1156
-libdir | --libdir | --libdi | --libd)
1158
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1159
libdir=$ac_optarg ;;
1161
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162
| --libexe | --libex | --libe)
1163
ac_prev=libexecdir ;;
1164
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165
| --libexe=* | --libex=* | --libe=*)
1166
libexecdir=$ac_optarg ;;
1168
-localedir | --localedir | --localedi | --localed | --locale)
1169
ac_prev=localedir ;;
1170
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171
localedir=$ac_optarg ;;
1173
-localstatedir | --localstatedir | --localstatedi | --localstated \
1174
| --localstate | --localstat | --localsta | --localst | --locals)
1175
ac_prev=localstatedir ;;
1176
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178
localstatedir=$ac_optarg ;;
1180
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1182
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183
mandir=$ac_optarg ;;
1185
-nfp | --nfp | --nf)
1186
# Obsolete; use --without-fp.
1189
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190
| --no-cr | --no-c | -n)
1193
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199
| --oldin | --oldi | --old | --ol | --o)
1200
ac_prev=oldincludedir ;;
1201
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204
oldincludedir=$ac_optarg ;;
1206
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1208
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209
prefix=$ac_optarg ;;
1211
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1212
| --program-pre | --program-pr | --program-p)
1213
ac_prev=program_prefix ;;
1214
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1215
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216
program_prefix=$ac_optarg ;;
1218
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1219
| --program-suf | --program-su | --program-s)
1220
ac_prev=program_suffix ;;
1221
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1222
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223
program_suffix=$ac_optarg ;;
1225
-program-transform-name | --program-transform-name \
1226
| --program-transform-nam | --program-transform-na \
1227
| --program-transform-n | --program-transform- \
1228
| --program-transform | --program-transfor \
1229
| --program-transfo | --program-transf \
1230
| --program-trans | --program-tran \
1231
| --progr-tra | --program-tr | --program-t)
1232
ac_prev=program_transform_name ;;
1233
-program-transform-name=* | --program-transform-name=* \
1234
| --program-transform-nam=* | --program-transform-na=* \
1235
| --program-transform-n=* | --program-transform-=* \
1236
| --program-transform=* | --program-transfor=* \
1237
| --program-transfo=* | --program-transf=* \
1238
| --program-trans=* | --program-tran=* \
1239
| --progr-tra=* | --program-tr=* | --program-t=*)
1240
program_transform_name=$ac_optarg ;;
1242
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1244
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245
pdfdir=$ac_optarg ;;
1247
-psdir | --psdir | --psdi | --psd | --ps)
1249
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253
| -silent | --silent | --silen | --sile | --sil)
1256
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260
sbindir=$ac_optarg ;;
1262
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1263
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264
| --sharedst | --shareds | --shared | --share | --shar \
1266
ac_prev=sharedstatedir ;;
1267
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271
sharedstatedir=$ac_optarg ;;
1273
-site | --site | --sit)
1275
-site=* | --site=* | --sit=*)
1278
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281
srcdir=$ac_optarg ;;
1283
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284
| --syscon | --sysco | --sysc | --sys | --sy)
1285
ac_prev=sysconfdir ;;
1286
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288
sysconfdir=$ac_optarg ;;
1290
-target | --target | --targe | --targ | --tar | --ta | --t)
1291
ac_prev=target_alias ;;
1292
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293
target_alias=$ac_optarg ;;
1295
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1298
-version | --version | --versio | --versi | --vers | -V)
1299
ac_init_version=: ;;
1302
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303
# Reject names that are not valid shell variable names.
1304
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305
as_fn_error $? "invalid package name: $ac_useropt"
1306
ac_useropt_orig=$ac_useropt
1307
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308
case $ac_user_opts in
1312
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313
ac_unrecognized_sep=', ';;
1315
eval with_$ac_useropt=\$ac_optarg ;;
1317
-without-* | --without-*)
1318
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319
# Reject names that are not valid shell variable names.
1320
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321
as_fn_error $? "invalid package name: $ac_useropt"
1322
ac_useropt_orig=$ac_useropt
1323
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324
case $ac_user_opts in
1328
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329
ac_unrecognized_sep=', ';;
1331
eval with_$ac_useropt=no ;;
1334
# Obsolete; use --with-x.
1337
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338
| --x-incl | --x-inc | --x-in | --x-i)
1339
ac_prev=x_includes ;;
1340
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342
x_includes=$ac_optarg ;;
1344
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1345
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346
ac_prev=x_libraries ;;
1347
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349
x_libraries=$ac_optarg ;;
1351
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1352
Try \`$0 --help' for more information"
1356
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357
# Reject names that are not valid shell variable names.
1358
case $ac_envvar in #(
1359
'' | [0-9]* | *[!_$as_cr_alnum]* )
1360
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362
eval $ac_envvar=\$ac_optarg
1363
export $ac_envvar ;;
1366
# FIXME: should be removed in autoconf 3.0.
1367
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376
if test -n "$ac_prev"; then
1377
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378
as_fn_error $? "missing argument to $ac_option"
1381
if test -n "$ac_unrecognized_opts"; then
1382
case $enable_option_checking in
1384
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1385
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389
# Check all directory arguments for consistency.
1390
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391
datadir sysconfdir sharedstatedir localstatedir includedir \
1392
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393
libdir localedir mandir
1395
eval ac_val=\$$ac_var
1396
# Remove trailing slashes.
1399
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400
eval $ac_var=\$ac_val;;
1402
# Be sure to have absolute directory names.
1404
[\\/$]* | ?:[\\/]* ) continue;;
1405
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410
# There might be people who depend on the old broken behavior: `$host'
1411
# used to hold the argument of --host etc.
1412
# FIXME: To remove some day.
1415
target=$target_alias
1417
# FIXME: To remove some day.
1418
if test "x$host_alias" != x; then
1419
if test "x$build_alias" = x; then
1420
cross_compiling=maybe
1421
elif test "x$build_alias" != "x$host_alias"; then
1427
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
test "$silent" = yes && exec 6>/dev/null
1432
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433
ac_ls_di=`ls -di .` &&
1434
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435
as_fn_error $? "working directory cannot be determined"
1436
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437
as_fn_error $? "pwd does not report name of working directory"
1440
# Find the source files, if location was not specified.
1441
if test -z "$srcdir"; then
1442
ac_srcdir_defaulted=yes
1443
# Try the directory containing this script, then the parent directory.
1444
ac_confdir=`$as_dirname -- "$as_myself" ||
1445
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446
X"$as_myself" : 'X\(//\)[^/]' \| \
1447
X"$as_myself" : 'X\(//\)$' \| \
1448
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449
$as_echo X"$as_myself" |
1450
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468
if test ! -r "$srcdir/$ac_unique_file"; then
1472
ac_srcdir_defaulted=no
1474
if test ! -r "$srcdir/$ac_unique_file"; then
1475
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482
# When building in place, set srcdir=.
1483
if test "$ac_abs_confdir" = "$ac_pwd"; then
1486
# Remove unnecessary trailing slashes from srcdir.
1487
# Double slashes in file names in object file debugging info
1488
# mess up M-x gdb in Emacs.
1490
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492
for ac_var in $ac_precious_vars; do
1493
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494
eval ac_env_${ac_var}_value=\$${ac_var}
1495
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500
# Report the --help message.
1502
if test "$ac_init_help" = "long"; then
1503
# Omit some internal or obsolete options to make the list less imposing.
1504
# This message is too long to be a string in the A/UX 3.1 sh.
1506
\`configure' configures poppler 0.16.3 to adapt to many kinds of systems.
1508
Usage: $0 [OPTION]... [VAR=VALUE]...
1510
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511
VAR=VALUE. See below for descriptions of some of the useful variables.
1513
Defaults for the options are specified in brackets.
1516
-h, --help display this help and exit
1517
--help=short display options specific to this package
1518
--help=recursive display the short help of all the included packages
1519
-V, --version display version information and exit
1520
-q, --quiet, --silent do not print \`checking ...' messages
1521
--cache-file=FILE cache test results in FILE [disabled]
1522
-C, --config-cache alias for \`--cache-file=config.cache'
1523
-n, --no-create do not create output files
1524
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1526
Installation directories:
1527
--prefix=PREFIX install architecture-independent files in PREFIX
1528
[$ac_default_prefix]
1529
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532
By default, \`make install' will install all the files in
1533
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535
for instance \`--prefix=\$HOME'.
1537
For better control, use the options below.
1539
Fine tuning of the installation directories:
1540
--bindir=DIR user executables [EPREFIX/bin]
1541
--sbindir=DIR system admin executables [EPREFIX/sbin]
1542
--libexecdir=DIR program executables [EPREFIX/libexec]
1543
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546
--libdir=DIR object code libraries [EPREFIX/lib]
1547
--includedir=DIR C header files [PREFIX/include]
1548
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1549
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551
--infodir=DIR info documentation [DATAROOTDIR/info]
1552
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553
--mandir=DIR man documentation [DATAROOTDIR/man]
1554
--docdir=DIR documentation root [DATAROOTDIR/doc/poppler]
1555
--htmldir=DIR html documentation [DOCDIR]
1556
--dvidir=DIR dvi documentation [DOCDIR]
1557
--pdfdir=DIR pdf documentation [DOCDIR]
1558
--psdir=DIR ps documentation [DOCDIR]
1564
--program-prefix=PREFIX prepend PREFIX to installed program names
1565
--program-suffix=SUFFIX append SUFFIX to installed program names
1566
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569
--x-includes=DIR X include files are in DIR
1570
--x-libraries=DIR X library files are in DIR
1573
--build=BUILD configure for building on BUILD [guessed]
1574
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1578
if test -n "$ac_init_help"; then
1579
case $ac_init_help in
1580
short | recursive ) echo "Configuration of poppler 0.16.3:";;
1585
--disable-option-checking ignore unrecognized --enable/--with options
1586
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1587
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1588
--enable-silent-rules less verbose build output (undo: `make V=1')
1589
--disable-silent-rules verbose build output (undo: `make V=0')
1590
--disable-dependency-tracking speeds up one-time build
1591
--enable-dependency-tracking do not reject slow dependency extractors
1592
--enable-shared[=PKGS] build shared libraries [default=yes]
1593
--enable-static[=PKGS] build static libraries [default=yes]
1594
--enable-fast-install[=PKGS]
1595
optimize for fast installation [default=yes]
1596
--disable-libtool-lock avoid locking (might break parallel builds)
1597
--enable-xpdf-headers Install unsupported xpdf headers.
1598
--enable-single-precision use single precision arithmetic (instead of double precision) in the Splash backend
1599
--enable-fixedpoint use fixed point (instead of double precision) arithmetic in the Splash backend
1600
--disable-relocatable Hardcode the poppler library location (on Windows).
1601
--disable-libopenjpeg Don't build against libopenjpeg.
1602
--disable-largefile omit support for large files
1603
--enable-zlib Build with zlib
1604
--enable-libcurl Build with libcurl based HTTP support.
1605
--disable-libjpeg Don't build against libjpeg.
1606
--disable-libpng Do not build against libpng.
1607
--disable-splash-output Don't build the Splash graphics backend.
1608
--disable-cairo-output Don't build the cairo graphics backend.
1609
--disable-poppler-glib Don't compile poppler glib wrapper.
1610
--enable-introspection=[no/auto/yes]
1611
Enable introspection for this build
1612
--enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1613
--enable-gtk-doc-html build documentation in html format [[default=yes]]
1614
--enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1615
--disable-gdk Compile without gdk.
1616
--disable-poppler-qt Don't compile poppler qt wrapper.
1617
--disable-poppler-qt4 Don't compile poppler Qt4 wrapper.
1618
--disable-poppler-cpp Don't compile poppler cpp wrapper.
1619
--disable-gtk-test Don't compile GTK+ test program.
1620
--disable-abiword-output
1621
Don't build the abiword backend.
1622
--disable-utils Don't compile poppler command line utils.
1623
--enable-compile-warnings=[no/yes/kde]
1624
Turn on compiler warnings.
1626
--disable-cms Don't use color management system.
1629
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631
--with-pic try to use only PIC/non-PIC objects [default=use
1633
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1634
--with-sysroot=DIR Search for dependent libraries within DIR
1635
(or the compiler's sysroot if not specified).
1636
--with-x use the X Window System
1637
--with-font-configuration=fontconfig|win32
1638
Select font configuration backend
1639
--with-html-dir=PATH path to installed docs
1640
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1641
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1643
Some influential environment variables:
1644
CC C compiler command
1645
CFLAGS C compiler flags
1646
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647
nonstandard directory <lib dir>
1648
LIBS libraries to pass to the linker, e.g. -l<library>
1649
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650
you have headers in a nonstandard directory <include dir>
1652
CXX C++ compiler command
1653
CXXFLAGS C++ compiler flags
1654
CXXCPP C++ preprocessor
1655
PKG_CONFIG path to pkg-config utility
1657
directories to add to pkg-config's search path
1659
path overriding pkg-config's built-in search path
1660
XMKMF Path to xmkmf, Makefile generator for X Window System
1662
C compiler flags for LIBCURL, overriding pkg-config
1664
linker flags for LIBCURL, overriding pkg-config
1666
C compiler flags for LIBPNG, overriding pkg-config
1667
LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1669
C compiler flags for FONTCONFIG, overriding pkg-config
1671
linker flags for FONTCONFIG, overriding pkg-config
1673
C compiler flags for CAIRO, overriding pkg-config
1674
CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1676
C compiler flags for POPPLER_GLIB, overriding pkg-config
1678
linker flags for POPPLER_GLIB, overriding pkg-config
1679
GDK_CFLAGS C compiler flags for GDK, overriding pkg-config
1680
GDK_LIBS linker flags for GDK, overriding pkg-config
1682
C compiler flags for libqt3, overriding pkg-config
1683
libqt3_LIBS linker flags for libqt3, overriding pkg-config
1685
C compiler flags for POPPLER_QT4, overriding pkg-config
1687
linker flags for POPPLER_QT4, overriding pkg-config
1688
POPPLER_QT4_TEST_CFLAGS
1689
C compiler flags for POPPLER_QT4_TEST, overriding pkg-config
1690
POPPLER_QT4_TEST_LIBS
1691
linker flags for POPPLER_QT4_TEST, overriding pkg-config
1693
C compiler flags for GTK_TEST, overriding pkg-config
1695
linker flags for GTK_TEST, overriding pkg-config
1697
C compiler flags for ABIWORD, overriding pkg-config
1699
linker flags for ABIWORD, overriding pkg-config
1700
LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
1701
LCMS_LIBS linker flags for LCMS, overriding pkg-config
1703
Use these variables to override the choices made by `configure' or to help
1704
it to find libraries and programs with nonstandard names/locations.
1706
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>.
1711
if test "$ac_init_help" = "recursive"; then
1712
# If there are subdirs, report their specific --help.
1713
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714
test -d "$ac_dir" ||
1715
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723
# A ".." for each directory in $ac_dir_suffix.
1724
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725
case $ac_top_builddir_sub in
1726
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730
ac_abs_top_builddir=$ac_pwd
1731
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732
# for backward compatibility:
1733
ac_top_builddir=$ac_top_build_prefix
1736
.) # We are building in place.
1738
ac_top_srcdir=$ac_top_builddir_sub
1739
ac_abs_top_srcdir=$ac_pwd ;;
1740
[\\/]* | ?:[\\/]* ) # Absolute name.
1741
ac_srcdir=$srcdir$ac_dir_suffix;
1742
ac_top_srcdir=$srcdir
1743
ac_abs_top_srcdir=$srcdir ;;
1745
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746
ac_top_srcdir=$ac_top_build_prefix$srcdir
1747
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751
cd "$ac_dir" || { ac_status=$?; continue; }
1752
# Check for guested configure.
1753
if test -f "$ac_srcdir/configure.gnu"; then
1755
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756
elif test -f "$ac_srcdir/configure"; then
1758
$SHELL "$ac_srcdir/configure" --help=recursive
1760
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762
cd "$ac_pwd" || { ac_status=$?; break; }
1766
test -n "$ac_init_help" && exit $ac_status
1767
if $ac_init_version; then
1769
poppler configure 0.16.3
1770
generated by GNU Autoconf 2.69
1772
Copyright (C) 2012 Free Software Foundation, Inc.
1773
This configure script is free software; the Free Software Foundation
1774
gives unlimited permission to copy, distribute and modify it.
1779
## ------------------------ ##
1780
## Autoconf initialization. ##
1781
## ------------------------ ##
1783
# ac_fn_c_try_compile LINENO
1784
# --------------------------
1785
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1786
ac_fn_c_try_compile ()
1788
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789
rm -f conftest.$ac_objext
1790
if { { ac_try="$ac_compile"
1792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793
*) ac_try_echo=$ac_try;;
1795
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796
$as_echo "$ac_try_echo"; } >&5
1797
(eval "$ac_compile") 2>conftest.err
1799
if test -s conftest.err; then
1800
grep -v '^ *+' conftest.err >conftest.er1
1801
cat conftest.er1 >&5
1802
mv -f conftest.er1 conftest.err
1804
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805
test $ac_status = 0; } && {
1806
test -z "$ac_c_werror_flag" ||
1807
test ! -s conftest.err
1808
} && test -s conftest.$ac_objext; then :
1811
$as_echo "$as_me: failed program was:" >&5
1812
sed 's/^/| /' conftest.$ac_ext >&5
1816
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
as_fn_set_status $ac_retval
1819
} # ac_fn_c_try_compile
1821
# ac_fn_c_try_run LINENO
1822
# ----------------------
1823
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824
# that executables *can* be run.
1827
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828
if { { ac_try="$ac_link"
1830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831
*) ac_try_echo=$ac_try;;
1833
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834
$as_echo "$ac_try_echo"; } >&5
1835
(eval "$ac_link") 2>&5
1837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839
{ { case "(($ac_try" in
1840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841
*) ac_try_echo=$ac_try;;
1843
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844
$as_echo "$ac_try_echo"; } >&5
1845
(eval "$ac_try") 2>&5
1847
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848
test $ac_status = 0; }; }; then :
1851
$as_echo "$as_me: program exited with status $ac_status" >&5
1852
$as_echo "$as_me: failed program was:" >&5
1853
sed 's/^/| /' conftest.$ac_ext >&5
1855
ac_retval=$ac_status
1857
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
as_fn_set_status $ac_retval
1863
# ac_fn_c_try_cpp LINENO
1864
# ----------------------
1865
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869
if { { ac_try="$ac_cpp conftest.$ac_ext"
1871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872
*) ac_try_echo=$ac_try;;
1874
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875
$as_echo "$ac_try_echo"; } >&5
1876
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878
if test -s conftest.err; then
1879
grep -v '^ *+' conftest.err >conftest.er1
1880
cat conftest.er1 >&5
1881
mv -f conftest.er1 conftest.err
1883
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884
test $ac_status = 0; } > conftest.i && {
1885
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886
test ! -s conftest.err
1890
$as_echo "$as_me: failed program was:" >&5
1891
sed 's/^/| /' conftest.$ac_ext >&5
1895
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
as_fn_set_status $ac_retval
1900
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901
# -------------------------------------------------------
1902
# Tests whether HEADER exists and can be compiled using the include files in
1903
# INCLUDES, setting the cache variable VAR accordingly.
1904
ac_fn_c_check_header_compile ()
1906
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908
$as_echo_n "checking for $2... " >&6; }
1909
if eval \${$3+:} false; then :
1910
$as_echo_n "(cached) " >&6
1912
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913
/* end confdefs.h. */
1917
if ac_fn_c_try_compile "$LINENO"; then :
1922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926
$as_echo "$ac_res" >&6; }
1927
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
} # ac_fn_c_check_header_compile
1931
# ac_fn_c_try_link LINENO
1932
# -----------------------
1933
# Try to link conftest.$ac_ext, and return whether this succeeded.
1936
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937
rm -f conftest.$ac_objext conftest$ac_exeext
1938
if { { ac_try="$ac_link"
1940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941
*) ac_try_echo=$ac_try;;
1943
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944
$as_echo "$ac_try_echo"; } >&5
1945
(eval "$ac_link") 2>conftest.err
1947
if test -s conftest.err; then
1948
grep -v '^ *+' conftest.err >conftest.er1
1949
cat conftest.er1 >&5
1950
mv -f conftest.er1 conftest.err
1952
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953
test $ac_status = 0; } && {
1954
test -z "$ac_c_werror_flag" ||
1955
test ! -s conftest.err
1956
} && test -s conftest$ac_exeext && {
1957
test "$cross_compiling" = yes ||
1958
test -x conftest$ac_exeext
1962
$as_echo "$as_me: failed program was:" >&5
1963
sed 's/^/| /' conftest.$ac_ext >&5
1967
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969
# interfere with the next link command; also delete a directory that is
1970
# left behind by Apple's compiler. We do this before executing the actions.
1971
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
as_fn_set_status $ac_retval
1975
} # ac_fn_c_try_link
1977
# ac_fn_c_check_func LINENO FUNC VAR
1978
# ----------------------------------
1979
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1980
ac_fn_c_check_func ()
1982
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984
$as_echo_n "checking for $2... " >&6; }
1985
if eval \${$3+:} false; then :
1986
$as_echo_n "(cached) " >&6
1988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989
/* end confdefs.h. */
1990
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1992
#define $2 innocuous_$2
1994
/* System header to define __stub macros and hopefully few prototypes,
1995
which can conflict with char $2 (); below.
1996
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997
<limits.h> exists even on freestanding compilers. */
2000
# include <limits.h>
2002
# include <assert.h>
2007
/* Override any GCC internal prototype to avoid an error.
2008
Use char because int might match the return type of a GCC
2009
builtin and then its argument prototype would still apply. */
2014
/* The GNU C library defines this for functions which it implements
2015
to always fail with ENOSYS. Some functions are actually named
2016
something starting with __ and the normal name is an alias. */
2017
#if defined __stub_$2 || defined __stub___$2
2029
if ac_fn_c_try_link "$LINENO"; then :
2034
rm -f core conftest.err conftest.$ac_objext \
2035
conftest$ac_exeext conftest.$ac_ext
2038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039
$as_echo "$ac_res" >&6; }
2040
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
} # ac_fn_c_check_func
2044
# ac_fn_cxx_try_compile LINENO
2045
# ----------------------------
2046
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047
ac_fn_cxx_try_compile ()
2049
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050
rm -f conftest.$ac_objext
2051
if { { ac_try="$ac_compile"
2053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054
*) ac_try_echo=$ac_try;;
2056
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057
$as_echo "$ac_try_echo"; } >&5
2058
(eval "$ac_compile") 2>conftest.err
2060
if test -s conftest.err; then
2061
grep -v '^ *+' conftest.err >conftest.er1
2062
cat conftest.er1 >&5
2063
mv -f conftest.er1 conftest.err
2065
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066
test $ac_status = 0; } && {
2067
test -z "$ac_cxx_werror_flag" ||
2068
test ! -s conftest.err
2069
} && test -s conftest.$ac_objext; then :
2072
$as_echo "$as_me: failed program was:" >&5
2073
sed 's/^/| /' conftest.$ac_ext >&5
2077
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
as_fn_set_status $ac_retval
2080
} # ac_fn_cxx_try_compile
2082
# ac_fn_cxx_try_cpp LINENO
2083
# ------------------------
2084
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085
ac_fn_cxx_try_cpp ()
2087
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
if { { ac_try="$ac_cpp conftest.$ac_ext"
2090
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091
*) ac_try_echo=$ac_try;;
2093
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094
$as_echo "$ac_try_echo"; } >&5
2095
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097
if test -s conftest.err; then
2098
grep -v '^ *+' conftest.err >conftest.er1
2099
cat conftest.er1 >&5
2100
mv -f conftest.er1 conftest.err
2102
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103
test $ac_status = 0; } > conftest.i && {
2104
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2105
test ! -s conftest.err
2109
$as_echo "$as_me: failed program was:" >&5
2110
sed 's/^/| /' conftest.$ac_ext >&5
2114
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
as_fn_set_status $ac_retval
2117
} # ac_fn_cxx_try_cpp
2119
# ac_fn_cxx_try_link LINENO
2120
# -------------------------
2121
# Try to link conftest.$ac_ext, and return whether this succeeded.
2122
ac_fn_cxx_try_link ()
2124
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
rm -f conftest.$ac_objext conftest$ac_exeext
2126
if { { ac_try="$ac_link"
2128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129
*) ac_try_echo=$ac_try;;
2131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132
$as_echo "$ac_try_echo"; } >&5
2133
(eval "$ac_link") 2>conftest.err
2135
if test -s conftest.err; then
2136
grep -v '^ *+' conftest.err >conftest.er1
2137
cat conftest.er1 >&5
2138
mv -f conftest.er1 conftest.err
2140
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141
test $ac_status = 0; } && {
2142
test -z "$ac_cxx_werror_flag" ||
2143
test ! -s conftest.err
2144
} && test -s conftest$ac_exeext && {
2145
test "$cross_compiling" = yes ||
2146
test -x conftest$ac_exeext
2150
$as_echo "$as_me: failed program was:" >&5
2151
sed 's/^/| /' conftest.$ac_ext >&5
2155
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2156
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2157
# interfere with the next link command; also delete a directory that is
2158
# left behind by Apple's compiler. We do this before executing the actions.
2159
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2160
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161
as_fn_set_status $ac_retval
2163
} # ac_fn_cxx_try_link
2165
# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2166
# -----------------------------------------------
2167
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169
ac_fn_cxx_check_decl ()
2171
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172
as_decl_name=`echo $2|sed 's/ *(.*//'`
2173
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2175
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2176
if eval \${$3+:} false; then :
2177
$as_echo_n "(cached) " >&6
2179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180
/* end confdefs.h. */
2185
#ifndef $as_decl_name
2187
(void) $as_decl_use;
2189
(void) $as_decl_name;
2197
if ac_fn_cxx_try_compile "$LINENO"; then :
2202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206
$as_echo "$ac_res" >&6; }
2207
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209
} # ac_fn_cxx_check_decl
2211
# ac_fn_cxx_check_func LINENO FUNC VAR
2212
# ------------------------------------
2213
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2214
ac_fn_cxx_check_func ()
2216
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218
$as_echo_n "checking for $2... " >&6; }
2219
if eval \${$3+:} false; then :
2220
$as_echo_n "(cached) " >&6
2222
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223
/* end confdefs.h. */
2224
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226
#define $2 innocuous_$2
2228
/* System header to define __stub macros and hopefully few prototypes,
2229
which can conflict with char $2 (); below.
2230
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231
<limits.h> exists even on freestanding compilers. */
2234
# include <limits.h>
2236
# include <assert.h>
2241
/* Override any GCC internal prototype to avoid an error.
2242
Use char because int might match the return type of a GCC
2243
builtin and then its argument prototype would still apply. */
2248
/* The GNU C library defines this for functions which it implements
2249
to always fail with ENOSYS. Some functions are actually named
2250
something starting with __ and the normal name is an alias. */
2251
#if defined __stub_$2 || defined __stub___$2
2263
if ac_fn_cxx_try_link "$LINENO"; then :
2268
rm -f core conftest.err conftest.$ac_objext \
2269
conftest$ac_exeext conftest.$ac_ext
2272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273
$as_echo "$ac_res" >&6; }
2274
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
} # ac_fn_cxx_check_func
2278
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2279
# ---------------------------------------------------------
2280
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2281
# the include files in INCLUDES and setting the cache variable VAR
2283
ac_fn_cxx_check_header_mongrel ()
2285
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286
if eval \${$3+:} false; then :
2287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288
$as_echo_n "checking for $2... " >&6; }
2289
if eval \${$3+:} false; then :
2290
$as_echo_n "(cached) " >&6
2293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294
$as_echo "$ac_res" >&6; }
2296
# Is the header compilable?
2297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2298
$as_echo_n "checking $2 usability... " >&6; }
2299
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300
/* end confdefs.h. */
2304
if ac_fn_cxx_try_compile "$LINENO"; then :
2305
ac_header_compiler=yes
2307
ac_header_compiler=no
2309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2311
$as_echo "$ac_header_compiler" >&6; }
2313
# Is the header present?
2314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2315
$as_echo_n "checking $2 presence... " >&6; }
2316
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317
/* end confdefs.h. */
2320
if ac_fn_cxx_try_cpp "$LINENO"; then :
2321
ac_header_preproc=yes
2323
ac_header_preproc=no
2325
rm -f conftest.err conftest.i conftest.$ac_ext
2326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2327
$as_echo "$ac_header_preproc" >&6; }
2329
# So? What about this header?
2330
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2332
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2333
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2334
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2335
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2339
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2341
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2342
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2343
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2345
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2347
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2348
( $as_echo "## ------------------------------------------------------------------------- ##
2349
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=poppler ##
2350
## ------------------------------------------------------------------------- ##"
2351
) | sed "s/^/$as_me: WARNING: /" >&2
2354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355
$as_echo_n "checking for $2... " >&6; }
2356
if eval \${$3+:} false; then :
2357
$as_echo_n "(cached) " >&6
2359
eval "$3=\$ac_header_compiler"
2362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363
$as_echo "$ac_res" >&6; }
2365
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
} # ac_fn_cxx_check_header_mongrel
2369
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2370
# -------------------------------------------------------
2371
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2372
# the include files in INCLUDES and setting the cache variable VAR
2374
ac_fn_c_check_header_mongrel ()
2376
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377
if eval \${$3+:} false; then :
2378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379
$as_echo_n "checking for $2... " >&6; }
2380
if eval \${$3+:} false; then :
2381
$as_echo_n "(cached) " >&6
2384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385
$as_echo "$ac_res" >&6; }
2387
# Is the header compilable?
2388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2389
$as_echo_n "checking $2 usability... " >&6; }
2390
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391
/* end confdefs.h. */
2395
if ac_fn_c_try_compile "$LINENO"; then :
2396
ac_header_compiler=yes
2398
ac_header_compiler=no
2400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2402
$as_echo "$ac_header_compiler" >&6; }
2404
# Is the header present?
2405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2406
$as_echo_n "checking $2 presence... " >&6; }
2407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408
/* end confdefs.h. */
2411
if ac_fn_c_try_cpp "$LINENO"; then :
2412
ac_header_preproc=yes
2414
ac_header_preproc=no
2416
rm -f conftest.err conftest.i conftest.$ac_ext
2417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2418
$as_echo "$ac_header_preproc" >&6; }
2420
# So? What about this header?
2421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2424
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2426
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2430
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2431
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2432
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2433
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2434
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2436
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2437
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2438
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2439
( $as_echo "## ------------------------------------------------------------------------- ##
2440
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=poppler ##
2441
## ------------------------------------------------------------------------- ##"
2442
) | sed "s/^/$as_me: WARNING: /" >&2
2445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2446
$as_echo_n "checking for $2... " >&6; }
2447
if eval \${$3+:} false; then :
2448
$as_echo_n "(cached) " >&6
2450
eval "$3=\$ac_header_compiler"
2453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454
$as_echo "$ac_res" >&6; }
2456
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458
} # ac_fn_c_check_header_mongrel
2459
cat >config.log <<_ACEOF
2460
This file contains any messages produced by compilers while
2461
running configure, to aid debugging if configure makes a mistake.
2463
It was created by poppler $as_me 0.16.3, which was
2464
generated by GNU Autoconf 2.69. Invocation command line was
2476
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2477
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2478
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2479
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2480
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2482
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2483
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2485
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2486
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2487
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2488
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2489
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2490
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2491
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499
test -z "$as_dir" && as_dir=.
2500
$as_echo "PATH: $as_dir"
2516
# Keep a trace of the command line.
2517
# Strip out --no-create and --no-recursion so they do not pile up.
2518
# Strip out --silent because we don't want to record it for future runs.
2519
# Also quote any args containing shell meta-characters.
2520
# Make two passes to allow for proper duplicate-argument suppression.
2524
ac_must_keep_next=false
2530
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2531
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2532
| -silent | --silent | --silen | --sile | --sil)
2535
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2538
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2540
as_fn_append ac_configure_args1 " '$ac_arg'"
2541
if test $ac_must_keep_next = true; then
2542
ac_must_keep_next=false # Got value, back to normal.
2545
*=* | --config-cache | -C | -disable-* | --disable-* \
2546
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2547
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2548
| -with-* | --with-* | -without-* | --without-* | --x)
2549
case "$ac_configure_args0 " in
2550
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2553
-* ) ac_must_keep_next=true ;;
2556
as_fn_append ac_configure_args " '$ac_arg'"
2561
{ ac_configure_args0=; unset ac_configure_args0;}
2562
{ ac_configure_args1=; unset ac_configure_args1;}
2564
# When interrupted or exit'd, cleanup temporary files, and complete
2565
# config.log. We remove comments because anyway the quotes in there
2566
# would cause problems or look ugly.
2567
# WARNING: Use '\'' to represent an apostrophe within the trap.
2568
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2569
trap 'exit_status=$?
2570
# Save into config.log some information that might help in debugging.
2574
$as_echo "## ---------------- ##
2575
## Cache variables. ##
2576
## ---------------- ##"
2578
# The following way of writing the cache mishandles newlines in values,
2580
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2581
eval ac_val=\$$ac_var
2585
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2586
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2589
_ | IFS | as_nl) ;; #(
2590
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2591
*) { eval $ac_var=; unset $ac_var;} ;;
2596
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2597
*${as_nl}ac_space=\ *)
2599
"s/'\''/'\''\\\\'\'''\''/g;
2600
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2603
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610
$as_echo "## ----------------- ##
2611
## Output variables. ##
2612
## ----------------- ##"
2614
for ac_var in $ac_subst_vars
2616
eval ac_val=\$$ac_var
2618
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620
$as_echo "$ac_var='\''$ac_val'\''"
2624
if test -n "$ac_subst_files"; then
2625
$as_echo "## ------------------- ##
2626
## File substitutions. ##
2627
## ------------------- ##"
2629
for ac_var in $ac_subst_files
2631
eval ac_val=\$$ac_var
2633
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635
$as_echo "$ac_var='\''$ac_val'\''"
2640
if test -s confdefs.h; then
2641
$as_echo "## ----------- ##
2648
test "$ac_signal" != 0 &&
2649
$as_echo "$as_me: caught signal $ac_signal"
2650
$as_echo "$as_me: exit $exit_status"
2652
rm -f core *.core core.conftest.* &&
2653
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2656
for ac_signal in 1 2 13 15; do
2657
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2661
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2662
rm -f -r conftest* confdefs.h
2664
$as_echo "/* confdefs.h */" > confdefs.h
2666
# Predefined preprocessor variables.
2668
cat >>confdefs.h <<_ACEOF
2669
#define PACKAGE_NAME "$PACKAGE_NAME"
2672
cat >>confdefs.h <<_ACEOF
2673
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2676
cat >>confdefs.h <<_ACEOF
2677
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2680
cat >>confdefs.h <<_ACEOF
2681
#define PACKAGE_STRING "$PACKAGE_STRING"
2684
cat >>confdefs.h <<_ACEOF
2685
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2688
cat >>confdefs.h <<_ACEOF
2689
#define PACKAGE_URL "$PACKAGE_URL"
2693
# Let the site file select an alternate cache file if it wants to.
2694
# Prefer an explicitly selected file to automatically selected ones.
2697
if test -n "$CONFIG_SITE"; then
2698
# We do not want a PATH search for config.site.
2699
case $CONFIG_SITE in #((
2700
-*) ac_site_file1=./$CONFIG_SITE;;
2701
*/*) ac_site_file1=$CONFIG_SITE;;
2702
*) ac_site_file1=./$CONFIG_SITE;;
2704
elif test "x$prefix" != xNONE; then
2705
ac_site_file1=$prefix/share/config.site
2706
ac_site_file2=$prefix/etc/config.site
2708
ac_site_file1=$ac_default_prefix/share/config.site
2709
ac_site_file2=$ac_default_prefix/etc/config.site
2711
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2713
test "x$ac_site_file" = xNONE && continue
2714
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2715
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717
sed 's/^/| /' "$ac_site_file" >&5
2719
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721
as_fn_error $? "failed to load site script $ac_site_file
2722
See \`config.log' for more details" "$LINENO" 5; }
2726
if test -r "$cache_file"; then
2727
# Some versions of bash will fail to source /dev/null (special files
2728
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2729
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731
$as_echo "$as_me: loading cache $cache_file" >&6;}
2733
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2734
*) . "./$cache_file";;
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739
$as_echo "$as_me: creating cache $cache_file" >&6;}
2743
# Check that the precious variables saved in the cache have kept the same
2745
ac_cache_corrupted=false
2746
for ac_var in $ac_precious_vars; do
2747
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2748
eval ac_new_set=\$ac_env_${ac_var}_set
2749
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2750
eval ac_new_val=\$ac_env_${ac_var}_value
2751
case $ac_old_set,$ac_new_set in
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2754
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2755
ac_cache_corrupted=: ;;
2757
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2758
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2759
ac_cache_corrupted=: ;;
2762
if test "x$ac_old_val" != "x$ac_new_val"; then
2763
# differences in whitespace do not lead to failure.
2764
ac_old_val_w=`echo x $ac_old_val`
2765
ac_new_val_w=`echo x $ac_new_val`
2766
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2767
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2768
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2769
ac_cache_corrupted=:
2771
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2772
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2773
eval $ac_var=\$ac_old_val
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2776
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2778
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2781
# Pass precious variables to config.status.
2782
if test "$ac_new_set" = set; then
2784
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2785
*) ac_arg=$ac_var=$ac_new_val ;;
2787
case " $ac_configure_args " in
2788
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2789
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2793
if $ac_cache_corrupted; then
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2797
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2798
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2800
## -------------------- ##
2801
## Main body of script. ##
2802
## -------------------- ##
2805
ac_cpp='$CPP $CPPFLAGS'
2806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812
am__api_version='1.11'
2815
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2816
if test -f "$ac_dir/install-sh"; then
2818
ac_install_sh="$ac_aux_dir/install-sh -c"
2820
elif test -f "$ac_dir/install.sh"; then
2822
ac_install_sh="$ac_aux_dir/install.sh -c"
2824
elif test -f "$ac_dir/shtool"; then
2826
ac_install_sh="$ac_aux_dir/shtool install -c"
2830
if test -z "$ac_aux_dir"; then
2831
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2834
# These three variables are undocumented and unsupported,
2835
# and are intended to be withdrawn in a future Autoconf release.
2836
# They can cause serious problems if a builder's source tree is in a directory
2837
# whose full name contains unusual characters.
2838
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2839
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2840
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2843
# Find a good install program. We prefer a C program (faster),
2844
# so one script is as good as another. But avoid the broken or
2845
# incompatible versions:
2846
# SysV /etc/install, /usr/sbin/install
2847
# SunOS /usr/etc/install
2848
# IRIX /sbin/install
2850
# AmigaOS /C/install, which installs bootblocks on floppy discs
2851
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854
# OS/2's system install, which has a completely different semantic
2855
# ./install, which can be erroneously created by make from ./install.sh.
2856
# Reject install programs that cannot install multiple files.
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2859
if test -z "$INSTALL"; then
2860
if ${ac_cv_path_install+:} false; then :
2861
$as_echo_n "(cached) " >&6
2863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867
test -z "$as_dir" && as_dir=.
2868
# Account for people who put trailing slashes in PATH elements.
2869
case $as_dir/ in #((
2870
./ | .// | /[cC]/* | \
2871
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2875
# OSF1 and SCO ODT 3.0 have their own names for install.
2876
# Don't use installbsd from OSF since it installs stuff as root
2878
for ac_prog in ginstall scoinst install; do
2879
for ac_exec_ext in '' $ac_executable_extensions; do
2880
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881
if test $ac_prog = install &&
2882
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883
# AIX install. It has an incompatible calling convention.
2885
elif test $ac_prog = install &&
2886
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887
# program-specific install script used by HP pwplus--don't use.
2890
rm -rf conftest.one conftest.two conftest.dir
2891
echo one > conftest.one
2892
echo two > conftest.two
2894
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895
test -s conftest.one && test -s conftest.two &&
2896
test -s conftest.dir/conftest.one &&
2897
test -s conftest.dir/conftest.two
2899
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912
rm -rf conftest.one conftest.two conftest.dir
2915
if test "${ac_cv_path_install+set}" = set; then
2916
INSTALL=$ac_cv_path_install
2918
# As a last resort, use the slow shell script. Don't cache a
2919
# value for INSTALL within a source directory, because that will
2920
# break other packages using the cache if that directory is
2921
# removed, or if the value is a relative name.
2922
INSTALL=$ac_install_sh
2925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926
$as_echo "$INSTALL" >&6; }
2928
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929
# It thinks the first close brace ends the variable substitution.
2930
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2932
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2934
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937
$as_echo_n "checking whether build environment is sane... " >&6; }
2940
echo timestamp > conftest.file
2941
# Reject unsafe characters in $srcdir or the absolute working directory
2942
# name. Accept space and tab only in the latter.
2946
*[\\\"\#\$\&\'\`$am_lf]*)
2947
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2950
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2951
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2954
# Do `set' in a subshell so we don't clobber the current shell's
2955
# arguments. Must try -L first in case configure is actually a
2956
# symlink; some systems play weird games with the mod time of symlinks
2957
# (eg FreeBSD returns the mod time of the symlink's containing
2960
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961
if test "$*" = "X"; then
2963
set X `ls -t "$srcdir/configure" conftest.file`
2966
if test "$*" != "X $srcdir/configure conftest.file" \
2967
&& test "$*" != "X conftest.file $srcdir/configure"; then
2969
# If neither matched, then we have a broken ls. This can happen
2970
# if, for instance, CONFIG_SHELL is bash and it inherits a
2971
# broken ls alias from the environment. This has actually
2972
# happened. Such a system could not be considered "sane".
2973
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2974
alias in your environment" "$LINENO" 5
2977
test "$2" = conftest.file
2983
as_fn_error $? "newly created file is older than distributed files!
2984
Check your system clock" "$LINENO" 5
2986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2987
$as_echo "yes" >&6; }
2988
test "$program_prefix" != NONE &&
2989
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2990
# Use a double $ so make ignores it.
2991
test "$program_suffix" != NONE &&
2992
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2993
# Double any \ or $.
2994
# By default was `s,x,x', remove it if useless.
2995
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2996
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2998
# expand $ac_aux_dir to an absolute path
2999
am_aux_dir=`cd $ac_aux_dir && pwd`
3001
if test x"${MISSING+set}" != xset; then
3004
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3006
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3009
# Use eval to expand $SHELL
3010
if eval "$MISSING --run true"; then
3011
am_missing_run="$MISSING --run "
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3015
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3018
if test x"${install_sh}" != xset; then
3021
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3023
install_sh="\${SHELL} $am_aux_dir/install-sh"
3027
# Installed binaries are usually stripped using `strip' when the user
3028
# run `make install-strip'. However `strip' might not be the right
3029
# tool to use in cross-compilation environments, therefore Automake
3030
# will honor the `STRIP' environment variable to overrule this program.
3031
if test "$cross_compiling" != no; then
3032
if test -n "$ac_tool_prefix"; then
3033
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034
set dummy ${ac_tool_prefix}strip; ac_word=$2
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036
$as_echo_n "checking for $ac_word... " >&6; }
3037
if ${ac_cv_prog_STRIP+:} false; then :
3038
$as_echo_n "(cached) " >&6
3040
if test -n "$STRIP"; then
3041
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047
test -z "$as_dir" && as_dir=.
3048
for ac_exec_ext in '' $ac_executable_extensions; do
3049
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060
STRIP=$ac_cv_prog_STRIP
3061
if test -n "$STRIP"; then
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3063
$as_echo "$STRIP" >&6; }
3065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066
$as_echo "no" >&6; }
3071
if test -z "$ac_cv_prog_STRIP"; then
3073
# Extract the first word of "strip", so it can be a program name with args.
3074
set dummy strip; ac_word=$2
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076
$as_echo_n "checking for $ac_word... " >&6; }
3077
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3078
$as_echo_n "(cached) " >&6
3080
if test -n "$ac_ct_STRIP"; then
3081
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087
test -z "$as_dir" && as_dir=.
3088
for ac_exec_ext in '' $ac_executable_extensions; do
3089
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090
ac_cv_prog_ac_ct_STRIP="strip"
3091
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3101
if test -n "$ac_ct_STRIP"; then
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3103
$as_echo "$ac_ct_STRIP" >&6; }
3105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106
$as_echo "no" >&6; }
3109
if test "x$ac_ct_STRIP" = x; then
3112
case $cross_compiling:$ac_tool_warned in
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116
ac_tool_warned=yes ;;
3121
STRIP="$ac_cv_prog_STRIP"
3125
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3128
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3129
if test -z "$MKDIR_P"; then
3130
if ${ac_cv_path_mkdir+:} false; then :
3131
$as_echo_n "(cached) " >&6
3133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3137
test -z "$as_dir" && as_dir=.
3138
for ac_prog in mkdir gmkdir; do
3139
for ac_exec_ext in '' $ac_executable_extensions; do
3140
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3141
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3142
'mkdir (GNU coreutils) '* | \
3143
'mkdir (coreutils) '* | \
3144
'mkdir (fileutils) '4.1*)
3145
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3155
test -d ./--version && rmdir ./--version
3156
if test "${ac_cv_path_mkdir+set}" = set; then
3157
MKDIR_P="$ac_cv_path_mkdir -p"
3159
# As a last resort, use the slow shell script. Don't cache a
3160
# value for MKDIR_P within a source directory, because that will
3161
# break other packages using the cache if that directory is
3162
# removed, or if the value is a relative name.
3163
MKDIR_P="$ac_install_sh -d"
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3167
$as_echo "$MKDIR_P" >&6; }
3171
[\\/$]* | ?:[\\/]*) ;;
3172
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3175
for ac_prog in gawk mawk nawk awk
3177
# Extract the first word of "$ac_prog", so it can be a program name with args.
3178
set dummy $ac_prog; ac_word=$2
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180
$as_echo_n "checking for $ac_word... " >&6; }
3181
if ${ac_cv_prog_AWK+:} false; then :
3182
$as_echo_n "(cached) " >&6
3184
if test -n "$AWK"; then
3185
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191
test -z "$as_dir" && as_dir=.
3192
for ac_exec_ext in '' $ac_executable_extensions; do
3193
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194
ac_cv_prog_AWK="$ac_prog"
3195
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205
if test -n "$AWK"; then
3206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3207
$as_echo "$AWK" >&6; }
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210
$as_echo "no" >&6; }
3214
test -n "$AWK" && break
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3218
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3220
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3221
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3222
$as_echo_n "(cached) " >&6
3224
cat >conftest.make <<\_ACEOF
3227
@echo '@@@%%%=$(MAKE)=@@@%%%'
3229
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3230
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3232
eval ac_cv_prog_make_${ac_make}_set=yes;;
3234
eval ac_cv_prog_make_${ac_make}_set=no;;
3238
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240
$as_echo "yes" >&6; }
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244
$as_echo "no" >&6; }
3245
SET_MAKE="MAKE=${MAKE-make}"
3248
rm -rf .tst 2>/dev/null
3249
mkdir .tst 2>/dev/null
3250
if test -d .tst; then
3255
rmdir .tst 2>/dev/null
3257
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3258
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3259
# is not polluted with repeated "-I."
3260
am__isrc=' -I$(srcdir)'
3261
# test to see if srcdir already configured
3262
if test -f $srcdir/config.status; then
3263
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3267
# test whether we have cygpath
3268
if test -z "$CYGPATH_W"; then
3269
if (cygpath --version) >/dev/null 2>/dev/null; then
3270
CYGPATH_W='cygpath -w'
3277
# Define the identity of the package.
3282
cat >>confdefs.h <<_ACEOF
3283
#define PACKAGE "$PACKAGE"
3287
cat >>confdefs.h <<_ACEOF
3288
#define VERSION "$VERSION"
3291
# Some tools Automake needs.
3293
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3296
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3299
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3302
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3305
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3307
# We need awk for the "check" target. The system "awk" is bad on
3309
# Always define AMTAR for backward compatibility.
3311
AMTAR=${AMTAR-"${am_missing_run}tar"}
3313
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3319
# Check whether --enable-silent-rules was given.
3320
if test "${enable_silent_rules+set}" = set; then :
3321
enableval=$enable_silent_rules;
3324
case $enable_silent_rules in
3325
yes) AM_DEFAULT_VERBOSITY=0;;
3326
no) AM_DEFAULT_VERBOSITY=1;;
3327
*) AM_DEFAULT_VERBOSITY=0;;
3331
ac_config_headers="$ac_config_headers config.h"
3333
ac_config_headers="$ac_config_headers poppler/poppler-config.h"
3335
DEPDIR="${am__leading_dot}deps"
3337
ac_config_commands="$ac_config_commands depfiles"
3340
am_make=${MAKE-make}
3341
cat > confinc << 'END'
3343
@echo this is the am__doit target
3346
# If we don't find an include directive, just comment out the code.
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3348
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3352
# First try GNU make style include.
3353
echo "include confinc" > confmf
3354
# Ignore all kinds of additional output from `make'.
3355
case `$am_make -s -f confmf 2> /dev/null` in #(
3356
*the\ am__doit\ target*)
3362
# Now try BSD make style include.
3363
if test "$am__include" = "#"; then
3364
echo '.include "confinc"' > confmf
3365
case `$am_make -s -f confmf 2> /dev/null` in #(
3366
*the\ am__doit\ target*)
3367
am__include=.include
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3376
$as_echo "$_am_result" >&6; }
3377
rm -f confinc confmf
3379
# Check whether --enable-dependency-tracking was given.
3380
if test "${enable_dependency_tracking+set}" = set; then :
3381
enableval=$enable_dependency_tracking;
3384
if test "x$enable_dependency_tracking" != xno; then
3385
am_depcomp="$ac_aux_dir/depcomp"
3388
if test "x$enable_dependency_tracking" != xno; then
3398
ac_cpp='$CPP $CPPFLAGS'
3399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
if test -n "$ac_tool_prefix"; then
3403
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3404
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406
$as_echo_n "checking for $ac_word... " >&6; }
3407
if ${ac_cv_prog_CC+:} false; then :
3408
$as_echo_n "(cached) " >&6
3410
if test -n "$CC"; then
3411
ac_cv_prog_CC="$CC" # Let the user override the test.
3413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
test -z "$as_dir" && as_dir=.
3418
for ac_exec_ext in '' $ac_executable_extensions; do
3419
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3421
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
if test -n "$CC"; then
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433
$as_echo "$CC" >&6; }
3435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436
$as_echo "no" >&6; }
3441
if test -z "$ac_cv_prog_CC"; then
3443
# Extract the first word of "gcc", so it can be a program name with args.
3444
set dummy gcc; ac_word=$2
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446
$as_echo_n "checking for $ac_word... " >&6; }
3447
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3448
$as_echo_n "(cached) " >&6
3450
if test -n "$ac_ct_CC"; then
3451
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457
test -z "$as_dir" && as_dir=.
3458
for ac_exec_ext in '' $ac_executable_extensions; do
3459
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460
ac_cv_prog_ac_ct_CC="gcc"
3461
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471
if test -n "$ac_ct_CC"; then
3472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3473
$as_echo "$ac_ct_CC" >&6; }
3475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476
$as_echo "no" >&6; }
3479
if test "x$ac_ct_CC" = x; then
3482
case $cross_compiling:$ac_tool_warned in
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486
ac_tool_warned=yes ;;
3494
if test -z "$CC"; then
3495
if test -n "$ac_tool_prefix"; then
3496
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3497
set dummy ${ac_tool_prefix}cc; ac_word=$2
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499
$as_echo_n "checking for $ac_word... " >&6; }
3500
if ${ac_cv_prog_CC+:} false; then :
3501
$as_echo_n "(cached) " >&6
3503
if test -n "$CC"; then
3504
ac_cv_prog_CC="$CC" # Let the user override the test.
3506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510
test -z "$as_dir" && as_dir=.
3511
for ac_exec_ext in '' $ac_executable_extensions; do
3512
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513
ac_cv_prog_CC="${ac_tool_prefix}cc"
3514
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524
if test -n "$CC"; then
3525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526
$as_echo "$CC" >&6; }
3528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529
$as_echo "no" >&6; }
3535
if test -z "$CC"; then
3536
# Extract the first word of "cc", so it can be a program name with args.
3537
set dummy cc; ac_word=$2
3538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539
$as_echo_n "checking for $ac_word... " >&6; }
3540
if ${ac_cv_prog_CC+:} false; then :
3541
$as_echo_n "(cached) " >&6
3543
if test -n "$CC"; then
3544
ac_cv_prog_CC="$CC" # Let the user override the test.
3547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551
test -z "$as_dir" && as_dir=.
3552
for ac_exec_ext in '' $ac_executable_extensions; do
3553
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3555
ac_prog_rejected=yes
3559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566
if test $ac_prog_rejected = yes; then
3567
# We found a bogon in the path, so make sure we never use it.
3568
set dummy $ac_cv_prog_CC
3570
if test $# != 0; then
3571
# We chose a different compiler from the bogus one.
3572
# However, it has the same basename, so the bogon will be chosen
3573
# first if we set CC to just the basename; use the full file name.
3575
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3581
if test -n "$CC"; then
3582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583
$as_echo "$CC" >&6; }
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586
$as_echo "no" >&6; }
3591
if test -z "$CC"; then
3592
if test -n "$ac_tool_prefix"; then
3593
for ac_prog in cl.exe
3595
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3596
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598
$as_echo_n "checking for $ac_word... " >&6; }
3599
if ${ac_cv_prog_CC+:} false; then :
3600
$as_echo_n "(cached) " >&6
3602
if test -n "$CC"; then
3603
ac_cv_prog_CC="$CC" # Let the user override the test.
3605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609
test -z "$as_dir" && as_dir=.
3610
for ac_exec_ext in '' $ac_executable_extensions; do
3611
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3613
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623
if test -n "$CC"; then
3624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625
$as_echo "$CC" >&6; }
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628
$as_echo "no" >&6; }
3632
test -n "$CC" && break
3635
if test -z "$CC"; then
3637
for ac_prog in cl.exe
3639
# Extract the first word of "$ac_prog", so it can be a program name with args.
3640
set dummy $ac_prog; ac_word=$2
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642
$as_echo_n "checking for $ac_word... " >&6; }
3643
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3644
$as_echo_n "(cached) " >&6
3646
if test -n "$ac_ct_CC"; then
3647
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653
test -z "$as_dir" && as_dir=.
3654
for ac_exec_ext in '' $ac_executable_extensions; do
3655
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656
ac_cv_prog_ac_ct_CC="$ac_prog"
3657
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3667
if test -n "$ac_ct_CC"; then
3668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3669
$as_echo "$ac_ct_CC" >&6; }
3671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672
$as_echo "no" >&6; }
3676
test -n "$ac_ct_CC" && break
3679
if test "x$ac_ct_CC" = x; then
3682
case $cross_compiling:$ac_tool_warned in
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686
ac_tool_warned=yes ;;
3695
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697
as_fn_error $? "no acceptable C compiler found in \$PATH
3698
See \`config.log' for more details" "$LINENO" 5; }
3700
# Provide some information about the compiler.
3701
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3704
for ac_option in --version -v -V -qversion; do
3705
{ { ac_try="$ac_compiler $ac_option >&5"
3707
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708
*) ac_try_echo=$ac_try;;
3710
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711
$as_echo "$ac_try_echo"; } >&5
3712
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3714
if test -s conftest.err; then
3716
... rest of stderr output deleted ...
3717
10q' conftest.err >conftest.er1
3718
cat conftest.er1 >&5
3720
rm -f conftest.er1 conftest.err
3721
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722
test $ac_status = 0; }
3725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726
/* end confdefs.h. */
3736
ac_clean_files_save=$ac_clean_files
3737
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3738
# Try to create an executable without -o first, disregard a.out.
3739
# It will help us diagnose broken compilers, and finding out an intuition
3741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3742
$as_echo_n "checking whether the C compiler works... " >&6; }
3743
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3745
# The possible output files:
3746
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749
for ac_file in $ac_files
3752
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3758
if { { ac_try="$ac_link_default"
3760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761
*) ac_try_echo=$ac_try;;
3763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764
$as_echo "$ac_try_echo"; } >&5
3765
(eval "$ac_link_default") 2>&5
3767
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768
test $ac_status = 0; }; then :
3769
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3770
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3771
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3772
# so that the user can short-circuit this test for compilers unknown to
3774
for ac_file in $ac_files ''
3776
test -f "$ac_file" || continue
3778
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3781
# We found the default executable, but exeext='' is most
3785
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3787
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789
# We set ac_cv_exeext here because the later test for it is not
3790
# safe: cross compilers may not add the suffix if given an `-o'
3791
# argument, so we may need to know it at that point already.
3792
# Even if this section looks crufty: it has the advantage of
3799
test "$ac_cv_exeext" = no && ac_cv_exeext=
3804
if test -z "$ac_file"; then :
3805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806
$as_echo "no" >&6; }
3807
$as_echo "$as_me: failed program was:" >&5
3808
sed 's/^/| /' conftest.$ac_ext >&5
3810
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812
as_fn_error 77 "C compiler cannot create executables
3813
See \`config.log' for more details" "$LINENO" 5; }
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816
$as_echo "yes" >&6; }
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3819
$as_echo_n "checking for C compiler default output file name... " >&6; }
3820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3821
$as_echo "$ac_file" >&6; }
3822
ac_exeext=$ac_cv_exeext
3824
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3825
ac_clean_files=$ac_clean_files_save
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3827
$as_echo_n "checking for suffix of executables... " >&6; }
3828
if { { ac_try="$ac_link"
3830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831
*) ac_try_echo=$ac_try;;
3833
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834
$as_echo "$ac_try_echo"; } >&5
3835
(eval "$ac_link") 2>&5
3837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838
test $ac_status = 0; }; then :
3839
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3840
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3841
# work properly (i.e., refer to `conftest.exe'), while it won't with
3843
for ac_file in conftest.exe conftest conftest.*; do
3844
test -f "$ac_file" || continue
3846
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3856
See \`config.log' for more details" "$LINENO" 5; }
3858
rm -f conftest conftest$ac_cv_exeext
3859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3860
$as_echo "$ac_cv_exeext" >&6; }
3862
rm -f conftest.$ac_ext
3863
EXEEXT=$ac_cv_exeext
3865
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866
/* end confdefs.h. */
3871
FILE *f = fopen ("conftest.out", "w");
3872
return ferror (f) || fclose (f) != 0;
3878
ac_clean_files="$ac_clean_files conftest.out"
3879
# Check that the compiler produces executables we can run. If not, either
3880
# the compiler is broken, or we cross compile.
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3882
$as_echo_n "checking whether we are cross compiling... " >&6; }
3883
if test "$cross_compiling" != yes; then
3884
{ { ac_try="$ac_link"
3886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887
*) ac_try_echo=$ac_try;;
3889
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890
$as_echo "$ac_try_echo"; } >&5
3891
(eval "$ac_link") 2>&5
3893
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894
test $ac_status = 0; }
3895
if { ac_try='./conftest$ac_cv_exeext'
3896
{ { case "(($ac_try" in
3897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898
*) ac_try_echo=$ac_try;;
3900
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901
$as_echo "$ac_try_echo"; } >&5
3902
(eval "$ac_try") 2>&5
3904
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905
test $ac_status = 0; }; }; then
3908
if test "$cross_compiling" = maybe; then
3911
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913
as_fn_error $? "cannot run C compiled programs.
3914
If you meant to cross compile, use \`--host'.
3915
See \`config.log' for more details" "$LINENO" 5; }
3919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3920
$as_echo "$cross_compiling" >&6; }
3922
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3923
ac_clean_files=$ac_clean_files_save
3924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3925
$as_echo_n "checking for suffix of object files... " >&6; }
3926
if ${ac_cv_objext+:} false; then :
3927
$as_echo_n "(cached) " >&6
3929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930
/* end confdefs.h. */
3940
rm -f conftest.o conftest.obj
3941
if { { ac_try="$ac_compile"
3943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944
*) ac_try_echo=$ac_try;;
3946
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947
$as_echo "$ac_try_echo"; } >&5
3948
(eval "$ac_compile") 2>&5
3950
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951
test $ac_status = 0; }; then :
3952
for ac_file in conftest.o conftest.obj conftest.*; do
3953
test -f "$ac_file" || continue;
3955
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3956
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3961
$as_echo "$as_me: failed program was:" >&5
3962
sed 's/^/| /' conftest.$ac_ext >&5
3964
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966
as_fn_error $? "cannot compute suffix of object files: cannot compile
3967
See \`config.log' for more details" "$LINENO" 5; }
3969
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3972
$as_echo "$ac_cv_objext" >&6; }
3973
OBJEXT=$ac_cv_objext
3975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3976
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3977
if ${ac_cv_c_compiler_gnu+:} false; then :
3978
$as_echo_n "(cached) " >&6
3980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981
/* end confdefs.h. */
3994
if ac_fn_c_try_compile "$LINENO"; then :
3999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4004
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4005
if test $ac_compiler_gnu = yes; then
4010
ac_test_CFLAGS=${CFLAGS+set}
4011
ac_save_CFLAGS=$CFLAGS
4012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4013
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4014
if ${ac_cv_prog_cc_g+:} false; then :
4015
$as_echo_n "(cached) " >&6
4017
ac_save_c_werror_flag=$ac_c_werror_flag
4018
ac_c_werror_flag=yes
4021
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022
/* end confdefs.h. */
4032
if ac_fn_c_try_compile "$LINENO"; then :
4036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037
/* end confdefs.h. */
4047
if ac_fn_c_try_compile "$LINENO"; then :
4050
ac_c_werror_flag=$ac_save_c_werror_flag
4052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053
/* end confdefs.h. */
4063
if ac_fn_c_try_compile "$LINENO"; then :
4066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
ac_c_werror_flag=$ac_save_c_werror_flag
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074
$as_echo "$ac_cv_prog_cc_g" >&6; }
4075
if test "$ac_test_CFLAGS" = set; then
4076
CFLAGS=$ac_save_CFLAGS
4077
elif test $ac_cv_prog_cc_g = yes; then
4078
if test "$GCC" = yes; then
4084
if test "$GCC" = yes; then
4090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4091
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4092
if ${ac_cv_prog_cc_c89+:} false; then :
4093
$as_echo_n "(cached) " >&6
4095
ac_cv_prog_cc_c89=no
4097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098
/* end confdefs.h. */
4102
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4103
struct buf { int x; };
4104
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4105
static char *e (p, i)
4111
static char *f (char * (*g) (char **, int), char **p, ...)
4116
s = g (p, va_arg (v,int));
4121
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4122
function prototypes and stuff, but not '\xHH' hex character constants.
4123
These don't provoke an error unfortunately, instead are silently treated
4124
as 'x'. The following induces an error, until -std is added to get
4125
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4126
array size at least. It's necessary to write '\x00'==0 to get something
4127
that's true only with -std. */
4128
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4130
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4131
inside strings and character constants. */
4133
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4135
int test (int i, double x);
4136
struct s1 {int (*f) (int a);};
4137
struct s2 {int (*f) (double a);};
4138
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4144
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4149
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4150
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152
CC="$ac_save_CC $ac_arg"
4153
if ac_fn_c_try_compile "$LINENO"; then :
4154
ac_cv_prog_cc_c89=$ac_arg
4156
rm -f core conftest.err conftest.$ac_objext
4157
test "x$ac_cv_prog_cc_c89" != "xno" && break
4159
rm -f conftest.$ac_ext
4164
case "x$ac_cv_prog_cc_c89" in
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4167
$as_echo "none needed" >&6; } ;;
4169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4170
$as_echo "unsupported" >&6; } ;;
4172
CC="$CC $ac_cv_prog_cc_c89"
4173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4174
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4176
if test "x$ac_cv_prog_cc_c89" != xno; then :
4181
ac_cpp='$CPP $CPPFLAGS'
4182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
depcc="$CC" am_compiler_list=
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4189
$as_echo_n "checking dependency style of $depcc... " >&6; }
4190
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4191
$as_echo_n "(cached) " >&6
4193
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4194
# We make a subdir and do the tests there. Otherwise we can end up
4195
# making bogus files that we don't know about and never remove. For
4196
# instance it was reported that on HP-UX the gcc test will end up
4197
# making a dummy file named `D' -- because `-MD' means `put the output
4200
# Copy depcomp to subdir because otherwise we won't find it if we're
4201
# using a relative directory.
4202
cp "$am_depcomp" conftest.dir
4204
# We will build objects and dependencies in a subdirectory because
4205
# it helps to detect inapplicable dependency modes. For instance
4206
# both Tru64's cc and ICC support -MD to output dependencies as a
4207
# side effect of compilation, but ICC will put the dependencies in
4208
# the current directory while Tru64 will put them in the object
4212
am_cv_CC_dependencies_compiler_type=none
4213
if test "$am_compiler_list" = ""; then
4214
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4217
case " $depcc " in #(
4218
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4221
for depmode in $am_compiler_list; do
4222
# Setup a source with many dependencies, because some compilers
4223
# like to wrap large dependency lists on column 80 (with \), and
4224
# we should not choose a depcomp mode which is confused by this.
4226
# We need to recreate these files for each test, as the compiler may
4227
# overwrite some of them when testing with obscure command lines.
4228
# This happens at least with the AIX C compiler.
4230
for i in 1 2 3 4 5 6; do
4231
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4232
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4233
# Solaris 8's {/usr,}/bin/sh.
4234
touch sub/conftst$i.h
4236
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4239
# mode. It turns out that the SunPro C++ compiler does not properly
4240
# handle `-M -o', and we need to detect this. Also, some Intel
4241
# versions had trouble with output in subdirs
4242
am__obj=sub/conftest.${OBJEXT-o}
4243
am__minus_obj="-o $am__obj"
4246
# This depmode causes a compiler race in universal mode.
4247
test "$am__universal" = false || continue
4250
# after this tag, mechanisms are not by side-effect, so they'll
4251
# only be used when explicitly requested
4252
if test "x$enable_dependency_tracking" = xyes; then
4258
msvisualcpp | msvcmsys)
4259
# This compiler won't grok `-c -o', but also, the minuso test has
4260
# not run yet. These depmodes are late enough in the game, and
4261
# so weak that their functioning should not be impacted.
4262
am__obj=conftest.${OBJEXT-o}
4267
if depmode=$depmode \
4268
source=sub/conftest.c object=$am__obj \
4269
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4270
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4271
>/dev/null 2>conftest.err &&
4272
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4273
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4274
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4275
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4276
# icc doesn't choke on unknown options, it will just issue warnings
4277
# or remarks (even with -Werror). So we grep stderr for any message
4278
# that says an option was ignored or not supported.
4279
# When given -MP, icc 7.0 and 7.1 complain thusly:
4280
# icc: Command line warning: ignoring option '-M'; no argument required
4281
# The diagnosis changed in icc 8.0:
4282
# icc: Command line remark: option '-MP' not supported
4283
if (grep 'ignoring option' conftest.err ||
4284
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4285
am_cv_CC_dependencies_compiler_type=$depmode
4294
am_cv_CC_dependencies_compiler_type=none
4298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4299
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4300
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4303
test "x$enable_dependency_tracking" != xno \
4304
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4306
am__fastdepCC_FALSE='#'
4308
am__fastdepCC_TRUE='#'
4309
am__fastdepCC_FALSE=
4315
ac_cpp='$CPP $CPPFLAGS'
4316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4320
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4321
# On Suns, sometimes $CPP names a directory.
4322
if test -n "$CPP" && test -d "$CPP"; then
4325
if test -z "$CPP"; then
4326
if ${ac_cv_prog_CPP+:} false; then :
4327
$as_echo_n "(cached) " >&6
4329
# Double quotes because CPP needs to be expanded
4330
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4333
for ac_c_preproc_warn_flag in '' yes
4335
# Use a header file that comes with gcc, so configuring glibc
4336
# with a fresh cross-compiler works.
4337
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338
# <limits.h> exists even on freestanding compilers.
4339
# On the NeXT, cc -E runs the code through the compiler's parser,
4340
# not just through cpp. "Syntax error" is here to catch this case.
4341
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342
/* end confdefs.h. */
4344
# include <limits.h>
4346
# include <assert.h>
4350
if ac_fn_c_try_cpp "$LINENO"; then :
4353
# Broken: fails on valid input.
4356
rm -f conftest.err conftest.i conftest.$ac_ext
4358
# OK, works on sane cases. Now check whether nonexistent headers
4359
# can be detected and how.
4360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361
/* end confdefs.h. */
4362
#include <ac_nonexistent.h>
4364
if ac_fn_c_try_cpp "$LINENO"; then :
4365
# Broken: success on invalid input.
4368
# Passes both tests.
4372
rm -f conftest.err conftest.i conftest.$ac_ext
4375
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376
rm -f conftest.i conftest.err conftest.$ac_ext
4377
if $ac_preproc_ok; then :
4389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4390
$as_echo "$CPP" >&6; }
4392
for ac_c_preproc_warn_flag in '' yes
4394
# Use a header file that comes with gcc, so configuring glibc
4395
# with a fresh cross-compiler works.
4396
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397
# <limits.h> exists even on freestanding compilers.
4398
# On the NeXT, cc -E runs the code through the compiler's parser,
4399
# not just through cpp. "Syntax error" is here to catch this case.
4400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401
/* end confdefs.h. */
4403
# include <limits.h>
4405
# include <assert.h>
4409
if ac_fn_c_try_cpp "$LINENO"; then :
4412
# Broken: fails on valid input.
4415
rm -f conftest.err conftest.i conftest.$ac_ext
4417
# OK, works on sane cases. Now check whether nonexistent headers
4418
# can be detected and how.
4419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420
/* end confdefs.h. */
4421
#include <ac_nonexistent.h>
4423
if ac_fn_c_try_cpp "$LINENO"; then :
4424
# Broken: success on invalid input.
4427
# Passes both tests.
4431
rm -f conftest.err conftest.i conftest.$ac_ext
4434
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435
rm -f conftest.i conftest.err conftest.$ac_ext
4436
if $ac_preproc_ok; then :
4439
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4442
See \`config.log' for more details" "$LINENO" 5; }
4446
ac_cpp='$CPP $CPPFLAGS'
4447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454
if ${ac_cv_path_GREP+:} false; then :
4455
$as_echo_n "(cached) " >&6
4457
if test -z "$GREP"; then
4458
ac_path_GREP_found=false
4459
# Loop through the user's path and test for each of PROGNAME-LIST
4460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464
test -z "$as_dir" && as_dir=.
4465
for ac_prog in grep ggrep; do
4466
for ac_exec_ext in '' $ac_executable_extensions; do
4467
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468
as_fn_executable_p "$ac_path_GREP" || continue
4469
# Check for GNU ac_path_GREP and select it if it is found.
4470
# Check for GNU $ac_path_GREP
4471
case `"$ac_path_GREP" --version 2>&1` in
4473
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4476
$as_echo_n 0123456789 >"conftest.in"
4479
cat "conftest.in" "conftest.in" >"conftest.tmp"
4480
mv "conftest.tmp" "conftest.in"
4481
cp "conftest.in" "conftest.nl"
4482
$as_echo 'GREP' >> "conftest.nl"
4483
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485
as_fn_arith $ac_count + 1 && ac_count=$as_val
4486
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487
# Best one so far, save it but keep looking for a better one
4488
ac_cv_path_GREP="$ac_path_GREP"
4489
ac_path_GREP_max=$ac_count
4491
# 10*(2^10) chars as input seems more than enough
4492
test $ac_count -gt 10 && break
4494
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497
$ac_path_GREP_found && break 3
4502
if test -z "$ac_cv_path_GREP"; then
4503
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506
ac_cv_path_GREP=$GREP
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511
$as_echo "$ac_cv_path_GREP" >&6; }
4512
GREP="$ac_cv_path_GREP"
4515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516
$as_echo_n "checking for egrep... " >&6; }
4517
if ${ac_cv_path_EGREP+:} false; then :
4518
$as_echo_n "(cached) " >&6
4520
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521
then ac_cv_path_EGREP="$GREP -E"
4523
if test -z "$EGREP"; then
4524
ac_path_EGREP_found=false
4525
# Loop through the user's path and test for each of PROGNAME-LIST
4526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530
test -z "$as_dir" && as_dir=.
4531
for ac_prog in egrep; do
4532
for ac_exec_ext in '' $ac_executable_extensions; do
4533
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534
as_fn_executable_p "$ac_path_EGREP" || continue
4535
# Check for GNU ac_path_EGREP and select it if it is found.
4536
# Check for GNU $ac_path_EGREP
4537
case `"$ac_path_EGREP" --version 2>&1` in
4539
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4542
$as_echo_n 0123456789 >"conftest.in"
4545
cat "conftest.in" "conftest.in" >"conftest.tmp"
4546
mv "conftest.tmp" "conftest.in"
4547
cp "conftest.in" "conftest.nl"
4548
$as_echo 'EGREP' >> "conftest.nl"
4549
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551
as_fn_arith $ac_count + 1 && ac_count=$as_val
4552
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553
# Best one so far, save it but keep looking for a better one
4554
ac_cv_path_EGREP="$ac_path_EGREP"
4555
ac_path_EGREP_max=$ac_count
4557
# 10*(2^10) chars as input seems more than enough
4558
test $ac_count -gt 10 && break
4560
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563
$ac_path_EGREP_found && break 3
4568
if test -z "$ac_cv_path_EGREP"; then
4569
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4572
ac_cv_path_EGREP=$EGREP
4577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578
$as_echo "$ac_cv_path_EGREP" >&6; }
4579
EGREP="$ac_cv_path_EGREP"
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583
$as_echo_n "checking for ANSI C header files... " >&6; }
4584
if ${ac_cv_header_stdc+:} false; then :
4585
$as_echo_n "(cached) " >&6
4587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588
/* end confdefs.h. */
4602
if ac_fn_c_try_compile "$LINENO"; then :
4603
ac_cv_header_stdc=yes
4605
ac_cv_header_stdc=no
4607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609
if test $ac_cv_header_stdc = yes; then
4610
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612
/* end confdefs.h. */
4616
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617
$EGREP "memchr" >/dev/null 2>&1; then :
4620
ac_cv_header_stdc=no
4626
if test $ac_cv_header_stdc = yes; then
4627
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629
/* end confdefs.h. */
4633
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634
$EGREP "free" >/dev/null 2>&1; then :
4637
ac_cv_header_stdc=no
4643
if test $ac_cv_header_stdc = yes; then
4644
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645
if test "$cross_compiling" = yes; then :
4648
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649
/* end confdefs.h. */
4652
#if ((' ' & 0x0FF) == 0x020)
4653
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656
# define ISLOWER(c) \
4657
(('a' <= (c) && (c) <= 'i') \
4658
|| ('j' <= (c) && (c) <= 'r') \
4659
|| ('s' <= (c) && (c) <= 'z'))
4660
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4663
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668
for (i = 0; i < 256; i++)
4669
if (XOR (islower (i), ISLOWER (i))
4670
|| toupper (i) != TOUPPER (i))
4675
if ac_fn_c_try_run "$LINENO"; then :
4678
ac_cv_header_stdc=no
4680
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4681
conftest.$ac_objext conftest.beam conftest.$ac_ext
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687
$as_echo "$ac_cv_header_stdc" >&6; }
4688
if test $ac_cv_header_stdc = yes; then
4690
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4694
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696
inttypes.h stdint.h unistd.h
4698
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4701
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4702
cat >>confdefs.h <<_ACEOF
4703
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4712
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4713
if ${ac_cv_c_bigendian+:} false; then :
4714
$as_echo_n "(cached) " >&6
4716
ac_cv_c_bigendian=unknown
4717
# See if we're dealing with a universal compiler.
4718
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719
/* end confdefs.h. */
4720
#ifndef __APPLE_CC__
4721
not a universal capable compiler
4726
if ac_fn_c_try_compile "$LINENO"; then :
4728
# Check for potential -arch flags. It is not universal unless
4729
# there are at least two -arch flags with different values.
4732
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4733
if test -n "$ac_prev"; then
4735
i?86 | x86_64 | ppc | ppc64)
4736
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4739
ac_cv_c_bigendian=universal
4745
elif test "x$ac_word" = "x-arch"; then
4750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751
if test $ac_cv_c_bigendian = unknown; then
4752
# See if sys/param.h defines the BYTE_ORDER macro.
4753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754
/* end confdefs.h. */
4755
#include <sys/types.h>
4756
#include <sys/param.h>
4761
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4762
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4771
if ac_fn_c_try_compile "$LINENO"; then :
4772
# It does; now see whether it defined to BIG_ENDIAN or not.
4773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774
/* end confdefs.h. */
4775
#include <sys/types.h>
4776
#include <sys/param.h>
4781
#if BYTE_ORDER != BIG_ENDIAN
4789
if ac_fn_c_try_compile "$LINENO"; then :
4790
ac_cv_c_bigendian=yes
4792
ac_cv_c_bigendian=no
4794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798
if test $ac_cv_c_bigendian = unknown; then
4799
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801
/* end confdefs.h. */
4807
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4815
if ac_fn_c_try_compile "$LINENO"; then :
4816
# It does; now see whether it defined to _BIG_ENDIAN or not.
4817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818
/* end confdefs.h. */
4832
if ac_fn_c_try_compile "$LINENO"; then :
4833
ac_cv_c_bigendian=yes
4835
ac_cv_c_bigendian=no
4837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841
if test $ac_cv_c_bigendian = unknown; then
4842
# Compile a test program.
4843
if test "$cross_compiling" = yes; then :
4844
# Try to guess by grepping values from an object file.
4845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846
/* end confdefs.h. */
4847
short int ascii_mm[] =
4848
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4849
short int ascii_ii[] =
4850
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4851
int use_ascii (int i) {
4852
return ascii_mm[i] + ascii_ii[i];
4854
short int ebcdic_ii[] =
4855
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4856
short int ebcdic_mm[] =
4857
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4858
int use_ebcdic (int i) {
4859
return ebcdic_mm[i] + ebcdic_ii[i];
4866
return use_ascii (foo) == use_ebcdic (foo);
4871
if ac_fn_c_try_compile "$LINENO"; then :
4872
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4873
ac_cv_c_bigendian=yes
4875
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4876
if test "$ac_cv_c_bigendian" = unknown; then
4877
ac_cv_c_bigendian=no
4879
# finding both strings is unlikely to happen, but who knows?
4880
ac_cv_c_bigendian=unknown
4884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887
/* end confdefs.h. */
4888
$ac_includes_default
4893
/* Are we little or big endian? From Harbison&Steele. */
4897
char c[sizeof (long int)];
4900
return u.c[sizeof (long int) - 1] == 1;
4906
if ac_fn_c_try_run "$LINENO"; then :
4907
ac_cv_c_bigendian=no
4909
ac_cv_c_bigendian=yes
4911
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4912
conftest.$ac_objext conftest.beam conftest.$ac_ext
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4918
$as_echo "$ac_cv_c_bigendian" >&6; }
4919
case $ac_cv_c_bigendian in #(
4921
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4927
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4931
as_fn_error $? "unknown endianness
4932
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4936
# Make sure we can run config.sub.
4937
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4938
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4941
$as_echo_n "checking build system type... " >&6; }
4942
if ${ac_cv_build+:} false; then :
4943
$as_echo_n "(cached) " >&6
4945
ac_build_alias=$build_alias
4946
test "x$ac_build_alias" = x &&
4947
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4948
test "x$ac_build_alias" = x &&
4949
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4950
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4951
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4955
$as_echo "$ac_cv_build" >&6; }
4956
case $ac_cv_build in
4958
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4961
ac_save_IFS=$IFS; IFS='-'
4967
# Remember, the first character of IFS is used to create $*,
4968
# except with old shells:
4971
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4975
$as_echo_n "checking host system type... " >&6; }
4976
if ${ac_cv_host+:} false; then :
4977
$as_echo_n "(cached) " >&6
4979
if test "x$host_alias" = x; then
4980
ac_cv_host=$ac_cv_build
4982
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4983
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4988
$as_echo "$ac_cv_host" >&6; }
4991
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4994
ac_save_IFS=$IFS; IFS='-'
5000
# Remember, the first character of IFS is used to create $*,
5001
# except with old shells:
5004
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5007
enable_win32_dll=yes
5010
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5011
if test -n "$ac_tool_prefix"; then
5012
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5013
set dummy ${ac_tool_prefix}as; ac_word=$2
5014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015
$as_echo_n "checking for $ac_word... " >&6; }
5016
if ${ac_cv_prog_AS+:} false; then :
5017
$as_echo_n "(cached) " >&6
5019
if test -n "$AS"; then
5020
ac_cv_prog_AS="$AS" # Let the user override the test.
5022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026
test -z "$as_dir" && as_dir=.
5027
for ac_exec_ext in '' $ac_executable_extensions; do
5028
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029
ac_cv_prog_AS="${ac_tool_prefix}as"
5030
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040
if test -n "$AS"; then
5041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5042
$as_echo "$AS" >&6; }
5044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045
$as_echo "no" >&6; }
5050
if test -z "$ac_cv_prog_AS"; then
5052
# Extract the first word of "as", so it can be a program name with args.
5053
set dummy as; ac_word=$2
5054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055
$as_echo_n "checking for $ac_word... " >&6; }
5056
if ${ac_cv_prog_ac_ct_AS+:} false; then :
5057
$as_echo_n "(cached) " >&6
5059
if test -n "$ac_ct_AS"; then
5060
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066
test -z "$as_dir" && as_dir=.
5067
for ac_exec_ext in '' $ac_executable_extensions; do
5068
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069
ac_cv_prog_ac_ct_AS="as"
5070
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5080
if test -n "$ac_ct_AS"; then
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5082
$as_echo "$ac_ct_AS" >&6; }
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085
$as_echo "no" >&6; }
5088
if test "x$ac_ct_AS" = x; then
5091
case $cross_compiling:$ac_tool_warned in
5093
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095
ac_tool_warned=yes ;;
5103
if test -n "$ac_tool_prefix"; then
5104
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5105
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107
$as_echo_n "checking for $ac_word... " >&6; }
5108
if ${ac_cv_prog_DLLTOOL+:} false; then :
5109
$as_echo_n "(cached) " >&6
5111
if test -n "$DLLTOOL"; then
5112
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118
test -z "$as_dir" && as_dir=.
5119
for ac_exec_ext in '' $ac_executable_extensions; do
5120
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131
DLLTOOL=$ac_cv_prog_DLLTOOL
5132
if test -n "$DLLTOOL"; then
5133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5134
$as_echo "$DLLTOOL" >&6; }
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137
$as_echo "no" >&6; }
5142
if test -z "$ac_cv_prog_DLLTOOL"; then
5143
ac_ct_DLLTOOL=$DLLTOOL
5144
# Extract the first word of "dlltool", so it can be a program name with args.
5145
set dummy dlltool; ac_word=$2
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147
$as_echo_n "checking for $ac_word... " >&6; }
5148
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5149
$as_echo_n "(cached) " >&6
5151
if test -n "$ac_ct_DLLTOOL"; then
5152
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158
test -z "$as_dir" && as_dir=.
5159
for ac_exec_ext in '' $ac_executable_extensions; do
5160
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5162
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5172
if test -n "$ac_ct_DLLTOOL"; then
5173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5174
$as_echo "$ac_ct_DLLTOOL" >&6; }
5176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177
$as_echo "no" >&6; }
5180
if test "x$ac_ct_DLLTOOL" = x; then
5183
case $cross_compiling:$ac_tool_warned in
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187
ac_tool_warned=yes ;;
5189
DLLTOOL=$ac_ct_DLLTOOL
5192
DLLTOOL="$ac_cv_prog_DLLTOOL"
5195
if test -n "$ac_tool_prefix"; then
5196
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5197
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199
$as_echo_n "checking for $ac_word... " >&6; }
5200
if ${ac_cv_prog_OBJDUMP+:} false; then :
5201
$as_echo_n "(cached) " >&6
5203
if test -n "$OBJDUMP"; then
5204
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210
test -z "$as_dir" && as_dir=.
5211
for ac_exec_ext in '' $ac_executable_extensions; do
5212
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5214
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223
OBJDUMP=$ac_cv_prog_OBJDUMP
5224
if test -n "$OBJDUMP"; then
5225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5226
$as_echo "$OBJDUMP" >&6; }
5228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229
$as_echo "no" >&6; }
5234
if test -z "$ac_cv_prog_OBJDUMP"; then
5235
ac_ct_OBJDUMP=$OBJDUMP
5236
# Extract the first word of "objdump", so it can be a program name with args.
5237
set dummy objdump; ac_word=$2
5238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239
$as_echo_n "checking for $ac_word... " >&6; }
5240
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5241
$as_echo_n "(cached) " >&6
5243
if test -n "$ac_ct_OBJDUMP"; then
5244
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250
test -z "$as_dir" && as_dir=.
5251
for ac_exec_ext in '' $ac_executable_extensions; do
5252
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5254
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5264
if test -n "$ac_ct_OBJDUMP"; then
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5266
$as_echo "$ac_ct_OBJDUMP" >&6; }
5268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269
$as_echo "no" >&6; }
5272
if test "x$ac_ct_OBJDUMP" = x; then
5275
case $cross_compiling:$ac_tool_warned in
5277
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279
ac_tool_warned=yes ;;
5281
OBJDUMP=$ac_ct_OBJDUMP
5284
OBJDUMP="$ac_cv_prog_OBJDUMP"
5290
test -z "$AS" && AS=as
5296
test -z "$DLLTOOL" && DLLTOOL=dlltool
5302
test -z "$OBJDUMP" && OBJDUMP=objdump
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5314
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5320
macro_revision='1.3293'
5334
ltmain="$ac_aux_dir/ltmain.sh"
5336
# Backslashify metacharacters that are still active within
5337
# double-quoted strings.
5338
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5340
# Same as above, but do not quote variable references.
5341
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5343
# Sed substitution to delay expansion of an escaped shell variable in a
5344
# double_quote_subst'ed string.
5345
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5347
# Sed substitution to delay expansion of an escaped single quote.
5348
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5350
# Sed substitution to avoid accidental globbing in evaled expressions
5351
no_glob_subst='s/\*/\\\*/g'
5353
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5354
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5355
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5358
$as_echo_n "checking how to print strings... " >&6; }
5359
# Test print first, because it will be a builtin if present.
5360
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5361
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5363
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5366
# Use this function as a fallback that always works.
5367
func_fallback_echo ()
5369
eval 'cat <<_LTECHO_EOF
5373
ECHO='func_fallback_echo'
5376
# func_echo_all arg...
5377
# Invoke $ECHO with all args, space-separated.
5384
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5385
$as_echo "printf" >&6; } ;;
5386
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5387
$as_echo "print -r" >&6; } ;;
5388
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5389
$as_echo "cat" >&6; } ;;
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5406
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5407
if ${ac_cv_path_SED+:} false; then :
5408
$as_echo_n "(cached) " >&6
5410
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5411
for ac_i in 1 2 3 4 5 6 7; do
5412
ac_script="$ac_script$as_nl$ac_script"
5414
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5415
{ ac_script=; unset ac_script;}
5416
if test -z "$SED"; then
5417
ac_path_SED_found=false
5418
# Loop through the user's path and test for each of PROGNAME-LIST
5419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423
test -z "$as_dir" && as_dir=.
5424
for ac_prog in sed gsed; do
5425
for ac_exec_ext in '' $ac_executable_extensions; do
5426
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5427
as_fn_executable_p "$ac_path_SED" || continue
5428
# Check for GNU ac_path_SED and select it if it is found.
5429
# Check for GNU $ac_path_SED
5430
case `"$ac_path_SED" --version 2>&1` in
5432
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5435
$as_echo_n 0123456789 >"conftest.in"
5438
cat "conftest.in" "conftest.in" >"conftest.tmp"
5439
mv "conftest.tmp" "conftest.in"
5440
cp "conftest.in" "conftest.nl"
5441
$as_echo '' >> "conftest.nl"
5442
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444
as_fn_arith $ac_count + 1 && ac_count=$as_val
5445
if test $ac_count -gt ${ac_path_SED_max-0}; then
5446
# Best one so far, save it but keep looking for a better one
5447
ac_cv_path_SED="$ac_path_SED"
5448
ac_path_SED_max=$ac_count
5450
# 10*(2^10) chars as input seems more than enough
5451
test $ac_count -gt 10 && break
5453
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5456
$ac_path_SED_found && break 3
5461
if test -z "$ac_cv_path_SED"; then
5462
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5470
$as_echo "$ac_cv_path_SED" >&6; }
5471
SED="$ac_cv_path_SED"
5474
test -z "$SED" && SED=sed
5475
Xsed="$SED -e 1s/^X//"
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5488
$as_echo_n "checking for fgrep... " >&6; }
5489
if ${ac_cv_path_FGREP+:} false; then :
5490
$as_echo_n "(cached) " >&6
5492
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5493
then ac_cv_path_FGREP="$GREP -F"
5495
if test -z "$FGREP"; then
5496
ac_path_FGREP_found=false
5497
# Loop through the user's path and test for each of PROGNAME-LIST
5498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5502
test -z "$as_dir" && as_dir=.
5503
for ac_prog in fgrep; do
5504
for ac_exec_ext in '' $ac_executable_extensions; do
5505
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5506
as_fn_executable_p "$ac_path_FGREP" || continue
5507
# Check for GNU ac_path_FGREP and select it if it is found.
5508
# Check for GNU $ac_path_FGREP
5509
case `"$ac_path_FGREP" --version 2>&1` in
5511
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5514
$as_echo_n 0123456789 >"conftest.in"
5517
cat "conftest.in" "conftest.in" >"conftest.tmp"
5518
mv "conftest.tmp" "conftest.in"
5519
cp "conftest.in" "conftest.nl"
5520
$as_echo 'FGREP' >> "conftest.nl"
5521
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523
as_fn_arith $ac_count + 1 && ac_count=$as_val
5524
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5525
# Best one so far, save it but keep looking for a better one
5526
ac_cv_path_FGREP="$ac_path_FGREP"
5527
ac_path_FGREP_max=$ac_count
5529
# 10*(2^10) chars as input seems more than enough
5530
test $ac_count -gt 10 && break
5532
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535
$ac_path_FGREP_found && break 3
5540
if test -z "$ac_cv_path_FGREP"; then
5541
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5544
ac_cv_path_FGREP=$FGREP
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5550
$as_echo "$ac_cv_path_FGREP" >&6; }
5551
FGREP="$ac_cv_path_FGREP"
5554
test -z "$GREP" && GREP=grep
5574
# Check whether --with-gnu-ld was given.
5575
if test "${with_gnu_ld+set}" = set; then :
5576
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5582
if test "$GCC" = yes; then
5583
# Check if gcc -print-prog-name=ld gives a path.
5584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5585
$as_echo_n "checking for ld used by $CC... " >&6; }
5588
# gcc leaves a trailing carriage return which upsets mingw
5589
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5591
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5594
# Accept absolute paths.
5596
re_direlt='/[^/][^/]*/\.\./'
5597
# Canonicalize the pathname of ld
5598
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5599
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5600
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5602
test -z "$LD" && LD="$ac_prog"
5605
# If it fails, then pretend we aren't using GCC.
5609
# If it is relative, then search for the first ld in PATH.
5613
elif test "$with_gnu_ld" = yes; then
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5615
$as_echo_n "checking for GNU ld... " >&6; }
5617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5618
$as_echo_n "checking for non-GNU ld... " >&6; }
5620
if ${lt_cv_path_LD+:} false; then :
5621
$as_echo_n "(cached) " >&6
5623
if test -z "$LD"; then
5624
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5625
for ac_dir in $PATH; do
5627
test -z "$ac_dir" && ac_dir=.
5628
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5629
lt_cv_path_LD="$ac_dir/$ac_prog"
5630
# Check to see if the program is GNU ld. I'd rather use --version,
5631
# but apparently some variants of GNU ld only accept -v.
5632
# Break only if it was the GNU/non-GNU ld that we prefer.
5633
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5634
*GNU* | *'with BFD'*)
5635
test "$with_gnu_ld" != no && break
5638
test "$with_gnu_ld" != yes && break
5645
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5650
if test -n "$LD"; then
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5652
$as_echo "$LD" >&6; }
5654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655
$as_echo "no" >&6; }
5657
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5659
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5660
if ${lt_cv_prog_gnu_ld+:} false; then :
5661
$as_echo_n "(cached) " >&6
5663
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5664
case `$LD -v 2>&1 </dev/null` in
5665
*GNU* | *'with BFD'*)
5666
lt_cv_prog_gnu_ld=yes
5669
lt_cv_prog_gnu_ld=no
5673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5674
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5675
with_gnu_ld=$lt_cv_prog_gnu_ld
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5686
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5687
if ${lt_cv_path_NM+:} false; then :
5688
$as_echo_n "(cached) " >&6
5690
if test -n "$NM"; then
5691
# Let the user override the test.
5694
lt_nm_to_check="${ac_tool_prefix}nm"
5695
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5696
lt_nm_to_check="$lt_nm_to_check nm"
5698
for lt_tmp_nm in $lt_nm_to_check; do
5699
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5702
test -z "$ac_dir" && ac_dir=.
5703
tmp_nm="$ac_dir/$lt_tmp_nm"
5704
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5705
# Check to see if the nm accepts a BSD-compat flag.
5706
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5707
# nm: unknown option "B" ignored
5708
# Tru64's nm complains that /dev/null is an invalid object file
5709
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5710
*/dev/null* | *'Invalid file or object type'*)
5711
lt_cv_path_NM="$tmp_nm -B"
5715
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5717
lt_cv_path_NM="$tmp_nm -p"
5721
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722
continue # so that we can try to find one that supports BSD flags
5731
: ${lt_cv_path_NM=no}
5734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5735
$as_echo "$lt_cv_path_NM" >&6; }
5736
if test "$lt_cv_path_NM" != "no"; then
5739
# Didn't find any BSD compatible name lister, look for dumpbin.
5740
if test -n "$DUMPBIN"; then :
5741
# Let the user override the test.
5743
if test -n "$ac_tool_prefix"; then
5744
for ac_prog in dumpbin "link -dump"
5746
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5747
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749
$as_echo_n "checking for $ac_word... " >&6; }
5750
if ${ac_cv_prog_DUMPBIN+:} false; then :
5751
$as_echo_n "(cached) " >&6
5753
if test -n "$DUMPBIN"; then
5754
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760
test -z "$as_dir" && as_dir=.
5761
for ac_exec_ext in '' $ac_executable_extensions; do
5762
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5764
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773
DUMPBIN=$ac_cv_prog_DUMPBIN
5774
if test -n "$DUMPBIN"; then
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5776
$as_echo "$DUMPBIN" >&6; }
5778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779
$as_echo "no" >&6; }
5783
test -n "$DUMPBIN" && break
5786
if test -z "$DUMPBIN"; then
5787
ac_ct_DUMPBIN=$DUMPBIN
5788
for ac_prog in dumpbin "link -dump"
5790
# Extract the first word of "$ac_prog", so it can be a program name with args.
5791
set dummy $ac_prog; ac_word=$2
5792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793
$as_echo_n "checking for $ac_word... " >&6; }
5794
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5795
$as_echo_n "(cached) " >&6
5797
if test -n "$ac_ct_DUMPBIN"; then
5798
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804
test -z "$as_dir" && as_dir=.
5805
for ac_exec_ext in '' $ac_executable_extensions; do
5806
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5808
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5818
if test -n "$ac_ct_DUMPBIN"; then
5819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5820
$as_echo "$ac_ct_DUMPBIN" >&6; }
5822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823
$as_echo "no" >&6; }
5827
test -n "$ac_ct_DUMPBIN" && break
5830
if test "x$ac_ct_DUMPBIN" = x; then
5833
case $cross_compiling:$ac_tool_warned in
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837
ac_tool_warned=yes ;;
5839
DUMPBIN=$ac_ct_DUMPBIN
5843
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5845
DUMPBIN="$DUMPBIN -symbols"
5853
if test "$DUMPBIN" != ":"; then
5857
test -z "$NM" && NM=nm
5864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5865
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5866
if ${lt_cv_nm_interface+:} false; then :
5867
$as_echo_n "(cached) " >&6
5869
lt_cv_nm_interface="BSD nm"
5870
echo "int some_variable = 0;" > conftest.$ac_ext
5871
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5872
(eval "$ac_compile" 2>conftest.err)
5873
cat conftest.err >&5
5874
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5875
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5876
cat conftest.err >&5
5877
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5878
cat conftest.out >&5
5879
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5880
lt_cv_nm_interface="MS dumpbin"
5884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5885
$as_echo "$lt_cv_nm_interface" >&6; }
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5888
$as_echo_n "checking whether ln -s works... " >&6; }
5890
if test "$LN_S" = "ln -s"; then
5891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5892
$as_echo "yes" >&6; }
5894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5895
$as_echo "no, using $LN_S" >&6; }
5898
# find the maximum length of command line arguments
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5900
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5901
if ${lt_cv_sys_max_cmd_len+:} false; then :
5902
$as_echo_n "(cached) " >&6
5909
# On DJGPP, this test can blow up pretty badly due to problems in libc
5910
# (any single argument exceeding 2000 bytes causes a buffer overrun
5911
# during glob expansion). Even if it were fixed, the result of this
5912
# check would be larger than it should be.
5913
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5917
# Under GNU Hurd, this test is not required because there is
5918
# no limit to the length of command line arguments.
5919
# Libtool will interpret -1 as no limit whatsoever
5920
lt_cv_sys_max_cmd_len=-1;
5923
cygwin* | mingw* | cegcc*)
5924
# On Win9x/ME, this test blows up -- it succeeds, but takes
5925
# about 5 minutes as the teststring grows exponentially.
5926
# Worse, since 9x/ME are not pre-emptively multitasking,
5927
# you end up with a "frozen" computer, even though with patience
5928
# the test eventually succeeds (with a max line length of 256k).
5929
# Instead, let's just punt: use the minimum linelength reported by
5930
# all of the supported platforms: 8192 (on NT/2K/XP).
5931
lt_cv_sys_max_cmd_len=8192;
5935
# On MiNT this can take a long time and run out of memory.
5936
lt_cv_sys_max_cmd_len=8192;
5940
# On AmigaOS with pdksh, this test takes hours, literally.
5941
# So we just punt and use a minimum line length of 8192.
5942
lt_cv_sys_max_cmd_len=8192;
5945
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5946
# This has been around since 386BSD, at least. Likely further.
5947
if test -x /sbin/sysctl; then
5948
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5949
elif test -x /usr/sbin/sysctl; then
5950
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5952
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5954
# And add a safety zone
5955
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5956
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5960
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5961
lt_cv_sys_max_cmd_len=196608
5965
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5966
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5967
# nice to cause kernel panics so lets avoid the loop below.
5968
# First set a reasonable default.
5969
lt_cv_sys_max_cmd_len=16384
5971
if test -x /sbin/sysconfig; then
5972
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5973
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5978
lt_cv_sys_max_cmd_len=102400
5980
sysv5* | sco5v6* | sysv4.2uw2*)
5981
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5982
if test -n "$kargmax"; then
5983
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5985
lt_cv_sys_max_cmd_len=32768
5989
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5990
if test -n "$lt_cv_sys_max_cmd_len"; then
5991
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5992
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5994
# Make teststring a little bigger before we do anything with it.
5995
# a 1K string should be a reasonable start.
5996
for i in 1 2 3 4 5 6 7 8 ; do
5997
teststring=$teststring$teststring
5999
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6000
# If test is not a shell built-in, we'll probably end up computing a
6001
# maximum length that is only half of the actual maximum length, but
6003
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6004
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6005
test $i != 17 # 1/2 MB should be enough
6008
teststring=$teststring$teststring
6010
# Only check the string length outside the loop.
6011
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6013
# Add a significant safety factor because C++ compilers can tack on
6014
# massive amounts of additional arguments before passing them to the
6015
# linker. It appears as though 1/2 is a usable value.
6016
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6023
if test -n $lt_cv_sys_max_cmd_len ; then
6024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6025
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6028
$as_echo "none" >&6; }
6030
max_cmd_len=$lt_cv_sys_max_cmd_len
6041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6042
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6043
# Try some XSI features
6046
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6048
&& eval 'test $(( 1 + 1 )) -eq 2 \
6049
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6052
$as_echo "$xsi_shell" >&6; }
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6056
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6058
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6060
&& lt_shell_append=yes
6061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6062
$as_echo "$lt_shell_append" >&6; }
6065
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6075
# test EBCDIC or ASCII
6076
case `echo X|tr X '\101'` in
6077
A) # ASCII based system
6078
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6079
lt_SP2NL='tr \040 \012'
6080
lt_NL2SP='tr \015\012 \040\040'
6082
*) # EBCDIC based system
6083
lt_SP2NL='tr \100 \n'
6084
lt_NL2SP='tr \r\n \100\100'
6096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6097
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6098
if ${lt_cv_to_host_file_cmd+:} false; then :
6099
$as_echo_n "(cached) " >&6
6104
*-*-mingw* ) # actually msys
6105
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6108
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6110
* ) # otherwise, assume *nix
6111
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6117
*-*-mingw* ) # actually msys
6118
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6121
lt_cv_to_host_file_cmd=func_convert_file_noop
6123
* ) # otherwise, assume *nix
6124
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6128
* ) # unhandled hosts (and "normal" native builds)
6129
lt_cv_to_host_file_cmd=func_convert_file_noop
6135
to_host_file_cmd=$lt_cv_to_host_file_cmd
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6137
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6144
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6145
if ${lt_cv_to_tool_file_cmd+:} false; then :
6146
$as_echo_n "(cached) " >&6
6148
#assume ordinary cross tools, or native build.
6149
lt_cv_to_tool_file_cmd=func_convert_file_noop
6153
*-*-mingw* ) # actually msys
6154
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6162
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6164
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6172
if ${lt_cv_ld_reload_flag+:} false; then :
6173
$as_echo_n "(cached) " >&6
6175
lt_cv_ld_reload_flag='-r'
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6179
reload_flag=$lt_cv_ld_reload_flag
6180
case $reload_flag in
6182
*) reload_flag=" $reload_flag" ;;
6184
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186
cygwin* | mingw* | pw32* | cegcc*)
6187
if test "$GCC" != yes; then
6192
if test "$GCC" = yes; then
6193
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6195
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6208
if test -n "$ac_tool_prefix"; then
6209
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6210
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212
$as_echo_n "checking for $ac_word... " >&6; }
6213
if ${ac_cv_prog_OBJDUMP+:} false; then :
6214
$as_echo_n "(cached) " >&6
6216
if test -n "$OBJDUMP"; then
6217
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223
test -z "$as_dir" && as_dir=.
6224
for ac_exec_ext in '' $ac_executable_extensions; do
6225
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6227
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236
OBJDUMP=$ac_cv_prog_OBJDUMP
6237
if test -n "$OBJDUMP"; then
6238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6239
$as_echo "$OBJDUMP" >&6; }
6241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242
$as_echo "no" >&6; }
6247
if test -z "$ac_cv_prog_OBJDUMP"; then
6248
ac_ct_OBJDUMP=$OBJDUMP
6249
# Extract the first word of "objdump", so it can be a program name with args.
6250
set dummy objdump; ac_word=$2
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252
$as_echo_n "checking for $ac_word... " >&6; }
6253
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6254
$as_echo_n "(cached) " >&6
6256
if test -n "$ac_ct_OBJDUMP"; then
6257
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263
test -z "$as_dir" && as_dir=.
6264
for ac_exec_ext in '' $ac_executable_extensions; do
6265
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6267
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6277
if test -n "$ac_ct_OBJDUMP"; then
6278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6279
$as_echo "$ac_ct_OBJDUMP" >&6; }
6281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282
$as_echo "no" >&6; }
6285
if test "x$ac_ct_OBJDUMP" = x; then
6288
case $cross_compiling:$ac_tool_warned in
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292
ac_tool_warned=yes ;;
6294
OBJDUMP=$ac_ct_OBJDUMP
6297
OBJDUMP="$ac_cv_prog_OBJDUMP"
6300
test -z "$OBJDUMP" && OBJDUMP=objdump
6307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6308
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6309
if ${lt_cv_deplibs_check_method+:} false; then :
6310
$as_echo_n "(cached) " >&6
6312
lt_cv_file_magic_cmd='$MAGIC_CMD'
6313
lt_cv_file_magic_test_file=
6314
lt_cv_deplibs_check_method='unknown'
6315
# Need to set the preceding variable on all platforms that support
6316
# interlibrary dependencies.
6317
# 'none' -- dependencies not supported.
6318
# `unknown' -- same as none, but documents that we really don't know.
6319
# 'pass_all' -- all dependencies passed with no checks.
6320
# 'test_compile' -- check by making test program.
6321
# 'file_magic [[regex]]' -- check by looking for files in library path
6322
# which responds to the $file_magic_cmd with a given extended regex.
6323
# If you have `file' or equivalent on your system and you're not sure
6324
# whether `pass_all' will *always* work, you probably want this one.
6328
lt_cv_deplibs_check_method=pass_all
6332
lt_cv_deplibs_check_method=pass_all
6336
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6337
lt_cv_file_magic_cmd='/usr/bin/file -L'
6338
lt_cv_file_magic_test_file=/shlib/libc.so
6342
# func_win32_libid is a shell function defined in ltmain.sh
6343
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344
lt_cv_file_magic_cmd='func_win32_libid'
6348
# Base MSYS/MinGW do not provide the 'file' command needed by
6349
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6350
# unless we find 'file', for example because we are cross-compiling.
6351
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6352
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6353
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354
lt_cv_file_magic_cmd='func_win32_libid'
6356
# Keep this pattern in sync with the one in func_win32_libid.
6357
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6358
lt_cv_file_magic_cmd='$OBJDUMP -f'
6363
# use the weaker test based on 'objdump'. See mingw*.
6364
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6365
lt_cv_file_magic_cmd='$OBJDUMP -f'
6368
darwin* | rhapsody*)
6369
lt_cv_deplibs_check_method=pass_all
6372
freebsd* | dragonfly*)
6373
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376
# Not sure whether the presence of OpenBSD here was a mistake.
6377
# Let's accept both of them until this is cleared up.
6378
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6379
lt_cv_file_magic_cmd=/usr/bin/file
6380
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6384
lt_cv_deplibs_check_method=pass_all
6389
lt_cv_deplibs_check_method=pass_all
6393
lt_cv_deplibs_check_method=pass_all
6396
hpux10.20* | hpux11*)
6397
lt_cv_file_magic_cmd=/usr/bin/file
6400
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6401
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6404
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]'
6405
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6408
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6409
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6415
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6416
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6419
irix5* | irix6* | nonstopux*)
6421
*-32|*"-32 ") libmagic=32-bit;;
6422
*-n32|*"-n32 ") libmagic=N32;;
6423
*-64|*"-64 ") libmagic=64-bit;;
6424
*) libmagic=never-match;;
6426
lt_cv_deplibs_check_method=pass_all
6429
# This must be Linux ELF.
6430
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6431
lt_cv_deplibs_check_method=pass_all
6435
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6436
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6438
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6443
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6444
lt_cv_file_magic_cmd=/usr/bin/file
6445
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6449
lt_cv_deplibs_check_method=pass_all
6453
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6454
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6456
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6460
osf3* | osf4* | osf5*)
6461
lt_cv_deplibs_check_method=pass_all
6465
lt_cv_deplibs_check_method=pass_all
6469
lt_cv_deplibs_check_method=pass_all
6472
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6473
lt_cv_deplibs_check_method=pass_all
6477
case $host_vendor in
6479
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]'
6480
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6483
lt_cv_deplibs_check_method=pass_all
6486
lt_cv_file_magic_cmd='/bin/file'
6487
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6490
lt_cv_file_magic_cmd='/bin/file'
6491
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6492
lt_cv_file_magic_test_file=/lib/libc.so
6495
lt_cv_deplibs_check_method=pass_all
6498
lt_cv_deplibs_check_method=pass_all
6504
lt_cv_deplibs_check_method=pass_all
6509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6510
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6514
if test "$build" = "$host"; then
6517
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6520
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6526
file_magic_cmd=$lt_cv_file_magic_cmd
6527
deplibs_check_method=$lt_cv_deplibs_check_method
6528
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
if test -n "$ac_tool_prefix"; then
6552
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6553
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555
$as_echo_n "checking for $ac_word... " >&6; }
6556
if ${ac_cv_prog_DLLTOOL+:} false; then :
6557
$as_echo_n "(cached) " >&6
6559
if test -n "$DLLTOOL"; then
6560
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566
test -z "$as_dir" && as_dir=.
6567
for ac_exec_ext in '' $ac_executable_extensions; do
6568
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6570
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579
DLLTOOL=$ac_cv_prog_DLLTOOL
6580
if test -n "$DLLTOOL"; then
6581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6582
$as_echo "$DLLTOOL" >&6; }
6584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585
$as_echo "no" >&6; }
6590
if test -z "$ac_cv_prog_DLLTOOL"; then
6591
ac_ct_DLLTOOL=$DLLTOOL
6592
# Extract the first word of "dlltool", so it can be a program name with args.
6593
set dummy dlltool; ac_word=$2
6594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595
$as_echo_n "checking for $ac_word... " >&6; }
6596
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6597
$as_echo_n "(cached) " >&6
6599
if test -n "$ac_ct_DLLTOOL"; then
6600
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606
test -z "$as_dir" && as_dir=.
6607
for ac_exec_ext in '' $ac_executable_extensions; do
6608
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6610
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6620
if test -n "$ac_ct_DLLTOOL"; then
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6622
$as_echo "$ac_ct_DLLTOOL" >&6; }
6624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625
$as_echo "no" >&6; }
6628
if test "x$ac_ct_DLLTOOL" = x; then
6631
case $cross_compiling:$ac_tool_warned in
6633
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6634
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635
ac_tool_warned=yes ;;
6637
DLLTOOL=$ac_ct_DLLTOOL
6640
DLLTOOL="$ac_cv_prog_DLLTOOL"
6643
test -z "$DLLTOOL" && DLLTOOL=dlltool
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6652
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6653
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6654
$as_echo_n "(cached) " >&6
6656
lt_cv_sharedlib_from_linklib_cmd='unknown'
6659
cygwin* | mingw* | pw32* | cegcc*)
6660
# two different shell functions defined in ltmain.sh
6661
# decide which to use based on capabilities of $DLLTOOL
6662
case `$DLLTOOL --help 2>&1` in
6663
*--identify-strict*)
6664
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6667
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6672
# fallback: assume linklib IS sharedlib
6673
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6679
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6680
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6681
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6689
if test -n "$ac_tool_prefix"; then
6692
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6693
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695
$as_echo_n "checking for $ac_word... " >&6; }
6696
if ${ac_cv_prog_AR+:} false; then :
6697
$as_echo_n "(cached) " >&6
6699
if test -n "$AR"; then
6700
ac_cv_prog_AR="$AR" # Let the user override the test.
6702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706
test -z "$as_dir" && as_dir=.
6707
for ac_exec_ext in '' $ac_executable_extensions; do
6708
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6710
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720
if test -n "$AR"; then
6721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6722
$as_echo "$AR" >&6; }
6724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725
$as_echo "no" >&6; }
6729
test -n "$AR" && break
6732
if test -z "$AR"; then
6736
# Extract the first word of "$ac_prog", so it can be a program name with args.
6737
set dummy $ac_prog; ac_word=$2
6738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739
$as_echo_n "checking for $ac_word... " >&6; }
6740
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6741
$as_echo_n "(cached) " >&6
6743
if test -n "$ac_ct_AR"; then
6744
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750
test -z "$as_dir" && as_dir=.
6751
for ac_exec_ext in '' $ac_executable_extensions; do
6752
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753
ac_cv_prog_ac_ct_AR="$ac_prog"
6754
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6764
if test -n "$ac_ct_AR"; then
6765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6766
$as_echo "$ac_ct_AR" >&6; }
6768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769
$as_echo "no" >&6; }
6773
test -n "$ac_ct_AR" && break
6776
if test "x$ac_ct_AR" = x; then
6779
case $cross_compiling:$ac_tool_warned in
6781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783
ac_tool_warned=yes ;;
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6803
$as_echo_n "checking for archiver @FILE support... " >&6; }
6804
if ${lt_cv_ar_at_file+:} false; then :
6805
$as_echo_n "(cached) " >&6
6808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809
/* end confdefs.h. */
6819
if ac_fn_c_try_compile "$LINENO"; then :
6820
echo conftest.$ac_objext > conftest.lst
6821
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6822
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6823
(eval $lt_ar_try) 2>&5
6825
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826
test $ac_status = 0; }
6827
if test "$ac_status" -eq 0; then
6828
# Ensure the archiver fails upon bogus file names.
6829
rm -f conftest.$ac_objext libconftest.a
6830
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6831
(eval $lt_ar_try) 2>&5
6833
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834
test $ac_status = 0; }
6835
if test "$ac_status" -ne 0; then
6839
rm -f conftest.* libconftest.a
6842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6846
$as_echo "$lt_cv_ar_at_file" >&6; }
6848
if test "x$lt_cv_ar_at_file" = xno; then
6851
archiver_list_spec=$lt_cv_ar_at_file
6860
if test -n "$ac_tool_prefix"; then
6861
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6862
set dummy ${ac_tool_prefix}strip; ac_word=$2
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864
$as_echo_n "checking for $ac_word... " >&6; }
6865
if ${ac_cv_prog_STRIP+:} false; then :
6866
$as_echo_n "(cached) " >&6
6868
if test -n "$STRIP"; then
6869
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875
test -z "$as_dir" && as_dir=.
6876
for ac_exec_ext in '' $ac_executable_extensions; do
6877
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888
STRIP=$ac_cv_prog_STRIP
6889
if test -n "$STRIP"; then
6890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6891
$as_echo "$STRIP" >&6; }
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894
$as_echo "no" >&6; }
6899
if test -z "$ac_cv_prog_STRIP"; then
6901
# Extract the first word of "strip", so it can be a program name with args.
6902
set dummy strip; ac_word=$2
6903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904
$as_echo_n "checking for $ac_word... " >&6; }
6905
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6906
$as_echo_n "(cached) " >&6
6908
if test -n "$ac_ct_STRIP"; then
6909
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915
test -z "$as_dir" && as_dir=.
6916
for ac_exec_ext in '' $ac_executable_extensions; do
6917
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918
ac_cv_prog_ac_ct_STRIP="strip"
6919
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6929
if test -n "$ac_ct_STRIP"; then
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6931
$as_echo "$ac_ct_STRIP" >&6; }
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934
$as_echo "no" >&6; }
6937
if test "x$ac_ct_STRIP" = x; then
6940
case $cross_compiling:$ac_tool_warned in
6942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944
ac_tool_warned=yes ;;
6949
STRIP="$ac_cv_prog_STRIP"
6952
test -z "$STRIP" && STRIP=:
6959
if test -n "$ac_tool_prefix"; then
6960
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963
$as_echo_n "checking for $ac_word... " >&6; }
6964
if ${ac_cv_prog_RANLIB+:} false; then :
6965
$as_echo_n "(cached) " >&6
6967
if test -n "$RANLIB"; then
6968
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974
test -z "$as_dir" && as_dir=.
6975
for ac_exec_ext in '' $ac_executable_extensions; do
6976
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987
RANLIB=$ac_cv_prog_RANLIB
6988
if test -n "$RANLIB"; then
6989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6990
$as_echo "$RANLIB" >&6; }
6992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993
$as_echo "no" >&6; }
6998
if test -z "$ac_cv_prog_RANLIB"; then
6999
ac_ct_RANLIB=$RANLIB
7000
# Extract the first word of "ranlib", so it can be a program name with args.
7001
set dummy ranlib; ac_word=$2
7002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003
$as_echo_n "checking for $ac_word... " >&6; }
7004
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7005
$as_echo_n "(cached) " >&6
7007
if test -n "$ac_ct_RANLIB"; then
7008
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014
test -z "$as_dir" && as_dir=.
7015
for ac_exec_ext in '' $ac_executable_extensions; do
7016
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017
ac_cv_prog_ac_ct_RANLIB="ranlib"
7018
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028
if test -n "$ac_ct_RANLIB"; then
7029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7030
$as_echo "$ac_ct_RANLIB" >&6; }
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033
$as_echo "no" >&6; }
7036
if test "x$ac_ct_RANLIB" = x; then
7039
case $cross_compiling:$ac_tool_warned in
7041
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043
ac_tool_warned=yes ;;
7045
RANLIB=$ac_ct_RANLIB
7048
RANLIB="$ac_cv_prog_RANLIB"
7051
test -z "$RANLIB" && RANLIB=:
7058
# Determine commands to create old-style static archives.
7059
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7060
old_postinstall_cmds='chmod 644 $oldlib'
7061
old_postuninstall_cmds=
7063
if test -n "$RANLIB"; then
7066
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7069
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7072
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7077
lock_old_archive_extraction=yes ;;
7079
lock_old_archive_extraction=no ;;
7120
# If no C compiler was specified, use CC.
7123
# If no C compiler flags were specified, use CFLAGS.
7124
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7126
# Allow CC to be a program name with arguments.
7130
# Check for command to grab the raw symbol name followed by C symbol from nm.
7131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7132
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7133
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7134
$as_echo_n "(cached) " >&6
7137
# These are sane defaults that work on at least a few old systems.
7138
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7140
# Character class describing NM global symbol codes.
7141
symcode='[BCDEGRST]'
7143
# Regexp to match symbols that can be accessed directly from C.
7144
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7146
# Define system-specific variables.
7151
cygwin* | mingw* | pw32* | cegcc*)
7152
symcode='[ABCDGISTW]'
7155
if test "$host_cpu" = ia64; then
7156
symcode='[ABCDEGRST]'
7160
symcode='[BCDEGRST]'
7163
symcode='[BCDEGQRST]'
7174
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7182
# If we're using GNU nm, then use its standard symbol codes.
7183
case `$NM -V 2>&1` in
7184
*GNU* | *'with BFD'*)
7185
symcode='[ABCDGIRSTW]' ;;
7188
# Transform an extracted symbol line into a proper C declaration.
7189
# Some systems (esp. on ia64) link data and code symbols differently,
7190
# so use this general approach.
7191
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7193
# Transform an extracted symbol line into symbol name and symbol address
7194
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7195
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'"
7197
# Handle CRLF in mingw tool chain
7201
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7205
# Try without a prefix underscore, then with it.
7206
for ac_symprfx in "" "_"; do
7208
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7209
symxfrm="\\1 $ac_symprfx\\2 \\2"
7211
# Write the raw and C identifiers.
7212
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7213
# Fake it for dumpbin and say T for any non-static function
7214
# and D for any global variable.
7215
# Also find C++ and __fastcall symbols from MSVC++,
7216
# which start with @ or ?.
7217
lt_cv_sys_global_symbol_pipe="$AWK '"\
7218
" {last_section=section; section=\$ 3};"\
7219
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7220
" \$ 0!~/External *\|/{next};"\
7221
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7222
" {if(hide[section]) next};"\
7223
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7224
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7225
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7226
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7227
" ' prfx=^$ac_symprfx"
7229
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7231
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7233
# Check to see that the pipe works correctly.
7237
cat > conftest.$ac_ext <<_LT_EOF
7242
void nm_test_func(void);
7243
void nm_test_func(void){}
7247
int main(){nm_test_var='a';nm_test_func();return(0);}
7250
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251
(eval $ac_compile) 2>&5
7253
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254
test $ac_status = 0; }; then
7255
# Now try to grab the symbols.
7257
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7258
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7260
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261
test $ac_status = 0; } && test -s "$nlist"; then
7262
# Try sorting and uniquifying the output.
7263
if sort "$nlist" | uniq > "$nlist"T; then
7264
mv -f "$nlist"T "$nlist"
7269
# Make sure that we snagged all the symbols we need.
7270
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7271
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7272
cat <<_LT_EOF > conftest.$ac_ext
7273
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7274
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7275
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7276
relocations are performed -- see ld's documentation on pseudo-relocs. */
7277
# define LT_DLSYM_CONST
7278
#elif defined(__osf__)
7279
/* This system does not cope well with relocations in const data. */
7280
# define LT_DLSYM_CONST
7282
# define LT_DLSYM_CONST const
7290
# Now generate the symbol file.
7291
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7293
cat <<_LT_EOF >> conftest.$ac_ext
7295
/* The mapping between symbol names and symbols. */
7296
LT_DLSYM_CONST struct {
7300
lt__PROGRAM__LTX_preloaded_symbols[] =
7302
{ "@PROGRAM@", (void *) 0 },
7304
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7305
cat <<\_LT_EOF >> conftest.$ac_ext
7309
/* This works around a problem in FreeBSD linker */
7310
#ifdef FREEBSD_WORKAROUND
7311
static const void *lt_preloaded_setup() {
7312
return lt__PROGRAM__LTX_preloaded_symbols;
7320
# Now try linking the two files.
7321
mv conftest.$ac_objext conftstm.$ac_objext
7322
lt_globsym_save_LIBS=$LIBS
7323
lt_globsym_save_CFLAGS=$CFLAGS
7324
LIBS="conftstm.$ac_objext"
7325
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7326
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7327
(eval $ac_link) 2>&5
7329
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7333
LIBS=$lt_globsym_save_LIBS
7334
CFLAGS=$lt_globsym_save_CFLAGS
7336
echo "cannot find nm_test_func in $nlist" >&5
7339
echo "cannot find nm_test_var in $nlist" >&5
7342
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7345
echo "$progname: failed program was:" >&5
7346
cat conftest.$ac_ext >&5
7348
rm -rf conftest* conftst*
7350
# Do not use the global_symbol_pipe unless it works.
7351
if test "$pipe_works" = yes; then
7354
lt_cv_sys_global_symbol_pipe=
7360
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7361
lt_cv_sys_global_symbol_to_cdecl=
7363
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7365
$as_echo "failed" >&6; }
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7368
$as_echo "ok" >&6; }
7371
# Response file support.
7372
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7373
nm_file_list_spec='@'
7374
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7375
nm_file_list_spec='@'
7404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7405
$as_echo_n "checking for sysroot... " >&6; }
7407
# Check whether --with-sysroot was given.
7408
if test "${with_sysroot+set}" = set; then :
7409
withval=$with_sysroot;
7416
case ${with_sysroot} in #(
7418
if test "$GCC" = yes; then
7419
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7423
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7429
$as_echo "${with_sysroot}" >&6; }
7430
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7435
$as_echo "${lt_sysroot:-no}" >&6; }
7441
# Check whether --enable-libtool-lock was given.
7442
if test "${enable_libtool_lock+set}" = set; then :
7443
enableval=$enable_libtool_lock;
7446
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7448
# Some flags need to be propagated to the compiler or linker for good
7452
# Find out which ABI we are using.
7453
echo 'int i;' > conftest.$ac_ext
7454
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455
(eval $ac_compile) 2>&5
7457
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458
test $ac_status = 0; }; then
7459
case `/usr/bin/file conftest.$ac_objext` in
7471
# Find out which ABI we are using.
7472
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7473
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474
(eval $ac_compile) 2>&5
7476
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477
test $ac_status = 0; }; then
7478
if test "$lt_cv_prog_gnu_ld" = yes; then
7479
case `/usr/bin/file conftest.$ac_objext` in
7481
LD="${LD-ld} -melf32bsmip"
7484
LD="${LD-ld} -melf32bmipn32"
7487
LD="${LD-ld} -melf64bmip"
7491
case `/usr/bin/file conftest.$ac_objext` in
7507
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7508
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7509
# Find out which ABI we are using.
7510
echo 'int i;' > conftest.$ac_ext
7511
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512
(eval $ac_compile) 2>&5
7514
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515
test $ac_status = 0; }; then
7516
case `/usr/bin/file conftest.o` in
7519
x86_64-*kfreebsd*-gnu)
7520
LD="${LD-ld} -m elf_i386_fbsd"
7523
LD="${LD-ld} -m elf_i386"
7525
ppc64-*linux*|powerpc64-*linux*)
7526
LD="${LD-ld} -m elf32ppclinux"
7529
LD="${LD-ld} -m elf_s390"
7532
LD="${LD-ld} -m elf32_sparc"
7538
x86_64-*kfreebsd*-gnu)
7539
LD="${LD-ld} -m elf_x86_64_fbsd"
7542
LD="${LD-ld} -m elf_x86_64"
7544
ppc*-*linux*|powerpc*-*linux*)
7545
LD="${LD-ld} -m elf64ppc"
7547
s390*-*linux*|s390*-*tpf*)
7548
LD="${LD-ld} -m elf64_s390"
7551
LD="${LD-ld} -m elf64_sparc"
7561
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7562
SAVE_CFLAGS="$CFLAGS"
7563
CFLAGS="$CFLAGS -belf"
7564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7565
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7566
if ${lt_cv_cc_needs_belf+:} false; then :
7567
$as_echo_n "(cached) " >&6
7570
ac_cpp='$CPP $CPPFLAGS'
7571
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7572
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7573
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576
/* end confdefs.h. */
7586
if ac_fn_c_try_link "$LINENO"; then :
7587
lt_cv_cc_needs_belf=yes
7589
lt_cv_cc_needs_belf=no
7591
rm -f core conftest.err conftest.$ac_objext \
7592
conftest$ac_exeext conftest.$ac_ext
7594
ac_cpp='$CPP $CPPFLAGS'
7595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7601
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7602
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7603
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7604
CFLAGS="$SAVE_CFLAGS"
7608
# Find out which ABI we are using.
7609
echo 'int i;' > conftest.$ac_ext
7610
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7611
(eval $ac_compile) 2>&5
7613
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614
test $ac_status = 0; }; then
7615
case `/usr/bin/file conftest.o` in
7617
case $lt_cv_prog_gnu_ld in
7618
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7620
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7632
need_locks="$enable_libtool_lock"
7634
if test -n "$ac_tool_prefix"; then
7635
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7636
set dummy ${ac_tool_prefix}mt; ac_word=$2
7637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638
$as_echo_n "checking for $ac_word... " >&6; }
7639
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7640
$as_echo_n "(cached) " >&6
7642
if test -n "$MANIFEST_TOOL"; then
7643
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649
test -z "$as_dir" && as_dir=.
7650
for ac_exec_ext in '' $ac_executable_extensions; do
7651
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7653
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7663
if test -n "$MANIFEST_TOOL"; then
7664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7665
$as_echo "$MANIFEST_TOOL" >&6; }
7667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668
$as_echo "no" >&6; }
7673
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7674
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7675
# Extract the first word of "mt", so it can be a program name with args.
7676
set dummy mt; ac_word=$2
7677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678
$as_echo_n "checking for $ac_word... " >&6; }
7679
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7680
$as_echo_n "(cached) " >&6
7682
if test -n "$ac_ct_MANIFEST_TOOL"; then
7683
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689
test -z "$as_dir" && as_dir=.
7690
for ac_exec_ext in '' $ac_executable_extensions; do
7691
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7693
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7703
if test -n "$ac_ct_MANIFEST_TOOL"; then
7704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7705
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708
$as_echo "no" >&6; }
7711
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7714
case $cross_compiling:$ac_tool_warned in
7716
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718
ac_tool_warned=yes ;;
7720
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7723
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7726
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7728
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7729
if ${lt_cv_path_mainfest_tool+:} false; then :
7730
$as_echo_n "(cached) " >&6
7732
lt_cv_path_mainfest_tool=no
7733
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7734
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7735
cat conftest.err >&5
7736
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7737
lt_cv_path_mainfest_tool=yes
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7742
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7743
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7753
rhapsody* | darwin*)
7754
if test -n "$ac_tool_prefix"; then
7755
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7756
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758
$as_echo_n "checking for $ac_word... " >&6; }
7759
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7760
$as_echo_n "(cached) " >&6
7762
if test -n "$DSYMUTIL"; then
7763
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769
test -z "$as_dir" && as_dir=.
7770
for ac_exec_ext in '' $ac_executable_extensions; do
7771
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7773
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7783
if test -n "$DSYMUTIL"; then
7784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7785
$as_echo "$DSYMUTIL" >&6; }
7787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788
$as_echo "no" >&6; }
7793
if test -z "$ac_cv_prog_DSYMUTIL"; then
7794
ac_ct_DSYMUTIL=$DSYMUTIL
7795
# Extract the first word of "dsymutil", so it can be a program name with args.
7796
set dummy dsymutil; ac_word=$2
7797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798
$as_echo_n "checking for $ac_word... " >&6; }
7799
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7800
$as_echo_n "(cached) " >&6
7802
if test -n "$ac_ct_DSYMUTIL"; then
7803
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809
test -z "$as_dir" && as_dir=.
7810
for ac_exec_ext in '' $ac_executable_extensions; do
7811
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7813
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7823
if test -n "$ac_ct_DSYMUTIL"; then
7824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7825
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828
$as_echo "no" >&6; }
7831
if test "x$ac_ct_DSYMUTIL" = x; then
7834
case $cross_compiling:$ac_tool_warned in
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838
ac_tool_warned=yes ;;
7840
DSYMUTIL=$ac_ct_DSYMUTIL
7843
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7846
if test -n "$ac_tool_prefix"; then
7847
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7848
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850
$as_echo_n "checking for $ac_word... " >&6; }
7851
if ${ac_cv_prog_NMEDIT+:} false; then :
7852
$as_echo_n "(cached) " >&6
7854
if test -n "$NMEDIT"; then
7855
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861
test -z "$as_dir" && as_dir=.
7862
for ac_exec_ext in '' $ac_executable_extensions; do
7863
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7865
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874
NMEDIT=$ac_cv_prog_NMEDIT
7875
if test -n "$NMEDIT"; then
7876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7877
$as_echo "$NMEDIT" >&6; }
7879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880
$as_echo "no" >&6; }
7885
if test -z "$ac_cv_prog_NMEDIT"; then
7886
ac_ct_NMEDIT=$NMEDIT
7887
# Extract the first word of "nmedit", so it can be a program name with args.
7888
set dummy nmedit; ac_word=$2
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890
$as_echo_n "checking for $ac_word... " >&6; }
7891
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7892
$as_echo_n "(cached) " >&6
7894
if test -n "$ac_ct_NMEDIT"; then
7895
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901
test -z "$as_dir" && as_dir=.
7902
for ac_exec_ext in '' $ac_executable_extensions; do
7903
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7905
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7915
if test -n "$ac_ct_NMEDIT"; then
7916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7917
$as_echo "$ac_ct_NMEDIT" >&6; }
7919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920
$as_echo "no" >&6; }
7923
if test "x$ac_ct_NMEDIT" = x; then
7926
case $cross_compiling:$ac_tool_warned in
7928
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930
ac_tool_warned=yes ;;
7932
NMEDIT=$ac_ct_NMEDIT
7935
NMEDIT="$ac_cv_prog_NMEDIT"
7938
if test -n "$ac_tool_prefix"; then
7939
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7940
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942
$as_echo_n "checking for $ac_word... " >&6; }
7943
if ${ac_cv_prog_LIPO+:} false; then :
7944
$as_echo_n "(cached) " >&6
7946
if test -n "$LIPO"; then
7947
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953
test -z "$as_dir" && as_dir=.
7954
for ac_exec_ext in '' $ac_executable_extensions; do
7955
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7957
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966
LIPO=$ac_cv_prog_LIPO
7967
if test -n "$LIPO"; then
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7969
$as_echo "$LIPO" >&6; }
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972
$as_echo "no" >&6; }
7977
if test -z "$ac_cv_prog_LIPO"; then
7979
# Extract the first word of "lipo", so it can be a program name with args.
7980
set dummy lipo; ac_word=$2
7981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982
$as_echo_n "checking for $ac_word... " >&6; }
7983
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7984
$as_echo_n "(cached) " >&6
7986
if test -n "$ac_ct_LIPO"; then
7987
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993
test -z "$as_dir" && as_dir=.
7994
for ac_exec_ext in '' $ac_executable_extensions; do
7995
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996
ac_cv_prog_ac_ct_LIPO="lipo"
7997
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8007
if test -n "$ac_ct_LIPO"; then
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8009
$as_echo "$ac_ct_LIPO" >&6; }
8011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012
$as_echo "no" >&6; }
8015
if test "x$ac_ct_LIPO" = x; then
8018
case $cross_compiling:$ac_tool_warned in
8020
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022
ac_tool_warned=yes ;;
8027
LIPO="$ac_cv_prog_LIPO"
8030
if test -n "$ac_tool_prefix"; then
8031
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8032
set dummy ${ac_tool_prefix}otool; ac_word=$2
8033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034
$as_echo_n "checking for $ac_word... " >&6; }
8035
if ${ac_cv_prog_OTOOL+:} false; then :
8036
$as_echo_n "(cached) " >&6
8038
if test -n "$OTOOL"; then
8039
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045
test -z "$as_dir" && as_dir=.
8046
for ac_exec_ext in '' $ac_executable_extensions; do
8047
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8049
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058
OTOOL=$ac_cv_prog_OTOOL
8059
if test -n "$OTOOL"; then
8060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8061
$as_echo "$OTOOL" >&6; }
8063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064
$as_echo "no" >&6; }
8069
if test -z "$ac_cv_prog_OTOOL"; then
8071
# Extract the first word of "otool", so it can be a program name with args.
8072
set dummy otool; ac_word=$2
8073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074
$as_echo_n "checking for $ac_word... " >&6; }
8075
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8076
$as_echo_n "(cached) " >&6
8078
if test -n "$ac_ct_OTOOL"; then
8079
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085
test -z "$as_dir" && as_dir=.
8086
for ac_exec_ext in '' $ac_executable_extensions; do
8087
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088
ac_cv_prog_ac_ct_OTOOL="otool"
8089
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8099
if test -n "$ac_ct_OTOOL"; then
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8101
$as_echo "$ac_ct_OTOOL" >&6; }
8103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104
$as_echo "no" >&6; }
8107
if test "x$ac_ct_OTOOL" = x; then
8110
case $cross_compiling:$ac_tool_warned in
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114
ac_tool_warned=yes ;;
8119
OTOOL="$ac_cv_prog_OTOOL"
8122
if test -n "$ac_tool_prefix"; then
8123
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8124
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126
$as_echo_n "checking for $ac_word... " >&6; }
8127
if ${ac_cv_prog_OTOOL64+:} false; then :
8128
$as_echo_n "(cached) " >&6
8130
if test -n "$OTOOL64"; then
8131
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137
test -z "$as_dir" && as_dir=.
8138
for ac_exec_ext in '' $ac_executable_extensions; do
8139
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8141
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150
OTOOL64=$ac_cv_prog_OTOOL64
8151
if test -n "$OTOOL64"; then
8152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8153
$as_echo "$OTOOL64" >&6; }
8155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156
$as_echo "no" >&6; }
8161
if test -z "$ac_cv_prog_OTOOL64"; then
8162
ac_ct_OTOOL64=$OTOOL64
8163
# Extract the first word of "otool64", so it can be a program name with args.
8164
set dummy otool64; ac_word=$2
8165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166
$as_echo_n "checking for $ac_word... " >&6; }
8167
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8168
$as_echo_n "(cached) " >&6
8170
if test -n "$ac_ct_OTOOL64"; then
8171
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177
test -z "$as_dir" && as_dir=.
8178
for ac_exec_ext in '' $ac_executable_extensions; do
8179
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180
ac_cv_prog_ac_ct_OTOOL64="otool64"
8181
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8191
if test -n "$ac_ct_OTOOL64"; then
8192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8193
$as_echo "$ac_ct_OTOOL64" >&6; }
8195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196
$as_echo "no" >&6; }
8199
if test "x$ac_ct_OTOOL64" = x; then
8202
case $cross_compiling:$ac_tool_warned in
8204
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206
ac_tool_warned=yes ;;
8208
OTOOL64=$ac_ct_OTOOL64
8211
OTOOL64="$ac_cv_prog_OTOOL64"
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8241
$as_echo_n "checking for -single_module linker flag... " >&6; }
8242
if ${lt_cv_apple_cc_single_mod+:} false; then :
8243
$as_echo_n "(cached) " >&6
8245
lt_cv_apple_cc_single_mod=no
8246
if test -z "${LT_MULTI_MODULE}"; then
8247
# By default we will add the -single_module flag. You can override
8248
# by either setting the environment variable LT_MULTI_MODULE
8249
# non-empty at configure time, or by adding -multi_module to the
8251
rm -rf libconftest.dylib*
8252
echo "int foo(void){return 1;}" > conftest.c
8253
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8254
-dynamiclib -Wl,-single_module conftest.c" >&5
8255
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8256
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8258
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8259
lt_cv_apple_cc_single_mod=yes
8261
cat conftest.err >&5
8263
rm -rf libconftest.dylib*
8267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8268
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8270
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8271
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8272
$as_echo_n "(cached) " >&6
8274
lt_cv_ld_exported_symbols_list=no
8275
save_LDFLAGS=$LDFLAGS
8276
echo "_main" > conftest.sym
8277
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279
/* end confdefs.h. */
8289
if ac_fn_c_try_link "$LINENO"; then :
8290
lt_cv_ld_exported_symbols_list=yes
8292
lt_cv_ld_exported_symbols_list=no
8294
rm -f core conftest.err conftest.$ac_objext \
8295
conftest$ac_exeext conftest.$ac_ext
8296
LDFLAGS="$save_LDFLAGS"
8299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8300
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8302
$as_echo_n "checking for -force_load linker flag... " >&6; }
8303
if ${lt_cv_ld_force_load+:} false; then :
8304
$as_echo_n "(cached) " >&6
8306
lt_cv_ld_force_load=no
8307
cat > conftest.c << _LT_EOF
8308
int forced_loaded() { return 2;}
8310
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8311
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8312
echo "$AR cru libconftest.a conftest.o" >&5
8313
$AR cru libconftest.a conftest.o 2>&5
8314
echo "$RANLIB libconftest.a" >&5
8315
$RANLIB libconftest.a 2>&5
8316
cat > conftest.c << _LT_EOF
8317
int main() { return 0;}
8319
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8320
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8322
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8323
lt_cv_ld_force_load=yes
8325
cat conftest.err >&5
8327
rm -f conftest.err libconftest.a conftest conftest.c
8328
rm -rf conftest.dSYM
8331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8332
$as_echo "$lt_cv_ld_force_load" >&6; }
8334
rhapsody* | darwin1.[012])
8335
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8337
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8338
darwin*) # darwin 5.x on
8339
# if running on 10.5 or later, the deployment target defaults
8340
# to the OS version, if on x86, and 10.4, the deployment
8341
# target defaults to 10.4. Don't you love it?
8342
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8343
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8344
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8346
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8348
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8352
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8353
_lt_dar_single_mod='$single_module'
8355
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8356
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8358
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8360
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8361
_lt_dsymutil='~$DSYMUTIL $lib || :'
8368
for ac_header in dlfcn.h
8370
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8372
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8373
cat >>confdefs.h <<_ACEOF
8374
#define HAVE_DLFCN_H 1
8393
# Check whether --enable-shared was given.
8394
if test "${enable_shared+set}" = set; then :
8395
enableval=$enable_shared; p=${PACKAGE-default}
8397
yes) enable_shared=yes ;;
8398
no) enable_shared=no ;;
8401
# Look at the argument we got. We use all the common list separators.
8402
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403
for pkg in $enableval; do
8405
if test "X$pkg" = "X$p"; then
8424
# Check whether --enable-static was given.
8425
if test "${enable_static+set}" = set; then :
8426
enableval=$enable_static; p=${PACKAGE-default}
8428
yes) enable_static=yes ;;
8429
no) enable_static=no ;;
8432
# Look at the argument we got. We use all the common list separators.
8433
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434
for pkg in $enableval; do
8436
if test "X$pkg" = "X$p"; then
8456
# Check whether --with-pic was given.
8457
if test "${with_pic+set}" = set; then :
8458
withval=$with_pic; pic_mode="$withval"
8464
test -z "$pic_mode" && pic_mode=default
8472
# Check whether --enable-fast-install was given.
8473
if test "${enable_fast_install+set}" = set; then :
8474
enableval=$enable_fast_install; p=${PACKAGE-default}
8476
yes) enable_fast_install=yes ;;
8477
no) enable_fast_install=no ;;
8479
enable_fast_install=no
8480
# Look at the argument we got. We use all the common list separators.
8481
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8482
for pkg in $enableval; do
8484
if test "X$pkg" = "X$p"; then
8485
enable_fast_install=yes
8492
enable_fast_install=yes
8505
# This can be used to rebuild libtool when needed
8506
LIBTOOL_DEPS="$ltmain"
8508
# Always use our own libtool.
8509
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8536
test -z "$LN_S" && LN_S="ln -s"
8551
if test -n "${ZSH_VERSION+set}" ; then
8552
setopt NO_GLOB_SUBST
8555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8556
$as_echo_n "checking for objdir... " >&6; }
8557
if ${lt_cv_objdir+:} false; then :
8558
$as_echo_n "(cached) " >&6
8560
rm -f .libs 2>/dev/null
8561
mkdir .libs 2>/dev/null
8562
if test -d .libs; then
8565
# MS-DOS does not allow filenames that begin with a dot.
8568
rmdir .libs 2>/dev/null
8570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8571
$as_echo "$lt_cv_objdir" >&6; }
8572
objdir=$lt_cv_objdir
8578
cat >>confdefs.h <<_ACEOF
8579
#define LT_OBJDIR "$lt_cv_objdir/"
8587
# AIX sometimes has problems with the GCC collect2 program. For some
8588
# reason, if we set the COLLECT_NAMES environment variable, the problems
8589
# vanish in a puff of smoke.
8590
if test "X${COLLECT_NAMES+set}" != Xset; then
8592
export COLLECT_NAMES
8599
can_build_shared=yes
8601
# All known linkers require a `.a' archive for static linking (except MSVC,
8602
# which needs '.lib').
8605
with_gnu_ld="$lt_cv_prog_gnu_ld"
8608
old_CFLAGS="$CFLAGS"
8610
# Set sane defaults for various variables
8611
test -z "$CC" && CC=cc
8612
test -z "$LTCC" && LTCC=$CC
8613
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8614
test -z "$LD" && LD=ld
8615
test -z "$ac_objext" && ac_objext=o
8617
for cc_temp in $compiler""; do
8619
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8620
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8625
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8628
# Only perform the check for file, if the check method requires it
8629
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8630
case $deplibs_check_method in
8632
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8634
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8635
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8636
$as_echo_n "(cached) " >&6
8640
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643
lt_save_MAGIC_CMD="$MAGIC_CMD"
8644
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8645
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8646
for ac_dir in $ac_dummy; do
8648
test -z "$ac_dir" && ac_dir=.
8649
if test -f $ac_dir/${ac_tool_prefix}file; then
8650
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8651
if test -n "$file_magic_test_file"; then
8652
case $deplibs_check_method in
8654
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8655
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8656
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8657
$EGREP "$file_magic_regex" > /dev/null; then
8662
*** Warning: the command libtool uses to detect shared libraries,
8663
*** $file_magic_cmd, produces output that libtool cannot recognize.
8664
*** The result is that libtool may fail to recognize shared libraries
8665
*** as such. This will affect the creation of libtool libraries that
8666
*** depend on shared libraries, but programs linked with such libtool
8667
*** libraries will work regardless of this problem. Nevertheless, you
8668
*** may want to report the problem to your system manager and/or to
8669
*** bug-libtool@gnu.org
8679
MAGIC_CMD="$lt_save_MAGIC_CMD"
8684
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8685
if test -n "$MAGIC_CMD"; then
8686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8687
$as_echo "$MAGIC_CMD" >&6; }
8689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690
$as_echo "no" >&6; }
8697
if test -z "$lt_cv_path_MAGIC_CMD"; then
8698
if test -n "$ac_tool_prefix"; then
8699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8700
$as_echo_n "checking for file... " >&6; }
8701
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8702
$as_echo_n "(cached) " >&6
8706
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8709
lt_save_MAGIC_CMD="$MAGIC_CMD"
8710
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8711
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8712
for ac_dir in $ac_dummy; do
8714
test -z "$ac_dir" && ac_dir=.
8715
if test -f $ac_dir/file; then
8716
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8717
if test -n "$file_magic_test_file"; then
8718
case $deplibs_check_method in
8720
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8721
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8722
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8723
$EGREP "$file_magic_regex" > /dev/null; then
8728
*** Warning: the command libtool uses to detect shared libraries,
8729
*** $file_magic_cmd, produces output that libtool cannot recognize.
8730
*** The result is that libtool may fail to recognize shared libraries
8731
*** as such. This will affect the creation of libtool libraries that
8732
*** depend on shared libraries, but programs linked with such libtool
8733
*** libraries will work regardless of this problem. Nevertheless, you
8734
*** may want to report the problem to your system manager and/or to
8735
*** bug-libtool@gnu.org
8745
MAGIC_CMD="$lt_save_MAGIC_CMD"
8750
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8751
if test -n "$MAGIC_CMD"; then
8752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8753
$as_echo "$MAGIC_CMD" >&6; }
8755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756
$as_echo "no" >&6; }
8769
# Use C for the default configuration in the libtool script
8773
ac_cpp='$CPP $CPPFLAGS'
8774
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
# Source file extension for C test sources.
8782
# Object file extension for compiled C test sources.
8786
# Code to be used in simple compile tests
8787
lt_simple_compile_test_code="int some_variable = 0;"
8789
# Code to be used in simple link tests
8790
lt_simple_link_test_code='int main(){return(0);}'
8798
# If no C compiler was specified, use CC.
8801
# If no C compiler flags were specified, use CFLAGS.
8802
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8804
# Allow CC to be a program name with arguments.
8807
# Save the default compiler, since it gets overwritten when the other
8808
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8809
compiler_DEFAULT=$CC
8811
# save warnings/boilerplate of simple test code
8812
ac_outfile=conftest.$ac_objext
8813
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8814
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8815
_lt_compiler_boilerplate=`cat conftest.err`
8818
ac_outfile=conftest.$ac_objext
8819
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8820
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8821
_lt_linker_boilerplate=`cat conftest.err`
8826
## There is no encapsulation within the following macros, do not change
8827
## the running order or otherwise move them around unless you know exactly
8828
## what you are doing...
8829
if test -n "$compiler"; then
8831
lt_prog_compiler_no_builtin_flag=
8833
if test "$GCC" = yes; then
8834
case $cc_basename in
8836
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8838
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8842
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8843
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8844
$as_echo_n "(cached) " >&6
8846
lt_cv_prog_compiler_rtti_exceptions=no
8847
ac_outfile=conftest.$ac_objext
8848
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
lt_compiler_flag="-fno-rtti -fno-exceptions"
8850
# Insert the option either (1) after the last *FLAGS variable, or
8851
# (2) before a word containing "conftest.", or (3) at the end.
8852
# Note that $ac_compile itself does not contain backslashes and begins
8853
# with a dollar sign (not a hyphen), so the echo should work correctly.
8854
# The option is referenced via a variable to avoid confusing sed.
8855
lt_compile=`echo "$ac_compile" | $SED \
8856
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858
-e 's:$: $lt_compiler_flag:'`
8859
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860
(eval "$lt_compile" 2>conftest.err)
8862
cat conftest.err >&5
8863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864
if (exit $ac_status) && test -s "$ac_outfile"; then
8865
# The compiler can only warn and ignore the option if not recognized
8866
# So say no if there are warnings other than the usual output.
8867
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8868
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8870
lt_cv_prog_compiler_rtti_exceptions=yes
8876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8877
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8879
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8880
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8892
lt_prog_compiler_wl=
8893
lt_prog_compiler_pic=
8894
lt_prog_compiler_static=
8897
if test "$GCC" = yes; then
8898
lt_prog_compiler_wl='-Wl,'
8899
lt_prog_compiler_static='-static'
8903
# All AIX code is PIC.
8904
if test "$host_cpu" = ia64; then
8905
# AIX 5 now supports IA64 processor
8906
lt_prog_compiler_static='-Bstatic'
8913
# see comment about AmigaOS4 .so support
8914
lt_prog_compiler_pic='-fPIC'
8917
# FIXME: we need at least 68020 code to build shared libraries, but
8918
# adding the `-m68020' flag to GCC prevents building anything better,
8920
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8925
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8926
# PIC is the default for these OSes.
8929
mingw* | cygwin* | pw32* | os2* | cegcc*)
8930
# This hack is so that the source file can tell whether it is being
8931
# built for inclusion in a dll (and should export symbols for example).
8932
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8933
# (--disable-auto-import) libraries
8934
lt_prog_compiler_pic='-DDLL_EXPORT'
8937
darwin* | rhapsody*)
8938
# PIC is the default on this platform
8939
# Common symbols not allowed in MH_DYLIB files
8940
lt_prog_compiler_pic='-fno-common'
8944
# PIC is the default for Haiku.
8945
# The "-static" flag exists, but is broken.
8946
lt_prog_compiler_static=
8950
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8951
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8952
# sets the default TLS model and affects inlining.
8958
lt_prog_compiler_pic='-fPIC'
8964
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8965
# Instead, we relocate shared libraries at runtime.
8969
# Just because we use GCC doesn't mean we suddenly get shared libraries
8970
# on systems that don't support them.
8971
lt_prog_compiler_can_build_shared=no
8976
# QNX uses GNU C++, but need to define -shared option too, otherwise
8978
lt_prog_compiler_pic='-fPIC -shared'
8982
if test -d /usr/nec; then
8983
lt_prog_compiler_pic=-Kconform_pic
8988
lt_prog_compiler_pic='-fPIC'
8992
case $cc_basename in
8993
nvcc*) # Cuda Compiler Driver 2.2
8994
lt_prog_compiler_wl='-Xlinker '
8995
lt_prog_compiler_pic='-Xcompiler -fPIC'
8999
# PORTME Check for flag to pass linker flags through the system compiler.
9002
lt_prog_compiler_wl='-Wl,'
9003
if test "$host_cpu" = ia64; then
9004
# AIX 5 now supports IA64 processor
9005
lt_prog_compiler_static='-Bstatic'
9007
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9011
mingw* | cygwin* | pw32* | os2* | cegcc*)
9012
# This hack is so that the source file can tell whether it is being
9013
# built for inclusion in a dll (and should export symbols for example).
9014
lt_prog_compiler_pic='-DDLL_EXPORT'
9017
hpux9* | hpux10* | hpux11*)
9018
lt_prog_compiler_wl='-Wl,'
9019
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9026
lt_prog_compiler_pic='+Z'
9029
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9030
lt_prog_compiler_static='${wl}-a ${wl}archive'
9033
irix5* | irix6* | nonstopux*)
9034
lt_prog_compiler_wl='-Wl,'
9035
# PIC (with -KPIC) is the default.
9036
lt_prog_compiler_static='-non_shared'
9039
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9040
case $cc_basename in
9041
# old Intel for x86_64 which still supported -KPIC.
9043
lt_prog_compiler_wl='-Wl,'
9044
lt_prog_compiler_pic='-KPIC'
9045
lt_prog_compiler_static='-static'
9047
# icc used to be incompatible with GCC.
9048
# ICC 10 doesn't accept -KPIC any more.
9050
lt_prog_compiler_wl='-Wl,'
9051
lt_prog_compiler_pic='-fPIC'
9052
lt_prog_compiler_static='-static'
9054
# Lahey Fortran 8.1.
9056
lt_prog_compiler_wl='-Wl,'
9057
lt_prog_compiler_pic='--shared'
9058
lt_prog_compiler_static='--static'
9061
# NAG Fortran compiler
9062
lt_prog_compiler_wl='-Wl,-Wl,,'
9063
lt_prog_compiler_pic='-PIC'
9064
lt_prog_compiler_static='-Bstatic'
9066
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9067
# Portland Group compilers (*not* the Pentium gcc compiler,
9068
# which looks to be a dead project)
9069
lt_prog_compiler_wl='-Wl,'
9070
lt_prog_compiler_pic='-fpic'
9071
lt_prog_compiler_static='-Bstatic'
9074
lt_prog_compiler_wl='-Wl,'
9075
# All Alpha code is PIC.
9076
lt_prog_compiler_static='-non_shared'
9078
xl* | bgxl* | bgf* | mpixl*)
9079
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9080
lt_prog_compiler_wl='-Wl,'
9081
lt_prog_compiler_pic='-qpic'
9082
lt_prog_compiler_static='-qstaticlink'
9085
case `$CC -V 2>&1 | sed 5q` in
9086
*Sun\ F* | *Sun*Fortran*)
9087
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9088
lt_prog_compiler_pic='-KPIC'
9089
lt_prog_compiler_static='-Bstatic'
9090
lt_prog_compiler_wl=''
9094
lt_prog_compiler_pic='-KPIC'
9095
lt_prog_compiler_static='-Bstatic'
9096
lt_prog_compiler_wl='-Wl,'
9104
lt_prog_compiler_pic='-KPIC'
9105
lt_prog_compiler_static='-Bstatic'
9109
# QNX uses GNU C++, but need to define -shared option too, otherwise
9111
lt_prog_compiler_pic='-fPIC -shared'
9114
osf3* | osf4* | osf5*)
9115
lt_prog_compiler_wl='-Wl,'
9116
# All OSF/1 code is PIC.
9117
lt_prog_compiler_static='-non_shared'
9121
lt_prog_compiler_static='-non_shared'
9125
lt_prog_compiler_pic='-KPIC'
9126
lt_prog_compiler_static='-Bstatic'
9127
case $cc_basename in
9128
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9129
lt_prog_compiler_wl='-Qoption ld ';;
9131
lt_prog_compiler_wl='-Wl,';;
9136
lt_prog_compiler_wl='-Qoption ld '
9137
lt_prog_compiler_pic='-PIC'
9138
lt_prog_compiler_static='-Bstatic'
9141
sysv4 | sysv4.2uw2* | sysv4.3*)
9142
lt_prog_compiler_wl='-Wl,'
9143
lt_prog_compiler_pic='-KPIC'
9144
lt_prog_compiler_static='-Bstatic'
9148
if test -d /usr/nec ;then
9149
lt_prog_compiler_pic='-Kconform_pic'
9150
lt_prog_compiler_static='-Bstatic'
9154
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9155
lt_prog_compiler_wl='-Wl,'
9156
lt_prog_compiler_pic='-KPIC'
9157
lt_prog_compiler_static='-Bstatic'
9161
lt_prog_compiler_wl='-Wl,'
9162
lt_prog_compiler_can_build_shared=no
9166
lt_prog_compiler_pic='-pic'
9167
lt_prog_compiler_static='-Bstatic'
9171
lt_prog_compiler_can_build_shared=no
9177
# For platforms which do not support PIC, -DPIC is meaningless:
9179
lt_prog_compiler_pic=
9182
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9187
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9188
if ${lt_cv_prog_compiler_pic+:} false; then :
9189
$as_echo_n "(cached) " >&6
9191
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9194
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9195
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9198
# Check to make sure the PIC flag actually works.
9200
if test -n "$lt_prog_compiler_pic"; then
9201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9202
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9203
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9204
$as_echo_n "(cached) " >&6
9206
lt_cv_prog_compiler_pic_works=no
9207
ac_outfile=conftest.$ac_objext
9208
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9210
# Insert the option either (1) after the last *FLAGS variable, or
9211
# (2) before a word containing "conftest.", or (3) at the end.
9212
# Note that $ac_compile itself does not contain backslashes and begins
9213
# with a dollar sign (not a hyphen), so the echo should work correctly.
9214
# The option is referenced via a variable to avoid confusing sed.
9215
lt_compile=`echo "$ac_compile" | $SED \
9216
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9217
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9218
-e 's:$: $lt_compiler_flag:'`
9219
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9220
(eval "$lt_compile" 2>conftest.err)
9222
cat conftest.err >&5
9223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224
if (exit $ac_status) && test -s "$ac_outfile"; then
9225
# The compiler can only warn and ignore the option if not recognized
9226
# So say no if there are warnings other than the usual output.
9227
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9228
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9230
lt_cv_prog_compiler_pic_works=yes
9236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9237
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9239
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9240
case $lt_prog_compiler_pic in
9242
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9245
lt_prog_compiler_pic=
9246
lt_prog_compiler_can_build_shared=no
9262
# Check to make sure the static flag actually works.
9264
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9266
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9267
if ${lt_cv_prog_compiler_static_works+:} false; then :
9268
$as_echo_n "(cached) " >&6
9270
lt_cv_prog_compiler_static_works=no
9271
save_LDFLAGS="$LDFLAGS"
9272
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9273
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9274
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9275
# The linker can only warn and ignore the option if not recognized
9276
# So say no if there are warnings
9277
if test -s conftest.err; then
9278
# Append any errors to the config.log.
9279
cat conftest.err 1>&5
9280
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9281
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9282
if diff conftest.exp conftest.er2 >/dev/null; then
9283
lt_cv_prog_compiler_static_works=yes
9286
lt_cv_prog_compiler_static_works=yes
9290
LDFLAGS="$save_LDFLAGS"
9293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9294
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9296
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9299
lt_prog_compiler_static=
9308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9309
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9310
if ${lt_cv_prog_compiler_c_o+:} false; then :
9311
$as_echo_n "(cached) " >&6
9313
lt_cv_prog_compiler_c_o=no
9314
$RM -r conftest 2>/dev/null
9318
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9320
lt_compiler_flag="-o out/conftest2.$ac_objext"
9321
# Insert the option either (1) after the last *FLAGS variable, or
9322
# (2) before a word containing "conftest.", or (3) at the end.
9323
# Note that $ac_compile itself does not contain backslashes and begins
9324
# with a dollar sign (not a hyphen), so the echo should work correctly.
9325
lt_compile=`echo "$ac_compile" | $SED \
9326
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9327
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9328
-e 's:$: $lt_compiler_flag:'`
9329
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9330
(eval "$lt_compile" 2>out/conftest.err)
9332
cat out/conftest.err >&5
9333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9336
# The compiler can only warn and ignore the option if not recognized
9337
# So say no if there are warnings
9338
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9339
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9340
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9341
lt_cv_prog_compiler_c_o=yes
9346
# SGI C++ compiler will create directory out/ii_files/ for
9347
# template instantiation
9348
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9349
$RM out/* && rmdir out
9355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9356
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9364
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9365
if ${lt_cv_prog_compiler_c_o+:} false; then :
9366
$as_echo_n "(cached) " >&6
9368
lt_cv_prog_compiler_c_o=no
9369
$RM -r conftest 2>/dev/null
9373
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9375
lt_compiler_flag="-o out/conftest2.$ac_objext"
9376
# Insert the option either (1) after the last *FLAGS variable, or
9377
# (2) before a word containing "conftest.", or (3) at the end.
9378
# Note that $ac_compile itself does not contain backslashes and begins
9379
# with a dollar sign (not a hyphen), so the echo should work correctly.
9380
lt_compile=`echo "$ac_compile" | $SED \
9381
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9382
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9383
-e 's:$: $lt_compiler_flag:'`
9384
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9385
(eval "$lt_compile" 2>out/conftest.err)
9387
cat out/conftest.err >&5
9388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9391
# The compiler can only warn and ignore the option if not recognized
9392
# So say no if there are warnings
9393
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9394
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9395
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9396
lt_cv_prog_compiler_c_o=yes
9401
# SGI C++ compiler will create directory out/ii_files/ for
9402
# template instantiation
9403
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9404
$RM out/* && rmdir out
9410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9411
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9416
hard_links="nottested"
9417
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9418
# do not overwrite the value of need_locks provided by the user
9419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9420
$as_echo_n "checking if we can lock with hard links... " >&6; }
9423
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9425
ln conftest.a conftest.b 2>&5 || hard_links=no
9426
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9428
$as_echo "$hard_links" >&6; }
9429
if test "$hard_links" = no; then
9430
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9431
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9444
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9447
allow_undefined_flag=
9448
always_export_symbols=no
9450
archive_expsym_cmds=
9451
compiler_needs_object=no
9452
enable_shared_with_static_runtimes=no
9453
export_dynamic_flag_spec=
9454
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9455
hardcode_automatic=no
9457
hardcode_direct_absolute=no
9458
hardcode_libdir_flag_spec=
9459
hardcode_libdir_flag_spec_ld=
9460
hardcode_libdir_separator=
9462
hardcode_shlibpath_var=unsupported
9464
link_all_deplibs=unknown
9467
old_archive_from_new_cmds=
9468
old_archive_from_expsyms_cmds=
9469
thread_safe_flag_spec=
9470
whole_archive_flag_spec=
9471
# include_expsyms should be a list of space-separated symbols to be *always*
9472
# included in the symbol list
9474
# exclude_expsyms can be an extended regexp of symbols to exclude
9475
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9476
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9477
# as well as any symbol that contains `d'.
9478
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9479
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9480
# platforms (ab)use it in PIC code, but their linkers get confused if
9481
# the symbol is explicitly referenced. Since portable code cannot
9482
# rely on this symbol name, it's probably fine to never include it in
9483
# preloaded symbol tables.
9484
# Exclude shared library initialization/finalization symbols.
9485
extract_expsyms_cmds=
9488
cygwin* | mingw* | pw32* | cegcc*)
9489
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9490
# When not using gcc, we currently assume that we are using
9491
# Microsoft Visual C++.
9492
if test "$GCC" != yes; then
9497
# we just hope/assume this is gcc and not c89 (= MSVC++)
9507
# On some targets, GNU ld is compatible enough with the native linker
9508
# that we're better off using the native interface for both.
9509
lt_use_gnu_ld_interface=no
9510
if test "$with_gnu_ld" = yes; then
9513
# The AIX port of GNU ld has always aspired to compatibility
9514
# with the native linker. However, as the warning in the GNU ld
9515
# block says, versions before 2.19.5* couldn't really create working
9516
# shared libraries, regardless of the interface used.
9517
case `$LD -v 2>&1` in
9518
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9519
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9520
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9522
lt_use_gnu_ld_interface=yes
9527
lt_use_gnu_ld_interface=yes
9532
if test "$lt_use_gnu_ld_interface" = yes; then
9533
# If archive_cmds runs LD, not CC, wlarc should be empty
9536
# Set some defaults for GNU ld with shared library support. These
9537
# are reset later if shared libraries are not supported. Putting them
9538
# here allows them to be overridden if necessary.
9539
runpath_var=LD_RUN_PATH
9540
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541
export_dynamic_flag_spec='${wl}--export-dynamic'
9542
# ancient GNU ld didn't support --whole-archive et. al.
9543
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9544
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9546
whole_archive_flag_spec=
9548
supports_anon_versioning=no
9549
case `$LD -v 2>&1` in
9550
*GNU\ gold*) supports_anon_versioning=yes ;;
9551
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9552
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9553
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9554
*\ 2.11.*) ;; # other 2.11 versions
9555
*) supports_anon_versioning=yes ;;
9558
# See if GNU ld supports shared libraries.
9561
# On AIX/PPC, the GNU linker is very broken
9562
if test "$host_cpu" != ia64; then
9566
*** Warning: the GNU linker, at least up to release 2.19, is reported
9567
*** to be unable to reliably create shared libraries on AIX.
9568
*** Therefore, libtool is disabling shared libraries support. If you
9569
*** really care for shared libraries, you may want to install binutils
9570
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9571
*** You will then need to restart the configuration process.
9580
# see comment about AmigaOS4 .so support
9581
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582
archive_expsym_cmds=''
9585
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)'
9586
hardcode_libdir_flag_spec='-L$libdir'
9587
hardcode_minus_L=yes
9593
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594
allow_undefined_flag=unsupported
9595
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9596
# support --undefined. This deserves some investigation. FIXME
9597
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603
cygwin* | mingw* | pw32* | cegcc*)
9604
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9605
# as there is no search path for DLLs.
9606
hardcode_libdir_flag_spec='-L$libdir'
9607
export_dynamic_flag_spec='${wl}--export-all-symbols'
9608
allow_undefined_flag=unsupported
9609
always_export_symbols=no
9610
enable_shared_with_static_runtimes=yes
9611
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'
9612
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9614
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9615
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9616
# If the export-symbols file already is a .def file (1st line
9617
# is EXPORTS), use it as is; otherwise, prepend...
9618
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9619
cp $export_symbols $output_objdir/$soname.def;
9621
echo EXPORTS > $output_objdir/$soname.def;
9622
cat $export_symbols >> $output_objdir/$soname.def;
9624
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9631
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632
link_all_deplibs=yes
9637
hardcode_shlibpath_var=no
9638
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9639
export_dynamic_flag_spec='${wl}-E'
9640
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9641
# Instead, shared libraries are loaded at an image base (0x10000000 by
9642
# default) and relocated if they conflict, which is a slow very memory
9643
# consuming and fragmenting process. To avoid this, we pick a random,
9644
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9645
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9646
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9647
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'
9650
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9652
if test "$host_os" = linux-dietlibc; then
9653
case $cc_basename in
9654
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9657
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9658
&& test "$tmp_diet" = no
9660
tmp_addflag=' $pic_flag'
9661
tmp_sharedflag='-shared'
9662
case $cc_basename,$host_cpu in
9663
pgcc*) # Portland Group C compiler
9664
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'
9665
tmp_addflag=' $pic_flag'
9667
pgf77* | pgf90* | pgf95* | pgfortran*)
9668
# Portland Group f77 and f90 compilers
9669
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'
9670
tmp_addflag=' $pic_flag -Mnomain' ;;
9671
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9672
tmp_addflag=' -i_dynamic' ;;
9673
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9674
tmp_addflag=' -i_dynamic -nofor_main' ;;
9675
ifc* | ifort*) # Intel Fortran compiler
9676
tmp_addflag=' -nofor_main' ;;
9677
lf95*) # Lahey Fortran 8.1
9678
whole_archive_flag_spec=
9679
tmp_sharedflag='--shared' ;;
9680
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9681
tmp_sharedflag='-qmkshrobj'
9683
nvcc*) # Cuda Compiler Driver 2.2
9684
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'
9685
compiler_needs_object=yes
9688
case `$CC -V 2>&1 | sed 5q` in
9689
*Sun\ C*) # Sun C 5.9
9690
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'
9691
compiler_needs_object=yes
9692
tmp_sharedflag='-G' ;;
9693
*Sun\ F*) # Sun Fortran 8.3
9694
tmp_sharedflag='-G' ;;
9696
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698
if test "x$supports_anon_versioning" = xyes; then
9699
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9700
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9701
echo "local: *; };" >> $output_objdir/$libname.ver~
9702
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9705
case $cc_basename in
9706
xlf* | bgf* | bgxlf* | mpixlf*)
9707
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9708
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9709
hardcode_libdir_flag_spec=
9710
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9711
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9712
if test "x$supports_anon_versioning" = xyes; then
9713
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9714
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9715
echo "local: *; };" >> $output_objdir/$libname.ver~
9716
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9726
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9727
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9730
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9736
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9740
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9741
*** create shared libraries on Solaris systems. Therefore, libtool
9742
*** is disabling shared libraries support. We urge you to upgrade GNU
9743
*** binutils to release 2.9.1 or newer. Another option is to modify
9744
*** your PATH or compiler configuration so that the native linker is
9745
*** used, and then restart.
9748
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9756
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9757
case `$LD -v 2>&1` in
9758
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9762
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9763
*** reliably create shared libraries on SCO systems. Therefore, libtool
9764
*** is disabling shared libraries support. We urge you to upgrade GNU
9765
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9766
*** your PATH or compiler configuration so that the native linker is
9767
*** used, and then restart.
9772
# For security reasons, it is highly recommended that you always
9773
# use absolute paths for naming shared libraries, and exclude the
9774
# DT_RUNPATH tag from executables and libraries. But doing so
9775
# requires that you compile everything twice, which is a pain.
9776
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9777
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9778
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9791
hardcode_shlibpath_var=no
9795
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9796
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9804
if test "$ld_shlibs" = no; then
9806
hardcode_libdir_flag_spec=
9807
export_dynamic_flag_spec=
9808
whole_archive_flag_spec=
9811
# PORTME fill in a description of your system's linker (not GNU ld)
9814
allow_undefined_flag=unsupported
9815
always_export_symbols=yes
9816
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'
9817
# Note: this linker hardcodes the directories in LIBPATH if there
9818
# are no directories specified by -L.
9819
hardcode_minus_L=yes
9820
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9821
# Neither direct hardcoding nor static linking is supported with a
9823
hardcode_direct=unsupported
9828
if test "$host_cpu" = ia64; then
9829
# On IA64, the linker does run time linking by default, so we don't
9830
# have to do anything special.
9831
aix_use_runtimelinking=no
9832
exp_sym_flag='-Bexport'
9835
# If we're using GNU nm, then we don't want the "-C" option.
9836
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9837
# Also, AIX nm treats weak defined symbols like other global
9838
# defined symbols, whereas GNU nm marks them as "W".
9839
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9840
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'
9842
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'
9844
aix_use_runtimelinking=no
9846
# Test if we are trying to use run time linking or normal
9847
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9848
# need to do runtime linking.
9849
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9850
for ld_flag in $LDFLAGS; do
9851
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9852
aix_use_runtimelinking=yes
9859
exp_sym_flag='-bexport'
9860
no_entry_flag='-bnoentry'
9863
# When large executables or shared objects are built, AIX ld can
9864
# have problems creating the table of contents. If linking a library
9865
# or program results in "error TOC overflow" add -mminimal-toc to
9866
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9867
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9871
hardcode_direct_absolute=yes
9872
hardcode_libdir_separator=':'
9873
link_all_deplibs=yes
9874
file_list_spec='${wl}-f,'
9876
if test "$GCC" = yes; then
9877
case $host_os in aix4.[012]|aix4.[012].*)
9878
# We only want to do this on AIX 4.2 and lower, the check
9879
# below for broken collect2 doesn't work under 4.3+
9880
collect2name=`${CC} -print-prog-name=collect2`
9881
if test -f "$collect2name" &&
9882
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9884
# We have reworked collect2
9887
# We have old collect2
9888
hardcode_direct=unsupported
9889
# It fails to find uninstalled libraries when the uninstalled
9890
# path is not listed in the libpath. Setting hardcode_minus_L
9891
# to unsupported forces relinking
9892
hardcode_minus_L=yes
9893
hardcode_libdir_flag_spec='-L$libdir'
9894
hardcode_libdir_separator=
9898
shared_flag='-shared'
9899
if test "$aix_use_runtimelinking" = yes; then
9900
shared_flag="$shared_flag "'${wl}-G'
9904
if test "$host_cpu" = ia64; then
9905
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9906
# chokes on -Wl,-G. The following line is correct:
9909
if test "$aix_use_runtimelinking" = yes; then
9910
shared_flag='${wl}-G'
9912
shared_flag='${wl}-bM:SRE'
9917
export_dynamic_flag_spec='${wl}-bexpall'
9918
# It seems that -bexpall does not export symbols beginning with
9919
# underscore (_), so it is better to generate a list of symbols to export.
9920
always_export_symbols=yes
9921
if test "$aix_use_runtimelinking" = yes; then
9922
# Warning - without using the other runtime loading flags (-brtl),
9923
# -berok will link without error, but may produce a broken library.
9924
allow_undefined_flag='-berok'
9925
# Determine the default libpath from the value encoded in an
9927
if test "${lt_cv_aix_libpath+set}" = set; then
9928
aix_libpath=$lt_cv_aix_libpath
9930
if ${lt_cv_aix_libpath_+:} false; then :
9931
$as_echo_n "(cached) " >&6
9933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934
/* end confdefs.h. */
9944
if ac_fn_c_try_link "$LINENO"; then :
9946
lt_aix_libpath_sed='
9947
/Import File Strings/,/^$/ {
9949
s/^0 *\([^ ]*\) *$/\1/
9953
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9954
# Check for a 64-bit object if we didn't find anything.
9955
if test -z "$lt_cv_aix_libpath_"; then
9956
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9959
rm -f core conftest.err conftest.$ac_objext \
9960
conftest$ac_exeext conftest.$ac_ext
9961
if test -z "$lt_cv_aix_libpath_"; then
9962
lt_cv_aix_libpath_="/usr/lib:/lib"
9967
aix_libpath=$lt_cv_aix_libpath_
9970
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9971
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"
9973
if test "$host_cpu" = ia64; then
9974
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9975
allow_undefined_flag="-z nodefs"
9976
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"
9978
# Determine the default libpath from the value encoded in an
9980
if test "${lt_cv_aix_libpath+set}" = set; then
9981
aix_libpath=$lt_cv_aix_libpath
9983
if ${lt_cv_aix_libpath_+:} false; then :
9984
$as_echo_n "(cached) " >&6
9986
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987
/* end confdefs.h. */
9997
if ac_fn_c_try_link "$LINENO"; then :
9999
lt_aix_libpath_sed='
10000
/Import File Strings/,/^$/ {
10002
s/^0 *\([^ ]*\) *$/\1/
10006
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10007
# Check for a 64-bit object if we didn't find anything.
10008
if test -z "$lt_cv_aix_libpath_"; then
10009
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10012
rm -f core conftest.err conftest.$ac_objext \
10013
conftest$ac_exeext conftest.$ac_ext
10014
if test -z "$lt_cv_aix_libpath_"; then
10015
lt_cv_aix_libpath_="/usr/lib:/lib"
10020
aix_libpath=$lt_cv_aix_libpath_
10023
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10024
# Warning - without using the other run time loading flags,
10025
# -berok will link without error, but may produce a broken library.
10026
no_undefined_flag=' ${wl}-bernotok'
10027
allow_undefined_flag=' ${wl}-berok'
10028
if test "$with_gnu_ld" = yes; then
10029
# We only use this code for GNU lds that support --whole-archive.
10030
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10032
# Exported symbols can be pulled into shared objects from archives
10033
whole_archive_flag_spec='$convenience'
10035
archive_cmds_need_lc=yes
10036
# This is similar to how AIX traditionally builds its shared libraries.
10037
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'
10045
# see comment about AmigaOS4 .so support
10046
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047
archive_expsym_cmds=''
10050
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)'
10051
hardcode_libdir_flag_spec='-L$libdir'
10052
hardcode_minus_L=yes
10058
export_dynamic_flag_spec=-rdynamic
10061
cygwin* | mingw* | pw32* | cegcc*)
10062
# When not using gcc, we currently assume that we are using
10063
# Microsoft Visual C++.
10064
# hardcode_libdir_flag_spec is actually meaningless, as there is
10065
# no search path for DLLs.
10066
case $cc_basename in
10069
hardcode_libdir_flag_spec=' '
10070
allow_undefined_flag=unsupported
10071
always_export_symbols=yes
10073
# Tell ltmain to make .lib files, not .a files.
10075
# Tell ltmain to make .dll files, not .so files.
10077
# FIXME: Setting linknames here is a bad hack.
10078
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10079
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10082
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10084
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10086
# The linker will not automatically build a static lib if we build a DLL.
10087
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10088
enable_shared_with_static_runtimes=yes
10089
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10091
old_postinstall_cmds='chmod 644 $oldlib'
10092
postlink_cmds='lt_outputfile="@OUTPUT@"~
10093
lt_tool_outputfile="@TOOL_OUTPUT@"~
10094
case $lt_outputfile in
10097
lt_outputfile="$lt_outputfile.exe"
10098
lt_tool_outputfile="$lt_tool_outputfile.exe"
10101
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10102
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10103
$RM "$lt_outputfile.manifest";
10107
# Assume MSVC wrapper
10108
hardcode_libdir_flag_spec=' '
10109
allow_undefined_flag=unsupported
10110
# Tell ltmain to make .lib files, not .a files.
10112
# Tell ltmain to make .dll files, not .so files.
10114
# FIXME: Setting linknames here is a bad hack.
10115
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10116
# The linker will automatically build a .lib file if we build a DLL.
10117
old_archive_from_new_cmds='true'
10118
# FIXME: Should let the user specify the lib program.
10119
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10120
enable_shared_with_static_runtimes=yes
10125
darwin* | rhapsody*)
10128
archive_cmds_need_lc=no
10130
hardcode_automatic=yes
10131
hardcode_shlibpath_var=unsupported
10132
if test "$lt_cv_ld_force_load" = "yes"; then
10133
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\"`'
10135
whole_archive_flag_spec=''
10137
link_all_deplibs=yes
10138
allow_undefined_flag="$_lt_dar_allow_undefined"
10139
case $cc_basename in
10140
ifort*) _lt_dar_can_shared=yes ;;
10141
*) _lt_dar_can_shared=$GCC ;;
10143
if test "$_lt_dar_can_shared" = "yes"; then
10144
output_verbose_link_cmd=func_echo_all
10145
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10146
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10147
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}"
10148
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}"
10157
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158
hardcode_libdir_flag_spec='-L$libdir'
10159
hardcode_shlibpath_var=no
10166
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10167
# support. Future versions do this automatically, but an explicit c++rt0.o
10168
# does not break anything, and helps significantly (at the cost of a little
10171
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10172
hardcode_libdir_flag_spec='-R$libdir'
10173
hardcode_direct=yes
10174
hardcode_shlibpath_var=no
10177
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10179
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10180
hardcode_direct=yes
10181
hardcode_minus_L=yes
10182
hardcode_shlibpath_var=no
10185
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10186
freebsd* | dragonfly*)
10187
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10188
hardcode_libdir_flag_spec='-R$libdir'
10189
hardcode_direct=yes
10190
hardcode_shlibpath_var=no
10194
if test "$GCC" = yes; then
10195
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'
10197
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'
10199
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10200
hardcode_libdir_separator=:
10201
hardcode_direct=yes
10203
# hardcode_minus_L: Not really in the search PATH,
10204
# but as the default location of the library.
10205
hardcode_minus_L=yes
10206
export_dynamic_flag_spec='${wl}-E'
10210
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10211
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10213
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10215
if test "$with_gnu_ld" = no; then
10216
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10217
hardcode_libdir_flag_spec_ld='+b $libdir'
10218
hardcode_libdir_separator=:
10219
hardcode_direct=yes
10220
hardcode_direct_absolute=yes
10221
export_dynamic_flag_spec='${wl}-E'
10222
# hardcode_minus_L: Not really in the search PATH,
10223
# but as the default location of the library.
10224
hardcode_minus_L=yes
10229
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10232
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10238
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10244
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10251
# Older versions of the 11.00 compiler do not understand -b yet
10252
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10254
$as_echo_n "checking if $CC understands -b... " >&6; }
10255
if ${lt_cv_prog_compiler__b+:} false; then :
10256
$as_echo_n "(cached) " >&6
10258
lt_cv_prog_compiler__b=no
10259
save_LDFLAGS="$LDFLAGS"
10260
LDFLAGS="$LDFLAGS -b"
10261
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10262
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10263
# The linker can only warn and ignore the option if not recognized
10264
# So say no if there are warnings
10265
if test -s conftest.err; then
10266
# Append any errors to the config.log.
10267
cat conftest.err 1>&5
10268
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10269
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10270
if diff conftest.exp conftest.er2 >/dev/null; then
10271
lt_cv_prog_compiler__b=yes
10274
lt_cv_prog_compiler__b=yes
10278
LDFLAGS="$save_LDFLAGS"
10281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10282
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10284
if test x"$lt_cv_prog_compiler__b" = xyes; then
10285
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10293
if test "$with_gnu_ld" = no; then
10294
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10295
hardcode_libdir_separator=:
10300
hardcode_shlibpath_var=no
10303
hardcode_direct=yes
10304
hardcode_direct_absolute=yes
10305
export_dynamic_flag_spec='${wl}-E'
10307
# hardcode_minus_L: Not really in the search PATH,
10308
# but as the default location of the library.
10309
hardcode_minus_L=yes
10315
irix5* | irix6* | nonstopux*)
10316
if test "$GCC" = yes; then
10317
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'
10318
# Try to use the -exported_symbol ld option, if it does not
10319
# work, assume that -exports_file does not work either and
10320
# implicitly export all symbols.
10321
# This should be the same for all languages, so no per-tag cache variable.
10322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10323
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10324
if ${lt_cv_irix_exported_symbol+:} false; then :
10325
$as_echo_n "(cached) " >&6
10327
save_LDFLAGS="$LDFLAGS"
10328
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10329
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330
/* end confdefs.h. */
10331
int foo (void) { return 0; }
10333
if ac_fn_c_try_link "$LINENO"; then :
10334
lt_cv_irix_exported_symbol=yes
10336
lt_cv_irix_exported_symbol=no
10338
rm -f core conftest.err conftest.$ac_objext \
10339
conftest$ac_exeext conftest.$ac_ext
10340
LDFLAGS="$save_LDFLAGS"
10342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10343
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10344
if test "$lt_cv_irix_exported_symbol" = yes; then
10345
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'
10348
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'
10349
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'
10351
archive_cmds_need_lc='no'
10352
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10353
hardcode_libdir_separator=:
10355
link_all_deplibs=yes
10359
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10360
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10362
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10364
hardcode_libdir_flag_spec='-R$libdir'
10365
hardcode_direct=yes
10366
hardcode_shlibpath_var=no
10370
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371
hardcode_direct=yes
10372
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373
hardcode_libdir_separator=:
10374
hardcode_shlibpath_var=no
10381
if test -f /usr/libexec/ld.so; then
10382
hardcode_direct=yes
10383
hardcode_shlibpath_var=no
10384
hardcode_direct_absolute=yes
10385
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10386
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10387
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10388
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10389
export_dynamic_flag_spec='${wl}-E'
10392
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10393
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10394
hardcode_libdir_flag_spec='-R$libdir'
10397
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10398
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408
hardcode_libdir_flag_spec='-L$libdir'
10409
hardcode_minus_L=yes
10410
allow_undefined_flag=unsupported
10411
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'
10412
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10416
if test "$GCC" = yes; then
10417
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10418
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'
10420
allow_undefined_flag=' -expect_unresolved \*'
10421
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'
10423
archive_cmds_need_lc='no'
10424
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10425
hardcode_libdir_separator=:
10428
osf4* | osf5*) # as osf3* with the addition of -msym flag
10429
if test "$GCC" = yes; then
10430
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10431
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'
10432
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10434
allow_undefined_flag=' -expect_unresolved \*'
10435
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'
10436
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~
10437
$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'
10439
# Both c and cxx compiler support -rpath directly
10440
hardcode_libdir_flag_spec='-rpath $libdir'
10442
archive_cmds_need_lc='no'
10443
hardcode_libdir_separator=:
10447
no_undefined_flag=' -z defs'
10448
if test "$GCC" = yes; then
10450
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10451
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10452
$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'
10454
case `$CC -V 2>&1` in
10457
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10459
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10463
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10464
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10465
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10469
hardcode_libdir_flag_spec='-R$libdir'
10470
hardcode_shlibpath_var=no
10472
solaris2.[0-5] | solaris2.[0-5].*) ;;
10474
# The compiler driver will combine and reorder linker options,
10475
# but understands `-z linker_flag'. GCC discards it without `$wl',
10476
# but is careful enough not to reorder.
10477
# Supported since Solaris 2.6 (maybe 2.5.1?)
10478
if test "$GCC" = yes; then
10479
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10481
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10485
link_all_deplibs=yes
10489
if test "x$host_vendor" = xsequent; then
10490
# Use $CC to link under sequent, because it throws in some extra .o
10491
# files that make .init and .fini sections work.
10492
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10494
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10496
hardcode_libdir_flag_spec='-L$libdir'
10497
hardcode_direct=yes
10498
hardcode_minus_L=yes
10499
hardcode_shlibpath_var=no
10503
case $host_vendor in
10505
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506
hardcode_direct=yes # is this really true???
10509
## LD is ld it makes a PLAMLIB
10510
## CC just makes a GrossModule.
10511
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10512
reload_cmds='$CC -r -o $output$reload_objs'
10516
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10520
runpath_var='LD_RUN_PATH'
10521
hardcode_shlibpath_var=no
10525
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526
hardcode_shlibpath_var=no
10527
export_dynamic_flag_spec='-Bexport'
10531
if test -d /usr/nec; then
10532
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533
hardcode_shlibpath_var=no
10534
runpath_var=LD_RUN_PATH
10535
hardcode_runpath_var=yes
10540
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10541
no_undefined_flag='${wl}-z,text'
10542
archive_cmds_need_lc=no
10543
hardcode_shlibpath_var=no
10544
runpath_var='LD_RUN_PATH'
10546
if test "$GCC" = yes; then
10547
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10548
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10550
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10551
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555
sysv5* | sco3.2v5* | sco5v6*)
10556
# Note: We can NOT use -z defs as we might desire, because we do not
10557
# link with -lc, and that would cause any symbols used from libc to
10558
# always be unresolved, which means just about no library would
10559
# ever link correctly. If we're not using GNU ld we use -z text
10560
# though, which does catch some bad symbols but isn't as heavy-handed
10562
no_undefined_flag='${wl}-z,text'
10563
allow_undefined_flag='${wl}-z,nodefs'
10564
archive_cmds_need_lc=no
10565
hardcode_shlibpath_var=no
10566
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10567
hardcode_libdir_separator=':'
10568
link_all_deplibs=yes
10569
export_dynamic_flag_spec='${wl}-Bexport'
10570
runpath_var='LD_RUN_PATH'
10572
if test "$GCC" = yes; then
10573
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10574
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583
hardcode_libdir_flag_spec='-L$libdir'
10584
hardcode_shlibpath_var=no
10592
if test x$host_vendor = xsni; then
10594
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10595
export_dynamic_flag_spec='${wl}-Blargedynsym'
10601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10602
$as_echo "$ld_shlibs" >&6; }
10603
test "$ld_shlibs" = no && can_build_shared=no
10605
with_gnu_ld=$with_gnu_ld
10622
# Do we need to explicitly link libc?
10624
case "x$archive_cmds_need_lc" in
10626
# Assume -lc should be added
10627
archive_cmds_need_lc=yes
10629
if test "$enable_shared" = yes && test "$GCC" = yes; then
10630
case $archive_cmds in
10632
# FIXME: we may have to deal with multi-command sequences.
10635
# Test whether the compiler implicitly links with -lc since on some
10636
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10637
# to ld, don't add -lc before -lgcc.
10638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10639
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10640
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10641
$as_echo_n "(cached) " >&6
10644
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10646
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10647
(eval $ac_compile) 2>&5
10649
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10650
test $ac_status = 0; } 2>conftest.err; then
10653
libobjs=conftest.$ac_objext
10655
wl=$lt_prog_compiler_wl
10656
pic_flag=$lt_prog_compiler_pic
10662
lt_save_allow_undefined_flag=$allow_undefined_flag
10663
allow_undefined_flag=
10664
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10665
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10667
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10668
test $ac_status = 0; }
10670
lt_cv_archive_cmds_need_lc=no
10672
lt_cv_archive_cmds_need_lc=yes
10674
allow_undefined_flag=$lt_save_allow_undefined_flag
10676
cat conftest.err 1>&5
10681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10682
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10683
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10847
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10849
if test "$GCC" = yes; then
10851
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10852
*) lt_awk_arg="/^libraries:/" ;;
10855
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10856
*) lt_sed_strip_eq="s,=/,/,g" ;;
10858
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10859
case $lt_search_path_spec in
10861
# if the path contains ";" then we assume it to be the separator
10862
# otherwise default to the standard path separator (i.e. ":") - it is
10863
# assumed that no part of a normal pathname contains ";" but that should
10864
# okay in the real world where ";" in dirpaths is itself problematic.
10865
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10868
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10871
# Ok, now we have the path, separated by spaces, we can step through it
10872
# and add multilib dir if necessary.
10873
lt_tmp_lt_search_path_spec=
10874
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10875
for lt_sys_path in $lt_search_path_spec; do
10876
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10877
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10879
test -d "$lt_sys_path" && \
10880
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10883
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10884
BEGIN {RS=" "; FS="/|\n";} {
10887
for (lt_i = NF; lt_i > 0; lt_i--) {
10888
if ($lt_i != "" && $lt_i != ".") {
10889
if ($lt_i == "..") {
10892
if (lt_count == 0) {
10893
lt_foo="/" $lt_i lt_foo;
10900
if (lt_foo != "") { lt_freq[lt_foo]++; }
10901
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10903
# AWK program above erroneously prepends '/' to C:/dos/paths
10906
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10907
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10909
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10911
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10913
library_names_spec=
10914
libname_spec='lib$name'
10918
postuninstall_cmds=
10922
shlibpath_overrides_runpath=unknown
10924
dynamic_linker="$host_os ld.so"
10925
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10926
need_lib_prefix=unknown
10927
hardcode_into_libs=no
10929
# when you set need_version to no, make sure it does not cause -set_version
10930
# flags to be left without arguments
10931
need_version=unknown
10936
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10937
shlibpath_var=LIBPATH
10939
# AIX 3 has no versioning support, so we append a major version to the name.
10940
soname_spec='${libname}${release}${shared_ext}$major'
10947
hardcode_into_libs=yes
10948
if test "$host_cpu" = ia64; then
10949
# AIX 5 supports IA64
10950
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10951
shlibpath_var=LD_LIBRARY_PATH
10953
# With GCC up to 2.95.x, collect2 would create an import file
10954
# for dependence libraries. The import file would start with
10955
# the line `#! .'. This would cause the generated library to
10956
# depend on `.', always an invalid library. This was fixed in
10957
# development snapshots of GCC prior to 3.0.
10959
aix4 | aix4.[01] | aix4.[01].*)
10960
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10962
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10965
can_build_shared=no
10969
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10970
# soname into executable. Probably we can add versioning support to
10971
# collect2, so additional links can be useful in future.
10972
if test "$aix_use_runtimelinking" = yes; then
10973
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10974
# instead of lib<name>.a to let people know that these are not
10975
# typical AIX shared libraries.
10976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978
# We preserve .a as extension for shared libraries through AIX4.2
10979
# and later when we are not doing run time linking.
10980
library_names_spec='${libname}${release}.a $libname.a'
10981
soname_spec='${libname}${release}${shared_ext}$major'
10983
shlibpath_var=LIBPATH
10990
# Since July 2007 AmigaOS4 officially supports .so libraries.
10991
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
library_names_spec='$libname.ixlibrary $libname.a'
10996
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10997
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'
11003
library_names_spec='${libname}${shared_ext}'
11004
dynamic_linker="$host_os ld.so"
11005
shlibpath_var=LIBRARY_PATH
11011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012
soname_spec='${libname}${release}${shared_ext}$major'
11013
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11014
shlibpath_var=LD_LIBRARY_PATH
11015
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11016
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11017
# the default ld.so.conf also contains /usr/contrib/lib and
11018
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11019
# libtool to hard-code these into programs
11022
cygwin* | mingw* | pw32* | cegcc*)
11023
version_type=windows
11028
case $GCC,$cc_basename in
11031
library_names_spec='$libname.dll.a'
11032
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11033
postinstall_cmds='base_file=`basename \${file}`~
11034
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11035
dldir=$destdir/`dirname \$dlpath`~
11036
test -d \$dldir || mkdir -p \$dldir~
11037
$install_prog $dir/$dlname \$dldir/$dlname~
11038
chmod a+x \$dldir/$dlname~
11039
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11040
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11042
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11043
dlpath=$dir/\$dldll~
11045
shlibpath_overrides_runpath=yes
11049
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11050
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11055
# MinGW DLLs use traditional 'lib' prefix
11056
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11059
# pw32 DLLs use 'pw' prefix rather than 'lib'
11060
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11063
dynamic_linker='Win32 ld.exe'
11068
libname_spec='$name'
11069
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11070
library_names_spec='${libname}.dll.lib'
11074
sys_lib_search_path_spec=
11077
for lt_path in $LIB
11080
# Let DOS variable expansion print the short 8.3 style file name.
11081
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11082
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11085
# Convert to MSYS style.
11086
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11089
# Convert to unix form, then to dos form, then back to unix form
11090
# but this time dos style (no spaces!) so that the unix form looks
11091
# like /cygdrive/c/PROGRA~1:/cygdr...
11092
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11093
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11094
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11097
sys_lib_search_path_spec="$LIB"
11098
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11099
# It is most probably a Windows format PATH.
11100
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11102
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11104
# FIXME: find the short name or the path components, as spaces are
11105
# common. (e.g. "Program Files" -> "PROGRA~1")
11109
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11110
postinstall_cmds='base_file=`basename \${file}`~
11111
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11112
dldir=$destdir/`dirname \$dlpath`~
11113
test -d \$dldir || mkdir -p \$dldir~
11114
$install_prog $dir/$dlname \$dldir/$dlname'
11115
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11116
dlpath=$dir/\$dldll~
11118
shlibpath_overrides_runpath=yes
11119
dynamic_linker='Win32 link.exe'
11123
# Assume MSVC wrapper
11124
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11125
dynamic_linker='Win32 ld.exe'
11128
# FIXME: first we should search . and the directory the executable is in
11132
darwin* | rhapsody*)
11133
dynamic_linker="$host_os dyld"
11134
version_type=darwin
11137
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11138
soname_spec='${libname}${release}${major}$shared_ext'
11139
shlibpath_overrides_runpath=yes
11140
shlibpath_var=DYLD_LIBRARY_PATH
11141
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11143
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11144
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11152
soname_spec='${libname}${release}${shared_ext}$major'
11153
shlibpath_var=LD_LIBRARY_PATH
11160
freebsd* | dragonfly*)
11161
# DragonFly does not have aout. When/if they implement a new
11162
# versioning mechanism, adjust this.
11163
if test -x /usr/bin/objformat; then
11164
objformat=`/usr/bin/objformat`
11167
freebsd[123]*) objformat=aout ;;
11168
*) objformat=elf ;;
11171
version_type=freebsd-$objformat
11172
case $version_type in
11174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11183
shlibpath_var=LD_LIBRARY_PATH
11186
shlibpath_overrides_runpath=yes
11188
freebsd3.[01]* | freebsdelf3.[01]*)
11189
shlibpath_overrides_runpath=yes
11190
hardcode_into_libs=yes
11192
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11193
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11194
shlibpath_overrides_runpath=no
11195
hardcode_into_libs=yes
11197
*) # from 4.6 on, and DragonFly
11198
shlibpath_overrides_runpath=yes
11199
hardcode_into_libs=yes
11208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11209
soname_spec='${libname}${release}${shared_ext}$major'
11210
shlibpath_var=LD_LIBRARY_PATH
11211
hardcode_into_libs=yes
11218
dynamic_linker="$host_os runtime_loader"
11219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11220
soname_spec='${libname}${release}${shared_ext}$major'
11221
shlibpath_var=LIBRARY_PATH
11222
shlibpath_overrides_runpath=yes
11223
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11224
hardcode_into_libs=yes
11227
hpux9* | hpux10* | hpux11*)
11228
# Give a soname corresponding to the major version so that dld.sl refuses to
11229
# link against other versions.
11236
hardcode_into_libs=yes
11237
dynamic_linker="$host_os dld.so"
11238
shlibpath_var=LD_LIBRARY_PATH
11239
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241
soname_spec='${libname}${release}${shared_ext}$major'
11242
if test "X$HPUX_IA64_MODE" = X32; then
11243
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11251
hardcode_into_libs=yes
11252
dynamic_linker="$host_os dld.sl"
11253
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11254
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256
soname_spec='${libname}${release}${shared_ext}$major'
11257
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11258
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11262
dynamic_linker="$host_os dld.sl"
11263
shlibpath_var=SHLIB_PATH
11264
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266
soname_spec='${libname}${release}${shared_ext}$major'
11269
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11270
postinstall_cmds='chmod 555 $lib'
11271
# or fails outright, so override atomically:
11272
install_override_mode=555
11279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11280
soname_spec='${libname}${release}${shared_ext}$major'
11281
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11282
shlibpath_var=LD_LIBRARY_PATH
11283
shlibpath_overrides_runpath=no
11284
hardcode_into_libs=yes
11287
irix5* | irix6* | nonstopux*)
11289
nonstopux*) version_type=nonstopux ;;
11291
if test "$lt_cv_prog_gnu_ld" = yes; then
11299
soname_spec='${libname}${release}${shared_ext}$major'
11300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11302
irix5* | nonstopux*)
11303
libsuff= shlibsuff=
11306
case $LD in # libtool.m4 will add one of these switches to LD
11307
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11308
libsuff= shlibsuff= libmagic=32-bit;;
11309
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11310
libsuff=32 shlibsuff=N32 libmagic=N32;;
11311
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11312
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11313
*) libsuff= shlibsuff= libmagic=never-match;;
11317
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11318
shlibpath_overrides_runpath=no
11319
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11320
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11321
hardcode_into_libs=yes
11324
# No shared lib support for Linux oldld, aout, or coff.
11325
linux*oldld* | linux*aout* | linux*coff*)
11329
# This must be Linux ELF.
11330
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335
soname_spec='${libname}${release}${shared_ext}$major'
11336
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11337
shlibpath_var=LD_LIBRARY_PATH
11338
shlibpath_overrides_runpath=no
11340
# Some binutils ld are patched to set DT_RUNPATH
11341
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11342
$as_echo_n "(cached) " >&6
11344
lt_cv_shlibpath_overrides_runpath=no
11345
save_LDFLAGS=$LDFLAGS
11346
save_libdir=$libdir
11347
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11348
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11349
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350
/* end confdefs.h. */
11360
if ac_fn_c_try_link "$LINENO"; then :
11361
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11362
lt_cv_shlibpath_overrides_runpath=yes
11365
rm -f core conftest.err conftest.$ac_objext \
11366
conftest$ac_exeext conftest.$ac_ext
11367
LDFLAGS=$save_LDFLAGS
11368
libdir=$save_libdir
11372
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11374
# This implies no fast_install, which is unacceptable.
11375
# Some rework will be needed to allow for fast_install
11376
# before this can be enabled.
11377
hardcode_into_libs=yes
11379
# Append ld.so.conf contents to the search path
11380
if test -f /etc/ld.so.conf; then
11381
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' ' '`
11382
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11385
# We used to test for /lib/ld.so.1 and disable shared libraries on
11386
# powerpc, because MkLinux only supported shared libraries with the
11387
# GNU dynamic linker. Since this was broken with cross compilers,
11388
# most powerpc-linux boxes support dynamic linking these days and
11389
# people can always --disable-shared, the test was removed, and we
11390
# assume the GNU/Linux dynamic linker is in use.
11391
dynamic_linker='GNU/Linux ld.so'
11398
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11400
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11401
dynamic_linker='NetBSD (a.out) ld.so'
11403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11404
soname_spec='${libname}${release}${shared_ext}$major'
11405
dynamic_linker='NetBSD ld.elf_so'
11407
shlibpath_var=LD_LIBRARY_PATH
11408
shlibpath_overrides_runpath=yes
11409
hardcode_into_libs=yes
11414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415
shlibpath_var=LD_LIBRARY_PATH
11416
shlibpath_overrides_runpath=yes
11423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424
soname_spec='${libname}${release}${shared_ext}$major'
11425
shlibpath_var=LD_LIBRARY_PATH
11426
shlibpath_overrides_runpath=no
11427
hardcode_into_libs=yes
11428
dynamic_linker='ldqnx.so'
11433
sys_lib_dlsearch_path_spec="/usr/lib"
11435
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11437
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11438
*) need_version=no ;;
11440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11441
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442
shlibpath_var=LD_LIBRARY_PATH
11443
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11445
openbsd2.[89] | openbsd2.[89].*)
11446
shlibpath_overrides_runpath=no
11449
shlibpath_overrides_runpath=yes
11453
shlibpath_overrides_runpath=yes
11458
libname_spec='$name'
11461
library_names_spec='$libname${shared_ext} $libname.a'
11462
dynamic_linker='OS/2 ld.exe'
11463
shlibpath_var=LIBPATH
11466
osf3* | osf4* | osf5*)
11470
soname_spec='${libname}${release}${shared_ext}$major'
11471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472
shlibpath_var=LD_LIBRARY_PATH
11473
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11474
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486
soname_spec='${libname}${release}${shared_ext}$major'
11487
shlibpath_var=LD_LIBRARY_PATH
11488
shlibpath_overrides_runpath=yes
11489
hardcode_into_libs=yes
11490
# ldd complains unless libraries are executable
11491
postinstall_cmds='chmod +x $lib'
11496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11497
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11498
shlibpath_var=LD_LIBRARY_PATH
11499
shlibpath_overrides_runpath=yes
11500
if test "$with_gnu_ld" = yes; then
11508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509
soname_spec='${libname}${release}${shared_ext}$major'
11510
shlibpath_var=LD_LIBRARY_PATH
11511
case $host_vendor in
11513
shlibpath_overrides_runpath=no
11515
runpath_var=LD_RUN_PATH
11523
shlibpath_overrides_runpath=no
11524
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11530
if test -d /usr/nec ;then
11532
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11533
soname_spec='$libname${shared_ext}.$major'
11534
shlibpath_var=LD_LIBRARY_PATH
11538
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11539
version_type=freebsd-elf
11542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11543
soname_spec='${libname}${release}${shared_ext}$major'
11544
shlibpath_var=LD_LIBRARY_PATH
11545
shlibpath_overrides_runpath=yes
11546
hardcode_into_libs=yes
11547
if test "$with_gnu_ld" = yes; then
11548
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11550
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11553
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11557
sys_lib_dlsearch_path_spec='/usr/lib'
11561
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566
shlibpath_var=LD_LIBRARY_PATH
11567
shlibpath_overrides_runpath=no
11568
hardcode_into_libs=yes
11573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574
soname_spec='${libname}${release}${shared_ext}$major'
11575
shlibpath_var=LD_LIBRARY_PATH
11582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11583
$as_echo "$dynamic_linker" >&6; }
11584
test "$dynamic_linker" = no && can_build_shared=no
11586
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11587
if test "$GCC" = yes; then
11588
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11591
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11592
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11594
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11595
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11690
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11692
if test -n "$hardcode_libdir_flag_spec" ||
11693
test -n "$runpath_var" ||
11694
test "X$hardcode_automatic" = "Xyes" ; then
11696
# We can hardcode non-existent directories.
11697
if test "$hardcode_direct" != no &&
11698
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11699
# have to relink, otherwise we might link with an installed library
11700
# when we should be linking with a yet-to-be-installed one
11701
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11702
test "$hardcode_minus_L" != no; then
11703
# Linking always hardcodes the temporary library directory.
11704
hardcode_action=relink
11706
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11707
hardcode_action=immediate
11710
# We cannot hardcode anything, or else we can only hardcode existing
11712
hardcode_action=unsupported
11714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11715
$as_echo "$hardcode_action" >&6; }
11717
if test "$hardcode_action" = relink ||
11718
test "$inherit_rpath" = yes; then
11719
# Fast installation is not supported
11720
enable_fast_install=no
11721
elif test "$shlibpath_overrides_runpath" = yes ||
11722
test "$enable_shared" = no; then
11723
# Fast installation is not necessary
11724
enable_fast_install=needless
11732
if test "x$enable_dlopen" != xyes; then
11733
enable_dlopen=unknown
11734
enable_dlopen_self=unknown
11735
enable_dlopen_self_static=unknown
11742
lt_cv_dlopen="load_add_on"
11744
lt_cv_dlopen_self=yes
11747
mingw* | pw32* | cegcc*)
11748
lt_cv_dlopen="LoadLibrary"
11753
lt_cv_dlopen="dlopen"
11758
# if libdl is installed we need to link against it
11759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11760
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11761
if ${ac_cv_lib_dl_dlopen+:} false; then :
11762
$as_echo_n "(cached) " >&6
11764
ac_check_lib_save_LIBS=$LIBS
11766
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767
/* end confdefs.h. */
11769
/* Override any GCC internal prototype to avoid an error.
11770
Use char because int might match the return type of a GCC
11771
builtin and then its argument prototype would still apply. */
11784
if ac_fn_c_try_link "$LINENO"; then :
11785
ac_cv_lib_dl_dlopen=yes
11787
ac_cv_lib_dl_dlopen=no
11789
rm -f core conftest.err conftest.$ac_objext \
11790
conftest$ac_exeext conftest.$ac_ext
11791
LIBS=$ac_check_lib_save_LIBS
11793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11794
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11795
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11796
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11799
lt_cv_dlopen="dyld"
11801
lt_cv_dlopen_self=yes
11808
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11809
if test "x$ac_cv_func_shl_load" = xyes; then :
11810
lt_cv_dlopen="shl_load"
11812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11813
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11814
if ${ac_cv_lib_dld_shl_load+:} false; then :
11815
$as_echo_n "(cached) " >&6
11817
ac_check_lib_save_LIBS=$LIBS
11819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820
/* end confdefs.h. */
11822
/* Override any GCC internal prototype to avoid an error.
11823
Use char because int might match the return type of a GCC
11824
builtin and then its argument prototype would still apply. */
11832
return shl_load ();
11837
if ac_fn_c_try_link "$LINENO"; then :
11838
ac_cv_lib_dld_shl_load=yes
11840
ac_cv_lib_dld_shl_load=no
11842
rm -f core conftest.err conftest.$ac_objext \
11843
conftest$ac_exeext conftest.$ac_ext
11844
LIBS=$ac_check_lib_save_LIBS
11846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11847
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11848
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11849
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11851
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11852
if test "x$ac_cv_func_dlopen" = xyes; then :
11853
lt_cv_dlopen="dlopen"
11855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11856
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11857
if ${ac_cv_lib_dl_dlopen+:} false; then :
11858
$as_echo_n "(cached) " >&6
11860
ac_check_lib_save_LIBS=$LIBS
11862
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863
/* end confdefs.h. */
11865
/* Override any GCC internal prototype to avoid an error.
11866
Use char because int might match the return type of a GCC
11867
builtin and then its argument prototype would still apply. */
11880
if ac_fn_c_try_link "$LINENO"; then :
11881
ac_cv_lib_dl_dlopen=yes
11883
ac_cv_lib_dl_dlopen=no
11885
rm -f core conftest.err conftest.$ac_objext \
11886
conftest$ac_exeext conftest.$ac_ext
11887
LIBS=$ac_check_lib_save_LIBS
11889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11890
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11891
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11892
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11895
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11896
if ${ac_cv_lib_svld_dlopen+:} false; then :
11897
$as_echo_n "(cached) " >&6
11899
ac_check_lib_save_LIBS=$LIBS
11900
LIBS="-lsvld $LIBS"
11901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902
/* end confdefs.h. */
11904
/* Override any GCC internal prototype to avoid an error.
11905
Use char because int might match the return type of a GCC
11906
builtin and then its argument prototype would still apply. */
11919
if ac_fn_c_try_link "$LINENO"; then :
11920
ac_cv_lib_svld_dlopen=yes
11922
ac_cv_lib_svld_dlopen=no
11924
rm -f core conftest.err conftest.$ac_objext \
11925
conftest$ac_exeext conftest.$ac_ext
11926
LIBS=$ac_check_lib_save_LIBS
11928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11929
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11930
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11931
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11934
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11935
if ${ac_cv_lib_dld_dld_link+:} false; then :
11936
$as_echo_n "(cached) " >&6
11938
ac_check_lib_save_LIBS=$LIBS
11940
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941
/* end confdefs.h. */
11943
/* Override any GCC internal prototype to avoid an error.
11944
Use char because int might match the return type of a GCC
11945
builtin and then its argument prototype would still apply. */
11953
return dld_link ();
11958
if ac_fn_c_try_link "$LINENO"; then :
11959
ac_cv_lib_dld_dld_link=yes
11961
ac_cv_lib_dld_dld_link=no
11963
rm -f core conftest.err conftest.$ac_objext \
11964
conftest$ac_exeext conftest.$ac_ext
11965
LIBS=$ac_check_lib_save_LIBS
11967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11968
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11969
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11970
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11991
if test "x$lt_cv_dlopen" != xno; then
11997
case $lt_cv_dlopen in
11999
save_CPPFLAGS="$CPPFLAGS"
12000
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12002
save_LDFLAGS="$LDFLAGS"
12003
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12006
LIBS="$lt_cv_dlopen_libs $LIBS"
12008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12009
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12010
if ${lt_cv_dlopen_self+:} false; then :
12011
$as_echo_n "(cached) " >&6
12013
if test "$cross_compiling" = yes; then :
12014
lt_cv_dlopen_self=cross
12016
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12017
lt_status=$lt_dlunknown
12018
cat > conftest.$ac_ext <<_LT_EOF
12019
#line $LINENO "configure"
12020
#include "confdefs.h"
12029
# define LT_DLGLOBAL RTLD_GLOBAL
12032
# define LT_DLGLOBAL DL_GLOBAL
12034
# define LT_DLGLOBAL 0
12038
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12039
find out it does not work in some platform. */
12040
#ifndef LT_DLLAZY_OR_NOW
12042
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12045
# define LT_DLLAZY_OR_NOW DL_LAZY
12048
# define LT_DLLAZY_OR_NOW RTLD_NOW
12051
# define LT_DLLAZY_OR_NOW DL_NOW
12053
# define LT_DLLAZY_OR_NOW 0
12060
/* When -fvisbility=hidden is used, assume the code has been annotated
12061
correspondingly for the symbols needed. */
12062
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12063
int fnord () __attribute__((visibility("default")));
12066
int fnord () { return 42; }
12069
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12070
int status = $lt_dlunknown;
12074
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12077
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12078
else puts (dlerror ());
12080
/* dlclose (self); */
12088
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12089
(eval $ac_link) 2>&5
12091
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12093
(./conftest; exit; ) >&5 2>/dev/null
12095
case x$lt_status in
12096
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12097
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12098
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12101
# compilation failed
12102
lt_cv_dlopen_self=no
12109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12110
$as_echo "$lt_cv_dlopen_self" >&6; }
12112
if test "x$lt_cv_dlopen_self" = xyes; then
12113
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12115
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12116
if ${lt_cv_dlopen_self_static+:} false; then :
12117
$as_echo_n "(cached) " >&6
12119
if test "$cross_compiling" = yes; then :
12120
lt_cv_dlopen_self_static=cross
12122
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12123
lt_status=$lt_dlunknown
12124
cat > conftest.$ac_ext <<_LT_EOF
12125
#line $LINENO "configure"
12126
#include "confdefs.h"
12135
# define LT_DLGLOBAL RTLD_GLOBAL
12138
# define LT_DLGLOBAL DL_GLOBAL
12140
# define LT_DLGLOBAL 0
12144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12145
find out it does not work in some platform. */
12146
#ifndef LT_DLLAZY_OR_NOW
12148
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12151
# define LT_DLLAZY_OR_NOW DL_LAZY
12154
# define LT_DLLAZY_OR_NOW RTLD_NOW
12157
# define LT_DLLAZY_OR_NOW DL_NOW
12159
# define LT_DLLAZY_OR_NOW 0
12166
/* When -fvisbility=hidden is used, assume the code has been annotated
12167
correspondingly for the symbols needed. */
12168
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12169
int fnord () __attribute__((visibility("default")));
12172
int fnord () { return 42; }
12175
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12176
int status = $lt_dlunknown;
12180
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12183
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12184
else puts (dlerror ());
12186
/* dlclose (self); */
12194
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12195
(eval $ac_link) 2>&5
12197
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12198
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12199
(./conftest; exit; ) >&5 2>/dev/null
12201
case x$lt_status in
12202
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12203
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12204
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12207
# compilation failed
12208
lt_cv_dlopen_self_static=no
12215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12216
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12219
CPPFLAGS="$save_CPPFLAGS"
12220
LDFLAGS="$save_LDFLAGS"
12225
case $lt_cv_dlopen_self in
12226
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12227
*) enable_dlopen_self=unknown ;;
12230
case $lt_cv_dlopen_self_static in
12231
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12232
*) enable_dlopen_self_static=unknown ;;
12254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12255
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12256
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12257
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12258
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12260
$as_echo "yes" >&6; }
12262
# FIXME - insert some real tests, host_os isn't really good enough
12265
if test -n "$STRIP" ; then
12266
striplib="$STRIP -x"
12267
old_striplib="$STRIP -S"
12268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269
$as_echo "yes" >&6; }
12271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272
$as_echo "no" >&6; }
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277
$as_echo "no" >&6; }
12293
# Report which library types will actually be built
12294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12295
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12297
$as_echo "$can_build_shared" >&6; }
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12300
$as_echo_n "checking whether to build shared libraries... " >&6; }
12301
test "$can_build_shared" = "no" && enable_shared=no
12303
# On AIX, shared libraries and static libraries use the same namespace, and
12304
# are all built from PIC.
12307
test "$enable_shared" = yes && enable_static=no
12308
if test -n "$RANLIB"; then
12309
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12310
postinstall_cmds='$RANLIB $lib'
12315
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12316
test "$enable_shared" = yes && enable_static=no
12320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12321
$as_echo "$enable_shared" >&6; }
12323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12324
$as_echo_n "checking whether to build static libraries... " >&6; }
12325
# Make sure either enable_shared or enable_static is yes.
12326
test "$enable_shared" = yes || enable_static=yes
12327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12328
$as_echo "$enable_static" >&6; }
12335
ac_cpp='$CPP $CPPFLAGS'
12336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
ac_config_commands="$ac_config_commands libtool"
12359
# Only expand once:
12364
ac_cpp='$CPP $CPPFLAGS'
12365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12368
if test -n "$ac_tool_prefix"; then
12369
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12370
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372
$as_echo_n "checking for $ac_word... " >&6; }
12373
if ${ac_cv_prog_CC+:} false; then :
12374
$as_echo_n "(cached) " >&6
12376
if test -n "$CC"; then
12377
ac_cv_prog_CC="$CC" # Let the user override the test.
12379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380
for as_dir in $PATH
12383
test -z "$as_dir" && as_dir=.
12384
for ac_exec_ext in '' $ac_executable_extensions; do
12385
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386
ac_cv_prog_CC="${ac_tool_prefix}gcc"
12387
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397
if test -n "$CC"; then
12398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12399
$as_echo "$CC" >&6; }
12401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402
$as_echo "no" >&6; }
12407
if test -z "$ac_cv_prog_CC"; then
12409
# Extract the first word of "gcc", so it can be a program name with args.
12410
set dummy gcc; ac_word=$2
12411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412
$as_echo_n "checking for $ac_word... " >&6; }
12413
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12414
$as_echo_n "(cached) " >&6
12416
if test -n "$ac_ct_CC"; then
12417
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420
for as_dir in $PATH
12423
test -z "$as_dir" && as_dir=.
12424
for ac_exec_ext in '' $ac_executable_extensions; do
12425
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426
ac_cv_prog_ac_ct_CC="gcc"
12427
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12437
if test -n "$ac_ct_CC"; then
12438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12439
$as_echo "$ac_ct_CC" >&6; }
12441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442
$as_echo "no" >&6; }
12445
if test "x$ac_ct_CC" = x; then
12448
case $cross_compiling:$ac_tool_warned in
12450
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452
ac_tool_warned=yes ;;
12457
CC="$ac_cv_prog_CC"
12460
if test -z "$CC"; then
12461
if test -n "$ac_tool_prefix"; then
12462
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12463
set dummy ${ac_tool_prefix}cc; ac_word=$2
12464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465
$as_echo_n "checking for $ac_word... " >&6; }
12466
if ${ac_cv_prog_CC+:} false; then :
12467
$as_echo_n "(cached) " >&6
12469
if test -n "$CC"; then
12470
ac_cv_prog_CC="$CC" # Let the user override the test.
12472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473
for as_dir in $PATH
12476
test -z "$as_dir" && as_dir=.
12477
for ac_exec_ext in '' $ac_executable_extensions; do
12478
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479
ac_cv_prog_CC="${ac_tool_prefix}cc"
12480
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490
if test -n "$CC"; then
12491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12492
$as_echo "$CC" >&6; }
12494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495
$as_echo "no" >&6; }
12501
if test -z "$CC"; then
12502
# Extract the first word of "cc", so it can be a program name with args.
12503
set dummy cc; ac_word=$2
12504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505
$as_echo_n "checking for $ac_word... " >&6; }
12506
if ${ac_cv_prog_CC+:} false; then :
12507
$as_echo_n "(cached) " >&6
12509
if test -n "$CC"; then
12510
ac_cv_prog_CC="$CC" # Let the user override the test.
12512
ac_prog_rejected=no
12513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514
for as_dir in $PATH
12517
test -z "$as_dir" && as_dir=.
12518
for ac_exec_ext in '' $ac_executable_extensions; do
12519
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12520
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12521
ac_prog_rejected=yes
12525
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532
if test $ac_prog_rejected = yes; then
12533
# We found a bogon in the path, so make sure we never use it.
12534
set dummy $ac_cv_prog_CC
12536
if test $# != 0; then
12537
# We chose a different compiler from the bogus one.
12538
# However, it has the same basename, so the bogon will be chosen
12539
# first if we set CC to just the basename; use the full file name.
12541
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12547
if test -n "$CC"; then
12548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12549
$as_echo "$CC" >&6; }
12551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552
$as_echo "no" >&6; }
12557
if test -z "$CC"; then
12558
if test -n "$ac_tool_prefix"; then
12559
for ac_prog in cl.exe
12561
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12562
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564
$as_echo_n "checking for $ac_word... " >&6; }
12565
if ${ac_cv_prog_CC+:} false; then :
12566
$as_echo_n "(cached) " >&6
12568
if test -n "$CC"; then
12569
ac_cv_prog_CC="$CC" # Let the user override the test.
12571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572
for as_dir in $PATH
12575
test -z "$as_dir" && as_dir=.
12576
for ac_exec_ext in '' $ac_executable_extensions; do
12577
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12578
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12579
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589
if test -n "$CC"; then
12590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12591
$as_echo "$CC" >&6; }
12593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594
$as_echo "no" >&6; }
12598
test -n "$CC" && break
12601
if test -z "$CC"; then
12603
for ac_prog in cl.exe
12605
# Extract the first word of "$ac_prog", so it can be a program name with args.
12606
set dummy $ac_prog; ac_word=$2
12607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608
$as_echo_n "checking for $ac_word... " >&6; }
12609
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12610
$as_echo_n "(cached) " >&6
12612
if test -n "$ac_ct_CC"; then
12613
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616
for as_dir in $PATH
12619
test -z "$as_dir" && as_dir=.
12620
for ac_exec_ext in '' $ac_executable_extensions; do
12621
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622
ac_cv_prog_ac_ct_CC="$ac_prog"
12623
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12633
if test -n "$ac_ct_CC"; then
12634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12635
$as_echo "$ac_ct_CC" >&6; }
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638
$as_echo "no" >&6; }
12642
test -n "$ac_ct_CC" && break
12645
if test "x$ac_ct_CC" = x; then
12648
case $cross_compiling:$ac_tool_warned in
12650
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12651
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12652
ac_tool_warned=yes ;;
12661
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12663
as_fn_error $? "no acceptable C compiler found in \$PATH
12664
See \`config.log' for more details" "$LINENO" 5; }
12666
# Provide some information about the compiler.
12667
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12670
for ac_option in --version -v -V -qversion; do
12671
{ { ac_try="$ac_compiler $ac_option >&5"
12672
case "(($ac_try" in
12673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674
*) ac_try_echo=$ac_try;;
12676
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12677
$as_echo "$ac_try_echo"; } >&5
12678
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
12680
if test -s conftest.err; then
12682
... rest of stderr output deleted ...
12683
10q' conftest.err >conftest.er1
12684
cat conftest.er1 >&5
12686
rm -f conftest.er1 conftest.err
12687
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688
test $ac_status = 0; }
12691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12692
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12693
if ${ac_cv_c_compiler_gnu+:} false; then :
12694
$as_echo_n "(cached) " >&6
12696
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697
/* end confdefs.h. */
12710
if ac_fn_c_try_compile "$LINENO"; then :
12711
ac_compiler_gnu=yes
12715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12720
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12721
if test $ac_compiler_gnu = yes; then
12726
ac_test_CFLAGS=${CFLAGS+set}
12727
ac_save_CFLAGS=$CFLAGS
12728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12729
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12730
if ${ac_cv_prog_cc_g+:} false; then :
12731
$as_echo_n "(cached) " >&6
12733
ac_save_c_werror_flag=$ac_c_werror_flag
12734
ac_c_werror_flag=yes
12737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738
/* end confdefs.h. */
12748
if ac_fn_c_try_compile "$LINENO"; then :
12749
ac_cv_prog_cc_g=yes
12752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753
/* end confdefs.h. */
12763
if ac_fn_c_try_compile "$LINENO"; then :
12766
ac_c_werror_flag=$ac_save_c_werror_flag
12768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769
/* end confdefs.h. */
12779
if ac_fn_c_try_compile "$LINENO"; then :
12780
ac_cv_prog_cc_g=yes
12782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787
ac_c_werror_flag=$ac_save_c_werror_flag
12789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12790
$as_echo "$ac_cv_prog_cc_g" >&6; }
12791
if test "$ac_test_CFLAGS" = set; then
12792
CFLAGS=$ac_save_CFLAGS
12793
elif test $ac_cv_prog_cc_g = yes; then
12794
if test "$GCC" = yes; then
12800
if test "$GCC" = yes; then
12806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12807
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12808
if ${ac_cv_prog_cc_c89+:} false; then :
12809
$as_echo_n "(cached) " >&6
12811
ac_cv_prog_cc_c89=no
12813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814
/* end confdefs.h. */
12815
#include <stdarg.h>
12818
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12819
struct buf { int x; };
12820
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12821
static char *e (p, i)
12827
static char *f (char * (*g) (char **, int), char **p, ...)
12832
s = g (p, va_arg (v,int));
12837
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12838
function prototypes and stuff, but not '\xHH' hex character constants.
12839
These don't provoke an error unfortunately, instead are silently treated
12840
as 'x'. The following induces an error, until -std is added to get
12841
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12842
array size at least. It's necessary to write '\x00'==0 to get something
12843
that's true only with -std. */
12844
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12846
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12847
inside strings and character constants. */
12849
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12851
int test (int i, double x);
12852
struct s1 {int (*f) (int a);};
12853
struct s2 {int (*f) (double a);};
12854
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12860
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12865
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12866
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12868
CC="$ac_save_CC $ac_arg"
12869
if ac_fn_c_try_compile "$LINENO"; then :
12870
ac_cv_prog_cc_c89=$ac_arg
12872
rm -f core conftest.err conftest.$ac_objext
12873
test "x$ac_cv_prog_cc_c89" != "xno" && break
12875
rm -f conftest.$ac_ext
12880
case "x$ac_cv_prog_cc_c89" in
12882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12883
$as_echo "none needed" >&6; } ;;
12885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12886
$as_echo "unsupported" >&6; } ;;
12888
CC="$CC $ac_cv_prog_cc_c89"
12889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12890
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12892
if test "x$ac_cv_prog_cc_c89" != xno; then :
12897
ac_cpp='$CPP $CPPFLAGS'
12898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12902
depcc="$CC" am_compiler_list=
12904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12905
$as_echo_n "checking dependency style of $depcc... " >&6; }
12906
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12907
$as_echo_n "(cached) " >&6
12909
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12910
# We make a subdir and do the tests there. Otherwise we can end up
12911
# making bogus files that we don't know about and never remove. For
12912
# instance it was reported that on HP-UX the gcc test will end up
12913
# making a dummy file named `D' -- because `-MD' means `put the output
12916
# Copy depcomp to subdir because otherwise we won't find it if we're
12917
# using a relative directory.
12918
cp "$am_depcomp" conftest.dir
12920
# We will build objects and dependencies in a subdirectory because
12921
# it helps to detect inapplicable dependency modes. For instance
12922
# both Tru64's cc and ICC support -MD to output dependencies as a
12923
# side effect of compilation, but ICC will put the dependencies in
12924
# the current directory while Tru64 will put them in the object
12928
am_cv_CC_dependencies_compiler_type=none
12929
if test "$am_compiler_list" = ""; then
12930
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12932
am__universal=false
12933
case " $depcc " in #(
12934
*\ -arch\ *\ -arch\ *) am__universal=true ;;
12937
for depmode in $am_compiler_list; do
12938
# Setup a source with many dependencies, because some compilers
12939
# like to wrap large dependency lists on column 80 (with \), and
12940
# we should not choose a depcomp mode which is confused by this.
12942
# We need to recreate these files for each test, as the compiler may
12943
# overwrite some of them when testing with obscure command lines.
12944
# This happens at least with the AIX C compiler.
12946
for i in 1 2 3 4 5 6; do
12947
echo '#include "conftst'$i'.h"' >> sub/conftest.c
12948
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12949
# Solaris 8's {/usr,}/bin/sh.
12950
touch sub/conftst$i.h
12952
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12954
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12955
# mode. It turns out that the SunPro C++ compiler does not properly
12956
# handle `-M -o', and we need to detect this. Also, some Intel
12957
# versions had trouble with output in subdirs
12958
am__obj=sub/conftest.${OBJEXT-o}
12959
am__minus_obj="-o $am__obj"
12962
# This depmode causes a compiler race in universal mode.
12963
test "$am__universal" = false || continue
12966
# after this tag, mechanisms are not by side-effect, so they'll
12967
# only be used when explicitly requested
12968
if test "x$enable_dependency_tracking" = xyes; then
12974
msvisualcpp | msvcmsys)
12975
# This compiler won't grok `-c -o', but also, the minuso test has
12976
# not run yet. These depmodes are late enough in the game, and
12977
# so weak that their functioning should not be impacted.
12978
am__obj=conftest.${OBJEXT-o}
12983
if depmode=$depmode \
12984
source=sub/conftest.c object=$am__obj \
12985
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12986
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12987
>/dev/null 2>conftest.err &&
12988
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12989
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12990
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12991
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12992
# icc doesn't choke on unknown options, it will just issue warnings
12993
# or remarks (even with -Werror). So we grep stderr for any message
12994
# that says an option was ignored or not supported.
12995
# When given -MP, icc 7.0 and 7.1 complain thusly:
12996
# icc: Command line warning: ignoring option '-M'; no argument required
12997
# The diagnosis changed in icc 8.0:
12998
# icc: Command line remark: option '-MP' not supported
12999
if (grep 'ignoring option' conftest.err ||
13000
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13001
am_cv_CC_dependencies_compiler_type=$depmode
13008
rm -rf conftest.dir
13010
am_cv_CC_dependencies_compiler_type=none
13014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13015
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13016
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13019
test "x$enable_dependency_tracking" != xno \
13020
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13021
am__fastdepCC_TRUE=
13022
am__fastdepCC_FALSE='#'
13024
am__fastdepCC_TRUE='#'
13025
am__fastdepCC_FALSE=
13030
ac_cpp='$CXXCPP $CPPFLAGS'
13031
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13034
if test -z "$CXX"; then
13035
if test -n "$CCC"; then
13038
if test -n "$ac_tool_prefix"; then
13039
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13041
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13042
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044
$as_echo_n "checking for $ac_word... " >&6; }
13045
if ${ac_cv_prog_CXX+:} false; then :
13046
$as_echo_n "(cached) " >&6
13048
if test -n "$CXX"; then
13049
ac_cv_prog_CXX="$CXX" # Let the user override the test.
13051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052
for as_dir in $PATH
13055
test -z "$as_dir" && as_dir=.
13056
for ac_exec_ext in '' $ac_executable_extensions; do
13057
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13059
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068
CXX=$ac_cv_prog_CXX
13069
if test -n "$CXX"; then
13070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13071
$as_echo "$CXX" >&6; }
13073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074
$as_echo "no" >&6; }
13078
test -n "$CXX" && break
13081
if test -z "$CXX"; then
13083
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13085
# Extract the first word of "$ac_prog", so it can be a program name with args.
13086
set dummy $ac_prog; ac_word=$2
13087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088
$as_echo_n "checking for $ac_word... " >&6; }
13089
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13090
$as_echo_n "(cached) " >&6
13092
if test -n "$ac_ct_CXX"; then
13093
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096
for as_dir in $PATH
13099
test -z "$as_dir" && as_dir=.
13100
for ac_exec_ext in '' $ac_executable_extensions; do
13101
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102
ac_cv_prog_ac_ct_CXX="$ac_prog"
13103
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13113
if test -n "$ac_ct_CXX"; then
13114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13115
$as_echo "$ac_ct_CXX" >&6; }
13117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118
$as_echo "no" >&6; }
13122
test -n "$ac_ct_CXX" && break
13125
if test "x$ac_ct_CXX" = x; then
13128
case $cross_compiling:$ac_tool_warned in
13130
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13131
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13132
ac_tool_warned=yes ;;
13140
# Provide some information about the compiler.
13141
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13144
for ac_option in --version -v -V -qversion; do
13145
{ { ac_try="$ac_compiler $ac_option >&5"
13146
case "(($ac_try" in
13147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148
*) ac_try_echo=$ac_try;;
13150
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13151
$as_echo "$ac_try_echo"; } >&5
13152
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
13154
if test -s conftest.err; then
13156
... rest of stderr output deleted ...
13157
10q' conftest.err >conftest.er1
13158
cat conftest.er1 >&5
13160
rm -f conftest.er1 conftest.err
13161
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162
test $ac_status = 0; }
13165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13166
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13167
if ${ac_cv_cxx_compiler_gnu+:} false; then :
13168
$as_echo_n "(cached) " >&6
13170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171
/* end confdefs.h. */
13184
if ac_fn_cxx_try_compile "$LINENO"; then :
13185
ac_compiler_gnu=yes
13189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13194
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13195
if test $ac_compiler_gnu = yes; then
13200
ac_test_CXXFLAGS=${CXXFLAGS+set}
13201
ac_save_CXXFLAGS=$CXXFLAGS
13202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13203
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13204
if ${ac_cv_prog_cxx_g+:} false; then :
13205
$as_echo_n "(cached) " >&6
13207
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13208
ac_cxx_werror_flag=yes
13209
ac_cv_prog_cxx_g=no
13211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212
/* end confdefs.h. */
13222
if ac_fn_cxx_try_compile "$LINENO"; then :
13223
ac_cv_prog_cxx_g=yes
13226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227
/* end confdefs.h. */
13237
if ac_fn_cxx_try_compile "$LINENO"; then :
13240
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243
/* end confdefs.h. */
13253
if ac_fn_cxx_try_compile "$LINENO"; then :
13254
ac_cv_prog_cxx_g=yes
13256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13264
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13265
if test "$ac_test_CXXFLAGS" = set; then
13266
CXXFLAGS=$ac_save_CXXFLAGS
13267
elif test $ac_cv_prog_cxx_g = yes; then
13268
if test "$GXX" = yes; then
13274
if test "$GXX" = yes; then
13281
ac_cpp='$CPP $CPPFLAGS'
13282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13286
depcc="$CXX" am_compiler_list=
13288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13289
$as_echo_n "checking dependency style of $depcc... " >&6; }
13290
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13291
$as_echo_n "(cached) " >&6
13293
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13294
# We make a subdir and do the tests there. Otherwise we can end up
13295
# making bogus files that we don't know about and never remove. For
13296
# instance it was reported that on HP-UX the gcc test will end up
13297
# making a dummy file named `D' -- because `-MD' means `put the output
13300
# Copy depcomp to subdir because otherwise we won't find it if we're
13301
# using a relative directory.
13302
cp "$am_depcomp" conftest.dir
13304
# We will build objects and dependencies in a subdirectory because
13305
# it helps to detect inapplicable dependency modes. For instance
13306
# both Tru64's cc and ICC support -MD to output dependencies as a
13307
# side effect of compilation, but ICC will put the dependencies in
13308
# the current directory while Tru64 will put them in the object
13312
am_cv_CXX_dependencies_compiler_type=none
13313
if test "$am_compiler_list" = ""; then
13314
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13316
am__universal=false
13317
case " $depcc " in #(
13318
*\ -arch\ *\ -arch\ *) am__universal=true ;;
13321
for depmode in $am_compiler_list; do
13322
# Setup a source with many dependencies, because some compilers
13323
# like to wrap large dependency lists on column 80 (with \), and
13324
# we should not choose a depcomp mode which is confused by this.
13326
# We need to recreate these files for each test, as the compiler may
13327
# overwrite some of them when testing with obscure command lines.
13328
# This happens at least with the AIX C compiler.
13330
for i in 1 2 3 4 5 6; do
13331
echo '#include "conftst'$i'.h"' >> sub/conftest.c
13332
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13333
# Solaris 8's {/usr,}/bin/sh.
13334
touch sub/conftst$i.h
13336
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13338
# We check with `-c' and `-o' for the sake of the "dashmstdout"
13339
# mode. It turns out that the SunPro C++ compiler does not properly
13340
# handle `-M -o', and we need to detect this. Also, some Intel
13341
# versions had trouble with output in subdirs
13342
am__obj=sub/conftest.${OBJEXT-o}
13343
am__minus_obj="-o $am__obj"
13346
# This depmode causes a compiler race in universal mode.
13347
test "$am__universal" = false || continue
13350
# after this tag, mechanisms are not by side-effect, so they'll
13351
# only be used when explicitly requested
13352
if test "x$enable_dependency_tracking" = xyes; then
13358
msvisualcpp | msvcmsys)
13359
# This compiler won't grok `-c -o', but also, the minuso test has
13360
# not run yet. These depmodes are late enough in the game, and
13361
# so weak that their functioning should not be impacted.
13362
am__obj=conftest.${OBJEXT-o}
13367
if depmode=$depmode \
13368
source=sub/conftest.c object=$am__obj \
13369
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13370
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13371
>/dev/null 2>conftest.err &&
13372
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13373
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13374
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13375
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13376
# icc doesn't choke on unknown options, it will just issue warnings
13377
# or remarks (even with -Werror). So we grep stderr for any message
13378
# that says an option was ignored or not supported.
13379
# When given -MP, icc 7.0 and 7.1 complain thusly:
13380
# icc: Command line warning: ignoring option '-M'; no argument required
13381
# The diagnosis changed in icc 8.0:
13382
# icc: Command line remark: option '-MP' not supported
13383
if (grep 'ignoring option' conftest.err ||
13384
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13385
am_cv_CXX_dependencies_compiler_type=$depmode
13392
rm -rf conftest.dir
13394
am_cv_CXX_dependencies_compiler_type=none
13398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13399
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13400
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13403
test "x$enable_dependency_tracking" != xno \
13404
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13405
am__fastdepCXX_TRUE=
13406
am__fastdepCXX_FALSE='#'
13408
am__fastdepCXX_TRUE='#'
13409
am__fastdepCXX_FALSE=
13415
func_stripname_cnf ()
13418
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13419
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13421
} # func_stripname_cnf
13423
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13424
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13425
(test "X$CXX" != "Xg++"))) ; then
13427
ac_cpp='$CXXCPP $CPPFLAGS'
13428
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13429
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13430
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13432
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13433
if test -z "$CXXCPP"; then
13434
if ${ac_cv_prog_CXXCPP+:} false; then :
13435
$as_echo_n "(cached) " >&6
13437
# Double quotes because CXXCPP needs to be expanded
13438
for CXXCPP in "$CXX -E" "/lib/cpp"
13440
ac_preproc_ok=false
13441
for ac_cxx_preproc_warn_flag in '' yes
13443
# Use a header file that comes with gcc, so configuring glibc
13444
# with a fresh cross-compiler works.
13445
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13446
# <limits.h> exists even on freestanding compilers.
13447
# On the NeXT, cc -E runs the code through the compiler's parser,
13448
# not just through cpp. "Syntax error" is here to catch this case.
13449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450
/* end confdefs.h. */
13452
# include <limits.h>
13454
# include <assert.h>
13458
if ac_fn_cxx_try_cpp "$LINENO"; then :
13461
# Broken: fails on valid input.
13464
rm -f conftest.err conftest.i conftest.$ac_ext
13466
# OK, works on sane cases. Now check whether nonexistent headers
13467
# can be detected and how.
13468
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469
/* end confdefs.h. */
13470
#include <ac_nonexistent.h>
13472
if ac_fn_cxx_try_cpp "$LINENO"; then :
13473
# Broken: success on invalid input.
13476
# Passes both tests.
13480
rm -f conftest.err conftest.i conftest.$ac_ext
13483
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13484
rm -f conftest.i conftest.err conftest.$ac_ext
13485
if $ac_preproc_ok; then :
13490
ac_cv_prog_CXXCPP=$CXXCPP
13493
CXXCPP=$ac_cv_prog_CXXCPP
13495
ac_cv_prog_CXXCPP=$CXXCPP
13497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13498
$as_echo "$CXXCPP" >&6; }
13499
ac_preproc_ok=false
13500
for ac_cxx_preproc_warn_flag in '' yes
13502
# Use a header file that comes with gcc, so configuring glibc
13503
# with a fresh cross-compiler works.
13504
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13505
# <limits.h> exists even on freestanding compilers.
13506
# On the NeXT, cc -E runs the code through the compiler's parser,
13507
# not just through cpp. "Syntax error" is here to catch this case.
13508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509
/* end confdefs.h. */
13511
# include <limits.h>
13513
# include <assert.h>
13517
if ac_fn_cxx_try_cpp "$LINENO"; then :
13520
# Broken: fails on valid input.
13523
rm -f conftest.err conftest.i conftest.$ac_ext
13525
# OK, works on sane cases. Now check whether nonexistent headers
13526
# can be detected and how.
13527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528
/* end confdefs.h. */
13529
#include <ac_nonexistent.h>
13531
if ac_fn_cxx_try_cpp "$LINENO"; then :
13532
# Broken: success on invalid input.
13535
# Passes both tests.
13539
rm -f conftest.err conftest.i conftest.$ac_ext
13542
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13543
rm -f conftest.i conftest.err conftest.$ac_ext
13544
if $ac_preproc_ok; then :
13547
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13548
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13549
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13550
See \`config.log' for more details" "$LINENO" 5; }
13554
ac_cpp='$CPP $CPPFLAGS'
13555
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13560
_lt_caught_CXX_error=yes
13564
ac_cpp='$CXXCPP $CPPFLAGS'
13565
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13569
archive_cmds_need_lc_CXX=no
13570
allow_undefined_flag_CXX=
13571
always_export_symbols_CXX=no
13572
archive_expsym_cmds_CXX=
13573
compiler_needs_object_CXX=no
13574
export_dynamic_flag_spec_CXX=
13575
hardcode_direct_CXX=no
13576
hardcode_direct_absolute_CXX=no
13577
hardcode_libdir_flag_spec_CXX=
13578
hardcode_libdir_flag_spec_ld_CXX=
13579
hardcode_libdir_separator_CXX=
13580
hardcode_minus_L_CXX=no
13581
hardcode_shlibpath_var_CXX=unsupported
13582
hardcode_automatic_CXX=no
13583
inherit_rpath_CXX=no
13585
module_expsym_cmds_CXX=
13586
link_all_deplibs_CXX=unknown
13587
old_archive_cmds_CXX=$old_archive_cmds
13588
reload_flag_CXX=$reload_flag
13589
reload_cmds_CXX=$reload_cmds
13590
no_undefined_flag_CXX=
13591
whole_archive_flag_spec_CXX=
13592
enable_shared_with_static_runtimes_CXX=no
13594
# Source file extension for C++ test sources.
13597
# Object file extension for compiled C++ test sources.
13601
# No sense in running all these tests if we already determined that
13602
# the CXX compiler isn't working. Some variables (like enable_shared)
13603
# are currently assumed to apply to all compilers on this platform,
13604
# and will be corrupted by setting them based on a non-working compiler.
13605
if test "$_lt_caught_CXX_error" != yes; then
13606
# Code to be used in simple compile tests
13607
lt_simple_compile_test_code="int some_variable = 0;"
13609
# Code to be used in simple link tests
13610
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13612
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13619
# If no C compiler was specified, use CC.
13622
# If no C compiler flags were specified, use CFLAGS.
13623
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13625
# Allow CC to be a program name with arguments.
13629
# save warnings/boilerplate of simple test code
13630
ac_outfile=conftest.$ac_objext
13631
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13632
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13633
_lt_compiler_boilerplate=`cat conftest.err`
13636
ac_outfile=conftest.$ac_objext
13637
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13638
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13639
_lt_linker_boilerplate=`cat conftest.err`
13643
# Allow CC to be a program name with arguments.
13645
lt_save_CFLAGS=$CFLAGS
13649
lt_save_with_gnu_ld=$with_gnu_ld
13650
lt_save_path_LD=$lt_cv_path_LD
13651
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13652
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13654
$as_unset lt_cv_prog_gnu_ld
13656
if test -n "${lt_cv_path_LDCXX+set}"; then
13657
lt_cv_path_LD=$lt_cv_path_LDCXX
13659
$as_unset lt_cv_path_LD
13661
test -z "${LDCXX+set}" || LD=$LDCXX
13666
for cc_temp in $compiler""; do
13668
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13669
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13674
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13677
if test -n "$compiler"; then
13678
# We don't want -fno-exception when compiling C++ code, so set the
13679
# no_builtin_flag separately
13680
if test "$GXX" = yes; then
13681
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13683
lt_prog_compiler_no_builtin_flag_CXX=
13686
if test "$GXX" = yes; then
13687
# Set up default GNU C++ configuration
13691
# Check whether --with-gnu-ld was given.
13692
if test "${with_gnu_ld+set}" = set; then :
13693
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13699
if test "$GCC" = yes; then
13700
# Check if gcc -print-prog-name=ld gives a path.
13701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13702
$as_echo_n "checking for ld used by $CC... " >&6; }
13705
# gcc leaves a trailing carriage return which upsets mingw
13706
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13708
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13711
# Accept absolute paths.
13713
re_direlt='/[^/][^/]*/\.\./'
13714
# Canonicalize the pathname of ld
13715
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13716
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13717
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13719
test -z "$LD" && LD="$ac_prog"
13722
# If it fails, then pretend we aren't using GCC.
13726
# If it is relative, then search for the first ld in PATH.
13727
with_gnu_ld=unknown
13730
elif test "$with_gnu_ld" = yes; then
13731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13732
$as_echo_n "checking for GNU ld... " >&6; }
13734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13735
$as_echo_n "checking for non-GNU ld... " >&6; }
13737
if ${lt_cv_path_LD+:} false; then :
13738
$as_echo_n "(cached) " >&6
13740
if test -z "$LD"; then
13741
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13742
for ac_dir in $PATH; do
13744
test -z "$ac_dir" && ac_dir=.
13745
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13746
lt_cv_path_LD="$ac_dir/$ac_prog"
13747
# Check to see if the program is GNU ld. I'd rather use --version,
13748
# but apparently some variants of GNU ld only accept -v.
13749
# Break only if it was the GNU/non-GNU ld that we prefer.
13750
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13751
*GNU* | *'with BFD'*)
13752
test "$with_gnu_ld" != no && break
13755
test "$with_gnu_ld" != yes && break
13762
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13766
LD="$lt_cv_path_LD"
13767
if test -n "$LD"; then
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13769
$as_echo "$LD" >&6; }
13771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772
$as_echo "no" >&6; }
13774
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13776
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13777
if ${lt_cv_prog_gnu_ld+:} false; then :
13778
$as_echo_n "(cached) " >&6
13780
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13781
case `$LD -v 2>&1 </dev/null` in
13782
*GNU* | *'with BFD'*)
13783
lt_cv_prog_gnu_ld=yes
13786
lt_cv_prog_gnu_ld=no
13790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13791
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13792
with_gnu_ld=$lt_cv_prog_gnu_ld
13800
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13801
# archiving commands below assume that GNU ld is being used.
13802
if test "$with_gnu_ld" = yes; then
13803
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804
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'
13806
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13807
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809
# If archive_cmds runs LD, not CC, wlarc should be empty
13810
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13811
# investigate it a little bit more. (MM)
13814
# ancient GNU ld didn't support --whole-archive et. al.
13815
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13816
$GREP 'no-whole-archive' > /dev/null; then
13817
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13819
whole_archive_flag_spec_CXX=
13825
# A generic and very simple default shared library creation
13826
# command for GNU C++ for the case where it uses the native
13827
# linker, instead of GNU ld. If possible, this setting should
13828
# overridden to take advantage of the native linker features on
13829
# the platform it is being used on.
13830
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13833
# Commands to make compiler produce verbose output that lists
13834
# what "hidden" libraries, object files and flags are used when
13835
# linking a shared library.
13836
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13844
# PORTME: fill in a description of your system's C++ link characteristics
13845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13846
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13850
# FIXME: insert proper C++ library support
13854
if test "$host_cpu" = ia64; then
13855
# On IA64, the linker does run time linking by default, so we don't
13856
# have to do anything special.
13857
aix_use_runtimelinking=no
13858
exp_sym_flag='-Bexport'
13861
aix_use_runtimelinking=no
13863
# Test if we are trying to use run time linking or normal
13864
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13865
# need to do runtime linking.
13866
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13867
for ld_flag in $LDFLAGS; do
13870
aix_use_runtimelinking=yes
13878
exp_sym_flag='-bexport'
13879
no_entry_flag='-bnoentry'
13882
# When large executables or shared objects are built, AIX ld can
13883
# have problems creating the table of contents. If linking a library
13884
# or program results in "error TOC overflow" add -mminimal-toc to
13885
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13886
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13888
archive_cmds_CXX=''
13889
hardcode_direct_CXX=yes
13890
hardcode_direct_absolute_CXX=yes
13891
hardcode_libdir_separator_CXX=':'
13892
link_all_deplibs_CXX=yes
13893
file_list_spec_CXX='${wl}-f,'
13895
if test "$GXX" = yes; then
13896
case $host_os in aix4.[012]|aix4.[012].*)
13897
# We only want to do this on AIX 4.2 and lower, the check
13898
# below for broken collect2 doesn't work under 4.3+
13899
collect2name=`${CC} -print-prog-name=collect2`
13900
if test -f "$collect2name" &&
13901
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13903
# We have reworked collect2
13906
# We have old collect2
13907
hardcode_direct_CXX=unsupported
13908
# It fails to find uninstalled libraries when the uninstalled
13909
# path is not listed in the libpath. Setting hardcode_minus_L
13910
# to unsupported forces relinking
13911
hardcode_minus_L_CXX=yes
13912
hardcode_libdir_flag_spec_CXX='-L$libdir'
13913
hardcode_libdir_separator_CXX=
13916
shared_flag='-shared'
13917
if test "$aix_use_runtimelinking" = yes; then
13918
shared_flag="$shared_flag "'${wl}-G'
13922
if test "$host_cpu" = ia64; then
13923
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13924
# chokes on -Wl,-G. The following line is correct:
13927
if test "$aix_use_runtimelinking" = yes; then
13928
shared_flag='${wl}-G'
13930
shared_flag='${wl}-bM:SRE'
13935
export_dynamic_flag_spec_CXX='${wl}-bexpall'
13936
# It seems that -bexpall does not export symbols beginning with
13937
# underscore (_), so it is better to generate a list of symbols to
13939
always_export_symbols_CXX=yes
13940
if test "$aix_use_runtimelinking" = yes; then
13941
# Warning - without using the other runtime loading flags (-brtl),
13942
# -berok will link without error, but may produce a broken library.
13943
allow_undefined_flag_CXX='-berok'
13944
# Determine the default libpath from the value encoded in an empty
13946
if test "${lt_cv_aix_libpath+set}" = set; then
13947
aix_libpath=$lt_cv_aix_libpath
13949
if ${lt_cv_aix_libpath__CXX+:} false; then :
13950
$as_echo_n "(cached) " >&6
13952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953
/* end confdefs.h. */
13963
if ac_fn_cxx_try_link "$LINENO"; then :
13965
lt_aix_libpath_sed='
13966
/Import File Strings/,/^$/ {
13968
s/^0 *\([^ ]*\) *$/\1/
13972
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13973
# Check for a 64-bit object if we didn't find anything.
13974
if test -z "$lt_cv_aix_libpath__CXX"; then
13975
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13978
rm -f core conftest.err conftest.$ac_objext \
13979
conftest$ac_exeext conftest.$ac_ext
13980
if test -z "$lt_cv_aix_libpath__CXX"; then
13981
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13986
aix_libpath=$lt_cv_aix_libpath__CXX
13989
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13991
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"
13993
if test "$host_cpu" = ia64; then
13994
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13995
allow_undefined_flag_CXX="-z nodefs"
13996
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"
13998
# Determine the default libpath from the value encoded in an
13999
# empty executable.
14000
if test "${lt_cv_aix_libpath+set}" = set; then
14001
aix_libpath=$lt_cv_aix_libpath
14003
if ${lt_cv_aix_libpath__CXX+:} false; then :
14004
$as_echo_n "(cached) " >&6
14006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007
/* end confdefs.h. */
14017
if ac_fn_cxx_try_link "$LINENO"; then :
14019
lt_aix_libpath_sed='
14020
/Import File Strings/,/^$/ {
14022
s/^0 *\([^ ]*\) *$/\1/
14026
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14027
# Check for a 64-bit object if we didn't find anything.
14028
if test -z "$lt_cv_aix_libpath__CXX"; then
14029
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14032
rm -f core conftest.err conftest.$ac_objext \
14033
conftest$ac_exeext conftest.$ac_ext
14034
if test -z "$lt_cv_aix_libpath__CXX"; then
14035
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14040
aix_libpath=$lt_cv_aix_libpath__CXX
14043
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14044
# Warning - without using the other run time loading flags,
14045
# -berok will link without error, but may produce a broken library.
14046
no_undefined_flag_CXX=' ${wl}-bernotok'
14047
allow_undefined_flag_CXX=' ${wl}-berok'
14048
if test "$with_gnu_ld" = yes; then
14049
# We only use this code for GNU lds that support --whole-archive.
14050
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14052
# Exported symbols can be pulled into shared objects from archives
14053
whole_archive_flag_spec_CXX='$convenience'
14055
archive_cmds_need_lc_CXX=yes
14056
# This is similar to how AIX traditionally builds its shared
14058
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'
14064
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065
allow_undefined_flag_CXX=unsupported
14066
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14067
# support --undefined. This deserves some investigation. FIXME
14068
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075
case $cc_basename in
14077
# FIXME: insert proper C++ library support
14083
cygwin* | mingw* | pw32* | cegcc*)
14084
case $GXX,$cc_basename in
14087
# hardcode_libdir_flag_spec is actually meaningless, as there is
14088
# no search path for DLLs.
14089
hardcode_libdir_flag_spec_CXX=' '
14090
allow_undefined_flag_CXX=unsupported
14091
always_export_symbols_CXX=yes
14092
file_list_spec_CXX='@'
14093
# Tell ltmain to make .lib files, not .a files.
14095
# Tell ltmain to make .dll files, not .so files.
14097
# FIXME: Setting linknames here is a bad hack.
14098
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14099
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14100
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14102
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14104
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14106
# The linker will not automatically build a static lib if we build a DLL.
14107
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14108
enable_shared_with_static_runtimes_CXX=yes
14110
old_postinstall_cmds_CXX='chmod 644 $oldlib'
14111
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14112
lt_tool_outputfile="@TOOL_OUTPUT@"~
14113
case $lt_outputfile in
14116
lt_outputfile="$lt_outputfile.exe"
14117
lt_tool_outputfile="$lt_tool_outputfile.exe"
14120
func_to_tool_file "$lt_outputfile"~
14121
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14122
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14123
$RM "$lt_outputfile.manifest";
14128
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14129
# as there is no search path for DLLs.
14130
hardcode_libdir_flag_spec_CXX='-L$libdir'
14131
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14132
allow_undefined_flag_CXX=unsupported
14133
always_export_symbols_CXX=no
14134
enable_shared_with_static_runtimes_CXX=yes
14136
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14137
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'
14138
# If the export-symbols file already is a .def file (1st line
14139
# is EXPORTS), use it as is; otherwise, prepend...
14140
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14141
cp $export_symbols $output_objdir/$soname.def;
14143
echo EXPORTS > $output_objdir/$soname.def;
14144
cat $export_symbols >> $output_objdir/$soname.def;
14146
$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'
14153
darwin* | rhapsody*)
14156
archive_cmds_need_lc_CXX=no
14157
hardcode_direct_CXX=no
14158
hardcode_automatic_CXX=yes
14159
hardcode_shlibpath_var_CXX=unsupported
14160
if test "$lt_cv_ld_force_load" = "yes"; then
14161
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\"`'
14163
whole_archive_flag_spec_CXX=''
14165
link_all_deplibs_CXX=yes
14166
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14167
case $cc_basename in
14168
ifort*) _lt_dar_can_shared=yes ;;
14169
*) _lt_dar_can_shared=$GCC ;;
14171
if test "$_lt_dar_can_shared" = "yes"; then
14172
output_verbose_link_cmd=func_echo_all
14173
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}"
14174
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14175
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}"
14176
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}"
14177
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14178
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}"
14179
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}"
14189
case $cc_basename in
14191
# FIXME: insert proper C++ library support
14195
# Green Hills C++ Compiler
14196
# FIXME: insert proper C++ library support
14200
# FIXME: insert proper C++ library support
14207
# C++ shared libraries reported to be fairly broken before
14213
archive_cmds_need_lc_CXX=no
14216
freebsd* | dragonfly*)
14217
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14226
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227
link_all_deplibs_CXX=yes
14231
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14232
hardcode_libdir_separator_CXX=:
14233
export_dynamic_flag_spec_CXX='${wl}-E'
14234
hardcode_direct_CXX=yes
14235
hardcode_minus_L_CXX=yes # Not in the search PATH,
14236
# but as the default
14237
# location of the library.
14239
case $cc_basename in
14241
# FIXME: insert proper C++ library support
14245
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'
14246
# Commands to make compiler produce verbose output that lists
14247
# what "hidden" libraries, object files and flags are used when
14248
# linking a shared library.
14250
# There doesn't appear to be a way to prevent this compiler from
14251
# explicitly linking system object files so we need to strip them
14252
# from the output so that they don't get included in the library
14254
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"'
14257
if test "$GXX" = yes; then
14258
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'
14260
# FIXME: insert proper C++ library support
14268
if test $with_gnu_ld = no; then
14269
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14270
hardcode_libdir_separator_CXX=:
14276
export_dynamic_flag_spec_CXX='${wl}-E'
14282
hardcode_direct_CXX=no
14283
hardcode_shlibpath_var_CXX=no
14286
hardcode_direct_CXX=yes
14287
hardcode_direct_absolute_CXX=yes
14288
hardcode_minus_L_CXX=yes # Not in the search PATH,
14289
# but as the default
14290
# location of the library.
14294
case $cc_basename in
14296
# FIXME: insert proper C++ library support
14302
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14305
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14308
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14311
# Commands to make compiler produce verbose output that lists
14312
# what "hidden" libraries, object files and flags are used when
14313
# linking a shared library.
14315
# There doesn't appear to be a way to prevent this compiler from
14316
# explicitly linking system object files so we need to strip them
14317
# from the output so that they don't get included in the library
14319
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"'
14322
if test "$GXX" = yes; then
14323
if test $with_gnu_ld = no; then
14326
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14329
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14332
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'
14337
# FIXME: insert proper C++ library support
14345
hardcode_direct_CXX=no
14346
hardcode_shlibpath_var_CXX=no
14347
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14348
export_dynamic_flag_spec_CXX='${wl}-E'
14349
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14350
# Instead, shared libraries are loaded at an image base (0x10000000 by
14351
# default) and relocated if they conflict, which is a slow very memory
14352
# consuming and fragmenting process. To avoid this, we pick a random,
14353
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14354
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14355
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'
14356
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'
14359
case $cc_basename in
14362
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'
14364
# Archives containing C++ object files must be created using
14365
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14366
# necessary to make sure instantiated templates are included
14368
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14371
if test "$GXX" = yes; then
14372
if test "$with_gnu_ld" = no; then
14373
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'
14375
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'
14378
link_all_deplibs_CXX=yes
14381
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14382
hardcode_libdir_separator_CXX=:
14383
inherit_rpath_CXX=yes
14386
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14387
case $cc_basename in
14389
# Kuck and Associates, Inc. (KAI) C++ Compiler
14391
# KCC will only create a shared library if the output file
14392
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14393
# to its proper name (with version) after linking.
14394
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'
14395
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'
14396
# Commands to make compiler produce verbose output that lists
14397
# what "hidden" libraries, object files and flags are used when
14398
# linking a shared library.
14400
# There doesn't appear to be a way to prevent this compiler from
14401
# explicitly linking system object files so we need to strip them
14402
# from the output so that they don't get included in the library
14404
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"'
14406
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14407
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14409
# Archives containing C++ object files must be created using
14410
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14411
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14416
# version 8.0 and above of icpc choke on multiply defined symbols
14417
# if we add $predep_objects and $postdep_objects, however 7.1 and
14418
# earlier do not add the objects themselves.
14419
case `$CC -V 2>&1` in
14421
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422
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'
14424
*) # Version 8.0 or newer
14427
ia64*) tmp_idyn=' -i_dynamic';;
14429
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14430
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'
14433
archive_cmds_need_lc_CXX=no
14434
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14435
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14436
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14439
# Portland Group C++ compiler
14441
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14442
prelink_cmds_CXX='tpldir=Template.dir~
14444
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14445
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14446
old_archive_cmds_CXX='tpldir=Template.dir~
14448
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14449
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14451
archive_cmds_CXX='tpldir=Template.dir~
14453
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14454
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14455
archive_expsym_cmds_CXX='tpldir=Template.dir~
14457
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14458
$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'
14460
*) # Version 6 and above use weak symbols
14461
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14462
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'
14466
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14467
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14468
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'
14472
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473
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'
14475
runpath_var=LD_RUN_PATH
14476
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14477
hardcode_libdir_separator_CXX=:
14479
# Commands to make compiler produce verbose output that lists
14480
# what "hidden" libraries, object files and flags are used when
14481
# linking a shared library.
14483
# There doesn't appear to be a way to prevent this compiler from
14484
# explicitly linking system object files so we need to strip them
14485
# from the output so that they don't get included in the library
14487
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'
14489
xl* | mpixl* | bgxl*)
14490
# IBM XL 8.0 on PPC, with GNU ld
14491
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14492
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14493
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494
if test "x$supports_anon_versioning" = xyes; then
14495
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14496
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14497
echo "local: *; };" >> $output_objdir/$libname.ver~
14498
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14502
case `$CC -V 2>&1 | sed 5q` in
14505
no_undefined_flag_CXX=' -zdefs'
14506
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14507
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'
14508
hardcode_libdir_flag_spec_CXX='-R$libdir'
14509
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'
14510
compiler_needs_object_CXX=yes
14512
# Not sure whether something based on
14513
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14515
output_verbose_link_cmd='func_echo_all'
14517
# Archives containing C++ object files must be created using
14518
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14519
# necessary to make sure instantiated templates are included
14521
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14529
# FIXME: insert proper C++ library support
14534
# FIXME: insert proper C++ library support
14539
case $cc_basename in
14541
# FIXME: insert proper C++ library support
14545
# FIXME: insert proper C++ library support
14552
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14553
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14555
hardcode_libdir_flag_spec_CXX='-R$libdir'
14556
hardcode_direct_CXX=yes
14557
hardcode_shlibpath_var_CXX=no
14559
# Workaround some broken pre-1.5 toolchains
14560
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14568
# C++ shared libraries are fairly broken
14573
if test -f /usr/libexec/ld.so; then
14574
hardcode_direct_CXX=yes
14575
hardcode_shlibpath_var_CXX=no
14576
hardcode_direct_absolute_CXX=yes
14577
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14578
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14579
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14580
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14581
export_dynamic_flag_spec_CXX='${wl}-E'
14582
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14584
output_verbose_link_cmd=func_echo_all
14590
osf3* | osf4* | osf5*)
14591
case $cc_basename in
14593
# Kuck and Associates, Inc. (KAI) C++ Compiler
14595
# KCC will only create a shared library if the output file
14596
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14597
# to its proper name (with version) after linking.
14598
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'
14600
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14601
hardcode_libdir_separator_CXX=:
14603
# Archives containing C++ object files must be created using
14604
# the KAI C++ compiler.
14606
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14607
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14611
# Rational C++ 2.4.1
14612
# FIXME: insert proper C++ library support
14618
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14619
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'
14620
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14623
allow_undefined_flag_CXX=' -expect_unresolved \*'
14624
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'
14625
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14626
echo "-hidden">> $lib.exp~
14627
$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~
14629
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14633
hardcode_libdir_separator_CXX=:
14635
# Commands to make compiler produce verbose output that lists
14636
# what "hidden" libraries, object files and flags are used when
14637
# linking a shared library.
14639
# There doesn't appear to be a way to prevent this compiler from
14640
# explicitly linking system object files so we need to strip them
14641
# from the output so that they don't get included in the library
14643
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"'
14646
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14647
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14650
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'
14653
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'
14657
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14658
hardcode_libdir_separator_CXX=:
14660
# Commands to make compiler produce verbose output that lists
14661
# what "hidden" libraries, object files and flags are used when
14662
# linking a shared library.
14663
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14666
# FIXME: insert proper C++ library support
14674
# FIXME: insert proper C++ library support
14679
case $cc_basename in
14682
# FIXME: insert proper C++ library support
14687
# FIXME: insert proper C++ library support
14691
# FIXME: insert proper C++ library support
14698
case $cc_basename in
14700
# Sun C++ 4.2, 5.x and Centerline C++
14701
archive_cmds_need_lc_CXX=yes
14702
no_undefined_flag_CXX=' -zdefs'
14703
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14704
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14705
$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'
14707
hardcode_libdir_flag_spec_CXX='-R$libdir'
14708
hardcode_shlibpath_var_CXX=no
14710
solaris2.[0-5] | solaris2.[0-5].*) ;;
14712
# The compiler driver will combine and reorder linker options,
14713
# but understands `-z linker_flag'.
14714
# Supported since Solaris 2.6 (maybe 2.5.1?)
14715
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14718
link_all_deplibs_CXX=yes
14720
output_verbose_link_cmd='func_echo_all'
14722
# Archives containing C++ object files must be created using
14723
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14724
# necessary to make sure instantiated templates are included
14726
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14729
# Green Hills C++ Compiler
14730
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14732
# The C++ compiler must be used to create the archive.
14733
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14736
# GNU C++ compiler with Solaris linker
14737
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14738
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14739
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14740
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14741
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14742
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14744
# Commands to make compiler produce verbose output that lists
14745
# what "hidden" libraries, object files and flags are used when
14746
# linking a shared library.
14747
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14749
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14751
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14752
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14753
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14755
# Commands to make compiler produce verbose output that lists
14756
# what "hidden" libraries, object files and flags are used when
14757
# linking a shared library.
14758
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14761
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14763
solaris2.[0-5] | solaris2.[0-5].*) ;;
14765
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14773
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14774
no_undefined_flag_CXX='${wl}-z,text'
14775
archive_cmds_need_lc_CXX=no
14776
hardcode_shlibpath_var_CXX=no
14777
runpath_var='LD_RUN_PATH'
14779
case $cc_basename in
14781
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14791
sysv5* | sco3.2v5* | sco5v6*)
14792
# Note: We can NOT use -z defs as we might desire, because we do not
14793
# link with -lc, and that would cause any symbols used from libc to
14794
# always be unresolved, which means just about no library would
14795
# ever link correctly. If we're not using GNU ld we use -z text
14796
# though, which does catch some bad symbols but isn't as heavy-handed
14798
no_undefined_flag_CXX='${wl}-z,text'
14799
allow_undefined_flag_CXX='${wl}-z,nodefs'
14800
archive_cmds_need_lc_CXX=no
14801
hardcode_shlibpath_var_CXX=no
14802
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14803
hardcode_libdir_separator_CXX=':'
14804
link_all_deplibs_CXX=yes
14805
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14806
runpath_var='LD_RUN_PATH'
14808
case $cc_basename in
14810
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14811
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14812
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14813
'"$old_archive_cmds_CXX"
14814
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14815
'"$reload_cmds_CXX"
14818
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825
case $cc_basename in
14827
# NonStop-UX NCC 3.20
14828
# FIXME: insert proper C++ library support
14832
# FIXME: insert proper C++ library support
14839
# FIXME: insert proper C++ library support
14844
# FIXME: insert proper C++ library support
14849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14850
$as_echo "$ld_shlibs_CXX" >&6; }
14851
test "$ld_shlibs_CXX" = no && can_build_shared=no
14857
## There is no encapsulation within the following macros, do not change
14858
## the running order or otherwise move them around unless you know exactly
14859
## what you are doing...
14860
# Dependencies to place before and after the object being linked:
14861
predep_objects_CXX=
14862
postdep_objects_CXX=
14865
compiler_lib_search_path_CXX=
14867
cat > conftest.$ac_ext <<_LT_EOF
14871
Foo (void) { a = 0; }
14878
_lt_libdeps_save_CFLAGS=$CFLAGS
14879
case "$CC $CFLAGS " in #(
14880
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14881
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14884
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14885
(eval $ac_compile) 2>&5
14887
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888
test $ac_status = 0; }; then
14889
# Parse the compiler output and extract the necessary
14890
# objects, libraries and library flags.
14892
# Sentinel used to keep track of whether or not we are before
14893
# the conftest object file.
14894
pre_test_object_deps_done=no
14896
for p in `eval "$output_verbose_link_cmd"`; do
14897
case ${prev}${p} in
14900
# Some compilers place space between "-{L,R}" and the path.
14901
# Remove the space.
14902
if test $p = "-L" ||
14903
test $p = "-R"; then
14908
# Expand the sysroot to ease extracting the directories later.
14909
if test -z "$prev"; then
14911
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14912
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14913
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14917
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14919
if test "$pre_test_object_deps_done" = no; then
14922
# Internal compiler library paths should come after those
14923
# provided the user. The postdeps already come after the
14924
# user supplied libs so there is no need to process them.
14925
if test -z "$compiler_lib_search_path_CXX"; then
14926
compiler_lib_search_path_CXX="${prev}${p}"
14928
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14931
# The "-l" case would never come before the object being
14932
# linked, so don't bother handling this case.
14935
if test -z "$postdeps_CXX"; then
14936
postdeps_CXX="${prev}${p}"
14938
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14944
*.lto.$objext) ;; # Ignore GCC LTO objects
14946
# This assumes that the test object file only shows up
14947
# once in the compiler output.
14948
if test "$p" = "conftest.$objext"; then
14949
pre_test_object_deps_done=yes
14953
if test "$pre_test_object_deps_done" = no; then
14954
if test -z "$predep_objects_CXX"; then
14955
predep_objects_CXX="$p"
14957
predep_objects_CXX="$predep_objects_CXX $p"
14960
if test -z "$postdep_objects_CXX"; then
14961
postdep_objects_CXX="$p"
14963
postdep_objects_CXX="$postdep_objects_CXX $p"
14968
*) ;; # Ignore the rest.
14976
echo "libtool.m4: error: problem compiling CXX test program"
14979
$RM -f confest.$objext
14980
CFLAGS=$_lt_libdeps_save_CFLAGS
14982
# PORTME: override above test on systems where it is broken
14985
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14986
# hack all around it, let's just trust "g++" to DTRT.
14987
predep_objects_CXX=
14988
postdep_objects_CXX=
14993
case `$CC -V 2>&1 | sed 5q` in
14997
# The more standards-conforming stlport4 library is
14998
# incompatible with the Cstd library. Avoid specifying
14999
# it if it's in CXXFLAGS. Ignore libCrun as
15000
# -library=stlport4 depends on it.
15001
case " $CXX $CXXFLAGS " in
15002
*" -library=stlport4 "*)
15003
solaris_use_stlport4=yes
15007
if test "$solaris_use_stlport4" != yes; then
15008
postdeps_CXX='-library=Cstd -library=Crun'
15015
case $cc_basename in
15017
# The more standards-conforming stlport4 library is
15018
# incompatible with the Cstd library. Avoid specifying
15019
# it if it's in CXXFLAGS. Ignore libCrun as
15020
# -library=stlport4 depends on it.
15021
case " $CXX $CXXFLAGS " in
15022
*" -library=stlport4 "*)
15023
solaris_use_stlport4=yes
15027
# Adding this requires a known-good setup of shared libraries for
15028
# Sun compiler versions before 5.6, else PIC objects from an old
15029
# archive will be linked into the output, leading to subtle bugs.
15030
if test "$solaris_use_stlport4" != yes; then
15031
postdeps_CXX='-library=Cstd -library=Crun'
15039
case " $postdeps_CXX " in
15040
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15042
compiler_lib_search_dirs_CXX=
15043
if test -n "${compiler_lib_search_path_CXX}"; then
15044
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15077
lt_prog_compiler_wl_CXX=
15078
lt_prog_compiler_pic_CXX=
15079
lt_prog_compiler_static_CXX=
15082
# C++ specific cases for pic, static, wl, etc.
15083
if test "$GXX" = yes; then
15084
lt_prog_compiler_wl_CXX='-Wl,'
15085
lt_prog_compiler_static_CXX='-static'
15089
# All AIX code is PIC.
15090
if test "$host_cpu" = ia64; then
15091
# AIX 5 now supports IA64 processor
15092
lt_prog_compiler_static_CXX='-Bstatic'
15099
# see comment about AmigaOS4 .so support
15100
lt_prog_compiler_pic_CXX='-fPIC'
15103
# FIXME: we need at least 68020 code to build shared libraries, but
15104
# adding the `-m68020' flag to GCC prevents building anything better,
15106
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15111
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15112
# PIC is the default for these OSes.
15114
mingw* | cygwin* | os2* | pw32* | cegcc*)
15115
# This hack is so that the source file can tell whether it is being
15116
# built for inclusion in a dll (and should export symbols for example).
15117
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15118
# (--disable-auto-import) libraries
15119
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15121
darwin* | rhapsody*)
15122
# PIC is the default on this platform
15123
# Common symbols not allowed in MH_DYLIB files
15124
lt_prog_compiler_pic_CXX='-fno-common'
15127
# DJGPP does not support shared libraries at all
15128
lt_prog_compiler_pic_CXX=
15131
# PIC is the default for Haiku.
15132
# The "-static" flag exists, but is broken.
15133
lt_prog_compiler_static_CXX=
15136
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15137
# Instead, we relocate shared libraries at runtime.
15140
if test -d /usr/nec; then
15141
lt_prog_compiler_pic_CXX=-Kconform_pic
15145
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15146
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15147
# sets the default TLS model and affects inlining.
15152
lt_prog_compiler_pic_CXX='-fPIC'
15157
# QNX uses GNU C++, but need to define -shared option too, otherwise
15158
# it will coredump.
15159
lt_prog_compiler_pic_CXX='-fPIC -shared'
15162
lt_prog_compiler_pic_CXX='-fPIC'
15168
# All AIX code is PIC.
15169
if test "$host_cpu" = ia64; then
15170
# AIX 5 now supports IA64 processor
15171
lt_prog_compiler_static_CXX='-Bstatic'
15173
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15177
case $cc_basename in
15179
# Green Hills C++ Compiler
15180
# _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"
15184
mingw* | cygwin* | os2* | pw32* | cegcc*)
15185
# This hack is so that the source file can tell whether it is being
15186
# built for inclusion in a dll (and should export symbols for example).
15187
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15190
case $cc_basename in
15192
lt_prog_compiler_pic_CXX='-KPIC'
15195
# Green Hills C++ Compiler
15196
lt_prog_compiler_pic_CXX='-pic'
15202
freebsd* | dragonfly*)
15203
# FreeBSD uses GNU C++
15205
hpux9* | hpux10* | hpux11*)
15206
case $cc_basename in
15208
lt_prog_compiler_wl_CXX='-Wl,'
15209
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15210
if test "$host_cpu" != ia64; then
15211
lt_prog_compiler_pic_CXX='+Z'
15215
lt_prog_compiler_wl_CXX='-Wl,'
15216
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15222
lt_prog_compiler_pic_CXX='+Z'
15231
# This is c89, which is MS Visual C++ (no shared libs)
15232
# Anyone wants to do a port?
15234
irix5* | irix6* | nonstopux*)
15235
case $cc_basename in
15237
lt_prog_compiler_wl_CXX='-Wl,'
15238
lt_prog_compiler_static_CXX='-non_shared'
15239
# CC pic flag -KPIC is the default.
15245
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15246
case $cc_basename in
15249
lt_prog_compiler_wl_CXX='--backend -Wl,'
15250
lt_prog_compiler_pic_CXX='-fPIC'
15253
# old Intel C++ for x86_64 which still supported -KPIC.
15254
lt_prog_compiler_wl_CXX='-Wl,'
15255
lt_prog_compiler_pic_CXX='-KPIC'
15256
lt_prog_compiler_static_CXX='-static'
15259
# Intel C++, used to be incompatible with GCC.
15260
# ICC 10 doesn't accept -KPIC any more.
15261
lt_prog_compiler_wl_CXX='-Wl,'
15262
lt_prog_compiler_pic_CXX='-fPIC'
15263
lt_prog_compiler_static_CXX='-static'
15266
# Portland Group C++ compiler
15267
lt_prog_compiler_wl_CXX='-Wl,'
15268
lt_prog_compiler_pic_CXX='-fpic'
15269
lt_prog_compiler_static_CXX='-Bstatic'
15273
# Make sure the PIC flag is empty. It appears that all Alpha
15274
# Linux and Compaq Tru64 Unix objects are PIC.
15275
lt_prog_compiler_pic_CXX=
15276
lt_prog_compiler_static_CXX='-non_shared'
15278
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15279
# IBM XL 8.0, 9.0 on PPC and BlueGene
15280
lt_prog_compiler_wl_CXX='-Wl,'
15281
lt_prog_compiler_pic_CXX='-qpic'
15282
lt_prog_compiler_static_CXX='-qstaticlink'
15285
case `$CC -V 2>&1 | sed 5q` in
15288
lt_prog_compiler_pic_CXX='-KPIC'
15289
lt_prog_compiler_static_CXX='-Bstatic'
15290
lt_prog_compiler_wl_CXX='-Qoption ld '
15301
case $cc_basename in
15303
lt_prog_compiler_pic_CXX='-W c,exportall'
15312
# QNX uses GNU C++, but need to define -shared option too, otherwise
15313
# it will coredump.
15314
lt_prog_compiler_pic_CXX='-fPIC -shared'
15316
osf3* | osf4* | osf5*)
15317
case $cc_basename in
15319
lt_prog_compiler_wl_CXX='--backend -Wl,'
15322
# Rational C++ 2.4.1
15323
lt_prog_compiler_pic_CXX='-pic'
15326
# Digital/Compaq C++
15327
lt_prog_compiler_wl_CXX='-Wl,'
15328
# Make sure the PIC flag is empty. It appears that all Alpha
15329
# Linux and Compaq Tru64 Unix objects are PIC.
15330
lt_prog_compiler_pic_CXX=
15331
lt_prog_compiler_static_CXX='-non_shared'
15340
case $cc_basename in
15342
# Sun C++ 4.2, 5.x and Centerline C++
15343
lt_prog_compiler_pic_CXX='-KPIC'
15344
lt_prog_compiler_static_CXX='-Bstatic'
15345
lt_prog_compiler_wl_CXX='-Qoption ld '
15348
# Green Hills C++ Compiler
15349
lt_prog_compiler_pic_CXX='-PIC'
15356
case $cc_basename in
15359
lt_prog_compiler_pic_CXX='-pic'
15360
lt_prog_compiler_static_CXX='-Bstatic'
15364
lt_prog_compiler_pic_CXX='-pic'
15370
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15371
case $cc_basename in
15373
lt_prog_compiler_wl_CXX='-Wl,'
15374
lt_prog_compiler_pic_CXX='-KPIC'
15375
lt_prog_compiler_static_CXX='-Bstatic'
15380
case $cc_basename in
15382
# NonStop-UX NCC 3.20
15383
lt_prog_compiler_pic_CXX='-KPIC'
15392
lt_prog_compiler_can_build_shared_CXX=no
15398
# For platforms which do not support PIC, -DPIC is meaningless:
15400
lt_prog_compiler_pic_CXX=
15403
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15408
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15409
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15410
$as_echo_n "(cached) " >&6
15412
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15415
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15416
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15419
# Check to make sure the PIC flag actually works.
15421
if test -n "$lt_prog_compiler_pic_CXX"; then
15422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15423
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15424
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15425
$as_echo_n "(cached) " >&6
15427
lt_cv_prog_compiler_pic_works_CXX=no
15428
ac_outfile=conftest.$ac_objext
15429
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15430
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15431
# Insert the option either (1) after the last *FLAGS variable, or
15432
# (2) before a word containing "conftest.", or (3) at the end.
15433
# Note that $ac_compile itself does not contain backslashes and begins
15434
# with a dollar sign (not a hyphen), so the echo should work correctly.
15435
# The option is referenced via a variable to avoid confusing sed.
15436
lt_compile=`echo "$ac_compile" | $SED \
15437
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15438
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15439
-e 's:$: $lt_compiler_flag:'`
15440
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15441
(eval "$lt_compile" 2>conftest.err)
15443
cat conftest.err >&5
15444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445
if (exit $ac_status) && test -s "$ac_outfile"; then
15446
# The compiler can only warn and ignore the option if not recognized
15447
# So say no if there are warnings other than the usual output.
15448
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15449
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15450
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15451
lt_cv_prog_compiler_pic_works_CXX=yes
15457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15458
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15460
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15461
case $lt_prog_compiler_pic_CXX in
15463
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15466
lt_prog_compiler_pic_CXX=
15467
lt_prog_compiler_can_build_shared_CXX=no
15477
# Check to make sure the static flag actually works.
15479
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15481
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15482
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15483
$as_echo_n "(cached) " >&6
15485
lt_cv_prog_compiler_static_works_CXX=no
15486
save_LDFLAGS="$LDFLAGS"
15487
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15488
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15489
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15490
# The linker can only warn and ignore the option if not recognized
15491
# So say no if there are warnings
15492
if test -s conftest.err; then
15493
# Append any errors to the config.log.
15494
cat conftest.err 1>&5
15495
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15496
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15497
if diff conftest.exp conftest.er2 >/dev/null; then
15498
lt_cv_prog_compiler_static_works_CXX=yes
15501
lt_cv_prog_compiler_static_works_CXX=yes
15505
LDFLAGS="$save_LDFLAGS"
15508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15509
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15511
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15514
lt_prog_compiler_static_CXX=
15520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15521
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15522
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15523
$as_echo_n "(cached) " >&6
15525
lt_cv_prog_compiler_c_o_CXX=no
15526
$RM -r conftest 2>/dev/null
15530
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15532
lt_compiler_flag="-o out/conftest2.$ac_objext"
15533
# Insert the option either (1) after the last *FLAGS variable, or
15534
# (2) before a word containing "conftest.", or (3) at the end.
15535
# Note that $ac_compile itself does not contain backslashes and begins
15536
# with a dollar sign (not a hyphen), so the echo should work correctly.
15537
lt_compile=`echo "$ac_compile" | $SED \
15538
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15539
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15540
-e 's:$: $lt_compiler_flag:'`
15541
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15542
(eval "$lt_compile" 2>out/conftest.err)
15544
cat out/conftest.err >&5
15545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15548
# The compiler can only warn and ignore the option if not recognized
15549
# So say no if there are warnings
15550
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15551
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15552
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15553
lt_cv_prog_compiler_c_o_CXX=yes
15558
# SGI C++ compiler will create directory out/ii_files/ for
15559
# template instantiation
15560
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15561
$RM out/* && rmdir out
15567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15568
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15573
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15574
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15575
$as_echo_n "(cached) " >&6
15577
lt_cv_prog_compiler_c_o_CXX=no
15578
$RM -r conftest 2>/dev/null
15582
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584
lt_compiler_flag="-o out/conftest2.$ac_objext"
15585
# Insert the option either (1) after the last *FLAGS variable, or
15586
# (2) before a word containing "conftest.", or (3) at the end.
15587
# Note that $ac_compile itself does not contain backslashes and begins
15588
# with a dollar sign (not a hyphen), so the echo should work correctly.
15589
lt_compile=`echo "$ac_compile" | $SED \
15590
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15591
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15592
-e 's:$: $lt_compiler_flag:'`
15593
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15594
(eval "$lt_compile" 2>out/conftest.err)
15596
cat out/conftest.err >&5
15597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15600
# The compiler can only warn and ignore the option if not recognized
15601
# So say no if there are warnings
15602
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15603
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15604
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15605
lt_cv_prog_compiler_c_o_CXX=yes
15610
# SGI C++ compiler will create directory out/ii_files/ for
15611
# template instantiation
15612
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15613
$RM out/* && rmdir out
15619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15620
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15625
hard_links="nottested"
15626
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15627
# do not overwrite the value of need_locks provided by the user
15628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15629
$as_echo_n "checking if we can lock with hard links... " >&6; }
15632
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15634
ln conftest.a conftest.b 2>&5 || hard_links=no
15635
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15637
$as_echo "$hard_links" >&6; }
15638
if test "$hard_links" = no; then
15639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15640
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15650
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15652
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15653
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15656
# If we're using GNU nm, then we don't want the "-C" option.
15657
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15658
# Also, AIX nm treats weak defined symbols like other global defined
15659
# symbols, whereas GNU nm marks them as "W".
15660
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15661
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'
15663
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'
15667
export_symbols_cmds_CXX="$ltdll_cmds"
15669
cygwin* | mingw* | cegcc*)
15670
case $cc_basename in
15673
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'
15674
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15679
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15684
$as_echo "$ld_shlibs_CXX" >&6; }
15685
test "$ld_shlibs_CXX" = no && can_build_shared=no
15687
with_gnu_ld_CXX=$with_gnu_ld
15695
# Do we need to explicitly link libc?
15697
case "x$archive_cmds_need_lc_CXX" in
15699
# Assume -lc should be added
15700
archive_cmds_need_lc_CXX=yes
15702
if test "$enable_shared" = yes && test "$GCC" = yes; then
15703
case $archive_cmds_CXX in
15705
# FIXME: we may have to deal with multi-command sequences.
15708
# Test whether the compiler implicitly links with -lc since on some
15709
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15710
# to ld, don't add -lc before -lgcc.
15711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15712
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15713
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15714
$as_echo_n "(cached) " >&6
15717
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15720
(eval $ac_compile) 2>&5
15722
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15723
test $ac_status = 0; } 2>conftest.err; then
15726
libobjs=conftest.$ac_objext
15728
wl=$lt_prog_compiler_wl_CXX
15729
pic_flag=$lt_prog_compiler_pic_CXX
15735
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15736
allow_undefined_flag_CXX=
15737
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15738
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15740
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15741
test $ac_status = 0; }
15743
lt_cv_archive_cmds_need_lc_CXX=no
15745
lt_cv_archive_cmds_need_lc_CXX=yes
15747
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15749
cat conftest.err 1>&5
15754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15755
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15756
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15827
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15829
library_names_spec=
15830
libname_spec='lib$name'
15834
postuninstall_cmds=
15838
shlibpath_overrides_runpath=unknown
15840
dynamic_linker="$host_os ld.so"
15841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15842
need_lib_prefix=unknown
15843
hardcode_into_libs=no
15845
# when you set need_version to no, make sure it does not cause -set_version
15846
# flags to be left without arguments
15847
need_version=unknown
15852
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15853
shlibpath_var=LIBPATH
15855
# AIX 3 has no versioning support, so we append a major version to the name.
15856
soname_spec='${libname}${release}${shared_ext}$major'
15863
hardcode_into_libs=yes
15864
if test "$host_cpu" = ia64; then
15865
# AIX 5 supports IA64
15866
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15867
shlibpath_var=LD_LIBRARY_PATH
15869
# With GCC up to 2.95.x, collect2 would create an import file
15870
# for dependence libraries. The import file would start with
15871
# the line `#! .'. This would cause the generated library to
15872
# depend on `.', always an invalid library. This was fixed in
15873
# development snapshots of GCC prior to 3.0.
15875
aix4 | aix4.[01] | aix4.[01].*)
15876
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15878
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15881
can_build_shared=no
15885
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15886
# soname into executable. Probably we can add versioning support to
15887
# collect2, so additional links can be useful in future.
15888
if test "$aix_use_runtimelinking" = yes; then
15889
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15890
# instead of lib<name>.a to let people know that these are not
15891
# typical AIX shared libraries.
15892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894
# We preserve .a as extension for shared libraries through AIX4.2
15895
# and later when we are not doing run time linking.
15896
library_names_spec='${libname}${release}.a $libname.a'
15897
soname_spec='${libname}${release}${shared_ext}$major'
15899
shlibpath_var=LIBPATH
15906
# Since July 2007 AmigaOS4 officially supports .so libraries.
15907
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911
library_names_spec='$libname.ixlibrary $libname.a'
15912
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15913
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'
15919
library_names_spec='${libname}${shared_ext}'
15920
dynamic_linker="$host_os ld.so"
15921
shlibpath_var=LIBRARY_PATH
15927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928
soname_spec='${libname}${release}${shared_ext}$major'
15929
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930
shlibpath_var=LD_LIBRARY_PATH
15931
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933
# the default ld.so.conf also contains /usr/contrib/lib and
15934
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935
# libtool to hard-code these into programs
15938
cygwin* | mingw* | pw32* | cegcc*)
15939
version_type=windows
15944
case $GCC,$cc_basename in
15947
library_names_spec='$libname.dll.a'
15948
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15949
postinstall_cmds='base_file=`basename \${file}`~
15950
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15951
dldir=$destdir/`dirname \$dlpath`~
15952
test -d \$dldir || mkdir -p \$dldir~
15953
$install_prog $dir/$dlname \$dldir/$dlname~
15954
chmod a+x \$dldir/$dlname~
15955
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15956
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15958
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15959
dlpath=$dir/\$dldll~
15961
shlibpath_overrides_runpath=yes
15965
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15966
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15970
# MinGW DLLs use traditional 'lib' prefix
15971
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974
# pw32 DLLs use 'pw' prefix rather than 'lib'
15975
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15978
dynamic_linker='Win32 ld.exe'
15983
libname_spec='$name'
15984
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15985
library_names_spec='${libname}.dll.lib'
15989
sys_lib_search_path_spec=
15992
for lt_path in $LIB
15995
# Let DOS variable expansion print the short 8.3 style file name.
15996
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15997
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16000
# Convert to MSYS style.
16001
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16004
# Convert to unix form, then to dos form, then back to unix form
16005
# but this time dos style (no spaces!) so that the unix form looks
16006
# like /cygdrive/c/PROGRA~1:/cygdr...
16007
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16008
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16009
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16012
sys_lib_search_path_spec="$LIB"
16013
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16014
# It is most probably a Windows format PATH.
16015
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16017
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16019
# FIXME: find the short name or the path components, as spaces are
16020
# common. (e.g. "Program Files" -> "PROGRA~1")
16024
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16025
postinstall_cmds='base_file=`basename \${file}`~
16026
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16027
dldir=$destdir/`dirname \$dlpath`~
16028
test -d \$dldir || mkdir -p \$dldir~
16029
$install_prog $dir/$dlname \$dldir/$dlname'
16030
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16031
dlpath=$dir/\$dldll~
16033
shlibpath_overrides_runpath=yes
16034
dynamic_linker='Win32 link.exe'
16038
# Assume MSVC wrapper
16039
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16040
dynamic_linker='Win32 ld.exe'
16043
# FIXME: first we should search . and the directory the executable is in
16047
darwin* | rhapsody*)
16048
dynamic_linker="$host_os dyld"
16049
version_type=darwin
16052
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16053
soname_spec='${libname}${release}${major}$shared_ext'
16054
shlibpath_overrides_runpath=yes
16055
shlibpath_var=DYLD_LIBRARY_PATH
16056
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16058
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16066
soname_spec='${libname}${release}${shared_ext}$major'
16067
shlibpath_var=LD_LIBRARY_PATH
16074
freebsd* | dragonfly*)
16075
# DragonFly does not have aout. When/if they implement a new
16076
# versioning mechanism, adjust this.
16077
if test -x /usr/bin/objformat; then
16078
objformat=`/usr/bin/objformat`
16081
freebsd[123]*) objformat=aout ;;
16082
*) objformat=elf ;;
16085
version_type=freebsd-$objformat
16086
case $version_type in
16088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16093
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16097
shlibpath_var=LD_LIBRARY_PATH
16100
shlibpath_overrides_runpath=yes
16102
freebsd3.[01]* | freebsdelf3.[01]*)
16103
shlibpath_overrides_runpath=yes
16104
hardcode_into_libs=yes
16106
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16107
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16108
shlibpath_overrides_runpath=no
16109
hardcode_into_libs=yes
16111
*) # from 4.6 on, and DragonFly
16112
shlibpath_overrides_runpath=yes
16113
hardcode_into_libs=yes
16122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16123
soname_spec='${libname}${release}${shared_ext}$major'
16124
shlibpath_var=LD_LIBRARY_PATH
16125
hardcode_into_libs=yes
16132
dynamic_linker="$host_os runtime_loader"
16133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16134
soname_spec='${libname}${release}${shared_ext}$major'
16135
shlibpath_var=LIBRARY_PATH
16136
shlibpath_overrides_runpath=yes
16137
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16138
hardcode_into_libs=yes
16141
hpux9* | hpux10* | hpux11*)
16142
# Give a soname corresponding to the major version so that dld.sl refuses to
16143
# link against other versions.
16150
hardcode_into_libs=yes
16151
dynamic_linker="$host_os dld.so"
16152
shlibpath_var=LD_LIBRARY_PATH
16153
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155
soname_spec='${libname}${release}${shared_ext}$major'
16156
if test "X$HPUX_IA64_MODE" = X32; then
16157
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16159
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16161
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16165
hardcode_into_libs=yes
16166
dynamic_linker="$host_os dld.sl"
16167
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16168
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170
soname_spec='${libname}${release}${shared_ext}$major'
16171
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16172
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16176
dynamic_linker="$host_os dld.sl"
16177
shlibpath_var=SHLIB_PATH
16178
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180
soname_spec='${libname}${release}${shared_ext}$major'
16183
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16184
postinstall_cmds='chmod 555 $lib'
16185
# or fails outright, so override atomically:
16186
install_override_mode=555
16193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194
soname_spec='${libname}${release}${shared_ext}$major'
16195
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16196
shlibpath_var=LD_LIBRARY_PATH
16197
shlibpath_overrides_runpath=no
16198
hardcode_into_libs=yes
16201
irix5* | irix6* | nonstopux*)
16203
nonstopux*) version_type=nonstopux ;;
16205
if test "$lt_cv_prog_gnu_ld" = yes; then
16213
soname_spec='${libname}${release}${shared_ext}$major'
16214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16216
irix5* | nonstopux*)
16217
libsuff= shlibsuff=
16220
case $LD in # libtool.m4 will add one of these switches to LD
16221
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16222
libsuff= shlibsuff= libmagic=32-bit;;
16223
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16224
libsuff=32 shlibsuff=N32 libmagic=N32;;
16225
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16226
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16227
*) libsuff= shlibsuff= libmagic=never-match;;
16231
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16232
shlibpath_overrides_runpath=no
16233
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16234
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16235
hardcode_into_libs=yes
16238
# No shared lib support for Linux oldld, aout, or coff.
16239
linux*oldld* | linux*aout* | linux*coff*)
16243
# This must be Linux ELF.
16244
linux* | k*bsd*-gnu | kopensolaris*-gnu)
16248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249
soname_spec='${libname}${release}${shared_ext}$major'
16250
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16251
shlibpath_var=LD_LIBRARY_PATH
16252
shlibpath_overrides_runpath=no
16254
# Some binutils ld are patched to set DT_RUNPATH
16255
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16256
$as_echo_n "(cached) " >&6
16258
lt_cv_shlibpath_overrides_runpath=no
16259
save_LDFLAGS=$LDFLAGS
16260
save_libdir=$libdir
16261
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16262
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16263
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264
/* end confdefs.h. */
16274
if ac_fn_cxx_try_link "$LINENO"; then :
16275
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16276
lt_cv_shlibpath_overrides_runpath=yes
16279
rm -f core conftest.err conftest.$ac_objext \
16280
conftest$ac_exeext conftest.$ac_ext
16281
LDFLAGS=$save_LDFLAGS
16282
libdir=$save_libdir
16286
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16288
# This implies no fast_install, which is unacceptable.
16289
# Some rework will be needed to allow for fast_install
16290
# before this can be enabled.
16291
hardcode_into_libs=yes
16293
# Append ld.so.conf contents to the search path
16294
if test -f /etc/ld.so.conf; then
16295
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' ' '`
16296
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16299
# We used to test for /lib/ld.so.1 and disable shared libraries on
16300
# powerpc, because MkLinux only supported shared libraries with the
16301
# GNU dynamic linker. Since this was broken with cross compilers,
16302
# most powerpc-linux boxes support dynamic linking these days and
16303
# people can always --disable-shared, the test was removed, and we
16304
# assume the GNU/Linux dynamic linker is in use.
16305
dynamic_linker='GNU/Linux ld.so'
16312
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16314
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16315
dynamic_linker='NetBSD (a.out) ld.so'
16317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16318
soname_spec='${libname}${release}${shared_ext}$major'
16319
dynamic_linker='NetBSD ld.elf_so'
16321
shlibpath_var=LD_LIBRARY_PATH
16322
shlibpath_overrides_runpath=yes
16323
hardcode_into_libs=yes
16328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329
shlibpath_var=LD_LIBRARY_PATH
16330
shlibpath_overrides_runpath=yes
16337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338
soname_spec='${libname}${release}${shared_ext}$major'
16339
shlibpath_var=LD_LIBRARY_PATH
16340
shlibpath_overrides_runpath=no
16341
hardcode_into_libs=yes
16342
dynamic_linker='ldqnx.so'
16347
sys_lib_dlsearch_path_spec="/usr/lib"
16349
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16351
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16352
*) need_version=no ;;
16354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356
shlibpath_var=LD_LIBRARY_PATH
16357
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16359
openbsd2.[89] | openbsd2.[89].*)
16360
shlibpath_overrides_runpath=no
16363
shlibpath_overrides_runpath=yes
16367
shlibpath_overrides_runpath=yes
16372
libname_spec='$name'
16375
library_names_spec='$libname${shared_ext} $libname.a'
16376
dynamic_linker='OS/2 ld.exe'
16377
shlibpath_var=LIBPATH
16380
osf3* | osf4* | osf5*)
16384
soname_spec='${libname}${release}${shared_ext}$major'
16385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386
shlibpath_var=LD_LIBRARY_PATH
16387
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400
soname_spec='${libname}${release}${shared_ext}$major'
16401
shlibpath_var=LD_LIBRARY_PATH
16402
shlibpath_overrides_runpath=yes
16403
hardcode_into_libs=yes
16404
# ldd complains unless libraries are executable
16405
postinstall_cmds='chmod +x $lib'
16410
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412
shlibpath_var=LD_LIBRARY_PATH
16413
shlibpath_overrides_runpath=yes
16414
if test "$with_gnu_ld" = yes; then
16422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423
soname_spec='${libname}${release}${shared_ext}$major'
16424
shlibpath_var=LD_LIBRARY_PATH
16425
case $host_vendor in
16427
shlibpath_overrides_runpath=no
16429
runpath_var=LD_RUN_PATH
16437
shlibpath_overrides_runpath=no
16438
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16444
if test -d /usr/nec ;then
16446
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447
soname_spec='$libname${shared_ext}.$major'
16448
shlibpath_var=LD_LIBRARY_PATH
16452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16453
version_type=freebsd-elf
16456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16457
soname_spec='${libname}${release}${shared_ext}$major'
16458
shlibpath_var=LD_LIBRARY_PATH
16459
shlibpath_overrides_runpath=yes
16460
hardcode_into_libs=yes
16461
if test "$with_gnu_ld" = yes; then
16462
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16464
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16467
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16471
sys_lib_dlsearch_path_spec='/usr/lib'
16475
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480
shlibpath_var=LD_LIBRARY_PATH
16481
shlibpath_overrides_runpath=no
16482
hardcode_into_libs=yes
16487
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16488
soname_spec='${libname}${release}${shared_ext}$major'
16489
shlibpath_var=LD_LIBRARY_PATH
16496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16497
$as_echo "$dynamic_linker" >&6; }
16498
test "$dynamic_linker" = no && can_build_shared=no
16500
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16501
if test "$GCC" = yes; then
16502
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16505
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16506
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16508
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16509
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16550
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16551
hardcode_action_CXX=
16552
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16553
test -n "$runpath_var_CXX" ||
16554
test "X$hardcode_automatic_CXX" = "Xyes" ; then
16556
# We can hardcode non-existent directories.
16557
if test "$hardcode_direct_CXX" != no &&
16558
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16559
# have to relink, otherwise we might link with an installed library
16560
# when we should be linking with a yet-to-be-installed one
16561
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16562
test "$hardcode_minus_L_CXX" != no; then
16563
# Linking always hardcodes the temporary library directory.
16564
hardcode_action_CXX=relink
16566
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16567
hardcode_action_CXX=immediate
16570
# We cannot hardcode anything, or else we can only hardcode existing
16572
hardcode_action_CXX=unsupported
16574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16575
$as_echo "$hardcode_action_CXX" >&6; }
16577
if test "$hardcode_action_CXX" = relink ||
16578
test "$inherit_rpath_CXX" = yes; then
16579
# Fast installation is not supported
16580
enable_fast_install=no
16581
elif test "$shlibpath_overrides_runpath" = yes ||
16582
test "$enable_shared" = no; then
16583
# Fast installation is not necessary
16584
enable_fast_install=needless
16593
fi # test -n "$compiler"
16596
CFLAGS=$lt_save_CFLAGS
16600
with_gnu_ld=$lt_save_with_gnu_ld
16601
lt_cv_path_LDCXX=$lt_cv_path_LD
16602
lt_cv_path_LD=$lt_save_path_LD
16603
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16604
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16605
fi # test "$_lt_caught_CXX_error" != yes
16608
ac_cpp='$CPP $CPPFLAGS'
16609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16615
$as_echo_n "checking for library containing strerror... " >&6; }
16616
if ${ac_cv_search_strerror+:} false; then :
16617
$as_echo_n "(cached) " >&6
16619
ac_func_search_save_LIBS=$LIBS
16620
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621
/* end confdefs.h. */
16623
/* Override any GCC internal prototype to avoid an error.
16624
Use char because int might match the return type of a GCC
16625
builtin and then its argument prototype would still apply. */
16633
return strerror ();
16638
for ac_lib in '' cposix; do
16639
if test -z "$ac_lib"; then
16640
ac_res="none required"
16643
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16645
if ac_fn_c_try_link "$LINENO"; then :
16646
ac_cv_search_strerror=$ac_res
16648
rm -f core conftest.err conftest.$ac_objext \
16650
if ${ac_cv_search_strerror+:} false; then :
16654
if ${ac_cv_search_strerror+:} false; then :
16657
ac_cv_search_strerror=no
16659
rm conftest.$ac_ext
16660
LIBS=$ac_func_search_save_LIBS
16662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16663
$as_echo "$ac_cv_search_strerror" >&6; }
16664
ac_res=$ac_cv_search_strerror
16665
if test "$ac_res" != no; then :
16666
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16670
case $ac_cv_prog_cc_stdc in #(
16672
ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16675
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16676
if ${ac_cv_prog_cc_c99+:} false; then :
16677
$as_echo_n "(cached) " >&6
16679
ac_cv_prog_cc_c99=no
16681
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682
/* end confdefs.h. */
16683
#include <stdarg.h>
16684
#include <stdbool.h>
16685
#include <stdlib.h>
16689
// Check varargs macros. These examples are taken from C99 6.10.3.5.
16690
#define debug(...) fprintf (stderr, __VA_ARGS__)
16691
#define showlist(...) puts (#__VA_ARGS__)
16692
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16694
test_varargs_macros (void)
16699
debug ("X = %d\n", x);
16700
showlist (The first, second, and third items.);
16701
report (x>y, "x is %d but y is %d", x, y);
16704
// Check long long types.
16705
#define BIG64 18446744073709551615ull
16706
#define BIG32 4294967295ul
16707
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16709
your preprocessor is broken;
16713
your preprocessor is broken;
16715
static long long int bignum = -9223372036854775807LL;
16716
static unsigned long long int ubignum = BIG64;
16718
struct incomplete_array
16724
struct named_init {
16726
const wchar_t *name;
16730
typedef const char *ccp;
16733
test_restrict (ccp restrict text)
16735
// See if C++-style comments work.
16736
// Iterate through items via the restricted pointer.
16737
// Also check for declarations in for loops.
16738
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16743
// Check varargs and va_copy.
16745
test_varargs (const char *format, ...)
16748
va_start (args, format);
16750
va_copy (args_copy, args);
16760
case 's': // string
16761
str = va_arg (args_copy, const char *);
16764
number = va_arg (args_copy, int);
16767
fnumber = va_arg (args_copy, double);
16773
va_end (args_copy);
16782
_Bool success = false;
16785
if (test_restrict ("String literal") == 0)
16787
char *restrict newvar = "Another string";
16790
test_varargs ("s, d' f .", "string", 65, 34.234);
16791
test_varargs_macros ();
16793
// Check flexible array members.
16794
struct incomplete_array *ia =
16795
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16797
for (int i = 0; i < ia->datasize; ++i)
16798
ia->data[i] = i * 1.234;
16800
// Check named initializers.
16801
struct named_init ni = {
16803
.name = L"Test wide string",
16804
.average = 543.34343,
16809
int dynamic_array[ni.number];
16810
dynamic_array[ni.number - 1] = 543;
16812
// work around unused variable warnings
16813
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16814
|| dynamic_array[ni.number - 1] != 543);
16820
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16822
CC="$ac_save_CC $ac_arg"
16823
if ac_fn_c_try_compile "$LINENO"; then :
16824
ac_cv_prog_cc_c99=$ac_arg
16826
rm -f core conftest.err conftest.$ac_objext
16827
test "x$ac_cv_prog_cc_c99" != "xno" && break
16829
rm -f conftest.$ac_ext
16834
case "x$ac_cv_prog_cc_c99" in
16836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16837
$as_echo "none needed" >&6; } ;;
16839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16840
$as_echo "unsupported" >&6; } ;;
16842
CC="$CC $ac_cv_prog_cc_c99"
16843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16844
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16846
if test "x$ac_cv_prog_cc_c99" != xno; then :
16847
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16850
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16851
if ${ac_cv_prog_cc_c89+:} false; then :
16852
$as_echo_n "(cached) " >&6
16854
ac_cv_prog_cc_c89=no
16856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857
/* end confdefs.h. */
16858
#include <stdarg.h>
16861
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16862
struct buf { int x; };
16863
FILE * (*rcsopen) (struct buf *, struct stat *, int);
16864
static char *e (p, i)
16870
static char *f (char * (*g) (char **, int), char **p, ...)
16875
s = g (p, va_arg (v,int));
16880
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16881
function prototypes and stuff, but not '\xHH' hex character constants.
16882
These don't provoke an error unfortunately, instead are silently treated
16883
as 'x'. The following induces an error, until -std is added to get
16884
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16885
array size at least. It's necessary to write '\x00'==0 to get something
16886
that's true only with -std. */
16887
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16889
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16890
inside strings and character constants. */
16892
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16894
int test (int i, double x);
16895
struct s1 {int (*f) (int a);};
16896
struct s2 {int (*f) (double a);};
16897
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16903
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16908
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16909
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16911
CC="$ac_save_CC $ac_arg"
16912
if ac_fn_c_try_compile "$LINENO"; then :
16913
ac_cv_prog_cc_c89=$ac_arg
16915
rm -f core conftest.err conftest.$ac_objext
16916
test "x$ac_cv_prog_cc_c89" != "xno" && break
16918
rm -f conftest.$ac_ext
16923
case "x$ac_cv_prog_cc_c89" in
16925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16926
$as_echo "none needed" >&6; } ;;
16928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16929
$as_echo "unsupported" >&6; } ;;
16931
CC="$CC $ac_cv_prog_cc_c89"
16932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16933
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16935
if test "x$ac_cv_prog_cc_c89" != xno; then :
16936
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16938
ac_cv_prog_cc_stdc=no
16944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16945
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16946
if ${ac_cv_prog_cc_stdc+:} false; then :
16947
$as_echo_n "(cached) " >&6
16950
case $ac_cv_prog_cc_stdc in #(
16952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16953
$as_echo "unsupported" >&6; } ;; #(
16955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16956
$as_echo "none needed" >&6; } ;; #(
16958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16959
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16962
#if test -z "$CXX" -a "$CC" = "gcc"; then
16966
ac_cpp='$CXXCPP $CPPFLAGS'
16967
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16968
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16969
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16970
if test -z "$CXX"; then
16971
if test -n "$CCC"; then
16974
if test -n "$ac_tool_prefix"; then
16975
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16977
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16978
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16980
$as_echo_n "checking for $ac_word... " >&6; }
16981
if ${ac_cv_prog_CXX+:} false; then :
16982
$as_echo_n "(cached) " >&6
16984
if test -n "$CXX"; then
16985
ac_cv_prog_CXX="$CXX" # Let the user override the test.
16987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16988
for as_dir in $PATH
16991
test -z "$as_dir" && as_dir=.
16992
for ac_exec_ext in '' $ac_executable_extensions; do
16993
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16994
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17004
CXX=$ac_cv_prog_CXX
17005
if test -n "$CXX"; then
17006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17007
$as_echo "$CXX" >&6; }
17009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010
$as_echo "no" >&6; }
17014
test -n "$CXX" && break
17017
if test -z "$CXX"; then
17019
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17021
# Extract the first word of "$ac_prog", so it can be a program name with args.
17022
set dummy $ac_prog; ac_word=$2
17023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17024
$as_echo_n "checking for $ac_word... " >&6; }
17025
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17026
$as_echo_n "(cached) " >&6
17028
if test -n "$ac_ct_CXX"; then
17029
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17032
for as_dir in $PATH
17035
test -z "$as_dir" && as_dir=.
17036
for ac_exec_ext in '' $ac_executable_extensions; do
17037
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17038
ac_cv_prog_ac_ct_CXX="$ac_prog"
17039
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17048
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17049
if test -n "$ac_ct_CXX"; then
17050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17051
$as_echo "$ac_ct_CXX" >&6; }
17053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054
$as_echo "no" >&6; }
17058
test -n "$ac_ct_CXX" && break
17061
if test "x$ac_ct_CXX" = x; then
17064
case $cross_compiling:$ac_tool_warned in
17066
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17067
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17068
ac_tool_warned=yes ;;
17076
# Provide some information about the compiler.
17077
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17080
for ac_option in --version -v -V -qversion; do
17081
{ { ac_try="$ac_compiler $ac_option >&5"
17082
case "(($ac_try" in
17083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084
*) ac_try_echo=$ac_try;;
17086
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17087
$as_echo "$ac_try_echo"; } >&5
17088
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
17090
if test -s conftest.err; then
17092
... rest of stderr output deleted ...
17093
10q' conftest.err >conftest.er1
17094
cat conftest.er1 >&5
17096
rm -f conftest.er1 conftest.err
17097
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17098
test $ac_status = 0; }
17101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17102
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17103
if ${ac_cv_cxx_compiler_gnu+:} false; then :
17104
$as_echo_n "(cached) " >&6
17106
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107
/* end confdefs.h. */
17120
if ac_fn_cxx_try_compile "$LINENO"; then :
17121
ac_compiler_gnu=yes
17125
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17130
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17131
if test $ac_compiler_gnu = yes; then
17136
ac_test_CXXFLAGS=${CXXFLAGS+set}
17137
ac_save_CXXFLAGS=$CXXFLAGS
17138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17139
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
17140
if ${ac_cv_prog_cxx_g+:} false; then :
17141
$as_echo_n "(cached) " >&6
17143
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17144
ac_cxx_werror_flag=yes
17145
ac_cv_prog_cxx_g=no
17147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148
/* end confdefs.h. */
17158
if ac_fn_cxx_try_compile "$LINENO"; then :
17159
ac_cv_prog_cxx_g=yes
17162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163
/* end confdefs.h. */
17173
if ac_fn_cxx_try_compile "$LINENO"; then :
17176
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17178
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179
/* end confdefs.h. */
17189
if ac_fn_cxx_try_compile "$LINENO"; then :
17190
ac_cv_prog_cxx_g=yes
17192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17200
$as_echo "$ac_cv_prog_cxx_g" >&6; }
17201
if test "$ac_test_CXXFLAGS" = set; then
17202
CXXFLAGS=$ac_save_CXXFLAGS
17203
elif test $ac_cv_prog_cxx_g = yes; then
17204
if test "$GXX" = yes; then
17210
if test "$GXX" = yes; then
17217
ac_cpp='$CPP $CPPFLAGS'
17218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222
depcc="$CXX" am_compiler_list=
17224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17225
$as_echo_n "checking dependency style of $depcc... " >&6; }
17226
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17227
$as_echo_n "(cached) " >&6
17229
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17230
# We make a subdir and do the tests there. Otherwise we can end up
17231
# making bogus files that we don't know about and never remove. For
17232
# instance it was reported that on HP-UX the gcc test will end up
17233
# making a dummy file named `D' -- because `-MD' means `put the output
17236
# Copy depcomp to subdir because otherwise we won't find it if we're
17237
# using a relative directory.
17238
cp "$am_depcomp" conftest.dir
17240
# We will build objects and dependencies in a subdirectory because
17241
# it helps to detect inapplicable dependency modes. For instance
17242
# both Tru64's cc and ICC support -MD to output dependencies as a
17243
# side effect of compilation, but ICC will put the dependencies in
17244
# the current directory while Tru64 will put them in the object
17248
am_cv_CXX_dependencies_compiler_type=none
17249
if test "$am_compiler_list" = ""; then
17250
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17252
am__universal=false
17253
case " $depcc " in #(
17254
*\ -arch\ *\ -arch\ *) am__universal=true ;;
17257
for depmode in $am_compiler_list; do
17258
# Setup a source with many dependencies, because some compilers
17259
# like to wrap large dependency lists on column 80 (with \), and
17260
# we should not choose a depcomp mode which is confused by this.
17262
# We need to recreate these files for each test, as the compiler may
17263
# overwrite some of them when testing with obscure command lines.
17264
# This happens at least with the AIX C compiler.
17266
for i in 1 2 3 4 5 6; do
17267
echo '#include "conftst'$i'.h"' >> sub/conftest.c
17268
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17269
# Solaris 8's {/usr,}/bin/sh.
17270
touch sub/conftst$i.h
17272
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17274
# We check with `-c' and `-o' for the sake of the "dashmstdout"
17275
# mode. It turns out that the SunPro C++ compiler does not properly
17276
# handle `-M -o', and we need to detect this. Also, some Intel
17277
# versions had trouble with output in subdirs
17278
am__obj=sub/conftest.${OBJEXT-o}
17279
am__minus_obj="-o $am__obj"
17282
# This depmode causes a compiler race in universal mode.
17283
test "$am__universal" = false || continue
17286
# after this tag, mechanisms are not by side-effect, so they'll
17287
# only be used when explicitly requested
17288
if test "x$enable_dependency_tracking" = xyes; then
17294
msvisualcpp | msvcmsys)
17295
# This compiler won't grok `-c -o', but also, the minuso test has
17296
# not run yet. These depmodes are late enough in the game, and
17297
# so weak that their functioning should not be impacted.
17298
am__obj=conftest.${OBJEXT-o}
17303
if depmode=$depmode \
17304
source=sub/conftest.c object=$am__obj \
17305
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17306
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17307
>/dev/null 2>conftest.err &&
17308
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17309
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17310
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17311
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17312
# icc doesn't choke on unknown options, it will just issue warnings
17313
# or remarks (even with -Werror). So we grep stderr for any message
17314
# that says an option was ignored or not supported.
17315
# When given -MP, icc 7.0 and 7.1 complain thusly:
17316
# icc: Command line warning: ignoring option '-M'; no argument required
17317
# The diagnosis changed in icc 8.0:
17318
# icc: Command line remark: option '-MP' not supported
17319
if (grep 'ignoring option' conftest.err ||
17320
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17321
am_cv_CXX_dependencies_compiler_type=$depmode
17328
rm -rf conftest.dir
17330
am_cv_CXX_dependencies_compiler_type=none
17334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17335
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17336
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17339
test "x$enable_dependency_tracking" != xno \
17340
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17341
am__fastdepCXX_TRUE=
17342
am__fastdepCXX_FALSE='#'
17344
am__fastdepCXX_TRUE='#'
17345
am__fastdepCXX_FALSE=
17349
if test "x$GXX" = "xyes"; then
17354
CXXFLAGS="$CXXFLAGS -ansi"
17366
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17367
if test -n "$ac_tool_prefix"; then
17368
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17369
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17371
$as_echo_n "checking for $ac_word... " >&6; }
17372
if ${ac_cv_path_PKG_CONFIG+:} false; then :
17373
$as_echo_n "(cached) " >&6
17375
case $PKG_CONFIG in
17377
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17381
for as_dir in $PATH
17384
test -z "$as_dir" && as_dir=.
17385
for ac_exec_ext in '' $ac_executable_extensions; do
17386
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17387
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17388
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17398
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17399
if test -n "$PKG_CONFIG"; then
17400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17401
$as_echo "$PKG_CONFIG" >&6; }
17403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17404
$as_echo "no" >&6; }
17409
if test -z "$ac_cv_path_PKG_CONFIG"; then
17410
ac_pt_PKG_CONFIG=$PKG_CONFIG
17411
# Extract the first word of "pkg-config", so it can be a program name with args.
17412
set dummy pkg-config; ac_word=$2
17413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414
$as_echo_n "checking for $ac_word... " >&6; }
17415
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17416
$as_echo_n "(cached) " >&6
17418
case $ac_pt_PKG_CONFIG in
17420
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17424
for as_dir in $PATH
17427
test -z "$as_dir" && as_dir=.
17428
for ac_exec_ext in '' $ac_executable_extensions; do
17429
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17430
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17431
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17441
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17442
if test -n "$ac_pt_PKG_CONFIG"; then
17443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17444
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447
$as_echo "no" >&6; }
17450
if test "x$ac_pt_PKG_CONFIG" = x; then
17453
case $cross_compiling:$ac_tool_warned in
17455
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17456
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17457
ac_tool_warned=yes ;;
17459
PKG_CONFIG=$ac_pt_PKG_CONFIG
17462
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17466
if test -n "$PKG_CONFIG"; then
17467
_pkg_min_version=0.9.0
17468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17469
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17470
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17472
$as_echo "yes" >&6; }
17474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475
$as_echo "no" >&6; }
17481
$as_echo "#define OPI_SUPPORT 1" >>confdefs.h
17484
$as_echo "#define MULTITHREADED 1" >>confdefs.h
17487
$as_echo "#define TEXTOUT_WORD_LIST 1" >>confdefs.h
17491
create_shared_lib=""
17492
auto_import_flags=""
17495
create_shared_lib="-no-undefined"
17499
win32_libs="-lgdi32"
17500
create_shared_lib="-no-undefined"
17501
auto_import_flags="-Wl,--enable-auto-import"
17513
ac_cpp='$CPP $CPPFLAGS'
17514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17520
# We used to check for pthread.h first, but this fails if pthread.h
17521
# requires special compiler flags (e.g. on True64 or Sequent).
17522
# It gets checked for in the link test anyway.
17524
# First of all, check if the user has set any of the PTHREAD_LIBS,
17525
# etcetera environment variables, and if threads linking works using
17527
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17528
save_CFLAGS="$CFLAGS"
17529
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17531
LIBS="$PTHREAD_LIBS $LIBS"
17532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17533
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535
/* end confdefs.h. */
17537
/* Override any GCC internal prototype to avoid an error.
17538
Use char because int might match the return type of a GCC
17539
builtin and then its argument prototype would still apply. */
17543
char pthread_join ();
17547
return pthread_join ();
17552
if ac_fn_c_try_link "$LINENO"; then :
17555
rm -f core conftest.err conftest.$ac_objext \
17556
conftest$ac_exeext conftest.$ac_ext
17557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17558
$as_echo "$acx_pthread_ok" >&6; }
17559
if test x"$acx_pthread_ok" = xno; then
17564
CFLAGS="$save_CFLAGS"
17567
# We must check for the threads library under a number of different
17568
# names; the ordering is very important because some systems
17569
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17570
# libraries is broken (non-POSIX).
17572
# Create a list of thread flags to try. Items starting with a "-" are
17573
# C compiler flags, and other items are library names, except for "none"
17574
# which indicates that we try without any flags at all, and "pthread-config"
17575
# which is a program returning the flags for the Pth emulation library.
17577
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17579
# The ordering *is* (sometimes) important. Some notes on the
17580
# individual items follow:
17582
# pthreads: AIX (must check this before -lpthread)
17583
# none: in case threads are in libc; should be tried before -Kthread and
17584
# other compiler flags to prevent continual compiler warnings
17585
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17586
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17587
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17588
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17589
# -pthreads: Solaris/gcc
17590
# -mthreads: Mingw32/gcc, Lynx/gcc
17591
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17592
# doesn't hurt to check since this sometimes defines pthreads too;
17593
# also defines -D_REENTRANT)
17594
# ... -mt is also the pthreads flag for HP/aCC
17595
# pthread: Linux, etcetera
17596
# --thread-safe: KAI C++
17597
# pthread-config: use pthread-config program (for GNU Pth library)
17599
case "${host_cpu}-${host_os}" in
17602
# On Solaris (at least, for some versions), libc contains stubbed
17603
# (non-functional) versions of the pthreads routines, so link-based
17604
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
17605
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17606
# a function called by this macro, so we could check for that, but
17607
# who knows whether they'll stub that too in a future libc.) So,
17608
# we'll just look for -pthreads and -lpthread first:
17610
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17614
if test x"$acx_pthread_ok" = xno; then
17615
for flag in $acx_pthread_flags; do
17619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17620
$as_echo_n "checking whether pthreads work without any flags... " >&6; }
17624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17625
$as_echo_n "checking whether pthreads work with $flag... " >&6; }
17626
PTHREAD_CFLAGS="$flag"
17630
# Extract the first word of "pthread-config", so it can be a program name with args.
17631
set dummy pthread-config; ac_word=$2
17632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17633
$as_echo_n "checking for $ac_word... " >&6; }
17634
if ${ac_cv_prog_acx_pthread_config+:} false; then :
17635
$as_echo_n "(cached) " >&6
17637
if test -n "$acx_pthread_config"; then
17638
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17641
for as_dir in $PATH
17644
test -z "$as_dir" && as_dir=.
17645
for ac_exec_ext in '' $ac_executable_extensions; do
17646
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17647
ac_cv_prog_acx_pthread_config="yes"
17648
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17655
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17658
acx_pthread_config=$ac_cv_prog_acx_pthread_config
17659
if test -n "$acx_pthread_config"; then
17660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17661
$as_echo "$acx_pthread_config" >&6; }
17663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664
$as_echo "no" >&6; }
17668
if test x"$acx_pthread_config" = xno; then continue; fi
17669
PTHREAD_CFLAGS="`pthread-config --cflags`"
17670
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17675
$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17676
PTHREAD_LIBS="-l$flag"
17681
save_CFLAGS="$CFLAGS"
17682
LIBS="$PTHREAD_LIBS $LIBS"
17683
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17685
# Check for various functions. We must include pthread.h,
17686
# since some functions may be macros. (On the Sequent, we
17687
# need a special flag -Kthread to make this header compile.)
17688
# We check for pthread_join because it is in -lpthread on IRIX
17689
# while pthread_create is in libc. We check for pthread_attr_init
17690
# due to DEC craziness with -lpthreads. We check for
17691
# pthread_cleanup_push because it is one of the few pthread
17692
# functions on Solaris that doesn't have a non-functional libc stub.
17693
# We try pthread_create on general principles.
17694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695
/* end confdefs.h. */
17696
#include <pthread.h>
17700
pthread_t th; pthread_join(th, 0);
17701
pthread_attr_init(0); pthread_cleanup_push(0, 0);
17702
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17707
if ac_fn_c_try_link "$LINENO"; then :
17710
rm -f core conftest.err conftest.$ac_objext \
17711
conftest$ac_exeext conftest.$ac_ext
17714
CFLAGS="$save_CFLAGS"
17716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17717
$as_echo "$acx_pthread_ok" >&6; }
17718
if test "x$acx_pthread_ok" = xyes; then
17727
# Various other checks:
17728
if test "x$acx_pthread_ok" = xyes; then
17730
LIBS="$PTHREAD_LIBS $LIBS"
17731
save_CFLAGS="$CFLAGS"
17732
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17734
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17736
$as_echo_n "checking for joinable pthread attribute... " >&6; }
17738
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740
/* end confdefs.h. */
17741
#include <pthread.h>
17745
int attr=$attr; return attr;
17750
if ac_fn_c_try_link "$LINENO"; then :
17751
attr_name=$attr; break
17753
rm -f core conftest.err conftest.$ac_objext \
17754
conftest$ac_exeext conftest.$ac_ext
17756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17757
$as_echo "$attr_name" >&6; }
17758
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17760
cat >>confdefs.h <<_ACEOF
17761
#define PTHREAD_CREATE_JOINABLE $attr_name
17766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17767
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17769
case "${host_cpu}-${host_os}" in
17770
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17771
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17774
$as_echo "${flag}" >&6; }
17775
if test "x$flag" != xno; then
17776
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17780
CFLAGS="$save_CFLAGS"
17782
# More AIX lossage: must compile with xlc_r or cc_r
17783
if test x"$GCC" != xyes; then
17784
for ac_prog in xlc_r cc_r
17786
# Extract the first word of "$ac_prog", so it can be a program name with args.
17787
set dummy $ac_prog; ac_word=$2
17788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17789
$as_echo_n "checking for $ac_word... " >&6; }
17790
if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17791
$as_echo_n "(cached) " >&6
17793
if test -n "$PTHREAD_CC"; then
17794
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17797
for as_dir in $PATH
17800
test -z "$as_dir" && as_dir=.
17801
for ac_exec_ext in '' $ac_executable_extensions; do
17802
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17803
ac_cv_prog_PTHREAD_CC="$ac_prog"
17804
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17813
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17814
if test -n "$PTHREAD_CC"; then
17815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17816
$as_echo "$PTHREAD_CC" >&6; }
17818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17819
$as_echo "no" >&6; }
17823
test -n "$PTHREAD_CC" && break
17825
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17838
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17839
if test x"$acx_pthread_ok" = xyes; then
17841
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17849
ac_cpp='$CPP $CPPFLAGS'
17850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17856
# Check whether --enable-xpdf-headers was given.
17857
if test "${enable_xpdf_headers+set}" = set; then :
17858
enableval=$enable_xpdf_headers; enable_xpdf_headers=$enableval
17860
enable_xpdf_headers="no"
17863
if test x$enable_xpdf_headers = xyes; then
17864
ENABLE_XPDF_HEADERS_TRUE=
17865
ENABLE_XPDF_HEADERS_FALSE='#'
17867
ENABLE_XPDF_HEADERS_TRUE='#'
17868
ENABLE_XPDF_HEADERS_FALSE=
17872
# Check whether --enable-single-precision was given.
17873
if test "${enable_single_precision+set}" = set; then :
17874
enableval=$enable_single_precision;
17875
$as_echo "#define USE_FLOAT 1" >>confdefs.h
17880
# Check whether --enable-fixedpoint was given.
17881
if test "${enable_fixedpoint+set}" = set; then :
17882
enableval=$enable_fixedpoint;
17883
$as_echo "#define USE_FIXEDPOINT 1" >>confdefs.h
17888
# Check whether --enable-relocatable was given.
17889
if test "${enable_relocatable+set}" = set; then :
17890
enableval=$enable_relocatable; enable_relocatable=$enableval
17892
if test x$os_win32 = xyes; then
17893
# default to yes on native Windows.
17894
enable_relocatable="yes"
17896
# default to no everywhere else.
17897
enable_relocatable="no"
17904
if test x$enable_relocatable = xyes; then
17905
if test x$os_win32 = xyes; then
17907
$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
17910
as_fn_error $? "Invalid setting for relocatable, only supported on windows" "$LINENO" 5
17918
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17919
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17920
eval ac_define_dir="\"$"{datarootdir}/poppler"\""
17921
eval ac_define_dir="\"$ac_define_dir\""
17922
POPPLER_DATADIR="$ac_define_dir"
17925
cat >>confdefs.h <<_ACEOF
17926
#define POPPLER_DATADIR "$ac_define_dir"
17929
test "$prefix_NONE" && prefix=NONE
17930
test "$exec_prefix_NONE" && exec_prefix=NONE
17933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17934
$as_echo_n "checking for X... " >&6; }
17937
# Check whether --with-x was given.
17938
if test "${with_x+set}" = set; then :
17942
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17943
if test "x$with_x" = xno; then
17944
# The user explicitly disabled X.
17947
case $x_includes,$x_libraries in #(
17948
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17949
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
17950
$as_echo_n "(cached) " >&6
17952
# One or both of the vars are not set, and there is no cached value.
17953
ac_x_includes=no ac_x_libraries=no
17954
rm -f -r conftest.dir
17955
if mkdir conftest.dir; then
17957
cat >Imakefile <<'_ACEOF'
17959
@echo incroot='${INCROOT}'
17961
@echo usrlibdir='${USRLIBDIR}'
17963
@echo libdir='${LIBDIR}'
17965
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17966
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17967
for ac_var in incroot usrlibdir libdir; do
17968
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17970
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17971
for ac_extension in a so sl dylib la dll; do
17972
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17973
test -f "$ac_im_libdir/libX11.$ac_extension"; then
17974
ac_im_usrlibdir=$ac_im_libdir; break
17977
# Screen out bogus values from the imake configuration. They are
17978
# bogus both because they are the default anyway, and because
17979
# using them would break gcc on systems where it needs fixed includes.
17980
case $ac_im_incroot in
17981
/usr/include) ac_x_includes= ;;
17982
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17984
case $ac_im_usrlibdir in
17985
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
17986
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17990
rm -f -r conftest.dir
17993
# Standard set of common directories for X headers.
17994
# Check X11 before X11Rn because it is often a symlink to the current release.
18008
/usr/local/X11/include
18009
/usr/local/X11R7/include
18010
/usr/local/X11R6/include
18011
/usr/local/X11R5/include
18012
/usr/local/X11R4/include
18014
/usr/local/include/X11
18015
/usr/local/include/X11R7
18016
/usr/local/include/X11R6
18017
/usr/local/include/X11R5
18018
/usr/local/include/X11R4
18022
/usr/XFree86/include/X11
18026
/usr/unsupported/include
18027
/usr/athena/include
18028
/usr/local/x11r5/include
18029
/usr/lpp/Xamples/include
18031
/usr/openwin/include
18032
/usr/openwin/share/include'
18034
if test "$ac_x_includes" = no; then
18035
# Guess where to find include files, by looking for Xlib.h.
18036
# First, try using that file with no special directory specified.
18037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038
/* end confdefs.h. */
18039
#include <X11/Xlib.h>
18041
if ac_fn_c_try_cpp "$LINENO"; then :
18042
# We can compile using X headers with no special include directory.
18045
for ac_dir in $ac_x_header_dirs; do
18046
if test -r "$ac_dir/X11/Xlib.h"; then
18047
ac_x_includes=$ac_dir
18052
rm -f conftest.err conftest.i conftest.$ac_ext
18053
fi # $ac_x_includes = no
18055
if test "$ac_x_libraries" = no; then
18056
# Check for the libraries.
18057
# See if we find them without any special options.
18058
# Don't add to $LIBS permanently.
18061
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062
/* end confdefs.h. */
18063
#include <X11/Xlib.h>
18072
if ac_fn_c_try_link "$LINENO"; then :
18074
# We can link X programs with no special library path.
18078
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18080
# Don't even attempt the hair of trying to link an X program!
18081
for ac_extension in a so sl dylib la dll; do
18082
if test -r "$ac_dir/libX11.$ac_extension"; then
18083
ac_x_libraries=$ac_dir
18089
rm -f core conftest.err conftest.$ac_objext \
18090
conftest$ac_exeext conftest.$ac_ext
18091
fi # $ac_x_libraries = no
18093
case $ac_x_includes,$ac_x_libraries in #(
18094
no,* | *,no | *\'*)
18095
# Didn't find X, or a directory has "'" in its name.
18096
ac_cv_have_x="have_x=no";; #(
18098
# Record where we found X for the cache.
18099
ac_cv_have_x="have_x=yes\
18100
ac_x_includes='$ac_x_includes'\
18101
ac_x_libraries='$ac_x_libraries'"
18107
eval "$ac_cv_have_x"
18110
if test "$have_x" != yes; then
18111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18112
$as_echo "$have_x" >&6; }
18115
# If each of the values was on the command line, it overrides each guess.
18116
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18117
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18118
# Update the cache value to reflect the command line values.
18119
ac_cv_have_x="have_x=yes\
18120
ac_x_includes='$x_includes'\
18121
ac_x_libraries='$x_libraries'"
18122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18123
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18126
if test "$no_x" = yes; then
18127
# Not all programs may use this symbol, but it does not hurt to define it.
18129
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18131
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18133
if test -n "$x_includes"; then
18134
X_CFLAGS="$X_CFLAGS -I$x_includes"
18137
# It would also be nice to do this for all -L options, not just this one.
18138
if test -n "$x_libraries"; then
18139
X_LIBS="$X_LIBS -L$x_libraries"
18140
# For Solaris; some versions of Sun CC require a space after -R and
18141
# others require no space. Words are not sufficient . . . .
18142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18143
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18144
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18145
ac_xsave_c_werror_flag=$ac_c_werror_flag
18146
ac_c_werror_flag=yes
18147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148
/* end confdefs.h. */
18158
if ac_fn_c_try_link "$LINENO"; then :
18159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18160
$as_echo "no" >&6; }
18161
X_LIBS="$X_LIBS -R$x_libraries"
18163
LIBS="$ac_xsave_LIBS -R $x_libraries"
18164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165
/* end confdefs.h. */
18175
if ac_fn_c_try_link "$LINENO"; then :
18176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18177
$as_echo "yes" >&6; }
18178
X_LIBS="$X_LIBS -R $x_libraries"
18180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18181
$as_echo "neither works" >&6; }
18183
rm -f core conftest.err conftest.$ac_objext \
18184
conftest$ac_exeext conftest.$ac_ext
18186
rm -f core conftest.err conftest.$ac_objext \
18187
conftest$ac_exeext conftest.$ac_ext
18188
ac_c_werror_flag=$ac_xsave_c_werror_flag
18189
LIBS=$ac_xsave_LIBS
18192
# Check for system-dependent libraries X programs must link with.
18193
# Do this before checking for the system-independent R6 libraries
18194
# (-lICE), since we may need -lsocket or whatever for X linking.
18196
if test "$ISC" = yes; then
18197
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18199
# Martyn Johnson says this is needed for Ultrix, if the X
18200
# libraries were built with DECnet support. And Karl Berry says
18201
# the Alpha needs dnet_stub (dnet does not exist).
18202
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18203
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204
/* end confdefs.h. */
18206
/* Override any GCC internal prototype to avoid an error.
18207
Use char because int might match the return type of a GCC
18208
builtin and then its argument prototype would still apply. */
18212
char XOpenDisplay ();
18216
return XOpenDisplay ();
18221
if ac_fn_c_try_link "$LINENO"; then :
18224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18225
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18226
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18227
$as_echo_n "(cached) " >&6
18229
ac_check_lib_save_LIBS=$LIBS
18230
LIBS="-ldnet $LIBS"
18231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232
/* end confdefs.h. */
18234
/* Override any GCC internal prototype to avoid an error.
18235
Use char because int might match the return type of a GCC
18236
builtin and then its argument prototype would still apply. */
18244
return dnet_ntoa ();
18249
if ac_fn_c_try_link "$LINENO"; then :
18250
ac_cv_lib_dnet_dnet_ntoa=yes
18252
ac_cv_lib_dnet_dnet_ntoa=no
18254
rm -f core conftest.err conftest.$ac_objext \
18255
conftest$ac_exeext conftest.$ac_ext
18256
LIBS=$ac_check_lib_save_LIBS
18258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18259
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18260
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18261
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18264
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18266
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18267
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18268
$as_echo_n "(cached) " >&6
18270
ac_check_lib_save_LIBS=$LIBS
18271
LIBS="-ldnet_stub $LIBS"
18272
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273
/* end confdefs.h. */
18275
/* Override any GCC internal prototype to avoid an error.
18276
Use char because int might match the return type of a GCC
18277
builtin and then its argument prototype would still apply. */
18285
return dnet_ntoa ();
18290
if ac_fn_c_try_link "$LINENO"; then :
18291
ac_cv_lib_dnet_stub_dnet_ntoa=yes
18293
ac_cv_lib_dnet_stub_dnet_ntoa=no
18295
rm -f core conftest.err conftest.$ac_objext \
18296
conftest$ac_exeext conftest.$ac_ext
18297
LIBS=$ac_check_lib_save_LIBS
18299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18300
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18301
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18302
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18307
rm -f core conftest.err conftest.$ac_objext \
18308
conftest$ac_exeext conftest.$ac_ext
18309
LIBS="$ac_xsave_LIBS"
18311
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18312
# to get the SysV transport functions.
18313
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18315
# The nsl library prevents programs from opening the X display
18316
# on Irix 5.2, according to T.E. Dickey.
18317
# The functions gethostbyname, getservbyname, and inet_addr are
18318
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18319
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18320
if test "x$ac_cv_func_gethostbyname" = xyes; then :
18324
if test $ac_cv_func_gethostbyname = no; then
18325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18326
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18327
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18328
$as_echo_n "(cached) " >&6
18330
ac_check_lib_save_LIBS=$LIBS
18332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333
/* end confdefs.h. */
18335
/* Override any GCC internal prototype to avoid an error.
18336
Use char because int might match the return type of a GCC
18337
builtin and then its argument prototype would still apply. */
18341
char gethostbyname ();
18345
return gethostbyname ();
18350
if ac_fn_c_try_link "$LINENO"; then :
18351
ac_cv_lib_nsl_gethostbyname=yes
18353
ac_cv_lib_nsl_gethostbyname=no
18355
rm -f core conftest.err conftest.$ac_objext \
18356
conftest$ac_exeext conftest.$ac_ext
18357
LIBS=$ac_check_lib_save_LIBS
18359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18360
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18361
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18362
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18365
if test $ac_cv_lib_nsl_gethostbyname = no; then
18366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18367
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18368
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18369
$as_echo_n "(cached) " >&6
18371
ac_check_lib_save_LIBS=$LIBS
18373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374
/* end confdefs.h. */
18376
/* Override any GCC internal prototype to avoid an error.
18377
Use char because int might match the return type of a GCC
18378
builtin and then its argument prototype would still apply. */
18382
char gethostbyname ();
18386
return gethostbyname ();
18391
if ac_fn_c_try_link "$LINENO"; then :
18392
ac_cv_lib_bsd_gethostbyname=yes
18394
ac_cv_lib_bsd_gethostbyname=no
18396
rm -f core conftest.err conftest.$ac_objext \
18397
conftest$ac_exeext conftest.$ac_ext
18398
LIBS=$ac_check_lib_save_LIBS
18400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18401
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18402
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18403
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18409
# lieder@skyler.mavd.honeywell.com says without -lsocket,
18410
# socket/setsockopt and other routines are undefined under SCO ODT
18411
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18412
# on later versions), says Simon Leinen: it contains gethostby*
18413
# variants that don't use the name server (or something). -lsocket
18414
# must be given before -lnsl if both are needed. We assume that
18415
# if connect needs -lnsl, so does gethostbyname.
18416
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18417
if test "x$ac_cv_func_connect" = xyes; then :
18421
if test $ac_cv_func_connect = no; then
18422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18423
$as_echo_n "checking for connect in -lsocket... " >&6; }
18424
if ${ac_cv_lib_socket_connect+:} false; then :
18425
$as_echo_n "(cached) " >&6
18427
ac_check_lib_save_LIBS=$LIBS
18428
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430
/* end confdefs.h. */
18432
/* Override any GCC internal prototype to avoid an error.
18433
Use char because int might match the return type of a GCC
18434
builtin and then its argument prototype would still apply. */
18447
if ac_fn_c_try_link "$LINENO"; then :
18448
ac_cv_lib_socket_connect=yes
18450
ac_cv_lib_socket_connect=no
18452
rm -f core conftest.err conftest.$ac_objext \
18453
conftest$ac_exeext conftest.$ac_ext
18454
LIBS=$ac_check_lib_save_LIBS
18456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18457
$as_echo "$ac_cv_lib_socket_connect" >&6; }
18458
if test "x$ac_cv_lib_socket_connect" = xyes; then :
18459
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18464
# Guillermo Gomez says -lposix is necessary on A/UX.
18465
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18466
if test "x$ac_cv_func_remove" = xyes; then :
18470
if test $ac_cv_func_remove = no; then
18471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18472
$as_echo_n "checking for remove in -lposix... " >&6; }
18473
if ${ac_cv_lib_posix_remove+:} false; then :
18474
$as_echo_n "(cached) " >&6
18476
ac_check_lib_save_LIBS=$LIBS
18477
LIBS="-lposix $LIBS"
18478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479
/* end confdefs.h. */
18481
/* Override any GCC internal prototype to avoid an error.
18482
Use char because int might match the return type of a GCC
18483
builtin and then its argument prototype would still apply. */
18496
if ac_fn_c_try_link "$LINENO"; then :
18497
ac_cv_lib_posix_remove=yes
18499
ac_cv_lib_posix_remove=no
18501
rm -f core conftest.err conftest.$ac_objext \
18502
conftest$ac_exeext conftest.$ac_ext
18503
LIBS=$ac_check_lib_save_LIBS
18505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18506
$as_echo "$ac_cv_lib_posix_remove" >&6; }
18507
if test "x$ac_cv_lib_posix_remove" = xyes; then :
18508
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18513
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18514
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18515
if test "x$ac_cv_func_shmat" = xyes; then :
18519
if test $ac_cv_func_shmat = no; then
18520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18521
$as_echo_n "checking for shmat in -lipc... " >&6; }
18522
if ${ac_cv_lib_ipc_shmat+:} false; then :
18523
$as_echo_n "(cached) " >&6
18525
ac_check_lib_save_LIBS=$LIBS
18527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528
/* end confdefs.h. */
18530
/* Override any GCC internal prototype to avoid an error.
18531
Use char because int might match the return type of a GCC
18532
builtin and then its argument prototype would still apply. */
18545
if ac_fn_c_try_link "$LINENO"; then :
18546
ac_cv_lib_ipc_shmat=yes
18548
ac_cv_lib_ipc_shmat=no
18550
rm -f core conftest.err conftest.$ac_objext \
18551
conftest$ac_exeext conftest.$ac_ext
18552
LIBS=$ac_check_lib_save_LIBS
18554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18555
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18556
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18557
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18563
# Check for libraries that X11R6 Xt/Xaw programs need.
18564
ac_save_LDFLAGS=$LDFLAGS
18565
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18566
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18567
# check for ICE first), but we must link in the order -lSM -lICE or
18568
# we get undefined symbols. So assume we have SM if we have ICE.
18569
# These have to be linked with before -lX11, unlike the other
18570
# libraries we check for below, so use a different variable.
18571
# John Interrante, Karl Berry
18572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18573
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18574
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18575
$as_echo_n "(cached) " >&6
18577
ac_check_lib_save_LIBS=$LIBS
18578
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580
/* end confdefs.h. */
18582
/* Override any GCC internal prototype to avoid an error.
18583
Use char because int might match the return type of a GCC
18584
builtin and then its argument prototype would still apply. */
18588
char IceConnectionNumber ();
18592
return IceConnectionNumber ();
18597
if ac_fn_c_try_link "$LINENO"; then :
18598
ac_cv_lib_ICE_IceConnectionNumber=yes
18600
ac_cv_lib_ICE_IceConnectionNumber=no
18602
rm -f core conftest.err conftest.$ac_objext \
18603
conftest$ac_exeext conftest.$ac_ext
18604
LIBS=$ac_check_lib_save_LIBS
18606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18607
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18608
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18609
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18612
LDFLAGS=$ac_save_LDFLAGS
18616
ac_header_dirent=no
18617
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18618
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18620
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18621
if eval \${$as_ac_Header+:} false; then :
18622
$as_echo_n "(cached) " >&6
18624
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625
/* end confdefs.h. */
18626
#include <sys/types.h>
18638
if ac_fn_c_try_compile "$LINENO"; then :
18639
eval "$as_ac_Header=yes"
18641
eval "$as_ac_Header=no"
18643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645
eval ac_res=\$$as_ac_Header
18646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18647
$as_echo "$ac_res" >&6; }
18648
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18649
cat >>confdefs.h <<_ACEOF
18650
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18653
ac_header_dirent=$ac_hdr; break
18657
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18658
if test $ac_header_dirent = dirent.h; then
18659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18660
$as_echo_n "checking for library containing opendir... " >&6; }
18661
if ${ac_cv_search_opendir+:} false; then :
18662
$as_echo_n "(cached) " >&6
18664
ac_func_search_save_LIBS=$LIBS
18665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666
/* end confdefs.h. */
18668
/* Override any GCC internal prototype to avoid an error.
18669
Use char because int might match the return type of a GCC
18670
builtin and then its argument prototype would still apply. */
18683
for ac_lib in '' dir; do
18684
if test -z "$ac_lib"; then
18685
ac_res="none required"
18688
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18690
if ac_fn_c_try_link "$LINENO"; then :
18691
ac_cv_search_opendir=$ac_res
18693
rm -f core conftest.err conftest.$ac_objext \
18695
if ${ac_cv_search_opendir+:} false; then :
18699
if ${ac_cv_search_opendir+:} false; then :
18702
ac_cv_search_opendir=no
18704
rm conftest.$ac_ext
18705
LIBS=$ac_func_search_save_LIBS
18707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18708
$as_echo "$ac_cv_search_opendir" >&6; }
18709
ac_res=$ac_cv_search_opendir
18710
if test "$ac_res" != no; then :
18711
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18717
$as_echo_n "checking for library containing opendir... " >&6; }
18718
if ${ac_cv_search_opendir+:} false; then :
18719
$as_echo_n "(cached) " >&6
18721
ac_func_search_save_LIBS=$LIBS
18722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723
/* end confdefs.h. */
18725
/* Override any GCC internal prototype to avoid an error.
18726
Use char because int might match the return type of a GCC
18727
builtin and then its argument prototype would still apply. */
18740
for ac_lib in '' x; do
18741
if test -z "$ac_lib"; then
18742
ac_res="none required"
18745
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18747
if ac_fn_c_try_link "$LINENO"; then :
18748
ac_cv_search_opendir=$ac_res
18750
rm -f core conftest.err conftest.$ac_objext \
18752
if ${ac_cv_search_opendir+:} false; then :
18756
if ${ac_cv_search_opendir+:} false; then :
18759
ac_cv_search_opendir=no
18761
rm conftest.$ac_ext
18762
LIBS=$ac_func_search_save_LIBS
18764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18765
$as_echo "$ac_cv_search_opendir" >&6; }
18766
ac_res=$ac_cv_search_opendir
18767
if test "$ac_res" != no; then :
18768
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18776
ac_cpp='$CXXCPP $CPPFLAGS'
18777
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18782
ac_fn_cxx_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "#include <sys/time.h>
18784
if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
18785
ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18786
if test "x$ac_cv_func_gettimeofday" = xyes; then :
18788
$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
18794
ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
18795
if test "x$ac_cv_func_localtime_r" = xyes; then :
18797
$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
18801
ac_fn_cxx_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18802
if test "x$ac_cv_func_gmtime_r" = xyes; then :
18804
$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18809
ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18810
if test "x$ac_cv_func_gethostbyname" = xyes; then :
18814
if test $ac_cv_func_gethostbyname = no; then
18815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18816
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18817
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18818
$as_echo_n "(cached) " >&6
18820
ac_check_lib_save_LIBS=$LIBS
18822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823
/* end confdefs.h. */
18825
/* Override any GCC internal prototype to avoid an error.
18826
Use char because int might match the return type of a GCC
18827
builtin and then its argument prototype would still apply. */
18831
char gethostbyname ();
18835
return gethostbyname ();
18840
if ac_fn_cxx_try_link "$LINENO"; then :
18841
ac_cv_lib_bsd_gethostbyname=yes
18843
ac_cv_lib_bsd_gethostbyname=no
18845
rm -f core conftest.err conftest.$ac_objext \
18846
conftest$ac_exeext conftest.$ac_ext
18847
LIBS=$ac_check_lib_save_LIBS
18849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18850
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18851
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18852
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18857
ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
18858
if test "x$ac_cv_func_nanosleep" = xyes; then :
18862
if test x$ac_cv_func_nanosleep = xno
18864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
18865
$as_echo_n "checking for nanosleep in -lrt... " >&6; }
18866
if ${ac_cv_lib_rt_nanosleep+:} false; then :
18867
$as_echo_n "(cached) " >&6
18869
ac_check_lib_save_LIBS=$LIBS
18871
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872
/* end confdefs.h. */
18874
/* Override any GCC internal prototype to avoid an error.
18875
Use char because int might match the return type of a GCC
18876
builtin and then its argument prototype would still apply. */
18884
return nanosleep ();
18889
if ac_fn_cxx_try_link "$LINENO"; then :
18890
ac_cv_lib_rt_nanosleep=yes
18892
ac_cv_lib_rt_nanosleep=no
18894
rm -f core conftest.err conftest.$ac_objext \
18895
conftest$ac_exeext conftest.$ac_ext
18896
LIBS=$ac_check_lib_save_LIBS
18898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
18899
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
18900
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
18901
X_EXTRA_LIBS="$X_EXTRA_LIBS -lrt"
18906
if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
18908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
18909
$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
18910
if ${ac_cv_lib_posix4_nanosleep+:} false; then :
18911
$as_echo_n "(cached) " >&6
18913
ac_check_lib_save_LIBS=$LIBS
18914
LIBS="-lposix4 $LIBS"
18915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916
/* end confdefs.h. */
18918
/* Override any GCC internal prototype to avoid an error.
18919
Use char because int might match the return type of a GCC
18920
builtin and then its argument prototype would still apply. */
18928
return nanosleep ();
18933
if ac_fn_cxx_try_link "$LINENO"; then :
18934
ac_cv_lib_posix4_nanosleep=yes
18936
ac_cv_lib_posix4_nanosleep=no
18938
rm -f core conftest.err conftest.$ac_objext \
18939
conftest$ac_exeext conftest.$ac_ext
18940
LIBS=$ac_check_lib_save_LIBS
18942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
18943
$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
18944
if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
18945
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix4"
18951
# Check whether --enable-libopenjpeg was given.
18952
if test "${enable_libopenjpeg+set}" = set; then :
18953
enableval=$enable_libopenjpeg; enable_libopenjpeg=$enableval
18955
enable_libopenjpeg="try"
18958
if test x$enable_libopenjpeg = xyes; then
18959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_cio_open in -lopenjpeg" >&5
18960
$as_echo_n "checking for opj_cio_open in -lopenjpeg... " >&6; }
18961
if ${ac_cv_lib_openjpeg_opj_cio_open+:} false; then :
18962
$as_echo_n "(cached) " >&6
18964
ac_check_lib_save_LIBS=$LIBS
18965
LIBS="-lopenjpeg $LIBS"
18966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967
/* end confdefs.h. */
18969
/* Override any GCC internal prototype to avoid an error.
18970
Use char because int might match the return type of a GCC
18971
builtin and then its argument prototype would still apply. */
18975
char opj_cio_open ();
18979
return opj_cio_open ();
18984
if ac_fn_cxx_try_link "$LINENO"; then :
18985
ac_cv_lib_openjpeg_opj_cio_open=yes
18987
ac_cv_lib_openjpeg_opj_cio_open=no
18989
rm -f core conftest.err conftest.$ac_objext \
18990
conftest$ac_exeext conftest.$ac_ext
18991
LIBS=$ac_check_lib_save_LIBS
18993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_cio_open" >&5
18994
$as_echo "$ac_cv_lib_openjpeg_opj_cio_open" >&6; }
18995
if test "x$ac_cv_lib_openjpeg_opj_cio_open" = xyes; then :
18996
cat >>confdefs.h <<_ACEOF
18997
#define HAVE_LIBOPENJPEG 1
19000
LIBS="-lopenjpeg $LIBS"
19003
as_fn_error $? "\"*** libopenjpeg library not found ***\"" "$LINENO" 5
19007
for ac_header in openjpeg.h
19009
ac_fn_cxx_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
19010
if test "x$ac_cv_header_openjpeg_h" = xyes; then :
19011
cat >>confdefs.h <<_ACEOF
19012
#define HAVE_OPENJPEG_H 1
19016
as_fn_error $? "\"*** libopenjpeg headers not found ***\"" "$LINENO" 5
19021
elif test x$enable_libopenjpeg = xtry; then
19022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_cio_open in -lopenjpeg" >&5
19023
$as_echo_n "checking for opj_cio_open in -lopenjpeg... " >&6; }
19024
if ${ac_cv_lib_openjpeg_opj_cio_open+:} false; then :
19025
$as_echo_n "(cached) " >&6
19027
ac_check_lib_save_LIBS=$LIBS
19028
LIBS="-lopenjpeg $LIBS"
19029
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030
/* end confdefs.h. */
19032
/* Override any GCC internal prototype to avoid an error.
19033
Use char because int might match the return type of a GCC
19034
builtin and then its argument prototype would still apply. */
19038
char opj_cio_open ();
19042
return opj_cio_open ();
19047
if ac_fn_cxx_try_link "$LINENO"; then :
19048
ac_cv_lib_openjpeg_opj_cio_open=yes
19050
ac_cv_lib_openjpeg_opj_cio_open=no
19052
rm -f core conftest.err conftest.$ac_objext \
19053
conftest$ac_exeext conftest.$ac_ext
19054
LIBS=$ac_check_lib_save_LIBS
19056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_cio_open" >&5
19057
$as_echo "$ac_cv_lib_openjpeg_opj_cio_open" >&6; }
19058
if test "x$ac_cv_lib_openjpeg_opj_cio_open" = xyes; then :
19059
enable_libopenjpeg="yes"
19061
enable_libopenjpeg="no"
19064
for ac_header in openjpeg.h
19066
ac_fn_cxx_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
19067
if test "x$ac_cv_header_openjpeg_h" = xyes; then :
19068
cat >>confdefs.h <<_ACEOF
19069
#define HAVE_OPENJPEG_H 1
19073
enable_libopenjpeg="no"
19080
if test x$enable_libopenjpeg = xyes; then
19081
LIBOPENJPEG_LIBS="-lopenjpeg"
19083
$as_echo "#define ENABLE_LIBOPENJPEG 1" >>confdefs.h
19087
if test x$enable_libopenjpeg = xyes; then
19088
BUILD_LIBOPENJPEG_TRUE=
19089
BUILD_LIBOPENJPEG_FALSE='#'
19091
BUILD_LIBOPENJPEG_TRUE='#'
19092
BUILD_LIBOPENJPEG_FALSE=
19098
for ac_func in popen mkstemp mkstemps
19100
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19101
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
19102
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19103
cat >>confdefs.h <<_ACEOF
19104
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19112
ac_cpp='$CPP $CPPFLAGS'
19113
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19118
# Check whether --enable-largefile was given.
19119
if test "${enable_largefile+set}" = set; then :
19120
enableval=$enable_largefile;
19123
if test "$enable_largefile" != no; then
19125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19126
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19127
if ${ac_cv_sys_largefile_CC+:} false; then :
19128
$as_echo_n "(cached) " >&6
19130
ac_cv_sys_largefile_CC=no
19131
if test "$GCC" != yes; then
19134
# IRIX 6.2 and later do not support large files by default,
19135
# so use the C compiler's -n32 option if that helps.
19136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137
/* end confdefs.h. */
19138
#include <sys/types.h>
19139
/* Check that off_t can represent 2**63 - 1 correctly.
19140
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19141
since some C++ compilers masquerading as C compilers
19142
incorrectly reject 9223372036854775807. */
19143
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19144
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19145
&& LARGE_OFF_T % 2147483647 == 1)
19155
if ac_fn_c_try_compile "$LINENO"; then :
19158
rm -f core conftest.err conftest.$ac_objext
19160
if ac_fn_c_try_compile "$LINENO"; then :
19161
ac_cv_sys_largefile_CC=' -n32'; break
19163
rm -f core conftest.err conftest.$ac_objext
19167
rm -f conftest.$ac_ext
19170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19171
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
19172
if test "$ac_cv_sys_largefile_CC" != no; then
19173
CC=$CC$ac_cv_sys_largefile_CC
19176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19177
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19178
if ${ac_cv_sys_file_offset_bits+:} false; then :
19179
$as_echo_n "(cached) " >&6
19182
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183
/* end confdefs.h. */
19184
#include <sys/types.h>
19185
/* Check that off_t can represent 2**63 - 1 correctly.
19186
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19187
since some C++ compilers masquerading as C compilers
19188
incorrectly reject 9223372036854775807. */
19189
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19190
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19191
&& LARGE_OFF_T % 2147483647 == 1)
19201
if ac_fn_c_try_compile "$LINENO"; then :
19202
ac_cv_sys_file_offset_bits=no; break
19204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206
/* end confdefs.h. */
19207
#define _FILE_OFFSET_BITS 64
19208
#include <sys/types.h>
19209
/* Check that off_t can represent 2**63 - 1 correctly.
19210
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19211
since some C++ compilers masquerading as C compilers
19212
incorrectly reject 9223372036854775807. */
19213
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19214
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19215
&& LARGE_OFF_T % 2147483647 == 1)
19225
if ac_fn_c_try_compile "$LINENO"; then :
19226
ac_cv_sys_file_offset_bits=64; break
19228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229
ac_cv_sys_file_offset_bits=unknown
19233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19234
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19235
case $ac_cv_sys_file_offset_bits in #(
19238
cat >>confdefs.h <<_ACEOF
19239
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19244
if test $ac_cv_sys_file_offset_bits = unknown; then
19245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19246
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19247
if ${ac_cv_sys_large_files+:} false; then :
19248
$as_echo_n "(cached) " >&6
19251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252
/* end confdefs.h. */
19253
#include <sys/types.h>
19254
/* Check that off_t can represent 2**63 - 1 correctly.
19255
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19256
since some C++ compilers masquerading as C compilers
19257
incorrectly reject 9223372036854775807. */
19258
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19259
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19260
&& LARGE_OFF_T % 2147483647 == 1)
19270
if ac_fn_c_try_compile "$LINENO"; then :
19271
ac_cv_sys_large_files=no; break
19273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275
/* end confdefs.h. */
19276
#define _LARGE_FILES 1
19277
#include <sys/types.h>
19278
/* Check that off_t can represent 2**63 - 1 correctly.
19279
We can't simply define LARGE_OFF_T to be 9223372036854775807,
19280
since some C++ compilers masquerading as C compilers
19281
incorrectly reject 9223372036854775807. */
19282
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19283
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19284
&& LARGE_OFF_T % 2147483647 == 1)
19294
if ac_fn_c_try_compile "$LINENO"; then :
19295
ac_cv_sys_large_files=1; break
19297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298
ac_cv_sys_large_files=unknown
19302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19303
$as_echo "$ac_cv_sys_large_files" >&6; }
19304
case $ac_cv_sys_large_files in #(
19307
cat >>confdefs.h <<_ACEOF
19308
#define _LARGE_FILES $ac_cv_sys_large_files
19318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19319
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19320
if ${ac_cv_sys_largefile_source+:} false; then :
19321
$as_echo_n "(cached) " >&6
19324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325
/* end confdefs.h. */
19326
#include <sys/types.h> /* for off_t */
19331
int (*fp) (FILE *, off_t, int) = fseeko;
19332
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19337
if ac_fn_c_try_link "$LINENO"; then :
19338
ac_cv_sys_largefile_source=no; break
19340
rm -f core conftest.err conftest.$ac_objext \
19341
conftest$ac_exeext conftest.$ac_ext
19342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343
/* end confdefs.h. */
19344
#define _LARGEFILE_SOURCE 1
19345
#include <sys/types.h> /* for off_t */
19350
int (*fp) (FILE *, off_t, int) = fseeko;
19351
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19356
if ac_fn_c_try_link "$LINENO"; then :
19357
ac_cv_sys_largefile_source=1; break
19359
rm -f core conftest.err conftest.$ac_objext \
19360
conftest$ac_exeext conftest.$ac_ext
19361
ac_cv_sys_largefile_source=unknown
19365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
19366
$as_echo "$ac_cv_sys_largefile_source" >&6; }
19367
case $ac_cv_sys_largefile_source in #(
19370
cat >>confdefs.h <<_ACEOF
19371
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19377
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19378
# in glibc 2.1.3, but that breaks too many other things.
19379
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19380
if test $ac_cv_sys_largefile_source != unknown; then
19382
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
19386
for ac_func in fseek64
19388
ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
19389
if test "x$ac_cv_func_fseek64" = xyes; then :
19390
cat >>confdefs.h <<_ACEOF
19391
#define HAVE_FSEEK64 1
19393
xpdf_cv_func_fseek64=yes
19395
xpdf_cv_func_fseek64=no
19399
for ac_func in ftell64
19401
ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
19402
if test "x$ac_cv_func_ftell64" = xyes; then :
19403
cat >>confdefs.h <<_ACEOF
19404
#define HAVE_FTELL64 1
19406
xpdf_cv_func_ftell64=yes
19408
xpdf_cv_func_ftell64=no
19412
if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then
19413
$as_echo "#define HAVE_FSEEK64 1" >>confdefs.h
19417
# Check whether --enable-zlib was given.
19418
if test "${enable_zlib+set}" = set; then :
19419
enableval=$enable_zlib;
19424
if test x$enable_zlib = xyes; then
19425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
19426
$as_echo_n "checking for inflate in -lz... " >&6; }
19427
if ${ac_cv_lib_z_inflate+:} false; then :
19428
$as_echo_n "(cached) " >&6
19430
ac_check_lib_save_LIBS=$LIBS
19432
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433
/* end confdefs.h. */
19435
/* Override any GCC internal prototype to avoid an error.
19436
Use char because int might match the return type of a GCC
19437
builtin and then its argument prototype would still apply. */
19450
if ac_fn_c_try_link "$LINENO"; then :
19451
ac_cv_lib_z_inflate=yes
19453
ac_cv_lib_z_inflate=no
19455
rm -f core conftest.err conftest.$ac_objext \
19456
conftest$ac_exeext conftest.$ac_ext
19457
LIBS=$ac_check_lib_save_LIBS
19459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
19460
$as_echo "$ac_cv_lib_z_inflate" >&6; }
19461
if test "x$ac_cv_lib_z_inflate" = xyes; then :
19462
cat >>confdefs.h <<_ACEOF
19463
#define HAVE_LIBZ 1
19469
as_fn_error $? "\"*** zlib library not found ***\"" "$LINENO" 5
19472
for ac_header in zlib.h
19474
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19475
if test "x$ac_cv_header_zlib_h" = xyes; then :
19476
cat >>confdefs.h <<_ACEOF
19477
#define HAVE_ZLIB_H 1
19481
as_fn_error $? "\"*** zlib headers not found ***\"" "$LINENO" 5
19486
elif test x$enable_zlib = xtry; then
19487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
19488
$as_echo_n "checking for inflate in -lz... " >&6; }
19489
if ${ac_cv_lib_z_inflate+:} false; then :
19490
$as_echo_n "(cached) " >&6
19492
ac_check_lib_save_LIBS=$LIBS
19494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495
/* end confdefs.h. */
19497
/* Override any GCC internal prototype to avoid an error.
19498
Use char because int might match the return type of a GCC
19499
builtin and then its argument prototype would still apply. */
19512
if ac_fn_c_try_link "$LINENO"; then :
19513
ac_cv_lib_z_inflate=yes
19515
ac_cv_lib_z_inflate=no
19517
rm -f core conftest.err conftest.$ac_objext \
19518
conftest$ac_exeext conftest.$ac_ext
19519
LIBS=$ac_check_lib_save_LIBS
19521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
19522
$as_echo "$ac_cv_lib_z_inflate" >&6; }
19523
if test "x$ac_cv_lib_z_inflate" = xyes; then :
19529
for ac_header in zlib.h
19531
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19532
if test "x$ac_cv_header_zlib_h" = xyes; then :
19533
cat >>confdefs.h <<_ACEOF
19534
#define HAVE_ZLIB_H 1
19545
if test x$enable_zlib = xyes; then
19548
$as_echo "#define ENABLE_ZLIB 1" >>confdefs.h
19552
if test x$enable_zlib = xyes; then
19554
BUILD_ZLIB_FALSE='#'
19556
BUILD_ZLIB_TRUE='#'
19562
# Check whether --enable-libcurl was given.
19563
if test "${enable_libcurl+set}" = set; then :
19564
enableval=$enable_libcurl; enable_libcurl=$enableval
19566
enable_libcurl="no"
19570
if test x$enable_libcurl = xyes; then
19573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
19574
$as_echo_n "checking for LIBCURL... " >&6; }
19576
if test -n "$LIBCURL_CFLAGS"; then
19577
pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
19578
elif test -n "$PKG_CONFIG"; then
19579
if test -n "$PKG_CONFIG" && \
19580
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
19581
($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
19583
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19584
test $ac_status = 0; }; then
19585
pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
19592
if test -n "$LIBCURL_LIBS"; then
19593
pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
19594
elif test -n "$PKG_CONFIG"; then
19595
if test -n "$PKG_CONFIG" && \
19596
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
19597
($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
19599
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19600
test $ac_status = 0; }; then
19601
pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
19611
if test $pkg_failed = yes; then
19612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19613
$as_echo "no" >&6; }
19615
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19616
_pkg_short_errors_supported=yes
19618
_pkg_short_errors_supported=no
19620
if test $_pkg_short_errors_supported = yes; then
19621
LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
19623
LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
19625
# Put the nasty error message in config.log where it belongs
19626
echo "$LIBCURL_PKG_ERRORS" >&5
19628
as_fn_error $? "Package requirements (libcurl) were not met:
19630
$LIBCURL_PKG_ERRORS
19632
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19633
installed software in a non-standard prefix.
19635
Alternatively, you may set the environment variables LIBCURL_CFLAGS
19636
and LIBCURL_LIBS to avoid the need to call pkg-config.
19637
See the pkg-config man page for more details." "$LINENO" 5
19638
elif test $pkg_failed = untried; then
19639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640
$as_echo "no" >&6; }
19641
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19642
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19643
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19644
is in your PATH or set the PKG_CONFIG environment variable to the full
19645
path to pkg-config.
19647
Alternatively, you may set the environment variables LIBCURL_CFLAGS
19648
and LIBCURL_LIBS to avoid the need to call pkg-config.
19649
See the pkg-config man page for more details.
19651
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19652
See \`config.log' for more details" "$LINENO" 5; }
19654
LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
19655
LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
19656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19657
$as_echo "yes" >&6; }
19661
$as_echo "#define ENABLE_LIBCURL 1" >>confdefs.h
19664
$as_echo "#define POPPLER_HAS_CURL_SUPPORT 1" >>confdefs.h
19668
if test x$enable_libcurl = xyes; then
19669
BUILD_LIBCURL_TRUE=
19670
BUILD_LIBCURL_FALSE='#'
19672
BUILD_LIBCURL_TRUE='#'
19673
BUILD_LIBCURL_FALSE=
19677
# Check whether --enable-libjpeg was given.
19678
if test "${enable_libjpeg+set}" = set; then :
19679
enableval=$enable_libjpeg; enable_libjpeg=$enableval
19681
enable_libjpeg="try"
19684
if test x$enable_libjpeg != xno; then
19687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg6b" >&5
19688
$as_echo_n "checking for libjpeg6b... " >&6; }
19689
if ${ac_cv_lib_jpeg_6b+:} false; then :
19690
$as_echo_n "(cached) " >&6
19693
ac_save_LIBS="$LIBS"
19694
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
19695
ac_save_CFLAGS="$CFLAGS"
19696
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
19697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698
/* end confdefs.h. */
19703
void jpeg_CreateDecompress();
19711
jpeg_CreateDecompress();
19716
if ac_fn_c_try_link "$LINENO"; then :
19717
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
19719
eval "ac_cv_lib_jpeg_6b=no"
19721
rm -f core conftest.err conftest.$ac_objext \
19722
conftest$ac_exeext conftest.$ac_ext
19723
LIBS="$ac_save_LIBS"
19724
CFLAGS="$ac_save_CFLAGS"
19729
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
19731
LIBJPEG_LIBS="$ac_cv_lib_jpeg_6b"
19732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_6b" >&5
19733
$as_echo "$ac_cv_lib_jpeg_6b" >&6; }
19735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736
$as_echo "no" >&6; }
19738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5
19739
$as_echo_n "checking for libjpeg... " >&6; }
19740
if ${ac_cv_lib_jpeg_normal+:} false; then :
19741
$as_echo_n "(cached) " >&6
19744
ac_save_LIBS="$LIBS"
19745
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
19746
ac_save_CFLAGS="$CFLAGS"
19747
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
19748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749
/* end confdefs.h. */
19754
void jpeg_CreateDecompress();
19762
jpeg_CreateDecompress();
19767
if ac_fn_c_try_link "$LINENO"; then :
19768
eval "ac_cv_lib_jpeg_normal=-ljpeg"
19770
eval "ac_cv_lib_jpeg_normal=no"
19772
rm -f core conftest.err conftest.$ac_objext \
19773
conftest$ac_exeext conftest.$ac_ext
19774
LIBS="$ac_save_LIBS"
19775
CFLAGS="$ac_save_CFLAGS"
19780
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
19782
LIBJPEG_LIBS="$ac_cv_lib_jpeg_normal"
19783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_normal" >&5
19784
$as_echo "$ac_cv_lib_jpeg_normal" >&6; }
19786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787
$as_echo "no" >&6; }
19798
ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
19799
if test "x$ac_cv_header_jpeglib_h" = xyes; then :
19806
test "x$jpeg_incdir" = xNO && jpeg_incdir=
19808
if test -n "$jpeg_incdir" && test -n "$LIBJPEG_LIBS" ; then
19810
cat >>confdefs.h <<_ACEOF
19811
#define ENABLE_LIBJPEG 1
19815
if test -n "$jpeg_incdir" || test -n "$LIBJPEG_LIBS" ; then
19816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19817
There is an installation error in jpeg support. You seem to have only one
19818
of either the headers _or_ the libraries installed. You may need to either
19819
provide correct --with-extra-... options, or the development package of
19820
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
19821
Disabling JPEG support.
19823
$as_echo "$as_me: WARNING:
19824
There is an installation error in jpeg support. You seem to have only one
19825
of either the headers _or_ the libraries installed. You may need to either
19826
provide correct --with-extra-... options, or the development package of
19827
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
19828
Disabling JPEG support.
19831
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg not found. disable JPEG support." >&5
19832
$as_echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
19844
if test x$enable_libjpeg = xyes; then
19845
BUILD_LIBJPEG_TRUE=
19846
BUILD_LIBJPEG_FALSE='#'
19848
BUILD_LIBJPEG_TRUE='#'
19849
BUILD_LIBJPEG_FALSE=
19854
# Check whether --enable-libpng was given.
19855
if test "${enable_libpng+set}" = set; then :
19856
enableval=$enable_libpng; enable_libpng=$enableval
19858
enable_libpng="try"
19862
if test x$enable_libpng != xno; then
19865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
19866
$as_echo_n "checking for LIBPNG... " >&6; }
19868
if test -n "$LIBPNG_CFLAGS"; then
19869
pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
19870
elif test -n "$PKG_CONFIG"; then
19871
if test -n "$PKG_CONFIG" && \
19872
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
19873
($PKG_CONFIG --exists --print-errors "libpng") 2>&5
19875
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876
test $ac_status = 0; }; then
19877
pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
19884
if test -n "$LIBPNG_LIBS"; then
19885
pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
19886
elif test -n "$PKG_CONFIG"; then
19887
if test -n "$PKG_CONFIG" && \
19888
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
19889
($PKG_CONFIG --exists --print-errors "libpng") 2>&5
19891
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19892
test $ac_status = 0; }; then
19893
pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
19903
if test $pkg_failed = yes; then
19904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905
$as_echo "no" >&6; }
19907
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19908
_pkg_short_errors_supported=yes
19910
_pkg_short_errors_supported=no
19912
if test $_pkg_short_errors_supported = yes; then
19913
LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
19915
LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
19917
# Put the nasty error message in config.log where it belongs
19918
echo "$LIBPNG_PKG_ERRORS" >&5
19921
elif test $pkg_failed = untried; then
19922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923
$as_echo "no" >&6; }
19926
LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
19927
LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
19928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19929
$as_echo "yes" >&6; }
19930
enable_libpng="yes"
19934
if test x$enable_libpng = xyes; then
19936
$as_echo "#define ENABLE_LIBPNG 1" >>confdefs.h
19940
if test x$enable_libpng = xyes; then
19942
BUILD_LIBPNG_FALSE='#'
19944
BUILD_LIBPNG_TRUE='#'
19945
BUILD_LIBPNG_FALSE=
19952
# XXX EMSCRIPTEN: Force freetype detection
19954
$as_echo "#define HAVE_FREETYPE_H 1" >>confdefs.h
19956
#PKG_CHECK_MODULES(FREETYPE, freetype2,
19957
# [freetype_pkgconfig=yes], [freetype_pkgconfig=no])
19959
#if test "x$freetype_pkgconfig" = "xyes"; then
19961
# AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files])
19965
# AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
19966
# if test "x$FREETYPE_CONFIG" != "xno" ; then
19968
# FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
19969
# FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
19970
# AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files])
19979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which font configuration to use" >&5
19980
$as_echo_n "checking which font configuration to use... " >&6; }
19982
# Check whether --with-font_configuration was given.
19983
if test "${with_font_configuration+set}" = set; then :
19984
withval=$with_font_configuration;
19986
if test x$os_win32 = xyes; then
19987
# default to win32 on native Windows.
19988
with_font_configuration=win32
19990
# default to fontconig everywhere else.
19991
with_font_configuration=fontconfig
19997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_font_configuration" >&5
19998
$as_echo "$with_font_configuration" >&6; }
20000
case $with_font_configuration in
20003
$as_echo "#define WITH_FONTCONFIGURATION_WIN32 1" >>confdefs.h
20005
# Set the minimum required Internet Explorer version to 5.0
20006
CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x0500"
20010
$as_echo "#define WITH_FONTCONFIGURATION_FONTCONFIG 1" >>confdefs.h
20014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20015
$as_echo_n "checking for FONTCONFIG... " >&6; }
20017
if test -n "$FONTCONFIG_CFLAGS"; then
20018
pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20019
elif test -n "$PKG_CONFIG"; then
20020
if test -n "$PKG_CONFIG" && \
20021
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
20022
($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
20024
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20025
test $ac_status = 0; }; then
20026
pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.0.0" 2>/dev/null`
20033
if test -n "$FONTCONFIG_LIBS"; then
20034
pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20035
elif test -n "$PKG_CONFIG"; then
20036
if test -n "$PKG_CONFIG" && \
20037
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
20038
($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
20040
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20041
test $ac_status = 0; }; then
20042
pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.0.0" 2>/dev/null`
20052
if test $pkg_failed = yes; then
20053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054
$as_echo "no" >&6; }
20056
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20057
_pkg_short_errors_supported=yes
20059
_pkg_short_errors_supported=no
20061
if test $_pkg_short_errors_supported = yes; then
20062
FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.0.0" 2>&1`
20064
FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.0.0" 2>&1`
20066
# Put the nasty error message in config.log where it belongs
20067
echo "$FONTCONFIG_PKG_ERRORS" >&5
20069
as_fn_error $? "Package requirements (fontconfig >= 2.0.0) were not met:
20071
$FONTCONFIG_PKG_ERRORS
20073
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20074
installed software in a non-standard prefix.
20076
Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
20077
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
20078
See the pkg-config man page for more details." "$LINENO" 5
20079
elif test $pkg_failed = untried; then
20080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081
$as_echo "no" >&6; }
20082
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20083
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20084
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20085
is in your PATH or set the PKG_CONFIG environment variable to the full
20086
path to pkg-config.
20088
Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
20089
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
20090
See the pkg-config man page for more details.
20092
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20093
See \`config.log' for more details" "$LINENO" 5; }
20095
FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20096
FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20098
$as_echo "yes" >&6; }
20103
as_fn_error $? "Invalid font configuration setting: $with_font_configuration" "$LINENO" 5
20107
if test x$with_font_configuration = xwin32; then
20108
BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE=
20109
BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE='#'
20111
BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE='#'
20112
BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE=
20116
# Check whether --enable-splash-output was given.
20117
if test "${enable_splash_output+set}" = set; then :
20118
enableval=$enable_splash_output;
20120
enable_splash_output="yes"
20123
if test x$enable_splash_output = xyes; then
20124
BUILD_SPLASH_OUTPUT_TRUE=
20125
BUILD_SPLASH_OUTPUT_FALSE='#'
20127
BUILD_SPLASH_OUTPUT_TRUE='#'
20128
BUILD_SPLASH_OUTPUT_FALSE=
20132
if test x$enable_splash_output = xyes; then
20133
$as_echo "#define HAVE_SPLASH 1" >>confdefs.h
20137
CAIRO_VERSION="1.10.0"
20139
# Check whether --enable-cairo-output was given.
20140
if test "${enable_cairo_output+set}" = set; then :
20141
enableval=$enable_cairo_output; enable_cairo_output=$enableval
20143
enable_cairo_output="try"
20146
if test x$enable_cairo_output = xyes; then
20149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20150
$as_echo_n "checking for CAIRO... " >&6; }
20152
if test -n "$CAIRO_CFLAGS"; then
20153
pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20154
elif test -n "$PKG_CONFIG"; then
20155
if test -n "$PKG_CONFIG" && \
20156
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5
20157
($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5
20159
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20160
test $ac_status = 0; }; then
20161
pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION" 2>/dev/null`
20168
if test -n "$CAIRO_LIBS"; then
20169
pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20170
elif test -n "$PKG_CONFIG"; then
20171
if test -n "$PKG_CONFIG" && \
20172
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5
20173
($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5
20175
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20176
test $ac_status = 0; }; then
20177
pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= $CAIRO_VERSION" 2>/dev/null`
20187
if test $pkg_failed = yes; then
20188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20189
$as_echo "no" >&6; }
20191
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20192
_pkg_short_errors_supported=yes
20194
_pkg_short_errors_supported=no
20196
if test $_pkg_short_errors_supported = yes; then
20197
CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= $CAIRO_VERSION" 2>&1`
20199
CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= $CAIRO_VERSION" 2>&1`
20201
# Put the nasty error message in config.log where it belongs
20202
echo "$CAIRO_PKG_ERRORS" >&5
20204
as_fn_error $? "Package requirements (cairo >= $CAIRO_VERSION) were not met:
20208
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20209
installed software in a non-standard prefix.
20211
Alternatively, you may set the environment variables CAIRO_CFLAGS
20212
and CAIRO_LIBS to avoid the need to call pkg-config.
20213
See the pkg-config man page for more details." "$LINENO" 5
20214
elif test $pkg_failed = untried; then
20215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20216
$as_echo "no" >&6; }
20217
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20218
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20219
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20220
is in your PATH or set the PKG_CONFIG environment variable to the full
20221
path to pkg-config.
20223
Alternatively, you may set the environment variables CAIRO_CFLAGS
20224
and CAIRO_LIBS to avoid the need to call pkg-config.
20225
See the pkg-config man page for more details.
20227
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20228
See \`config.log' for more details" "$LINENO" 5; }
20230
CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20231
CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20233
$as_echo "yes" >&6; }
20236
elif test x$enable_cairo_output = xtry; then
20239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20240
$as_echo_n "checking for CAIRO... " >&6; }
20242
if test -n "$CAIRO_CFLAGS"; then
20243
pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20244
elif test -n "$PKG_CONFIG"; then
20245
if test -n "$PKG_CONFIG" && \
20246
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5
20247
($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5
20249
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20250
test $ac_status = 0; }; then
20251
pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION" 2>/dev/null`
20258
if test -n "$CAIRO_LIBS"; then
20259
pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20260
elif test -n "$PKG_CONFIG"; then
20261
if test -n "$PKG_CONFIG" && \
20262
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= \$CAIRO_VERSION\""; } >&5
20263
($PKG_CONFIG --exists --print-errors "cairo >= $CAIRO_VERSION") 2>&5
20265
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20266
test $ac_status = 0; }; then
20267
pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= $CAIRO_VERSION" 2>/dev/null`
20277
if test $pkg_failed = yes; then
20278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20279
$as_echo "no" >&6; }
20281
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20282
_pkg_short_errors_supported=yes
20284
_pkg_short_errors_supported=no
20286
if test $_pkg_short_errors_supported = yes; then
20287
CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= $CAIRO_VERSION" 2>&1`
20289
CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= $CAIRO_VERSION" 2>&1`
20291
# Put the nasty error message in config.log where it belongs
20292
echo "$CAIRO_PKG_ERRORS" >&5
20294
enable_cairo_output="no"
20295
elif test $pkg_failed = untried; then
20296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20297
$as_echo "no" >&6; }
20298
enable_cairo_output="no"
20300
CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20301
CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20303
$as_echo "yes" >&6; }
20304
enable_cairo_output="yes"
20311
if test x$enable_cairo_output = xyes; then
20312
BUILD_CAIRO_OUTPUT_TRUE=
20313
BUILD_CAIRO_OUTPUT_FALSE='#'
20315
BUILD_CAIRO_OUTPUT_TRUE='#'
20316
BUILD_CAIRO_OUTPUT_FALSE=
20320
if test x$enable_cairo_output = xyes; then
20321
$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20323
CAIRO_FEATURE="#define POPPLER_HAS_CAIRO 1"
20325
for ac_header in fcntl.h sys/mman.h sys/stat.h
20327
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20328
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20329
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20330
cat >>confdefs.h <<_ACEOF
20331
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20339
CAIRO_FEATURE="#undef POPPLER_HAS_CAIRO"
20345
found_introspection=no
20346
if test x$enable_cairo_output = xyes; then
20347
POPPLER_GLIB_DISABLE_DEPRECATED=""
20348
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES=""
20351
# Check whether --enable-poppler-glib was given.
20352
if test "${enable_poppler_glib+set}" = set; then :
20353
enableval=$enable_poppler_glib; enable_poppler_glib=$enableval
20355
enable_poppler_glib="try"
20358
if test x$enable_poppler_glib = xyes; then
20361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_GLIB" >&5
20362
$as_echo_n "checking for POPPLER_GLIB... " >&6; }
20364
if test -n "$POPPLER_GLIB_CFLAGS"; then
20365
pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS"
20366
elif test -n "$PKG_CONFIG"; then
20367
if test -n "$PKG_CONFIG" && \
20368
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5
20369
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5
20371
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20372
test $ac_status = 0; }; then
20373
pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null`
20380
if test -n "$POPPLER_GLIB_LIBS"; then
20381
pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS"
20382
elif test -n "$PKG_CONFIG"; then
20383
if test -n "$PKG_CONFIG" && \
20384
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5
20385
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5
20387
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20388
test $ac_status = 0; }; then
20389
pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null`
20399
if test $pkg_failed = yes; then
20400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20401
$as_echo "no" >&6; }
20403
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20404
_pkg_short_errors_supported=yes
20406
_pkg_short_errors_supported=no
20408
if test $_pkg_short_errors_supported = yes; then
20409
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1`
20411
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1`
20413
# Put the nasty error message in config.log where it belongs
20414
echo "$POPPLER_GLIB_PKG_ERRORS" >&5
20416
as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION) were not met:
20418
$POPPLER_GLIB_PKG_ERRORS
20420
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20421
installed software in a non-standard prefix.
20423
Alternatively, you may set the environment variables POPPLER_GLIB_CFLAGS
20424
and POPPLER_GLIB_LIBS to avoid the need to call pkg-config.
20425
See the pkg-config man page for more details." "$LINENO" 5
20426
elif test $pkg_failed = untried; then
20427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20428
$as_echo "no" >&6; }
20429
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20430
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20431
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20432
is in your PATH or set the PKG_CONFIG environment variable to the full
20433
path to pkg-config.
20435
Alternatively, you may set the environment variables POPPLER_GLIB_CFLAGS
20436
and POPPLER_GLIB_LIBS to avoid the need to call pkg-config.
20437
See the pkg-config man page for more details.
20439
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20440
See \`config.log' for more details" "$LINENO" 5; }
20442
POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS
20443
POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS
20444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20445
$as_echo "yes" >&6; }
20448
elif test x$enable_poppler_glib = xtry; then
20451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_GLIB" >&5
20452
$as_echo_n "checking for POPPLER_GLIB... " >&6; }
20454
if test -n "$POPPLER_GLIB_CFLAGS"; then
20455
pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS"
20456
elif test -n "$PKG_CONFIG"; then
20457
if test -n "$PKG_CONFIG" && \
20458
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5
20459
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5
20461
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20462
test $ac_status = 0; }; then
20463
pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null`
20470
if test -n "$POPPLER_GLIB_LIBS"; then
20471
pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS"
20472
elif test -n "$PKG_CONFIG"; then
20473
if test -n "$PKG_CONFIG" && \
20474
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED cairo >= \$CAIRO_VERSION\""; } >&5
20475
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION") 2>&5
20477
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20478
test $ac_status = 0; }; then
20479
pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>/dev/null`
20489
if test $pkg_failed = yes; then
20490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20491
$as_echo "no" >&6; }
20493
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20494
_pkg_short_errors_supported=yes
20496
_pkg_short_errors_supported=no
20498
if test $_pkg_short_errors_supported = yes; then
20499
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1`
20501
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION" 2>&1`
20503
# Put the nasty error message in config.log where it belongs
20504
echo "$POPPLER_GLIB_PKG_ERRORS" >&5
20506
enable_poppler_glib="no"
20507
elif test $pkg_failed = untried; then
20508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509
$as_echo "no" >&6; }
20510
enable_poppler_glib="no"
20512
POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS
20513
POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS
20514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20515
$as_echo "yes" >&6; }
20516
enable_poppler_glib="yes"
20519
if test x$enable_poppler_glib = xyes; then
20520
# Check for introspection
20524
# Check whether --enable-introspection was given.
20525
if test "${enable_introspection+set}" = set; then :
20526
enableval=$enable_introspection;
20528
enable_introspection=auto
20532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20533
$as_echo_n "checking for gobject-introspection... " >&6; }
20535
case $enable_introspection in #(
20537
found_introspection="no (disabled, use --enable-introspection to enable)"
20540
if test -n "$PKG_CONFIG" && \
20541
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20542
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20544
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20545
test $ac_status = 0; }; then
20548
as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20550
if test -n "$PKG_CONFIG" && \
20551
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
20552
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
20554
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20555
test $ac_status = 0; }; then
20556
found_introspection=yes
20558
as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build poppler" "$LINENO" 5
20562
if test -n "$PKG_CONFIG" && \
20563
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
20564
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
20566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567
test $ac_status = 0; }; then
20568
found_introspection=yes
20570
found_introspection=no
20574
as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20578
$as_echo "$found_introspection" >&6; }
20580
INTROSPECTION_SCANNER=
20581
INTROSPECTION_COMPILER=
20582
INTROSPECTION_GENERATE=
20583
INTROSPECTION_GIRDIR=
20584
INTROSPECTION_TYPELIBDIR=
20585
if test "x$found_introspection" = "xyes"; then
20586
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20587
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20588
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20589
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
20590
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
20591
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20592
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20593
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20604
if test "x$found_introspection" = "xyes"; then
20605
HAVE_INTROSPECTION_TRUE=
20606
HAVE_INTROSPECTION_FALSE='#'
20608
HAVE_INTROSPECTION_TRUE='#'
20609
HAVE_INTROSPECTION_FALSE=
20615
GLIB_REQ="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION"
20616
# Extract the first word of "glib-mkenums", so it can be a program name with args.
20617
set dummy glib-mkenums; ac_word=$2
20618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20619
$as_echo_n "checking for $ac_word... " >&6; }
20620
if ${ac_cv_path_GLIB_MKENUMS+:} false; then :
20621
$as_echo_n "(cached) " >&6
20623
case $GLIB_MKENUMS in
20625
ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
20628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20629
for as_dir in $PATH
20632
test -z "$as_dir" && as_dir=.
20633
for ac_exec_ext in '' $ac_executable_extensions; do
20634
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20635
ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
20636
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20646
GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
20647
if test -n "$GLIB_MKENUMS"; then
20648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
20649
$as_echo "$GLIB_MKENUMS" >&6; }
20651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20652
$as_echo "no" >&6; }
20656
POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED"
20657
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DG_DISABLE_SINGLE_INCLUDES"
20660
if test x$enable_poppler_glib = xyes; then
20661
as_fn_error $? "\"Cairo output is required to build glib frontend\"" "$LINENO" 5
20663
enable_poppler_glib="no"
20666
if test x$enable_poppler_glib = xyes; then
20667
BUILD_POPPLER_GLIB_TRUE=
20668
BUILD_POPPLER_GLIB_FALSE='#'
20670
BUILD_POPPLER_GLIB_TRUE='#'
20671
BUILD_POPPLER_GLIB_FALSE=
20674
if test "x$found_introspection" = "xyes"; then
20675
HAVE_INTROSPECTION_TRUE=
20676
HAVE_INTROSPECTION_FALSE='#'
20678
HAVE_INTROSPECTION_TRUE='#'
20679
HAVE_INTROSPECTION_FALSE=
20686
# Extract the first word of "gtkdoc-check", so it can be a program name with args.
20687
set dummy gtkdoc-check; ac_word=$2
20688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20689
$as_echo_n "checking for $ac_word... " >&6; }
20690
if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
20691
$as_echo_n "(cached) " >&6
20693
case $GTKDOC_CHECK in
20695
ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20699
for as_dir in $PATH
20702
test -z "$as_dir" && as_dir=.
20703
for ac_exec_ext in '' $ac_executable_extensions; do
20704
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20705
ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20706
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20716
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
20717
if test -n "$GTKDOC_CHECK"; then
20718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
20719
$as_echo "$GTKDOC_CHECK" >&6; }
20721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20722
$as_echo "no" >&6; }
20726
for ac_prog in gtkdoc-rebase
20728
# Extract the first word of "$ac_prog", so it can be a program name with args.
20729
set dummy $ac_prog; ac_word=$2
20730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20731
$as_echo_n "checking for $ac_word... " >&6; }
20732
if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
20733
$as_echo_n "(cached) " >&6
20735
case $GTKDOC_REBASE in
20737
ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
20740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20741
for as_dir in $PATH
20744
test -z "$as_dir" && as_dir=.
20745
for ac_exec_ext in '' $ac_executable_extensions; do
20746
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20747
ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
20748
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20758
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
20759
if test -n "$GTKDOC_REBASE"; then
20760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
20761
$as_echo "$GTKDOC_REBASE" >&6; }
20763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20764
$as_echo "no" >&6; }
20768
test -n "$GTKDOC_REBASE" && break
20770
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
20772
# Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
20773
set dummy gtkdoc-mkpdf; ac_word=$2
20774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20775
$as_echo_n "checking for $ac_word... " >&6; }
20776
if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
20777
$as_echo_n "(cached) " >&6
20779
case $GTKDOC_MKPDF in
20781
ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
20784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785
for as_dir in $PATH
20788
test -z "$as_dir" && as_dir=.
20789
for ac_exec_ext in '' $ac_executable_extensions; do
20790
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20791
ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
20792
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20802
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
20803
if test -n "$GTKDOC_MKPDF"; then
20804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
20805
$as_echo "$GTKDOC_MKPDF" >&6; }
20807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20808
$as_echo "no" >&6; }
20814
# Check whether --with-html-dir was given.
20815
if test "${with_html_dir+set}" = set; then :
20816
withval=$with_html_dir;
20818
with_html_dir='${datadir}/gtk-doc/html'
20821
HTML_DIR="$with_html_dir"
20824
# Check whether --enable-gtk-doc was given.
20825
if test "${enable_gtk_doc+set}" = set; then :
20826
enableval=$enable_gtk_doc;
20832
if test x$enable_gtk_doc = xyes; then
20833
if test -n "$PKG_CONFIG" && \
20834
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.14\""; } >&5
20835
($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.14") 2>&5
20837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20838
test $ac_status = 0; }; then
20841
as_fn_error $? "You need to have gtk-doc >= 1.14 installed to build $PACKAGE_NAME" "$LINENO" 5
20845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
20846
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
20847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
20848
$as_echo "$enable_gtk_doc" >&6; }
20850
# Check whether --enable-gtk-doc-html was given.
20851
if test "${enable_gtk_doc_html+set}" = set; then :
20852
enableval=$enable_gtk_doc_html;
20854
enable_gtk_doc_html=yes
20857
# Check whether --enable-gtk-doc-pdf was given.
20858
if test "${enable_gtk_doc_pdf+set}" = set; then :
20859
enableval=$enable_gtk_doc_pdf;
20861
enable_gtk_doc_pdf=no
20865
if test -z "$GTKDOC_MKPDF"; then
20866
enable_gtk_doc_pdf=no
20870
if test x$enable_gtk_doc = xyes; then
20871
ENABLE_GTK_DOC_TRUE=
20872
ENABLE_GTK_DOC_FALSE='#'
20874
ENABLE_GTK_DOC_TRUE='#'
20875
ENABLE_GTK_DOC_FALSE=
20878
if test x$enable_gtk_doc_html = xyes; then
20879
GTK_DOC_BUILD_HTML_TRUE=
20880
GTK_DOC_BUILD_HTML_FALSE='#'
20882
GTK_DOC_BUILD_HTML_TRUE='#'
20883
GTK_DOC_BUILD_HTML_FALSE=
20886
if test x$enable_gtk_doc_pdf = xyes; then
20887
GTK_DOC_BUILD_PDF_TRUE=
20888
GTK_DOC_BUILD_PDF_FALSE='#'
20890
GTK_DOC_BUILD_PDF_TRUE='#'
20891
GTK_DOC_BUILD_PDF_FALSE=
20894
if test -n "$LIBTOOL"; then
20895
GTK_DOC_USE_LIBTOOL_TRUE=
20896
GTK_DOC_USE_LIBTOOL_FALSE='#'
20898
GTK_DOC_USE_LIBTOOL_TRUE='#'
20899
GTK_DOC_USE_LIBTOOL_FALSE=
20902
if test -n "$GTKDOC_REBASE"; then
20903
GTK_DOC_USE_REBASE_TRUE=
20904
GTK_DOC_USE_REBASE_FALSE='#'
20906
GTK_DOC_USE_REBASE_TRUE='#'
20907
GTK_DOC_USE_REBASE_FALSE=
20912
# Check whether --enable-gdk was given.
20913
if test "${enable_gdk+set}" = set; then :
20914
enableval=$enable_gdk; enable_gdk=$enableval
20920
if test x$enable_poppler_glib = xyes; then
20921
if test x$enable_gdk = xyes; then
20924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5
20925
$as_echo_n "checking for GDK... " >&6; }
20927
if test -n "$GDK_CFLAGS"; then
20928
pkg_cv_GDK_CFLAGS="$GDK_CFLAGS"
20929
elif test -n "$PKG_CONFIG"; then
20930
if test -n "$PKG_CONFIG" && \
20931
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5
20932
($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5
20934
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20935
test $ac_status = 0; }; then
20936
pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0" 2>/dev/null`
20943
if test -n "$GDK_LIBS"; then
20944
pkg_cv_GDK_LIBS="$GDK_LIBS"
20945
elif test -n "$PKG_CONFIG"; then
20946
if test -n "$PKG_CONFIG" && \
20947
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5
20948
($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5
20950
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20951
test $ac_status = 0; }; then
20952
pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0" 2>/dev/null`
20962
if test $pkg_failed = yes; then
20963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964
$as_echo "no" >&6; }
20966
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20967
_pkg_short_errors_supported=yes
20969
_pkg_short_errors_supported=no
20971
if test $_pkg_short_errors_supported = yes; then
20972
GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-2.0" 2>&1`
20974
GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-2.0" 2>&1`
20976
# Put the nasty error message in config.log where it belongs
20977
echo "$GDK_PKG_ERRORS" >&5
20979
as_fn_error $? "Package requirements (gdk-2.0) were not met:
20983
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20984
installed software in a non-standard prefix.
20986
Alternatively, you may set the environment variables GDK_CFLAGS
20987
and GDK_LIBS to avoid the need to call pkg-config.
20988
See the pkg-config man page for more details." "$LINENO" 5
20989
elif test $pkg_failed = untried; then
20990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20991
$as_echo "no" >&6; }
20992
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20993
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20994
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20995
is in your PATH or set the PKG_CONFIG environment variable to the full
20996
path to pkg-config.
20998
Alternatively, you may set the environment variables GDK_CFLAGS
20999
and GDK_LIBS to avoid the need to call pkg-config.
21000
See the pkg-config man page for more details.
21002
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21003
See \`config.log' for more details" "$LINENO" 5; }
21005
GDK_CFLAGS=$pkg_cv_GDK_CFLAGS
21006
GDK_LIBS=$pkg_cv_GDK_LIBS
21007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21008
$as_echo "yes" >&6; }
21011
elif test x$enable_gdk = xtry; then
21014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5
21015
$as_echo_n "checking for GDK... " >&6; }
21017
if test -n "$GDK_CFLAGS"; then
21018
pkg_cv_GDK_CFLAGS="$GDK_CFLAGS"
21019
elif test -n "$PKG_CONFIG"; then
21020
if test -n "$PKG_CONFIG" && \
21021
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5
21022
($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5
21024
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21025
test $ac_status = 0; }; then
21026
pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0" 2>/dev/null`
21033
if test -n "$GDK_LIBS"; then
21034
pkg_cv_GDK_LIBS="$GDK_LIBS"
21035
elif test -n "$PKG_CONFIG"; then
21036
if test -n "$PKG_CONFIG" && \
21037
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-2.0\""; } >&5
21038
($PKG_CONFIG --exists --print-errors "gdk-2.0") 2>&5
21040
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21041
test $ac_status = 0; }; then
21042
pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0" 2>/dev/null`
21052
if test $pkg_failed = yes; then
21053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21054
$as_echo "no" >&6; }
21056
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21057
_pkg_short_errors_supported=yes
21059
_pkg_short_errors_supported=no
21061
if test $_pkg_short_errors_supported = yes; then
21062
GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-2.0" 2>&1`
21064
GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-2.0" 2>&1`
21066
# Put the nasty error message in config.log where it belongs
21067
echo "$GDK_PKG_ERRORS" >&5
21070
elif test $pkg_failed = untried; then
21071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072
$as_echo "no" >&6; }
21075
GDK_CFLAGS=$pkg_cv_GDK_CFLAGS
21076
GDK_LIBS=$pkg_cv_GDK_LIBS
21077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21078
$as_echo "yes" >&6; }
21082
if test x$enable_gdk = xyes; then
21083
GDK_REQ="gdk-2.0 gdk-pixbuf-2.0"
21085
$as_echo "#define POPPLER_WITH_GDK 1" >>confdefs.h
21087
GDK_FEATURE="#define POPPLER_WITH_GDK 1"
21088
POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
21089
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
21099
if test x$enable_gdk = xyes; then
21100
BUILD_WITH_GDK_TRUE=
21101
BUILD_WITH_GDK_FALSE='#'
21103
BUILD_WITH_GDK_TRUE='#'
21104
BUILD_WITH_GDK_FALSE=
21115
# Check whether --enable-poppler-qt was given.
21116
if test "${enable_poppler_qt+set}" = set; then :
21117
enableval=$enable_poppler_qt; enable_poppler_qt=$enableval
21119
enable_poppler_qt="try"
21123
if test x$enable_poppler_qt = xyes; then
21127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libqt3" >&5
21128
$as_echo_n "checking for libqt3... " >&6; }
21130
if test -n "$libqt3_CFLAGS"; then
21131
pkg_cv_libqt3_CFLAGS="$libqt3_CFLAGS"
21132
elif test -n "$PKG_CONFIG"; then
21133
if test -n "$PKG_CONFIG" && \
21134
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
21135
($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
21137
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138
test $ac_status = 0; }; then
21139
pkg_cv_libqt3_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null`
21146
if test -n "$libqt3_LIBS"; then
21147
pkg_cv_libqt3_LIBS="$libqt3_LIBS"
21148
elif test -n "$PKG_CONFIG"; then
21149
if test -n "$PKG_CONFIG" && \
21150
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
21151
($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
21153
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21154
test $ac_status = 0; }; then
21155
pkg_cv_libqt3_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null`
21165
if test $pkg_failed = yes; then
21166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21167
$as_echo "no" >&6; }
21169
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21170
_pkg_short_errors_supported=yes
21172
_pkg_short_errors_supported=no
21174
if test $_pkg_short_errors_supported = yes; then
21175
libqt3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "qt-mt" 2>&1`
21177
libqt3_PKG_ERRORS=`$PKG_CONFIG --print-errors "qt-mt" 2>&1`
21179
# Put the nasty error message in config.log where it belongs
21180
echo "$libqt3_PKG_ERRORS" >&5
21183
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21184
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21185
as_fn_error $? "Qt development libraries not found
21186
See \`config.log' for more details" "$LINENO" 5; }
21188
elif test $pkg_failed = untried; then
21189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190
$as_echo "no" >&6; }
21192
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21193
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21194
as_fn_error $? "Qt development libraries not found
21195
See \`config.log' for more details" "$LINENO" 5; }
21198
libqt3_CFLAGS=$pkg_cv_libqt3_CFLAGS
21199
libqt3_LIBS=$pkg_cv_libqt3_LIBS
21200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21201
$as_echo "yes" >&6; }
21208
elif test x$enable_poppler_qt = xtry; then
21212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libqt3" >&5
21213
$as_echo_n "checking for libqt3... " >&6; }
21215
if test -n "$libqt3_CFLAGS"; then
21216
pkg_cv_libqt3_CFLAGS="$libqt3_CFLAGS"
21217
elif test -n "$PKG_CONFIG"; then
21218
if test -n "$PKG_CONFIG" && \
21219
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
21220
($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
21222
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21223
test $ac_status = 0; }; then
21224
pkg_cv_libqt3_CFLAGS=`$PKG_CONFIG --cflags "qt-mt" 2>/dev/null`
21231
if test -n "$libqt3_LIBS"; then
21232
pkg_cv_libqt3_LIBS="$libqt3_LIBS"
21233
elif test -n "$PKG_CONFIG"; then
21234
if test -n "$PKG_CONFIG" && \
21235
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"qt-mt\""; } >&5
21236
($PKG_CONFIG --exists --print-errors "qt-mt") 2>&5
21238
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21239
test $ac_status = 0; }; then
21240
pkg_cv_libqt3_LIBS=`$PKG_CONFIG --libs "qt-mt" 2>/dev/null`
21250
if test $pkg_failed = yes; then
21251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21252
$as_echo "no" >&6; }
21254
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21255
_pkg_short_errors_supported=yes
21257
_pkg_short_errors_supported=no
21259
if test $_pkg_short_errors_supported = yes; then
21260
libqt3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "qt-mt" 2>&1`
21262
libqt3_PKG_ERRORS=`$PKG_CONFIG --print-errors "qt-mt" 2>&1`
21264
# Put the nasty error message in config.log where it belongs
21265
echo "$libqt3_PKG_ERRORS" >&5
21268
enable_poppler_qt="no"
21270
elif test $pkg_failed = untried; then
21271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21272
$as_echo "no" >&6; }
21274
enable_poppler_qt="no"
21277
libqt3_CFLAGS=$pkg_cv_libqt3_CFLAGS
21278
libqt3_LIBS=$pkg_cv_libqt3_LIBS
21279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280
$as_echo "yes" >&6; }
21282
enable_poppler_qt="yes"
21291
if test "x$enable_poppler_qt" = "xyes"; then
21292
BUILD_POPPLER_QT_TRUE=
21293
BUILD_POPPLER_QT_FALSE='#'
21295
BUILD_POPPLER_QT_TRUE='#'
21296
BUILD_POPPLER_QT_FALSE=
21301
# Check whether --enable-poppler-qt4 was given.
21302
if test "${enable_poppler_qt4+set}" = set; then :
21303
enableval=$enable_poppler_qt4; enable_poppler_qt4=$enableval
21305
enable_poppler_qt4="try"
21308
if test x$enable_poppler_qt4 = xyes; then
21311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4" >&5
21312
$as_echo_n "checking for POPPLER_QT4... " >&6; }
21314
if test -n "$POPPLER_QT4_CFLAGS"; then
21315
pkg_cv_POPPLER_QT4_CFLAGS="$POPPLER_QT4_CFLAGS"
21316
elif test -n "$PKG_CONFIG"; then
21317
if test -n "$PKG_CONFIG" && \
21318
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5
21319
($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5
21321
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21322
test $ac_status = 0; }; then
21323
pkg_cv_POPPLER_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null`
21330
if test -n "$POPPLER_QT4_LIBS"; then
21331
pkg_cv_POPPLER_QT4_LIBS="$POPPLER_QT4_LIBS"
21332
elif test -n "$PKG_CONFIG"; then
21333
if test -n "$PKG_CONFIG" && \
21334
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5
21335
($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5
21337
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21338
test $ac_status = 0; }; then
21339
pkg_cv_POPPLER_QT4_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null`
21349
if test $pkg_failed = yes; then
21350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351
$as_echo "no" >&6; }
21353
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21354
_pkg_short_errors_supported=yes
21356
_pkg_short_errors_supported=no
21358
if test $_pkg_short_errors_supported = yes; then
21359
POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1`
21361
POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1`
21363
# Put the nasty error message in config.log where it belongs
21364
echo "$POPPLER_QT4_PKG_ERRORS" >&5
21366
as_fn_error $? "Package requirements (QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0) were not met:
21368
$POPPLER_QT4_PKG_ERRORS
21370
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21371
installed software in a non-standard prefix.
21373
Alternatively, you may set the environment variables POPPLER_QT4_CFLAGS
21374
and POPPLER_QT4_LIBS to avoid the need to call pkg-config.
21375
See the pkg-config man page for more details." "$LINENO" 5
21376
elif test $pkg_failed = untried; then
21377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378
$as_echo "no" >&6; }
21379
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21380
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21381
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21382
is in your PATH or set the PKG_CONFIG environment variable to the full
21383
path to pkg-config.
21385
Alternatively, you may set the environment variables POPPLER_QT4_CFLAGS
21386
and POPPLER_QT4_LIBS to avoid the need to call pkg-config.
21387
See the pkg-config man page for more details.
21389
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21390
See \`config.log' for more details" "$LINENO" 5; }
21392
POPPLER_QT4_CFLAGS=$pkg_cv_POPPLER_QT4_CFLAGS
21393
POPPLER_QT4_LIBS=$pkg_cv_POPPLER_QT4_LIBS
21394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21395
$as_echo "yes" >&6; }
21400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4_TEST" >&5
21401
$as_echo_n "checking for POPPLER_QT4_TEST... " >&6; }
21403
if test -n "$POPPLER_QT4_TEST_CFLAGS"; then
21404
pkg_cv_POPPLER_QT4_TEST_CFLAGS="$POPPLER_QT4_TEST_CFLAGS"
21405
elif test -n "$PKG_CONFIG"; then
21406
if test -n "$PKG_CONFIG" && \
21407
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5
21408
($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5
21410
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21411
test $ac_status = 0; }; then
21412
pkg_cv_POPPLER_QT4_TEST_CFLAGS=`$PKG_CONFIG --cflags "QtTest >= 4.4.0" 2>/dev/null`
21419
if test -n "$POPPLER_QT4_TEST_LIBS"; then
21420
pkg_cv_POPPLER_QT4_TEST_LIBS="$POPPLER_QT4_TEST_LIBS"
21421
elif test -n "$PKG_CONFIG"; then
21422
if test -n "$PKG_CONFIG" && \
21423
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5
21424
($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5
21426
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21427
test $ac_status = 0; }; then
21428
pkg_cv_POPPLER_QT4_TEST_LIBS=`$PKG_CONFIG --libs "QtTest >= 4.4.0" 2>/dev/null`
21438
if test $pkg_failed = yes; then
21439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440
$as_echo "no" >&6; }
21442
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21443
_pkg_short_errors_supported=yes
21445
_pkg_short_errors_supported=no
21447
if test $_pkg_short_errors_supported = yes; then
21448
POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtTest >= 4.4.0" 2>&1`
21450
POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtTest >= 4.4.0" 2>&1`
21452
# Put the nasty error message in config.log where it belongs
21453
echo "$POPPLER_QT4_TEST_PKG_ERRORS" >&5
21455
as_fn_error $? "Package requirements (QtTest >= 4.4.0) were not met:
21457
$POPPLER_QT4_TEST_PKG_ERRORS
21459
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21460
installed software in a non-standard prefix.
21462
Alternatively, you may set the environment variables POPPLER_QT4_TEST_CFLAGS
21463
and POPPLER_QT4_TEST_LIBS to avoid the need to call pkg-config.
21464
See the pkg-config man page for more details." "$LINENO" 5
21465
elif test $pkg_failed = untried; then
21466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467
$as_echo "no" >&6; }
21468
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21469
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21470
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21471
is in your PATH or set the PKG_CONFIG environment variable to the full
21472
path to pkg-config.
21474
Alternatively, you may set the environment variables POPPLER_QT4_TEST_CFLAGS
21475
and POPPLER_QT4_TEST_LIBS to avoid the need to call pkg-config.
21476
See the pkg-config man page for more details.
21478
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21479
See \`config.log' for more details" "$LINENO" 5; }
21481
POPPLER_QT4_TEST_CFLAGS=$pkg_cv_POPPLER_QT4_TEST_CFLAGS
21482
POPPLER_QT4_TEST_LIBS=$pkg_cv_POPPLER_QT4_TEST_LIBS
21483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21484
$as_echo "yes" >&6; }
21487
elif test x$enable_poppler_qt4 = xtry; then
21490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4" >&5
21491
$as_echo_n "checking for POPPLER_QT4... " >&6; }
21493
if test -n "$POPPLER_QT4_CFLAGS"; then
21494
pkg_cv_POPPLER_QT4_CFLAGS="$POPPLER_QT4_CFLAGS"
21495
elif test -n "$PKG_CONFIG"; then
21496
if test -n "$PKG_CONFIG" && \
21497
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5
21498
($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5
21500
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21501
test $ac_status = 0; }; then
21502
pkg_cv_POPPLER_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null`
21509
if test -n "$POPPLER_QT4_LIBS"; then
21510
pkg_cv_POPPLER_QT4_LIBS="$POPPLER_QT4_LIBS"
21511
elif test -n "$PKG_CONFIG"; then
21512
if test -n "$PKG_CONFIG" && \
21513
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0\""; } >&5
21514
($PKG_CONFIG --exists --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0") 2>&5
21516
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21517
test $ac_status = 0; }; then
21518
pkg_cv_POPPLER_QT4_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>/dev/null`
21528
if test $pkg_failed = yes; then
21529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530
$as_echo "no" >&6; }
21532
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21533
_pkg_short_errors_supported=yes
21535
_pkg_short_errors_supported=no
21537
if test $_pkg_short_errors_supported = yes; then
21538
POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1`
21540
POPPLER_QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore >= 4.4.0 QtGui >= 4.4.0 QtXml >= 4.4.0" 2>&1`
21542
# Put the nasty error message in config.log where it belongs
21543
echo "$POPPLER_QT4_PKG_ERRORS" >&5
21545
enable_poppler_qt4="no"
21546
elif test $pkg_failed = untried; then
21547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21548
$as_echo "no" >&6; }
21549
enable_poppler_qt4="no"
21551
POPPLER_QT4_CFLAGS=$pkg_cv_POPPLER_QT4_CFLAGS
21552
POPPLER_QT4_LIBS=$pkg_cv_POPPLER_QT4_LIBS
21553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21554
$as_echo "yes" >&6; }
21555
enable_poppler_qt4="yes"
21557
if test x$enable_poppler_qt4 = xyes; then
21560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_QT4_TEST" >&5
21561
$as_echo_n "checking for POPPLER_QT4_TEST... " >&6; }
21563
if test -n "$POPPLER_QT4_TEST_CFLAGS"; then
21564
pkg_cv_POPPLER_QT4_TEST_CFLAGS="$POPPLER_QT4_TEST_CFLAGS"
21565
elif test -n "$PKG_CONFIG"; then
21566
if test -n "$PKG_CONFIG" && \
21567
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5
21568
($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5
21570
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21571
test $ac_status = 0; }; then
21572
pkg_cv_POPPLER_QT4_TEST_CFLAGS=`$PKG_CONFIG --cflags "QtTest >= 4.4.0" 2>/dev/null`
21579
if test -n "$POPPLER_QT4_TEST_LIBS"; then
21580
pkg_cv_POPPLER_QT4_TEST_LIBS="$POPPLER_QT4_TEST_LIBS"
21581
elif test -n "$PKG_CONFIG"; then
21582
if test -n "$PKG_CONFIG" && \
21583
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtTest >= 4.4.0\""; } >&5
21584
($PKG_CONFIG --exists --print-errors "QtTest >= 4.4.0") 2>&5
21586
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21587
test $ac_status = 0; }; then
21588
pkg_cv_POPPLER_QT4_TEST_LIBS=`$PKG_CONFIG --libs "QtTest >= 4.4.0" 2>/dev/null`
21598
if test $pkg_failed = yes; then
21599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21600
$as_echo "no" >&6; }
21602
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21603
_pkg_short_errors_supported=yes
21605
_pkg_short_errors_supported=no
21607
if test $_pkg_short_errors_supported = yes; then
21608
POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtTest >= 4.4.0" 2>&1`
21610
POPPLER_QT4_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtTest >= 4.4.0" 2>&1`
21612
# Put the nasty error message in config.log where it belongs
21613
echo "$POPPLER_QT4_TEST_PKG_ERRORS" >&5
21615
enable_poppler_qt4="no"
21616
elif test $pkg_failed = untried; then
21617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618
$as_echo "no" >&6; }
21619
enable_poppler_qt4="no"
21621
POPPLER_QT4_TEST_CFLAGS=$pkg_cv_POPPLER_QT4_TEST_CFLAGS
21622
POPPLER_QT4_TEST_LIBS=$pkg_cv_POPPLER_QT4_TEST_LIBS
21623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21624
$as_echo "yes" >&6; }
21625
enable_poppler_qt4="yes"
21634
if test x$enable_poppler_qt4 = xyes; then
21635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 moc" >&5
21636
$as_echo_n "checking for Qt4 moc... " >&6; }
21638
mocversion=`$MOCQT4 -v 2>&1`
21639
mocversiongrep=`echo $mocversion | grep "Qt 4"`
21640
if test x"$mocversiongrep" != x"$mocversion"; then
21641
# moc was not the qt4 one, try with moc-qt4
21642
MOCQT4=`which moc-qt4`
21643
mocversion=`$MOCQT4 -v 2>&1`
21644
mocversiongrep=`echo $mocversion | grep "Qt 4"`
21645
if test x"$mocversiongrep" != x"$mocversion"; then
21646
# no valid moc found
21647
enable_poppler_qt4=no;
21652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOCQT4" >&5
21653
$as_echo "$MOCQT4" >&6; }
21656
if test "x$enable_poppler_qt4" = "xyes"; then
21657
BUILD_POPPLER_QT4_TRUE=
21658
BUILD_POPPLER_QT4_FALSE='#'
21660
BUILD_POPPLER_QT4_TRUE='#'
21661
BUILD_POPPLER_QT4_FALSE=
21666
# Check whether --enable-poppler-cpp was given.
21667
if test "${enable_poppler_cpp+set}" = set; then :
21668
enableval=$enable_poppler_cpp; enable_poppler_cpp=$enableval
21670
enable_poppler_cpp="yes"
21673
if test x$enable_poppler_cpp = xyes; then
21675
if test "X$prefix" = "XNONE"; then
21676
acl_final_prefix="$ac_default_prefix"
21678
acl_final_prefix="$prefix"
21680
if test "X$exec_prefix" = "XNONE"; then
21681
acl_final_exec_prefix='${prefix}'
21683
acl_final_exec_prefix="$exec_prefix"
21685
acl_save_prefix="$prefix"
21686
prefix="$acl_final_prefix"
21687
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21688
prefix="$acl_save_prefix"
21696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
21697
$as_echo_n "checking for 64-bit host... " >&6; }
21698
if ${gl_cv_solaris_64bit+:} false; then :
21699
$as_echo_n "(cached) " >&6
21701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702
/* end confdefs.h. */
21709
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21710
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
21711
gl_cv_solaris_64bit=yes
21713
gl_cv_solaris_64bit=no
21719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
21720
$as_echo "$gl_cv_solaris_64bit" >&6; }
21721
if test $gl_cv_solaris_64bit = yes; then
21722
acl_libdirstem=lib/64
21723
case "$host_cpu" in
21724
sparc*) acl_libdirstem2=lib/sparcv9 ;;
21725
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
21730
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21731
if test -n "$searchpath"; then
21732
acl_save_IFS="${IFS= }"; IFS=":"
21733
for searchdir in $searchpath; do
21734
if test -d "$searchdir"; then
21735
case "$searchdir" in
21736
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21738
# Better ignore directories of this form. They are misleading.
21740
*) searchdir=`cd "$searchdir" && pwd`
21741
case "$searchdir" in
21742
*/lib64 ) acl_libdirstem=lib64 ;;
21747
IFS="$acl_save_IFS"
21751
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
21765
acl_save_prefix="$prefix"
21766
prefix="$acl_final_prefix"
21767
acl_save_exec_prefix="$exec_prefix"
21768
exec_prefix="$acl_final_exec_prefix"
21770
eval additional_includedir=\"$includedir\"
21771
eval additional_libdir=\"$libdir\"
21773
exec_prefix="$acl_save_exec_prefix"
21774
prefix="$acl_save_prefix"
21777
# Check whether --with-libiconv-prefix was given.
21778
if test "${with_libiconv_prefix+set}" = set; then :
21779
withval=$with_libiconv_prefix;
21780
if test "X$withval" = "Xno"; then
21783
if test "X$withval" = "X"; then
21785
acl_save_prefix="$prefix"
21786
prefix="$acl_final_prefix"
21787
acl_save_exec_prefix="$exec_prefix"
21788
exec_prefix="$acl_final_exec_prefix"
21790
eval additional_includedir=\"$includedir\"
21791
eval additional_libdir=\"$libdir\"
21793
exec_prefix="$acl_save_exec_prefix"
21794
prefix="$acl_save_prefix"
21797
additional_includedir="$withval/include"
21798
additional_libdir="$withval/$acl_libdirstem"
21799
if test "$acl_libdirstem2" != "$acl_libdirstem" \
21800
&& ! test -d "$withval/$acl_libdirstem"; then
21801
additional_libdir="$withval/$acl_libdirstem2"
21815
names_already_handled=
21816
names_next_round='iconv '
21817
while test -n "$names_next_round"; do
21818
names_this_round="$names_next_round"
21820
for name in $names_this_round; do
21822
for n in $names_already_handled; do
21823
if test "$n" = "$name"; then
21824
already_handled=yes
21828
if test -z "$already_handled"; then
21829
names_already_handled="$names_already_handled $name"
21830
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21831
eval value=\"\$HAVE_LIB$uppername\"
21832
if test -n "$value"; then
21833
if test "$value" = yes; then
21834
eval value=\"\$LIB$uppername\"
21835
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21836
eval value=\"\$LTLIB$uppername\"
21837
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21846
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21847
if test -n "$acl_shlibext"; then
21848
shrext=".$acl_shlibext" # typically: shrext=.so
21852
if test $use_additional = yes; then
21853
dir="$additional_libdir"
21854
if test -n "$acl_shlibext"; then
21855
if test -f "$dir/$libname$shrext"; then
21857
found_so="$dir/$libname$shrext"
21859
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21860
ver=`(cd "$dir" && \
21861
for f in "$libname$shrext".*; do echo "$f"; done \
21862
| sed -e "s,^$libname$shrext\\\\.,," \
21863
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21864
| sed 1q ) 2>/dev/null`
21865
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21867
found_so="$dir/$libname$shrext.$ver"
21870
eval library_names=\"$acl_library_names_spec\"
21871
for f in $library_names; do
21872
if test -f "$dir/$f"; then
21881
if test "X$found_dir" = "X"; then
21882
if test -f "$dir/$libname.$acl_libext"; then
21884
found_a="$dir/$libname.$acl_libext"
21887
if test "X$found_dir" != "X"; then
21888
if test -f "$dir/$libname.la"; then
21889
found_la="$dir/$libname.la"
21893
if test "X$found_dir" = "X"; then
21894
for x in $LDFLAGS $LTLIBICONV; do
21896
acl_save_prefix="$prefix"
21897
prefix="$acl_final_prefix"
21898
acl_save_exec_prefix="$exec_prefix"
21899
exec_prefix="$acl_final_exec_prefix"
21901
exec_prefix="$acl_save_exec_prefix"
21902
prefix="$acl_save_prefix"
21906
dir=`echo "X$x" | sed -e 's/^X-L//'`
21907
if test -n "$acl_shlibext"; then
21908
if test -f "$dir/$libname$shrext"; then
21910
found_so="$dir/$libname$shrext"
21912
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21913
ver=`(cd "$dir" && \
21914
for f in "$libname$shrext".*; do echo "$f"; done \
21915
| sed -e "s,^$libname$shrext\\\\.,," \
21916
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21917
| sed 1q ) 2>/dev/null`
21918
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21920
found_so="$dir/$libname$shrext.$ver"
21923
eval library_names=\"$acl_library_names_spec\"
21924
for f in $library_names; do
21925
if test -f "$dir/$f"; then
21934
if test "X$found_dir" = "X"; then
21935
if test -f "$dir/$libname.$acl_libext"; then
21937
found_a="$dir/$libname.$acl_libext"
21940
if test "X$found_dir" != "X"; then
21941
if test -f "$dir/$libname.la"; then
21942
found_la="$dir/$libname.la"
21947
if test "X$found_dir" != "X"; then
21952
if test "X$found_dir" != "X"; then
21953
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21954
if test "X$found_so" != "X"; then
21955
if test "$enable_rpath" = no \
21956
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
21957
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21958
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21961
for x in $ltrpathdirs; do
21962
if test "X$x" = "X$found_dir"; then
21967
if test -z "$haveit"; then
21968
ltrpathdirs="$ltrpathdirs $found_dir"
21970
if test "$acl_hardcode_direct" = yes; then
21971
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21973
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21974
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21976
for x in $rpathdirs; do
21977
if test "X$x" = "X$found_dir"; then
21982
if test -z "$haveit"; then
21983
rpathdirs="$rpathdirs $found_dir"
21987
for x in $LDFLAGS $LIBICONV; do
21989
acl_save_prefix="$prefix"
21990
prefix="$acl_final_prefix"
21991
acl_save_exec_prefix="$exec_prefix"
21992
exec_prefix="$acl_final_exec_prefix"
21994
exec_prefix="$acl_save_exec_prefix"
21995
prefix="$acl_save_prefix"
21997
if test "X$x" = "X-L$found_dir"; then
22002
if test -z "$haveit"; then
22003
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22005
if test "$acl_hardcode_minus_L" != no; then
22006
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22008
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22014
if test "X$found_a" != "X"; then
22015
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22017
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22020
additional_includedir=
22021
case "$found_dir" in
22022
*/$acl_libdirstem | */$acl_libdirstem/)
22023
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22024
if test "$name" = 'iconv'; then
22025
LIBICONV_PREFIX="$basedir"
22027
additional_includedir="$basedir/include"
22029
*/$acl_libdirstem2 | */$acl_libdirstem2/)
22030
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22031
if test "$name" = 'iconv'; then
22032
LIBICONV_PREFIX="$basedir"
22034
additional_includedir="$basedir/include"
22037
if test "X$additional_includedir" != "X"; then
22038
if test "X$additional_includedir" != "X/usr/include"; then
22040
if test "X$additional_includedir" = "X/usr/local/include"; then
22041
if test -n "$GCC"; then
22043
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22047
if test -z "$haveit"; then
22048
for x in $CPPFLAGS $INCICONV; do
22050
acl_save_prefix="$prefix"
22051
prefix="$acl_final_prefix"
22052
acl_save_exec_prefix="$exec_prefix"
22053
exec_prefix="$acl_final_exec_prefix"
22055
exec_prefix="$acl_save_exec_prefix"
22056
prefix="$acl_save_prefix"
22058
if test "X$x" = "X-I$additional_includedir"; then
22063
if test -z "$haveit"; then
22064
if test -d "$additional_includedir"; then
22065
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22071
if test -n "$found_la"; then
22072
save_libdir="$libdir"
22073
case "$found_la" in
22074
*/* | *\\*) . "$found_la" ;;
22075
*) . "./$found_la" ;;
22077
libdir="$save_libdir"
22078
for dep in $dependency_libs; do
22081
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22082
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22083
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22085
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22086
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22087
if test -n "$GCC"; then
22089
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22093
if test -z "$haveit"; then
22095
for x in $LDFLAGS $LIBICONV; do
22097
acl_save_prefix="$prefix"
22098
prefix="$acl_final_prefix"
22099
acl_save_exec_prefix="$exec_prefix"
22100
exec_prefix="$acl_final_exec_prefix"
22102
exec_prefix="$acl_save_exec_prefix"
22103
prefix="$acl_save_prefix"
22105
if test "X$x" = "X-L$additional_libdir"; then
22110
if test -z "$haveit"; then
22111
if test -d "$additional_libdir"; then
22112
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22116
for x in $LDFLAGS $LTLIBICONV; do
22118
acl_save_prefix="$prefix"
22119
prefix="$acl_final_prefix"
22120
acl_save_exec_prefix="$exec_prefix"
22121
exec_prefix="$acl_final_exec_prefix"
22123
exec_prefix="$acl_save_exec_prefix"
22124
prefix="$acl_save_prefix"
22126
if test "X$x" = "X-L$additional_libdir"; then
22131
if test -z "$haveit"; then
22132
if test -d "$additional_libdir"; then
22133
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22140
dir=`echo "X$dep" | sed -e 's/^X-R//'`
22141
if test "$enable_rpath" != no; then
22143
for x in $rpathdirs; do
22144
if test "X$x" = "X$dir"; then
22149
if test -z "$haveit"; then
22150
rpathdirs="$rpathdirs $dir"
22153
for x in $ltrpathdirs; do
22154
if test "X$x" = "X$dir"; then
22159
if test -z "$haveit"; then
22160
ltrpathdirs="$ltrpathdirs $dir"
22165
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22168
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22171
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22172
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22178
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22179
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22185
if test "X$rpathdirs" != "X"; then
22186
if test -n "$acl_hardcode_libdir_separator"; then
22188
for found_dir in $rpathdirs; do
22189
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22191
acl_save_libdir="$libdir"
22193
eval flag=\"$acl_hardcode_libdir_flag_spec\"
22194
libdir="$acl_save_libdir"
22195
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22197
for found_dir in $rpathdirs; do
22198
acl_save_libdir="$libdir"
22199
libdir="$found_dir"
22200
eval flag=\"$acl_hardcode_libdir_flag_spec\"
22201
libdir="$acl_save_libdir"
22202
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22206
if test "X$ltrpathdirs" != "X"; then
22207
for found_dir in $ltrpathdirs; do
22208
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22223
am_save_CPPFLAGS="$CPPFLAGS"
22225
for element in $INCICONV; do
22227
for x in $CPPFLAGS; do
22229
acl_save_prefix="$prefix"
22230
prefix="$acl_final_prefix"
22231
acl_save_exec_prefix="$exec_prefix"
22232
exec_prefix="$acl_final_exec_prefix"
22234
exec_prefix="$acl_save_exec_prefix"
22235
prefix="$acl_save_prefix"
22237
if test "X$x" = "X$element"; then
22242
if test -z "$haveit"; then
22243
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22249
$as_echo_n "checking for iconv... " >&6; }
22250
if ${am_cv_func_iconv+:} false; then :
22251
$as_echo_n "(cached) " >&6
22254
am_cv_func_iconv="no, consider installing GNU libiconv"
22256
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257
/* end confdefs.h. */
22258
#include <stdlib.h>
22263
iconv_t cd = iconv_open("","");
22264
iconv(cd,NULL,NULL,NULL,NULL);
22270
if ac_fn_c_try_link "$LINENO"; then :
22271
am_cv_func_iconv=yes
22273
rm -f core conftest.err conftest.$ac_objext \
22274
conftest$ac_exeext conftest.$ac_ext
22275
if test "$am_cv_func_iconv" != yes; then
22276
am_save_LIBS="$LIBS"
22277
LIBS="$LIBS $LIBICONV"
22278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279
/* end confdefs.h. */
22280
#include <stdlib.h>
22285
iconv_t cd = iconv_open("","");
22286
iconv(cd,NULL,NULL,NULL,NULL);
22292
if ac_fn_c_try_link "$LINENO"; then :
22293
am_cv_lib_iconv=yes
22294
am_cv_func_iconv=yes
22296
rm -f core conftest.err conftest.$ac_objext \
22297
conftest$ac_exeext conftest.$ac_ext
22298
LIBS="$am_save_LIBS"
22302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22303
$as_echo "$am_cv_func_iconv" >&6; }
22304
if test "$am_cv_func_iconv" = yes; then
22305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
22306
$as_echo_n "checking for working iconv... " >&6; }
22307
if ${am_cv_func_iconv_works+:} false; then :
22308
$as_echo_n "(cached) " >&6
22311
am_save_LIBS="$LIBS"
22312
if test $am_cv_lib_iconv = yes; then
22313
LIBS="$LIBS $LIBICONV"
22315
if test "$cross_compiling" = yes; then :
22317
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22318
*) am_cv_func_iconv_works="guessing yes" ;;
22321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322
/* end confdefs.h. */
22325
#include <string.h>
22328
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22331
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22332
if (cd_utf8_to_88591 != (iconv_t)(-1))
22334
static const char input[] = "\342\202\254"; /* EURO SIGN */
22336
const char *inptr = input;
22337
size_t inbytesleft = strlen (input);
22338
char *outptr = buf;
22339
size_t outbytesleft = sizeof (buf);
22340
size_t res = iconv (cd_utf8_to_88591,
22341
(char **) &inptr, &inbytesleft,
22342
&outptr, &outbytesleft);
22347
#if 0 /* This bug could be worked around by the caller. */
22348
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22350
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22351
if (cd_88591_to_utf8 != (iconv_t)(-1))
22353
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22355
const char *inptr = input;
22356
size_t inbytesleft = strlen (input);
22357
char *outptr = buf;
22358
size_t outbytesleft = sizeof (buf);
22359
size_t res = iconv (cd_88591_to_utf8,
22360
(char **) &inptr, &inbytesleft,
22361
&outptr, &outbytesleft);
22367
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22369
if (/* Try standardized names. */
22370
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22371
/* Try IRIX, OSF/1 names. */
22372
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22373
/* Try AIX names. */
22374
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22375
/* Try HP-UX names. */
22376
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22381
if ac_fn_c_try_run "$LINENO"; then :
22382
am_cv_func_iconv_works=yes
22384
am_cv_func_iconv_works=no
22386
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22387
conftest.$ac_objext conftest.beam conftest.$ac_ext
22390
LIBS="$am_save_LIBS"
22393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
22394
$as_echo "$am_cv_func_iconv_works" >&6; }
22395
case "$am_cv_func_iconv_works" in
22396
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
22397
*) am_func_iconv=yes ;;
22400
am_func_iconv=no am_cv_lib_iconv=no
22402
if test "$am_func_iconv" = yes; then
22404
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
22407
if test "$am_cv_lib_iconv" = yes; then
22408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22409
$as_echo_n "checking how to link with libiconv... " >&6; }
22410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22411
$as_echo "$LIBICONV" >&6; }
22413
CPPFLAGS="$am_save_CPPFLAGS"
22420
if test "$am_cv_func_iconv" = yes; then
22421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22422
$as_echo_n "checking for iconv declaration... " >&6; }
22423
if ${am_cv_proto_iconv+:} false; then :
22424
$as_echo_n "(cached) " >&6
22427
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428
/* end confdefs.h. */
22430
#include <stdlib.h>
22436
#if defined(__STDC__) || defined(__cplusplus)
22437
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22450
if ac_fn_c_try_compile "$LINENO"; then :
22451
am_cv_proto_iconv_arg1=""
22453
am_cv_proto_iconv_arg1="const"
22455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22459
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
22461
}$am_cv_proto_iconv" >&5
22463
}$am_cv_proto_iconv" >&6; }
22465
cat >>confdefs.h <<_ACEOF
22466
#define ICONV_CONST $am_cv_proto_iconv_arg1
22471
if test x$am_func_iconv != xyes; then
22472
enable_poppler_cpp=no
22476
if test "x$enable_poppler_cpp" = "xyes"; then
22477
BUILD_POPPLER_CPP_TRUE=
22478
BUILD_POPPLER_CPP_FALSE='#'
22480
BUILD_POPPLER_CPP_TRUE='#'
22481
BUILD_POPPLER_CPP_FALSE=
22486
# Check whether --enable-gtk-test was given.
22487
if test "${enable_gtk_test+set}" = set; then :
22488
enableval=$enable_gtk_test; enable_gtk_test=$enableval
22490
enable_gtk_test="try"
22493
if test x$enable_gtk_test = xyes; then
22496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_TEST" >&5
22497
$as_echo_n "checking for GTK_TEST... " >&6; }
22499
if test -n "$GTK_TEST_CFLAGS"; then
22500
pkg_cv_GTK_TEST_CFLAGS="$GTK_TEST_CFLAGS"
22501
elif test -n "$PKG_CONFIG"; then
22502
if test -n "$PKG_CONFIG" && \
22503
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5
22504
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5
22506
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507
test $ac_status = 0; }; then
22508
pkg_cv_GTK_TEST_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
22515
if test -n "$GTK_TEST_LIBS"; then
22516
pkg_cv_GTK_TEST_LIBS="$GTK_TEST_LIBS"
22517
elif test -n "$PKG_CONFIG"; then
22518
if test -n "$PKG_CONFIG" && \
22519
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5
22520
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5
22522
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523
test $ac_status = 0; }; then
22524
pkg_cv_GTK_TEST_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
22534
if test $pkg_failed = yes; then
22535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22536
$as_echo "no" >&6; }
22538
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22539
_pkg_short_errors_supported=yes
22541
_pkg_short_errors_supported=no
22543
if test $_pkg_short_errors_supported = yes; then
22544
GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1`
22546
GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1`
22548
# Put the nasty error message in config.log where it belongs
22549
echo "$GTK_TEST_PKG_ERRORS" >&5
22551
as_fn_error $? "Package requirements (gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0) were not met:
22553
$GTK_TEST_PKG_ERRORS
22555
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22556
installed software in a non-standard prefix.
22558
Alternatively, you may set the environment variables GTK_TEST_CFLAGS
22559
and GTK_TEST_LIBS to avoid the need to call pkg-config.
22560
See the pkg-config man page for more details." "$LINENO" 5
22561
elif test $pkg_failed = untried; then
22562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563
$as_echo "no" >&6; }
22564
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22565
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22566
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22567
is in your PATH or set the PKG_CONFIG environment variable to the full
22568
path to pkg-config.
22570
Alternatively, you may set the environment variables GTK_TEST_CFLAGS
22571
and GTK_TEST_LIBS to avoid the need to call pkg-config.
22572
See the pkg-config man page for more details.
22574
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22575
See \`config.log' for more details" "$LINENO" 5; }
22577
GTK_TEST_CFLAGS=$pkg_cv_GTK_TEST_CFLAGS
22578
GTK_TEST_LIBS=$pkg_cv_GTK_TEST_LIBS
22579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22580
$as_echo "yes" >&6; }
22583
elif test x$enable_gtk_test = xtry; then
22586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_TEST" >&5
22587
$as_echo_n "checking for GTK_TEST... " >&6; }
22589
if test -n "$GTK_TEST_CFLAGS"; then
22590
pkg_cv_GTK_TEST_CFLAGS="$GTK_TEST_CFLAGS"
22591
elif test -n "$PKG_CONFIG"; then
22592
if test -n "$PKG_CONFIG" && \
22593
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5
22594
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5
22596
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22597
test $ac_status = 0; }; then
22598
pkg_cv_GTK_TEST_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
22605
if test -n "$GTK_TEST_LIBS"; then
22606
pkg_cv_GTK_TEST_LIBS="$GTK_TEST_LIBS"
22607
elif test -n "$PKG_CONFIG"; then
22608
if test -n "$PKG_CONFIG" && \
22609
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0\""; } >&5
22610
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0") 2>&5
22612
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22613
test $ac_status = 0; }; then
22614
pkg_cv_GTK_TEST_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
22624
if test $pkg_failed = yes; then
22625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22626
$as_echo "no" >&6; }
22628
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22629
_pkg_short_errors_supported=yes
22631
_pkg_short_errors_supported=no
22633
if test $_pkg_short_errors_supported = yes; then
22634
GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1`
22636
GTK_TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.14 gdk-pixbuf-2.0 gthread-2.0 gio-2.0" 2>&1`
22638
# Put the nasty error message in config.log where it belongs
22639
echo "$GTK_TEST_PKG_ERRORS" >&5
22641
enable_gtk_test="no"
22642
elif test $pkg_failed = untried; then
22643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644
$as_echo "no" >&6; }
22645
enable_gtk_test="no"
22647
GTK_TEST_CFLAGS=$pkg_cv_GTK_TEST_CFLAGS
22648
GTK_TEST_LIBS=$pkg_cv_GTK_TEST_LIBS
22649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22650
$as_echo "yes" >&6; }
22651
enable_gtk_test="yes"
22654
if test x$enable_gtk_test = xyes -a x$enable_poppler_glib = xyes; then
22655
BUILD_GTK_TEST_TRUE=
22656
BUILD_GTK_TEST_FALSE='#'
22658
BUILD_GTK_TEST_TRUE='#'
22659
BUILD_GTK_TEST_FALSE=
22663
# Check whether --enable-abiword-output was given.
22664
if test "${enable_abiword_output+set}" = set; then :
22665
enableval=$enable_abiword_output; enable_abiword_output=$enableval
22667
enable_abiword_output="try"
22670
if test x$enable_abiword_output = xyes; then
22673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABIWORD" >&5
22674
$as_echo_n "checking for ABIWORD... " >&6; }
22676
if test -n "$ABIWORD_CFLAGS"; then
22677
pkg_cv_ABIWORD_CFLAGS="$ABIWORD_CFLAGS"
22678
elif test -n "$PKG_CONFIG"; then
22679
if test -n "$PKG_CONFIG" && \
22680
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
22681
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
22683
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684
test $ac_status = 0; }; then
22685
pkg_cv_ABIWORD_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
22692
if test -n "$ABIWORD_LIBS"; then
22693
pkg_cv_ABIWORD_LIBS="$ABIWORD_LIBS"
22694
elif test -n "$PKG_CONFIG"; then
22695
if test -n "$PKG_CONFIG" && \
22696
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
22697
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
22699
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22700
test $ac_status = 0; }; then
22701
pkg_cv_ABIWORD_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
22711
if test $pkg_failed = yes; then
22712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22713
$as_echo "no" >&6; }
22715
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22716
_pkg_short_errors_supported=yes
22718
_pkg_short_errors_supported=no
22720
if test $_pkg_short_errors_supported = yes; then
22721
ABIWORD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
22723
ABIWORD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
22725
# Put the nasty error message in config.log where it belongs
22726
echo "$ABIWORD_PKG_ERRORS" >&5
22728
as_fn_error $? "Package requirements (libxml-2.0) were not met:
22730
$ABIWORD_PKG_ERRORS
22732
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22733
installed software in a non-standard prefix.
22735
Alternatively, you may set the environment variables ABIWORD_CFLAGS
22736
and ABIWORD_LIBS to avoid the need to call pkg-config.
22737
See the pkg-config man page for more details." "$LINENO" 5
22738
elif test $pkg_failed = untried; then
22739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22740
$as_echo "no" >&6; }
22741
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22742
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22743
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22744
is in your PATH or set the PKG_CONFIG environment variable to the full
22745
path to pkg-config.
22747
Alternatively, you may set the environment variables ABIWORD_CFLAGS
22748
and ABIWORD_LIBS to avoid the need to call pkg-config.
22749
See the pkg-config man page for more details.
22751
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22752
See \`config.log' for more details" "$LINENO" 5; }
22754
ABIWORD_CFLAGS=$pkg_cv_ABIWORD_CFLAGS
22755
ABIWORD_LIBS=$pkg_cv_ABIWORD_LIBS
22756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22757
$as_echo "yes" >&6; }
22760
elif test x$enable_abiword_output = xtry; then
22763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABIWORD" >&5
22764
$as_echo_n "checking for ABIWORD... " >&6; }
22766
if test -n "$ABIWORD_CFLAGS"; then
22767
pkg_cv_ABIWORD_CFLAGS="$ABIWORD_CFLAGS"
22768
elif test -n "$PKG_CONFIG"; then
22769
if test -n "$PKG_CONFIG" && \
22770
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
22771
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
22773
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774
test $ac_status = 0; }; then
22775
pkg_cv_ABIWORD_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
22782
if test -n "$ABIWORD_LIBS"; then
22783
pkg_cv_ABIWORD_LIBS="$ABIWORD_LIBS"
22784
elif test -n "$PKG_CONFIG"; then
22785
if test -n "$PKG_CONFIG" && \
22786
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
22787
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
22789
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790
test $ac_status = 0; }; then
22791
pkg_cv_ABIWORD_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
22801
if test $pkg_failed = yes; then
22802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803
$as_echo "no" >&6; }
22805
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22806
_pkg_short_errors_supported=yes
22808
_pkg_short_errors_supported=no
22810
if test $_pkg_short_errors_supported = yes; then
22811
ABIWORD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
22813
ABIWORD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
22815
# Put the nasty error message in config.log where it belongs
22816
echo "$ABIWORD_PKG_ERRORS" >&5
22818
enable_abiword_output="no"
22819
elif test $pkg_failed = untried; then
22820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22821
$as_echo "no" >&6; }
22822
enable_abiword_output="no"
22824
ABIWORD_CFLAGS=$pkg_cv_ABIWORD_CFLAGS
22825
ABIWORD_LIBS=$pkg_cv_ABIWORD_LIBS
22826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22827
$as_echo "yes" >&6; }
22828
enable_abiword_output="yes"
22832
if test x$enable_abiword_output = xyes; then
22833
BUILD_ABIWORD_OUTPUT_TRUE=
22834
BUILD_ABIWORD_OUTPUT_FALSE='#'
22836
BUILD_ABIWORD_OUTPUT_TRUE='#'
22837
BUILD_ABIWORD_OUTPUT_FALSE=
22841
# Check whether --enable-utils was given.
22842
if test "${enable_utils+set}" = set; then :
22843
enableval=$enable_utils; enable_utils=$enableval
22848
if test x$enable_utils = xyes; then
22850
BUILD_UTILS_FALSE='#'
22852
BUILD_UTILS_TRUE='#'
22857
# Check whether --enable-compile-warnings was given.
22858
if test "${enable_compile_warnings+set}" = set; then :
22859
enableval=$enable_compile_warnings;
22861
enable_compile_warnings="yes"
22866
# Check whether --enable-cms was given.
22867
if test "${enable_cms+set}" = set; then :
22868
enableval=$enable_cms; enable_cms=$enableval
22873
if test x$enable_cms = xyes; then
22876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
22877
$as_echo_n "checking for LCMS... " >&6; }
22879
if test -n "$LCMS_CFLAGS"; then
22880
pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
22881
elif test -n "$PKG_CONFIG"; then
22882
if test -n "$PKG_CONFIG" && \
22883
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
22884
($PKG_CONFIG --exists --print-errors "lcms") 2>&5
22886
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887
test $ac_status = 0; }; then
22888
pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
22895
if test -n "$LCMS_LIBS"; then
22896
pkg_cv_LCMS_LIBS="$LCMS_LIBS"
22897
elif test -n "$PKG_CONFIG"; then
22898
if test -n "$PKG_CONFIG" && \
22899
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
22900
($PKG_CONFIG --exists --print-errors "lcms") 2>&5
22902
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22903
test $ac_status = 0; }; then
22904
pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
22914
if test $pkg_failed = yes; then
22915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22916
$as_echo "no" >&6; }
22918
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22919
_pkg_short_errors_supported=yes
22921
_pkg_short_errors_supported=no
22923
if test $_pkg_short_errors_supported = yes; then
22924
LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
22926
LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
22928
# Put the nasty error message in config.log where it belongs
22929
echo "$LCMS_PKG_ERRORS" >&5
22931
as_fn_error $? "Package requirements (lcms) were not met:
22935
Consider adjusting the PKG_CONFIG_PATH environment variable if you
22936
installed software in a non-standard prefix.
22938
Alternatively, you may set the environment variables LCMS_CFLAGS
22939
and LCMS_LIBS to avoid the need to call pkg-config.
22940
See the pkg-config man page for more details." "$LINENO" 5
22941
elif test $pkg_failed = untried; then
22942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943
$as_echo "no" >&6; }
22944
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22945
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22946
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22947
is in your PATH or set the PKG_CONFIG environment variable to the full
22948
path to pkg-config.
22950
Alternatively, you may set the environment variables LCMS_CFLAGS
22951
and LCMS_LIBS to avoid the need to call pkg-config.
22952
See the pkg-config man page for more details.
22954
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22955
See \`config.log' for more details" "$LINENO" 5; }
22957
LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
22958
LCMS_LIBS=$pkg_cv_LCMS_LIBS
22959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22960
$as_echo "yes" >&6; }
22963
elif test x$enable_cms = xtry; then
22966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
22967
$as_echo_n "checking for LCMS... " >&6; }
22969
if test -n "$LCMS_CFLAGS"; then
22970
pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
22971
elif test -n "$PKG_CONFIG"; then
22972
if test -n "$PKG_CONFIG" && \
22973
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
22974
($PKG_CONFIG --exists --print-errors "lcms") 2>&5
22976
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22977
test $ac_status = 0; }; then
22978
pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
22985
if test -n "$LCMS_LIBS"; then
22986
pkg_cv_LCMS_LIBS="$LCMS_LIBS"
22987
elif test -n "$PKG_CONFIG"; then
22988
if test -n "$PKG_CONFIG" && \
22989
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
22990
($PKG_CONFIG --exists --print-errors "lcms") 2>&5
22992
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993
test $ac_status = 0; }; then
22994
pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
23004
if test $pkg_failed = yes; then
23005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23006
$as_echo "no" >&6; }
23008
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23009
_pkg_short_errors_supported=yes
23011
_pkg_short_errors_supported=no
23013
if test $_pkg_short_errors_supported = yes; then
23014
LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
23016
LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
23018
# Put the nasty error message in config.log where it belongs
23019
echo "$LCMS_PKG_ERRORS" >&5
23022
elif test $pkg_failed = untried; then
23023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23024
$as_echo "no" >&6; }
23027
LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
23028
LCMS_LIBS=$pkg_cv_LCMS_LIBS
23029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23030
$as_echo "yes" >&6; }
23035
if test "x$enable_cms" = "xyes"; then
23037
$as_echo "#define USE_CMS 1" >>confdefs.h
23040
if test x$enable_cms = xyes; then
23049
if test "x$GCC" != xyes; then
23050
enable_compile_warnings=no
23052
case "$enable_compile_warnings" in
23054
yes) CXXFLAGS="-Wall -Wno-write-strings -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common $CXXFLAGS" ;;
23055
kde) CXXFLAGS="-Wnon-virtual-dtor -Wno-long-long -Wundef \
23056
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align \
23057
-Wconversion -Wall -W -Wpointer-arith \
23058
-Wwrite-strings -O2 -Wformat-security \
23059
-Wmissing-format-attribute -fno-exceptions -fno-check-new \
23060
-fno-common $CXXFLAGS" ;;
23063
case $($PKG_CONFIG --version) in
23065
PC_REQUIRES_PRIVATE="";
23066
PC_REQUIRES="poppler = $VERSION";;
23068
PC_REQUIRES_PRIVATE="Requires.private: poppler = $VERSION";
23075
POPPLER_MAJOR_VERSION=0
23077
POPPLER_MINOR_VERSION=16
23079
POPPLER_MICRO_VERSION=3
23081
POPPLER_VERSION=0.16.3
23084
ac_config_files="$ac_config_files Makefile goo/Makefile fofi/Makefile splash/Makefile poppler/Makefile utils/Makefile glib/Makefile glib/poppler-features.h glib/reference/Makefile glib/reference/version.xml glib/demo/Makefile test/Makefile qt/Makefile qt4/Makefile qt4/src/Makefile qt4/tests/Makefile qt4/demos/Makefile cpp/Makefile cpp/poppler-version.h cpp/tests/Makefile poppler.pc poppler-uninstalled.pc poppler-cairo.pc poppler-cairo-uninstalled.pc poppler-splash.pc poppler-splash-uninstalled.pc poppler-glib.pc poppler-glib-uninstalled.pc poppler-qt.pc poppler-qt-uninstalled.pc poppler-qt4.pc poppler-qt4-uninstalled.pc poppler-cpp.pc poppler-cpp-uninstalled.pc"
23086
cat >confcache <<\_ACEOF
23087
# This file is a shell script that caches the results of configure
23088
# tests run on this system so they can be shared between configure
23089
# scripts and configure runs, see configure's option --config-cache.
23090
# It is not useful on other systems. If it contains results you don't
23091
# want to keep, you may remove or edit it.
23093
# config.status only pays attention to the cache file if you give it
23094
# the --recheck option to rerun configure.
23096
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23097
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23098
# following values.
23102
# The following way of writing the cache mishandles newlines in values,
23103
# but we know of no workaround that is simple, portable, and efficient.
23104
# So, we kill variables containing newlines.
23105
# Ultrix sh set writes to stderr and can't be redirected directly,
23106
# and sets the high bit in the cache file unless we assign to the vars.
23108
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23109
eval ac_val=\$$ac_var
23113
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23114
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23117
_ | IFS | as_nl) ;; #(
23118
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23119
*) { eval $ac_var=; unset $ac_var;} ;;
23125
case $as_nl`(ac_space=' '; set) 2>&1` in #(
23126
*${as_nl}ac_space=\ *)
23127
# `set' does not quote correctly, so add quotes: double-quote
23128
# substitution turns \\\\ into \\, and sed turns \\ into \.
23131
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23134
# `set' quotes correctly as required by POSIX, so do not add quotes.
23135
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23144
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23146
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23148
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23149
if test -w "$cache_file"; then
23150
if test "x$cache_file" != "x/dev/null"; then
23151
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23152
$as_echo "$as_me: updating cache $cache_file" >&6;}
23153
if test ! -f "$cache_file" || test -h "$cache_file"; then
23154
cat confcache >"$cache_file"
23156
case $cache_file in #(
23158
mv -f confcache "$cache_file"$$ &&
23159
mv -f "$cache_file"$$ "$cache_file" ;; #(
23161
mv -f confcache "$cache_file" ;;
23166
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23167
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23172
test "x$prefix" = xNONE && prefix=$ac_default_prefix
23173
# Let make expand exec_prefix.
23174
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23176
DEFS=-DHAVE_CONFIG_H
23181
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23182
# 1. Remove the extension, and $U if already installed.
23183
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23184
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23185
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23186
# will be set to the directory where LIBOBJS objects are built.
23187
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23188
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23190
LIBOBJS=$ac_libobjs
23192
LTLIBOBJS=$ac_ltlibobjs
23195
if test -n "$EXEEXT"; then
23197
am__EXEEXT_FALSE='#'
23199
am__EXEEXT_TRUE='#'
23203
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23204
as_fn_error $? "conditional \"AMDEP\" was never defined.
23205
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23207
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23208
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23209
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23213
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23214
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23216
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23217
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23218
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23220
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23221
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23222
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23224
if test -z "${ENABLE_XPDF_HEADERS_TRUE}" && test -z "${ENABLE_XPDF_HEADERS_FALSE}"; then
23225
as_fn_error $? "conditional \"ENABLE_XPDF_HEADERS\" was never defined.
23226
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228
if test -z "${BUILD_LIBOPENJPEG_TRUE}" && test -z "${BUILD_LIBOPENJPEG_FALSE}"; then
23229
as_fn_error $? "conditional \"BUILD_LIBOPENJPEG\" was never defined.
23230
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23232
if test -z "${BUILD_ZLIB_TRUE}" && test -z "${BUILD_ZLIB_FALSE}"; then
23233
as_fn_error $? "conditional \"BUILD_ZLIB\" was never defined.
23234
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23236
if test -z "${BUILD_LIBCURL_TRUE}" && test -z "${BUILD_LIBCURL_FALSE}"; then
23237
as_fn_error $? "conditional \"BUILD_LIBCURL\" was never defined.
23238
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23240
if test -z "${BUILD_LIBJPEG_TRUE}" && test -z "${BUILD_LIBJPEG_FALSE}"; then
23241
as_fn_error $? "conditional \"BUILD_LIBJPEG\" was never defined.
23242
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23244
if test -z "${BUILD_LIBPNG_TRUE}" && test -z "${BUILD_LIBPNG_FALSE}"; then
23245
as_fn_error $? "conditional \"BUILD_LIBPNG\" was never defined.
23246
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23248
if test -z "${BUILD_WITH_WIN32_FONTCONFIGURATION_TRUE}" && test -z "${BUILD_WITH_WIN32_FONTCONFIGURATION_FALSE}"; then
23249
as_fn_error $? "conditional \"BUILD_WITH_WIN32_FONTCONFIGURATION\" was never defined.
23250
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23252
if test -z "${BUILD_SPLASH_OUTPUT_TRUE}" && test -z "${BUILD_SPLASH_OUTPUT_FALSE}"; then
23253
as_fn_error $? "conditional \"BUILD_SPLASH_OUTPUT\" was never defined.
23254
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23256
if test -z "${BUILD_CAIRO_OUTPUT_TRUE}" && test -z "${BUILD_CAIRO_OUTPUT_FALSE}"; then
23257
as_fn_error $? "conditional \"BUILD_CAIRO_OUTPUT\" was never defined.
23258
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23260
if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
23261
as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
23262
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23264
if test -z "${BUILD_POPPLER_GLIB_TRUE}" && test -z "${BUILD_POPPLER_GLIB_FALSE}"; then
23265
as_fn_error $? "conditional \"BUILD_POPPLER_GLIB\" was never defined.
23266
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268
if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
23269
as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
23270
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23272
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23273
as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
23274
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23276
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
23277
as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
23278
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23280
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
23281
as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
23282
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23284
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23285
as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23286
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23288
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
23289
as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
23290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23292
if test -z "${BUILD_WITH_GDK_TRUE}" && test -z "${BUILD_WITH_GDK_FALSE}"; then
23293
as_fn_error $? "conditional \"BUILD_WITH_GDK\" was never defined.
23294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23296
if test -z "${BUILD_POPPLER_QT_TRUE}" && test -z "${BUILD_POPPLER_QT_FALSE}"; then
23297
as_fn_error $? "conditional \"BUILD_POPPLER_QT\" was never defined.
23298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23300
if test -z "${BUILD_POPPLER_QT4_TRUE}" && test -z "${BUILD_POPPLER_QT4_FALSE}"; then
23301
as_fn_error $? "conditional \"BUILD_POPPLER_QT4\" was never defined.
23302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23304
if test -z "${BUILD_POPPLER_CPP_TRUE}" && test -z "${BUILD_POPPLER_CPP_FALSE}"; then
23305
as_fn_error $? "conditional \"BUILD_POPPLER_CPP\" was never defined.
23306
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23308
if test -z "${BUILD_GTK_TEST_TRUE}" && test -z "${BUILD_GTK_TEST_FALSE}"; then
23309
as_fn_error $? "conditional \"BUILD_GTK_TEST\" was never defined.
23310
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23312
if test -z "${BUILD_ABIWORD_OUTPUT_TRUE}" && test -z "${BUILD_ABIWORD_OUTPUT_FALSE}"; then
23313
as_fn_error $? "conditional \"BUILD_ABIWORD_OUTPUT\" was never defined.
23314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23316
if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
23317
as_fn_error $? "conditional \"BUILD_UTILS\" was never defined.
23318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23320
if test -z "${USE_CMS_TRUE}" && test -z "${USE_CMS_FALSE}"; then
23321
as_fn_error $? "conditional \"USE_CMS\" was never defined.
23322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23325
: "${CONFIG_STATUS=./config.status}"
23327
ac_clean_files_save=$ac_clean_files
23328
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23329
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23330
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23332
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23334
# Generated by $as_me.
23335
# Run this file to recreate the current configuration.
23336
# Compiler output produced by configure, useful for debugging
23337
# configure, is in config.log if it exists.
23340
ac_cs_recheck=false
23343
SHELL=\${CONFIG_SHELL-$SHELL}
23346
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23347
## -------------------- ##
23348
## M4sh Initialization. ##
23349
## -------------------- ##
23351
# Be more Bourne compatible
23352
DUALCASE=1; export DUALCASE # for MKS sh
23353
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23356
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23357
# is contrary to our usage. Disable this feature.
23358
alias -g '${1+"$@"}'='"$@"'
23359
setopt NO_GLOB_SUBST
23361
case `(set -o) 2>/dev/null` in #(
23373
# Printing a long string crashes Solaris 7 /usr/bin/printf.
23374
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23375
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23376
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23377
# Prefer a ksh shell builtin over an external printf program on Solaris,
23378
# but without wasting forks for bash or zsh.
23379
if test -z "$BASH_VERSION$ZSH_VERSION" \
23380
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23381
as_echo='print -r --'
23382
as_echo_n='print -rn --'
23383
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23384
as_echo='printf %s\n'
23385
as_echo_n='printf %s'
23387
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23388
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23389
as_echo_n='/usr/ucb/echo -n'
23391
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23392
as_echo_n_body='eval
23396
expr "X$arg" : "X\\(.*\\)$as_nl";
23397
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23399
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23401
export as_echo_n_body
23402
as_echo_n='sh -c $as_echo_n_body as_echo'
23404
export as_echo_body
23405
as_echo='sh -c $as_echo_body as_echo'
23408
# The user is always right.
23409
if test "${PATH_SEPARATOR+set}" != set; then
23411
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23412
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23419
# We need space, tab and new line, in precisely that order. Quoting is
23420
# there to prevent editors from complaining about space-tab.
23421
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23422
# splitting by setting IFS to empty value.)
23425
# Find who we are. Look in the path if we contain no directory separator.
23428
*[\\/]* ) as_myself=$0 ;;
23429
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23430
for as_dir in $PATH
23433
test -z "$as_dir" && as_dir=.
23434
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23440
# We did not find ourselves, most probably we were run as `sh COMMAND'
23441
# in which case we are not to be found in the path.
23442
if test "x$as_myself" = x; then
23445
if test ! -f "$as_myself"; then
23446
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23450
# Unset variables that we do not need and which cause bugs (e.g. in
23451
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23452
# suppresses any "Segmentation fault" message there. '((' could
23453
# trigger a bug in pdksh 5.2.14.
23454
for as_var in BASH_ENV ENV MAIL MAILPATH
23455
do eval test x\${$as_var+set} = xset \
23456
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23469
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23472
# as_fn_error STATUS ERROR [LINENO LOG_FD]
23473
# ----------------------------------------
23474
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23475
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23476
# script with STATUS, using 1 if that was 0.
23479
as_status=$1; test $as_status -eq 0 && as_status=1
23481
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23482
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23484
$as_echo "$as_me: error: $2" >&2
23485
as_fn_exit $as_status
23489
# as_fn_set_status STATUS
23490
# -----------------------
23491
# Set $? to STATUS, without forking.
23492
as_fn_set_status ()
23495
} # as_fn_set_status
23497
# as_fn_exit STATUS
23498
# -----------------
23499
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23503
as_fn_set_status $1
23509
# Portably unset VAR.
23512
{ eval $1=; unset $1;}
23514
as_unset=as_fn_unset
23515
# as_fn_append VAR VALUE
23516
# ----------------------
23517
# Append the text in VALUE to the end of the definition contained in VAR. Take
23518
# advantage of any shell optimizations that allow amortized linear growth over
23519
# repeated appends, instead of the typical quadratic growth present in naive
23521
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23522
eval 'as_fn_append ()
23533
# as_fn_arith ARG...
23534
# ------------------
23535
# Perform arithmetic evaluation on the ARGs, and store the result in the
23536
# global $as_val. Take advantage of shells that can avoid forks. The arguments
23537
# must be portable across $(()) and expr.
23538
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23539
eval 'as_fn_arith ()
23546
as_val=`expr "$@" || test $? -eq 1`
23551
if expr a : '\(a\)' >/dev/null 2>&1 &&
23552
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23558
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23559
as_basename=basename
23564
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23570
as_me=`$as_basename -- "$0" ||
23571
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23572
X"$0" : 'X\(//\)$' \| \
23573
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23575
sed '/^.*\/\([^/][^/]*\)\/*$/{
23589
# Avoid depending upon Character Ranges.
23590
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23591
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23592
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23593
as_cr_digits='0123456789'
23594
as_cr_alnum=$as_cr_Letters$as_cr_digits
23596
ECHO_C= ECHO_N= ECHO_T=
23597
case `echo -n x` in #(((((
23599
case `echo 'xy\c'` in
23600
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
23602
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23609
rm -f conf$$ conf$$.exe conf$$.file
23610
if test -d conf$$.dir; then
23611
rm -f conf$$.dir/conf$$.file
23614
mkdir conf$$.dir 2>/dev/null
23616
if (echo >conf$$.file) 2>/dev/null; then
23617
if ln -s conf$$.file conf$$ 2>/dev/null; then
23619
# ... but there are two gotchas:
23620
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23621
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23622
# In both cases, we have to default to `cp -pR'.
23623
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23625
elif ln conf$$.file conf$$ 2>/dev/null; then
23633
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23634
rmdir conf$$.dir 2>/dev/null
23639
# Create "$as_dir" as a directory, including parents if necessary.
23644
-*) as_dir=./$as_dir;;
23646
test -d "$as_dir" || eval $as_mkdir_p || {
23650
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23651
*) as_qdir=$as_dir;;
23653
as_dirs="'$as_qdir' $as_dirs"
23654
as_dir=`$as_dirname -- "$as_dir" ||
23655
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656
X"$as_dir" : 'X\(//\)[^/]' \| \
23657
X"$as_dir" : 'X\(//\)$' \| \
23658
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23659
$as_echo X"$as_dir" |
23660
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23664
/^X\(\/\/\)[^/].*/{
23677
test -d "$as_dir" && break
23679
test -z "$as_dirs" || eval "mkdir $as_dirs"
23680
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23684
if mkdir -p . 2>/dev/null; then
23685
as_mkdir_p='mkdir -p "$as_dir"'
23687
test -d ./-p && rmdir ./-p
23692
# as_fn_executable_p FILE
23693
# -----------------------
23694
# Test if FILE is an executable regular file.
23695
as_fn_executable_p ()
23697
test -f "$1" && test -x "$1"
23698
} # as_fn_executable_p
23699
as_test_x='test -x'
23700
as_executable_p=as_fn_executable_p
23702
# Sed expression to map a string onto a valid CPP name.
23703
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23705
# Sed expression to map a string onto a valid variable name.
23706
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23710
## ----------------------------------- ##
23711
## Main body of $CONFIG_STATUS script. ##
23712
## ----------------------------------- ##
23714
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23716
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23717
# Save the log message, to keep $0 and so on meaningful, and to
23718
# report actual input values of CONFIG_FILES etc. instead of their
23719
# values after options handling.
23721
This file was extended by poppler $as_me 0.16.3, which was
23722
generated by GNU Autoconf 2.69. Invocation command line was
23724
CONFIG_FILES = $CONFIG_FILES
23725
CONFIG_HEADERS = $CONFIG_HEADERS
23726
CONFIG_LINKS = $CONFIG_LINKS
23727
CONFIG_COMMANDS = $CONFIG_COMMANDS
23730
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23735
case $ac_config_files in *"
23736
"*) set x $ac_config_files; shift; ac_config_files=$*;;
23739
case $ac_config_headers in *"
23740
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23744
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23745
# Files that config.status was made for.
23746
config_files="$ac_config_files"
23747
config_headers="$ac_config_headers"
23748
config_commands="$ac_config_commands"
23752
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23754
\`$as_me' instantiates files and other configuration actions
23755
from templates according to the current configuration. Unless the files
23756
and actions are specified as TAGs, all are instantiated by default.
23758
Usage: $0 [OPTION]... [TAG]...
23760
-h, --help print this help, then exit
23761
-V, --version print version number and configuration settings, then exit
23762
--config print configuration, then exit
23763
-q, --quiet, --silent
23764
do not print progress messages
23765
-d, --debug don't remove temporary files
23766
--recheck update $as_me by reconfiguring in the same conditions
23767
--file=FILE[:TEMPLATE]
23768
instantiate the configuration file FILE
23769
--header=FILE[:TEMPLATE]
23770
instantiate the configuration header FILE
23772
Configuration files:
23775
Configuration headers:
23778
Configuration commands:
23781
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=poppler>."
23784
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23785
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23787
poppler config.status 0.16.3
23788
configured by $0, generated by GNU Autoconf 2.69,
23789
with options \\"\$ac_cs_config\\"
23791
Copyright (C) 2012 Free Software Foundation, Inc.
23792
This config.status script is free software; the Free Software Foundation
23793
gives unlimited permission to copy, distribute and modify it."
23800
test -n "\$AWK" || AWK=awk
23803
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23804
# The default lists apply if the user does not specify any file.
23810
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23811
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23815
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23827
# Handling of the options.
23828
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23830
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23831
$as_echo "$ac_cs_version"; exit ;;
23832
--config | --confi | --conf | --con | --co | --c )
23833
$as_echo "$ac_cs_config"; exit ;;
23834
--debug | --debu | --deb | --de | --d | -d )
23836
--file | --fil | --fi | --f )
23839
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23840
'') as_fn_error $? "missing file argument" ;;
23842
as_fn_append CONFIG_FILES " '$ac_optarg'"
23843
ac_need_defaults=false;;
23844
--header | --heade | --head | --hea )
23847
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23849
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23850
ac_need_defaults=false;;
23852
# Conflict between --help and --header
23853
as_fn_error $? "ambiguous option: \`$1'
23854
Try \`$0 --help' for more information.";;
23855
--help | --hel | -h )
23856
$as_echo "$ac_cs_usage"; exit ;;
23857
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23858
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23861
# This is an error.
23862
-*) as_fn_error $? "unrecognized option: \`$1'
23863
Try \`$0 --help' for more information." ;;
23865
*) as_fn_append ac_config_targets " $1"
23866
ac_need_defaults=false ;;
23872
ac_configure_extra_args=
23874
if $ac_cs_silent; then
23876
ac_configure_extra_args="$ac_configure_extra_args --silent"
23880
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23881
if \$ac_cs_recheck; then
23882
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23884
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23885
CONFIG_SHELL='$SHELL'
23886
export CONFIG_SHELL
23891
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23896
## Running $as_me. ##
23902
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23906
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23909
# The HP-UX ksh and POSIX shell print the target directory to stdout
23910
# if CDPATH is set.
23911
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23913
sed_quote_subst='$sed_quote_subst'
23914
double_quote_subst='$double_quote_subst'
23915
delay_variable_subst='$delay_variable_subst'
23916
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23917
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23918
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23919
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23920
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23921
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23922
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23923
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23924
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23925
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23926
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23927
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23928
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23929
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23930
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23931
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23932
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23933
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23934
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23935
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23936
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23937
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23938
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23939
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23940
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23941
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23942
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23943
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23944
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23945
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23946
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23947
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23948
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23949
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23950
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23951
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23952
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23953
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23954
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23955
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23956
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23957
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23958
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23959
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23960
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23961
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23962
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23963
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23964
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23965
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23966
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23967
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23968
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23969
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23970
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23971
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23972
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"`'
23973
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23974
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23975
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23976
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23977
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23978
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23979
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23980
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23981
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23982
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23983
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23984
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23985
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23986
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23987
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23988
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23989
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23990
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23991
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23992
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23993
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23994
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23995
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23996
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23997
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23998
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23999
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24000
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24001
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24002
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24003
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24004
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24005
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24006
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24007
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24008
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24009
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24010
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24011
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24012
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24013
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24014
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24015
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24016
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24017
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24018
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24019
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24020
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24021
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24022
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24023
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24024
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24025
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24026
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24027
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24028
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24029
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24030
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24031
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24032
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24033
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24034
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24035
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24036
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24037
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24038
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24039
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24040
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24041
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24042
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24043
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24044
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24045
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24046
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24047
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24048
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24049
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24050
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24051
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24052
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24053
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24054
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24055
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24056
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24057
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24058
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24059
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24060
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24061
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24062
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24063
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24064
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24065
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24066
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24067
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24068
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24069
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24070
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24071
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24072
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24073
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24074
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24075
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24076
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24077
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24078
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24079
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
24080
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24081
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24082
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24083
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24084
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24085
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24086
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24087
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24088
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24089
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24090
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24091
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24092
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24093
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24094
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24095
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24096
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24097
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24098
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24099
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24100
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24101
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24104
LTCFLAGS='$LTCFLAGS'
24105
compiler='$compiler_DEFAULT'
24107
# A function that is used when there is no print builtin or printf.
24108
func_fallback_echo ()
24110
eval 'cat <<_LTECHO_EOF
24115
# Quote evaled strings.
24131
deplibs_check_method \
24135
sharedlib_from_linklib_cmd \
24138
archiver_list_spec \
24144
lt_cv_sys_global_symbol_pipe \
24145
lt_cv_sys_global_symbol_to_cdecl \
24146
lt_cv_sys_global_symbol_to_c_name_address \
24147
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24148
nm_file_list_spec \
24149
lt_prog_compiler_no_builtin_flag \
24150
lt_prog_compiler_pic \
24151
lt_prog_compiler_wl \
24152
lt_prog_compiler_static \
24153
lt_cv_prog_compiler_c_o \
24162
export_dynamic_flag_spec \
24163
whole_archive_flag_spec \
24164
compiler_needs_object \
24166
allow_undefined_flag \
24167
no_undefined_flag \
24168
hardcode_libdir_flag_spec \
24169
hardcode_libdir_flag_spec_ld \
24170
hardcode_libdir_separator \
24174
variables_saved_for_relink \
24176
library_names_spec \
24178
install_override_mode \
24182
compiler_lib_search_dirs \
24187
compiler_lib_search_path \
24191
lt_prog_compiler_no_builtin_flag_CXX \
24192
lt_prog_compiler_pic_CXX \
24193
lt_prog_compiler_wl_CXX \
24194
lt_prog_compiler_static_CXX \
24195
lt_cv_prog_compiler_c_o_CXX \
24196
export_dynamic_flag_spec_CXX \
24197
whole_archive_flag_spec_CXX \
24198
compiler_needs_object_CXX \
24200
allow_undefined_flag_CXX \
24201
no_undefined_flag_CXX \
24202
hardcode_libdir_flag_spec_CXX \
24203
hardcode_libdir_flag_spec_ld_CXX \
24204
hardcode_libdir_separator_CXX \
24205
exclude_expsyms_CXX \
24206
include_expsyms_CXX \
24207
file_list_spec_CXX \
24208
compiler_lib_search_dirs_CXX \
24209
predep_objects_CXX \
24210
postdep_objects_CXX \
24213
compiler_lib_search_path_CXX; do
24214
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24215
*[\\\\\\\`\\"\\\$]*)
24216
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24219
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24224
# Double-quote double-evaled strings.
24225
for var in reload_cmds \
24226
old_postinstall_cmds \
24227
old_postuninstall_cmds \
24229
extract_expsyms_cmds \
24230
old_archive_from_new_cmds \
24231
old_archive_from_expsyms_cmds \
24233
archive_expsym_cmds \
24235
module_expsym_cmds \
24236
export_symbols_cmds \
24240
postuninstall_cmds \
24242
sys_lib_search_path_spec \
24243
sys_lib_dlsearch_path_spec \
24245
old_archive_cmds_CXX \
24246
old_archive_from_new_cmds_CXX \
24247
old_archive_from_expsyms_cmds_CXX \
24249
archive_expsym_cmds_CXX \
24251
module_expsym_cmds_CXX \
24252
export_symbols_cmds_CXX \
24254
postlink_cmds_CXX; do
24255
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24256
*[\\\\\\\`\\"\\\$]*)
24257
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24260
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24265
ac_aux_dir='$ac_aux_dir'
24266
xsi_shell='$xsi_shell'
24267
lt_shell_append='$lt_shell_append'
24269
# See if we are running on zsh, and set the options which allow our
24270
# commands through without removal of \ escapes INIT.
24271
if test -n "\${ZSH_VERSION+set}" ; then
24272
setopt NO_GLOB_SUBST
24278
TIMESTAMP='$TIMESTAMP'
24289
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24291
# Handling of arguments.
24292
for ac_config_target in $ac_config_targets
24294
case $ac_config_target in
24295
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24296
"poppler/poppler-config.h") CONFIG_HEADERS="$CONFIG_HEADERS poppler/poppler-config.h" ;;
24297
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24298
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24299
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24300
"goo/Makefile") CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;;
24301
"fofi/Makefile") CONFIG_FILES="$CONFIG_FILES fofi/Makefile" ;;
24302
"splash/Makefile") CONFIG_FILES="$CONFIG_FILES splash/Makefile" ;;
24303
"poppler/Makefile") CONFIG_FILES="$CONFIG_FILES poppler/Makefile" ;;
24304
"utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24305
"glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
24306
"glib/poppler-features.h") CONFIG_FILES="$CONFIG_FILES glib/poppler-features.h" ;;
24307
"glib/reference/Makefile") CONFIG_FILES="$CONFIG_FILES glib/reference/Makefile" ;;
24308
"glib/reference/version.xml") CONFIG_FILES="$CONFIG_FILES glib/reference/version.xml" ;;
24309
"glib/demo/Makefile") CONFIG_FILES="$CONFIG_FILES glib/demo/Makefile" ;;
24310
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24311
"qt/Makefile") CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;;
24312
"qt4/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/Makefile" ;;
24313
"qt4/src/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/src/Makefile" ;;
24314
"qt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/tests/Makefile" ;;
24315
"qt4/demos/Makefile") CONFIG_FILES="$CONFIG_FILES qt4/demos/Makefile" ;;
24316
"cpp/Makefile") CONFIG_FILES="$CONFIG_FILES cpp/Makefile" ;;
24317
"cpp/poppler-version.h") CONFIG_FILES="$CONFIG_FILES cpp/poppler-version.h" ;;
24318
"cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cpp/tests/Makefile" ;;
24319
"poppler.pc") CONFIG_FILES="$CONFIG_FILES poppler.pc" ;;
24320
"poppler-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-uninstalled.pc" ;;
24321
"poppler-cairo.pc") CONFIG_FILES="$CONFIG_FILES poppler-cairo.pc" ;;
24322
"poppler-cairo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-cairo-uninstalled.pc" ;;
24323
"poppler-splash.pc") CONFIG_FILES="$CONFIG_FILES poppler-splash.pc" ;;
24324
"poppler-splash-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-splash-uninstalled.pc" ;;
24325
"poppler-glib.pc") CONFIG_FILES="$CONFIG_FILES poppler-glib.pc" ;;
24326
"poppler-glib-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-glib-uninstalled.pc" ;;
24327
"poppler-qt.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt.pc" ;;
24328
"poppler-qt-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt-uninstalled.pc" ;;
24329
"poppler-qt4.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt4.pc" ;;
24330
"poppler-qt4-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-qt4-uninstalled.pc" ;;
24331
"poppler-cpp.pc") CONFIG_FILES="$CONFIG_FILES poppler-cpp.pc" ;;
24332
"poppler-cpp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES poppler-cpp-uninstalled.pc" ;;
24334
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24339
# If the user did not use the arguments to specify the items to instantiate,
24340
# then the envvar interface is used. Set only those that are not.
24341
# We use the long form for the default assignment because of an extremely
24342
# bizarre bug on SunOS 4.1.3.
24343
if $ac_need_defaults; then
24344
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24345
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24346
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24349
# Have a temporary directory for convenience. Make it in the build tree
24350
# simply because there is no reason against having it here, and in addition,
24351
# creating and moving files from /tmp can sometimes cause problems.
24352
# Hook for its removal unless debugging.
24353
# Note that there is a small window in which the directory will not be cleaned:
24354
# after its creation but before its name has been assigned to `$tmp'.
24358
trap 'exit_status=$?
24359
: "${ac_tmp:=$tmp}"
24360
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24362
trap 'as_fn_exit 1' 1 2 13 15
24364
# Create a (secure) tmp directory for tmp files.
24367
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24371
tmp=./conf$$-$RANDOM
24372
(umask 077 && mkdir "$tmp")
24373
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24376
# Set up the scripts for CONFIG_FILES section.
24377
# No need to generate them if there are no CONFIG_FILES.
24378
# This happens for instance with `./config.status config.h'.
24379
if test -n "$CONFIG_FILES"; then
24382
ac_cr=`echo X | tr X '\015'`
24383
# On cygwin, bash can eat \r inside `` if the user requested igncr.
24384
# But we know of no other shell where ac_cr would be empty at this
24385
# point, so we can use a bashism as a fallback.
24386
if test "x$ac_cr" = x; then
24387
eval ac_cr=\$\'\\r\'
24389
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24390
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24393
ac_cs_awk_cr=$ac_cr
24396
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24401
echo "cat >conf$$subs.awk <<_ACEOF" &&
24402
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24404
} >conf$$subs.sh ||
24405
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24406
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24408
for ac_last_try in false false false false false :; do
24409
. ./conf$$subs.sh ||
24410
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24412
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24413
if test $ac_delim_n = $ac_delim_num; then
24415
elif $ac_last_try; then
24416
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24418
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24421
rm -f conf$$subs.sh
24423
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24424
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24428
s/^/S["/; s/!.*/"]=/
24438
s/\(.\{148\}\)..*/\1/
24440
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24445
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24452
s/\(.\{148\}\)..*/\1/
24454
s/["\\]/\\&/g; s/^/"/; s/$/"/
24458
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24463
' <conf$$subs.awk | sed '
24468
' >>$CONFIG_STATUS || ac_write_fail=1
24469
rm -f conf$$subs.awk
24470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24472
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24473
for (key in S) S_is_set[key] = 1
24479
nfields = split(line, field, "@")
24481
len = length(field[1])
24482
for (i = 2; i < nfields; i++) {
24484
keylen = length(key)
24485
if (S_is_set[key]) {
24487
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24488
len += length(value) + length(field[++i])
24499
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24500
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24501
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24504
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24505
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24508
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24509
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24510
# trailing colons and then remove the whole line if VPATH becomes empty
24511
# (actually we leave an empty line to preserve line numbers).
24512
if test "x$srcdir" = x.; then
24513
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24531
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24532
fi # test -n "$CONFIG_FILES"
24534
# Set up the scripts for CONFIG_HEADERS section.
24535
# No need to generate them if there are no CONFIG_HEADERS.
24536
# This happens for instance with `./config.status Makefile'.
24537
if test -n "$CONFIG_HEADERS"; then
24538
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24542
# Transform confdefs.h into an awk script `defines.awk', embedded as
24543
# here-document in config.status, that substitutes the proper values into
24544
# config.h.in to produce config.h.
24546
# Create a delimiter string that does not exist in confdefs.h, to ease
24547
# handling of long lines.
24549
for ac_last_try in false false :; do
24550
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24551
if test -z "$ac_tt"; then
24553
elif $ac_last_try; then
24554
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24556
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24560
# For the awk script, D is an array of macro values keyed by name,
24561
# likewise P contains macro parameters if any. Preserve backslash
24562
# newline sequences.
24564
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24566
s/.\{148\}/&'"$ac_delim"'/g
24569
s/^[ ]*#[ ]*define[ ][ ]*/ /
24576
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24578
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24582
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24583
D["\1"]=" \3\\\\\\n"\\/p
24585
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24590
s/.\{148\}/&'"$ac_delim"'/g
24595
s/["\\]/\\&/g; s/^/"/; s/$/"/p
24598
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24600
' <confdefs.h | sed '
24601
s/'"$ac_delim"'/"\\\
24602
"/g' >>$CONFIG_STATUS || ac_write_fail=1
24604
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24605
for (key in D) D_is_set[key] = 1
24608
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24610
split(line, arg, " ")
24611
if (arg[1] == "#") {
24615
defundef = substr(arg[1], 2)
24618
split(mac1, mac2, "(") #)
24620
prefix = substr(line, 1, index(line, defundef) - 1)
24621
if (D_is_set[macro]) {
24622
# Preserve the white space surrounding the "#".
24623
print prefix "define", macro P[macro] D[macro]
24626
# Replace #undef with comments. This is necessary, for example,
24627
# in the case of _POSIX_SOURCE, which is predefined and required
24628
# on some systems where configure will not decide to define it.
24629
if (defundef == "undef") {
24630
print "/*", prefix defundef, macro, "*/"
24638
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24639
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24640
fi # test -n "$CONFIG_HEADERS"
24643
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24648
:[FHLC]) ac_mode=$ac_tag; continue;;
24650
case $ac_mode$ac_tag in
24652
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24653
:[FH]-) ac_tag=-:-;;
24654
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24671
-) ac_f="$ac_tmp/stdin";;
24672
*) # Look for the file first in the build tree, then in the source tree
24673
# (if the path is not absolute). The absolute path cannot be DOS-style,
24674
# because $ac_f cannot contain `:'.
24678
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24680
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24682
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24683
as_fn_append ac_file_inputs " '$ac_f'"
24686
# Let's still pretend it is `configure' which instantiates (i.e., don't
24687
# use $as_me), people would be surprised to read:
24688
# /* config.h. Generated by config.status. */
24689
configure_input='Generated from '`
24690
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24692
if test x"$ac_file" != x-; then
24693
configure_input="$ac_file. $configure_input"
24694
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24695
$as_echo "$as_me: creating $ac_file" >&6;}
24697
# Neutralize special characters interpreted by sed in replacement strings.
24698
case $configure_input in #(
24699
*\&* | *\|* | *\\* )
24700
ac_sed_conf_input=`$as_echo "$configure_input" |
24701
sed 's/[\\\\&|]/\\\\&/g'`;; #(
24702
*) ac_sed_conf_input=$configure_input;;
24706
*:-:* | *:-) cat >"$ac_tmp/stdin" \
24707
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24712
ac_dir=`$as_dirname -- "$ac_file" ||
24713
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24714
X"$ac_file" : 'X\(//\)[^/]' \| \
24715
X"$ac_file" : 'X\(//\)$' \| \
24716
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24717
$as_echo X"$ac_file" |
24718
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24722
/^X\(\/\/\)[^/].*/{
24735
as_dir="$ac_dir"; as_fn_mkdir_p
24739
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24741
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24742
# A ".." for each directory in $ac_dir_suffix.
24743
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24744
case $ac_top_builddir_sub in
24745
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24746
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24749
ac_abs_top_builddir=$ac_pwd
24750
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24751
# for backward compatibility:
24752
ac_top_builddir=$ac_top_build_prefix
24755
.) # We are building in place.
24757
ac_top_srcdir=$ac_top_builddir_sub
24758
ac_abs_top_srcdir=$ac_pwd ;;
24759
[\\/]* | ?:[\\/]* ) # Absolute name.
24760
ac_srcdir=$srcdir$ac_dir_suffix;
24761
ac_top_srcdir=$srcdir
24762
ac_abs_top_srcdir=$srcdir ;;
24763
*) # Relative name.
24764
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24765
ac_top_srcdir=$ac_top_build_prefix$srcdir
24766
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24768
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24778
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24779
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24781
ac_MKDIR_P=$MKDIR_P
24783
[\\/$]* | ?:[\\/]* ) ;;
24784
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24788
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24789
# If the template does not know about datarootdir, expand it.
24790
# FIXME: This hack should be removed a few years after 2.60.
24791
ac_datarootdir_hack=; ac_datarootdir_seen=
24802
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24803
*datarootdir*) ac_datarootdir_seen=yes;;
24804
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24805
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24806
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24808
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24809
ac_datarootdir_hack='
24810
s&@datadir@&$datadir&g
24811
s&@docdir@&$docdir&g
24812
s&@infodir@&$infodir&g
24813
s&@localedir@&$localedir&g
24814
s&@mandir@&$mandir&g
24815
s&\\\${datarootdir}&$datarootdir&g' ;;
24819
# Neutralize VPATH when `$srcdir' = `.'.
24820
# Shell code in configure.ac might set extrasub.
24821
# FIXME: do we really want to maintain this feature?
24822
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24823
ac_sed_extra="$ac_vpsub
24826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24828
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24829
s|@configure_input@|$ac_sed_conf_input|;t t
24830
s&@top_builddir@&$ac_top_builddir_sub&;t t
24831
s&@top_build_prefix@&$ac_top_build_prefix&;t t
24832
s&@srcdir@&$ac_srcdir&;t t
24833
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24834
s&@top_srcdir@&$ac_top_srcdir&;t t
24835
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24836
s&@builddir@&$ac_builddir&;t t
24837
s&@abs_builddir@&$ac_abs_builddir&;t t
24838
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24839
s&@INSTALL@&$ac_INSTALL&;t t
24840
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24841
$ac_datarootdir_hack
24843
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24844
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24846
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24847
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24848
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24849
"$ac_tmp/out"`; test -z "$ac_out"; } &&
24850
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24851
which seems to be undefined. Please make sure it is defined" >&5
24852
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24853
which seems to be undefined. Please make sure it is defined" >&2;}
24855
rm -f "$ac_tmp/stdin"
24857
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24858
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24860
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24866
if test x"$ac_file" != x-; then
24868
$as_echo "/* $configure_input */" \
24869
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24870
} >"$ac_tmp/config.h" \
24871
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24872
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24873
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24874
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24877
mv "$ac_tmp/config.h" "$ac_file" \
24878
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24881
$as_echo "/* $configure_input */" \
24882
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24883
|| as_fn_error $? "could not create -" "$LINENO" 5
24885
# Compute "$ac_file"'s index in $config_headers.
24888
for _am_header in $config_headers :; do
24889
case $_am_header in
24890
$_am_arg | $_am_arg:* )
24893
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
24896
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24897
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898
X"$_am_arg" : 'X\(//\)[^/]' \| \
24899
X"$_am_arg" : 'X\(//\)$' \| \
24900
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24901
$as_echo X"$_am_arg" |
24902
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24906
/^X\(\/\/\)[^/].*/{
24918
s/.*/./; q'`/stamp-h$_am_stamp_count
24921
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24922
$as_echo "$as_me: executing $ac_file commands" >&6;}
24927
case $ac_file$ac_mode in
24928
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24929
# Autoconf 2.62 quotes --file arguments for eval, but not when files
24930
# are listed without --file. Let's play safe and only enable the eval
24931
# if we detect the quoting.
24932
case $CONFIG_FILES in
24933
*\'*) eval set x "$CONFIG_FILES" ;;
24934
*) set x $CONFIG_FILES ;;
24939
# Strip MF so we end up with the name of the file.
24940
mf=`echo "$mf" | sed -e 's/:.*$//'`
24941
# Check whether this is an Automake generated Makefile or not.
24942
# We used to match only the files named `Makefile.in', but
24943
# some people rename them; so instead we look at the file content.
24944
# Grep'ing the first line is not enough: some people post-process
24945
# each Makefile.in and add a new line on top of each file to say so.
24946
# Grep'ing the whole file is not good either: AIX grep has a line
24947
# limit of 2048, but all sed's we know have understand at least 4000.
24948
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24949
dirpart=`$as_dirname -- "$mf" ||
24950
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24951
X"$mf" : 'X\(//\)[^/]' \| \
24952
X"$mf" : 'X\(//\)$' \| \
24953
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24955
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24959
/^X\(\/\/\)[^/].*/{
24975
# Extract the definition of DEPDIR, am__include, and am__quote
24976
# from the Makefile without running `make'.
24977
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24978
test -z "$DEPDIR" && continue
24979
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24980
test -z "am__include" && continue
24981
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24982
# When using ansi2knr, U may be empty or an underscore; expand it
24983
U=`sed -n 's/^U = //p' < "$mf"`
24984
# Find all dependency output files, they are included files with
24985
# $(DEPDIR) in their names. We invoke sed twice because it is the
24986
# simplest approach to changing $(DEPDIR) to its actual value in the
24988
for file in `sed -n "
24989
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24990
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24991
# Make sure the directory exists.
24992
test -f "$dirpart/$file" && continue
24993
fdir=`$as_dirname -- "$file" ||
24994
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24995
X"$file" : 'X\(//\)[^/]' \| \
24996
X"$file" : 'X\(//\)$' \| \
24997
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24998
$as_echo X"$file" |
24999
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25003
/^X\(\/\/\)[^/].*/{
25016
as_dir=$dirpart/$fdir; as_fn_mkdir_p
25017
# echo "creating $dirpart/$file"
25018
echo '# dummy' > "$dirpart/$file"
25025
# See if we are running on zsh, and set the options which allow our
25026
# commands through without removal of \ escapes.
25027
if test -n "${ZSH_VERSION+set}" ; then
25028
setopt NO_GLOB_SUBST
25031
cfgfile="${ofile}T"
25032
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25035
cat <<_LT_EOF >> "$cfgfile"
25038
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25039
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25040
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25041
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25043
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25044
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25046
# Written by Gordon Matzigkeit, 1996
25048
# This file is part of GNU Libtool.
25050
# GNU Libtool is free software; you can redistribute it and/or
25051
# modify it under the terms of the GNU General Public License as
25052
# published by the Free Software Foundation; either version 2 of
25053
# the License, or (at your option) any later version.
25055
# As a special exception to the GNU General Public License,
25056
# if you distribute this file as part of a program or library that
25057
# is built using GNU Libtool, you may include this file under the
25058
# same distribution terms that you use for the rest of that program.
25060
# GNU Libtool is distributed in the hope that it will be useful,
25061
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25062
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25063
# GNU General Public License for more details.
25065
# You should have received a copy of the GNU General Public License
25066
# along with GNU Libtool; see the file COPYING. If not, a copy
25067
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25068
# obtained by writing to the Free Software Foundation, Inc.,
25069
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25072
# The names of the tagged configurations supported by this script.
25073
available_tags="CXX "
25075
# ### BEGIN LIBTOOL CONFIG
25077
# Assembler program.
25080
# DLL creation program.
25081
DLLTOOL=$lt_DLLTOOL
25083
# Object dumper program.
25084
OBJDUMP=$lt_OBJDUMP
25086
# Which release of libtool.m4 was used?
25087
macro_version=$macro_version
25088
macro_revision=$macro_revision
25090
# Whether or not to build shared libraries.
25091
build_libtool_libs=$enable_shared
25093
# Whether or not to build static libraries.
25094
build_old_libs=$enable_static
25096
# What type of objects to build.
25099
# Whether or not to optimize for fast installation.
25100
fast_install=$enable_fast_install
25102
# Shell to use when invoking shell scripts.
25105
# An echo program that protects backslashes.
25109
host_alias=$host_alias
25113
# The build system.
25114
build_alias=$build_alias
25118
# A sed program that does not truncate output.
25121
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25122
Xsed="\$SED -e 1s/^X//"
25124
# A grep program that handles long lines.
25130
# A literal string matcher.
25133
# A BSD- or MS-compatible name lister.
25136
# Whether we need soft or hard links.
25139
# What is the maximum length of a command?
25140
max_cmd_len=$max_cmd_len
25142
# Object file suffix (normally "o").
25145
# Executable file suffix (normally "").
25148
# whether the shell understands "unset".
25151
# turn spaces into newlines.
25154
# turn newlines into spaces.
25157
# convert \$build file names to \$host format.
25158
to_host_file_cmd=$lt_cv_to_host_file_cmd
25160
# convert \$build files to toolchain format.
25161
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25163
# Method to check whether dependent libraries are shared objects.
25164
deplibs_check_method=$lt_deplibs_check_method
25166
# Command to use when deplibs_check_method = "file_magic".
25167
file_magic_cmd=$lt_file_magic_cmd
25169
# How to find potential files when deplibs_check_method = "file_magic".
25170
file_magic_glob=$lt_file_magic_glob
25172
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25173
want_nocaseglob=$lt_want_nocaseglob
25175
# Command to associate shared and link libraries.
25176
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25181
# Flags to create an archive.
25182
AR_FLAGS=$lt_AR_FLAGS
25184
# How to feed a file listing to the archiver.
25185
archiver_list_spec=$lt_archiver_list_spec
25187
# A symbol stripping program.
25190
# Commands used to install an old-style archive.
25192
old_postinstall_cmds=$lt_old_postinstall_cmds
25193
old_postuninstall_cmds=$lt_old_postuninstall_cmds
25195
# Whether to use a lock for old archive extraction.
25196
lock_old_archive_extraction=$lock_old_archive_extraction
25201
# LTCC compiler flags.
25202
LTCFLAGS=$lt_CFLAGS
25204
# Take the output of nm and produce a listing of raw symbols and C names.
25205
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25207
# Transform the output of nm in a proper C declaration.
25208
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25210
# Transform the output of nm in a C name address pair.
25211
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25213
# Transform the output of nm in a C name address pair when lib prefix is needed.
25214
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25216
# Specify filename containing input files for \$NM.
25217
nm_file_list_spec=$lt_nm_file_list_spec
25219
# The root where to search for dependent libraries,and in which our libraries should be installed.
25220
lt_sysroot=$lt_sysroot
25222
# The name of the directory that contains temporary libtool files.
25225
# Used to examine libraries when file_magic_cmd begins with "file".
25226
MAGIC_CMD=$MAGIC_CMD
25228
# Must we lock files when doing compilation?
25229
need_locks=$lt_need_locks
25232
MANIFEST_TOOL=$lt_MANIFEST_TOOL
25234
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25235
DSYMUTIL=$lt_DSYMUTIL
25237
# Tool to change global to local symbols on Mac OS X.
25240
# Tool to manipulate fat objects and archives on Mac OS X.
25243
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25246
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25247
OTOOL64=$lt_OTOOL64
25249
# Old archive suffix (normally "a").
25252
# Shared library suffix (normally ".so").
25253
shrext_cmds=$lt_shrext_cmds
25255
# The commands to extract the exported symbol list from a shared archive.
25256
extract_expsyms_cmds=$lt_extract_expsyms_cmds
25258
# Variables whose values should be saved in libtool wrapper scripts and
25259
# restored at link time.
25260
variables_saved_for_relink=$lt_variables_saved_for_relink
25262
# Do we need the "lib" prefix for modules?
25263
need_lib_prefix=$need_lib_prefix
25265
# Do we need a version for libraries?
25266
need_version=$need_version
25268
# Library versioning type.
25269
version_type=$version_type
25271
# Shared library runtime path variable.
25272
runpath_var=$runpath_var
25274
# Shared library path variable.
25275
shlibpath_var=$shlibpath_var
25277
# Is shlibpath searched before the hard-coded library search path?
25278
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25280
# Format of library name prefix.
25281
libname_spec=$lt_libname_spec
25283
# List of archive names. First name is the real one, the rest are links.
25284
# The last name is the one that the linker finds with -lNAME
25285
library_names_spec=$lt_library_names_spec
25287
# The coded name of the library, if different from the real name.
25288
soname_spec=$lt_soname_spec
25290
# Permission mode override for installation of shared libraries.
25291
install_override_mode=$lt_install_override_mode
25293
# Command to use after installation of a shared archive.
25294
postinstall_cmds=$lt_postinstall_cmds
25296
# Command to use after uninstallation of a shared archive.
25297
postuninstall_cmds=$lt_postuninstall_cmds
25299
# Commands used to finish a libtool library installation in a directory.
25300
finish_cmds=$lt_finish_cmds
25302
# As "finish_cmds", except a single script fragment to be evaled but
25304
finish_eval=$lt_finish_eval
25306
# Whether we should hardcode library paths into libraries.
25307
hardcode_into_libs=$hardcode_into_libs
25309
# Compile-time system search path for libraries.
25310
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25312
# Run-time system search path for libraries.
25313
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25315
# Whether dlopen is supported.
25316
dlopen_support=$enable_dlopen
25318
# Whether dlopen of programs is supported.
25319
dlopen_self=$enable_dlopen_self
25321
# Whether dlopen of statically linked programs is supported.
25322
dlopen_self_static=$enable_dlopen_self_static
25324
# Commands to strip libraries.
25325
old_striplib=$lt_old_striplib
25326
striplib=$lt_striplib
25329
# The linker used to build libraries.
25332
# How to create reloadable object files.
25333
reload_flag=$lt_reload_flag
25334
reload_cmds=$lt_reload_cmds
25336
# Commands used to build an old-style archive.
25337
old_archive_cmds=$lt_old_archive_cmds
25339
# A language specific compiler.
25342
# Is the compiler the GNU compiler?
25345
# Compiler flag to turn off builtin functions.
25346
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25348
# Additional compiler flags for building library objects.
25349
pic_flag=$lt_lt_prog_compiler_pic
25351
# How to pass a linker flag through the compiler.
25352
wl=$lt_lt_prog_compiler_wl
25354
# Compiler flag to prevent dynamic linking.
25355
link_static_flag=$lt_lt_prog_compiler_static
25357
# Does compiler simultaneously support -c and -o options?
25358
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25360
# Whether or not to add -lc for building shared libraries.
25361
build_libtool_need_lc=$archive_cmds_need_lc
25363
# Whether or not to disallow shared libs when runtime libs are static.
25364
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25366
# Compiler flag to allow reflexive dlopens.
25367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25369
# Compiler flag to generate shared objects directly from archives.
25370
whole_archive_flag_spec=$lt_whole_archive_flag_spec
25372
# Whether the compiler copes with passing no objects directly.
25373
compiler_needs_object=$lt_compiler_needs_object
25375
# Create an old-style archive from a shared archive.
25376
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25378
# Create a temporary old-style archive to link instead of a shared archive.
25379
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25381
# Commands used to build a shared archive.
25382
archive_cmds=$lt_archive_cmds
25383
archive_expsym_cmds=$lt_archive_expsym_cmds
25385
# Commands used to build a loadable module if different from building
25386
# a shared archive.
25387
module_cmds=$lt_module_cmds
25388
module_expsym_cmds=$lt_module_expsym_cmds
25390
# Whether we are building with GNU ld or not.
25391
with_gnu_ld=$lt_with_gnu_ld
25393
# Flag that allows shared libraries with undefined symbols to be built.
25394
allow_undefined_flag=$lt_allow_undefined_flag
25396
# Flag that enforces no undefined symbols.
25397
no_undefined_flag=$lt_no_undefined_flag
25399
# Flag to hardcode \$libdir into a binary during linking.
25400
# This must work even if \$libdir does not exist
25401
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25403
# If ld is used when linking, flag to hardcode \$libdir into a binary
25404
# during linking. This must work even if \$libdir does not exist.
25405
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25407
# Whether we need a single "-rpath" flag with a separated argument.
25408
hardcode_libdir_separator=$lt_hardcode_libdir_separator
25410
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25411
# DIR into the resulting binary.
25412
hardcode_direct=$hardcode_direct
25414
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25415
# DIR into the resulting binary and the resulting library dependency is
25416
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25417
# library is relocated.
25418
hardcode_direct_absolute=$hardcode_direct_absolute
25420
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25421
# into the resulting binary.
25422
hardcode_minus_L=$hardcode_minus_L
25424
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25425
# into the resulting binary.
25426
hardcode_shlibpath_var=$hardcode_shlibpath_var
25428
# Set to "yes" if building a shared library automatically hardcodes DIR
25429
# into the library and all subsequent libraries and executables linked
25431
hardcode_automatic=$hardcode_automatic
25433
# Set to yes if linker adds runtime paths of dependent libraries
25434
# to runtime path list.
25435
inherit_rpath=$inherit_rpath
25437
# Whether libtool must link a program against all its dependency libraries.
25438
link_all_deplibs=$link_all_deplibs
25440
# Set to "yes" if exported symbols are required.
25441
always_export_symbols=$always_export_symbols
25443
# The commands to list exported symbols.
25444
export_symbols_cmds=$lt_export_symbols_cmds
25446
# Symbols that should not be listed in the preloaded symbols.
25447
exclude_expsyms=$lt_exclude_expsyms
25449
# Symbols that must always be exported.
25450
include_expsyms=$lt_include_expsyms
25452
# Commands necessary for linking programs (against libraries) with templates.
25453
prelink_cmds=$lt_prelink_cmds
25455
# Commands necessary for finishing linking programs.
25456
postlink_cmds=$lt_postlink_cmds
25458
# Specify filename containing input files.
25459
file_list_spec=$lt_file_list_spec
25461
# How to hardcode a shared library path into an executable.
25462
hardcode_action=$hardcode_action
25464
# The directories searched by this compiler when creating a shared library.
25465
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25467
# Dependencies to place before and after the objects being linked to
25468
# create a shared library.
25469
predep_objects=$lt_predep_objects
25470
postdep_objects=$lt_postdep_objects
25471
predeps=$lt_predeps
25472
postdeps=$lt_postdeps
25474
# The library search path used internally by the compiler when linking
25475
# a shared library.
25476
compiler_lib_search_path=$lt_compiler_lib_search_path
25478
# ### END LIBTOOL CONFIG
25484
cat <<\_LT_EOF >> "$cfgfile"
25485
# AIX sometimes has problems with the GCC collect2 program. For some
25486
# reason, if we set the COLLECT_NAMES environment variable, the problems
25487
# vanish in a puff of smoke.
25488
if test "X${COLLECT_NAMES+set}" != Xset; then
25490
export COLLECT_NAMES
25497
ltmain="$ac_aux_dir/ltmain.sh"
25500
# We use sed instead of cat because bash on DJGPP gets confused if
25501
# if finds mixed CR/LF and LF-only lines. Since sed operates in
25502
# text mode, it properly converts lines to CR/LF. This bash problem
25503
# is reportedly fixed, but why not run on old versions too?
25504
sed '$q' "$ltmain" >> "$cfgfile" \
25505
|| (rm -f "$cfgfile"; exit 1)
25507
if test x"$xsi_shell" = xyes; then
25508
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25512
\ */*) func_dirname_result="${1%/*}${2}" ;;\
25513
\ * ) func_dirname_result="${3}" ;;\
25515
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25516
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25517
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25518
test 0 -eq $? || _lt_function_replace_fail=:
25521
sed -e '/^func_basename ()$/,/^} # func_basename /c\
25524
\ func_basename_result="${1##*/}"\
25525
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25526
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25527
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25528
test 0 -eq $? || _lt_function_replace_fail=:
25531
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25532
func_dirname_and_basename ()\
25535
\ */*) func_dirname_result="${1%/*}${2}" ;;\
25536
\ * ) func_dirname_result="${3}" ;;\
25538
\ func_basename_result="${1##*/}"\
25539
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25540
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25541
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25542
test 0 -eq $? || _lt_function_replace_fail=:
25545
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25548
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25549
\ # positional parameters, so assign one to ordinary parameter first.\
25550
\ func_stripname_result=${3}\
25551
\ func_stripname_result=${func_stripname_result#"${1}"}\
25552
\ func_stripname_result=${func_stripname_result%"${2}"}\
25553
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25554
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25555
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25556
test 0 -eq $? || _lt_function_replace_fail=:
25559
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25560
func_split_long_opt ()\
25562
\ func_split_long_opt_name=${1%%=*}\
25563
\ func_split_long_opt_arg=${1#*=}\
25564
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
25565
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25566
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25567
test 0 -eq $? || _lt_function_replace_fail=:
25570
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25571
func_split_short_opt ()\
25573
\ func_split_short_opt_arg=${1#??}\
25574
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25575
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25576
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25577
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25578
test 0 -eq $? || _lt_function_replace_fail=:
25581
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25585
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25586
\ *) func_lo2o_result=${1} ;;\
25588
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25589
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25590
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25591
test 0 -eq $? || _lt_function_replace_fail=:
25594
sed -e '/^func_xform ()$/,/^} # func_xform /c\
25597
func_xform_result=${1%.*}.lo\
25598
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25599
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25600
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25601
test 0 -eq $? || _lt_function_replace_fail=:
25604
sed -e '/^func_arith ()$/,/^} # func_arith /c\
25607
func_arith_result=$(( $* ))\
25608
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25609
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25610
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25611
test 0 -eq $? || _lt_function_replace_fail=:
25614
sed -e '/^func_len ()$/,/^} # func_len /c\
25617
func_len_result=${#1}\
25618
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25619
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25620
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25621
test 0 -eq $? || _lt_function_replace_fail=:
25625
if test x"$lt_shell_append" = xyes; then
25626
sed -e '/^func_append ()$/,/^} # func_append /c\
25629
eval "${1}+=\\${2}"\
25630
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25631
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25632
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25633
test 0 -eq $? || _lt_function_replace_fail=:
25636
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25637
func_append_quoted ()\
25639
\ func_quote_for_eval "${2}"\
25640
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25641
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25642
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25643
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25644
test 0 -eq $? || _lt_function_replace_fail=:
25647
# Save a `func_append' function call where possible by direct use of '+='
25648
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25649
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25650
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25651
test 0 -eq $? || _lt_function_replace_fail=:
25653
# Save a `func_append' function call even when '+=' is not available
25654
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25655
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25656
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25657
test 0 -eq $? || _lt_function_replace_fail=:
25660
if test x"$_lt_function_replace_fail" = x":"; then
25661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25662
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25666
mv -f "$cfgfile" "$ofile" ||
25667
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25671
cat <<_LT_EOF >> "$ofile"
25673
# ### BEGIN LIBTOOL TAG CONFIG: CXX
25675
# The linker used to build libraries.
25678
# How to create reloadable object files.
25679
reload_flag=$lt_reload_flag_CXX
25680
reload_cmds=$lt_reload_cmds_CXX
25682
# Commands used to build an old-style archive.
25683
old_archive_cmds=$lt_old_archive_cmds_CXX
25685
# A language specific compiler.
25686
CC=$lt_compiler_CXX
25688
# Is the compiler the GNU compiler?
25691
# Compiler flag to turn off builtin functions.
25692
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25694
# Additional compiler flags for building library objects.
25695
pic_flag=$lt_lt_prog_compiler_pic_CXX
25697
# How to pass a linker flag through the compiler.
25698
wl=$lt_lt_prog_compiler_wl_CXX
25700
# Compiler flag to prevent dynamic linking.
25701
link_static_flag=$lt_lt_prog_compiler_static_CXX
25703
# Does compiler simultaneously support -c and -o options?
25704
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25706
# Whether or not to add -lc for building shared libraries.
25707
build_libtool_need_lc=$archive_cmds_need_lc_CXX
25709
# Whether or not to disallow shared libs when runtime libs are static.
25710
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25712
# Compiler flag to allow reflexive dlopens.
25713
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25715
# Compiler flag to generate shared objects directly from archives.
25716
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25718
# Whether the compiler copes with passing no objects directly.
25719
compiler_needs_object=$lt_compiler_needs_object_CXX
25721
# Create an old-style archive from a shared archive.
25722
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25724
# Create a temporary old-style archive to link instead of a shared archive.
25725
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25727
# Commands used to build a shared archive.
25728
archive_cmds=$lt_archive_cmds_CXX
25729
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25731
# Commands used to build a loadable module if different from building
25732
# a shared archive.
25733
module_cmds=$lt_module_cmds_CXX
25734
module_expsym_cmds=$lt_module_expsym_cmds_CXX
25736
# Whether we are building with GNU ld or not.
25737
with_gnu_ld=$lt_with_gnu_ld_CXX
25739
# Flag that allows shared libraries with undefined symbols to be built.
25740
allow_undefined_flag=$lt_allow_undefined_flag_CXX
25742
# Flag that enforces no undefined symbols.
25743
no_undefined_flag=$lt_no_undefined_flag_CXX
25745
# Flag to hardcode \$libdir into a binary during linking.
25746
# This must work even if \$libdir does not exist
25747
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25749
# If ld is used when linking, flag to hardcode \$libdir into a binary
25750
# during linking. This must work even if \$libdir does not exist.
25751
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25753
# Whether we need a single "-rpath" flag with a separated argument.
25754
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25756
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25757
# DIR into the resulting binary.
25758
hardcode_direct=$hardcode_direct_CXX
25760
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25761
# DIR into the resulting binary and the resulting library dependency is
25762
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25763
# library is relocated.
25764
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25766
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25767
# into the resulting binary.
25768
hardcode_minus_L=$hardcode_minus_L_CXX
25770
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25771
# into the resulting binary.
25772
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25774
# Set to "yes" if building a shared library automatically hardcodes DIR
25775
# into the library and all subsequent libraries and executables linked
25777
hardcode_automatic=$hardcode_automatic_CXX
25779
# Set to yes if linker adds runtime paths of dependent libraries
25780
# to runtime path list.
25781
inherit_rpath=$inherit_rpath_CXX
25783
# Whether libtool must link a program against all its dependency libraries.
25784
link_all_deplibs=$link_all_deplibs_CXX
25786
# Set to "yes" if exported symbols are required.
25787
always_export_symbols=$always_export_symbols_CXX
25789
# The commands to list exported symbols.
25790
export_symbols_cmds=$lt_export_symbols_cmds_CXX
25792
# Symbols that should not be listed in the preloaded symbols.
25793
exclude_expsyms=$lt_exclude_expsyms_CXX
25795
# Symbols that must always be exported.
25796
include_expsyms=$lt_include_expsyms_CXX
25798
# Commands necessary for linking programs (against libraries) with templates.
25799
prelink_cmds=$lt_prelink_cmds_CXX
25801
# Commands necessary for finishing linking programs.
25802
postlink_cmds=$lt_postlink_cmds_CXX
25804
# Specify filename containing input files.
25805
file_list_spec=$lt_file_list_spec_CXX
25807
# How to hardcode a shared library path into an executable.
25808
hardcode_action=$hardcode_action_CXX
25810
# The directories searched by this compiler when creating a shared library.
25811
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25813
# Dependencies to place before and after the objects being linked to
25814
# create a shared library.
25815
predep_objects=$lt_predep_objects_CXX
25816
postdep_objects=$lt_postdep_objects_CXX
25817
predeps=$lt_predeps_CXX
25818
postdeps=$lt_postdeps_CXX
25820
# The library search path used internally by the compiler when linking
25821
# a shared library.
25822
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25824
# ### END LIBTOOL TAG CONFIG: CXX
25835
ac_clean_files=$ac_clean_files_save
25837
test $ac_write_fail = 0 ||
25838
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25841
# configure is writing to config.log, and then calls config.status.
25842
# config.status does its own redirection, appending to config.log.
25843
# Unfortunately, on DOS this fails, as config.log is still kept open
25844
# by configure, so config.status won't be able to write to it; its
25845
# output is simply discarded. So we exec the FD to /dev/null,
25846
# effectively closing config.log, so it can be properly (re)opened and
25847
# appended to by config.status. When coming back to configure, we
25848
# need to make the FD available again.
25849
if test "$no_create" != yes; then
25851
ac_config_status_args=
25852
test "$silent" = yes &&
25853
ac_config_status_args="$ac_config_status_args --quiet"
25855
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25857
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
25858
# would make configure fail if this is the last instruction.
25859
$ac_cs_success || as_fn_exit 1
25861
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25862
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25863
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25869
echo "Building poppler with support for:"
25870
echo " font configuration: $with_font_configuration"
25871
echo " splash output: $enable_splash_output"
25872
echo " cairo output: $enable_cairo_output"
25873
echo " abiword output: $enable_abiword_output"
25874
echo " qt wrapper: $enable_poppler_qt"
25875
echo " qt4 wrapper: $enable_poppler_qt4"
25876
echo " glib wrapper: $enable_poppler_glib"
25877
echo " use GDK: $enable_gdk"
25878
echo " introspection: $found_introspection"
25879
echo " cpp wrapper: $enable_poppler_cpp"
25880
echo " use gtk-doc: $enable_gtk_doc"
25881
echo " use libjpeg: $enable_libjpeg"
25882
echo " use libpng: $enable_libpng"
25883
echo " use zlib: $enable_zlib"
25884
echo " use libcurl: $enable_libcurl"
25885
echo " use libopenjpeg: $enable_libopenjpeg"
25886
echo " use cms: $enable_cms"
25887
echo " command line utils: $enable_utils"
25890
if test x$enable_splash_output = xno -a x$enable_cairo_output = xno; then
25891
echo " Warning: There is no rendering backend enabled"
25894
if test x$enable_single_precision = xyes -a x$enable_fixedpoint = xyes; then
25895
echo " Warning: Single precision and fixed point options should not be enabled at the same time"
25898
if test x$enable_libjpeg != xyes; then
25899
echo " Warning: Using libjpeg is recommended"
25902
if test x$enable_zlib != xno; then
25903
echo " Warning: Using zlib is not totally safe"
25906
if test x$enable_libopenjpeg != xyes; then
25907
echo " Warning: Using libopenjpeg is recommended"