8099
ac_cpp='$CXXCPP $CPPFLAGS'
8100
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8103
if test -z "$CXX"; then
8104
if test -n "$CCC"; then
8107
if test -n "$ac_tool_prefix"; then
8108
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8110
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8111
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113
$as_echo_n "checking for $ac_word... " >&6; }
8114
if test "${ac_cv_prog_CXX+set}" = set; then :
8115
$as_echo_n "(cached) " >&6
8117
if test -n "$CXX"; then
8118
ac_cv_prog_CXX="$CXX" # Let the user override the test.
8120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124
test -z "$as_dir" && as_dir=.
8125
for ac_exec_ext in '' $ac_executable_extensions; do
8126
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8128
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138
if test -n "$CXX"; then
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8140
$as_echo "$CXX" >&6; }
8142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143
$as_echo "no" >&6; }
8147
test -n "$CXX" && break
8150
if test -z "$CXX"; then
8152
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8154
# Extract the first word of "$ac_prog", so it can be a program name with args.
8155
set dummy $ac_prog; ac_word=$2
8156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157
$as_echo_n "checking for $ac_word... " >&6; }
8158
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8159
$as_echo_n "(cached) " >&6
8161
if test -n "$ac_ct_CXX"; then
8162
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168
test -z "$as_dir" && as_dir=.
8169
for ac_exec_ext in '' $ac_executable_extensions; do
8170
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171
ac_cv_prog_ac_ct_CXX="$ac_prog"
8172
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8182
if test -n "$ac_ct_CXX"; then
8183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8184
$as_echo "$ac_ct_CXX" >&6; }
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187
$as_echo "no" >&6; }
8191
test -n "$ac_ct_CXX" && break
8194
if test "x$ac_ct_CXX" = x; then
8197
case $cross_compiling:$ac_tool_warned in
8199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201
ac_tool_warned=yes ;;
8209
# Provide some information about the compiler.
8210
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8213
for ac_option in --version -v -V -qversion; do
8214
{ { ac_try="$ac_compiler $ac_option >&5"
8216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217
*) ac_try_echo=$ac_try;;
8219
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8220
$as_echo "$ac_try_echo"; } >&5
8221
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
8223
if test -s conftest.err; then
8225
... rest of stderr output deleted ...
8226
10q' conftest.err >conftest.er1
8227
cat conftest.er1 >&5
8228
rm -f conftest.er1 conftest.err
8230
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8231
test $ac_status = 0; }
8234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8235
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8236
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8237
$as_echo_n "(cached) " >&6
8239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240
/* end confdefs.h. */
8253
if ac_fn_cxx_try_compile "$LINENO"; then :
8258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8263
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8264
if test $ac_compiler_gnu = yes; then
8269
ac_test_CXXFLAGS=${CXXFLAGS+set}
8270
ac_save_CXXFLAGS=$CXXFLAGS
8271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8272
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8273
if test "${ac_cv_prog_cxx_g+set}" = set; then :
8274
$as_echo_n "(cached) " >&6
8276
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8277
ac_cxx_werror_flag=yes
8280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281
/* end confdefs.h. */
8291
if ac_fn_cxx_try_compile "$LINENO"; then :
8292
ac_cv_prog_cxx_g=yes
8295
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296
/* end confdefs.h. */
8306
if ac_fn_cxx_try_compile "$LINENO"; then :
8309
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312
/* end confdefs.h. */
8322
if ac_fn_cxx_try_compile "$LINENO"; then :
8323
ac_cv_prog_cxx_g=yes
8325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8333
$as_echo "$ac_cv_prog_cxx_g" >&6; }
8334
if test "$ac_test_CXXFLAGS" = set; then
8335
CXXFLAGS=$ac_save_CXXFLAGS
8336
elif test $ac_cv_prog_cxx_g = yes; then
8337
if test "$GXX" = yes; then
8343
if test "$GXX" = yes; then
8350
ac_cpp='$CPP $CPPFLAGS'
8351
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8352
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8353
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8356
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8357
(test "X$CXX" != "Xg++"))) ; then
8359
ac_cpp='$CXXCPP $CPPFLAGS'
8360
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8364
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8365
if test -z "$CXXCPP"; then
8366
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8367
$as_echo_n "(cached) " >&6
8369
# Double quotes because CXXCPP needs to be expanded
8370
for CXXCPP in "$CXX -E" "/lib/cpp"
8373
for ac_cxx_preproc_warn_flag in '' yes
8375
# Use a header file that comes with gcc, so configuring glibc
8376
# with a fresh cross-compiler works.
8377
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8378
# <limits.h> exists even on freestanding compilers.
8379
# On the NeXT, cc -E runs the code through the compiler's parser,
8380
# not just through cpp. "Syntax error" is here to catch this case.
8381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382
/* end confdefs.h. */
8384
# include <limits.h>
8386
# include <assert.h>
8390
if ac_fn_cxx_try_cpp "$LINENO"; then :
8393
# Broken: fails on valid input.
8396
rm -f conftest.err conftest.$ac_ext
8398
# OK, works on sane cases. Now check whether nonexistent headers
8399
# can be detected and how.
8400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401
/* end confdefs.h. */
8402
#include <ac_nonexistent.h>
8404
if ac_fn_cxx_try_cpp "$LINENO"; then :
8405
# Broken: success on invalid input.
8408
# Passes both tests.
8412
rm -f conftest.err conftest.$ac_ext
8415
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8416
rm -f conftest.err conftest.$ac_ext
8417
if $ac_preproc_ok; then :
8422
ac_cv_prog_CXXCPP=$CXXCPP
8425
CXXCPP=$ac_cv_prog_CXXCPP
8427
ac_cv_prog_CXXCPP=$CXXCPP
8429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8430
$as_echo "$CXXCPP" >&6; }
8432
for ac_cxx_preproc_warn_flag in '' yes
8434
# Use a header file that comes with gcc, so configuring glibc
8435
# with a fresh cross-compiler works.
8436
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437
# <limits.h> exists even on freestanding compilers.
8438
# On the NeXT, cc -E runs the code through the compiler's parser,
8439
# not just through cpp. "Syntax error" is here to catch this case.
8440
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441
/* end confdefs.h. */
8443
# include <limits.h>
8445
# include <assert.h>
8449
if ac_fn_cxx_try_cpp "$LINENO"; then :
8452
# Broken: fails on valid input.
8455
rm -f conftest.err conftest.$ac_ext
8457
# OK, works on sane cases. Now check whether nonexistent headers
8458
# can be detected and how.
8459
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460
/* end confdefs.h. */
8461
#include <ac_nonexistent.h>
8463
if ac_fn_cxx_try_cpp "$LINENO"; then :
8464
# Broken: success on invalid input.
8467
# Passes both tests.
8471
rm -f conftest.err conftest.$ac_ext
8474
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8475
rm -f conftest.err conftest.$ac_ext
8476
if $ac_preproc_ok; then :
8479
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8480
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8481
_lt_caught_CXX_error=yes; }
8485
ac_cpp='$CPP $CPPFLAGS'
8486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491
_lt_caught_CXX_error=yes
8775
func_stripname_cnf ()
8778
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8779
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8781
} # func_stripname_cnf
17769
if test "X$prefix" = "XNONE"; then
17770
acl_final_prefix="$ac_default_prefix"
17772
acl_final_prefix="$prefix"
17774
if test "X$exec_prefix" = "XNONE"; then
17775
acl_final_exec_prefix='${prefix}'
17777
acl_final_exec_prefix="$exec_prefix"
17779
acl_save_prefix="$prefix"
17780
prefix="$acl_final_prefix"
17781
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17782
prefix="$acl_save_prefix"
17785
# Check whether --with-gnu-ld was given.
17786
if test "${with_gnu_ld+set}" = set; then :
17787
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17792
# Prepare PATH_SEPARATOR.
17793
# The user is always right.
17794
if test "${PATH_SEPARATOR+set}" != set; then
17795
echo "#! /bin/sh" >conf$$.sh
17796
echo "exit 0" >>conf$$.sh
17798
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17806
if test "$GCC" = yes; then
17807
# Check if gcc -print-prog-name=ld gives a path.
17808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17809
$as_echo_n "checking for ld used by GCC... " >&6; }
17812
# gcc leaves a trailing carriage return which upsets mingw
17813
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17815
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17818
# Accept absolute paths.
17819
[\\/]* | [A-Za-z]:[\\/]*)
17820
re_direlt='/[^/][^/]*/\.\./'
17821
# Canonicalize the path of ld
17822
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17823
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17824
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17826
test -z "$LD" && LD="$ac_prog"
17829
# If it fails, then pretend we aren't using GCC.
17833
# If it is relative, then search for the first ld in PATH.
17834
with_gnu_ld=unknown
17837
elif test "$with_gnu_ld" = yes; then
17838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17839
$as_echo_n "checking for GNU ld... " >&6; }
17841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17842
$as_echo_n "checking for non-GNU ld... " >&6; }
17844
if ${acl_cv_path_LD+:} false; then :
17845
$as_echo_n "(cached) " >&6
17847
if test -z "$LD"; then
17848
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17849
for ac_dir in $PATH; do
17850
test -z "$ac_dir" && ac_dir=.
17851
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17852
acl_cv_path_LD="$ac_dir/$ac_prog"
17853
# Check to see if the program is GNU ld. I'd rather use --version,
17854
# but apparently some GNU ld's only accept -v.
17855
# Break only if it was the GNU/non-GNU ld that we prefer.
17856
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17857
*GNU* | *'with BFD'*)
17858
test "$with_gnu_ld" != no && break ;;
17860
test "$with_gnu_ld" != yes && break ;;
17866
acl_cv_path_LD="$LD" # Let the user override the test with a path.
17870
LD="$acl_cv_path_LD"
17871
if test -n "$LD"; then
17872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17873
$as_echo "$LD" >&6; }
17875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876
$as_echo "no" >&6; }
17878
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17880
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17881
if ${acl_cv_prog_gnu_ld+:} false; then :
17882
$as_echo_n "(cached) " >&6
17884
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
17885
case `$LD -v 2>&1 </dev/null` in
17886
*GNU* | *'with BFD'*)
17887
acl_cv_prog_gnu_ld=yes ;;
17889
acl_cv_prog_gnu_ld=no ;;
17892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17893
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17894
with_gnu_ld=$acl_cv_prog_gnu_ld
17899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17900
$as_echo_n "checking for shared library run path origin... " >&6; }
17901
if ${acl_cv_rpath+:} false; then :
17902
$as_echo_n "(cached) " >&6
17905
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17906
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17908
rm -f ./conftest.sh
17912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17913
$as_echo "$acl_cv_rpath" >&6; }
17915
acl_libext="$acl_cv_libext"
17916
acl_shlibext="$acl_cv_shlibext"
17917
acl_libname_spec="$acl_cv_libname_spec"
17918
acl_library_names_spec="$acl_cv_library_names_spec"
17919
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17920
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17921
acl_hardcode_direct="$acl_cv_hardcode_direct"
17922
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17923
# Check whether --enable-rpath was given.
17924
if test "${enable_rpath+set}" = set; then :
17925
enableval=$enable_rpath; :
17933
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17934
if test -n "$searchpath"; then
17935
acl_save_IFS="${IFS= }"; IFS=":"
17936
for searchdir in $searchpath; do
17937
if test -d "$searchdir"; then
17938
case "$searchdir" in
17939
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17940
*) searchdir=`cd "$searchdir" && pwd`
17941
case "$searchdir" in
17942
*/lib64 ) acl_libdirstem=lib64 ;;
17947
IFS="$acl_save_IFS"
17960
acl_save_prefix="$prefix"
17961
prefix="$acl_final_prefix"
17962
acl_save_exec_prefix="$exec_prefix"
17963
exec_prefix="$acl_final_exec_prefix"
17965
eval additional_includedir=\"$includedir\"
17966
eval additional_libdir=\"$libdir\"
17968
exec_prefix="$acl_save_exec_prefix"
17969
prefix="$acl_save_prefix"
17972
# Check whether --with-libiconv-prefix was given.
17973
if test "${with_libiconv_prefix+set}" = set; then :
17974
withval=$with_libiconv_prefix;
17975
if test "X$withval" = "Xno"; then
17978
if test "X$withval" = "X"; then
17980
acl_save_prefix="$prefix"
17981
prefix="$acl_final_prefix"
17982
acl_save_exec_prefix="$exec_prefix"
17983
exec_prefix="$acl_final_exec_prefix"
17985
eval additional_includedir=\"$includedir\"
17986
eval additional_libdir=\"$libdir\"
17988
exec_prefix="$acl_save_exec_prefix"
17989
prefix="$acl_save_prefix"
17992
additional_includedir="$withval/include"
17993
additional_libdir="$withval/$acl_libdirstem"
18005
names_already_handled=
18006
names_next_round='iconv '
18007
while test -n "$names_next_round"; do
18008
names_this_round="$names_next_round"
18010
for name in $names_this_round; do
18012
for n in $names_already_handled; do
18013
if test "$n" = "$name"; then
18014
already_handled=yes
18018
if test -z "$already_handled"; then
18019
names_already_handled="$names_already_handled $name"
18020
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18021
eval value=\"\$HAVE_LIB$uppername\"
18022
if test -n "$value"; then
18023
if test "$value" = yes; then
18024
eval value=\"\$LIB$uppername\"
18025
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18026
eval value=\"\$LTLIB$uppername\"
18027
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18036
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18037
if test -n "$acl_shlibext"; then
18038
shrext=".$acl_shlibext" # typically: shrext=.so
18042
if test $use_additional = yes; then
18043
dir="$additional_libdir"
18044
if test -n "$acl_shlibext"; then
18045
if test -f "$dir/$libname$shrext"; then
18047
found_so="$dir/$libname$shrext"
18049
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18050
ver=`(cd "$dir" && \
18051
for f in "$libname$shrext".*; do echo "$f"; done \
18052
| sed -e "s,^$libname$shrext\\\\.,," \
18053
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18054
| sed 1q ) 2>/dev/null`
18055
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18057
found_so="$dir/$libname$shrext.$ver"
18060
eval library_names=\"$acl_library_names_spec\"
18061
for f in $library_names; do
18062
if test -f "$dir/$f"; then
18071
if test "X$found_dir" = "X"; then
18072
if test -f "$dir/$libname.$acl_libext"; then
18074
found_a="$dir/$libname.$acl_libext"
18077
if test "X$found_dir" != "X"; then
18078
if test -f "$dir/$libname.la"; then
18079
found_la="$dir/$libname.la"
18083
if test "X$found_dir" = "X"; then
18084
for x in $LDFLAGS $LTLIBICONV; do
18086
acl_save_prefix="$prefix"
18087
prefix="$acl_final_prefix"
18088
acl_save_exec_prefix="$exec_prefix"
18089
exec_prefix="$acl_final_exec_prefix"
18091
exec_prefix="$acl_save_exec_prefix"
18092
prefix="$acl_save_prefix"
18096
dir=`echo "X$x" | sed -e 's/^X-L//'`
18097
if test -n "$acl_shlibext"; then
18098
if test -f "$dir/$libname$shrext"; then
18100
found_so="$dir/$libname$shrext"
18102
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18103
ver=`(cd "$dir" && \
18104
for f in "$libname$shrext".*; do echo "$f"; done \
18105
| sed -e "s,^$libname$shrext\\\\.,," \
18106
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18107
| sed 1q ) 2>/dev/null`
18108
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18110
found_so="$dir/$libname$shrext.$ver"
18113
eval library_names=\"$acl_library_names_spec\"
18114
for f in $library_names; do
18115
if test -f "$dir/$f"; then
18124
if test "X$found_dir" = "X"; then
18125
if test -f "$dir/$libname.$acl_libext"; then
18127
found_a="$dir/$libname.$acl_libext"
18130
if test "X$found_dir" != "X"; then
18131
if test -f "$dir/$libname.la"; then
18132
found_la="$dir/$libname.la"
18137
if test "X$found_dir" != "X"; then
18142
if test "X$found_dir" != "X"; then
18143
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18144
if test "X$found_so" != "X"; then
18145
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18146
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18149
for x in $ltrpathdirs; do
18150
if test "X$x" = "X$found_dir"; then
18155
if test -z "$haveit"; then
18156
ltrpathdirs="$ltrpathdirs $found_dir"
18158
if test "$acl_hardcode_direct" = yes; then
18159
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18161
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18162
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18164
for x in $rpathdirs; do
18165
if test "X$x" = "X$found_dir"; then
18170
if test -z "$haveit"; then
18171
rpathdirs="$rpathdirs $found_dir"
18175
for x in $LDFLAGS $LIBICONV; do
18177
acl_save_prefix="$prefix"
18178
prefix="$acl_final_prefix"
18179
acl_save_exec_prefix="$exec_prefix"
18180
exec_prefix="$acl_final_exec_prefix"
18182
exec_prefix="$acl_save_exec_prefix"
18183
prefix="$acl_save_prefix"
18185
if test "X$x" = "X-L$found_dir"; then
18190
if test -z "$haveit"; then
18191
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18193
if test "$acl_hardcode_minus_L" != no; then
18194
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18196
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18202
if test "X$found_a" != "X"; then
18203
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18205
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18208
additional_includedir=
18209
case "$found_dir" in
18210
*/$acl_libdirstem | */$acl_libdirstem/)
18211
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18212
LIBICONV_PREFIX="$basedir"
18213
additional_includedir="$basedir/include"
18216
if test "X$additional_includedir" != "X"; then
18217
if test "X$additional_includedir" != "X/usr/include"; then
18219
if test "X$additional_includedir" = "X/usr/local/include"; then
18220
if test -n "$GCC"; then
18222
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18226
if test -z "$haveit"; then
18227
for x in $CPPFLAGS $INCICONV; do
18229
acl_save_prefix="$prefix"
18230
prefix="$acl_final_prefix"
18231
acl_save_exec_prefix="$exec_prefix"
18232
exec_prefix="$acl_final_exec_prefix"
18234
exec_prefix="$acl_save_exec_prefix"
18235
prefix="$acl_save_prefix"
18237
if test "X$x" = "X-I$additional_includedir"; then
18242
if test -z "$haveit"; then
18243
if test -d "$additional_includedir"; then
18244
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18250
if test -n "$found_la"; then
18251
save_libdir="$libdir"
18252
case "$found_la" in
18253
*/* | *\\*) . "$found_la" ;;
18254
*) . "./$found_la" ;;
18256
libdir="$save_libdir"
18257
for dep in $dependency_libs; do
18260
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18261
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18263
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18264
if test -n "$GCC"; then
18266
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18270
if test -z "$haveit"; then
18272
for x in $LDFLAGS $LIBICONV; do
18274
acl_save_prefix="$prefix"
18275
prefix="$acl_final_prefix"
18276
acl_save_exec_prefix="$exec_prefix"
18277
exec_prefix="$acl_final_exec_prefix"
18279
exec_prefix="$acl_save_exec_prefix"
18280
prefix="$acl_save_prefix"
18282
if test "X$x" = "X-L$additional_libdir"; then
18287
if test -z "$haveit"; then
18288
if test -d "$additional_libdir"; then
18289
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18293
for x in $LDFLAGS $LTLIBICONV; do
18295
acl_save_prefix="$prefix"
18296
prefix="$acl_final_prefix"
18297
acl_save_exec_prefix="$exec_prefix"
18298
exec_prefix="$acl_final_exec_prefix"
18300
exec_prefix="$acl_save_exec_prefix"
18301
prefix="$acl_save_prefix"
18303
if test "X$x" = "X-L$additional_libdir"; then
18308
if test -z "$haveit"; then
18309
if test -d "$additional_libdir"; then
18310
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18317
dir=`echo "X$dep" | sed -e 's/^X-R//'`
18318
if test "$enable_rpath" != no; then
18320
for x in $rpathdirs; do
18321
if test "X$x" = "X$dir"; then
18326
if test -z "$haveit"; then
18327
rpathdirs="$rpathdirs $dir"
18330
for x in $ltrpathdirs; do
18331
if test "X$x" = "X$dir"; then
18336
if test -z "$haveit"; then
18337
ltrpathdirs="$ltrpathdirs $dir"
18342
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18345
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18348
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18349
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18355
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18356
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18362
if test "X$rpathdirs" != "X"; then
18363
if test -n "$acl_hardcode_libdir_separator"; then
18365
for found_dir in $rpathdirs; do
18366
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18368
acl_save_libdir="$libdir"
18370
eval flag=\"$acl_hardcode_libdir_flag_spec\"
18371
libdir="$acl_save_libdir"
18372
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18374
for found_dir in $rpathdirs; do
18375
acl_save_libdir="$libdir"
18376
libdir="$found_dir"
18377
eval flag=\"$acl_hardcode_libdir_flag_spec\"
18378
libdir="$acl_save_libdir"
18379
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18383
if test "X$ltrpathdirs" != "X"; then
18384
for found_dir in $ltrpathdirs; do
18385
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18395
am_save_CPPFLAGS="$CPPFLAGS"
18397
for element in $INCICONV; do
18399
for x in $CPPFLAGS; do
18401
acl_save_prefix="$prefix"
18402
prefix="$acl_final_prefix"
18403
acl_save_exec_prefix="$exec_prefix"
18404
exec_prefix="$acl_final_exec_prefix"
18406
exec_prefix="$acl_save_exec_prefix"
18407
prefix="$acl_save_prefix"
18409
if test "X$x" = "X$element"; then
18414
if test -z "$haveit"; then
18415
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18421
$as_echo_n "checking for iconv... " >&6; }
18422
if ${am_cv_func_iconv+:} false; then :
18423
$as_echo_n "(cached) " >&6
18426
am_cv_func_iconv="no, consider installing GNU libiconv"
18428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429
/* end confdefs.h. */
18431
#include <stdlib.h>
18437
iconv_t cd = iconv_open("","");
18438
iconv(cd,NULL,NULL,NULL,NULL);
18444
if ac_fn_c_try_link "$LINENO"; then :
18445
am_cv_func_iconv=yes
18447
rm -f core conftest.err conftest.$ac_objext \
18448
conftest$ac_exeext conftest.$ac_ext
18449
if test "$am_cv_func_iconv" != yes; then
18450
am_save_LIBS="$LIBS"
18451
LIBS="$LIBS $LIBICONV"
18452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453
/* end confdefs.h. */
18455
#include <stdlib.h>
18461
iconv_t cd = iconv_open("","");
18462
iconv(cd,NULL,NULL,NULL,NULL);
18468
if ac_fn_c_try_link "$LINENO"; then :
18469
am_cv_lib_iconv=yes
18470
am_cv_func_iconv=yes
18472
rm -f core conftest.err conftest.$ac_objext \
18473
conftest$ac_exeext conftest.$ac_ext
18474
LIBS="$am_save_LIBS"
18478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18479
$as_echo "$am_cv_func_iconv" >&6; }
18480
if test "$am_cv_func_iconv" = yes; then
18481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18482
$as_echo_n "checking for working iconv... " >&6; }
18483
if ${am_cv_func_iconv_works+:} false; then :
18484
$as_echo_n "(cached) " >&6
18487
am_save_LIBS="$LIBS"
18488
if test $am_cv_lib_iconv = yes; then
18489
LIBS="$LIBS $LIBICONV"
18491
if test "$cross_compiling" = yes; then :
18494
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18495
*) am_cv_func_iconv_works="guessing yes" ;;
18499
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500
/* end confdefs.h. */
18503
#include <string.h>
18507
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18510
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18511
if (cd_utf8_to_88591 != (iconv_t)(-1))
18513
static const char input[] = "\342\202\254"; /* EURO SIGN */
18515
const char *inptr = input;
18516
size_t inbytesleft = strlen (input);
18517
char *outptr = buf;
18518
size_t outbytesleft = sizeof (buf);
18519
size_t res = iconv (cd_utf8_to_88591,
18520
(char **) &inptr, &inbytesleft,
18521
&outptr, &outbytesleft);
18524
iconv_close (cd_utf8_to_88591);
18527
/* Test against Solaris 10 bug: Failures are not distinguishable from
18528
successful returns. */
18530
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18531
if (cd_ascii_to_88591 != (iconv_t)(-1))
18533
static const char input[] = "\263";
18535
const char *inptr = input;
18536
size_t inbytesleft = strlen (input);
18537
char *outptr = buf;
18538
size_t outbytesleft = sizeof (buf);
18539
size_t res = iconv (cd_ascii_to_88591,
18540
(char **) &inptr, &inbytesleft,
18541
&outptr, &outbytesleft);
18544
iconv_close (cd_ascii_to_88591);
18547
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */
18549
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18550
if (cd_88591_to_utf8 != (iconv_t)(-1))
18552
static const char input[] = "\304";
18553
static char buf[2] = { (char)0xDE, (char)0xAD };
18554
const char *inptr = input;
18555
size_t inbytesleft = 1;
18556
char *outptr = buf;
18557
size_t outbytesleft = 1;
18558
size_t res = iconv (cd_88591_to_utf8,
18559
(char **) &inptr, &inbytesleft,
18560
&outptr, &outbytesleft);
18561
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18563
iconv_close (cd_88591_to_utf8);
18566
#if 0 /* This bug could be worked around by the caller. */
18567
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18569
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18570
if (cd_88591_to_utf8 != (iconv_t)(-1))
18572
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18574
const char *inptr = input;
18575
size_t inbytesleft = strlen (input);
18576
char *outptr = buf;
18577
size_t outbytesleft = sizeof (buf);
18578
size_t res = iconv (cd_88591_to_utf8,
18579
(char **) &inptr, &inbytesleft,
18580
&outptr, &outbytesleft);
18583
iconv_close (cd_88591_to_utf8);
18587
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18589
if (/* Try standardized names. */
18590
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18591
/* Try IRIX, OSF/1 names. */
18592
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18593
/* Try AIX names. */
18594
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18595
/* Try HP-UX names. */
18596
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18601
if ac_fn_c_try_run "$LINENO"; then :
18602
am_cv_func_iconv_works=yes
18604
am_cv_func_iconv_works=no
18606
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18607
conftest.$ac_objext conftest.beam conftest.$ac_ext
18610
LIBS="$am_save_LIBS"
18613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18614
$as_echo "$am_cv_func_iconv_works" >&6; }
18615
case "$am_cv_func_iconv_works" in
18616
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
18617
*) am_func_iconv=yes ;;
18620
am_func_iconv=no am_cv_lib_iconv=no
18622
if test "$am_func_iconv" = yes; then
18624
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18627
if test "$am_cv_lib_iconv" = yes; then
18628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18629
$as_echo_n "checking how to link with libiconv... " >&6; }
18630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18631
$as_echo "$LIBICONV" >&6; }
18633
CPPFLAGS="$am_save_CPPFLAGS"
18640
if test "$am_cv_func_iconv" = yes; then
18641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18642
$as_echo_n "checking for iconv declaration... " >&6; }
18643
if ${am_cv_proto_iconv+:} false; then :
18644
$as_echo_n "(cached) " >&6
18647
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648
/* end confdefs.h. */
18650
#include <stdlib.h>
18656
#if defined(__STDC__) || defined(__cplusplus)
18657
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18670
if ac_fn_c_try_compile "$LINENO"; then :
18671
am_cv_proto_iconv_arg1=""
18673
am_cv_proto_iconv_arg1="const"
18675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676
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);"
18679
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18681
$am_cv_proto_iconv" >&5
18683
$am_cv_proto_iconv" >&6; }
18685
cat >>confdefs.h <<_ACEOF
18686
#define ICONV_CONST $am_cv_proto_iconv_arg1
18693
if test "$am_func_iconv" = "yes"; then
18695
echo '#include <iconv.h>' > testiconv.cpp
18696
echo 'int main(int argc, char** argv) { iconv_t cd; return iconv (cd, (const char **) 0, 0, 0, 0); } ' >> testiconv.cpp
18697
if test -z "`${CXX} testiconv.cpp -c 2>&1`" ; then
18698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ICONV_CPP_CONST=\"const\"" >&5
18699
$as_echo "using ICONV_CPP_CONST=\"const\"" >&6; }
18700
ICONV_CPP_CONST="const"
18702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ICONV_CPP_CONST=\"\"" >&5
18703
$as_echo "using ICONV_CPP_CONST=\"\"" >&6; }
18709
cat >>confdefs.h <<_ACEOF
18710
#define ICONV_CPP_CONST $ICONV_CPP_CONST
18718
# Check whether --with-liblzma was given.
18719
if test "${with_liblzma+set}" = set; then :
18720
withval=$with_liblzma;
18724
if test "$with_liblzma" = "yes" ; then
18725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18726
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18727
if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18728
$as_echo_n "(cached) " >&6
18730
ac_check_lib_save_LIBS=$LIBS
18731
LIBS="-llzma $LIBS"
18732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733
/* end confdefs.h. */
18735
/* Override any GCC internal prototype to avoid an error.
18736
Use char because int might match the return type of a GCC
18737
builtin and then its argument prototype would still apply. */
18745
return lzma_code ();
18750
if ac_fn_c_try_link "$LINENO"; then :
18751
ac_cv_lib_lzma_lzma_code=yes
18753
ac_cv_lib_lzma_lzma_code=no
18755
rm -f core conftest.err conftest.$ac_objext \
18756
conftest$ac_exeext conftest.$ac_ext
18757
LIBS=$ac_check_lib_save_LIBS
18759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18760
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18761
if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18762
LIBLZMA_SETTING=yes
18768
if test "$LIBLZMA_SETTING" = "yes" ; then
18769
LIBS="-llzma $LIBS"
18775
LIBLZMA_SETTING=$LIBLZMA_SETTING
21076
# Check whether --with-netcdf was given.
21077
if test "${with_netcdf+set}" = set; then :
21078
withval=$with_netcdf;
21082
if test "$with_netcdf" = "no" ; then
21086
echo "netCDF support disabled."
21088
elif test "$with_netcdf" = "yes" -o "$with_netcdf" = "" ; then
21090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
21091
$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
21092
if ${ac_cv_lib_netcdf_nc_open+:} false; then :
21093
$as_echo_n "(cached) " >&6
21095
ac_check_lib_save_LIBS=$LIBS
21096
LIBS="-lnetcdf $LIBS"
21097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098
/* end confdefs.h. */
21100
/* Override any GCC internal prototype to avoid an error.
21101
Use char because int might match the return type of a GCC
21102
builtin and then its argument prototype would still apply. */
21115
if ac_fn_c_try_link "$LINENO"; then :
21116
ac_cv_lib_netcdf_nc_open=yes
21118
ac_cv_lib_netcdf_nc_open=no
21120
rm -f core conftest.err conftest.$ac_objext \
21121
conftest$ac_exeext conftest.$ac_ext
21122
LIBS=$ac_check_lib_save_LIBS
21124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
21125
$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
21126
if test "x$ac_cv_lib_netcdf_nc_open" = xyes; then :
21133
if test "$NETCDF_SETTING" = "yes" ; then
21135
if test -d /usr/include/netcdf ; then
21136
EXTRA_INCLUDES="-I/usr/include/netcdf $EXTRA_INCLUDES"
21138
elif test -d /usr/include/netcdf-3 ; then
21139
EXTRA_INCLUDES="-I/usr/include/netcdf-3 $EXTRA_INCLUDES"
21141
elif test -f /usr/include/netcdf.h ; then
21143
elif test -f /usr/local/include/netcdf.h ; then
21144
NETCDF_ROOT="/usr/local"
21146
echo "using pre-installed libnetcdf."
21147
echo -n "libnetcdf is installed but its location cannot be found, "
21148
echo "use --with-netcdf=/path_to_netcdf for proper support"
21151
LIBS="-lnetcdf $LIBS"
21152
if test "$NETCDF_ROOT" != "" ; then
21153
echo "using pre-installed libnetcdf from "$NETCDF_ROOT
21157
echo "libnetcdf not found - netCDF support disabled"
21162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
21163
$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
21164
if ${ac_cv_lib_netcdf_nc_open+:} false; then :
21165
$as_echo_n "(cached) " >&6
21167
ac_check_lib_save_LIBS=$LIBS
21168
LIBS="-lnetcdf -L$with_netcdf -L$with_netcdf/lib $LIBS"
21169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170
/* end confdefs.h. */
21172
/* Override any GCC internal prototype to avoid an error.
21173
Use char because int might match the return type of a GCC
21174
builtin and then its argument prototype would still apply. */
21187
if ac_fn_c_try_link "$LINENO"; then :
21188
ac_cv_lib_netcdf_nc_open=yes
21190
ac_cv_lib_netcdf_nc_open=no
21192
rm -f core conftest.err conftest.$ac_objext \
21193
conftest$ac_exeext conftest.$ac_ext
21194
LIBS=$ac_check_lib_save_LIBS
21196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
21197
$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
21198
if test "x$ac_cv_lib_netcdf_nc_open" = xyes; then :
21205
if test "$NETCDF_SETTING" = "yes" ; then
21208
NETCDF_ROOT="$with_netcdf"
21210
if test -d $with_netcdf/lib ; then
21211
LIBS="-L$with_netcdf/lib -lnetcdf $LIBS"
21212
EXTRA_INCLUDES="-I$with_netcdf/include $EXTRA_INCLUDES"
21214
LIBS="-L$with_netcdf -lnetcdf $LIBS"
21215
EXTRA_INCLUDES="-I$with_netcdf $EXTRA_INCLUDES"
21218
echo "using libnetcdf from $with_netcdf"
21221
echo "libnetcdf not found in "$with_netcdf" - netCDF support disabled"
21227
if test "$NETCDF_SETTING" = "yes" ; then
21229
ncdump=$NETCDF_ROOT"/bin/ncdump"
21232
if { test -x "$ncdump"; }; then
21233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libnetcdf version with $ncdump" >&5
21234
$as_echo_n "checking libnetcdf version with $ncdump... " >&6; }
21235
netcdf_version=`$ncdump 2>&1 | grep "netcdf library version" | awk '{gsub(/"/,"");print $4}'`
21236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: got $netcdf_version" >&5
21237
$as_echo "got $netcdf_version" >&6; }
21238
if test "$netcdf_version" != "" -a "${netcdf_version:0:1}" == "4" ; then
21239
nc_config=$NETCDF_ROOT"/bin/nc-config"
21243
if { test -x "$nc_config"; }; then
21244
echo "checking libnetcdf config with $nc_config"
21246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netcdf-4 (and HDF5) support in libnetcdf" >&5
21247
$as_echo_n "checking for netcdf-4 (and HDF5) support in libnetcdf... " >&6; }
21248
if test "x$($nc_config --has-nc4)" = "xyes"; then :
21249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21250
$as_echo "yes" >&6; }
21253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254
$as_echo "no" >&6; }
21258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF4 support in libnetcdf" >&5
21259
$as_echo_n "checking for HDF4 support in libnetcdf... " >&6; }
21260
if test "x$($nc_config --has-hdf4)" = "xyes"; then :
21261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21262
$as_echo "yes" >&6; }
21263
NETCDF_HAS_HDF4=yes
21265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266
$as_echo "no" >&6; }
21271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ncdump and/or nc-config not found, skipping netcdf-4 tests" >&5
21272
$as_echo "ncdump and/or nc-config not found, skipping netcdf-4 tests" >&6; }
21279
NETCDF_SETTING=$NETCDF_SETTING
21281
NETCDF_ROOT=$NETCDF_ROOT
21283
NETCDF_HAS_NC4=$NETCDF_HAS_NC4
21285
NETCDF_HAS_HDF4=$NETCDF_HAS_HDF4
21288
if test "$NETCDF_SETTING" != "no" ; then
21289
OPT_GDAL_FORMATS="netcdf $OPT_GDAL_FORMATS"
19119
21295
# Check whether --with-jasper was given.
19120
21296
if test "${with_jasper+set}" = set; then :
21515
# Check whether --with-openjpeg was given.
21516
if test "${with_openjpeg+set}" = set; then :
21517
withval=$with_openjpeg;
21521
if test "$with_openjpeg" = "no" ; then
21525
{ $as_echo "$as_me:${as_lineno-$LINENO}: OpenJPEG (JPEG2000) support disabled." >&5
21526
$as_echo "$as_me: OpenJPEG (JPEG2000) support disabled." >&6;}
21528
elif test "$with_openjpeg" = "yes" -o "$with_openjpeg" = "" ; then
21530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_decode_tile_data in -lopenjpeg" >&5
21531
$as_echo_n "checking for opj_decode_tile_data in -lopenjpeg... " >&6; }
21532
if ${ac_cv_lib_openjpeg_opj_decode_tile_data+:} false; then :
21533
$as_echo_n "(cached) " >&6
21535
ac_check_lib_save_LIBS=$LIBS
21536
LIBS="-lopenjpeg $LIBS"
21537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538
/* end confdefs.h. */
21540
/* Override any GCC internal prototype to avoid an error.
21541
Use char because int might match the return type of a GCC
21542
builtin and then its argument prototype would still apply. */
21546
char opj_decode_tile_data ();
21550
return opj_decode_tile_data ();
21555
if ac_fn_c_try_link "$LINENO"; then :
21556
ac_cv_lib_openjpeg_opj_decode_tile_data=yes
21558
ac_cv_lib_openjpeg_opj_decode_tile_data=no
21560
rm -f core conftest.err conftest.$ac_objext \
21561
conftest$ac_exeext conftest.$ac_ext
21562
LIBS=$ac_check_lib_save_LIBS
21564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_decode_tile_data" >&5
21565
$as_echo "$ac_cv_lib_openjpeg_opj_decode_tile_data" >&6; }
21566
if test "x$ac_cv_lib_openjpeg_opj_decode_tile_data" = xyes; then :
21572
for ac_header in openjpeg.h
21574
ac_fn_c_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
21575
if test "x$ac_cv_header_openjpeg_h" = xyes; then :
21576
cat >>confdefs.h <<_ACEOF
21577
#define HAVE_OPENJPEG_H 1
21585
if test "$ac_cv_header_openjpeg_h" = "no"; then
21589
if test "$HAVE_OPENJPEG" = "yes" ; then
21590
LIBS="-lopenjpeg $LIBS"
21595
LIBS="-L$with_openjpeg -L$with_openjpeg/lib -lopenjpeg $LIBS"
21596
if test -r $with_openjpeg/include/openjpeg-2.0/openjpeg.h ; then
21597
EXTRA_INCLUDES="-I$with_openjpeg/include/openjpeg-2.0 $EXTRA_INCLUDES"
21598
elif test -r $with_openjpeg/include/openjpeg.h ; then
21599
EXTRA_INCLUDES="-I$with_openjpeg/include $EXTRA_INCLUDES"
21600
elif test -r $with_openjpeg/openjpeg.h ; then
21601
EXTRA_INCLUDES="-I$with_openjpeg $EXTRA_INCLUDES"
21603
as_fn_error $? "openjpeg.h not found in $with_openjpeg/include or $with_openjpeg/include/openjpeg-2.0" "$LINENO" 5
21606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_decode_tile_data in -lopenjpeg" >&5
21607
$as_echo_n "checking for opj_decode_tile_data in -lopenjpeg... " >&6; }
21608
if ${ac_cv_lib_openjpeg_opj_decode_tile_data+:} false; then :
21609
$as_echo_n "(cached) " >&6
21611
ac_check_lib_save_LIBS=$LIBS
21612
LIBS="-lopenjpeg $LIBS"
21613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614
/* end confdefs.h. */
21616
/* Override any GCC internal prototype to avoid an error.
21617
Use char because int might match the return type of a GCC
21618
builtin and then its argument prototype would still apply. */
21622
char opj_decode_tile_data ();
21626
return opj_decode_tile_data ();
21631
if ac_fn_c_try_link "$LINENO"; then :
21632
ac_cv_lib_openjpeg_opj_decode_tile_data=yes
21634
ac_cv_lib_openjpeg_opj_decode_tile_data=no
21636
rm -f core conftest.err conftest.$ac_objext \
21637
conftest$ac_exeext conftest.$ac_ext
21638
LIBS=$ac_check_lib_save_LIBS
21640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_decode_tile_data" >&5
21641
$as_echo "$ac_cv_lib_openjpeg_opj_decode_tile_data" >&6; }
21642
if test "x$ac_cv_lib_openjpeg_opj_decode_tile_data" = xyes; then :
21649
if test "$HAVE_OPENJPEG" = "yes" ; then
21650
{ $as_echo "$as_me:${as_lineno-$LINENO}: using OpenJPEG library from $with_openjpeg." >&5
21651
$as_echo "$as_me: using OpenJPEG library from $with_openjpeg." >&6;}
21655
if test "$HAVE_OPENJPEG" != "no" ; then
21656
OPT_GDAL_FORMATS="openjpeg $OPT_GDAL_FORMATS"
21659
HAVE_OPENJPEG=$HAVE_OPENJPEG
21666
# Check whether --with-fgdb was given.
21667
if test "${with_fgdb+set}" = set; then :
21668
withval=$with_fgdb;
21672
if test "$with_fgdb" = "no" ; then
21676
echo "FGDB support disabled."
21678
elif test "$with_fgdb" = "yes" -o "$with_fgdb" = "" ; then
21680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGeodatabase in -lFileGDBAPI" >&5
21681
$as_echo_n "checking for OpenGeodatabase in -lFileGDBAPI... " >&6; }
21682
if ${ac_cv_lib_FileGDBAPI_OpenGeodatabase+:} false; then :
21683
$as_echo_n "(cached) " >&6
21685
ac_check_lib_save_LIBS=$LIBS
21686
LIBS="-lFileGDBAPI -lFileGDBAPI -lfgdblinuxrtl $LIBS"
21687
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21688
/* end confdefs.h. */
21690
/* Override any GCC internal prototype to avoid an error.
21691
Use char because int might match the return type of a GCC
21692
builtin and then its argument prototype would still apply. */
21696
char OpenGeodatabase ();
21700
return OpenGeodatabase ();
21705
if ac_fn_c_try_link "$LINENO"; then :
21706
ac_cv_lib_FileGDBAPI_OpenGeodatabase=yes
21708
ac_cv_lib_FileGDBAPI_OpenGeodatabase=no
21710
rm -f core conftest.err conftest.$ac_objext \
21711
conftest$ac_exeext conftest.$ac_ext
21712
LIBS=$ac_check_lib_save_LIBS
21714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FileGDBAPI_OpenGeodatabase" >&5
21715
$as_echo "$ac_cv_lib_FileGDBAPI_OpenGeodatabase" >&6; }
21716
if test "x$ac_cv_lib_FileGDBAPI_OpenGeodatabase" = xyes; then :
21723
if test "$FGDB_ENABLED" = "yes" ; then
21724
LIBS="-lFileGDBAPI -lfgdblinuxrtl"
21729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libFileGDBAPI.so in in $with_fgdb/lib" >&5
21730
$as_echo_n "checking for libFileGDBAPI.so in in $with_fgdb/lib... " >&6; }
21732
if test -r $with_fgdb/lib/libFileGDBAPI.so ; then
21733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
21734
$as_echo "found." >&6; }
21735
FGDB_LIB="-L$with_fgdb/lib -lFileGDBAPI -lfgdblinuxrtl"
21737
as_fn_error $? "not found." "$LINENO" 5
21740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FileGDBAPI.h in $with_fgdb/include" >&5
21741
$as_echo_n "checking for FileGDBAPI.h in $with_fgdb/include... " >&6; }
21742
if test -r $with_fgdb/include/FileGDBAPI.h ; then
21743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
21744
$as_echo "found." >&6; }
21745
FGDB_INC="-I$with_fgdb/include"
21747
as_fn_error $? "not found." "$LINENO" 5
21752
FGDB_ENABLED=$FGDB_ENABLED
19338
21761
# Check whether --with-ecw was given.
19339
21762
if test "${with_ecw+set}" = set; then :
19340
21763
withval=$with_ecw;
23415
LIBKML_REQ_VERSION="1.3.0"
23418
# Check whether --with-libkml was given.
23419
if test "${with_libkml+set}" = set; then :
23420
withval=$with_libkml;
23421
if test "$withval" = "yes"; then
23422
if test -d /usr/local/include/kml ; then
23423
libkml_prefix=/usr/local
23424
elif test -d /usr/include/kml ; then
23429
libkml_requested="yes"
23430
elif test -d "$withval"; then
23431
libkml_prefix="$withval"
23432
libkml_requested="yes"
23435
libkml_requested="no"
23440
if test -d /usr/local/include/kml ; then
23441
libkml_prefix=/usr/local
23442
elif test -d /usr/include/kml ; then
23453
# Check whether --with-libkml-inc was given.
23454
if test "${with_libkml_inc+set}" = set; then :
23455
withval=$with_libkml_inc; libkml_include_dir="$withval"
23457
libkml_include_dir=""
23462
# Check whether --with-libkml-lib was given.
23463
if test "${with_libkml_lib+set}" = set; then :
23464
withval=$with_libkml_lib; libkml_lib_flags="$withval"
23466
libkml_lib_flags=""
23475
run_libkml_test="no"
23477
if test -n "$libkml_prefix"; then
23478
libkml_include_dir="$libkml_prefix/include"
23479
libkml_include_dir2="$libkml_prefix/include/kml"
23480
libkml_include_dir3="$libkml_prefix/include/kml/third_party/boost_1_34_1"
23481
if test "$libkml_prefix" = "/usr"; then
23482
libkml_lib_flags="-lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser"
23484
libkml_lib_flags="-L$libkml_prefix/lib -lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser"
23486
run_libkml_test="yes"
23487
elif test "$libkml_requested" = "yes"; then
23488
if test -n "$libkml_include_dir" -a -n "$libkml_lib_flags"; then
23489
libkml_include_dir2="$libkml_include_dir/kml"
23490
libkml_include_dir3="$libkml_include_dir/kml/third_party/boost_1_34_1"
23491
run_libkml_test="yes"
23494
run_libkml_test="no"
23497
if test "$run_libkml_test" = "yes"; then
23499
saved_CPPFLAGS="$CPPFLAGS"
23500
CPPFLAGS="$CPPFLAGS -I$libkml_include_dir -I$libkml_include_dir2 -I$libkml_include_dir3"
23503
LIBS="$LIBS $libkml_lib_flags"
23505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google libkml headers in $libkml_include_dir, $libkml_include_dir2, and $libkml_include_dir3" >&5
23506
$as_echo_n "checking for Google libkml headers in $libkml_include_dir, $libkml_include_dir2, and $libkml_include_dir3... " >&6; }
23509
ac_cpp='$CXXCPP $CPPFLAGS'
23510
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23511
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23512
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23514
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515
/* end confdefs.h. */
23518
#include <kml/dom.h>
23529
if ac_fn_cxx_try_compile "$LINENO"; then :
23531
LIBKML_CFLAGS="-I$libkml_include_dir -I$libkml_include_dir2 -I$libkml_include_dir3"
23532
libkml_header_found="yes"
23533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23534
$as_echo "found" >&6; }
23538
libkml_header_found="no"
23539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23540
$as_echo "not found" >&6; }
23544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546
ac_cpp='$CPP $CPPFLAGS'
23547
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23548
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23549
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23552
if test "$libkml_header_found" = "yes"; then
23554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google libkml libraries" >&5
23555
$as_echo_n "checking for Google libkml libraries... " >&6; }
23558
ac_cpp='$CXXCPP $CPPFLAGS'
23559
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23560
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23561
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23563
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564
/* end confdefs.h. */
23567
#include <kml/dom.h>
23573
kmldom::KmlFactory* factory = kmldom::KmlFactory::GetFactory();
23580
if ac_fn_cxx_try_link "$LINENO"; then :
23582
LIBKML_LDFLAGS="$libkml_lib_flags"
23583
libkml_lib_found="yes"
23584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23585
$as_echo "found" >&6; }
23589
libkml_lib_found="no"
23590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23591
$as_echo "not found" >&6; }
23595
rm -f core conftest.err conftest.$ac_objext \
23596
conftest$ac_exeext conftest.$ac_ext
23598
ac_cpp='$CPP $CPPFLAGS'
23599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23605
CPPFLAGS="$saved_CPPFLAGS"
23609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google libkml" >&5
23610
$as_echo_n "checking for Google libkml... " >&6; }
23612
if test "$run_libkml_test" = "yes"; then
23613
if test "$libkml_header_found" = "yes" -a "$libkml_lib_found" = "yes"; then
23623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBKML" >&5
23624
$as_echo "$HAVE_LIBKML" >&6; }
23626
if test "$HAVE_LIBKML" = "yes"; then
23628
libkml_version_req=$LIBKML_REQ_VERSION
23630
if test -n "$libkml_version_req"; then
23632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Google libkml version is >= $libkml_version_req" >&5
23633
$as_echo_n "checking if Google libkml version is >= $libkml_version_req... " >&6; }
23635
if test -f "$libkml_include_dir2/base/version.h"; then
23637
libkml_major=$(sed -n '/^#define LIBKML_MAJOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
23638
$libkml_include_dir2/base/version.h)
23639
libkml_minor=$(sed -n '/^#define LIBKML_MINOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
23640
$libkml_include_dir2/base/version.h)
23641
libkml_revision=$(sed -n '/^#define LIBKML_MICRO_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
23642
$libkml_include_dir2/base/version.h)
23644
LIBKML_VERSION="$libkml_major.$libkml_minor.$libkml_revision"
23647
libkml_version_req_major=`expr $libkml_version_req : '\([0-9]*\)'`
23648
libkml_version_req_minor=`expr $libkml_version_req : '[0-9]*\.\([0-9]*\)'`
23649
libkml_version_req_revision=`expr $libkml_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23650
if test "x$libkml_version_req_revision" = "x"; then
23651
libkml_version_req_revision="0"
23654
libkml_version_req_number=`expr $libkml_version_req_major \* 10000 \
23655
\+ $libkml_version_req_minor \* 100 \
23656
\+ $libkml_version_req_revision`
23658
libkml_version_number=`expr $libkml_major \* 10000 \
23659
\+ $libkml_minor \* 100 \
23660
\+ $libkml_revision`
23662
libkml_version_check=`expr $libkml_version_number \>\= $libkml_version_req_number`
23663
if test "$libkml_version_check" = "1"; then
23664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665
$as_echo "yes" >&6; }
23667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668
$as_echo "no" >&6; }
23669
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Google libkml ${LIBKML_VERSION}, which is older than required (${libkml_version_req}). KML support disabled." >&5
23670
$as_echo "$as_me: WARNING: Found Google libkml ${LIBKML_VERSION}, which is older than required (${libkml_version_req}). KML support disabled." >&2;}
23674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23675
$as_echo "no" >&6; }
23676
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing header $libkml_include_dir2/base/bersion.hpp. Unable to determine Google libkml version." >&5
23677
$as_echo "$as_me: WARNING: Missing header $libkml_include_dir2/base/bersion.hpp. Unable to determine Google libkml version." >&2;}
23684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBKML" >&5
23685
$as_echo "$HAVE_LIBKML" >&6; }
23687
if test "$libkml_requested" = "yes"; then
23688
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Google libkml support requested but headers or library not found. Specify valid prefix of libkml using --with-libkml=[DIR] or provide include directory and linker flags using --with-libkml-inc and --with-libkml-lib" >&5
23689
$as_echo "$as_me: WARNING: Google libkml support requested but headers or library not found. Specify valid prefix of libkml using --with-libkml=[DIR] or provide include directory and linker flags using --with-libkml-inc and --with-libkml-lib" >&2;}
23694
if test "$HAVE_LIBKML" = "yes"; then
23695
LIBS="$LIBKML_LDFLAGS $LIBS"
23698
HAVE_LIBKML=$HAVE_LIBKML
23700
LIBKML_INCLUDE=$LIBKML_CFLAGS
20851
23705
# Check whether --with-odbc was given.
20852
23706
if test "${with_odbc+set}" = set; then :
25904
# Check whether --with-opencl was given.
25905
if test "${with_opencl+set}" = set; then :
25906
withval=$with_opencl;
25910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL support" >&5
25911
$as_echo_n "checking for OpenCL support... " >&6; }
25913
if test "$with_opencl" = "yes" ; then
25916
# Check whether --with-opencl-include was given.
25917
if test "${with_opencl_include+set}" = set; then :
25918
withval=$with_opencl_include;
25924
if test "x$with_opencl_include" = "x" ; then
25925
OPENCL_FLAGS=-DHAVE_OPENCL
25927
OPENCL_FLAGS="-I$with_opencl_include -DHAVE_OPENCL"
25931
# Check whether --with-opencl-lib was given.
25932
if test "${with_opencl_lib+set}" = set; then :
25933
withval=$with_opencl_lib;
25937
if test "x$with_opencl_lib" = "x" ; then
25938
if test ! -z "`uname | grep Darwin`" ; then
25939
OPENCL_LIB="-framework OpenCL"
25941
OPENCL_LIB=-lOpenCL
25944
OPENCL_LIB="$with_opencl_lib"
25949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCL_SETTING" >&5
25950
$as_echo "$OPENCL_SETTING" >&6; }
25952
OPENCL_FLAGS=$OPENCL_FLAGS
25954
OPENCL_LIB=$OPENCL_LIB
25960
# Check whether --with-freexl was given.
25961
if test "${with_freexl+set}" = set; then :
25962
withval=$with_freexl;
25966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeXL support" >&5
25967
$as_echo_n "checking for FreeXL support... " >&6; }
25972
if test "$with_freexl" = "" -o "$with_freexl" = "yes" ; then
25973
for ac_header in freexl.h
25975
ac_fn_c_check_header_mongrel "$LINENO" "freexl.h" "ac_cv_header_freexl_h" "$ac_includes_default"
25976
if test "x$ac_cv_header_freexl_h" = xyes; then :
25977
cat >>confdefs.h <<_ACEOF
25978
#define HAVE_FREEXL_H 1
25985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
25986
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
25987
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
25988
$as_echo_n "(cached) " >&6
25990
ac_check_lib_save_LIBS=$LIBS
25991
LIBS="-lfreexl $LIBS"
25992
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993
/* end confdefs.h. */
25995
/* Override any GCC internal prototype to avoid an error.
25996
Use char because int might match the return type of a GCC
25997
builtin and then its argument prototype would still apply. */
26001
char freexl_open ();
26005
return freexl_open ();
26010
if ac_fn_c_try_link "$LINENO"; then :
26011
ac_cv_lib_freexl_freexl_open=yes
26013
ac_cv_lib_freexl_freexl_open=no
26015
rm -f core conftest.err conftest.$ac_objext \
26016
conftest$ac_exeext conftest.$ac_ext
26017
LIBS=$ac_check_lib_save_LIBS
26019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26020
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26021
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26022
FREEXL_LIBS="-lfreexl"
26024
FREEXL_LIBS=missing
26028
if test "$FREEXL_LIBS" = "missing"; then
26029
unset ac_cv_lib_freexl_freexl_open
26030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
26031
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
26032
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
26033
$as_echo_n "(cached) " >&6
26035
ac_check_lib_save_LIBS=$LIBS
26036
LIBS="-lfreexl -liconv $LIBS"
26037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038
/* end confdefs.h. */
26040
/* Override any GCC internal prototype to avoid an error.
26041
Use char because int might match the return type of a GCC
26042
builtin and then its argument prototype would still apply. */
26046
char freexl_open ();
26050
return freexl_open ();
26055
if ac_fn_c_try_link "$LINENO"; then :
26056
ac_cv_lib_freexl_freexl_open=yes
26058
ac_cv_lib_freexl_freexl_open=no
26060
rm -f core conftest.err conftest.$ac_objext \
26061
conftest$ac_exeext conftest.$ac_ext
26062
LIBS=$ac_check_lib_save_LIBS
26064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26065
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26066
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26067
FREEXL_LIBS="-lfreexl -liconv"
26069
FREEXL_LIBS=missing
26074
if test "$FREEXL_LIBS" = "missing"; then
26075
unset ac_cv_lib_freexl_freexl_open
26076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
26077
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
26078
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
26079
$as_echo_n "(cached) " >&6
26081
ac_check_lib_save_LIBS=$LIBS
26082
LIBS="-lfreexl -liconv -lcharset $LIBS"
26083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084
/* end confdefs.h. */
26086
/* Override any GCC internal prototype to avoid an error.
26087
Use char because int might match the return type of a GCC
26088
builtin and then its argument prototype would still apply. */
26092
char freexl_open ();
26096
return freexl_open ();
26101
if ac_fn_c_try_link "$LINENO"; then :
26102
ac_cv_lib_freexl_freexl_open=yes
26104
ac_cv_lib_freexl_freexl_open=no
26106
rm -f core conftest.err conftest.$ac_objext \
26107
conftest$ac_exeext conftest.$ac_ext
26108
LIBS=$ac_check_lib_save_LIBS
26110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26111
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26112
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26113
FREEXL_LIBS="-lfreexl -liconv -lcharset"
26115
FREEXL_LIBS=missing
26120
if test "$FREEXL_LIBS" != "missing" -a "$ac_cv_header_freexl_h" = "yes" ; then
26122
# Check that freexl is recent enough
26124
echo '#include <freexl.h>' > testfreexl.c
26125
echo 'int main(int argc, char** argv) { FreeXL_CellValue s; freexl_get_cell_value (0,0,0,&s); return 0; } ' >> testfreexl.c
26126
if test -z "`${CC} testfreexl.c -c 2>&1`" ; then
26128
LIBS="$FREEXL_LIBS $LIBS"
26131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: freexl too old. Needs freexl >= 1.0" >&5
26132
$as_echo "freexl too old. Needs freexl >= 1.0" >&6; }
26138
echo "libfreexl not found - FreeXL support disabled"
26141
elif test "$with_freexl" != "no"; then
26143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
26144
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
26145
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
26146
$as_echo_n "(cached) " >&6
26148
ac_check_lib_save_LIBS=$LIBS
26149
LIBS="-lfreexl -L$with_freexl/lib $LIBS"
26150
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151
/* end confdefs.h. */
26153
/* Override any GCC internal prototype to avoid an error.
26154
Use char because int might match the return type of a GCC
26155
builtin and then its argument prototype would still apply. */
26159
char freexl_open ();
26163
return freexl_open ();
26168
if ac_fn_c_try_link "$LINENO"; then :
26169
ac_cv_lib_freexl_freexl_open=yes
26171
ac_cv_lib_freexl_freexl_open=no
26173
rm -f core conftest.err conftest.$ac_objext \
26174
conftest$ac_exeext conftest.$ac_ext
26175
LIBS=$ac_check_lib_save_LIBS
26177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26178
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26179
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26180
FREEXL_LIBS="-L$with_freexl/lib -lfreexl"
26182
FREEXL_LIBS=missing
26186
if test "$FREEXL_LIBS" = "missing"; then
26187
unset ac_cv_lib_freexl_freexl_open
26188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
26189
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
26190
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
26191
$as_echo_n "(cached) " >&6
26193
ac_check_lib_save_LIBS=$LIBS
26194
LIBS="-lfreexl -L$with_freexl/lib -liconv $LIBS"
26195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196
/* end confdefs.h. */
26198
/* Override any GCC internal prototype to avoid an error.
26199
Use char because int might match the return type of a GCC
26200
builtin and then its argument prototype would still apply. */
26204
char freexl_open ();
26208
return freexl_open ();
26213
if ac_fn_c_try_link "$LINENO"; then :
26214
ac_cv_lib_freexl_freexl_open=yes
26216
ac_cv_lib_freexl_freexl_open=no
26218
rm -f core conftest.err conftest.$ac_objext \
26219
conftest$ac_exeext conftest.$ac_ext
26220
LIBS=$ac_check_lib_save_LIBS
26222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26223
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26224
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26225
FREEXL_LIBS="-L$with_freexl/lib -lfreexl -liconv"
26227
FREEXL_LIBS=missing
26232
if test "$FREEXL_LIBS" = "missing"; then
26233
unset ac_cv_lib_freexl_freexl_open
26234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freexl_open in -lfreexl" >&5
26235
$as_echo_n "checking for freexl_open in -lfreexl... " >&6; }
26236
if ${ac_cv_lib_freexl_freexl_open+:} false; then :
26237
$as_echo_n "(cached) " >&6
26239
ac_check_lib_save_LIBS=$LIBS
26240
LIBS="-lfreexl -L$with_freexl/lib -liconv -lcharset $LIBS"
26241
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26242
/* end confdefs.h. */
26244
/* Override any GCC internal prototype to avoid an error.
26245
Use char because int might match the return type of a GCC
26246
builtin and then its argument prototype would still apply. */
26250
char freexl_open ();
26254
return freexl_open ();
26259
if ac_fn_c_try_link "$LINENO"; then :
26260
ac_cv_lib_freexl_freexl_open=yes
26262
ac_cv_lib_freexl_freexl_open=no
26264
rm -f core conftest.err conftest.$ac_objext \
26265
conftest$ac_exeext conftest.$ac_ext
26266
LIBS=$ac_check_lib_save_LIBS
26268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freexl_freexl_open" >&5
26269
$as_echo "$ac_cv_lib_freexl_freexl_open" >&6; }
26270
if test "x$ac_cv_lib_freexl_freexl_open" = xyes; then :
26271
FREEXL_LIBS="-L$with_freexl/lib -lfreexl -liconv -lcharset"
26273
FREEXL_LIBS=missing
26278
if test "FREEXL_LIBS" != "missing" -a -f "$with_freexl/include/freexl.h" ; then
26280
# Check that freexl is recent enough
26282
echo '#include <freexl.h>' > testfreexl.c
26283
echo 'int main(int argc, char** argv) { FreeXL_CellValue s; freexl_get_cell_value (0,0,0,&s); return 0; } ' >> testfreexl.c
26284
if test -z "`${CC} -I$with_freexl/include testfreexl.c -c 2>&1`" ; then
26286
LIBS="$FREEXL_LIBS $LIBS"
26287
FREEXL_INCLUDE="-I$with_freexl/include"
26290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: freexl too old. Needs freexl >= 1.0" >&5
26291
$as_echo "freexl too old. Needs freexl >= 1.0" >&6; }
26297
echo "libfreexl not found - FreeXL support disabled"
26302
HAVE_FREEXL=$HAVE_FREEXL
26304
FREEXL_INCLUDE=$FREEXL_INCLUDE
22590
26308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PAM" >&5
22591
26309
$as_echo_n "checking whether to enable PAM... " >&6; }
26334
# Check whether --with-poppler was given.
26335
if test "${with_poppler+set}" = set; then :
26336
withval=$with_poppler;
26341
POPPLER_HAS_OPTCONTENT=no
26342
POPPLER_BASE_STREAM_HAS_TWO_ARGS=no
26344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poppler" >&5
26345
$as_echo_n "checking for poppler... " >&6; }
26347
if test "$with_poppler" != "no" -a "$with_poppler" != ""; then
26349
if test "$with_poppler" = "yes" ; then
26350
TEST_POPPLER_INC="-I/usr/include -I/usr/include/poppler"
26351
TEST_POPPLER_LIB="-lpoppler"
26353
TEST_POPPLER_INC="-I$with_poppler/include -I$with_poppler/include/poppler"
26354
TEST_POPPLER_LIB="-L$with_poppler/lib -lpoppler"
26357
# Check that we can accept Page::pageObj private member
26358
rm -f testpoppler.*
26359
echo '#define private public' > testpoppler.cpp
26360
echo '#include <poppler/Page.h>' >> testpoppler.cpp
26361
echo '#include <poppler/splash/SplashBitmap.h>' >> testpoppler.cpp
26362
echo 'int main(int argc, char** argv) { return &(((Page*)0x8000)->pageObj) == 0; } ' >> testpoppler.cpp
26363
if test -z "`${CXX} testpoppler.cpp -o testpoppler ${TEST_POPPLER_INC} ${TEST_POPPLER_LIB} 2>&1`" ; then
26365
LIBS="${TEST_POPPLER_LIB} ${LIBS}"
26366
OPT_GDAL_FORMATS="pdf $OPT_GDAL_FORMATS"
26367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26368
$as_echo "yes" >&6; }
26369
POPPLER_INC=$TEST_POPPLER_INC
26371
# And now try another dirty thing, but this one is
26373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Catalog::optContent exists" >&5
26374
$as_echo_n "checking if Catalog::optContent exists... " >&6; }
26375
rm -f testpoppler.*
26376
echo '#define private public' > testpoppler.cpp
26377
echo '#include <poppler/Object.h>' >> testpoppler.cpp
26378
echo '#include <poppler/Catalog.h>' >> testpoppler.cpp
26379
echo 'int main(int argc, char** argv) { return &(((Catalog*)0x8000)->optContent) == 0; }' >> testpoppler.cpp
26380
if test -z "`${CXX} testpoppler.cpp -c ${POPPLER_INC} 2>&1`" ; then
26381
POPPLER_HAS_OPTCONTENT=yes
26382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26383
$as_echo "yes" >&6; }
26385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26386
$as_echo "no" >&6; }
26389
# And now we check if we have Poppler >= 0.16.0
26390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if BaseStream constructor needs 2 arguments" >&5
26391
$as_echo_n "checking if BaseStream constructor needs 2 arguments... " >&6; }
26392
rm -f testpoppler.*
26393
echo '#include <poppler/Object.h>' > testpoppler.cpp
26394
echo '#include <poppler/Stream.h>' >> testpoppler.cpp
26395
echo 'class TestStream: public BaseStream {' >> testpoppler.cpp
26396
echo 'public:' >> testpoppler.cpp
26397
echo ' TestStream() : BaseStream(0,0) {}' >> testpoppler.cpp
26398
echo ' ~TestStream() {}' >> testpoppler.cpp
26399
echo ' virtual Stream *makeSubStream(Guint start, GBool limited, Guint length, Object *dict) { return 0; }' >> testpoppler.cpp
26400
echo ' virtual void setPos(Guint pos, int dir = 0) { }' >> testpoppler.cpp
26401
echo ' virtual Guint getStart() { return 0; }' >> testpoppler.cpp
26402
echo ' virtual void moveStart(int delta) { }' >> testpoppler.cpp
26403
echo '};' >> testpoppler.cpp
26404
echo 'int main(int argc, char** argv) { return 0; }' >> testpoppler.cpp
26405
if test -z "`${CXX} testpoppler.cpp -c ${POPPLER_INC} 2>&1`" ; then
26406
POPPLER_BASE_STREAM_HAS_TWO_ARGS=yes
26407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26408
$as_echo "yes" >&6; }
26410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26411
$as_echo "no" >&6; }
26414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26415
$as_echo "no" >&6; }
26417
rm -f testpoppler.*
26420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
26421
$as_echo "disabled" >&6; }
26424
HAVE_POPPLER=$HAVE_POPPLER
26426
POPPLER_HAS_OPTCONTENT=$POPPLER_HAS_OPTCONTENT
26428
POPPLER_BASE_STREAM_HAS_TWO_ARGS=$POPPLER_BASE_STREAM_HAS_TWO_ARGS
26430
POPPLER_INC=$POPPLER_INC
26435
# Check whether --with-podofo was given.
26436
if test "${with_podofo+set}" = set; then :
26437
withval=$with_podofo;
26443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for podofo" >&5
26444
$as_echo_n "checking for podofo... " >&6; }
26446
if test "$with_podofo" != "no" -a "$with_podofo" != ""; then
26449
# Check whether --with-podofo-lib was given.
26450
if test "${with_podofo_lib+set}" = set; then :
26451
withval=$with_podofo_lib;
26455
if test "$HAVE_POPPLER" = "yes"; then
26456
as_fn_error $? "--with-podofo and --with-poppler cannot be specified at the same time" "$LINENO" 5
26459
if test "$with_podofo" = "yes" ; then
26460
TEST_PODOFO_INC="-I/usr/include -I/usr/include/podofo"
26461
PODOFO_LIB="-lpodofo"
26463
TEST_PODOFO_INC="-I$with_podofo/include -I$with_podofo/include/podofo"
26464
PODOFO_LIB="-L$with_podofo/lib -lpodofo"
26467
if test "x$with_podofo_lib" = "x" ; then
26469
echo '#include <podofo.h>' > testpodofo.cpp
26470
echo 'int main(int argc, char** argv) { PoDoFo::PdfError::EnableDebug( 0 ); return 0; } ' >> testpodofo.cpp
26471
if test -z "`${CXX} testpodofo.cpp -o testpodofo ${TEST_PODOFO_INC} ${PODOFO_LIB} 2>&1`" ; then
26473
LIBS="${PODOFO_LIB} ${LIBS}"
26474
OPT_GDAL_FORMATS="pdf $OPT_GDAL_FORMATS"
26475
PODOFO_INC=$TEST_PODOFO_INC
26476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26477
$as_echo "yes" >&6; }
26483
if test "$HAVE_PODOFO" = "no"; then
26484
if test "x$with_podofo_lib" != "x" ; then
26485
PODOFO_LIB="$with_podofo_lib"
26487
# This may be a static libpodofo.a, so add dependant libraries
26488
PODOFO_LIB="$PODOFO_LIB -lfreetype -lfontconfig -lpthread"
26492
# Check whether --with-podofo-extra-lib-for-test was given.
26493
if test "${with_podofo_extra_lib_for_test+set}" = set; then :
26494
withval=$with_podofo_extra_lib_for_test;
26498
if test "x$with_podofo_extra_lib_for_test" = "x" ; then
26499
TEST_PODOFO_LIB="$PODOFO_LIB"
26501
TEST_PODOFO_LIB="$PODOFO_LIB $with_podofo_extra_lib_for_test"
26505
echo '#include <podofo.h>' > testpodofo.cpp
26506
echo 'int main(int argc, char** argv) { PoDoFo::PdfError::EnableDebug( 0 ); return 0; } ' >> testpodofo.cpp
26507
if test -z "`${CXX} testpodofo.cpp -o testpodofo ${TEST_PODOFO_INC} ${TEST_PODOFO_LIB} 2>&1`" ; then
26509
LIBS="${PODOFO_LIB} ${LIBS}"
26510
OPT_GDAL_FORMATS="pdf $OPT_GDAL_FORMATS"
26511
PODOFO_INC=$TEST_PODOFO_INC
26512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26513
$as_echo "yes" >&6; }
26515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26516
$as_echo "no" >&6; }
26522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
26523
$as_echo "disabled" >&6; }
26526
HAVE_PODOFO=$HAVE_PODOFO
26528
PODOFO_INC=$PODOFO_INC
22615
26532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link PROJ.4 library" >&5
22616
26533
$as_echo_n "checking how to link PROJ.4 library... " >&6; }
27194
# Check whether --with-java was given.
27195
if test "${with_java+set}" = set; then :
27196
withval=$with_java;
27200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should include Java support" >&5
27201
$as_echo_n "checking whether we should include Java support... " >&6; }
27206
if test "x$with_java" = "xyes"; then
27208
if test -d /usr/lib/jvm/java-6-openjdk; then
27209
with_java="/usr/lib/jvm/java-6-openjdk"
27211
elif test -d /usr/lib/jvm/java-openjdk; then
27212
with_java="/usr/lib/jvm/java-openjdk"
27215
elif test -d /usr/java; then
27216
with_java="/usr/java"
27218
as_fn_error $? "\"cannot find JDK root directory.\"" "$LINENO" 5
27221
if test \! -d "$with_java/include" ; then
27222
as_fn_error $? "\"$with_java is not a valid JDK.\"" "$LINENO" 5
27226
if test "x$JAVA_INC" != "x"; then
27227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27228
$as_echo "yes" >&6; }
27229
elif test "x$with_java" != "x" -a "x$with_java" != "xno"; then
27231
if test -d "$with_java/include"; then
27232
if test -d "$with_java/include/linux"; then
27233
JAVA_HOME="$with_java"
27234
JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
27235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27236
$as_echo "yes" >&6; }
27237
elif test -d "$with_java/include/solaris"; then
27238
JAVA_HOME="$with_java"
27239
JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/solaris"
27240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27241
$as_echo "yes" >&6; }
27242
elif test -d "$with_java/include/freebsd"; then
27243
JAVA_HOME="$with_java"
27244
JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/freebsd"
27245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27246
$as_echo "yes" >&6; }
27248
as_fn_error $? "\"Cannot find $with_java/include/linux or solaris or freebsd directory.\"" "$LINENO" 5
27251
as_fn_error $? "\"Cannot find $with_java/include directory.\"" "$LINENO" 5
27255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256
$as_echo "no" >&6; }
27259
JAVA_HOME=$JAVA_HOME
27266
# Check whether --with-mdb was given.
27267
if test "${with_mdb+set}" = set; then :
27272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should include MDB support" >&5
27273
$as_echo_n "checking whether we should include MDB support... " >&6; }
27278
if test "$with_mdb" = "yes" ; then
27279
if test "x$JAVA_INC" = "x"; then
27280
as_fn_error $? "\"--with-java must be specified.\"" "$LINENO" 5
27284
# Check whether --with-jvm-lib was given.
27285
if test "${with_jvm_lib+set}" = set; then :
27286
withval=$with_jvm_lib;
27291
# Check whether --with-jvm-lib-add-rpath was given.
27292
if test "${with_jvm_lib_add_rpath+set}" = set; then :
27293
withval=$with_jvm_lib_add_rpath;
27297
if test "x$with_jvm_lib" != "x"; then
27298
if test -d "$with_jvm_lib"; then
27299
saved_LDFLAGS="$LDFLAGS"
27300
LDFLAGS="$LDFLAGS -L$with_jvm_lib"
27301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5
27302
$as_echo_n "checking for JNI_CreateJavaVM in -ljvm... " >&6; }
27303
if ${ac_cv_lib_jvm_JNI_CreateJavaVM+:} false; then :
27304
$as_echo_n "(cached) " >&6
27306
ac_check_lib_save_LIBS=$LIBS
27308
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309
/* end confdefs.h. */
27311
/* Override any GCC internal prototype to avoid an error.
27312
Use char because int might match the return type of a GCC
27313
builtin and then its argument prototype would still apply. */
27317
char JNI_CreateJavaVM ();
27321
return JNI_CreateJavaVM ();
27326
if ac_fn_c_try_link "$LINENO"; then :
27327
ac_cv_lib_jvm_JNI_CreateJavaVM=yes
27329
ac_cv_lib_jvm_JNI_CreateJavaVM=no
27331
rm -f core conftest.err conftest.$ac_objext \
27332
conftest$ac_exeext conftest.$ac_ext
27333
LIBS=$ac_check_lib_save_LIBS
27335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5
27336
$as_echo "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; }
27337
if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes; then :
27343
LDFLAGS="$saved_LDFLAGS"
27344
if test "$HAS_LIB_JVM" = "yes"; then
27345
JVM_LIB="-L$with_jvm_lib -ljvm"
27346
if test "x$with_jvm_lib_add_rpath" = "xyes"; then
27347
JVM_LIB="-Wl,-rpath=$with_jvm_lib $JVM_LIB"
27350
as_fn_error $? "\"--with-jvm-lib must point to a directory with a libjvm.\"" "$LINENO" 5
27353
as_fn_error $? "\"--with-jvm-lib must point to a directory.\"" "$LINENO" 5
27355
elif test "x$JAVA_HOME" != "x"; then
27356
TEST_DIR="$JAVA_HOME/jre/lib/amd64/server"
27357
if test "x$JVM_LIB" = "x" -a -d "$TEST_DIR"; then
27358
unset ac_cv_lib_jvm_JNI_CreateJavaVM
27359
saved_LDFLAGS="$LDFLAGS"
27360
LDFLAGS="$LDFLAGS -L$TEST_DIR"
27361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5
27362
$as_echo_n "checking for JNI_CreateJavaVM in -ljvm... " >&6; }
27363
if ${ac_cv_lib_jvm_JNI_CreateJavaVM+:} false; then :
27364
$as_echo_n "(cached) " >&6
27366
ac_check_lib_save_LIBS=$LIBS
27368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27369
/* end confdefs.h. */
27371
/* Override any GCC internal prototype to avoid an error.
27372
Use char because int might match the return type of a GCC
27373
builtin and then its argument prototype would still apply. */
27377
char JNI_CreateJavaVM ();
27381
return JNI_CreateJavaVM ();
27386
if ac_fn_c_try_link "$LINENO"; then :
27387
ac_cv_lib_jvm_JNI_CreateJavaVM=yes
27389
ac_cv_lib_jvm_JNI_CreateJavaVM=no
27391
rm -f core conftest.err conftest.$ac_objext \
27392
conftest$ac_exeext conftest.$ac_ext
27393
LIBS=$ac_check_lib_save_LIBS
27395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5
27396
$as_echo "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; }
27397
if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes; then :
27403
LDFLAGS="$saved_LDFLAGS"
27404
if test "$HAS_LIB_JVM" = "yes"; then
27405
JVM_LIB="-L$TEST_DIR -ljvm"
27406
if test "x$with_jvm_lib_add_rpath" = "xyes"; then
27407
JVM_LIB="-Wl,-rpath=$TEST_DIR $JVM_LIB"
27412
TEST_DIR="$JAVA_HOME/jre/lib/i386/server"
27413
if test "x$JVM_LIB" = "x" -a -d "$TEST_DIR"; then
27414
unset ac_cv_lib_jvm_JNI_CreateJavaVM
27415
saved_LDFLAGS="$LDFLAGS"
27416
LDFLAGS="$LDFLAGS -L$TEST_DIR"
27417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5
27418
$as_echo_n "checking for JNI_CreateJavaVM in -ljvm... " >&6; }
27419
if ${ac_cv_lib_jvm_JNI_CreateJavaVM+:} false; then :
27420
$as_echo_n "(cached) " >&6
27422
ac_check_lib_save_LIBS=$LIBS
27424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27425
/* end confdefs.h. */
27427
/* Override any GCC internal prototype to avoid an error.
27428
Use char because int might match the return type of a GCC
27429
builtin and then its argument prototype would still apply. */
27433
char JNI_CreateJavaVM ();
27437
return JNI_CreateJavaVM ();
27442
if ac_fn_c_try_link "$LINENO"; then :
27443
ac_cv_lib_jvm_JNI_CreateJavaVM=yes
27445
ac_cv_lib_jvm_JNI_CreateJavaVM=no
27447
rm -f core conftest.err conftest.$ac_objext \
27448
conftest$ac_exeext conftest.$ac_ext
27449
LIBS=$ac_check_lib_save_LIBS
27451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5
27452
$as_echo "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; }
27453
if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes; then :
27459
LDFLAGS="$saved_LDFLAGS"
27460
if test "$HAS_LIB_JVM" = "yes"; then
27461
JVM_LIB="-L$TEST_DIR -ljvm"
27462
if test "x$with_jvm_lib_add_rpath" = "xyes"; then
27463
JVM_LIB="-Wl,-rpath=$TEST_DIR $JVM_LIB"
27468
if test "x$JVM_LIB" = "x"; then
27469
as_fn_error $? "\"--with-jvm-lib must be specified.\"" "$LINENO" 5
27472
as_fn_error $? "\"--with-jvm-lib must be specified.\"" "$LINENO" 5
27476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27477
$as_echo "yes" >&6; }
27480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27481
$as_echo "no" >&6; }
27484
MDB_ENABLED=$MDB_ENABLED
27491
RASDAMAN_ENABLED=no
27493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should include rasdaman support..." >&5
27494
$as_echo "$as_me: checking whether we should include rasdaman support..." >&6;}
27496
# Check whether --with-rasdaman was given.
27497
if test "${with_rasdaman+set}" = set; then :
27498
withval=$with_rasdaman;
27502
if test "$with_rasdaman" = "yes" ; then
27504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lraslib" >&5
27505
$as_echo_n "checking for main in -lraslib... " >&6; }
27506
if ${ac_cv_lib_raslib_main+:} false; then :
27507
$as_echo_n "(cached) " >&6
27509
ac_check_lib_save_LIBS=$LIBS
27510
LIBS="-lraslib $LIBS"
27511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512
/* end confdefs.h. */
27523
if ac_fn_c_try_link "$LINENO"; then :
27524
ac_cv_lib_raslib_main=yes
27526
ac_cv_lib_raslib_main=no
27528
rm -f core conftest.err conftest.$ac_objext \
27529
conftest$ac_exeext conftest.$ac_ext
27530
LIBS=$ac_check_lib_save_LIBS
27532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raslib_main" >&5
27533
$as_echo "$ac_cv_lib_raslib_main" >&6; }
27534
if test "x$ac_cv_lib_raslib_main" = xyes; then :
27535
RASDAMAN_ENABLED=yes
27539
if test -n "$RASDAMAN_ENABLED" ; then
27540
RASDAMAN_LIB="-lrasodmg -lclientcomm -lcompression -lnetwork -lraslib"
27541
OPT_GDAL_FORMATS="rasdaman $OPT_GDAL_FORMATS"
27542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using rasdaman from system libs." >&5
27543
$as_echo " using rasdaman from system libs." >&6; }
27545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rasdaman not found in system libs... use --with-rasdaman=DIR." >&5
27546
$as_echo "$as_me: WARNING: rasdaman not found in system libs... use --with-rasdaman=DIR." >&2;}
27549
elif test -n "$with_rasdaman" -a "$with_rasdaman" != "no" ; then
27551
RASDAMAN_DIR=$with_rasdaman
27553
if test -f $RASDAMAN_DIR/include/rasdaman.hh -a -d$RASDAMAN_DIR/lib ; then
27554
RASDAMAN_INC=-I$RASDAMAN_DIR/include
27555
RASDAMAN_LIB="-L$RASDAMAN_DIR/lib -lrasodmg -lclientcomm -lcompression -lnetwork -lraslib"
27557
as_fn_error $? "\"Could not find rasdaman.hh or libraslib.a in $RASDAMAN_DIR.\"" "$LINENO" 5
27560
RASDAMAN_ENABLED=yes
27561
OPT_GDAL_FORMATS="rasdaman $OPT_GDAL_FORMATS"
27562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using rasdaman from $RASDAMAN_DIR." >&5
27563
$as_echo " using rasdaman from $RASDAMAN_DIR." >&6; }
27567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: rasdaman support not requested." >&5
27568
$as_echo " rasdaman support not requested." >&6; }
27571
RASDAMAN_ENABLED=$RASDAMAN_ENABLED
27573
RASDAMAN_INC=$RASDAMAN_INC
27575
RASDAMAN_LIB=$RASDAMAN_LIB
27580
# Check whether --with-armadillo was given.
27581
if test "${with_armadillo+set}" = set; then :
27582
withval=$with_armadillo;
27586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should include Armadillo support" >&5
27587
$as_echo_n "checking whether we should include Armadillo support... " >&6; }
27591
if test "$with_armadillo" = "yes" ; then
27592
rm -f testarmadillo.*
27593
rm -f testarmadillo
27594
echo '#include <armadillo>' > testarmadillo.cpp
27595
echo 'int main(int argc, char** argv) { arma::mat matInput(2,2); const arma::mat& matInv = arma::inv(matInput); return 0; } ' >> testarmadillo.cpp
27596
if test -z "`${CXX} testarmadillo.cpp -o testarmadillo -larmadillo 2>&1`" ; then
27598
LIBS="-larmadillo ${LIBS}"
27599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27600
$as_echo "yes" >&6; }
27602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27603
$as_echo "no" >&6; }
27605
rm -f testarmadillo.*
27606
rm -f testarmadillo
27608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27609
$as_echo "no" >&6; }
27612
HAVE_ARMADILLO=$HAVE_ARMADILLO
23278
27616
ac_config_files="$ac_config_files GDALmake.opt"
23891
28242
sed_quote_subst='$sed_quote_subst'
23892
28243
double_quote_subst='$double_quote_subst'
23893
28244
delay_variable_subst='$delay_variable_subst'
23894
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
23895
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23896
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23897
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23898
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23899
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23900
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23901
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23902
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23903
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23904
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23905
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23906
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23907
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23908
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23909
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23910
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23911
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23912
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23913
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23914
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23915
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23916
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23917
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23918
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23919
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23920
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23921
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23922
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23923
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23924
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23925
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23926
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23927
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23928
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23929
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23930
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23931
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23932
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23933
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23934
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23935
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23936
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23937
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23938
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23939
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23940
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23941
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23942
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23943
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23944
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23945
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23946
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23947
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23948
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23949
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23950
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23951
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23952
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23953
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23954
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23955
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23956
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23957
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23958
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23959
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23960
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23961
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23962
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23963
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23964
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23965
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23966
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23967
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23968
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23969
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23970
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23971
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23972
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23973
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23974
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23975
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23976
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23977
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23978
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23979
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23980
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23981
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23982
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23983
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23984
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23985
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23986
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23987
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23988
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23989
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23990
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23991
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23992
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23993
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23994
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23995
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23996
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23997
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23998
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23999
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24000
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24001
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24002
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24003
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24004
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24005
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24006
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24007
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24008
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24009
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24010
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24011
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24012
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24013
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24014
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
24015
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24016
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24017
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
24018
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
24019
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
24020
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24021
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24022
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24023
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24024
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24025
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24026
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24027
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24028
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24029
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24030
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24031
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24032
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24033
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24034
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24035
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24036
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24037
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24038
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24039
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24040
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24041
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24042
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24043
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24044
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24045
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24046
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24047
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24048
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24049
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24050
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24051
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24052
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24053
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24054
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24055
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24056
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24057
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24058
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24059
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24060
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24061
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24062
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24063
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24064
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24065
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24066
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28245
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
28246
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28247
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28248
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28249
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28250
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28251
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28252
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28253
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28254
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28255
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28256
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28257
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28258
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28259
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28260
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28261
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28262
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28263
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28264
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28265
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28266
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28267
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28268
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28269
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28270
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28271
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28272
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28273
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28274
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28275
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28276
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28277
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28278
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28279
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28280
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28281
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28282
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28283
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28284
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28285
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28286
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28287
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28288
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28289
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28290
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28291
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28292
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28293
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28294
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28295
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28296
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28297
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28298
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28299
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28300
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28301
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"`'
28302
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28303
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28304
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28305
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28306
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28307
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28308
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28309
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28310
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28311
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28312
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28313
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28314
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28315
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28316
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28317
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28318
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28319
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28320
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28321
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28322
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28323
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28324
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28325
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28326
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28327
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28328
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28329
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28330
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28331
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28332
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28333
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28334
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28335
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28336
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28337
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28338
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28339
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28340
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28341
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28342
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28343
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28344
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28345
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28346
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28347
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28348
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28349
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28350
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28351
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28352
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28353
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28354
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28355
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28356
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28357
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28358
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28359
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28360
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28361
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28362
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28363
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28364
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28365
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28366
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28367
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28368
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28369
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28370
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28371
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28372
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28373
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28374
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28375
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28376
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28377
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28378
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28379
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28380
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28381
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28382
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28383
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28384
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28385
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28386
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28387
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28388
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28389
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28390
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28391
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28392
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28393
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28394
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28395
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28396
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28397
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28398
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28399
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28400
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28401
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28402
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28403
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28404
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28405
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28406
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28407
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28408
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
28409
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28410
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28411
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28412
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28413
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28414
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28415
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28416
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28417
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28418
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28419
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28420
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28421
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28422
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28423
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28424
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28425
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28426
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28427
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28428
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28429
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28430
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24069
28433
LTCFLAGS='$LTCFLAGS'
24070
28434
compiler='$compiler_DEFAULT'
28436
# A function that is used when there is no print builtin or printf.
28437
func_fallback_echo ()
28439
eval 'cat <<_LTECHO_EOF
24072
28444
# Quote evaled strings.
25230
29655
# if finds mixed CR/LF and LF-only lines. Since sed operates in
25231
29656
# text mode, it properly converts lines to CR/LF. This bash problem
25232
29657
# is reportedly fixed, but why not run on old versions too?
25233
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25234
|| (rm -f "$cfgfile"; exit 1)
25238
cat << \_LT_EOF >> "$cfgfile"
25240
# func_dirname file append nondir_replacement
25241
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25242
# otherwise set result to NONDIR_REPLACEMENT.
25246
*/*) func_dirname_result="${1%/*}${2}" ;;
25247
* ) func_dirname_result="${3}" ;;
25251
# func_basename file
25254
func_basename_result="${1##*/}"
25257
# func_dirname_and_basename file append nondir_replacement
25258
# perform func_basename and func_dirname in a single function
25260
# dirname: Compute the dirname of FILE. If nonempty,
25261
# add APPEND to the result, otherwise set result
25262
# to NONDIR_REPLACEMENT.
25263
# value returned in "$func_dirname_result"
25264
# basename: Compute filename of FILE.
25265
# value retuned in "$func_basename_result"
25266
# Implementation must be kept synchronized with func_dirname
25267
# and func_basename. For efficiency, we do not delegate to
25268
# those functions but instead duplicate the functionality here.
25269
func_dirname_and_basename ()
25272
*/*) func_dirname_result="${1%/*}${2}" ;;
25273
* ) func_dirname_result="${3}" ;;
25275
func_basename_result="${1##*/}"
25278
# func_stripname prefix suffix name
25279
# strip PREFIX and SUFFIX off of NAME.
25280
# PREFIX and SUFFIX must not contain globbing or regex special
25281
# characters, hashes, percent signs, but SUFFIX may contain a leading
25282
# dot (in which case that matches only a dot).
25285
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25286
# positional parameters, so assign one to ordinary parameter first.
25287
func_stripname_result=${3}
25288
func_stripname_result=${func_stripname_result#"${1}"}
25289
func_stripname_result=${func_stripname_result%"${2}"}
25295
func_opt_split_opt=${1%%=*}
25296
func_opt_split_arg=${1#*=}
25303
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25304
*) func_lo2o_result=${1} ;;
25308
# func_xform libobj-or-source
25311
func_xform_result=${1%.*}.lo
25314
# func_arith arithmetic-term...
25317
func_arith_result=$(( $* ))
25321
# STRING may not start with a hyphen.
25324
func_len_result=${#1}
25329
*) # Bourne compatible functions.
25330
cat << \_LT_EOF >> "$cfgfile"
25332
# func_dirname file append nondir_replacement
25333
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25334
# otherwise set result to NONDIR_REPLACEMENT.
25337
# Extract subdirectory from the argument.
25338
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25339
if test "X$func_dirname_result" = "X${1}"; then
25340
func_dirname_result="${3}"
25342
func_dirname_result="$func_dirname_result${2}"
25346
# func_basename file
25349
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25353
# func_stripname prefix suffix name
25354
# strip PREFIX and SUFFIX off of NAME.
25355
# PREFIX and SUFFIX must not contain globbing or regex special
25356
# characters, hashes, percent signs, but SUFFIX may contain a leading
25357
# dot (in which case that matches only a dot).
25358
# func_strip_suffix prefix name
25362
.*) func_stripname_result=`$ECHO "X${3}" \
25363
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25364
*) func_stripname_result=`$ECHO "X${3}" \
25365
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25370
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25371
my_sed_long_arg='1s/^-[^=]*=//'
25376
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25377
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25383
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25386
# func_xform libobj-or-source
25389
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25392
# func_arith arithmetic-term...
25395
func_arith_result=`expr "$@"`
25399
# STRING may not start with a hyphen.
25402
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25408
case $lt_shell_append in
25410
cat << \_LT_EOF >> "$cfgfile"
25412
# func_append var value
25413
# Append VALUE to the end of shell variable VAR.
25421
cat << \_LT_EOF >> "$cfgfile"
25423
# func_append var value
25424
# Append VALUE to the end of shell variable VAR.
25435
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25436
|| (rm -f "$cfgfile"; exit 1)
25438
mv -f "$cfgfile" "$ofile" ||
29658
sed '$q' "$ltmain" >> "$cfgfile" \
29659
|| (rm -f "$cfgfile"; exit 1)
29661
if test x"$xsi_shell" = xyes; then
29662
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29666
\ */*) func_dirname_result="${1%/*}${2}" ;;\
29667
\ * ) func_dirname_result="${3}" ;;\
29669
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29670
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29671
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29672
test 0 -eq $? || _lt_function_replace_fail=:
29675
sed -e '/^func_basename ()$/,/^} # func_basename /c\
29678
\ func_basename_result="${1##*/}"\
29679
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29680
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29681
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29682
test 0 -eq $? || _lt_function_replace_fail=:
29685
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29686
func_dirname_and_basename ()\
29689
\ */*) func_dirname_result="${1%/*}${2}" ;;\
29690
\ * ) func_dirname_result="${3}" ;;\
29692
\ func_basename_result="${1##*/}"\
29693
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29694
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29695
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29696
test 0 -eq $? || _lt_function_replace_fail=:
29699
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29702
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29703
\ # positional parameters, so assign one to ordinary parameter first.\
29704
\ func_stripname_result=${3}\
29705
\ func_stripname_result=${func_stripname_result#"${1}"}\
29706
\ func_stripname_result=${func_stripname_result%"${2}"}\
29707
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29708
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29709
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29710
test 0 -eq $? || _lt_function_replace_fail=:
29713
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29714
func_split_long_opt ()\
29716
\ func_split_long_opt_name=${1%%=*}\
29717
\ func_split_long_opt_arg=${1#*=}\
29718
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29719
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29720
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29721
test 0 -eq $? || _lt_function_replace_fail=:
29724
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29725
func_split_short_opt ()\
29727
\ func_split_short_opt_arg=${1#??}\
29728
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29729
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29730
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29731
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29732
test 0 -eq $? || _lt_function_replace_fail=:
29735
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29739
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29740
\ *) func_lo2o_result=${1} ;;\
29742
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29743
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29744
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29745
test 0 -eq $? || _lt_function_replace_fail=:
29748
sed -e '/^func_xform ()$/,/^} # func_xform /c\
29751
func_xform_result=${1%.*}.lo\
29752
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29753
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29754
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29755
test 0 -eq $? || _lt_function_replace_fail=:
29758
sed -e '/^func_arith ()$/,/^} # func_arith /c\
29761
func_arith_result=$(( $* ))\
29762
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29763
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29764
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29765
test 0 -eq $? || _lt_function_replace_fail=:
29768
sed -e '/^func_len ()$/,/^} # func_len /c\
29771
func_len_result=${#1}\
29772
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29773
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29774
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29775
test 0 -eq $? || _lt_function_replace_fail=:
29779
if test x"$lt_shell_append" = xyes; then
29780
sed -e '/^func_append ()$/,/^} # func_append /c\
29783
eval "${1}+=\\${2}"\
29784
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29785
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29786
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29787
test 0 -eq $? || _lt_function_replace_fail=:
29790
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29791
func_append_quoted ()\
29793
\ func_quote_for_eval "${2}"\
29794
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29795
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29796
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29797
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29798
test 0 -eq $? || _lt_function_replace_fail=:
29801
# Save a `func_append' function call where possible by direct use of '+='
29802
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29803
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29804
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29805
test 0 -eq $? || _lt_function_replace_fail=:
29807
# Save a `func_append' function call even when '+=' is not available
29808
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29809
&& mv -f "$cfgfile.tmp" "$cfgfile" \
29810
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29811
test 0 -eq $? || _lt_function_replace_fail=:
29814
if test x"$_lt_function_replace_fail" = x":"; then
29815
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29816
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29820
mv -f "$cfgfile" "$ofile" ||
25439
29821
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25440
29822
chmod +x "$ofile"