~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to .pc/hdf4/configure

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.64.
 
3
# Generated by GNU Autoconf 2.68.
 
4
#
4
5
#
5
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7
8
# Foundation, Inc.
8
9
#
 
10
#
9
11
# This configure script is free software; the Free Software Foundation
10
12
# gives unlimited permission to copy, distribute and modify it.
11
13
## -------------------- ##
87
89
IFS=" ""        $as_nl"
88
90
 
89
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
90
93
case $0 in #((
91
94
  *[\\/]* ) as_myself=$0 ;;
92
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
169
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
175
 
 
176
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
177
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
178
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
179
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
180
    PATH=/empty FPATH=/empty; export PATH FPATH
 
181
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
182
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
172
183
test \$(( 1 + 1 )) = 2 || exit 1"
173
184
  if (eval "$as_required") 2>/dev/null; then :
174
185
  as_have_required=yes
212
223
  # We cannot yet assume a decent shell, so we have to provide a
213
224
        # neutralization value for shells without unset; and this also
214
225
        # works around shells that cannot unset nonexistent variables.
 
226
        # Preserve -v and -x to the replacement shell.
215
227
        BASH_ENV=/dev/null
216
228
        ENV=/dev/null
217
229
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
230
        export CONFIG_SHELL
219
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
231
        case $- in # ((((
 
232
          *v*x* | *x*v* ) as_opts=-vx ;;
 
233
          *v* ) as_opts=-v ;;
 
234
          *x* ) as_opts=-x ;;
 
235
          * ) as_opts= ;;
 
236
        esac
 
237
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
220
238
fi
221
239
 
222
240
    if test x$as_have_required = xno; then :
314
332
      test -d "$as_dir" && break
315
333
    done
316
334
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
335
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
318
336
 
319
337
 
320
338
} # as_fn_mkdir_p
354
372
fi # as_fn_arith
355
373
 
356
374
 
357
 
# as_fn_error ERROR [LINENO LOG_FD]
358
 
# ---------------------------------
 
375
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
376
# ----------------------------------------
359
377
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
378
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
 
# script with status $?, using 1 if that was 0.
 
379
# script with STATUS, using 1 if that was 0.
362
380
as_fn_error ()
363
381
{
364
 
  as_status=$?; test $as_status -eq 0 && as_status=1
365
 
  if test "$3"; then
366
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
382
  as_status=$1; test $as_status -eq 0 && as_status=1
 
383
  if test "$4"; then
 
384
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
385
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
368
386
  fi
369
 
  $as_echo "$as_me: error: $1" >&2
 
387
  $as_echo "$as_me: error: $2" >&2
370
388
  as_fn_exit $as_status
371
389
} # as_fn_error
372
390
 
523
541
# Sed expression to map a string onto a valid variable name.
524
542
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
543
 
526
 
 
527
 
 
528
 
# Check that we are running under the correct shell.
529
544
SHELL=${CONFIG_SHELL-/bin/sh}
530
545
 
531
 
case X$lt_ECHO in
532
 
X*--fallback-echo)
533
 
  # Remove one level of quotation (which was required for Make).
534
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535
 
  ;;
536
 
esac
537
 
 
538
 
ECHO=${lt_ECHO-echo}
539
 
if test "X$1" = X--no-reexec; then
540
 
  # Discard the --no-reexec flag, and continue.
541
 
  shift
542
 
elif test "X$1" = X--fallback-echo; then
543
 
  # Avoid inline document here, it may be left over
544
 
  :
545
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546
 
  # Yippee, $ECHO works!
547
 
  :
548
 
else
549
 
  # Restart under the correct shell.
550
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
551
 
fi
552
 
 
553
 
if test "X$1" = X--fallback-echo; then
554
 
  # used as fallback echo
555
 
  shift
556
 
  cat <<_LT_EOF
557
 
$*
558
 
_LT_EOF
559
 
  exit 0
560
 
fi
561
 
 
562
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
563
 
# if CDPATH is set.
564
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
 
 
566
 
if test -z "$lt_ECHO"; then
567
 
  if test "X${echo_test_string+set}" != Xset; then
568
 
    # find a string as large as possible, as long as the shell can cope with it
569
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573
 
      then
574
 
        break
575
 
      fi
576
 
    done
577
 
  fi
578
 
 
579
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
582
 
    :
583
 
  else
584
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
585
 
    # backslashes.  This makes it impossible to quote backslashes using
586
 
    #   echo "$something" | sed 's/\\/\\\\/g'
587
 
    #
588
 
    # So, first we look for a working echo in the user's PATH.
589
 
 
590
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591
 
    for dir in $PATH /usr/ucb; do
592
 
      IFS="$lt_save_ifs"
593
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
597
 
        ECHO="$dir/echo"
598
 
        break
599
 
      fi
600
 
    done
601
 
    IFS="$lt_save_ifs"
602
 
 
603
 
    if test "X$ECHO" = Xecho; then
604
 
      # We didn't find a better echo, so look for alternatives.
605
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
608
 
        # This shell has a builtin print -r that does the trick.
609
 
        ECHO='print -r'
610
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
612
 
        # If we have ksh, try running configure again with it.
613
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614
 
        export ORIGINAL_CONFIG_SHELL
615
 
        CONFIG_SHELL=/bin/ksh
616
 
        export CONFIG_SHELL
617
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618
 
      else
619
 
        # Try using printf.
620
 
        ECHO='printf %s\n'
621
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
624
 
          # Cool, printf works
625
 
          :
626
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627
 
             test "X$echo_testing_string" = 'X\t' &&
628
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
630
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631
 
          export CONFIG_SHELL
632
 
          SHELL="$CONFIG_SHELL"
633
 
          export SHELL
634
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
635
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636
 
             test "X$echo_testing_string" = 'X\t' &&
637
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
639
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
 
        else
641
 
          # maybe with a smaller string...
642
 
          prev=:
643
 
 
644
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646
 
            then
647
 
              break
648
 
            fi
649
 
            prev="$cmd"
650
 
          done
651
 
 
652
 
          if test "$prev" != 'sed 50q "$0"'; then
653
 
            echo_test_string=`eval $prev`
654
 
            export echo_test_string
655
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656
 
          else
657
 
            # Oops.  We lost completely, so just stick with echo.
658
 
            ECHO=echo
659
 
          fi
660
 
        fi
661
 
      fi
662
 
    fi
663
 
  fi
664
 
fi
665
 
 
666
 
# Copy echo and quote the copy suitably for passing to libtool from
667
 
# the Makefile, instead of quoting the original, which is used later.
668
 
lt_ECHO=$ECHO
669
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671
 
fi
672
 
 
673
 
 
674
 
 
675
 
 
676
 
exec 7<&0 </dev/null 6>&1
 
546
 
 
547
test -n "$DJDIR" || exec 7<&0 </dev/null
 
548
exec 6>&1
677
549
 
678
550
# Name of the host.
679
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
551
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
680
552
# so uname gets run too.
681
553
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
554
 
739
611
 
740
612
ac_subst_vars='LTLIBOBJS
741
613
LIBOBJS
 
614
HAVE_ARMADILLO
 
615
RASDAMAN_LIB
 
616
RASDAMAN_INC
 
617
RASDAMAN_ENABLED
 
618
JVM_LIB
 
619
MDB_ENABLED
 
620
JAVA_INC
 
621
JAVA_HOME
742
622
BINDINGS
743
623
PY_HAVE_SETUPTOOLS
744
624
pymoddir
755
635
GDAL_VERSION_MAJOR
756
636
PROJ_INCLUDE
757
637
PROJ_STATIC
 
638
PODOFO_INC
 
639
HAVE_PODOFO
 
640
POPPLER_INC
 
641
POPPLER_BASE_STREAM_HAS_TWO_ARGS
 
642
POPPLER_HAS_OPTCONTENT
 
643
HAVE_POPPLER
758
644
PAM_SETTING
 
645
FREEXL_INCLUDE
 
646
HAVE_FREEXL
 
647
OPENCL_LIB
 
648
OPENCL_FLAGS
759
649
GEOS_CONFIG
760
650
GEOS_VERSION
761
651
HAVE_GEOS
775
665
SQLITE3_LDFLAGS
776
666
SQLITE3_CFLAGS
777
667
SQLITE3_VERSION
 
668
SPATIALITE_AMALGAMATION
 
669
SPATIALITE_INC
778
670
HAVE_SPATIALITE
779
671
CURL_LIB
780
672
CURL_INC
784
676
OCI_INCLUDE
785
677
HAVE_OCI
786
678
ODBC_SETTING
 
679
LIBKML_INCLUDE
 
680
HAVE_LIBKML
 
681
LIBKML_VERSION
 
682
LIBKML_LDFLAGS
 
683
LIBKML_CFLAGS
787
684
EXPAT_INCLUDE
788
685
HAVE_EXPAT
789
686
EXPAT_VERSION
808
705
ORACLE_OCI_LDFLAGS
809
706
ORACLE_OCI_CFLAGS
810
707
ORACLE_OCI_VERSION
 
708
MRSID_LIDAR_LIBS
 
709
MRSID_LIDAR_INCLUDE
811
710
MRSID_LIBS
812
711
MRSID_FLAGS
813
712
MRSID_INCLUDE
814
713
KAKDIR
815
714
ECW_SETTING
 
715
FGDB_INC
 
716
FGDB_LIB
 
717
FGDB_ENABLED
 
718
HAVE_OPENJPEG
816
719
JASPER_FLAGS
817
720
HAVE_JASPER
 
721
NETCDF_HAS_HDF4
 
722
NETCDF_HAS_NC4
 
723
NETCDF_ROOT
 
724
NETCDF_SETTING
818
725
HDF5_INCLUDE
819
726
HAVE_HDF5
820
727
HDF4_INCLUDE
832
739
PCIDSK_INCLUDE
833
740
PCIDSK_LIB
834
741
PCIDSK_SETTING
 
742
GTA_SETTING
835
743
PNG_SETTING
836
 
NETCDF_SETTING
837
744
PCRASTER_SETTING
838
745
FITS_SETTING
839
746
HAVE_GRASS
844
751
PG_INC
845
752
HAVE_PG
846
753
PG_CONFIG
 
754
LIBLZMA_SETTING
 
755
LTLIBICONV
 
756
LIBICONV
847
757
LIBZ_SETTING
 
758
RENAME_INTERNAL_LIBGEOTIFF_SYMBOLS
 
759
RENAME_INTERNAL_LIBTIFF_SYMBOLS
848
760
HAVE_HIDE_INTERNAL_SYMBOLS
849
761
HAVE_GCC_ATOMIC_BUILTINS
850
762
HAVE_LIBTOOL
857
769
LIPO
858
770
NMEDIT
859
771
DSYMUTIL
860
 
lt_ECHO
 
772
MANIFEST_TOOL
 
773
AWK
861
774
RANLIB
862
775
STRIP
 
776
ac_ct_AR
863
777
AR
864
778
LN_S
865
779
NM
940
854
with_pic
941
855
enable_fast_install
942
856
with_gnu_ld
 
857
with_sysroot
943
858
enable_libtool_lock
944
859
with_libtool
945
860
with_ld_shared
946
861
with_unix_stdio_64
947
862
enable_debug
948
 
with_with_hide_internal_symbols
 
863
with_hide_internal_symbols
 
864
with_rename_internal_libtiff_symbols
 
865
with_rename_internal_libgeotiff_symbols
949
866
with_local
950
867
with_threads
951
868
with_libz
 
869
enable_rpath
 
870
with_libiconv_prefix
 
871
with_liblzma
952
872
with_pg
953
873
with_grass
954
874
with_libgrass
955
875
with_cfitsio
956
876
with_pcraster
957
 
with_netcdf
958
877
with_png
 
878
with_gta
959
879
with_pcidsk
960
880
with_libtiff
961
881
with_geotiff
966
886
with_fme
967
887
with_hdf4
968
888
with_hdf5
 
889
with_netcdf
969
890
with_jasper
 
891
with_openjpeg
 
892
with_fgdb
970
893
with_ecw
971
894
with_kakadu
972
895
with_mrsid
973
896
with_jp2mrsid
 
897
with_mrsid_lidar
974
898
with_msg
975
899
with_bsb
976
900
with_oci
986
910
with_expat
987
911
with_expat_inc
988
912
with_expat_lib
 
913
with_libkml
 
914
with_libkml_inc
 
915
with_libkml_lib
989
916
with_odbc
990
917
with_dods_root
991
918
with_curl
997
924
with_sde_version
998
925
with_vfk
999
926
with_epsilon
 
927
with_webp
1000
928
with_geos
 
929
with_opencl
 
930
with_opencl_include
 
931
with_opencl_lib
 
932
with_freexl
1001
933
with_pam
 
934
with_poppler
 
935
with_podofo
 
936
with_podofo_lib
 
937
with_podofo_extra_lib_for_test
1002
938
with_static_proj4
1003
939
with_gdal_ver
1004
940
with_
1007
943
with_ruby
1008
944
with_python
1009
945
with_pymoddir
 
946
with_java
 
947
with_mdb
 
948
with_jvm_lib
 
949
with_jvm_lib_add_rpath
 
950
with_rasdaman
 
951
with_armadillo
1010
952
'
1011
953
      ac_precious_vars='build_alias
1012
954
host_alias
1083
1025
  fi
1084
1026
 
1085
1027
  case $ac_option in
1086
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1087
 
  *)    ac_optarg=yes ;;
 
1028
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1029
  *=)   ac_optarg= ;;
 
1030
  *)    ac_optarg=yes ;;
1088
1031
  esac
1089
1032
 
1090
1033
  # Accept the important Cygnus configure options, so we can diagnose typos.
1129
1072
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130
1073
    # Reject names that are not valid shell variable names.
1131
1074
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132
 
      as_fn_error "invalid feature name: $ac_useropt"
 
1075
      as_fn_error $? "invalid feature name: $ac_useropt"
1133
1076
    ac_useropt_orig=$ac_useropt
1134
1077
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
1078
    case $ac_user_opts in
1155
1098
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156
1099
    # Reject names that are not valid shell variable names.
1157
1100
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158
 
      as_fn_error "invalid feature name: $ac_useropt"
 
1101
      as_fn_error $? "invalid feature name: $ac_useropt"
1159
1102
    ac_useropt_orig=$ac_useropt
1160
1103
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161
1104
    case $ac_user_opts in
1359
1302
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360
1303
    # Reject names that are not valid shell variable names.
1361
1304
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362
 
      as_fn_error "invalid package name: $ac_useropt"
 
1305
      as_fn_error $? "invalid package name: $ac_useropt"
1363
1306
    ac_useropt_orig=$ac_useropt
1364
1307
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365
1308
    case $ac_user_opts in
1375
1318
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376
1319
    # Reject names that are not valid shell variable names.
1377
1320
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378
 
      as_fn_error "invalid package name: $ac_useropt"
 
1321
      as_fn_error $? "invalid package name: $ac_useropt"
1379
1322
    ac_useropt_orig=$ac_useropt
1380
1323
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381
1324
    case $ac_user_opts in
1405
1348
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406
1349
    x_libraries=$ac_optarg ;;
1407
1350
 
1408
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1409
 
Try \`$0 --help' for more information."
 
1351
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1352
Try \`$0 --help' for more information"
1410
1353
    ;;
1411
1354
 
1412
1355
  *=*)
1414
1357
    # Reject names that are not valid shell variable names.
1415
1358
    case $ac_envvar in #(
1416
1359
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1417
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1360
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418
1361
    esac
1419
1362
    eval $ac_envvar=\$ac_optarg
1420
1363
    export $ac_envvar ;;
1424
1367
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425
1368
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426
1369
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1370
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1428
1371
    ;;
1429
1372
 
1430
1373
  esac
1432
1375
 
1433
1376
if test -n "$ac_prev"; then
1434
1377
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435
 
  as_fn_error "missing argument to $ac_option"
 
1378
  as_fn_error $? "missing argument to $ac_option"
1436
1379
fi
1437
1380
 
1438
1381
if test -n "$ac_unrecognized_opts"; then
1439
1382
  case $enable_option_checking in
1440
1383
    no) ;;
1441
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1384
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442
1385
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443
1386
  esac
1444
1387
fi
1461
1404
    [\\/$]* | ?:[\\/]* )  continue;;
1462
1405
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463
1406
  esac
1464
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1407
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465
1408
done
1466
1409
 
1467
1410
# There might be people who depend on the old broken behavior: `$host'
1475
1418
if test "x$host_alias" != x; then
1476
1419
  if test "x$build_alias" = x; then
1477
1420
    cross_compiling=maybe
1478
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1479
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1421
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1422
    If a cross compiler is detected then cross compile mode will be used" >&2
1480
1423
  elif test "x$build_alias" != "x$host_alias"; then
1481
1424
    cross_compiling=yes
1482
1425
  fi
1491
1434
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492
1435
ac_ls_di=`ls -di .` &&
1493
1436
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494
 
  as_fn_error "working directory cannot be determined"
 
1437
  as_fn_error $? "working directory cannot be determined"
1495
1438
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496
 
  as_fn_error "pwd does not report name of working directory"
 
1439
  as_fn_error $? "pwd does not report name of working directory"
1497
1440
 
1498
1441
 
1499
1442
# Find the source files, if location was not specified.
1532
1475
fi
1533
1476
if test ! -r "$srcdir/$ac_unique_file"; then
1534
1477
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1478
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1536
1479
fi
1537
1480
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1538
1481
ac_abs_confdir=`(
1539
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1482
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540
1483
        pwd)`
1541
1484
# When building in place, set srcdir=.
1542
1485
if test "$ac_abs_confdir" = "$ac_pwd"; then
1576
1519
      --help=short        display options specific to this package
1577
1520
      --help=recursive    display the short help of all the included packages
1578
1521
  -V, --version           display version information and exit
1579
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1522
  -q, --quiet, --silent   do not print \`checking ...' messages
1580
1523
      --cache-file=FILE   cache test results in FILE [disabled]
1581
1524
  -C, --config-cache      alias for \`--cache-file=config.cache'
1582
1525
  -n, --no-create         do not create output files
1639
1582
                          optimize for fast installation [default=yes]
1640
1583
  --disable-libtool-lock  avoid locking (might break parallel builds)
1641
1584
  --enable-debug          enable debugging (disabled by default)
 
1585
  --disable-rpath         do not hardcode runtime library paths
1642
1586
 
1643
1587
Optional Packages:
1644
1588
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1646
1590
  --with-pic              try to use only PIC/non-PIC objects [default=use
1647
1591
                          both]
1648
1592
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1593
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1594
                        (or the compiler's sysroot if not specified).
1649
1595
  --without-libtool     Don't use libtool to build the library
1650
1596
  --without-ld-shared   Disable shared library support
1651
1597
  --with-unix-stdio-64=ARG Utilize 64 stdio api (yes/no)
1652
1598
  --with-hide-internal-symbols=ARG Try to hide internal symbols (ARG=yes/no)
 
1599
  --with-rename-internal-libtiff-symbols=ARG Prefix internal libtiff symbols with gdal_ (ARG=yes/no)
 
1600
  --with-rename-internal-libgeotiff-symbols=ARG Prefix internal libgeotiff symbols with gdal_ (ARG=yes/no)
1653
1601
  --with-local=dir      Include /usr/local or other local tree for INCLUDE/LIBS
1654
 
  --with-threads=linkoptInclude thread safe support
 
1602
  --with-threads=ARG    Include thread safe support (ARG=yes(default), no or linkopt)
1655
1603
  --with-libz=ARG       Include libz support (ARG=internal or libz directory)
 
1604
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1605
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1606
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1607
  --with-liblzma=ARG       Include liblzma support (ARG=yes/no)
1656
1608
  --with-pg=ARG           Include PostgreSQL GDAL/OGR Support (ARG=path to
1657
1609
                          pg_config)
1658
1610
  --with-grass=ARG      Include GRASS support (GRASS 5.7+, ARG=GRASS install tree dir)
1659
1611
  --with-libgrass=ARG   Include GRASS support based on libgrass (GRASS 5.0+)
1660
1612
  --with-cfitsio=ARG    Include FITS support (ARG=no or libcfitsio path)
1661
1613
  --with-pcraster=ARG   Include PCRaster (libcsf) support (ARG=internal, no or path)
1662
 
  --with-netcdf=ARG     Include netCDF support (ARG=no or netCDF tree prefix)
1663
1614
  --with-png=ARG        Include PNG support (ARG=internal, no or path)
 
1615
  --with-gta=ARG        Include GTA support (ARG=no or libgta tree prefix)
1664
1616
  --with-pcidsk=ARG     Path to external PCIDSK SDK, or internal (default), or old
1665
1617
  --with-libtiff=ARG    Libtiff library to use (ARG=internal, yes or path)
1666
1618
  --with-geotiff=ARG    Libgeotiff library to use (ARG=internal, yes or path)
1671
1623
  --with-fme=ARG        Include FMEObjects support (ARG=FME_HOME path)
1672
1624
  --with-hdf4=ARG       Include HDF4 support (ARG=path)
1673
1625
  --with-hdf5=ARG       Include HDF5 support (ARG=path)
 
1626
  --with-netcdf=ARG     Include netCDF support (ARG=no or netCDF tree prefix)
1674
1627
  --with-jasper=ARG     Include JPEG-2000 support via JasPer library (ARG=path)
 
1628
  --with-openjpeg=ARG     Include JPEG-2000 support via OpenJPEG v2 library (ARG=path)
 
1629
  --with-fgdb=ARG        Include ESRI File Geodatabase support (ARG=FGDP API Path, yes or no)
1675
1630
  --with-ecw=ARG        Include ECW support (ARG=ECW SDK Path, yes or no)
1676
1631
  --with-kakadu=ARG     Include Kakadu/JPEG2000 support
1677
1632
  --with-mrsid=ARG      Include MrSID support (ARG=path to MrSID DSDK or no)
1678
1633
  --with-jp2mrsid=ARG   Enable MrSID JPEG2000 support (ARG=yes/no)
 
1634
  --with-mrsid_lidar=ARG      Include MrSID/MG4 LiDAR support (ARG=path to LizardTech LiDAR SDK or no)
1679
1635
  --with-msg=ARG          Enable MSG driver (ARG=yes or no)
1680
1636
  --without-bsb           Disable BSB driver (legal issues pending
1681
1637
  --with-oci=[ARG]        use Oracle OCI API from given Oracle home
1696
1652
                          check standard prefixes (ARG=yes); disable (ARG=no)
1697
1653
  --with-expat-inc=[DIR]  path to Expat XML Parser headers
1698
1654
  --with-expat-lib=[ARG]  link options for Expat XML Parser libraries
 
1655
  --with-libkml=[ARG]     use Google libkml from given prefix (ARG=path);
 
1656
                          check standard prefixes (ARG=yes); disable (ARG=no)
 
1657
  --with-libkml-inc=[DIR] path to Google libkml headers
 
1658
  --with-libkml-lib=[ARG] link options for Google libkml libraries
1699
1659
  --with-odbc=ARG       Include ODBC support (ARG=no or path)
1700
1660
  --with-dods-root=ARG  Include DODS support (ARG=no or absolute path)
1701
1661
  --with-curl=ARG       Include curl (ARG=path to curl-config.)
1702
 
  --with-spatialite=ARG Include SpatiaLite support (ARG=no or path)
 
1662
  --with-spatialite=ARG Include SpatiaLite support (ARG=no(default), yes or path)
1703
1663
  --with-sqlite3=[ARG]    use SQLite 3 library [default=yes], optionally
1704
1664
                          specify the prefix for sqlite3 library
1705
1665
  --with-dwgdirect=path Include DWG direct support
1709
1669
  --with-sde-version=VERSION NUMBER  Set ESRI SDE version number (Default is 80).
1710
1670
  --without-vfk         Disable VFK support
1711
1671
  --with-epsilon=ARG    Include EPSILON support (ARG=no, yes or libepsilon install root path)
 
1672
  --with-webp=ARG    Include WEBP support (ARG=no, yes or libwebp install root path)
1712
1673
  --with-geos=ARG         Include GEOS support (ARG=yes, no or geos-config
1713
1674
                          path)
 
1675
  --with-opencl=ARG       Include OpenCL (GPU) support
 
1676
  --with-opencl-include=ARG OpenCL Include directory (with a CL subdirectory)
 
1677
  --with-opencl-lib=ARG   OpenCL Link Flags (ie. -L/xxx -lOpenCL)
 
1678
  --with-freexl=ARG    Include freexl support (ARG=no, yes (default) or libfreexl install path)
1714
1679
  --without-pam         Disable PAM (.aux.xml) support
 
1680
  --with-poppler=ARG    Include poppler(for PDF) support (ARG=no(default), yes or poppler install path)
 
1681
  --with-podofo=ARG    Include podofo(for PDF) support (ARG=no(default), yes or podofo install path)
 
1682
  --with-podofo-lib=ARG   podofo Link Flags (ie. -L/xxx -lpodofo ...). Mainly for static libpodofo
 
1683
  --with-podofo-extra-lib-for-test=ARG   Additional libraries to pass the detection test, but not used for libgdal linking (ie. -ljpeg ...). Mainly for static libpodofo
1715
1684
  --with-static-proj4=ARG Compile with PROJ.4 statically (ARG=no or path)
1716
1685
  --with-gdal-ver=ARG   Override GDAL version
1717
1686
  --with-macosx-framework         Build and install GDAL as a Mac OS X Framework
1720
1689
  --with-ruby           Enable Ruby bindings
1721
1690
  --with-python       Enable python bindings
1722
1691
  --with-pymoddir=ARG   Override Old-gen Python package install dir
 
1692
  --with-java       Include Java support (ARG=yes, no or JDK home path)  [default=no]
 
1693
  --with-mdb       Include MDB driver
 
1694
  --with-jvm-lib=ARG        ARG points to Java libjvm path
 
1695
  --with-jvm-lib-add-rpath    Add the libjvm path to the RPATH (no by default)
 
1696
  --with-rasdaman=DIR        Include rasdaman support (DIR is rasdaman's install dir).
 
1697
  --with-armadillo=ARG       Include Armadillo support for faster TPS transform computation (ARG=yes/no) [default=no]
1723
1698
 
1724
1699
Some influential environment variables:
1725
1700
  CC          C compiler command
1727
1702
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1728
1703
              nonstandard directory <lib dir>
1729
1704
  LIBS        libraries to pass to the linker, e.g. -l<library>
1730
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1705
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731
1706
              you have headers in a nonstandard directory <include dir>
1732
1707
  CXX         C++ compiler command
1733
1708
  CXXFLAGS    C++ compiler flags
1801
1776
if $ac_init_version; then
1802
1777
  cat <<\_ACEOF
1803
1778
configure
1804
 
generated by GNU Autoconf 2.64
 
1779
generated by GNU Autoconf 2.68
1805
1780
 
1806
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
1781
Copyright (C) 2010 Free Software Foundation, Inc.
1807
1782
This configure script is free software; the Free Software Foundation
1808
1783
gives unlimited permission to copy, distribute and modify it.
1809
1784
_ACEOF
1847
1822
 
1848
1823
        ac_retval=1
1849
1824
fi
1850
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
 
  return $ac_retval
 
1825
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1826
  as_fn_set_status $ac_retval
1852
1827
 
1853
1828
} # ac_fn_c_try_compile
1854
1829
 
1885
1860
 
1886
1861
        ac_retval=1
1887
1862
fi
1888
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
 
  return $ac_retval
 
1863
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1864
  as_fn_set_status $ac_retval
1890
1865
 
1891
1866
} # ac_fn_cxx_try_compile
1892
1867
 
1931
1906
  # interfere with the next link command; also delete a directory that is
1932
1907
  # left behind by Apple's compiler.  We do this before executing the actions.
1933
1908
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
 
  return $ac_retval
 
1909
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1910
  as_fn_set_status $ac_retval
1936
1911
 
1937
1912
} # ac_fn_c_try_link
1938
1913
 
1945
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946
1921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947
1922
$as_echo_n "checking for $2... " >&6; }
1948
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1923
if eval \${$3+:} false; then :
1949
1924
  $as_echo_n "(cached) " >&6
1950
1925
else
1951
1926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963
1938
eval ac_res=\$$3
1964
1939
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965
1940
$as_echo "$ac_res" >&6; }
1966
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1941
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1942
 
1968
1943
} # ac_fn_c_check_header_compile
1969
1944
 
1988
1963
    mv -f conftest.er1 conftest.err
1989
1964
  fi
1990
1965
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991
 
  test $ac_status = 0; } >/dev/null && {
 
1966
  test $ac_status = 0; } > conftest.i && {
1992
1967
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1993
1968
         test ! -s conftest.err
1994
1969
       }; then :
1999
1974
 
2000
1975
    ac_retval=1
2001
1976
fi
2002
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
 
  return $ac_retval
 
1977
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1978
  as_fn_set_status $ac_retval
2004
1979
 
2005
1980
} # ac_fn_c_try_cpp
2006
1981
 
2041
2016
       ac_retval=$ac_status
2042
2017
fi
2043
2018
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
 
  return $ac_retval
 
2019
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2020
  as_fn_set_status $ac_retval
2046
2021
 
2047
2022
} # ac_fn_c_try_run
2048
2023
 
2054
2029
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055
2030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056
2031
$as_echo_n "checking for $2... " >&6; }
2057
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2032
if eval \${$3+:} false; then :
2058
2033
  $as_echo_n "(cached) " >&6
2059
2034
else
2060
2035
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109
2084
eval ac_res=\$$3
2110
2085
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111
2086
$as_echo "$ac_res" >&6; }
2112
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2087
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2088
 
2114
2089
} # ac_fn_c_check_func
2115
2090
 
2134
2109
    mv -f conftest.er1 conftest.err
2135
2110
  fi
2136
2111
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137
 
  test $ac_status = 0; } >/dev/null && {
 
2112
  test $ac_status = 0; } > conftest.i && {
2138
2113
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2139
2114
         test ! -s conftest.err
2140
2115
       }; then :
2145
2120
 
2146
2121
    ac_retval=1
2147
2122
fi
2148
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149
 
  return $ac_retval
 
2123
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2124
  as_fn_set_status $ac_retval
2150
2125
 
2151
2126
} # ac_fn_cxx_try_cpp
2152
2127
 
2191
2166
  # interfere with the next link command; also delete a directory that is
2192
2167
  # left behind by Apple's compiler.  We do this before executing the actions.
2193
2168
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2194
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
 
  return $ac_retval
 
2169
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2170
  as_fn_set_status $ac_retval
2196
2171
 
2197
2172
} # ac_fn_cxx_try_link
2198
2173
 
2204
2179
ac_fn_c_check_header_mongrel ()
2205
2180
{
2206
2181
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2182
  if eval \${$3+:} false; then :
2208
2183
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209
2184
$as_echo_n "checking for $2... " >&6; }
2210
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2185
if eval \${$3+:} false; then :
2211
2186
  $as_echo_n "(cached) " >&6
2212
2187
fi
2213
2188
eval ac_res=\$$3
2243
2218
else
2244
2219
  ac_header_preproc=no
2245
2220
fi
2246
 
rm -f conftest.err conftest.$ac_ext
 
2221
rm -f conftest.err conftest.i conftest.$ac_ext
2247
2222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248
2223
$as_echo "$ac_header_preproc" >&6; }
2249
2224
 
2270
2245
esac
2271
2246
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272
2247
$as_echo_n "checking for $2... " >&6; }
2273
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2248
if eval \${$3+:} false; then :
2274
2249
  $as_echo_n "(cached) " >&6
2275
2250
else
2276
2251
  eval "$3=\$ac_header_compiler"
2279
2254
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280
2255
$as_echo "$ac_res" >&6; }
2281
2256
fi
2282
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2257
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283
2258
 
2284
2259
} # ac_fn_c_check_header_mongrel
2285
2260
 
2456
2431
rm -f conftest.val
2457
2432
 
2458
2433
  fi
2459
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2460
 
  return $ac_retval
 
2434
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2435
  as_fn_set_status $ac_retval
2461
2436
 
2462
2437
} # ac_fn_c_compute_int
2463
2438
 
2470
2445
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471
2446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472
2447
$as_echo_n "checking for $2... " >&6; }
2473
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2448
if eval \${$3+:} false; then :
2474
2449
  $as_echo_n "(cached) " >&6
2475
2450
else
2476
2451
  eval "$3=no"
2511
2486
eval ac_res=\$$3
2512
2487
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513
2488
$as_echo "$ac_res" >&6; }
2514
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2489
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515
2490
 
2516
2491
} # ac_fn_c_check_type
2517
2492
 
2518
 
# ac_fn_c_check_decl LINENO SYMBOL VAR
2519
 
# ------------------------------------
2520
 
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
2493
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2494
# ---------------------------------------------
 
2495
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2496
# accordingly.
2521
2497
ac_fn_c_check_decl ()
2522
2498
{
2523
2499
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2525
 
$as_echo_n "checking whether $2 is declared... " >&6; }
2526
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2500
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
2501
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
2502
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
2503
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
2504
if eval \${$3+:} false; then :
2527
2505
  $as_echo_n "(cached) " >&6
2528
2506
else
2529
2507
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532
2510
int
2533
2511
main ()
2534
2512
{
2535
 
#ifndef $2
2536
 
  (void) $2;
 
2513
#ifndef $as_decl_name
 
2514
#ifdef __cplusplus
 
2515
  (void) $as_decl_use;
 
2516
#else
 
2517
  (void) $as_decl_name;
 
2518
#endif
2537
2519
#endif
2538
2520
 
2539
2521
  ;
2550
2532
eval ac_res=\$$3
2551
2533
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552
2534
$as_echo "$ac_res" >&6; }
2553
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2535
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554
2536
 
2555
2537
} # ac_fn_c_check_decl
2556
2538
cat >config.log <<_ACEOF
2558
2540
running configure, to aid debugging if configure makes a mistake.
2559
2541
 
2560
2542
It was created by $as_me, which was
2561
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
2543
generated by GNU Autoconf 2.68.  Invocation command line was
2562
2544
 
2563
2545
  $ $0 $@
2564
2546
 
2668
2650
  {
2669
2651
    echo
2670
2652
 
2671
 
    cat <<\_ASBOX
2672
 
## ---------------- ##
 
2653
    $as_echo "## ---------------- ##
2673
2654
## Cache variables. ##
2674
 
## ---------------- ##
2675
 
_ASBOX
 
2655
## ---------------- ##"
2676
2656
    echo
2677
2657
    # The following way of writing the cache mishandles newlines in values,
2678
2658
(
2706
2686
)
2707
2687
    echo
2708
2688
 
2709
 
    cat <<\_ASBOX
2710
 
## ----------------- ##
 
2689
    $as_echo "## ----------------- ##
2711
2690
## Output variables. ##
2712
 
## ----------------- ##
2713
 
_ASBOX
 
2691
## ----------------- ##"
2714
2692
    echo
2715
2693
    for ac_var in $ac_subst_vars
2716
2694
    do
2723
2701
    echo
2724
2702
 
2725
2703
    if test -n "$ac_subst_files"; then
2726
 
      cat <<\_ASBOX
2727
 
## ------------------- ##
 
2704
      $as_echo "## ------------------- ##
2728
2705
## File substitutions. ##
2729
 
## ------------------- ##
2730
 
_ASBOX
 
2706
## ------------------- ##"
2731
2707
      echo
2732
2708
      for ac_var in $ac_subst_files
2733
2709
      do
2741
2717
    fi
2742
2718
 
2743
2719
    if test -s confdefs.h; then
2744
 
      cat <<\_ASBOX
2745
 
## ----------- ##
 
2720
      $as_echo "## ----------- ##
2746
2721
## confdefs.h. ##
2747
 
## ----------- ##
2748
 
_ASBOX
 
2722
## ----------- ##"
2749
2723
      echo
2750
2724
      cat confdefs.h
2751
2725
      echo
2800
2774
ac_site_file1=NONE
2801
2775
ac_site_file2=NONE
2802
2776
if test -n "$CONFIG_SITE"; then
2803
 
  ac_site_file1=$CONFIG_SITE
 
2777
  # We do not want a PATH search for config.site.
 
2778
  case $CONFIG_SITE in #((
 
2779
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2780
    */*) ac_site_file1=$CONFIG_SITE;;
 
2781
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2782
  esac
2804
2783
elif test "x$prefix" != xNONE; then
2805
2784
  ac_site_file1=$prefix/share/config.site
2806
2785
  ac_site_file2=$prefix/etc/config.site
2811
2790
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812
2791
do
2813
2792
  test "x$ac_site_file" = xNONE && continue
2814
 
  if test -r "$ac_site_file"; then
 
2793
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2815
2794
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2816
2795
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2817
2796
    sed 's/^/| /' "$ac_site_file" >&5
2818
 
    . "$ac_site_file"
 
2797
    . "$ac_site_file" \
 
2798
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2799
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2800
as_fn_error $? "failed to load site script $ac_site_file
 
2801
See \`config.log' for more details" "$LINENO" 5; }
2819
2802
  fi
2820
2803
done
2821
2804
 
2875
2858
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876
2859
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2877
2860
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2878
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2861
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2879
2862
fi
2880
2863
## -------------------- ##
2881
2864
## Main body of script. ##
2889
2872
 
2890
2873
 
2891
2874
 
2892
 
ac_config_headers="$ac_config_headers port/cpl_config.h:port/cpl_config.h.in:port/cpl_config_extras.h"
 
2875
ac_config_headers="$ac_config_headers port/cpl_config.h:port/cpl_config.h.in"
 
2876
 
2893
2877
 
2894
2878
 
2895
2879
 
2896
2880
 
2897
2881
ac_aux_dir=
2898
2882
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2899
 
  for ac_t in install-sh install.sh shtool; do
2900
 
    if test -f "$ac_dir/$ac_t"; then
2901
 
      ac_aux_dir=$ac_dir
2902
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2903
 
      break 2
2904
 
    fi
2905
 
  done
 
2883
  if test -f "$ac_dir/install-sh"; then
 
2884
    ac_aux_dir=$ac_dir
 
2885
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2886
    break
 
2887
  elif test -f "$ac_dir/install.sh"; then
 
2888
    ac_aux_dir=$ac_dir
 
2889
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2890
    break
 
2891
  elif test -f "$ac_dir/shtool"; then
 
2892
    ac_aux_dir=$ac_dir
 
2893
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2894
    break
 
2895
  fi
2906
2896
done
2907
2897
if test -z "$ac_aux_dir"; then
2908
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2898
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2909
2899
fi
2910
2900
 
2911
2901
# These three variables are undocumented and unsupported,
2919
2909
 
2920
2910
# Make sure we can run config.sub.
2921
2911
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2922
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2912
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2923
2913
 
2924
2914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2925
2915
$as_echo_n "checking build system type... " >&6; }
2926
 
if test "${ac_cv_build+set}" = set; then :
 
2916
if ${ac_cv_build+:} false; then :
2927
2917
  $as_echo_n "(cached) " >&6
2928
2918
else
2929
2919
  ac_build_alias=$build_alias
2930
2920
test "x$ac_build_alias" = x &&
2931
2921
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2932
2922
test "x$ac_build_alias" = x &&
2933
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2923
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2934
2924
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2935
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2925
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2936
2926
 
2937
2927
fi
2938
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2939
2929
$as_echo "$ac_cv_build" >&6; }
2940
2930
case $ac_cv_build in
2941
2931
*-*-*) ;;
2942
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2932
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2943
2933
esac
2944
2934
build=$ac_cv_build
2945
2935
ac_save_IFS=$IFS; IFS='-'
2957
2947
 
2958
2948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2959
2949
$as_echo_n "checking host system type... " >&6; }
2960
 
if test "${ac_cv_host+set}" = set; then :
 
2950
if ${ac_cv_host+:} false; then :
2961
2951
  $as_echo_n "(cached) " >&6
2962
2952
else
2963
2953
  if test "x$host_alias" = x; then
2964
2954
  ac_cv_host=$ac_cv_build
2965
2955
else
2966
2956
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2967
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2957
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2968
2958
fi
2969
2959
 
2970
2960
fi
2972
2962
$as_echo "$ac_cv_host" >&6; }
2973
2963
case $ac_cv_host in
2974
2964
*-*-*) ;;
2975
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2965
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2976
2966
esac
2977
2967
host=$ac_cv_host
2978
2968
ac_save_IFS=$IFS; IFS='-'
2999
2989
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3000
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001
2991
$as_echo_n "checking for $ac_word... " >&6; }
3002
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2992
if ${ac_cv_prog_CC+:} false; then :
3003
2993
  $as_echo_n "(cached) " >&6
3004
2994
else
3005
2995
  if test -n "$CC"; then
3039
3029
set dummy gcc; ac_word=$2
3040
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041
3031
$as_echo_n "checking for $ac_word... " >&6; }
3042
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3032
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3043
3033
  $as_echo_n "(cached) " >&6
3044
3034
else
3045
3035
  if test -n "$ac_ct_CC"; then
3092
3082
set dummy ${ac_tool_prefix}cc; ac_word=$2
3093
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094
3084
$as_echo_n "checking for $ac_word... " >&6; }
3095
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3085
if ${ac_cv_prog_CC+:} false; then :
3096
3086
  $as_echo_n "(cached) " >&6
3097
3087
else
3098
3088
  if test -n "$CC"; then
3132
3122
set dummy cc; ac_word=$2
3133
3123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134
3124
$as_echo_n "checking for $ac_word... " >&6; }
3135
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3125
if ${ac_cv_prog_CC+:} false; then :
3136
3126
  $as_echo_n "(cached) " >&6
3137
3127
else
3138
3128
  if test -n "$CC"; then
3191
3181
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193
3183
$as_echo_n "checking for $ac_word... " >&6; }
3194
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
3184
if ${ac_cv_prog_CC+:} false; then :
3195
3185
  $as_echo_n "(cached) " >&6
3196
3186
else
3197
3187
  if test -n "$CC"; then
3235
3225
set dummy $ac_prog; ac_word=$2
3236
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237
3227
$as_echo_n "checking for $ac_word... " >&6; }
3238
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3228
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3239
3229
  $as_echo_n "(cached) " >&6
3240
3230
else
3241
3231
  if test -n "$ac_ct_CC"; then
3289
3279
 
3290
3280
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291
3281
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292
 
as_fn_error "no acceptable C compiler found in \$PATH
3293
 
See \`config.log' for more details." "$LINENO" 5; }
 
3282
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3283
See \`config.log' for more details" "$LINENO" 5; }
3294
3284
 
3295
3285
# Provide some information about the compiler.
3296
3286
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3311
3301
... rest of stderr output deleted ...
3312
3302
         10q' conftest.err >conftest.er1
3313
3303
    cat conftest.er1 >&5
3314
 
    rm -f conftest.er1 conftest.err
3315
3304
  fi
 
3305
  rm -f conftest.er1 conftest.err
3316
3306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317
3307
  test $ac_status = 0; }
3318
3308
done
3319
3309
 
3320
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321
3311
/* end confdefs.h.  */
3322
 
#include <stdio.h>
 
3312
 
3323
3313
int
3324
3314
main ()
3325
3315
{
3326
 
FILE *f = fopen ("conftest.out", "w");
3327
 
 return ferror (f) || fclose (f) != 0;
3328
3316
 
3329
3317
  ;
3330
3318
  return 0;
3331
3319
}
3332
3320
_ACEOF
3333
3321
ac_clean_files_save=$ac_clean_files
3334
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
3322
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335
3323
# Try to create an executable without -o first, disregard a.out.
3336
3324
# It will help us diagnose broken compilers, and finding out an intuition
3337
3325
# of exeext.
3338
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3327
$as_echo_n "checking whether the C compiler works... " >&6; }
3340
3328
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3329
 
3342
3330
# The possible output files:
3398
3386
else
3399
3387
  ac_file=''
3400
3388
fi
 
3389
if test -z "$ac_file"; then :
 
3390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3391
$as_echo "no" >&6; }
 
3392
$as_echo "$as_me: failed program was:" >&5
 
3393
sed 's/^/| /' conftest.$ac_ext >&5
 
3394
 
 
3395
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3396
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3397
as_fn_error 77 "C compiler cannot create executables
 
3398
See \`config.log' for more details" "$LINENO" 5; }
 
3399
else
 
3400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3401
$as_echo "yes" >&6; }
 
3402
fi
 
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3404
$as_echo_n "checking for C compiler default output file name... " >&6; }
3401
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3402
3406
$as_echo "$ac_file" >&6; }
3403
 
if test -z "$ac_file"; then :
3404
 
  $as_echo "$as_me: failed program was:" >&5
3405
 
sed 's/^/| /' conftest.$ac_ext >&5
3406
 
 
3407
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409
 
{ as_fn_set_status 77
3410
 
as_fn_error "C compiler cannot create executables
3411
 
See \`config.log' for more details." "$LINENO" 5; }; }
3412
 
fi
3413
3407
ac_exeext=$ac_cv_exeext
3414
3408
 
3415
 
# Check that the compiler produces executables we can run.  If not, either
3416
 
# the compiler is broken, or we cross compile.
3417
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3418
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3419
 
# If not cross compiling, check that we can run a simple program.
3420
 
if test "$cross_compiling" != yes; then
3421
 
  if { ac_try='./$ac_file'
3422
 
  { { case "(($ac_try" in
3423
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424
 
  *) ac_try_echo=$ac_try;;
3425
 
esac
3426
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427
 
$as_echo "$ac_try_echo"; } >&5
3428
 
  (eval "$ac_try") 2>&5
3429
 
  ac_status=$?
3430
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431
 
  test $ac_status = 0; }; }; then
3432
 
    cross_compiling=no
3433
 
  else
3434
 
    if test "$cross_compiling" = maybe; then
3435
 
        cross_compiling=yes
3436
 
    else
3437
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439
 
as_fn_error "cannot run C compiled programs.
3440
 
If you meant to cross compile, use \`--host'.
3441
 
See \`config.log' for more details." "$LINENO" 5; }
3442
 
    fi
3443
 
  fi
3444
 
fi
3445
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446
 
$as_echo "yes" >&6; }
3447
 
 
3448
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
3409
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3449
3410
ac_clean_files=$ac_clean_files_save
3450
 
# Check that the compiler produces executables we can run.  If not, either
3451
 
# the compiler is broken, or we cross compile.
3452
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3453
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3454
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3455
 
$as_echo "$cross_compiling" >&6; }
3456
 
 
3457
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3458
3412
$as_echo_n "checking for suffix of executables... " >&6; }
3459
3413
if { { ac_try="$ac_link"
3483
3437
else
3484
3438
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485
3439
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
3487
 
See \`config.log' for more details." "$LINENO" 5; }
 
3440
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3441
See \`config.log' for more details" "$LINENO" 5; }
3488
3442
fi
3489
 
rm -f conftest$ac_cv_exeext
 
3443
rm -f conftest conftest$ac_cv_exeext
3490
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3491
3445
$as_echo "$ac_cv_exeext" >&6; }
3492
3446
 
3493
3447
rm -f conftest.$ac_ext
3494
3448
EXEEXT=$ac_cv_exeext
3495
3449
ac_exeext=$EXEEXT
 
3450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3451
/* end confdefs.h.  */
 
3452
#include <stdio.h>
 
3453
int
 
3454
main ()
 
3455
{
 
3456
FILE *f = fopen ("conftest.out", "w");
 
3457
 return ferror (f) || fclose (f) != 0;
 
3458
 
 
3459
  ;
 
3460
  return 0;
 
3461
}
 
3462
_ACEOF
 
3463
ac_clean_files="$ac_clean_files conftest.out"
 
3464
# Check that the compiler produces executables we can run.  If not, either
 
3465
# the compiler is broken, or we cross compile.
 
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3467
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3468
if test "$cross_compiling" != yes; then
 
3469
  { { ac_try="$ac_link"
 
3470
case "(($ac_try" in
 
3471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3472
  *) ac_try_echo=$ac_try;;
 
3473
esac
 
3474
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3475
$as_echo "$ac_try_echo"; } >&5
 
3476
  (eval "$ac_link") 2>&5
 
3477
  ac_status=$?
 
3478
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3479
  test $ac_status = 0; }
 
3480
  if { ac_try='./conftest$ac_cv_exeext'
 
3481
  { { case "(($ac_try" in
 
3482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3483
  *) ac_try_echo=$ac_try;;
 
3484
esac
 
3485
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3486
$as_echo "$ac_try_echo"; } >&5
 
3487
  (eval "$ac_try") 2>&5
 
3488
  ac_status=$?
 
3489
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3490
  test $ac_status = 0; }; }; then
 
3491
    cross_compiling=no
 
3492
  else
 
3493
    if test "$cross_compiling" = maybe; then
 
3494
        cross_compiling=yes
 
3495
    else
 
3496
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3497
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3498
as_fn_error $? "cannot run C compiled programs.
 
3499
If you meant to cross compile, use \`--host'.
 
3500
See \`config.log' for more details" "$LINENO" 5; }
 
3501
    fi
 
3502
  fi
 
3503
fi
 
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3505
$as_echo "$cross_compiling" >&6; }
 
3506
 
 
3507
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3508
ac_clean_files=$ac_clean_files_save
3496
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3497
3510
$as_echo_n "checking for suffix of object files... " >&6; }
3498
 
if test "${ac_cv_objext+set}" = set; then :
 
3511
if ${ac_cv_objext+:} false; then :
3499
3512
  $as_echo_n "(cached) " >&6
3500
3513
else
3501
3514
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535
3548
 
3536
3549
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537
3550
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538
 
as_fn_error "cannot compute suffix of object files: cannot compile
3539
 
See \`config.log' for more details." "$LINENO" 5; }
 
3551
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3552
See \`config.log' for more details" "$LINENO" 5; }
3540
3553
fi
3541
3554
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3542
3555
fi
3546
3559
ac_objext=$OBJEXT
3547
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3548
3561
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3549
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3562
if ${ac_cv_c_compiler_gnu+:} false; then :
3550
3563
  $as_echo_n "(cached) " >&6
3551
3564
else
3552
3565
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583
3596
ac_save_CFLAGS=$CFLAGS
3584
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3585
3598
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3586
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3599
if ${ac_cv_prog_cc_g+:} false; then :
3587
3600
  $as_echo_n "(cached) " >&6
3588
3601
else
3589
3602
  ac_save_c_werror_flag=$ac_c_werror_flag
3661
3674
fi
3662
3675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3663
3676
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3664
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3677
if ${ac_cv_prog_cc_c89+:} false; then :
3665
3678
  $as_echo_n "(cached) " >&6
3666
3679
else
3667
3680
  ac_cv_prog_cc_c89=no
3759
3772
 
3760
3773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C_WFLAGS for maximum warnings" >&5
3761
3774
$as_echo_n "checking C_WFLAGS for maximum warnings... " >&6; }
3762
 
if test "${ac_cv_cflags_warn_all+set}" = set; then :
 
3775
if ${ac_cv_cflags_warn_all+:} false; then :
3763
3776
  $as_echo_n "(cached) " >&6
3764
3777
else
3765
3778
  ac_cv_cflags_warn_all="no, unknown"
3837
3850
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3838
3851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839
3852
$as_echo_n "checking for $ac_word... " >&6; }
3840
 
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3853
if ${ac_cv_prog_CXX+:} false; then :
3841
3854
  $as_echo_n "(cached) " >&6
3842
3855
else
3843
3856
  if test -n "$CXX"; then
3881
3894
set dummy $ac_prog; ac_word=$2
3882
3895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883
3896
$as_echo_n "checking for $ac_word... " >&6; }
3884
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3897
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3885
3898
  $as_echo_n "(cached) " >&6
3886
3899
else
3887
3900
  if test -n "$ac_ct_CXX"; then
3951
3964
... rest of stderr output deleted ...
3952
3965
         10q' conftest.err >conftest.er1
3953
3966
    cat conftest.er1 >&5
3954
 
    rm -f conftest.er1 conftest.err
3955
3967
  fi
 
3968
  rm -f conftest.er1 conftest.err
3956
3969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957
3970
  test $ac_status = 0; }
3958
3971
done
3959
3972
 
3960
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3961
3974
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3962
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3975
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3963
3976
  $as_echo_n "(cached) " >&6
3964
3977
else
3965
3978
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996
4009
ac_save_CXXFLAGS=$CXXFLAGS
3997
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3998
4011
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3999
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
4012
if ${ac_cv_prog_cxx_g+:} false; then :
4000
4013
  $as_echo_n "(cached) " >&6
4001
4014
else
4002
4015
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4081
4094
 
4082
4095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXX_WFLAGS for maximum warnings" >&5
4083
4096
$as_echo_n "checking CXX_WFLAGS for maximum warnings... " >&6; }
4084
 
if test "${ac_cv_cxxflags_warn_all+set}" = set; then :
 
4097
if ${ac_cv_cxxflags_warn_all+:} false; then :
4085
4098
  $as_echo_n "(cached) " >&6
4086
4099
else
4087
4100
  ac_cv_cxxflags_warn_all="no, unknown"
4158
4171
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4159
4172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160
4173
$as_echo_n "checking for $ac_word... " >&6; }
4161
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4174
if ${ac_cv_prog_CC+:} false; then :
4162
4175
  $as_echo_n "(cached) " >&6
4163
4176
else
4164
4177
  if test -n "$CC"; then
4198
4211
set dummy gcc; ac_word=$2
4199
4212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200
4213
$as_echo_n "checking for $ac_word... " >&6; }
4201
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4214
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4202
4215
  $as_echo_n "(cached) " >&6
4203
4216
else
4204
4217
  if test -n "$ac_ct_CC"; then
4251
4264
set dummy ${ac_tool_prefix}cc; ac_word=$2
4252
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253
4266
$as_echo_n "checking for $ac_word... " >&6; }
4254
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4267
if ${ac_cv_prog_CC+:} false; then :
4255
4268
  $as_echo_n "(cached) " >&6
4256
4269
else
4257
4270
  if test -n "$CC"; then
4291
4304
set dummy cc; ac_word=$2
4292
4305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293
4306
$as_echo_n "checking for $ac_word... " >&6; }
4294
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4307
if ${ac_cv_prog_CC+:} false; then :
4295
4308
  $as_echo_n "(cached) " >&6
4296
4309
else
4297
4310
  if test -n "$CC"; then
4350
4363
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351
4364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352
4365
$as_echo_n "checking for $ac_word... " >&6; }
4353
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4366
if ${ac_cv_prog_CC+:} false; then :
4354
4367
  $as_echo_n "(cached) " >&6
4355
4368
else
4356
4369
  if test -n "$CC"; then
4394
4407
set dummy $ac_prog; ac_word=$2
4395
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396
4409
$as_echo_n "checking for $ac_word... " >&6; }
4397
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4410
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4398
4411
  $as_echo_n "(cached) " >&6
4399
4412
else
4400
4413
  if test -n "$ac_ct_CC"; then
4448
4461
 
4449
4462
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450
4463
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451
 
as_fn_error "no acceptable C compiler found in \$PATH
4452
 
See \`config.log' for more details." "$LINENO" 5; }
 
4464
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4465
See \`config.log' for more details" "$LINENO" 5; }
4453
4466
 
4454
4467
# Provide some information about the compiler.
4455
4468
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4470
4483
... rest of stderr output deleted ...
4471
4484
         10q' conftest.err >conftest.er1
4472
4485
    cat conftest.er1 >&5
4473
 
    rm -f conftest.er1 conftest.err
4474
4486
  fi
 
4487
  rm -f conftest.er1 conftest.err
4475
4488
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476
4489
  test $ac_status = 0; }
4477
4490
done
4478
4491
 
4479
4492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4480
4493
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4481
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4494
if ${ac_cv_c_compiler_gnu+:} false; then :
4482
4495
  $as_echo_n "(cached) " >&6
4483
4496
else
4484
4497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515
4528
ac_save_CFLAGS=$CFLAGS
4516
4529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4517
4530
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4518
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4531
if ${ac_cv_prog_cc_g+:} false; then :
4519
4532
  $as_echo_n "(cached) " >&6
4520
4533
else
4521
4534
  ac_save_c_werror_flag=$ac_c_werror_flag
4593
4606
fi
4594
4607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4595
4608
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4596
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4609
if ${ac_cv_prog_cc_c89+:} false; then :
4597
4610
  $as_echo_n "(cached) " >&6
4598
4611
else
4599
4612
  ac_cv_prog_cc_c89=no
4704
4717
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4705
4718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706
4719
$as_echo_n "checking for $ac_word... " >&6; }
4707
 
if test "${ac_cv_prog_CXX+set}" = set; then :
 
4720
if ${ac_cv_prog_CXX+:} false; then :
4708
4721
  $as_echo_n "(cached) " >&6
4709
4722
else
4710
4723
  if test -n "$CXX"; then
4748
4761
set dummy $ac_prog; ac_word=$2
4749
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750
4763
$as_echo_n "checking for $ac_word... " >&6; }
4751
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
4764
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4752
4765
  $as_echo_n "(cached) " >&6
4753
4766
else
4754
4767
  if test -n "$ac_ct_CXX"; then
4818
4831
... rest of stderr output deleted ...
4819
4832
         10q' conftest.err >conftest.er1
4820
4833
    cat conftest.er1 >&5
4821
 
    rm -f conftest.er1 conftest.err
4822
4834
  fi
 
4835
  rm -f conftest.er1 conftest.err
4823
4836
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824
4837
  test $ac_status = 0; }
4825
4838
done
4826
4839
 
4827
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4828
4841
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4829
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
4842
if ${ac_cv_cxx_compiler_gnu+:} false; then :
4830
4843
  $as_echo_n "(cached) " >&6
4831
4844
else
4832
4845
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863
4876
ac_save_CXXFLAGS=$CXXFLAGS
4864
4877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4865
4878
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4866
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
4879
if ${ac_cv_prog_cxx_g+:} false; then :
4867
4880
  $as_echo_n "(cached) " >&6
4868
4881
else
4869
4882
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4948
4961
enable_win32_dll=yes
4949
4962
 
4950
4963
case $host in
4951
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
4964
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4952
4965
  if test -n "$ac_tool_prefix"; then
4953
4966
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4954
4967
set dummy ${ac_tool_prefix}as; ac_word=$2
4955
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956
4969
$as_echo_n "checking for $ac_word... " >&6; }
4957
 
if test "${ac_cv_prog_AS+set}" = set; then :
 
4970
if ${ac_cv_prog_AS+:} false; then :
4958
4971
  $as_echo_n "(cached) " >&6
4959
4972
else
4960
4973
  if test -n "$AS"; then
4994
5007
set dummy as; ac_word=$2
4995
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996
5009
$as_echo_n "checking for $ac_word... " >&6; }
4997
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
 
5010
if ${ac_cv_prog_ac_ct_AS+:} false; then :
4998
5011
  $as_echo_n "(cached) " >&6
4999
5012
else
5000
5013
  if test -n "$ac_ct_AS"; then
5046
5059
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5047
5060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048
5061
$as_echo_n "checking for $ac_word... " >&6; }
5049
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
5062
if ${ac_cv_prog_DLLTOOL+:} false; then :
5050
5063
  $as_echo_n "(cached) " >&6
5051
5064
else
5052
5065
  if test -n "$DLLTOOL"; then
5086
5099
set dummy dlltool; ac_word=$2
5087
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088
5101
$as_echo_n "checking for $ac_word... " >&6; }
5089
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
5102
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5090
5103
  $as_echo_n "(cached) " >&6
5091
5104
else
5092
5105
  if test -n "$ac_ct_DLLTOOL"; then
5138
5151
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5139
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140
5153
$as_echo_n "checking for $ac_word... " >&6; }
5141
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5154
if ${ac_cv_prog_OBJDUMP+:} false; then :
5142
5155
  $as_echo_n "(cached) " >&6
5143
5156
else
5144
5157
  if test -n "$OBJDUMP"; then
5178
5191
set dummy objdump; ac_word=$2
5179
5192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180
5193
$as_echo_n "checking for $ac_word... " >&6; }
5181
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5194
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5182
5195
  $as_echo_n "(cached) " >&6
5183
5196
else
5184
5197
  if test -n "$ac_ct_OBJDUMP"; then
5256
5269
 
5257
5270
 
5258
5271
 
5259
 
macro_version='2.2.6'
5260
 
macro_revision='1.3012'
 
5272
macro_version='2.4'
 
5273
macro_revision='1.3293'
5261
5274
 
5262
5275
 
5263
5276
 
5273
5286
 
5274
5287
ltmain="$ac_aux_dir/ltmain.sh"
5275
5288
 
 
5289
# Backslashify metacharacters that are still active within
 
5290
# double-quoted strings.
 
5291
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
5292
 
 
5293
# Same as above, but do not quote variable references.
 
5294
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
5295
 
 
5296
# Sed substitution to delay expansion of an escaped shell variable in a
 
5297
# double_quote_subst'ed string.
 
5298
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5299
 
 
5300
# Sed substitution to delay expansion of an escaped single quote.
 
5301
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5302
 
 
5303
# Sed substitution to avoid accidental globbing in evaled expressions
 
5304
no_glob_subst='s/\*/\\\*/g'
 
5305
 
 
5306
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5307
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
5308
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
5309
 
 
5310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
5311
$as_echo_n "checking how to print strings... " >&6; }
 
5312
# Test print first, because it will be a builtin if present.
 
5313
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
5314
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5315
  ECHO='print -r --'
 
5316
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
5317
  ECHO='printf %s\n'
 
5318
else
 
5319
  # Use this function as a fallback that always works.
 
5320
  func_fallback_echo ()
 
5321
  {
 
5322
    eval 'cat <<_LTECHO_EOF
 
5323
$1
 
5324
_LTECHO_EOF'
 
5325
  }
 
5326
  ECHO='func_fallback_echo'
 
5327
fi
 
5328
 
 
5329
# func_echo_all arg...
 
5330
# Invoke $ECHO with all args, space-separated.
 
5331
func_echo_all ()
 
5332
{
 
5333
    $ECHO ""
 
5334
}
 
5335
 
 
5336
case "$ECHO" in
 
5337
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
5338
$as_echo "printf" >&6; } ;;
 
5339
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5340
$as_echo "print -r" >&6; } ;;
 
5341
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5342
$as_echo "cat" >&6; } ;;
 
5343
esac
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
5276
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277
5359
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278
 
if test "${ac_cv_path_SED+set}" = set; then :
 
5360
if ${ac_cv_path_SED+:} false; then :
5279
5361
  $as_echo_n "(cached) " >&6
5280
5362
else
5281
5363
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5330
5412
  done
5331
5413
IFS=$as_save_IFS
5332
5414
  if test -z "$ac_cv_path_SED"; then
5333
 
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5415
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5334
5416
  fi
5335
5417
else
5336
5418
  ac_cv_path_SED=$SED
5357
5439
 
5358
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5359
5441
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5360
 
if test "${ac_cv_path_GREP+set}" = set; then :
 
5442
if ${ac_cv_path_GREP+:} false; then :
5361
5443
  $as_echo_n "(cached) " >&6
5362
5444
else
5363
5445
  if test -z "$GREP"; then
5406
5488
  done
5407
5489
IFS=$as_save_IFS
5408
5490
  if test -z "$ac_cv_path_GREP"; then
5409
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5491
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5410
5492
  fi
5411
5493
else
5412
5494
  ac_cv_path_GREP=$GREP
5420
5502
 
5421
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5422
5504
$as_echo_n "checking for egrep... " >&6; }
5423
 
if test "${ac_cv_path_EGREP+set}" = set; then :
 
5505
if ${ac_cv_path_EGREP+:} false; then :
5424
5506
  $as_echo_n "(cached) " >&6
5425
5507
else
5426
5508
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5472
5554
  done
5473
5555
IFS=$as_save_IFS
5474
5556
  if test -z "$ac_cv_path_EGREP"; then
5475
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5557
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5476
5558
  fi
5477
5559
else
5478
5560
  ac_cv_path_EGREP=$EGREP
5487
5569
 
5488
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5489
5571
$as_echo_n "checking for fgrep... " >&6; }
5490
 
if test "${ac_cv_path_FGREP+set}" = set; then :
 
5572
if ${ac_cv_path_FGREP+:} false; then :
5491
5573
  $as_echo_n "(cached) " >&6
5492
5574
else
5493
5575
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5539
5621
  done
5540
5622
IFS=$as_save_IFS
5541
5623
  if test -z "$ac_cv_path_FGREP"; then
5542
 
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5624
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5543
5625
  fi
5544
5626
else
5545
5627
  ac_cv_path_FGREP=$FGREP
5618
5700
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5619
5701
$as_echo_n "checking for non-GNU ld... " >&6; }
5620
5702
fi
5621
 
if test "${lt_cv_path_LD+set}" = set; then :
 
5703
if ${lt_cv_path_LD+:} false; then :
5622
5704
  $as_echo_n "(cached) " >&6
5623
5705
else
5624
5706
  if test -z "$LD"; then
5655
5737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656
5738
$as_echo "no" >&6; }
5657
5739
fi
5658
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
5740
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5659
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5660
5742
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5661
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
5743
if ${lt_cv_prog_gnu_ld+:} false; then :
5662
5744
  $as_echo_n "(cached) " >&6
5663
5745
else
5664
5746
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5685
5767
 
5686
5768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5687
5769
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5688
 
if test "${lt_cv_path_NM+set}" = set; then :
 
5770
if ${lt_cv_path_NM+:} false; then :
5689
5771
  $as_echo_n "(cached) " >&6
5690
5772
else
5691
5773
  if test -n "$NM"; then
5738
5820
  NM="$lt_cv_path_NM"
5739
5821
else
5740
5822
  # Didn't find any BSD compatible name lister, look for dumpbin.
5741
 
  if test -n "$ac_tool_prefix"; then
5742
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5823
  if test -n "$DUMPBIN"; then :
 
5824
    # Let the user override the test.
 
5825
  else
 
5826
    if test -n "$ac_tool_prefix"; then
 
5827
  for ac_prog in dumpbin "link -dump"
5743
5828
  do
5744
5829
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745
5830
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746
5831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747
5832
$as_echo_n "checking for $ac_word... " >&6; }
5748
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5833
if ${ac_cv_prog_DUMPBIN+:} false; then :
5749
5834
  $as_echo_n "(cached) " >&6
5750
5835
else
5751
5836
  if test -n "$DUMPBIN"; then
5783
5868
fi
5784
5869
if test -z "$DUMPBIN"; then
5785
5870
  ac_ct_DUMPBIN=$DUMPBIN
5786
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5871
  for ac_prog in dumpbin "link -dump"
5787
5872
do
5788
5873
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5789
5874
set dummy $ac_prog; ac_word=$2
5790
5875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791
5876
$as_echo_n "checking for $ac_word... " >&6; }
5792
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5877
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5793
5878
  $as_echo_n "(cached) " >&6
5794
5879
else
5795
5880
  if test -n "$ac_ct_DUMPBIN"; then
5838
5923
  fi
5839
5924
fi
5840
5925
 
 
5926
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5927
    *COFF*)
 
5928
      DUMPBIN="$DUMPBIN -symbols"
 
5929
      ;;
 
5930
    *)
 
5931
      DUMPBIN=:
 
5932
      ;;
 
5933
    esac
 
5934
  fi
5841
5935
 
5842
5936
  if test "$DUMPBIN" != ":"; then
5843
5937
    NM="$DUMPBIN"
5852
5946
 
5853
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5854
5948
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5855
 
if test "${lt_cv_nm_interface+set}" = set; then :
 
5949
if ${lt_cv_nm_interface+:} false; then :
5856
5950
  $as_echo_n "(cached) " >&6
5857
5951
else
5858
5952
  lt_cv_nm_interface="BSD nm"
5859
5953
  echo "int some_variable = 0;" > conftest.$ac_ext
5860
 
  (eval echo "\"\$as_me:5860: $ac_compile\"" >&5)
 
5954
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5861
5955
  (eval "$ac_compile" 2>conftest.err)
5862
5956
  cat conftest.err >&5
5863
 
  (eval echo "\"\$as_me:5863: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5957
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5864
5958
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5865
5959
  cat conftest.err >&5
5866
 
  (eval echo "\"\$as_me:5866: output\"" >&5)
 
5960
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5867
5961
  cat conftest.out >&5
5868
5962
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5869
5963
    lt_cv_nm_interface="MS dumpbin"
5887
5981
# find the maximum length of command line arguments
5888
5982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5889
5983
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5890
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5984
if ${lt_cv_sys_max_cmd_len+:} false; then :
5891
5985
  $as_echo_n "(cached) " >&6
5892
5986
else
5893
5987
    i=0
5920
6014
    lt_cv_sys_max_cmd_len=8192;
5921
6015
    ;;
5922
6016
 
 
6017
  mint*)
 
6018
    # On MiNT this can take a long time and run out of memory.
 
6019
    lt_cv_sys_max_cmd_len=8192;
 
6020
    ;;
 
6021
 
5923
6022
  amigaos*)
5924
6023
    # On AmigaOS with pdksh, this test takes hours, literally.
5925
6024
    # So we just punt and use a minimum line length of 8192.
5984
6083
      # If test is not a shell built-in, we'll probably end up computing a
5985
6084
      # maximum length that is only half of the actual maximum length, but
5986
6085
      # we can't tell.
5987
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5988
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
6086
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
6087
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5989
6088
              test $i != 17 # 1/2 MB should be enough
5990
6089
      do
5991
6090
        i=`expr $i + 1`
6027
6126
# Try some XSI features
6028
6127
xsi_shell=no
6029
6128
( _lt_dummy="a/b/c"
6030
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6031
 
      = c,a/b,, \
 
6129
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
6130
      = c,a/b,b/c, \
6032
6131
    && eval 'test $(( 1 + 1 )) -eq 2 \
6033
6132
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6034
6133
  && xsi_shell=yes
6077
6176
 
6078
6177
 
6079
6178
 
 
6179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
6180
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
6181
if ${lt_cv_to_host_file_cmd+:} false; then :
 
6182
  $as_echo_n "(cached) " >&6
 
6183
else
 
6184
  case $host in
 
6185
  *-*-mingw* )
 
6186
    case $build in
 
6187
      *-*-mingw* ) # actually msys
 
6188
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
6189
        ;;
 
6190
      *-*-cygwin* )
 
6191
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
6192
        ;;
 
6193
      * ) # otherwise, assume *nix
 
6194
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
6195
        ;;
 
6196
    esac
 
6197
    ;;
 
6198
  *-*-cygwin* )
 
6199
    case $build in
 
6200
      *-*-mingw* ) # actually msys
 
6201
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
6202
        ;;
 
6203
      *-*-cygwin* )
 
6204
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
6205
        ;;
 
6206
      * ) # otherwise, assume *nix
 
6207
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
6208
        ;;
 
6209
    esac
 
6210
    ;;
 
6211
  * ) # unhandled hosts (and "normal" native builds)
 
6212
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
6213
    ;;
 
6214
esac
 
6215
 
 
6216
fi
 
6217
 
 
6218
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
6219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
6220
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
6221
 
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
6227
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
6228
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
6229
  $as_echo_n "(cached) " >&6
 
6230
else
 
6231
  #assume ordinary cross tools, or native build.
 
6232
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
6233
case $host in
 
6234
  *-*-mingw* )
 
6235
    case $build in
 
6236
      *-*-mingw* ) # actually msys
 
6237
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
6238
        ;;
 
6239
    esac
 
6240
    ;;
 
6241
esac
 
6242
 
 
6243
fi
 
6244
 
 
6245
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
6247
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
6080
6253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6081
6254
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6082
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
6255
if ${lt_cv_ld_reload_flag+:} false; then :
6083
6256
  $as_echo_n "(cached) " >&6
6084
6257
else
6085
6258
  lt_cv_ld_reload_flag='-r'
6093
6266
esac
6094
6267
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6095
6268
case $host_os in
 
6269
  cygwin* | mingw* | pw32* | cegcc*)
 
6270
    if test "$GCC" != yes; then
 
6271
      reload_cmds=false
 
6272
    fi
 
6273
    ;;
6096
6274
  darwin*)
6097
6275
    if test "$GCC" = yes; then
6098
6276
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115
6293
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6116
6294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117
6295
$as_echo_n "checking for $ac_word... " >&6; }
6118
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
6296
if ${ac_cv_prog_OBJDUMP+:} false; then :
6119
6297
  $as_echo_n "(cached) " >&6
6120
6298
else
6121
6299
  if test -n "$OBJDUMP"; then
6155
6333
set dummy objdump; ac_word=$2
6156
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157
6335
$as_echo_n "checking for $ac_word... " >&6; }
6158
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6336
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6159
6337
  $as_echo_n "(cached) " >&6
6160
6338
else
6161
6339
  if test -n "$ac_ct_OBJDUMP"; then
6211
6389
 
6212
6390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6213
6391
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6214
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
6392
if ${lt_cv_deplibs_check_method+:} false; then :
6215
6393
  $as_echo_n "(cached) " >&6
6216
6394
else
6217
6395
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6253
6431
  # Base MSYS/MinGW do not provide the 'file' command needed by
6254
6432
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6255
6433
  # unless we find 'file', for example because we are cross-compiling.
6256
 
  if ( file / ) >/dev/null 2>&1; then
 
6434
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
6435
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6257
6436
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6258
6437
    lt_cv_file_magic_cmd='func_win32_libid'
6259
6438
  else
6260
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6439
    # Keep this pattern in sync with the one in func_win32_libid.
 
6440
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6261
6441
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6262
6442
  fi
6263
6443
  ;;
6264
6444
 
6265
 
cegcc)
 
6445
cegcc*)
6266
6446
  # use the weaker test based on 'objdump'. See mingw*.
6267
6447
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6268
6448
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6292
6472
  lt_cv_deplibs_check_method=pass_all
6293
6473
  ;;
6294
6474
 
 
6475
haiku*)
 
6476
  lt_cv_deplibs_check_method=pass_all
 
6477
  ;;
 
6478
 
6295
6479
hpux10.20* | hpux11*)
6296
6480
  lt_cv_file_magic_cmd=/usr/bin/file
6297
6481
  case $host_cpu in
6300
6484
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6301
6485
    ;;
6302
6486
  hppa*64*)
6303
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
6487
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6304
6488
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6305
6489
    ;;
6306
6490
  *)
6307
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6491
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6308
6492
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6309
6493
    ;;
6310
6494
  esac
6326
6510
  ;;
6327
6511
 
6328
6512
# This must be Linux ELF.
6329
 
linux* | k*bsd*-gnu)
 
6513
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6330
6514
  lt_cv_deplibs_check_method=pass_all
6331
6515
  ;;
6332
6516
 
6333
 
netbsd* | netbsdelf*-gnu)
 
6517
netbsd*)
6334
6518
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6335
6519
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336
6520
  else
6407
6591
fi
6408
6592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6409
6593
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6594
 
 
6595
file_magic_glob=
 
6596
want_nocaseglob=no
 
6597
if test "$build" = "$host"; then
 
6598
  case $host_os in
 
6599
  mingw* | pw32*)
 
6600
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
6601
      want_nocaseglob=yes
 
6602
    else
 
6603
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
6604
    fi
 
6605
    ;;
 
6606
  esac
 
6607
fi
 
6608
 
6410
6609
file_magic_cmd=$lt_cv_file_magic_cmd
6411
6610
deplibs_check_method=$lt_cv_deplibs_check_method
6412
6611
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6422
6621
 
6423
6622
 
6424
6623
 
6425
 
if test -n "$ac_tool_prefix"; then
6426
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6427
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429
 
$as_echo_n "checking for $ac_word... " >&6; }
6430
 
if test "${ac_cv_prog_AR+set}" = set; then :
 
6624
 
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
 
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
if test -n "$ac_tool_prefix"; then
 
6635
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6636
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6638
$as_echo_n "checking for $ac_word... " >&6; }
 
6639
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6640
  $as_echo_n "(cached) " >&6
 
6641
else
 
6642
  if test -n "$DLLTOOL"; then
 
6643
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6644
else
 
6645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6646
for as_dir in $PATH
 
6647
do
 
6648
  IFS=$as_save_IFS
 
6649
  test -z "$as_dir" && as_dir=.
 
6650
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6652
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6653
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6654
    break 2
 
6655
  fi
 
6656
done
 
6657
  done
 
6658
IFS=$as_save_IFS
 
6659
 
 
6660
fi
 
6661
fi
 
6662
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6663
if test -n "$DLLTOOL"; then
 
6664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6665
$as_echo "$DLLTOOL" >&6; }
 
6666
else
 
6667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6668
$as_echo "no" >&6; }
 
6669
fi
 
6670
 
 
6671
 
 
6672
fi
 
6673
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6674
  ac_ct_DLLTOOL=$DLLTOOL
 
6675
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6676
set dummy dlltool; ac_word=$2
 
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6678
$as_echo_n "checking for $ac_word... " >&6; }
 
6679
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6680
  $as_echo_n "(cached) " >&6
 
6681
else
 
6682
  if test -n "$ac_ct_DLLTOOL"; then
 
6683
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6684
else
 
6685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6686
for as_dir in $PATH
 
6687
do
 
6688
  IFS=$as_save_IFS
 
6689
  test -z "$as_dir" && as_dir=.
 
6690
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6691
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6692
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6693
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6694
    break 2
 
6695
  fi
 
6696
done
 
6697
  done
 
6698
IFS=$as_save_IFS
 
6699
 
 
6700
fi
 
6701
fi
 
6702
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6703
if test -n "$ac_ct_DLLTOOL"; then
 
6704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6705
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6706
else
 
6707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6708
$as_echo "no" >&6; }
 
6709
fi
 
6710
 
 
6711
  if test "x$ac_ct_DLLTOOL" = x; then
 
6712
    DLLTOOL="false"
 
6713
  else
 
6714
    case $cross_compiling:$ac_tool_warned in
 
6715
yes:)
 
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6717
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6718
ac_tool_warned=yes ;;
 
6719
esac
 
6720
    DLLTOOL=$ac_ct_DLLTOOL
 
6721
  fi
 
6722
else
 
6723
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6724
fi
 
6725
 
 
6726
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6727
 
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
 
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6735
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6736
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6737
  $as_echo_n "(cached) " >&6
 
6738
else
 
6739
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6740
 
 
6741
case $host_os in
 
6742
cygwin* | mingw* | pw32* | cegcc*)
 
6743
  # two different shell functions defined in ltmain.sh
 
6744
  # decide which to use based on capabilities of $DLLTOOL
 
6745
  case `$DLLTOOL --help 2>&1` in
 
6746
  *--identify-strict*)
 
6747
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6748
    ;;
 
6749
  *)
 
6750
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6751
    ;;
 
6752
  esac
 
6753
  ;;
 
6754
*)
 
6755
  # fallback: assume linklib IS sharedlib
 
6756
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6757
  ;;
 
6758
esac
 
6759
 
 
6760
fi
 
6761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6762
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6763
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6764
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6765
 
 
6766
 
 
6767
 
 
6768
 
 
6769
 
 
6770
 
 
6771
 
 
6772
if test -n "$ac_tool_prefix"; then
 
6773
  for ac_prog in ar
 
6774
  do
 
6775
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6776
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6778
$as_echo_n "checking for $ac_word... " >&6; }
 
6779
if ${ac_cv_prog_AR+:} false; then :
6431
6780
  $as_echo_n "(cached) " >&6
6432
6781
else
6433
6782
  if test -n "$AR"; then
6440
6789
  test -z "$as_dir" && as_dir=.
6441
6790
    for ac_exec_ext in '' $ac_executable_extensions; do
6442
6791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6792
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6444
6793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445
6794
    break 2
6446
6795
  fi
6460
6809
fi
6461
6810
 
6462
6811
 
 
6812
    test -n "$AR" && break
 
6813
  done
6463
6814
fi
6464
 
if test -z "$ac_cv_prog_AR"; then
 
6815
if test -z "$AR"; then
6465
6816
  ac_ct_AR=$AR
6466
 
  # Extract the first word of "ar", so it can be a program name with args.
6467
 
set dummy ar; ac_word=$2
 
6817
  for ac_prog in ar
 
6818
do
 
6819
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6820
set dummy $ac_prog; ac_word=$2
6468
6821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469
6822
$as_echo_n "checking for $ac_word... " >&6; }
6470
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
6823
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6471
6824
  $as_echo_n "(cached) " >&6
6472
6825
else
6473
6826
  if test -n "$ac_ct_AR"; then
6480
6833
  test -z "$as_dir" && as_dir=.
6481
6834
    for ac_exec_ext in '' $ac_executable_extensions; do
6482
6835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483
 
    ac_cv_prog_ac_ct_AR="ar"
 
6836
    ac_cv_prog_ac_ct_AR="$ac_prog"
6484
6837
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485
6838
    break 2
6486
6839
  fi
6499
6852
$as_echo "no" >&6; }
6500
6853
fi
6501
6854
 
 
6855
 
 
6856
  test -n "$ac_ct_AR" && break
 
6857
done
 
6858
 
6502
6859
  if test "x$ac_ct_AR" = x; then
6503
6860
    AR="false"
6504
6861
  else
6510
6867
esac
6511
6868
    AR=$ac_ct_AR
6512
6869
  fi
6513
 
else
6514
 
  AR="$ac_cv_prog_AR"
6515
 
fi
6516
 
 
6517
 
test -z "$AR" && AR=ar
6518
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6519
 
 
6520
 
 
6521
 
 
6522
 
 
 
6870
fi
 
6871
 
 
6872
: ${AR=ar}
 
6873
: ${AR_FLAGS=cru}
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6886
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6887
if ${lt_cv_ar_at_file+:} false; then :
 
6888
  $as_echo_n "(cached) " >&6
 
6889
else
 
6890
  lt_cv_ar_at_file=no
 
6891
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6892
/* end confdefs.h.  */
 
6893
 
 
6894
int
 
6895
main ()
 
6896
{
 
6897
 
 
6898
  ;
 
6899
  return 0;
 
6900
}
 
6901
_ACEOF
 
6902
if ac_fn_c_try_compile "$LINENO"; then :
 
6903
  echo conftest.$ac_objext > conftest.lst
 
6904
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6905
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6906
  (eval $lt_ar_try) 2>&5
 
6907
  ac_status=$?
 
6908
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6909
  test $ac_status = 0; }
 
6910
      if test "$ac_status" -eq 0; then
 
6911
        # Ensure the archiver fails upon bogus file names.
 
6912
        rm -f conftest.$ac_objext libconftest.a
 
6913
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6914
  (eval $lt_ar_try) 2>&5
 
6915
  ac_status=$?
 
6916
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6917
  test $ac_status = 0; }
 
6918
        if test "$ac_status" -ne 0; then
 
6919
          lt_cv_ar_at_file=@
 
6920
        fi
 
6921
      fi
 
6922
      rm -f conftest.* libconftest.a
 
6923
 
 
6924
fi
 
6925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6926
 
 
6927
fi
 
6928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6929
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6930
 
 
6931
if test "x$lt_cv_ar_at_file" = xno; then
 
6932
  archiver_list_spec=
 
6933
else
 
6934
  archiver_list_spec=$lt_cv_ar_at_file
 
6935
fi
6523
6936
 
6524
6937
 
6525
6938
 
6532
6945
set dummy ${ac_tool_prefix}strip; ac_word=$2
6533
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534
6947
$as_echo_n "checking for $ac_word... " >&6; }
6535
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
6948
if ${ac_cv_prog_STRIP+:} false; then :
6536
6949
  $as_echo_n "(cached) " >&6
6537
6950
else
6538
6951
  if test -n "$STRIP"; then
6572
6985
set dummy strip; ac_word=$2
6573
6986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574
6987
$as_echo_n "checking for $ac_word... " >&6; }
6575
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
6988
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6576
6989
  $as_echo_n "(cached) " >&6
6577
6990
else
6578
6991
  if test -n "$ac_ct_STRIP"; then
6631
7044
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6632
7045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633
7046
$as_echo_n "checking for $ac_word... " >&6; }
6634
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
7047
if ${ac_cv_prog_RANLIB+:} false; then :
6635
7048
  $as_echo_n "(cached) " >&6
6636
7049
else
6637
7050
  if test -n "$RANLIB"; then
6671
7084
set dummy ranlib; ac_word=$2
6672
7085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673
7086
$as_echo_n "checking for $ac_word... " >&6; }
6674
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
7087
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6675
7088
  $as_echo_n "(cached) " >&6
6676
7089
else
6677
7090
  if test -n "$ac_ct_RANLIB"; then
6742
7155
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6743
7156
fi
6744
7157
 
6745
 
 
6746
 
 
6747
 
 
6748
 
 
6749
 
 
6750
 
 
6751
 
 
6752
 
 
6753
 
 
6754
 
 
6755
 
 
6756
 
 
6757
 
 
6758
 
 
 
7158
case $host_os in
 
7159
  darwin*)
 
7160
    lock_old_archive_extraction=yes ;;
 
7161
  *)
 
7162
    lock_old_archive_extraction=no ;;
 
7163
esac
 
7164
 
 
7165
 
 
7166
 
 
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
 
7185
for ac_prog in gawk mawk nawk awk
 
7186
do
 
7187
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7188
set dummy $ac_prog; ac_word=$2
 
7189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7190
$as_echo_n "checking for $ac_word... " >&6; }
 
7191
if ${ac_cv_prog_AWK+:} false; then :
 
7192
  $as_echo_n "(cached) " >&6
 
7193
else
 
7194
  if test -n "$AWK"; then
 
7195
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
7196
else
 
7197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7198
for as_dir in $PATH
 
7199
do
 
7200
  IFS=$as_save_IFS
 
7201
  test -z "$as_dir" && as_dir=.
 
7202
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7203
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7204
    ac_cv_prog_AWK="$ac_prog"
 
7205
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7206
    break 2
 
7207
  fi
 
7208
done
 
7209
  done
 
7210
IFS=$as_save_IFS
 
7211
 
 
7212
fi
 
7213
fi
 
7214
AWK=$ac_cv_prog_AWK
 
7215
if test -n "$AWK"; then
 
7216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
7217
$as_echo "$AWK" >&6; }
 
7218
else
 
7219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7220
$as_echo "no" >&6; }
 
7221
fi
 
7222
 
 
7223
 
 
7224
  test -n "$AWK" && break
 
7225
done
6759
7226
 
6760
7227
 
6761
7228
 
6788
7255
# Check for command to grab the raw symbol name followed by C symbol from nm.
6789
7256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6790
7257
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6791
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
7258
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6792
7259
  $as_echo_n "(cached) " >&6
6793
7260
else
6794
7261
 
6849
7316
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6850
7317
 
6851
7318
# Transform an extracted symbol line into symbol name and symbol address
6852
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6853
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
7319
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7320
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6854
7321
 
6855
7322
# Handle CRLF in mingw tool chain
6856
7323
opt_cr=
6886
7353
  else
6887
7354
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6888
7355
  fi
 
7356
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6889
7357
 
6890
7358
  # Check to see that the pipe works correctly.
6891
7359
  pipe_works=no
6911
7379
  test $ac_status = 0; }; then
6912
7380
    # Now try to grab the symbols.
6913
7381
    nlist=conftest.nm
6914
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6915
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7382
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
7383
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6916
7384
  ac_status=$?
6917
7385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918
7386
  test $ac_status = 0; } && test -s "$nlist"; then
6927
7395
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6928
7396
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6929
7397
          cat <<_LT_EOF > conftest.$ac_ext
 
7398
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
7399
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
7400
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7401
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
7402
# define LT_DLSYM_CONST
 
7403
#elif defined(__osf__)
 
7404
/* This system does not cope well with relocations in const data.  */
 
7405
# define LT_DLSYM_CONST
 
7406
#else
 
7407
# define LT_DLSYM_CONST const
 
7408
#endif
 
7409
 
6930
7410
#ifdef __cplusplus
6931
7411
extern "C" {
6932
7412
#endif
6938
7418
          cat <<_LT_EOF >> conftest.$ac_ext
6939
7419
 
6940
7420
/* The mapping between symbol names and symbols.  */
6941
 
const struct {
 
7421
LT_DLSYM_CONST struct {
6942
7422
  const char *name;
6943
7423
  void       *address;
6944
7424
}
6964
7444
_LT_EOF
6965
7445
          # Now try linking the two files.
6966
7446
          mv conftest.$ac_objext conftstm.$ac_objext
6967
 
          lt_save_LIBS="$LIBS"
6968
 
          lt_save_CFLAGS="$CFLAGS"
 
7447
          lt_globsym_save_LIBS=$LIBS
 
7448
          lt_globsym_save_CFLAGS=$CFLAGS
6969
7449
          LIBS="conftstm.$ac_objext"
6970
7450
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6971
7451
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6975
7455
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6976
7456
            pipe_works=yes
6977
7457
          fi
6978
 
          LIBS="$lt_save_LIBS"
6979
 
          CFLAGS="$lt_save_CFLAGS"
 
7458
          LIBS=$lt_globsym_save_LIBS
 
7459
          CFLAGS=$lt_globsym_save_CFLAGS
6980
7460
        else
6981
7461
          echo "cannot find nm_test_func in $nlist" >&5
6982
7462
        fi
7013
7493
$as_echo "ok" >&6; }
7014
7494
fi
7015
7495
 
7016
 
 
7017
 
 
7018
 
 
7019
 
 
7020
 
 
7021
 
 
7022
 
 
7023
 
 
7024
 
 
7025
 
 
7026
 
 
7027
 
 
7028
 
 
7029
 
 
7030
 
 
7031
 
 
 
7496
# Response file support.
 
7497
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7498
  nm_file_list_spec='@'
 
7499
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
7500
  nm_file_list_spec='@'
 
7501
fi
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
 
7508
 
 
7509
 
 
7510
 
 
7511
 
 
7512
 
 
7513
 
 
7514
 
 
7515
 
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
7530
$as_echo_n "checking for sysroot... " >&6; }
 
7531
 
 
7532
# Check whether --with-sysroot was given.
 
7533
if test "${with_sysroot+set}" = set; then :
 
7534
  withval=$with_sysroot;
 
7535
else
 
7536
  with_sysroot=no
 
7537
fi
 
7538
 
 
7539
 
 
7540
lt_sysroot=
 
7541
case ${with_sysroot} in #(
 
7542
 yes)
 
7543
   if test "$GCC" = yes; then
 
7544
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
7545
   fi
 
7546
   ;; #(
 
7547
 /*)
 
7548
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
7549
   ;; #(
 
7550
 no|'')
 
7551
   ;; #(
 
7552
 *)
 
7553
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
7554
$as_echo "${with_sysroot}" >&6; }
 
7555
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
7556
   ;;
 
7557
esac
 
7558
 
 
7559
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
7560
$as_echo "${lt_sysroot:-no}" >&6; }
7032
7561
 
7033
7562
 
7034
7563
 
7065
7594
  ;;
7066
7595
*-*-irix6*)
7067
7596
  # Find out which ABI we are using.
7068
 
  echo '#line 7068 "configure"' > conftest.$ac_ext
 
7597
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7069
7598
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7070
7599
  (eval $ac_compile) 2>&5
7071
7600
  ac_status=$?
7159
7688
  CFLAGS="$CFLAGS -belf"
7160
7689
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7161
7690
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7162
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
7691
if ${lt_cv_cc_needs_belf+:} false; then :
7163
7692
  $as_echo_n "(cached) " >&6
7164
7693
else
7165
7694
  ac_ext=c
7227
7756
 
7228
7757
need_locks="$enable_libtool_lock"
7229
7758
 
 
7759
if test -n "$ac_tool_prefix"; then
 
7760
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7761
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7763
$as_echo_n "checking for $ac_word... " >&6; }
 
7764
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7765
  $as_echo_n "(cached) " >&6
 
7766
else
 
7767
  if test -n "$MANIFEST_TOOL"; then
 
7768
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7769
else
 
7770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7771
for as_dir in $PATH
 
7772
do
 
7773
  IFS=$as_save_IFS
 
7774
  test -z "$as_dir" && as_dir=.
 
7775
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7776
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7777
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7778
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7779
    break 2
 
7780
  fi
 
7781
done
 
7782
  done
 
7783
IFS=$as_save_IFS
 
7784
 
 
7785
fi
 
7786
fi
 
7787
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7788
if test -n "$MANIFEST_TOOL"; then
 
7789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7790
$as_echo "$MANIFEST_TOOL" >&6; }
 
7791
else
 
7792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7793
$as_echo "no" >&6; }
 
7794
fi
 
7795
 
 
7796
 
 
7797
fi
 
7798
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7799
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7800
  # Extract the first word of "mt", so it can be a program name with args.
 
7801
set dummy mt; ac_word=$2
 
7802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7803
$as_echo_n "checking for $ac_word... " >&6; }
 
7804
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7805
  $as_echo_n "(cached) " >&6
 
7806
else
 
7807
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7808
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7809
else
 
7810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7811
for as_dir in $PATH
 
7812
do
 
7813
  IFS=$as_save_IFS
 
7814
  test -z "$as_dir" && as_dir=.
 
7815
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7817
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7818
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7819
    break 2
 
7820
  fi
 
7821
done
 
7822
  done
 
7823
IFS=$as_save_IFS
 
7824
 
 
7825
fi
 
7826
fi
 
7827
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7828
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7830
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7831
else
 
7832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7833
$as_echo "no" >&6; }
 
7834
fi
 
7835
 
 
7836
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7837
    MANIFEST_TOOL=":"
 
7838
  else
 
7839
    case $cross_compiling:$ac_tool_warned in
 
7840
yes:)
 
7841
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7842
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7843
ac_tool_warned=yes ;;
 
7844
esac
 
7845
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7846
  fi
 
7847
else
 
7848
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7849
fi
 
7850
 
 
7851
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7853
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7854
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7855
  $as_echo_n "(cached) " >&6
 
7856
else
 
7857
  lt_cv_path_mainfest_tool=no
 
7858
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7859
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7860
  cat conftest.err >&5
 
7861
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7862
    lt_cv_path_mainfest_tool=yes
 
7863
  fi
 
7864
  rm -f conftest*
 
7865
fi
 
7866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7867
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7868
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7869
  MANIFEST_TOOL=:
 
7870
fi
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
7230
7876
 
7231
7877
  case $host_os in
7232
7878
    rhapsody* | darwin*)
7235
7881
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7236
7882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237
7883
$as_echo_n "checking for $ac_word... " >&6; }
7238
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
7884
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7239
7885
  $as_echo_n "(cached) " >&6
7240
7886
else
7241
7887
  if test -n "$DSYMUTIL"; then
7275
7921
set dummy dsymutil; ac_word=$2
7276
7922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277
7923
$as_echo_n "checking for $ac_word... " >&6; }
7278
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
7924
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7279
7925
  $as_echo_n "(cached) " >&6
7280
7926
else
7281
7927
  if test -n "$ac_ct_DSYMUTIL"; then
7327
7973
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7328
7974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329
7975
$as_echo_n "checking for $ac_word... " >&6; }
7330
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
7976
if ${ac_cv_prog_NMEDIT+:} false; then :
7331
7977
  $as_echo_n "(cached) " >&6
7332
7978
else
7333
7979
  if test -n "$NMEDIT"; then
7367
8013
set dummy nmedit; ac_word=$2
7368
8014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369
8015
$as_echo_n "checking for $ac_word... " >&6; }
7370
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
8016
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7371
8017
  $as_echo_n "(cached) " >&6
7372
8018
else
7373
8019
  if test -n "$ac_ct_NMEDIT"; then
7419
8065
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7420
8066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421
8067
$as_echo_n "checking for $ac_word... " >&6; }
7422
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
8068
if ${ac_cv_prog_LIPO+:} false; then :
7423
8069
  $as_echo_n "(cached) " >&6
7424
8070
else
7425
8071
  if test -n "$LIPO"; then
7459
8105
set dummy lipo; ac_word=$2
7460
8106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461
8107
$as_echo_n "checking for $ac_word... " >&6; }
7462
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
8108
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7463
8109
  $as_echo_n "(cached) " >&6
7464
8110
else
7465
8111
  if test -n "$ac_ct_LIPO"; then
7511
8157
set dummy ${ac_tool_prefix}otool; ac_word=$2
7512
8158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513
8159
$as_echo_n "checking for $ac_word... " >&6; }
7514
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
8160
if ${ac_cv_prog_OTOOL+:} false; then :
7515
8161
  $as_echo_n "(cached) " >&6
7516
8162
else
7517
8163
  if test -n "$OTOOL"; then
7551
8197
set dummy otool; ac_word=$2
7552
8198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553
8199
$as_echo_n "checking for $ac_word... " >&6; }
7554
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
8200
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7555
8201
  $as_echo_n "(cached) " >&6
7556
8202
else
7557
8203
  if test -n "$ac_ct_OTOOL"; then
7603
8249
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7604
8250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605
8251
$as_echo_n "checking for $ac_word... " >&6; }
7606
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
8252
if ${ac_cv_prog_OTOOL64+:} false; then :
7607
8253
  $as_echo_n "(cached) " >&6
7608
8254
else
7609
8255
  if test -n "$OTOOL64"; then
7643
8289
set dummy otool64; ac_word=$2
7644
8290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645
8291
$as_echo_n "checking for $ac_word... " >&6; }
7646
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
8292
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7647
8293
  $as_echo_n "(cached) " >&6
7648
8294
else
7649
8295
  if test -n "$ac_ct_OTOOL64"; then
7718
8364
 
7719
8365
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7720
8366
$as_echo_n "checking for -single_module linker flag... " >&6; }
7721
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
8367
if ${lt_cv_apple_cc_single_mod+:} false; then :
7722
8368
  $as_echo_n "(cached) " >&6
7723
8369
else
7724
8370
  lt_cv_apple_cc_single_mod=no
7747
8393
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7748
8394
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7749
8395
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7750
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
8396
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7751
8397
  $as_echo_n "(cached) " >&6
7752
8398
else
7753
8399
  lt_cv_ld_exported_symbols_list=no
7777
8423
fi
7778
8424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7779
8425
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8426
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
8427
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
8428
if ${lt_cv_ld_force_load+:} false; then :
 
8429
  $as_echo_n "(cached) " >&6
 
8430
else
 
8431
  lt_cv_ld_force_load=no
 
8432
      cat > conftest.c << _LT_EOF
 
8433
int forced_loaded() { return 2;}
 
8434
_LT_EOF
 
8435
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
8436
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
8437
      echo "$AR cru libconftest.a conftest.o" >&5
 
8438
      $AR cru libconftest.a conftest.o 2>&5
 
8439
      echo "$RANLIB libconftest.a" >&5
 
8440
      $RANLIB libconftest.a 2>&5
 
8441
      cat > conftest.c << _LT_EOF
 
8442
int main() { return 0;}
 
8443
_LT_EOF
 
8444
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
8445
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
8446
      _lt_result=$?
 
8447
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
8448
        lt_cv_ld_force_load=yes
 
8449
      else
 
8450
        cat conftest.err >&5
 
8451
      fi
 
8452
        rm -f conftest.err libconftest.a conftest conftest.c
 
8453
        rm -rf conftest.dSYM
 
8454
 
 
8455
fi
 
8456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
8457
$as_echo "$lt_cv_ld_force_load" >&6; }
7780
8458
    case $host_os in
7781
8459
    rhapsody* | darwin1.[012])
7782
8460
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7804
8482
    else
7805
8483
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7806
8484
    fi
7807
 
    if test "$DSYMUTIL" != ":"; then
 
8485
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7808
8486
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7809
8487
    else
7810
8488
      _lt_dsymutil=
7824
8502
  CPP=
7825
8503
fi
7826
8504
if test -z "$CPP"; then
7827
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
8505
  if ${ac_cv_prog_CPP+:} false; then :
7828
8506
  $as_echo_n "(cached) " >&6
7829
8507
else
7830
8508
      # Double quotes because CPP needs to be expanded
7854
8532
  # Broken: fails on valid input.
7855
8533
continue
7856
8534
fi
7857
 
rm -f conftest.err conftest.$ac_ext
 
8535
rm -f conftest.err conftest.i conftest.$ac_ext
7858
8536
 
7859
8537
  # OK, works on sane cases.  Now check whether nonexistent headers
7860
8538
  # can be detected and how.
7870
8548
ac_preproc_ok=:
7871
8549
break
7872
8550
fi
7873
 
rm -f conftest.err conftest.$ac_ext
 
8551
rm -f conftest.err conftest.i conftest.$ac_ext
7874
8552
 
7875
8553
done
7876
8554
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7877
 
rm -f conftest.err conftest.$ac_ext
 
8555
rm -f conftest.i conftest.err conftest.$ac_ext
7878
8556
if $ac_preproc_ok; then :
7879
8557
  break
7880
8558
fi
7913
8591
  # Broken: fails on valid input.
7914
8592
continue
7915
8593
fi
7916
 
rm -f conftest.err conftest.$ac_ext
 
8594
rm -f conftest.err conftest.i conftest.$ac_ext
7917
8595
 
7918
8596
  # OK, works on sane cases.  Now check whether nonexistent headers
7919
8597
  # can be detected and how.
7929
8607
ac_preproc_ok=:
7930
8608
break
7931
8609
fi
7932
 
rm -f conftest.err conftest.$ac_ext
 
8610
rm -f conftest.err conftest.i conftest.$ac_ext
7933
8611
 
7934
8612
done
7935
8613
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936
 
rm -f conftest.err conftest.$ac_ext
 
8614
rm -f conftest.i conftest.err conftest.$ac_ext
7937
8615
if $ac_preproc_ok; then :
7938
8616
 
7939
8617
else
7940
8618
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7941
8619
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7942
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7943
 
See \`config.log' for more details." "$LINENO" 5; }
 
8620
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
8621
See \`config.log' for more details" "$LINENO" 5; }
7944
8622
fi
7945
8623
 
7946
8624
ac_ext=c
7952
8630
 
7953
8631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7954
8632
$as_echo_n "checking for ANSI C header files... " >&6; }
7955
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
8633
if ${ac_cv_header_stdc+:} false; then :
7956
8634
  $as_echo_n "(cached) " >&6
7957
8635
else
7958
8636
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069
8747
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070
8748
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8071
8749
"
8072
 
eval as_val=\$$as_ac_Header
8073
 
   if test "x$as_val" = x""yes; then :
 
8750
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8074
8751
  cat >>confdefs.h <<_ACEOF
8075
8752
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076
8753
_ACEOF
8084
8761
do :
8085
8762
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8086
8763
"
8087
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
8764
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8088
8765
  cat >>confdefs.h <<_ACEOF
8089
8766
#define HAVE_DLFCN_H 1
8090
8767
_ACEOF
8095
8772
 
8096
8773
 
8097
8774
 
8098
 
ac_ext=cpp
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
8105
 
    CXX=$CCC
8106
 
  else
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
8109
 
  do
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
8116
 
else
8117
 
  if test -n "$CXX"; then
8118
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8119
 
else
8120
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121
 
for as_dir in $PATH
8122
 
do
8123
 
  IFS=$as_save_IFS
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
8129
 
    break 2
8130
 
  fi
8131
 
done
8132
 
  done
8133
 
IFS=$as_save_IFS
8134
 
 
8135
 
fi
8136
 
fi
8137
 
CXX=$ac_cv_prog_CXX
8138
 
if test -n "$CXX"; then
8139
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8140
 
$as_echo "$CXX" >&6; }
8141
 
else
8142
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143
 
$as_echo "no" >&6; }
8144
 
fi
8145
 
 
8146
 
 
8147
 
    test -n "$CXX" && break
8148
 
  done
8149
 
fi
8150
 
if test -z "$CXX"; then
8151
 
  ac_ct_CXX=$CXX
8152
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8153
 
do
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
8160
 
else
8161
 
  if test -n "$ac_ct_CXX"; then
8162
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8163
 
else
8164
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165
 
for as_dir in $PATH
8166
 
do
8167
 
  IFS=$as_save_IFS
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
8173
 
    break 2
8174
 
  fi
8175
 
done
8176
 
  done
8177
 
IFS=$as_save_IFS
8178
 
 
8179
 
fi
8180
 
fi
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; }
8185
 
else
8186
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187
 
$as_echo "no" >&6; }
8188
 
fi
8189
 
 
8190
 
 
8191
 
  test -n "$ac_ct_CXX" && break
8192
 
done
8193
 
 
8194
 
  if test "x$ac_ct_CXX" = x; then
8195
 
    CXX="g++"
8196
 
  else
8197
 
    case $cross_compiling:$ac_tool_warned in
8198
 
yes:)
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 ;;
8202
 
esac
8203
 
    CXX=$ac_ct_CXX
8204
 
  fi
8205
 
fi
8206
 
 
8207
 
  fi
8208
 
fi
8209
 
# Provide some information about the compiler.
8210
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8211
 
set X $ac_compile
8212
 
ac_compiler=$2
8213
 
for ac_option in --version -v -V -qversion; do
8214
 
  { { ac_try="$ac_compiler $ac_option >&5"
8215
 
case "(($ac_try" in
8216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217
 
  *) ac_try_echo=$ac_try;;
8218
 
esac
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
8222
 
  ac_status=$?
8223
 
  if test -s conftest.err; then
8224
 
    sed '10a\
8225
 
... rest of stderr output deleted ...
8226
 
         10q' conftest.err >conftest.er1
8227
 
    cat conftest.er1 >&5
8228
 
    rm -f conftest.er1 conftest.err
8229
 
  fi
8230
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8231
 
  test $ac_status = 0; }
8232
 
done
8233
 
 
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
8238
 
else
8239
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240
 
/* end confdefs.h.  */
8241
 
 
8242
 
int
8243
 
main ()
8244
 
{
8245
 
#ifndef __GNUC__
8246
 
       choke me
8247
 
#endif
8248
 
 
8249
 
  ;
8250
 
  return 0;
8251
 
}
8252
 
_ACEOF
8253
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8254
 
  ac_compiler_gnu=yes
8255
 
else
8256
 
  ac_compiler_gnu=no
8257
 
fi
8258
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8260
 
 
8261
 
fi
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
8265
 
  GXX=yes
8266
 
else
8267
 
  GXX=
8268
 
fi
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
8275
 
else
8276
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8277
 
   ac_cxx_werror_flag=yes
8278
 
   ac_cv_prog_cxx_g=no
8279
 
   CXXFLAGS="-g"
8280
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281
 
/* end confdefs.h.  */
8282
 
 
8283
 
int
8284
 
main ()
8285
 
{
8286
 
 
8287
 
  ;
8288
 
  return 0;
8289
 
}
8290
 
_ACEOF
8291
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8292
 
  ac_cv_prog_cxx_g=yes
8293
 
else
8294
 
  CXXFLAGS=""
8295
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296
 
/* end confdefs.h.  */
8297
 
 
8298
 
int
8299
 
main ()
8300
 
{
8301
 
 
8302
 
  ;
8303
 
  return 0;
8304
 
}
8305
 
_ACEOF
8306
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8307
 
 
8308
 
else
8309
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8310
 
         CXXFLAGS="-g"
8311
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312
 
/* end confdefs.h.  */
8313
 
 
8314
 
int
8315
 
main ()
8316
 
{
8317
 
 
8318
 
  ;
8319
 
  return 0;
8320
 
}
8321
 
_ACEOF
8322
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8323
 
  ac_cv_prog_cxx_g=yes
8324
 
fi
8325
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326
 
fi
8327
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328
 
fi
8329
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8331
 
fi
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
8338
 
    CXXFLAGS="-g -O2"
8339
 
  else
8340
 
    CXXFLAGS="-g"
8341
 
  fi
8342
 
else
8343
 
  if test "$GXX" = yes; then
8344
 
    CXXFLAGS="-O2"
8345
 
  else
8346
 
    CXXFLAGS=
8347
 
  fi
8348
 
fi
8349
 
ac_ext=c
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
8354
 
 
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
8358
 
  ac_ext=cpp
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
8368
 
else
8369
 
      # Double quotes because CXXCPP needs to be expanded
8370
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
8371
 
    do
8372
 
      ac_preproc_ok=false
8373
 
for ac_cxx_preproc_warn_flag in '' yes
8374
 
do
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.  */
8383
 
#ifdef __STDC__
8384
 
# include <limits.h>
8385
 
#else
8386
 
# include <assert.h>
8387
 
#endif
8388
 
                     Syntax error
8389
 
_ACEOF
8390
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8391
 
 
8392
 
else
8393
 
  # Broken: fails on valid input.
8394
 
continue
8395
 
fi
8396
 
rm -f conftest.err conftest.$ac_ext
8397
 
 
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>
8403
 
_ACEOF
8404
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8405
 
  # Broken: success on invalid input.
8406
 
continue
8407
 
else
8408
 
  # Passes both tests.
8409
 
ac_preproc_ok=:
8410
 
break
8411
 
fi
8412
 
rm -f conftest.err conftest.$ac_ext
8413
 
 
8414
 
done
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 :
8418
 
  break
8419
 
fi
8420
 
 
8421
 
    done
8422
 
    ac_cv_prog_CXXCPP=$CXXCPP
8423
 
 
8424
 
fi
8425
 
  CXXCPP=$ac_cv_prog_CXXCPP
8426
 
else
8427
 
  ac_cv_prog_CXXCPP=$CXXCPP
8428
 
fi
8429
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8430
 
$as_echo "$CXXCPP" >&6; }
8431
 
ac_preproc_ok=false
8432
 
for ac_cxx_preproc_warn_flag in '' yes
8433
 
do
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.  */
8442
 
#ifdef __STDC__
8443
 
# include <limits.h>
8444
 
#else
8445
 
# include <assert.h>
8446
 
#endif
8447
 
                     Syntax error
8448
 
_ACEOF
8449
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8450
 
 
8451
 
else
8452
 
  # Broken: fails on valid input.
8453
 
continue
8454
 
fi
8455
 
rm -f conftest.err conftest.$ac_ext
8456
 
 
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>
8462
 
_ACEOF
8463
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
8464
 
  # Broken: success on invalid input.
8465
 
continue
8466
 
else
8467
 
  # Passes both tests.
8468
 
ac_preproc_ok=:
8469
 
break
8470
 
fi
8471
 
rm -f conftest.err conftest.$ac_ext
8472
 
 
8473
 
done
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 :
8477
 
 
8478
 
else
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; }
8482
 
fi
8483
 
 
8484
 
ac_ext=c
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
8489
 
 
8490
 
else
8491
 
  _lt_caught_CXX_error=yes
8492
 
fi
 
8775
func_stripname_cnf ()
 
8776
{
 
8777
  case ${2} in
 
8778
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8779
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8780
  esac
 
8781
} # func_stripname_cnf
 
8782
 
8493
8783
 
8494
8784
 
8495
8785
 
8644
8934
 
8645
8935
 
8646
8936
 
 
8937
 
8647
8938
test -z "$LN_S" && LN_S="ln -s"
8648
8939
 
8649
8940
 
8665
8956
 
8666
8957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8667
8958
$as_echo_n "checking for objdir... " >&6; }
8668
 
if test "${lt_cv_objdir+set}" = set; then :
 
8959
if ${lt_cv_objdir+:} false; then :
8669
8960
  $as_echo_n "(cached) " >&6
8670
8961
else
8671
8962
  rm -f .libs 2>/dev/null
8693
8984
 
8694
8985
 
8695
8986
 
8696
 
 
8697
 
 
8698
 
 
8699
 
 
8700
 
 
8701
 
 
8702
 
 
8703
 
 
8704
 
 
8705
 
 
8706
 
 
8707
 
 
8708
 
 
8709
8987
case $host_os in
8710
8988
aix3*)
8711
8989
  # AIX sometimes has problems with the GCC collect2 program.  For some
8718
8996
  ;;
8719
8997
esac
8720
8998
 
8721
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8722
 
# metacharacters that are still active within double-quoted strings.
8723
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8724
 
 
8725
 
# Same as above, but do not quote variable references.
8726
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8727
 
 
8728
 
# Sed substitution to delay expansion of an escaped shell variable in a
8729
 
# double_quote_subst'ed string.
8730
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8731
 
 
8732
 
# Sed substitution to delay expansion of an escaped single quote.
8733
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8734
 
 
8735
 
# Sed substitution to avoid accidental globbing in evaled expressions
8736
 
no_glob_subst='s/\*/\\\*/g'
8737
 
 
8738
8999
# Global variables:
8739
9000
ofile=libtool
8740
9001
can_build_shared=yes
8763
9024
    *) break;;
8764
9025
  esac
8765
9026
done
8766
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9027
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8767
9028
 
8768
9029
 
8769
9030
# Only perform the check for file, if the check method requires it
8773
9034
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8774
9035
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8775
9036
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8776
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9037
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8777
9038
  $as_echo_n "(cached) " >&6
8778
9039
else
8779
9040
  case $MAGIC_CMD in
8839
9100
  if test -n "$ac_tool_prefix"; then
8840
9101
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8841
9102
$as_echo_n "checking for file... " >&6; }
8842
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9103
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8843
9104
  $as_echo_n "(cached) " >&6
8844
9105
else
8845
9106
  case $MAGIC_CMD in
8972
9233
lt_prog_compiler_no_builtin_flag=
8973
9234
 
8974
9235
if test "$GCC" = yes; then
8975
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9236
  case $cc_basename in
 
9237
  nvcc*)
 
9238
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
9239
  *)
 
9240
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
9241
  esac
8976
9242
 
8977
9243
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8978
9244
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8979
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
9245
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8980
9246
  $as_echo_n "(cached) " >&6
8981
9247
else
8982
9248
  lt_cv_prog_compiler_rtti_exceptions=no
8992
9258
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993
9259
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994
9260
   -e 's:$: $lt_compiler_flag:'`
8995
 
   (eval echo "\"\$as_me:8995: $lt_compile\"" >&5)
 
9261
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996
9262
   (eval "$lt_compile" 2>conftest.err)
8997
9263
   ac_status=$?
8998
9264
   cat conftest.err >&5
8999
 
   echo "$as_me:8999: \$? = $ac_status" >&5
 
9265
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000
9266
   if (exit $ac_status) && test -s "$ac_outfile"; then
9001
9267
     # The compiler can only warn and ignore the option if not recognized
9002
9268
     # So say no if there are warnings other than the usual output.
9003
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9269
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9004
9270
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005
9271
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006
9272
       lt_cv_prog_compiler_rtti_exceptions=yes
9029
9295
lt_prog_compiler_pic=
9030
9296
lt_prog_compiler_static=
9031
9297
 
9032
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034
9298
 
9035
9299
  if test "$GCC" = yes; then
9036
9300
    lt_prog_compiler_wl='-Wl,'
9078
9342
      lt_prog_compiler_pic='-fno-common'
9079
9343
      ;;
9080
9344
 
 
9345
    haiku*)
 
9346
      # PIC is the default for Haiku.
 
9347
      # The "-static" flag exists, but is broken.
 
9348
      lt_prog_compiler_static=
 
9349
      ;;
 
9350
 
9081
9351
    hpux*)
9082
9352
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9083
9353
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9120
9390
      lt_prog_compiler_pic='-fPIC'
9121
9391
      ;;
9122
9392
    esac
 
9393
 
 
9394
    case $cc_basename in
 
9395
    nvcc*) # Cuda Compiler Driver 2.2
 
9396
      lt_prog_compiler_wl='-Xlinker '
 
9397
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
9398
      ;;
 
9399
    esac
9123
9400
  else
9124
9401
    # PORTME Check for flag to pass linker flags through the system compiler.
9125
9402
    case $host_os in
9161
9438
      lt_prog_compiler_static='-non_shared'
9162
9439
      ;;
9163
9440
 
9164
 
    linux* | k*bsd*-gnu)
 
9441
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9165
9442
      case $cc_basename in
9166
9443
      # old Intel for x86_64 which still supported -KPIC.
9167
9444
      ecc*)
9182
9459
        lt_prog_compiler_pic='--shared'
9183
9460
        lt_prog_compiler_static='--static'
9184
9461
        ;;
9185
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
9462
      nagfor*)
 
9463
        # NAG Fortran compiler
 
9464
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9465
        lt_prog_compiler_pic='-PIC'
 
9466
        lt_prog_compiler_static='-Bstatic'
 
9467
        ;;
 
9468
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9186
9469
        # Portland Group compilers (*not* the Pentium gcc compiler,
9187
9470
        # which looks to be a dead project)
9188
9471
        lt_prog_compiler_wl='-Wl,'
9194
9477
        # All Alpha code is PIC.
9195
9478
        lt_prog_compiler_static='-non_shared'
9196
9479
        ;;
9197
 
      xl*)
9198
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
9480
      xl* | bgxl* | bgf* | mpixl*)
 
9481
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9199
9482
        lt_prog_compiler_wl='-Wl,'
9200
9483
        lt_prog_compiler_pic='-qpic'
9201
9484
        lt_prog_compiler_static='-qstaticlink'
9202
9485
        ;;
9203
9486
      *)
9204
9487
        case `$CC -V 2>&1 | sed 5q` in
 
9488
        *Sun\ F* | *Sun*Fortran*)
 
9489
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9490
          lt_prog_compiler_pic='-KPIC'
 
9491
          lt_prog_compiler_static='-Bstatic'
 
9492
          lt_prog_compiler_wl=''
 
9493
          ;;
9205
9494
        *Sun\ C*)
9206
9495
          # Sun C 5.9
9207
9496
          lt_prog_compiler_pic='-KPIC'
9208
9497
          lt_prog_compiler_static='-Bstatic'
9209
9498
          lt_prog_compiler_wl='-Wl,'
9210
9499
          ;;
9211
 
        *Sun\ F*)
9212
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9213
 
          lt_prog_compiler_pic='-KPIC'
9214
 
          lt_prog_compiler_static='-Bstatic'
9215
 
          lt_prog_compiler_wl=''
9216
 
          ;;
9217
9500
        esac
9218
9501
        ;;
9219
9502
      esac
9244
9527
      lt_prog_compiler_pic='-KPIC'
9245
9528
      lt_prog_compiler_static='-Bstatic'
9246
9529
      case $cc_basename in
9247
 
      f77* | f90* | f95*)
 
9530
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9248
9531
        lt_prog_compiler_wl='-Qoption ld ';;
9249
9532
      *)
9250
9533
        lt_prog_compiler_wl='-Wl,';;
9301
9584
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9302
9585
    ;;
9303
9586
esac
9304
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9305
 
$as_echo "$lt_prog_compiler_pic" >&6; }
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
 
9587
 
 
9588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9589
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9590
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9591
  $as_echo_n "(cached) " >&6
 
9592
else
 
9593
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9594
fi
 
9595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9596
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9597
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9311
9598
 
9312
9599
#
9313
9600
# Check to make sure the PIC flag actually works.
9315
9602
if test -n "$lt_prog_compiler_pic"; then
9316
9603
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9317
9604
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9318
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
9605
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9319
9606
  $as_echo_n "(cached) " >&6
9320
9607
else
9321
9608
  lt_cv_prog_compiler_pic_works=no
9331
9618
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332
9619
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333
9620
   -e 's:$: $lt_compiler_flag:'`
9334
 
   (eval echo "\"\$as_me:9334: $lt_compile\"" >&5)
 
9621
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335
9622
   (eval "$lt_compile" 2>conftest.err)
9336
9623
   ac_status=$?
9337
9624
   cat conftest.err >&5
9338
 
   echo "$as_me:9338: \$? = $ac_status" >&5
 
9625
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339
9626
   if (exit $ac_status) && test -s "$ac_outfile"; then
9340
9627
     # The compiler can only warn and ignore the option if not recognized
9341
9628
     # So say no if there are warnings other than the usual output.
9342
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9629
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9343
9630
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344
9631
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9345
9632
       lt_cv_prog_compiler_pic_works=yes
9368
9655
 
9369
9656
 
9370
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
9371
9663
#
9372
9664
# Check to make sure the static flag actually works.
9373
9665
#
9374
9666
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9375
9667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9376
9668
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9377
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
9669
if ${lt_cv_prog_compiler_static_works+:} false; then :
9378
9670
  $as_echo_n "(cached) " >&6
9379
9671
else
9380
9672
  lt_cv_prog_compiler_static_works=no
9387
9679
     if test -s conftest.err; then
9388
9680
       # Append any errors to the config.log.
9389
9681
       cat conftest.err 1>&5
9390
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9682
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9391
9683
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9392
9684
       if diff conftest.exp conftest.er2 >/dev/null; then
9393
9685
         lt_cv_prog_compiler_static_works=yes
9417
9709
 
9418
9710
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9419
9711
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9420
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9712
if ${lt_cv_prog_compiler_c_o+:} false; then :
9421
9713
  $as_echo_n "(cached) " >&6
9422
9714
else
9423
9715
  lt_cv_prog_compiler_c_o=no
9436
9728
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437
9729
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438
9730
   -e 's:$: $lt_compiler_flag:'`
9439
 
   (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
 
9731
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9440
9732
   (eval "$lt_compile" 2>out/conftest.err)
9441
9733
   ac_status=$?
9442
9734
   cat out/conftest.err >&5
9443
 
   echo "$as_me:9443: \$? = $ac_status" >&5
 
9735
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444
9736
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9445
9737
   then
9446
9738
     # The compiler can only warn and ignore the option if not recognized
9447
9739
     # So say no if there are warnings
9448
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9740
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9449
9741
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9450
9742
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9451
9743
       lt_cv_prog_compiler_c_o=yes
9472
9764
 
9473
9765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9474
9766
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9475
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9767
if ${lt_cv_prog_compiler_c_o+:} false; then :
9476
9768
  $as_echo_n "(cached) " >&6
9477
9769
else
9478
9770
  lt_cv_prog_compiler_c_o=no
9491
9783
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492
9784
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493
9785
   -e 's:$: $lt_compiler_flag:'`
9494
 
   (eval echo "\"\$as_me:9494: $lt_compile\"" >&5)
 
9786
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9495
9787
   (eval "$lt_compile" 2>out/conftest.err)
9496
9788
   ac_status=$?
9497
9789
   cat out/conftest.err >&5
9498
 
   echo "$as_me:9498: \$? = $ac_status" >&5
 
9790
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499
9791
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9500
9792
   then
9501
9793
     # The compiler can only warn and ignore the option if not recognized
9502
9794
     # So say no if there are warnings
9503
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9795
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9504
9796
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9505
9797
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9506
9798
       lt_cv_prog_compiler_c_o=yes
9610
9902
  openbsd*)
9611
9903
    with_gnu_ld=no
9612
9904
    ;;
9613
 
  linux* | k*bsd*-gnu)
9614
 
    link_all_deplibs=no
9615
 
    ;;
9616
9905
  esac
9617
9906
 
9618
9907
  ld_shlibs=yes
 
9908
 
 
9909
  # On some targets, GNU ld is compatible enough with the native linker
 
9910
  # that we're better off using the native interface for both.
 
9911
  lt_use_gnu_ld_interface=no
9619
9912
  if test "$with_gnu_ld" = yes; then
 
9913
    case $host_os in
 
9914
      aix*)
 
9915
        # The AIX port of GNU ld has always aspired to compatibility
 
9916
        # with the native linker.  However, as the warning in the GNU ld
 
9917
        # block says, versions before 2.19.5* couldn't really create working
 
9918
        # shared libraries, regardless of the interface used.
 
9919
        case `$LD -v 2>&1` in
 
9920
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9921
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9922
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9923
          *)
 
9924
            lt_use_gnu_ld_interface=yes
 
9925
            ;;
 
9926
        esac
 
9927
        ;;
 
9928
      *)
 
9929
        lt_use_gnu_ld_interface=yes
 
9930
        ;;
 
9931
    esac
 
9932
  fi
 
9933
 
 
9934
  if test "$lt_use_gnu_ld_interface" = yes; then
9620
9935
    # If archive_cmds runs LD, not CC, wlarc should be empty
9621
9936
    wlarc='${wl}'
9622
9937
 
9634
9949
    fi
9635
9950
    supports_anon_versioning=no
9636
9951
    case `$LD -v 2>&1` in
 
9952
      *GNU\ gold*) supports_anon_versioning=yes ;;
9637
9953
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9638
9954
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9639
9955
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9649
9965
        ld_shlibs=no
9650
9966
        cat <<_LT_EOF 1>&2
9651
9967
 
9652
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9968
*** Warning: the GNU linker, at least up to release 2.19, is reported
9653
9969
*** to be unable to reliably create shared libraries on AIX.
9654
9970
*** Therefore, libtool is disabling shared libraries support.  If you
9655
 
*** really care for shared libraries, you may want to modify your PATH
9656
 
*** so that a non-GNU linker is found, and then restart.
 
9971
*** really care for shared libraries, you may want to install binutils
 
9972
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9973
*** You will then need to restart the configuration process.
9657
9974
 
9658
9975
_LT_EOF
9659
9976
      fi
9689
10006
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9690
10007
      # as there is no search path for DLLs.
9691
10008
      hardcode_libdir_flag_spec='-L$libdir'
 
10009
      export_dynamic_flag_spec='${wl}--export-all-symbols'
9692
10010
      allow_undefined_flag=unsupported
9693
10011
      always_export_symbols=no
9694
10012
      enable_shared_with_static_runtimes=yes
9695
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10013
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
10014
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9696
10015
 
9697
10016
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9698
10017
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9710
10029
      fi
9711
10030
      ;;
9712
10031
 
 
10032
    haiku*)
 
10033
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10034
      link_all_deplibs=yes
 
10035
      ;;
 
10036
 
9713
10037
    interix[3-9]*)
9714
10038
      hardcode_direct=no
9715
10039
      hardcode_shlibpath_var=no
9725
10049
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9726
10050
      ;;
9727
10051
 
9728
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
10052
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9729
10053
      tmp_diet=no
9730
10054
      if test "$host_os" = linux-dietlibc; then
9731
10055
        case $cc_basename in
9735
10059
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9736
10060
         && test "$tmp_diet" = no
9737
10061
      then
9738
 
        tmp_addflag=
 
10062
        tmp_addflag=' $pic_flag'
9739
10063
        tmp_sharedflag='-shared'
9740
10064
        case $cc_basename,$host_cpu in
9741
10065
        pgcc*)                          # Portland Group C compiler
9742
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
10066
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9743
10067
          tmp_addflag=' $pic_flag'
9744
10068
          ;;
9745
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9746
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
10069
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
10070
                                        # Portland Group f77 and f90 compilers
 
10071
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9747
10072
          tmp_addflag=' $pic_flag -Mnomain' ;;
9748
10073
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9749
10074
          tmp_addflag=' -i_dynamic' ;;
9754
10079
        lf95*)                          # Lahey Fortran 8.1
9755
10080
          whole_archive_flag_spec=
9756
10081
          tmp_sharedflag='--shared' ;;
9757
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
10082
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9758
10083
          tmp_sharedflag='-qmkshrobj'
9759
10084
          tmp_addflag= ;;
 
10085
        nvcc*)  # Cuda Compiler Driver 2.2
 
10086
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10087
          compiler_needs_object=yes
 
10088
          ;;
9760
10089
        esac
9761
10090
        case `$CC -V 2>&1 | sed 5q` in
9762
10091
        *Sun\ C*)                       # Sun C 5.9
9763
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
10092
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9764
10093
          compiler_needs_object=yes
9765
10094
          tmp_sharedflag='-G' ;;
9766
10095
        *Sun\ F*)                       # Sun Fortran 8.3
9776
10105
        fi
9777
10106
 
9778
10107
        case $cc_basename in
9779
 
        xlf*)
 
10108
        xlf* | bgf* | bgxlf* | mpixlf*)
9780
10109
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9781
10110
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9782
10111
          hardcode_libdir_flag_spec=
9783
10112
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9784
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
10113
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9785
10114
          if test "x$supports_anon_versioning" = xyes; then
9786
10115
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9787
10116
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9788
10117
              echo "local: *; };" >> $output_objdir/$libname.ver~
9789
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10118
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9790
10119
          fi
9791
10120
          ;;
9792
10121
        esac
9795
10124
      fi
9796
10125
      ;;
9797
10126
 
9798
 
    netbsd* | netbsdelf*-gnu)
 
10127
    netbsd*)
9799
10128
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9800
10129
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9801
10130
        wlarc=
9802
10131
      else
9803
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10132
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10133
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9805
10134
      fi
9806
10135
      ;;
9807
10136
 
9819
10148
 
9820
10149
_LT_EOF
9821
10150
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9822
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10151
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10152
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9824
10153
      else
9825
10154
        ld_shlibs=no
9826
10155
      fi
9866
10195
 
9867
10196
    *)
9868
10197
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9869
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10198
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10199
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871
10200
      else
9872
10201
        ld_shlibs=no
9873
10202
      fi
9907
10236
      else
9908
10237
        # If we're using GNU nm, then we don't want the "-C" option.
9909
10238
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10239
        # Also, AIX nm treats weak defined symbols like other global
 
10240
        # defined symbols, whereas GNU nm marks them as "W".
9910
10241
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9911
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
10242
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9912
10243
        else
9913
10244
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9914
10245
        fi
9970
10301
        if test "$aix_use_runtimelinking" = yes; then
9971
10302
          shared_flag="$shared_flag "'${wl}-G'
9972
10303
        fi
9973
 
        link_all_deplibs=no
9974
10304
      else
9975
10305
        # not using gcc
9976
10306
        if test "$host_cpu" = ia64; then
9996
10326
        allow_undefined_flag='-berok'
9997
10327
        # Determine the default libpath from the value encoded in an
9998
10328
        # empty executable.
9999
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10329
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10330
  aix_libpath=$lt_cv_aix_libpath
 
10331
else
 
10332
  if ${lt_cv_aix_libpath_+:} false; then :
 
10333
  $as_echo_n "(cached) " >&6
 
10334
else
 
10335
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000
10336
/* end confdefs.h.  */
10001
10337
 
10002
10338
int
10009
10345
_ACEOF
10010
10346
if ac_fn_c_try_link "$LINENO"; then :
10011
10347
 
10012
 
lt_aix_libpath_sed='
10013
 
    /Import File Strings/,/^$/ {
10014
 
        /^0/ {
10015
 
            s/^0  *\(.*\)$/\1/
10016
 
            p
10017
 
        }
10018
 
    }'
10019
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10020
 
# Check for a 64-bit object if we didn't find anything.
10021
 
if test -z "$aix_libpath"; then
10022
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10023
 
fi
 
10348
  lt_aix_libpath_sed='
 
10349
      /Import File Strings/,/^$/ {
 
10350
          /^0/ {
 
10351
              s/^0  *\([^ ]*\) *$/\1/
 
10352
              p
 
10353
          }
 
10354
      }'
 
10355
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10356
  # Check for a 64-bit object if we didn't find anything.
 
10357
  if test -z "$lt_cv_aix_libpath_"; then
 
10358
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10359
  fi
10024
10360
fi
10025
10361
rm -f core conftest.err conftest.$ac_objext \
10026
10362
    conftest$ac_exeext conftest.$ac_ext
10027
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10363
  if test -z "$lt_cv_aix_libpath_"; then
 
10364
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10365
  fi
 
10366
 
 
10367
fi
 
10368
 
 
10369
  aix_libpath=$lt_cv_aix_libpath_
 
10370
fi
10028
10371
 
10029
10372
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10030
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10373
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10031
10374
      else
10032
10375
        if test "$host_cpu" = ia64; then
10033
10376
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10036
10379
        else
10037
10380
         # Determine the default libpath from the value encoded in an
10038
10381
         # empty executable.
10039
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10382
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10383
  aix_libpath=$lt_cv_aix_libpath
 
10384
else
 
10385
  if ${lt_cv_aix_libpath_+:} false; then :
 
10386
  $as_echo_n "(cached) " >&6
 
10387
else
 
10388
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040
10389
/* end confdefs.h.  */
10041
10390
 
10042
10391
int
10049
10398
_ACEOF
10050
10399
if ac_fn_c_try_link "$LINENO"; then :
10051
10400
 
10052
 
lt_aix_libpath_sed='
10053
 
    /Import File Strings/,/^$/ {
10054
 
        /^0/ {
10055
 
            s/^0  *\(.*\)$/\1/
10056
 
            p
10057
 
        }
10058
 
    }'
10059
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10060
 
# Check for a 64-bit object if we didn't find anything.
10061
 
if test -z "$aix_libpath"; then
10062
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10063
 
fi
 
10401
  lt_aix_libpath_sed='
 
10402
      /Import File Strings/,/^$/ {
 
10403
          /^0/ {
 
10404
              s/^0  *\([^ ]*\) *$/\1/
 
10405
              p
 
10406
          }
 
10407
      }'
 
10408
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10409
  # Check for a 64-bit object if we didn't find anything.
 
10410
  if test -z "$lt_cv_aix_libpath_"; then
 
10411
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10412
  fi
10064
10413
fi
10065
10414
rm -f core conftest.err conftest.$ac_objext \
10066
10415
    conftest$ac_exeext conftest.$ac_ext
10067
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10416
  if test -z "$lt_cv_aix_libpath_"; then
 
10417
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10418
  fi
 
10419
 
 
10420
fi
 
10421
 
 
10422
  aix_libpath=$lt_cv_aix_libpath_
 
10423
fi
10068
10424
 
10069
10425
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10070
10426
          # Warning - without using the other run time loading flags,
10071
10427
          # -berok will link without error, but may produce a broken library.
10072
10428
          no_undefined_flag=' ${wl}-bernotok'
10073
10429
          allow_undefined_flag=' ${wl}-berok'
10074
 
          # Exported symbols can be pulled into shared objects from archives
10075
 
          whole_archive_flag_spec='$convenience'
 
10430
          if test "$with_gnu_ld" = yes; then
 
10431
            # We only use this code for GNU lds that support --whole-archive.
 
10432
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10433
          else
 
10434
            # Exported symbols can be pulled into shared objects from archives
 
10435
            whole_archive_flag_spec='$convenience'
 
10436
          fi
10076
10437
          archive_cmds_need_lc=yes
10077
10438
          # This is similar to how AIX traditionally builds its shared libraries.
10078
10439
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10104
10465
      # Microsoft Visual C++.
10105
10466
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10106
10467
      # no search path for DLLs.
10107
 
      hardcode_libdir_flag_spec=' '
10108
 
      allow_undefined_flag=unsupported
10109
 
      # Tell ltmain to make .lib files, not .a files.
10110
 
      libext=lib
10111
 
      # Tell ltmain to make .dll files, not .so files.
10112
 
      shrext_cmds=".dll"
10113
 
      # FIXME: Setting linknames here is a bad hack.
10114
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10115
 
      # The linker will automatically build a .lib file if we build a DLL.
10116
 
      old_archive_from_new_cmds='true'
10117
 
      # FIXME: Should let the user specify the lib program.
10118
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10119
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10120
 
      enable_shared_with_static_runtimes=yes
 
10468
      case $cc_basename in
 
10469
      cl*)
 
10470
        # Native MSVC
 
10471
        hardcode_libdir_flag_spec=' '
 
10472
        allow_undefined_flag=unsupported
 
10473
        always_export_symbols=yes
 
10474
        file_list_spec='@'
 
10475
        # Tell ltmain to make .lib files, not .a files.
 
10476
        libext=lib
 
10477
        # Tell ltmain to make .dll files, not .so files.
 
10478
        shrext_cmds=".dll"
 
10479
        # FIXME: Setting linknames here is a bad hack.
 
10480
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
10481
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10482
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
10483
          else
 
10484
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
10485
          fi~
 
10486
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10487
          linknames='
 
10488
        # The linker will not automatically build a static lib if we build a DLL.
 
10489
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10490
        enable_shared_with_static_runtimes=yes
 
10491
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10492
        # Don't use ranlib
 
10493
        old_postinstall_cmds='chmod 644 $oldlib'
 
10494
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10495
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10496
          case $lt_outputfile in
 
10497
            *.exe|*.EXE) ;;
 
10498
            *)
 
10499
              lt_outputfile="$lt_outputfile.exe"
 
10500
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10501
              ;;
 
10502
          esac~
 
10503
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10504
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10505
            $RM "$lt_outputfile.manifest";
 
10506
          fi'
 
10507
        ;;
 
10508
      *)
 
10509
        # Assume MSVC wrapper
 
10510
        hardcode_libdir_flag_spec=' '
 
10511
        allow_undefined_flag=unsupported
 
10512
        # Tell ltmain to make .lib files, not .a files.
 
10513
        libext=lib
 
10514
        # Tell ltmain to make .dll files, not .so files.
 
10515
        shrext_cmds=".dll"
 
10516
        # FIXME: Setting linknames here is a bad hack.
 
10517
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10518
        # The linker will automatically build a .lib file if we build a DLL.
 
10519
        old_archive_from_new_cmds='true'
 
10520
        # FIXME: Should let the user specify the lib program.
 
10521
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10522
        enable_shared_with_static_runtimes=yes
 
10523
        ;;
 
10524
      esac
10121
10525
      ;;
10122
10526
 
10123
10527
    darwin* | rhapsody*)
10127
10531
  hardcode_direct=no
10128
10532
  hardcode_automatic=yes
10129
10533
  hardcode_shlibpath_var=unsupported
10130
 
  whole_archive_flag_spec=''
 
10534
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10535
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
10536
  else
 
10537
    whole_archive_flag_spec=''
 
10538
  fi
10131
10539
  link_all_deplibs=yes
10132
10540
  allow_undefined_flag="$_lt_dar_allow_undefined"
10133
10541
  case $cc_basename in
10135
10543
     *) _lt_dar_can_shared=$GCC ;;
10136
10544
  esac
10137
10545
  if test "$_lt_dar_can_shared" = "yes"; then
10138
 
    output_verbose_link_cmd=echo
 
10546
    output_verbose_link_cmd=func_echo_all
10139
10547
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10140
10548
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10141
10549
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10178
10586
 
10179
10587
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10180
10588
    freebsd* | dragonfly*)
10181
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
10589
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182
10590
      hardcode_libdir_flag_spec='-R$libdir'
10183
10591
      hardcode_direct=yes
10184
10592
      hardcode_shlibpath_var=no
10186
10594
 
10187
10595
    hpux9*)
10188
10596
      if test "$GCC" = yes; then
10189
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10597
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10190
10598
      else
10191
10599
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10192
10600
      fi
10201
10609
      ;;
10202
10610
 
10203
10611
    hpux10*)
10204
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10205
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10612
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10613
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10206
10614
      else
10207
10615
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10208
10616
      fi
10220
10628
      ;;
10221
10629
 
10222
10630
    hpux11*)
10223
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10631
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10224
10632
        case $host_cpu in
10225
10633
        hppa*64*)
10226
10634
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10227
10635
          ;;
10228
10636
        ia64*)
10229
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10637
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10230
10638
          ;;
10231
10639
        *)
10232
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10640
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233
10641
          ;;
10234
10642
        esac
10235
10643
      else
10241
10649
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10242
10650
          ;;
10243
10651
        *)
10244
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10652
 
 
10653
          # Older versions of the 11.00 compiler do not understand -b yet
 
10654
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10655
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10656
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10657
if ${lt_cv_prog_compiler__b+:} false; then :
 
10658
  $as_echo_n "(cached) " >&6
 
10659
else
 
10660
  lt_cv_prog_compiler__b=no
 
10661
   save_LDFLAGS="$LDFLAGS"
 
10662
   LDFLAGS="$LDFLAGS -b"
 
10663
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10664
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10665
     # The linker can only warn and ignore the option if not recognized
 
10666
     # So say no if there are warnings
 
10667
     if test -s conftest.err; then
 
10668
       # Append any errors to the config.log.
 
10669
       cat conftest.err 1>&5
 
10670
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10671
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10672
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10673
         lt_cv_prog_compiler__b=yes
 
10674
       fi
 
10675
     else
 
10676
       lt_cv_prog_compiler__b=yes
 
10677
     fi
 
10678
   fi
 
10679
   $RM -r conftest*
 
10680
   LDFLAGS="$save_LDFLAGS"
 
10681
 
 
10682
fi
 
10683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10684
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10685
 
 
10686
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10687
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10688
else
 
10689
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10690
fi
 
10691
 
10245
10692
          ;;
10246
10693
        esac
10247
10694
      fi
10269
10716
 
10270
10717
    irix5* | irix6* | nonstopux*)
10271
10718
      if test "$GCC" = yes; then
10272
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10719
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10273
10720
        # Try to use the -exported_symbol ld option, if it does not
10274
10721
        # work, assume that -exports_file does not work either and
10275
10722
        # implicitly export all symbols.
10276
 
        save_LDFLAGS="$LDFLAGS"
10277
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10278
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10723
        # This should be the same for all languages, so no per-tag cache variable.
 
10724
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10725
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10726
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10727
  $as_echo_n "(cached) " >&6
 
10728
else
 
10729
  save_LDFLAGS="$LDFLAGS"
 
10730
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10731
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279
10732
/* end confdefs.h.  */
10280
 
int foo(void) {}
 
10733
int foo (void) { return 0; }
10281
10734
_ACEOF
10282
10735
if ac_fn_c_try_link "$LINENO"; then :
10283
 
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10284
 
 
 
10736
  lt_cv_irix_exported_symbol=yes
 
10737
else
 
10738
  lt_cv_irix_exported_symbol=no
10285
10739
fi
10286
10740
rm -f core conftest.err conftest.$ac_objext \
10287
10741
    conftest$ac_exeext conftest.$ac_ext
10288
 
        LDFLAGS="$save_LDFLAGS"
 
10742
           LDFLAGS="$save_LDFLAGS"
 
10743
fi
 
10744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10745
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10746
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10747
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10748
        fi
10289
10749
      else
10290
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10291
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10750
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10751
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10292
10752
      fi
10293
10753
      archive_cmds_need_lc='no'
10294
10754
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10297
10757
      link_all_deplibs=yes
10298
10758
      ;;
10299
10759
 
10300
 
    netbsd* | netbsdelf*-gnu)
 
10760
    netbsd*)
10301
10761
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10302
10762
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10303
10763
      else
10350
10810
      hardcode_libdir_flag_spec='-L$libdir'
10351
10811
      hardcode_minus_L=yes
10352
10812
      allow_undefined_flag=unsupported
10353
 
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
10813
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10354
10814
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10355
10815
      ;;
10356
10816
 
10357
10817
    osf3*)
10358
10818
      if test "$GCC" = yes; then
10359
10819
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10360
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10820
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10361
10821
      else
10362
10822
        allow_undefined_flag=' -expect_unresolved \*'
10363
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10823
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10364
10824
      fi
10365
10825
      archive_cmds_need_lc='no'
10366
10826
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370
10830
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10371
10831
      if test "$GCC" = yes; then
10372
10832
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10373
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10833
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10374
10834
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10375
10835
      else
10376
10836
        allow_undefined_flag=' -expect_unresolved \*'
10377
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10837
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10378
10838
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10379
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10839
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10380
10840
 
10381
10841
        # Both c and cxx compiler support -rpath directly
10382
10842
        hardcode_libdir_flag_spec='-rpath $libdir'
10389
10849
      no_undefined_flag=' -z defs'
10390
10850
      if test "$GCC" = yes; then
10391
10851
        wlarc='${wl}'
10392
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10852
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10393
10853
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10394
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10854
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10395
10855
      else
10396
10856
        case `$CC -V 2>&1` in
10397
10857
        *"Compilers 5.0"*)
10579
11039
      # to ld, don't add -lc before -lgcc.
10580
11040
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10581
11041
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10582
 
      $RM conftest*
10583
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11042
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
11043
  $as_echo_n "(cached) " >&6
 
11044
else
 
11045
  $RM conftest*
 
11046
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10584
11047
 
10585
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
11048
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10586
11049
  (eval $ac_compile) 2>&5
10587
11050
  ac_status=$?
10588
11051
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10589
11052
  test $ac_status = 0; } 2>conftest.err; then
10590
 
        soname=conftest
10591
 
        lib=conftest
10592
 
        libobjs=conftest.$ac_objext
10593
 
        deplibs=
10594
 
        wl=$lt_prog_compiler_wl
10595
 
        pic_flag=$lt_prog_compiler_pic
10596
 
        compiler_flags=-v
10597
 
        linker_flags=-v
10598
 
        verstring=
10599
 
        output_objdir=.
10600
 
        libname=conftest
10601
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
10602
 
        allow_undefined_flag=
10603
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11053
          soname=conftest
 
11054
          lib=conftest
 
11055
          libobjs=conftest.$ac_objext
 
11056
          deplibs=
 
11057
          wl=$lt_prog_compiler_wl
 
11058
          pic_flag=$lt_prog_compiler_pic
 
11059
          compiler_flags=-v
 
11060
          linker_flags=-v
 
11061
          verstring=
 
11062
          output_objdir=.
 
11063
          libname=conftest
 
11064
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
11065
          allow_undefined_flag=
 
11066
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10604
11067
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10605
11068
  ac_status=$?
10606
11069
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10607
11070
  test $ac_status = 0; }
10608
 
        then
10609
 
          archive_cmds_need_lc=no
10610
 
        else
10611
 
          archive_cmds_need_lc=yes
10612
 
        fi
10613
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
10614
 
      else
10615
 
        cat conftest.err 1>&5
10616
 
      fi
10617
 
      $RM conftest*
10618
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10619
 
$as_echo "$archive_cmds_need_lc" >&6; }
 
11071
          then
 
11072
            lt_cv_archive_cmds_need_lc=no
 
11073
          else
 
11074
            lt_cv_archive_cmds_need_lc=yes
 
11075
          fi
 
11076
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
11077
        else
 
11078
          cat conftest.err 1>&5
 
11079
        fi
 
11080
        $RM conftest*
 
11081
 
 
11082
fi
 
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
11084
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
11085
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10620
11086
      ;;
10621
11087
    esac
10622
11088
  fi
10787
11253
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10788
11254
    *) lt_awk_arg="/^libraries:/" ;;
10789
11255
  esac
10790
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10791
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
11256
  case $host_os in
 
11257
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
11258
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
11259
  esac
 
11260
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
11261
  case $lt_search_path_spec in
 
11262
  *\;*)
10792
11263
    # if the path contains ";" then we assume it to be the separator
10793
11264
    # otherwise default to the standard path separator (i.e. ":") - it is
10794
11265
    # assumed that no part of a normal pathname contains ";" but that should
10795
11266
    # okay in the real world where ";" in dirpaths is itself problematic.
10796
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10797
 
  else
10798
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10799
 
  fi
 
11267
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
11268
    ;;
 
11269
  *)
 
11270
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
11271
    ;;
 
11272
  esac
10800
11273
  # Ok, now we have the path, separated by spaces, we can step through it
10801
11274
  # and add multilib dir if necessary.
10802
11275
  lt_tmp_lt_search_path_spec=
10809
11282
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10810
11283
    fi
10811
11284
  done
10812
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
11285
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10813
11286
BEGIN {RS=" "; FS="/|\n";} {
10814
11287
  lt_foo="";
10815
11288
  lt_count=0;
10829
11302
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10830
11303
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10831
11304
}'`
10832
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
11305
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
11306
  # for these hosts.
 
11307
  case $host_os in
 
11308
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
11309
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
11310
  esac
 
11311
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10833
11312
else
10834
11313
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10835
11314
fi
10917
11396
  m68k)
10918
11397
    library_names_spec='$libname.ixlibrary $libname.a'
10919
11398
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10920
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
11399
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10921
11400
    ;;
10922
11401
  esac
10923
11402
  ;;
10948
11427
  need_version=no
10949
11428
  need_lib_prefix=no
10950
11429
 
10951
 
  case $GCC,$host_os in
10952
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
11430
  case $GCC,$cc_basename in
 
11431
  yes,*)
 
11432
    # gcc
10953
11433
    library_names_spec='$libname.dll.a'
10954
11434
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10955
11435
    postinstall_cmds='base_file=`basename \${file}`~
10970
11450
    cygwin*)
10971
11451
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10972
11452
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10973
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11453
 
 
11454
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10974
11455
      ;;
10975
11456
    mingw* | cegcc*)
10976
11457
      # MinGW DLLs use traditional 'lib' prefix
10977
11458
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10978
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10979
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10980
 
        # It is most probably a Windows format PATH printed by
10981
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10982
 
        # path with ; separators, and with drive letters. We can handle the
10983
 
        # drive letters (cygwin fileutils understands them), so leave them,
10984
 
        # especially as we might pass files found there to a mingw objdump,
10985
 
        # which wouldn't understand a cygwinified path. Ahh.
10986
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10987
 
      else
10988
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10989
 
      fi
10990
11459
      ;;
10991
11460
    pw32*)
10992
11461
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10993
11462
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10994
11463
      ;;
10995
11464
    esac
 
11465
    dynamic_linker='Win32 ld.exe'
 
11466
    ;;
 
11467
 
 
11468
  *,cl*)
 
11469
    # Native MSVC
 
11470
    libname_spec='$name'
 
11471
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11472
    library_names_spec='${libname}.dll.lib'
 
11473
 
 
11474
    case $build_os in
 
11475
    mingw*)
 
11476
      sys_lib_search_path_spec=
 
11477
      lt_save_ifs=$IFS
 
11478
      IFS=';'
 
11479
      for lt_path in $LIB
 
11480
      do
 
11481
        IFS=$lt_save_ifs
 
11482
        # Let DOS variable expansion print the short 8.3 style file name.
 
11483
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11484
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11485
      done
 
11486
      IFS=$lt_save_ifs
 
11487
      # Convert to MSYS style.
 
11488
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11489
      ;;
 
11490
    cygwin*)
 
11491
      # Convert to unix form, then to dos form, then back to unix form
 
11492
      # but this time dos style (no spaces!) so that the unix form looks
 
11493
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11494
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11495
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11496
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11497
      ;;
 
11498
    *)
 
11499
      sys_lib_search_path_spec="$LIB"
 
11500
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11501
        # It is most probably a Windows format PATH.
 
11502
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11503
      else
 
11504
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11505
      fi
 
11506
      # FIXME: find the short name or the path components, as spaces are
 
11507
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11508
      ;;
 
11509
    esac
 
11510
 
 
11511
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11512
    postinstall_cmds='base_file=`basename \${file}`~
 
11513
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11514
      dldir=$destdir/`dirname \$dlpath`~
 
11515
      test -d \$dldir || mkdir -p \$dldir~
 
11516
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11517
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11518
      dlpath=$dir/\$dldll~
 
11519
       $RM \$dlpath'
 
11520
    shlibpath_overrides_runpath=yes
 
11521
    dynamic_linker='Win32 link.exe'
10996
11522
    ;;
10997
11523
 
10998
11524
  *)
 
11525
    # Assume MSVC wrapper
10999
11526
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11527
    dynamic_linker='Win32 ld.exe'
11000
11528
    ;;
11001
11529
  esac
11002
 
  dynamic_linker='Win32 ld.exe'
11003
11530
  # FIXME: first we should search . and the directory the executable is in
11004
11531
  shlibpath_var=PATH
11005
11532
  ;;
11086
11613
  hardcode_into_libs=yes
11087
11614
  ;;
11088
11615
 
 
11616
haiku*)
 
11617
  version_type=linux
 
11618
  need_lib_prefix=no
 
11619
  need_version=no
 
11620
  dynamic_linker="$host_os runtime_loader"
 
11621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11622
  soname_spec='${libname}${release}${shared_ext}$major'
 
11623
  shlibpath_var=LIBRARY_PATH
 
11624
  shlibpath_overrides_runpath=yes
 
11625
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11626
  hardcode_into_libs=yes
 
11627
  ;;
 
11628
 
11089
11629
hpux9* | hpux10* | hpux11*)
11090
11630
  # Give a soname corresponding to the major version so that dld.sl refuses to
11091
11631
  # link against other versions.
11128
11668
    soname_spec='${libname}${release}${shared_ext}$major'
11129
11669
    ;;
11130
11670
  esac
11131
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11671
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11132
11672
  postinstall_cmds='chmod 555 $lib'
 
11673
  # or fails outright, so override atomically:
 
11674
  install_override_mode=555
11133
11675
  ;;
11134
11676
 
11135
11677
interix[3-9]*)
11187
11729
  ;;
11188
11730
 
11189
11731
# This must be Linux ELF.
11190
 
linux* | k*bsd*-gnu)
 
11732
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11191
11733
  version_type=linux
11192
11734
  need_lib_prefix=no
11193
11735
  need_version=no
11196
11738
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11197
11739
  shlibpath_var=LD_LIBRARY_PATH
11198
11740
  shlibpath_overrides_runpath=no
 
11741
 
11199
11742
  # Some binutils ld are patched to set DT_RUNPATH
11200
 
  save_LDFLAGS=$LDFLAGS
11201
 
  save_libdir=$libdir
11202
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11203
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11204
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11743
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11744
  $as_echo_n "(cached) " >&6
 
11745
else
 
11746
  lt_cv_shlibpath_overrides_runpath=no
 
11747
    save_LDFLAGS=$LDFLAGS
 
11748
    save_libdir=$libdir
 
11749
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11750
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11751
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205
11752
/* end confdefs.h.  */
11206
11753
 
11207
11754
int
11214
11761
_ACEOF
11215
11762
if ac_fn_c_try_link "$LINENO"; then :
11216
11763
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11217
 
  shlibpath_overrides_runpath=yes
 
11764
  lt_cv_shlibpath_overrides_runpath=yes
11218
11765
fi
11219
11766
fi
11220
11767
rm -f core conftest.err conftest.$ac_objext \
11221
11768
    conftest$ac_exeext conftest.$ac_ext
11222
 
  LDFLAGS=$save_LDFLAGS
11223
 
  libdir=$save_libdir
 
11769
    LDFLAGS=$save_LDFLAGS
 
11770
    libdir=$save_libdir
 
11771
 
 
11772
fi
 
11773
 
 
11774
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11224
11775
 
11225
11776
  # This implies no fast_install, which is unacceptable.
11226
11777
  # Some rework will be needed to allow for fast_install
11229
11780
 
11230
11781
  # Append ld.so.conf contents to the search path
11231
11782
  if test -f /etc/ld.so.conf; then
11232
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11783
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11233
11784
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11234
11785
  fi
11235
11786
 
11242
11793
  dynamic_linker='GNU/Linux ld.so'
11243
11794
  ;;
11244
11795
 
11245
 
netbsdelf*-gnu)
11246
 
  version_type=linux
11247
 
  need_lib_prefix=no
11248
 
  need_version=no
11249
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11250
 
  soname_spec='${libname}${release}${shared_ext}$major'
11251
 
  shlibpath_var=LD_LIBRARY_PATH
11252
 
  shlibpath_overrides_runpath=no
11253
 
  hardcode_into_libs=yes
11254
 
  dynamic_linker='NetBSD ld.elf_so'
11255
 
  ;;
11256
 
 
11257
11796
netbsd*)
11258
11797
  version_type=sunos
11259
11798
  need_lib_prefix=no
11544
12083
 
11545
12084
 
11546
12085
 
 
12086
 
 
12087
 
 
12088
 
 
12089
 
 
12090
 
11547
12091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11548
12092
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11549
12093
hardcode_action=
11616
12160
  # if libdl is installed we need to link against it
11617
12161
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11618
12162
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11619
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12163
if ${ac_cv_lib_dl_dlopen+:} false; then :
11620
12164
  $as_echo_n "(cached) " >&6
11621
12165
else
11622
12166
  ac_check_lib_save_LIBS=$LIBS
11650
12194
fi
11651
12195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11652
12196
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11653
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12197
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11654
12198
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11655
12199
else
11656
12200
 
11664
12208
 
11665
12209
  *)
11666
12210
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11667
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
12211
if test "x$ac_cv_func_shl_load" = xyes; then :
11668
12212
  lt_cv_dlopen="shl_load"
11669
12213
else
11670
12214
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11671
12215
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11672
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
12216
if ${ac_cv_lib_dld_shl_load+:} false; then :
11673
12217
  $as_echo_n "(cached) " >&6
11674
12218
else
11675
12219
  ac_check_lib_save_LIBS=$LIBS
11703
12247
fi
11704
12248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11705
12249
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11706
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
12250
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11707
12251
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11708
12252
else
11709
12253
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11710
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
12254
if test "x$ac_cv_func_dlopen" = xyes; then :
11711
12255
  lt_cv_dlopen="dlopen"
11712
12256
else
11713
12257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11714
12258
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11715
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12259
if ${ac_cv_lib_dl_dlopen+:} false; then :
11716
12260
  $as_echo_n "(cached) " >&6
11717
12261
else
11718
12262
  ac_check_lib_save_LIBS=$LIBS
11746
12290
fi
11747
12291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11748
12292
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11749
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12293
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11750
12294
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11751
12295
else
11752
12296
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11753
12297
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11754
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
12298
if ${ac_cv_lib_svld_dlopen+:} false; then :
11755
12299
  $as_echo_n "(cached) " >&6
11756
12300
else
11757
12301
  ac_check_lib_save_LIBS=$LIBS
11785
12329
fi
11786
12330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11787
12331
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11788
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
12332
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11789
12333
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11790
12334
else
11791
12335
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11792
12336
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11793
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
12337
if ${ac_cv_lib_dld_dld_link+:} false; then :
11794
12338
  $as_echo_n "(cached) " >&6
11795
12339
else
11796
12340
  ac_check_lib_save_LIBS=$LIBS
11824
12368
fi
11825
12369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11826
12370
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11827
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
12371
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11828
12372
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11829
12373
fi
11830
12374
 
11865
12409
 
11866
12410
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11867
12411
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11868
 
if test "${lt_cv_dlopen_self+set}" = set; then :
 
12412
if ${lt_cv_dlopen_self+:} false; then :
11869
12413
  $as_echo_n "(cached) " >&6
11870
12414
else
11871
12415
          if test "$cross_compiling" = yes; then :
11874
12418
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875
12419
  lt_status=$lt_dlunknown
11876
12420
  cat > conftest.$ac_ext <<_LT_EOF
11877
 
#line 11877 "configure"
 
12421
#line $LINENO "configure"
11878
12422
#include "confdefs.h"
11879
12423
 
11880
12424
#if HAVE_DLFCN_H
11915
12459
#  endif
11916
12460
#endif
11917
12461
 
11918
 
void fnord() { int i=42;}
 
12462
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12463
   correspondingly for the symbols needed.  */
 
12464
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12465
int fnord () __attribute__((visibility("default")));
 
12466
#endif
 
12467
 
 
12468
int fnord () { return 42; }
11919
12469
int main ()
11920
12470
{
11921
12471
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11924
12474
  if (self)
11925
12475
    {
11926
12476
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11927
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12477
      else
 
12478
        {
 
12479
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12480
          else puts (dlerror ());
 
12481
        }
11928
12482
      /* dlclose (self); */
11929
12483
    }
11930
12484
  else
11961
12515
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11962
12516
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11963
12517
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11964
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
12518
if ${lt_cv_dlopen_self_static+:} false; then :
11965
12519
  $as_echo_n "(cached) " >&6
11966
12520
else
11967
12521
          if test "$cross_compiling" = yes; then :
11970
12524
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11971
12525
  lt_status=$lt_dlunknown
11972
12526
  cat > conftest.$ac_ext <<_LT_EOF
11973
 
#line 11973 "configure"
 
12527
#line $LINENO "configure"
11974
12528
#include "confdefs.h"
11975
12529
 
11976
12530
#if HAVE_DLFCN_H
12011
12565
#  endif
12012
12566
#endif
12013
12567
 
12014
 
void fnord() { int i=42;}
 
12568
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12569
   correspondingly for the symbols needed.  */
 
12570
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12571
int fnord () __attribute__((visibility("default")));
 
12572
#endif
 
12573
 
 
12574
int fnord () { return 42; }
12015
12575
int main ()
12016
12576
{
12017
12577
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12020
12580
  if (self)
12021
12581
    {
12022
12582
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12023
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12583
      else
 
12584
        {
 
12585
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12586
          else puts (dlerror ());
 
12587
        }
12024
12588
      /* dlclose (self); */
12025
12589
    }
12026
12590
  else
12177
12741
 
12178
12742
CC="$lt_save_CC"
12179
12743
 
 
12744
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12745
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12746
    (test "X$CXX" != "Xg++"))) ; then
 
12747
  ac_ext=cpp
 
12748
ac_cpp='$CXXCPP $CPPFLAGS'
 
12749
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12750
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12751
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12753
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12754
if test -z "$CXXCPP"; then
 
12755
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12756
  $as_echo_n "(cached) " >&6
 
12757
else
 
12758
      # Double quotes because CXXCPP needs to be expanded
 
12759
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12760
    do
 
12761
      ac_preproc_ok=false
 
12762
for ac_cxx_preproc_warn_flag in '' yes
 
12763
do
 
12764
  # Use a header file that comes with gcc, so configuring glibc
 
12765
  # with a fresh cross-compiler works.
 
12766
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12767
  # <limits.h> exists even on freestanding compilers.
 
12768
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12769
  # not just through cpp. "Syntax error" is here to catch this case.
 
12770
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12771
/* end confdefs.h.  */
 
12772
#ifdef __STDC__
 
12773
# include <limits.h>
 
12774
#else
 
12775
# include <assert.h>
 
12776
#endif
 
12777
                     Syntax error
 
12778
_ACEOF
 
12779
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12780
 
 
12781
else
 
12782
  # Broken: fails on valid input.
 
12783
continue
 
12784
fi
 
12785
rm -f conftest.err conftest.i conftest.$ac_ext
 
12786
 
 
12787
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12788
  # can be detected and how.
 
12789
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12790
/* end confdefs.h.  */
 
12791
#include <ac_nonexistent.h>
 
12792
_ACEOF
 
12793
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12794
  # Broken: success on invalid input.
 
12795
continue
 
12796
else
 
12797
  # Passes both tests.
 
12798
ac_preproc_ok=:
 
12799
break
 
12800
fi
 
12801
rm -f conftest.err conftest.i conftest.$ac_ext
 
12802
 
 
12803
done
 
12804
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12805
rm -f conftest.i conftest.err conftest.$ac_ext
 
12806
if $ac_preproc_ok; then :
 
12807
  break
 
12808
fi
 
12809
 
 
12810
    done
 
12811
    ac_cv_prog_CXXCPP=$CXXCPP
 
12812
 
 
12813
fi
 
12814
  CXXCPP=$ac_cv_prog_CXXCPP
 
12815
else
 
12816
  ac_cv_prog_CXXCPP=$CXXCPP
 
12817
fi
 
12818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12819
$as_echo "$CXXCPP" >&6; }
 
12820
ac_preproc_ok=false
 
12821
for ac_cxx_preproc_warn_flag in '' yes
 
12822
do
 
12823
  # Use a header file that comes with gcc, so configuring glibc
 
12824
  # with a fresh cross-compiler works.
 
12825
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12826
  # <limits.h> exists even on freestanding compilers.
 
12827
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12828
  # not just through cpp. "Syntax error" is here to catch this case.
 
12829
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12830
/* end confdefs.h.  */
 
12831
#ifdef __STDC__
 
12832
# include <limits.h>
 
12833
#else
 
12834
# include <assert.h>
 
12835
#endif
 
12836
                     Syntax error
 
12837
_ACEOF
 
12838
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12839
 
 
12840
else
 
12841
  # Broken: fails on valid input.
 
12842
continue
 
12843
fi
 
12844
rm -f conftest.err conftest.i conftest.$ac_ext
 
12845
 
 
12846
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12847
  # can be detected and how.
 
12848
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12849
/* end confdefs.h.  */
 
12850
#include <ac_nonexistent.h>
 
12851
_ACEOF
 
12852
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12853
  # Broken: success on invalid input.
 
12854
continue
 
12855
else
 
12856
  # Passes both tests.
 
12857
ac_preproc_ok=:
 
12858
break
 
12859
fi
 
12860
rm -f conftest.err conftest.i conftest.$ac_ext
 
12861
 
 
12862
done
 
12863
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12864
rm -f conftest.i conftest.err conftest.$ac_ext
 
12865
if $ac_preproc_ok; then :
 
12866
 
 
12867
else
 
12868
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12869
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12870
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12871
See \`config.log' for more details" "$LINENO" 5; }
 
12872
fi
 
12873
 
 
12874
ac_ext=c
 
12875
ac_cpp='$CPP $CPPFLAGS'
 
12876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12879
 
 
12880
else
 
12881
  _lt_caught_CXX_error=yes
 
12882
fi
12180
12883
 
12181
12884
ac_ext=cpp
12182
12885
ac_cpp='$CXXCPP $CPPFLAGS'
12203
12906
module_expsym_cmds_CXX=
12204
12907
link_all_deplibs_CXX=unknown
12205
12908
old_archive_cmds_CXX=$old_archive_cmds
 
12909
reload_flag_CXX=$reload_flag
 
12910
reload_cmds_CXX=$reload_cmds
12206
12911
no_undefined_flag_CXX=
12207
12912
whole_archive_flag_spec_CXX=
12208
12913
enable_shared_with_static_runtimes_CXX=no
12258
12963
 
12259
12964
  # Allow CC to be a program name with arguments.
12260
12965
  lt_save_CC=$CC
 
12966
  lt_save_CFLAGS=$CFLAGS
12261
12967
  lt_save_LD=$LD
12262
12968
  lt_save_GCC=$GCC
12263
12969
  GCC=$GXX
12275
12981
  fi
12276
12982
  test -z "${LDCXX+set}" || LD=$LDCXX
12277
12983
  CC=${CXX-"c++"}
 
12984
  CFLAGS=$CXXFLAGS
12278
12985
  compiler=$CC
12279
12986
  compiler_CXX=$CC
12280
12987
  for cc_temp in $compiler""; do
12285
12992
    *) break;;
12286
12993
  esac
12287
12994
done
12288
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12995
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12289
12996
 
12290
12997
 
12291
12998
  if test -n "$compiler"; then
12348
13055
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12349
13056
$as_echo_n "checking for non-GNU ld... " >&6; }
12350
13057
fi
12351
 
if test "${lt_cv_path_LD+set}" = set; then :
 
13058
if ${lt_cv_path_LD+:} false; then :
12352
13059
  $as_echo_n "(cached) " >&6
12353
13060
else
12354
13061
  if test -z "$LD"; then
12385
13092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386
13093
$as_echo "no" >&6; }
12387
13094
fi
12388
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
13095
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12389
13096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12390
13097
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12391
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
13098
if ${lt_cv_prog_gnu_ld+:} false; then :
12392
13099
  $as_echo_n "(cached) " >&6
12393
13100
else
12394
13101
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12414
13121
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12415
13122
      # archiving commands below assume that GNU ld is being used.
12416
13123
      if test "$with_gnu_ld" = yes; then
12417
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418
 
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13124
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13125
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419
13126
 
12420
13127
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12421
13128
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12447
13154
      # Commands to make compiler produce verbose output that lists
12448
13155
      # what "hidden" libraries, object files and flags are used when
12449
13156
      # linking a shared library.
12450
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13157
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12451
13158
 
12452
13159
    else
12453
13160
      GXX=no
12557
13264
          allow_undefined_flag_CXX='-berok'
12558
13265
          # Determine the default libpath from the value encoded in an empty
12559
13266
          # executable.
12560
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13267
          if test "${lt_cv_aix_libpath+set}" = set; then
 
13268
  aix_libpath=$lt_cv_aix_libpath
 
13269
else
 
13270
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13271
  $as_echo_n "(cached) " >&6
 
13272
else
 
13273
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561
13274
/* end confdefs.h.  */
12562
13275
 
12563
13276
int
12570
13283
_ACEOF
12571
13284
if ac_fn_cxx_try_link "$LINENO"; then :
12572
13285
 
12573
 
lt_aix_libpath_sed='
12574
 
    /Import File Strings/,/^$/ {
12575
 
        /^0/ {
12576
 
            s/^0  *\(.*\)$/\1/
12577
 
            p
12578
 
        }
12579
 
    }'
12580
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12581
 
# Check for a 64-bit object if we didn't find anything.
12582
 
if test -z "$aix_libpath"; then
12583
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584
 
fi
 
13286
  lt_aix_libpath_sed='
 
13287
      /Import File Strings/,/^$/ {
 
13288
          /^0/ {
 
13289
              s/^0  *\([^ ]*\) *$/\1/
 
13290
              p
 
13291
          }
 
13292
      }'
 
13293
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13294
  # Check for a 64-bit object if we didn't find anything.
 
13295
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13296
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13297
  fi
12585
13298
fi
12586
13299
rm -f core conftest.err conftest.$ac_objext \
12587
13300
    conftest$ac_exeext conftest.$ac_ext
12588
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13301
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13302
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13303
  fi
 
13304
 
 
13305
fi
 
13306
 
 
13307
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13308
fi
12589
13309
 
12590
13310
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12591
13311
 
12592
 
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13312
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12593
13313
        else
12594
13314
          if test "$host_cpu" = ia64; then
12595
13315
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12598
13318
          else
12599
13319
            # Determine the default libpath from the value encoded in an
12600
13320
            # empty executable.
12601
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13321
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13322
  aix_libpath=$lt_cv_aix_libpath
 
13323
else
 
13324
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
13325
  $as_echo_n "(cached) " >&6
 
13326
else
 
13327
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602
13328
/* end confdefs.h.  */
12603
13329
 
12604
13330
int
12611
13337
_ACEOF
12612
13338
if ac_fn_cxx_try_link "$LINENO"; then :
12613
13339
 
12614
 
lt_aix_libpath_sed='
12615
 
    /Import File Strings/,/^$/ {
12616
 
        /^0/ {
12617
 
            s/^0  *\(.*\)$/\1/
12618
 
            p
12619
 
        }
12620
 
    }'
12621
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622
 
# Check for a 64-bit object if we didn't find anything.
12623
 
if test -z "$aix_libpath"; then
12624
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625
 
fi
 
13340
  lt_aix_libpath_sed='
 
13341
      /Import File Strings/,/^$/ {
 
13342
          /^0/ {
 
13343
              s/^0  *\([^ ]*\) *$/\1/
 
13344
              p
 
13345
          }
 
13346
      }'
 
13347
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13348
  # Check for a 64-bit object if we didn't find anything.
 
13349
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13350
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13351
  fi
12626
13352
fi
12627
13353
rm -f core conftest.err conftest.$ac_objext \
12628
13354
    conftest$ac_exeext conftest.$ac_ext
12629
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13355
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
13356
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13357
  fi
 
13358
 
 
13359
fi
 
13360
 
 
13361
  aix_libpath=$lt_cv_aix_libpath__CXX
 
13362
fi
12630
13363
 
12631
13364
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12632
13365
            # Warning - without using the other run time loading flags,
12633
13366
            # -berok will link without error, but may produce a broken library.
12634
13367
            no_undefined_flag_CXX=' ${wl}-bernotok'
12635
13368
            allow_undefined_flag_CXX=' ${wl}-berok'
12636
 
            # Exported symbols can be pulled into shared objects from archives
12637
 
            whole_archive_flag_spec_CXX='$convenience'
 
13369
            if test "$with_gnu_ld" = yes; then
 
13370
              # We only use this code for GNU lds that support --whole-archive.
 
13371
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13372
            else
 
13373
              # Exported symbols can be pulled into shared objects from archives
 
13374
              whole_archive_flag_spec_CXX='$convenience'
 
13375
            fi
12638
13376
            archive_cmds_need_lc_CXX=yes
12639
13377
            # This is similar to how AIX traditionally builds its shared
12640
13378
            # libraries.
12664
13402
        ;;
12665
13403
 
12666
13404
      cygwin* | mingw* | pw32* | cegcc*)
12667
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12668
 
        # as there is no search path for DLLs.
12669
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12670
 
        allow_undefined_flag_CXX=unsupported
12671
 
        always_export_symbols_CXX=no
12672
 
        enable_shared_with_static_runtimes_CXX=yes
 
13405
        case $GXX,$cc_basename in
 
13406
        ,cl* | no,cl*)
 
13407
          # Native MSVC
 
13408
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13409
          # no search path for DLLs.
 
13410
          hardcode_libdir_flag_spec_CXX=' '
 
13411
          allow_undefined_flag_CXX=unsupported
 
13412
          always_export_symbols_CXX=yes
 
13413
          file_list_spec_CXX='@'
 
13414
          # Tell ltmain to make .lib files, not .a files.
 
13415
          libext=lib
 
13416
          # Tell ltmain to make .dll files, not .so files.
 
13417
          shrext_cmds=".dll"
 
13418
          # FIXME: Setting linknames here is a bad hack.
 
13419
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
13420
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13421
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
13422
            else
 
13423
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
13424
            fi~
 
13425
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
13426
            linknames='
 
13427
          # The linker will not automatically build a static lib if we build a DLL.
 
13428
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
13429
          enable_shared_with_static_runtimes_CXX=yes
 
13430
          # Don't use ranlib
 
13431
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
13432
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
13433
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
13434
            case $lt_outputfile in
 
13435
              *.exe|*.EXE) ;;
 
13436
              *)
 
13437
                lt_outputfile="$lt_outputfile.exe"
 
13438
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
13439
                ;;
 
13440
            esac~
 
13441
            func_to_tool_file "$lt_outputfile"~
 
13442
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
13443
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
13444
              $RM "$lt_outputfile.manifest";
 
13445
            fi'
 
13446
          ;;
 
13447
        *)
 
13448
          # g++
 
13449
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13450
          # as there is no search path for DLLs.
 
13451
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13452
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
13453
          allow_undefined_flag_CXX=unsupported
 
13454
          always_export_symbols_CXX=no
 
13455
          enable_shared_with_static_runtimes_CXX=yes
12673
13456
 
12674
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12675
 
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12676
 
          # If the export-symbols file already is a .def file (1st line
12677
 
          # is EXPORTS), use it as is; otherwise, prepend...
12678
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12679
 
            cp $export_symbols $output_objdir/$soname.def;
12680
 
          else
12681
 
            echo EXPORTS > $output_objdir/$soname.def;
12682
 
            cat $export_symbols >> $output_objdir/$soname.def;
12683
 
          fi~
12684
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12685
 
        else
12686
 
          ld_shlibs_CXX=no
12687
 
        fi
12688
 
        ;;
 
13457
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13458
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13459
            # If the export-symbols file already is a .def file (1st line
 
13460
            # is EXPORTS), use it as is; otherwise, prepend...
 
13461
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13462
              cp $export_symbols $output_objdir/$soname.def;
 
13463
            else
 
13464
              echo EXPORTS > $output_objdir/$soname.def;
 
13465
              cat $export_symbols >> $output_objdir/$soname.def;
 
13466
            fi~
 
13467
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13468
          else
 
13469
            ld_shlibs_CXX=no
 
13470
          fi
 
13471
          ;;
 
13472
        esac
 
13473
        ;;
12689
13474
      darwin* | rhapsody*)
12690
13475
 
12691
13476
 
12693
13478
  hardcode_direct_CXX=no
12694
13479
  hardcode_automatic_CXX=yes
12695
13480
  hardcode_shlibpath_var_CXX=unsupported
12696
 
  whole_archive_flag_spec_CXX=''
 
13481
  if test "$lt_cv_ld_force_load" = "yes"; then
 
13482
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
13483
  else
 
13484
    whole_archive_flag_spec_CXX=''
 
13485
  fi
12697
13486
  link_all_deplibs_CXX=yes
12698
13487
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12699
13488
  case $cc_basename in
12701
13490
     *) _lt_dar_can_shared=$GCC ;;
12702
13491
  esac
12703
13492
  if test "$_lt_dar_can_shared" = "yes"; then
12704
 
    output_verbose_link_cmd=echo
 
13493
    output_verbose_link_cmd=func_echo_all
12705
13494
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12706
13495
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12707
13496
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12754
13543
      gnu*)
12755
13544
        ;;
12756
13545
 
 
13546
      haiku*)
 
13547
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13548
        link_all_deplibs_CXX=yes
 
13549
        ;;
 
13550
 
12757
13551
      hpux9*)
12758
13552
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12759
13553
        hardcode_libdir_separator_CXX=:
12778
13572
            # explicitly linking system object files so we need to strip them
12779
13573
            # from the output so that they don't get included in the library
12780
13574
            # dependencies.
12781
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13575
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12782
13576
            ;;
12783
13577
          *)
12784
13578
            if test "$GXX" = yes; then
12785
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
13579
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12786
13580
            else
12787
13581
              # FIXME: insert proper C++ library support
12788
13582
              ld_shlibs_CXX=no
12843
13637
            # explicitly linking system object files so we need to strip them
12844
13638
            # from the output so that they don't get included in the library
12845
13639
            # dependencies.
12846
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13640
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12847
13641
            ;;
12848
13642
          *)
12849
13643
            if test "$GXX" = yes; then
12853
13647
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854
13648
                    ;;
12855
13649
                  ia64*)
12856
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13650
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857
13651
                    ;;
12858
13652
                  *)
12859
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13653
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12860
13654
                    ;;
12861
13655
                esac
12862
13656
              fi
12886
13680
        case $cc_basename in
12887
13681
          CC*)
12888
13682
            # SGI C++
12889
 
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13683
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12890
13684
 
12891
13685
            # Archives containing C++ object files must be created using
12892
13686
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12897
13691
          *)
12898
13692
            if test "$GXX" = yes; then
12899
13693
              if test "$with_gnu_ld" = no; then
12900
 
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13694
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12901
13695
              else
12902
 
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
13696
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12903
13697
              fi
12904
13698
            fi
12905
13699
            link_all_deplibs_CXX=yes
12910
13704
        inherit_rpath_CXX=yes
12911
13705
        ;;
12912
13706
 
12913
 
      linux* | k*bsd*-gnu)
 
13707
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12914
13708
        case $cc_basename in
12915
13709
          KCC*)
12916
13710
            # Kuck and Associates, Inc. (KAI) C++ Compiler
12928
13722
            # explicitly linking system object files so we need to strip them
12929
13723
            # from the output so that they don't get included in the library
12930
13724
            # dependencies.
12931
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13725
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12932
13726
 
12933
13727
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12934
13728
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12965
13759
          pgCC* | pgcpp*)
12966
13760
            # Portland Group C++ compiler
12967
13761
            case `$CC -V` in
12968
 
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
13762
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12969
13763
              prelink_cmds_CXX='tpldir=Template.dir~
12970
13764
                rm -rf $tpldir~
12971
13765
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12972
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
13766
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12973
13767
              old_archive_cmds_CXX='tpldir=Template.dir~
12974
13768
                rm -rf $tpldir~
12975
13769
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12976
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
13770
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12977
13771
                $RANLIB $oldlib'
12978
13772
              archive_cmds_CXX='tpldir=Template.dir~
12979
13773
                rm -rf $tpldir~
12980
13774
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12981
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13775
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12982
13776
              archive_expsym_cmds_CXX='tpldir=Template.dir~
12983
13777
                rm -rf $tpldir~
12984
13778
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12985
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13779
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12986
13780
              ;;
12987
 
            *) # Version 6 will use weak symbols
 
13781
            *) # Version 6 and above use weak symbols
12988
13782
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12989
13783
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12990
13784
              ;;
12992
13786
 
12993
13787
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12994
13788
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12995
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
13789
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12996
13790
            ;;
12997
13791
          cxx*)
12998
13792
            # Compaq C++
13011
13805
            # explicitly linking system object files so we need to strip them
13012
13806
            # from the output so that they don't get included in the library
13013
13807
            # dependencies.
13014
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13808
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13015
13809
            ;;
13016
 
          xl*)
 
13810
          xl* | mpixl* | bgxl*)
13017
13811
            # IBM XL 8.0 on PPC, with GNU ld
13018
13812
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13019
13813
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13033
13827
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13034
13828
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13035
13829
              hardcode_libdir_flag_spec_CXX='-R$libdir'
13036
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
13830
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13037
13831
              compiler_needs_object_CXX=yes
13038
13832
 
13039
13833
              # Not sure whether something based on
13040
13834
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13041
13835
              # would be better.
13042
 
              output_verbose_link_cmd='echo'
 
13836
              output_verbose_link_cmd='func_echo_all'
13043
13837
 
13044
13838
              # Archives containing C++ object files must be created using
13045
13839
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13108
13902
            export_dynamic_flag_spec_CXX='${wl}-E'
13109
13903
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13110
13904
          fi
13111
 
          output_verbose_link_cmd=echo
 
13905
          output_verbose_link_cmd=func_echo_all
13112
13906
        else
13113
13907
          ld_shlibs_CXX=no
13114
13908
        fi
13143
13937
            case $host in
13144
13938
              osf3*)
13145
13939
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13940
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13147
13941
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148
13942
                ;;
13149
13943
              *)
13150
13944
                allow_undefined_flag_CXX=' -expect_unresolved \*'
13151
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13945
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13152
13946
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13153
13947
                  echo "-hidden">> $lib.exp~
13154
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
13948
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13155
13949
                  $RM $lib.exp'
13156
13950
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13157
13951
                ;;
13167
13961
            # explicitly linking system object files so we need to strip them
13168
13962
            # from the output so that they don't get included in the library
13169
13963
            # dependencies.
13170
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13964
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13171
13965
            ;;
13172
13966
          *)
13173
13967
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13174
13968
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175
13969
              case $host in
13176
13970
                osf3*)
13177
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13971
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13178
13972
                  ;;
13179
13973
                *)
13180
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13974
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13181
13975
                  ;;
13182
13976
              esac
13183
13977
 
13187
13981
              # Commands to make compiler produce verbose output that lists
13188
13982
              # what "hidden" libraries, object files and flags are used when
13189
13983
              # linking a shared library.
13190
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13984
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13191
13985
 
13192
13986
            else
13193
13987
              # FIXME: insert proper C++ library support
13223
14017
 
13224
14018
      solaris*)
13225
14019
        case $cc_basename in
13226
 
          CC*)
 
14020
          CC* | sunCC*)
13227
14021
            # Sun C++ 4.2, 5.x and Centerline C++
13228
14022
            archive_cmds_need_lc_CXX=yes
13229
14023
            no_undefined_flag_CXX=' -zdefs'
13244
14038
            esac
13245
14039
            link_all_deplibs_CXX=yes
13246
14040
 
13247
 
            output_verbose_link_cmd='echo'
 
14041
            output_verbose_link_cmd='func_echo_all'
13248
14042
 
13249
14043
            # Archives containing C++ object files must be created using
13250
14044
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13264
14058
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13265
14059
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13266
14060
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13267
 
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14061
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13268
14062
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13269
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14063
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13270
14064
 
13271
14065
                # Commands to make compiler produce verbose output that lists
13272
14066
                # what "hidden" libraries, object files and flags are used when
13273
14067
                # linking a shared library.
13274
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14068
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13275
14069
              else
13276
14070
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
13277
14071
                # platform.
13282
14076
                # Commands to make compiler produce verbose output that lists
13283
14077
                # what "hidden" libraries, object files and flags are used when
13284
14078
                # linking a shared library.
13285
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14079
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13286
14080
              fi
13287
14081
 
13288
14082
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13336
14130
          CC*)
13337
14131
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338
14132
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14133
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
14134
              '"$old_archive_cmds_CXX"
 
14135
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
14136
              '"$reload_cmds_CXX"
13339
14137
            ;;
13340
14138
          *)
13341
14139
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13397
14195
};
13398
14196
_LT_EOF
13399
14197
 
 
14198
 
 
14199
_lt_libdeps_save_CFLAGS=$CFLAGS
 
14200
case "$CC $CFLAGS " in #(
 
14201
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
14202
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
14203
esac
 
14204
 
13400
14205
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13401
14206
  (eval $ac_compile) 2>&5
13402
14207
  ac_status=$?
13410
14215
  pre_test_object_deps_done=no
13411
14216
 
13412
14217
  for p in `eval "$output_verbose_link_cmd"`; do
13413
 
    case $p in
 
14218
    case ${prev}${p} in
13414
14219
 
13415
14220
    -L* | -R* | -l*)
13416
14221
       # Some compilers place space between "-{L,R}" and the path.
13419
14224
          test $p = "-R"; then
13420
14225
         prev=$p
13421
14226
         continue
13422
 
       else
13423
 
         prev=
13424
14227
       fi
13425
14228
 
 
14229
       # Expand the sysroot to ease extracting the directories later.
 
14230
       if test -z "$prev"; then
 
14231
         case $p in
 
14232
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
14233
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
14234
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
14235
         esac
 
14236
       fi
 
14237
       case $p in
 
14238
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
14239
       esac
13426
14240
       if test "$pre_test_object_deps_done" = no; then
13427
 
         case $p in
13428
 
         -L* | -R*)
 
14241
         case ${prev} in
 
14242
         -L | -R)
13429
14243
           # Internal compiler library paths should come after those
13430
14244
           # provided the user.  The postdeps already come after the
13431
14245
           # user supplied libs so there is no need to process them.
13445
14259
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13446
14260
         fi
13447
14261
       fi
 
14262
       prev=
13448
14263
       ;;
13449
14264
 
 
14265
    *.lto.$objext) ;; # Ignore GCC LTO objects
13450
14266
    *.$objext)
13451
14267
       # This assumes that the test object file only shows up
13452
14268
       # once in the compiler output.
13482
14298
fi
13483
14299
 
13484
14300
$RM -f confest.$objext
 
14301
CFLAGS=$_lt_libdeps_save_CFLAGS
13485
14302
 
13486
14303
# PORTME: override above test on systems where it is broken
13487
14304
case $host_os in
13517
14334
 
13518
14335
solaris*)
13519
14336
  case $cc_basename in
13520
 
  CC*)
 
14337
  CC* | sunCC*)
13521
14338
    # The more standards-conforming stlport4 library is
13522
14339
    # incompatible with the Cstd library. Avoid specifying
13523
14340
    # it if it's in CXXFLAGS. Ignore libCrun as
13582
14399
lt_prog_compiler_pic_CXX=
13583
14400
lt_prog_compiler_static_CXX=
13584
14401
 
13585
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13586
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13587
14402
 
13588
14403
  # C++ specific cases for pic, static, wl, etc.
13589
14404
  if test "$GXX" = yes; then
13633
14448
      # DJGPP does not support shared libraries at all
13634
14449
      lt_prog_compiler_pic_CXX=
13635
14450
      ;;
 
14451
    haiku*)
 
14452
      # PIC is the default for Haiku.
 
14453
      # The "-static" flag exists, but is broken.
 
14454
      lt_prog_compiler_static_CXX=
 
14455
      ;;
13636
14456
    interix[3-9]*)
13637
14457
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13638
14458
      # Instead, we relocate shared libraries at runtime.
13682
14502
          ;;
13683
14503
        esac
13684
14504
        ;;
 
14505
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
14506
        # This hack is so that the source file can tell whether it is being
 
14507
        # built for inclusion in a dll (and should export symbols for example).
 
14508
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14509
        ;;
13685
14510
      dgux*)
13686
14511
        case $cc_basename in
13687
14512
          ec++*)
13738
14563
            ;;
13739
14564
        esac
13740
14565
        ;;
13741
 
      linux* | k*bsd*-gnu)
 
14566
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13742
14567
        case $cc_basename in
13743
14568
          KCC*)
13744
14569
            # KAI C++ Compiler
13771
14596
            lt_prog_compiler_pic_CXX=
13772
14597
            lt_prog_compiler_static_CXX='-non_shared'
13773
14598
            ;;
13774
 
          xlc* | xlC*)
13775
 
            # IBM XL 8.0 on PPC
 
14599
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
14600
            # IBM XL 8.0, 9.0 on PPC and BlueGene
13776
14601
            lt_prog_compiler_wl_CXX='-Wl,'
13777
14602
            lt_prog_compiler_pic_CXX='-qpic'
13778
14603
            lt_prog_compiler_static_CXX='-qstaticlink'
13802
14627
            ;;
13803
14628
        esac
13804
14629
        ;;
13805
 
      netbsd* | netbsdelf*-gnu)
 
14630
      netbsd*)
13806
14631
        ;;
13807
14632
      *qnx* | *nto*)
13808
14633
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13834
14659
        ;;
13835
14660
      solaris*)
13836
14661
        case $cc_basename in
13837
 
          CC*)
 
14662
          CC* | sunCC*)
13838
14663
            # Sun C++ 4.2, 5.x and Centerline C++
13839
14664
            lt_prog_compiler_pic_CXX='-KPIC'
13840
14665
            lt_prog_compiler_static_CXX='-Bstatic'
13899
14724
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13900
14725
    ;;
13901
14726
esac
13902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13903
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13904
 
 
13905
 
 
 
14727
 
 
14728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14729
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14730
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14731
  $as_echo_n "(cached) " >&6
 
14732
else
 
14733
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14734
fi
 
14735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14736
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14737
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13906
14738
 
13907
14739
#
13908
14740
# Check to make sure the PIC flag actually works.
13910
14742
if test -n "$lt_prog_compiler_pic_CXX"; then
13911
14743
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13912
14744
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13913
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
14745
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13914
14746
  $as_echo_n "(cached) " >&6
13915
14747
else
13916
14748
  lt_cv_prog_compiler_pic_works_CXX=no
13926
14758
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13927
14759
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13928
14760
   -e 's:$: $lt_compiler_flag:'`
13929
 
   (eval echo "\"\$as_me:13929: $lt_compile\"" >&5)
 
14761
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13930
14762
   (eval "$lt_compile" 2>conftest.err)
13931
14763
   ac_status=$?
13932
14764
   cat conftest.err >&5
13933
 
   echo "$as_me:13933: \$? = $ac_status" >&5
 
14765
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934
14766
   if (exit $ac_status) && test -s "$ac_outfile"; then
13935
14767
     # The compiler can only warn and ignore the option if not recognized
13936
14768
     # So say no if there are warnings other than the usual output.
13937
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14769
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13938
14770
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13939
14771
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13940
14772
       lt_cv_prog_compiler_pic_works_CXX=yes
13960
14792
 
13961
14793
 
13962
14794
 
 
14795
 
 
14796
 
13963
14797
#
13964
14798
# Check to make sure the static flag actually works.
13965
14799
#
13966
14800
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13967
14801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13968
14802
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13969
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
14803
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13970
14804
  $as_echo_n "(cached) " >&6
13971
14805
else
13972
14806
  lt_cv_prog_compiler_static_works_CXX=no
13979
14813
     if test -s conftest.err; then
13980
14814
       # Append any errors to the config.log.
13981
14815
       cat conftest.err 1>&5
13982
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14816
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13983
14817
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13984
14818
       if diff conftest.exp conftest.er2 >/dev/null; then
13985
14819
         lt_cv_prog_compiler_static_works_CXX=yes
14006
14840
 
14007
14841
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14008
14842
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14009
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
14843
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14010
14844
  $as_echo_n "(cached) " >&6
14011
14845
else
14012
14846
  lt_cv_prog_compiler_c_o_CXX=no
14025
14859
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14026
14860
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14027
14861
   -e 's:$: $lt_compiler_flag:'`
14028
 
   (eval echo "\"\$as_me:14028: $lt_compile\"" >&5)
 
14862
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14029
14863
   (eval "$lt_compile" 2>out/conftest.err)
14030
14864
   ac_status=$?
14031
14865
   cat out/conftest.err >&5
14032
 
   echo "$as_me:14032: \$? = $ac_status" >&5
 
14866
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033
14867
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14034
14868
   then
14035
14869
     # The compiler can only warn and ignore the option if not recognized
14036
14870
     # So say no if there are warnings
14037
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14871
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14038
14872
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14039
14873
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14040
14874
       lt_cv_prog_compiler_c_o_CXX=yes
14058
14892
 
14059
14893
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14060
14894
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14061
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
14895
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14062
14896
  $as_echo_n "(cached) " >&6
14063
14897
else
14064
14898
  lt_cv_prog_compiler_c_o_CXX=no
14077
14911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14078
14912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079
14913
   -e 's:$: $lt_compiler_flag:'`
14080
 
   (eval echo "\"\$as_me:14080: $lt_compile\"" >&5)
 
14914
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14081
14915
   (eval "$lt_compile" 2>out/conftest.err)
14082
14916
   ac_status=$?
14083
14917
   cat out/conftest.err >&5
14084
 
   echo "$as_me:14084: \$? = $ac_status" >&5
 
14918
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085
14919
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086
14920
   then
14087
14921
     # The compiler can only warn and ignore the option if not recognized
14088
14922
     # So say no if there are warnings
14089
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14923
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14090
14924
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14091
14925
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14092
14926
       lt_cv_prog_compiler_c_o_CXX=yes
14137
14971
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14138
14972
 
14139
14973
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14974
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14140
14975
  case $host_os in
14141
14976
  aix[4-9]*)
14142
14977
    # If we're using GNU nm, then we don't want the "-C" option.
14143
14978
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14979
    # Also, AIX nm treats weak defined symbols like other global defined
 
14980
    # symbols, whereas GNU nm marks them as "W".
14144
14981
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14145
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14982
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14146
14983
    else
14147
14984
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14148
14985
    fi
14149
14986
    ;;
14150
14987
  pw32*)
14151
14988
    export_symbols_cmds_CXX="$ltdll_cmds"
14152
 
  ;;
 
14989
    ;;
14153
14990
  cygwin* | mingw* | cegcc*)
14154
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14155
 
  ;;
14156
 
  linux* | k*bsd*-gnu)
14157
 
    link_all_deplibs_CXX=no
14158
 
  ;;
 
14991
    case $cc_basename in
 
14992
    cl*) ;;
 
14993
    *)
 
14994
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14995
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14996
      ;;
 
14997
    esac
 
14998
    ;;
14159
14999
  *)
14160
15000
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161
 
  ;;
 
15001
    ;;
14162
15002
  esac
14163
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14164
15003
 
14165
15004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14166
15005
$as_echo "$ld_shlibs_CXX" >&6; }
14192
15031
      # to ld, don't add -lc before -lgcc.
14193
15032
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14194
15033
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14195
 
      $RM conftest*
14196
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15034
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
15035
  $as_echo_n "(cached) " >&6
 
15036
else
 
15037
  $RM conftest*
 
15038
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14197
15039
 
14198
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
15040
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14199
15041
  (eval $ac_compile) 2>&5
14200
15042
  ac_status=$?
14201
15043
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202
15044
  test $ac_status = 0; } 2>conftest.err; then
14203
 
        soname=conftest
14204
 
        lib=conftest
14205
 
        libobjs=conftest.$ac_objext
14206
 
        deplibs=
14207
 
        wl=$lt_prog_compiler_wl_CXX
14208
 
        pic_flag=$lt_prog_compiler_pic_CXX
14209
 
        compiler_flags=-v
14210
 
        linker_flags=-v
14211
 
        verstring=
14212
 
        output_objdir=.
14213
 
        libname=conftest
14214
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14215
 
        allow_undefined_flag_CXX=
14216
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
15045
          soname=conftest
 
15046
          lib=conftest
 
15047
          libobjs=conftest.$ac_objext
 
15048
          deplibs=
 
15049
          wl=$lt_prog_compiler_wl_CXX
 
15050
          pic_flag=$lt_prog_compiler_pic_CXX
 
15051
          compiler_flags=-v
 
15052
          linker_flags=-v
 
15053
          verstring=
 
15054
          output_objdir=.
 
15055
          libname=conftest
 
15056
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
15057
          allow_undefined_flag_CXX=
 
15058
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14217
15059
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14218
15060
  ac_status=$?
14219
15061
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220
15062
  test $ac_status = 0; }
14221
 
        then
14222
 
          archive_cmds_need_lc_CXX=no
14223
 
        else
14224
 
          archive_cmds_need_lc_CXX=yes
14225
 
        fi
14226
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14227
 
      else
14228
 
        cat conftest.err 1>&5
14229
 
      fi
14230
 
      $RM conftest*
14231
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14232
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
15063
          then
 
15064
            lt_cv_archive_cmds_need_lc_CXX=no
 
15065
          else
 
15066
            lt_cv_archive_cmds_need_lc_CXX=yes
 
15067
          fi
 
15068
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
15069
        else
 
15070
          cat conftest.err 1>&5
 
15071
        fi
 
15072
        $RM conftest*
 
15073
 
 
15074
fi
 
15075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
15076
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
15077
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14233
15078
      ;;
14234
15079
    esac
14235
15080
  fi
14386
15231
  m68k)
14387
15232
    library_names_spec='$libname.ixlibrary $libname.a'
14388
15233
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14389
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15234
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14390
15235
    ;;
14391
15236
  esac
14392
15237
  ;;
14417
15262
  need_version=no
14418
15263
  need_lib_prefix=no
14419
15264
 
14420
 
  case $GCC,$host_os in
14421
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
15265
  case $GCC,$cc_basename in
 
15266
  yes,*)
 
15267
    # gcc
14422
15268
    library_names_spec='$libname.dll.a'
14423
15269
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14424
15270
    postinstall_cmds='base_file=`basename \${file}`~
14439
15285
    cygwin*)
14440
15286
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14441
15287
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14442
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15288
 
14443
15289
      ;;
14444
15290
    mingw* | cegcc*)
14445
15291
      # MinGW DLLs use traditional 'lib' prefix
14446
15292
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14447
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14448
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14449
 
        # It is most probably a Windows format PATH printed by
14450
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14451
 
        # path with ; separators, and with drive letters. We can handle the
14452
 
        # drive letters (cygwin fileutils understands them), so leave them,
14453
 
        # especially as we might pass files found there to a mingw objdump,
14454
 
        # which wouldn't understand a cygwinified path. Ahh.
14455
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14456
 
      else
14457
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14458
 
      fi
14459
15293
      ;;
14460
15294
    pw32*)
14461
15295
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14462
15296
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463
15297
      ;;
14464
15298
    esac
 
15299
    dynamic_linker='Win32 ld.exe'
 
15300
    ;;
 
15301
 
 
15302
  *,cl*)
 
15303
    # Native MSVC
 
15304
    libname_spec='$name'
 
15305
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15306
    library_names_spec='${libname}.dll.lib'
 
15307
 
 
15308
    case $build_os in
 
15309
    mingw*)
 
15310
      sys_lib_search_path_spec=
 
15311
      lt_save_ifs=$IFS
 
15312
      IFS=';'
 
15313
      for lt_path in $LIB
 
15314
      do
 
15315
        IFS=$lt_save_ifs
 
15316
        # Let DOS variable expansion print the short 8.3 style file name.
 
15317
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
15318
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
15319
      done
 
15320
      IFS=$lt_save_ifs
 
15321
      # Convert to MSYS style.
 
15322
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
15323
      ;;
 
15324
    cygwin*)
 
15325
      # Convert to unix form, then to dos form, then back to unix form
 
15326
      # but this time dos style (no spaces!) so that the unix form looks
 
15327
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
15328
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
15329
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
15330
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15331
      ;;
 
15332
    *)
 
15333
      sys_lib_search_path_spec="$LIB"
 
15334
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15335
        # It is most probably a Windows format PATH.
 
15336
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15337
      else
 
15338
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
15339
      fi
 
15340
      # FIXME: find the short name or the path components, as spaces are
 
15341
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
15342
      ;;
 
15343
    esac
 
15344
 
 
15345
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15346
    postinstall_cmds='base_file=`basename \${file}`~
 
15347
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15348
      dldir=$destdir/`dirname \$dlpath`~
 
15349
      test -d \$dldir || mkdir -p \$dldir~
 
15350
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15351
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15352
      dlpath=$dir/\$dldll~
 
15353
       $RM \$dlpath'
 
15354
    shlibpath_overrides_runpath=yes
 
15355
    dynamic_linker='Win32 link.exe'
14465
15356
    ;;
14466
15357
 
14467
15358
  *)
 
15359
    # Assume MSVC wrapper
14468
15360
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15361
    dynamic_linker='Win32 ld.exe'
14469
15362
    ;;
14470
15363
  esac
14471
 
  dynamic_linker='Win32 ld.exe'
14472
15364
  # FIXME: first we should search . and the directory the executable is in
14473
15365
  shlibpath_var=PATH
14474
15366
  ;;
14554
15446
  hardcode_into_libs=yes
14555
15447
  ;;
14556
15448
 
 
15449
haiku*)
 
15450
  version_type=linux
 
15451
  need_lib_prefix=no
 
15452
  need_version=no
 
15453
  dynamic_linker="$host_os runtime_loader"
 
15454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15455
  soname_spec='${libname}${release}${shared_ext}$major'
 
15456
  shlibpath_var=LIBRARY_PATH
 
15457
  shlibpath_overrides_runpath=yes
 
15458
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
15459
  hardcode_into_libs=yes
 
15460
  ;;
 
15461
 
14557
15462
hpux9* | hpux10* | hpux11*)
14558
15463
  # Give a soname corresponding to the major version so that dld.sl refuses to
14559
15464
  # link against other versions.
14596
15501
    soname_spec='${libname}${release}${shared_ext}$major'
14597
15502
    ;;
14598
15503
  esac
14599
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15504
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14600
15505
  postinstall_cmds='chmod 555 $lib'
 
15506
  # or fails outright, so override atomically:
 
15507
  install_override_mode=555
14601
15508
  ;;
14602
15509
 
14603
15510
interix[3-9]*)
14655
15562
  ;;
14656
15563
 
14657
15564
# This must be Linux ELF.
14658
 
linux* | k*bsd*-gnu)
 
15565
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14659
15566
  version_type=linux
14660
15567
  need_lib_prefix=no
14661
15568
  need_version=no
14664
15571
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14665
15572
  shlibpath_var=LD_LIBRARY_PATH
14666
15573
  shlibpath_overrides_runpath=no
 
15574
 
14667
15575
  # Some binutils ld are patched to set DT_RUNPATH
14668
 
  save_LDFLAGS=$LDFLAGS
14669
 
  save_libdir=$libdir
14670
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14671
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14672
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15576
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
15577
  $as_echo_n "(cached) " >&6
 
15578
else
 
15579
  lt_cv_shlibpath_overrides_runpath=no
 
15580
    save_LDFLAGS=$LDFLAGS
 
15581
    save_libdir=$libdir
 
15582
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15583
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15584
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673
15585
/* end confdefs.h.  */
14674
15586
 
14675
15587
int
14682
15594
_ACEOF
14683
15595
if ac_fn_cxx_try_link "$LINENO"; then :
14684
15596
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14685
 
  shlibpath_overrides_runpath=yes
 
15597
  lt_cv_shlibpath_overrides_runpath=yes
14686
15598
fi
14687
15599
fi
14688
15600
rm -f core conftest.err conftest.$ac_objext \
14689
15601
    conftest$ac_exeext conftest.$ac_ext
14690
 
  LDFLAGS=$save_LDFLAGS
14691
 
  libdir=$save_libdir
 
15602
    LDFLAGS=$save_LDFLAGS
 
15603
    libdir=$save_libdir
 
15604
 
 
15605
fi
 
15606
 
 
15607
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14692
15608
 
14693
15609
  # This implies no fast_install, which is unacceptable.
14694
15610
  # Some rework will be needed to allow for fast_install
14697
15613
 
14698
15614
  # Append ld.so.conf contents to the search path
14699
15615
  if test -f /etc/ld.so.conf; then
14700
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15616
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14701
15617
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14702
15618
  fi
14703
15619
 
14710
15626
  dynamic_linker='GNU/Linux ld.so'
14711
15627
  ;;
14712
15628
 
14713
 
netbsdelf*-gnu)
14714
 
  version_type=linux
14715
 
  need_lib_prefix=no
14716
 
  need_version=no
14717
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14718
 
  soname_spec='${libname}${release}${shared_ext}$major'
14719
 
  shlibpath_var=LD_LIBRARY_PATH
14720
 
  shlibpath_overrides_runpath=no
14721
 
  hardcode_into_libs=yes
14722
 
  dynamic_linker='NetBSD ld.elf_so'
14723
 
  ;;
14724
 
 
14725
15629
netbsd*)
14726
15630
  version_type=sunos
14727
15631
  need_lib_prefix=no
14961
15865
 
14962
15866
 
14963
15867
 
 
15868
 
 
15869
 
14964
15870
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14965
15871
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14966
15872
hardcode_action_CXX=
15008
15914
  fi # test -n "$compiler"
15009
15915
 
15010
15916
  CC=$lt_save_CC
 
15917
  CFLAGS=$lt_save_CFLAGS
15011
15918
  LDCXX=$LD
15012
15919
  LD=$lt_save_LD
15013
15920
  GCC=$lt_save_GCC
15058
15965
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15059
15966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15060
15967
$as_echo_n "checking for $ac_word... " >&6; }
15061
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
15968
if ${ac_cv_prog_RANLIB+:} false; then :
15062
15969
  $as_echo_n "(cached) " >&6
15063
15970
else
15064
15971
  if test -n "$RANLIB"; then
15098
16005
set dummy ranlib; ac_word=$2
15099
16006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15100
16007
$as_echo_n "checking for $ac_word... " >&6; }
15101
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
16008
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15102
16009
  $as_echo_n "(cached) " >&6
15103
16010
else
15104
16011
  if test -n "$ac_ct_RANLIB"; then
15150
16057
        if test -z "`${CC-cc} $CFLAGS -fPIC -c conftest.c 2>&1`"; then
15151
16058
          CFLAGS="$CFLAGS -fPIC"
15152
16059
        fi
15153
 
        if test -z "`${CXX-g++} $CXXFLAGS -fPIC -c conftest.c 2>&1`"; then
 
16060
        echo 'void f(){}' > conftest.cpp
 
16061
        if test -z "`${CXX-g++} $CXXFLAGS -fPIC -c conftest.cpp 2>&1`"; then
15154
16062
          CXXFLAGS="$CXXFLAGS -fPIC"
15155
16063
        fi
15156
16064
        rm -f conftest*
15304
16212
 
15305
16213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15306
16214
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15307
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
16215
if ${ac_cv_lib_dl_dlopen+:} false; then :
15308
16216
  $as_echo_n "(cached) " >&6
15309
16217
else
15310
16218
  ac_check_lib_save_LIBS=$LIBS
15338
16246
fi
15339
16247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15340
16248
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15341
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
16249
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15342
16250
  cat >>confdefs.h <<_ACEOF
15343
16251
#define HAVE_LIBDL 1
15344
16252
_ACEOF
15350
16258
 
15351
16259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15352
16260
$as_echo_n "checking for nanosleep in -lrt... " >&6; }
15353
 
if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
 
16261
if ${ac_cv_lib_rt_nanosleep+:} false; then :
15354
16262
  $as_echo_n "(cached) " >&6
15355
16263
else
15356
16264
  ac_check_lib_save_LIBS=$LIBS
15384
16292
fi
15385
16293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15386
16294
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15387
 
if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
 
16295
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
15388
16296
  cat >>confdefs.h <<_ACEOF
15389
16297
#define HAVE_LIBRT 1
15390
16298
_ACEOF
15400
16308
    *)
15401
16309
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
15402
16310
$as_echo_n "checking for sin in -lm... " >&6; }
15403
 
if test "${ac_cv_lib_m_sin+set}" = set; then :
 
16311
if ${ac_cv_lib_m_sin+:} false; then :
15404
16312
  $as_echo_n "(cached) " >&6
15405
16313
else
15406
16314
  ac_check_lib_save_LIBS=$LIBS
15434
16342
fi
15435
16343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
15436
16344
$as_echo "$ac_cv_lib_m_sin" >&6; }
15437
 
if test "x$ac_cv_lib_m_sin" = x""yes; then :
 
16345
if test "x$ac_cv_lib_m_sin" = xyes; then :
15438
16346
  cat >>confdefs.h <<_ACEOF
15439
16347
#define HAVE_LIBM 1
15440
16348
_ACEOF
15448
16356
 
15449
16357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15450
16358
$as_echo_n "checking for ANSI C header files... " >&6; }
15451
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
16359
if ${ac_cv_header_stdc+:} false; then :
15452
16360
  $as_echo_n "(cached) " >&6
15453
16361
else
15454
16362
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562
16470
do :
15563
16471
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564
16472
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15565
 
eval as_val=\$$as_ac_Header
15566
 
   if test "x$as_val" = x""yes; then :
 
16473
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567
16474
  cat >>confdefs.h <<_ACEOF
15568
16475
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569
16476
_ACEOF
15575
16482
 
15576
16483
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15577
16484
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15578
 
if test "${ac_cv_c_bigendian+set}" = set; then :
 
16485
if ${ac_cv_c_bigendian+:} false; then :
15579
16486
  $as_echo_n "(cached) " >&6
15580
16487
else
15581
16488
  ac_cv_c_bigendian=unknown
15793
16700
 
15794
16701
     ;; #(
15795
16702
   *)
15796
 
     as_fn_error "unknown endianness
 
16703
     as_fn_error $? "unknown endianness
15797
16704
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15798
16705
 esac
15799
16706
 
15826
16733
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64bit file io" >&5
15827
16734
$as_echo_n "checking for 64bit file io... " >&6; }
15828
16735
 
 
16736
    case "${host_os}" in
 
16737
    *mingw*)
 
16738
        with_unix_stdio_64=no
 
16739
 
 
16740
cat >>confdefs.h <<_ACEOF
 
16741
#define VSI_STAT64 _stat64
 
16742
_ACEOF
 
16743
 
 
16744
 
 
16745
cat >>confdefs.h <<_ACEOF
 
16746
#define VSI_STAT64_T __stat64
 
16747
_ACEOF
 
16748
 
 
16749
        ;;
 
16750
  esac
 
16751
 
15829
16752
  if test x"$with_unix_stdio_64" = x"yes" ; then
15830
16753
    VSI_FTELL64=ftell64
15831
16754
    VSI_FSEEK64=fseek64
15898
16821
$as_echo "yes" >&6; }
15899
16822
 
15900
16823
    ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64"
15901
 
if test "x$ac_cv_func_stat64" = x""yes; then :
 
16824
if test "x$ac_cv_func_stat64" = xyes; then :
15902
16825
  VSI_STAT64=stat64 VSI_STAT64_T=stat64
15903
16826
else
15904
16827
  VSI_STAT64=stat VSI_STAT64_T=stat
15905
16828
fi
15906
16829
 
15907
16830
    ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
15908
 
if test "x$ac_cv_func_fopen64" = x""yes; then :
 
16831
if test "x$ac_cv_func_fopen64" = xyes; then :
15909
16832
  VSI_FOPEN64=fopen64
15910
16833
else
15911
16834
  VSI_FOPEN64=fopen
15912
16835
fi
15913
16836
 
 
16837
    ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
 
16838
if test "x$ac_cv_func_ftruncate64" = xyes; then :
 
16839
  VSI_FTRUNCATE64=ftruncate64
 
16840
else
 
16841
  VSI_FTRUNCATE64=ftruncate
 
16842
fi
 
16843
 
15914
16844
 
15915
16845
 
15916
16846
$as_echo "#define UNIX_STDIO_64 1" >>confdefs.h
15919
16849
$as_echo "#define VSI_LARGE_API_SUPPORTED 1" >>confdefs.h
15920
16850
 
15921
16851
 
15922
 
    export VSI_FTELL64 VSI_FSEEK64 VSI_STAT64 VSI_STAT64_T VSI_OPEN64
 
16852
    export VSI_FTELL64 VSI_FSEEK64 VSI_STAT64 VSI_STAT64_T VSI_OPEN64 VSI_FTRUNCATE64
15923
16853
 
15924
16854
cat >>confdefs.h <<_ACEOF
15925
16855
#define VSI_FTELL64 $VSI_FTELL64
15945
16875
#define VSI_FOPEN64 $VSI_FOPEN64
15946
16876
_ACEOF
15947
16877
 
 
16878
 
 
16879
cat >>confdefs.h <<_ACEOF
 
16880
#define VSI_FTRUNCATE64 $VSI_FTRUNCATE64
 
16881
_ACEOF
 
16882
 
15948
16883
  else
15949
16884
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950
16885
$as_echo "no" >&6; }
15958
16893
# This bug is HP SR number 8606223364.
15959
16894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15960
16895
$as_echo_n "checking size of int... " >&6; }
15961
 
if test "${ac_cv_sizeof_int+set}" = set; then :
 
16896
if ${ac_cv_sizeof_int+:} false; then :
15962
16897
  $as_echo_n "(cached) " >&6
15963
16898
else
15964
16899
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15967
16902
  if test "$ac_cv_type_int" = yes; then
15968
16903
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15969
16904
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15970
 
{ as_fn_set_status 77
15971
 
as_fn_error "cannot compute sizeof (int)
15972
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
16905
as_fn_error 77 "cannot compute sizeof (int)
 
16906
See \`config.log' for more details" "$LINENO" 5; }
15973
16907
   else
15974
16908
     ac_cv_sizeof_int=0
15975
16909
   fi
15992
16926
# This bug is HP SR number 8606223364.
15993
16927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15994
16928
$as_echo_n "checking size of unsigned long... " >&6; }
15995
 
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
 
16929
if ${ac_cv_sizeof_unsigned_long+:} false; then :
15996
16930
  $as_echo_n "(cached) " >&6
15997
16931
else
15998
16932
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16001
16935
  if test "$ac_cv_type_unsigned_long" = yes; then
16002
16936
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16003
16937
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16004
 
{ as_fn_set_status 77
16005
 
as_fn_error "cannot compute sizeof (unsigned long)
16006
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
16938
as_fn_error 77 "cannot compute sizeof (unsigned long)
 
16939
See \`config.log' for more details" "$LINENO" 5; }
16007
16940
   else
16008
16941
     ac_cv_sizeof_unsigned_long=0
16009
16942
   fi
16026
16959
# This bug is HP SR number 8606223364.
16027
16960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16028
16961
$as_echo_n "checking size of void*... " >&6; }
16029
 
if test "${ac_cv_sizeof_voidp+set}" = set; then :
 
16962
if ${ac_cv_sizeof_voidp+:} false; then :
16030
16963
  $as_echo_n "(cached) " >&6
16031
16964
else
16032
16965
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
16035
16968
  if test "$ac_cv_type_voidp" = yes; then
16036
16969
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16037
16970
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16038
 
{ as_fn_set_status 77
16039
 
as_fn_error "cannot compute sizeof (void*)
16040
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
16971
as_fn_error 77 "cannot compute sizeof (void*)
 
16972
See \`config.log' for more details" "$LINENO" 5; }
16041
16973
   else
16042
16974
     ac_cv_sizeof_voidp=0
16043
16975
   fi
16060
16992
#endif
16061
16993
 
16062
16994
"
16063
 
if test "x$ac_cv_type_int8" = x""yes; then :
 
16995
if test "x$ac_cv_type_int8" = xyes; then :
16064
16996
 
16065
16997
cat >>confdefs.h <<_ACEOF
16066
16998
#define HAVE_INT8 1
16074
17006
#endif
16075
17007
 
16076
17008
"
16077
 
if test "x$ac_cv_type_int16" = x""yes; then :
 
17009
if test "x$ac_cv_type_int16" = xyes; then :
16078
17010
 
16079
17011
cat >>confdefs.h <<_ACEOF
16080
17012
#define HAVE_INT16 1
16088
17020
#endif
16089
17021
 
16090
17022
"
16091
 
if test "x$ac_cv_type_int32" = x""yes; then :
 
17023
if test "x$ac_cv_type_int32" = xyes; then :
16092
17024
 
16093
17025
cat >>confdefs.h <<_ACEOF
16094
17026
#define HAVE_INT32 1
16128
17060
for ac_func in vprintf
16129
17061
do :
16130
17062
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16131
 
if test "x$ac_cv_func_vprintf" = x""yes; then :
 
17063
if test "x$ac_cv_func_vprintf" = xyes; then :
16132
17064
  cat >>confdefs.h <<_ACEOF
16133
17065
#define HAVE_VPRINTF 1
16134
17066
_ACEOF
16135
17067
 
16136
17068
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16137
 
if test "x$ac_cv_func__doprnt" = x""yes; then :
 
17069
if test "x$ac_cv_func__doprnt" = xyes; then :
16138
17070
 
16139
17071
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16140
17072
 
16148
17080
do :
16149
17081
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16150
17082
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16151
 
eval as_val=\$$as_ac_var
16152
 
   if test "x$as_val" = x""yes; then :
 
17083
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16153
17084
  cat >>confdefs.h <<_ACEOF
16154
17085
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16155
17086
_ACEOF
16160
17091
for ac_func in atoll
16161
17092
do :
16162
17093
  ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
16163
 
if test "x$ac_cv_func_atoll" = x""yes; then :
 
17094
if test "x$ac_cv_func_atoll" = xyes; then :
16164
17095
  cat >>confdefs.h <<_ACEOF
16165
17096
#define HAVE_ATOLL 1
16166
17097
_ACEOF
16171
17102
for ac_func in strtof
16172
17103
do :
16173
17104
  ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
16174
 
if test "x$ac_cv_func_strtof" = x""yes; then :
 
17105
if test "x$ac_cv_func_strtof" = xyes; then :
16175
17106
  cat >>confdefs.h <<_ACEOF
16176
17107
#define HAVE_STRTOF 1
16177
17108
_ACEOF
16182
17113
for ac_func in getcwd
16183
17114
do :
16184
17115
  ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16185
 
if test "x$ac_cv_func_getcwd" = x""yes; then :
 
17116
if test "x$ac_cv_func_getcwd" = xyes; then :
16186
17117
  cat >>confdefs.h <<_ACEOF
16187
17118
#define HAVE_GETCWD 1
16188
17119
_ACEOF
16192
17123
 
16193
17124
 
16194
17125
ac_fn_c_check_decl "$LINENO" "strtof" "ac_cv_have_decl_strtof" "$ac_includes_default"
16195
 
if test "x$ac_cv_have_decl_strtof" = x""yes; then :
 
17126
if test "x$ac_cv_have_decl_strtof" = xyes; then :
16196
17127
  ac_have_decl=1
16197
17128
else
16198
17129
  ac_have_decl=0
16203
17134
_ACEOF
16204
17135
 
16205
17136
 
 
17137
for ac_func in readlink
 
17138
do :
 
17139
  ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
 
17140
if test "x$ac_cv_func_readlink" = xyes; then :
 
17141
  cat >>confdefs.h <<_ACEOF
 
17142
#define HAVE_READLINK 1
 
17143
_ACEOF
 
17144
 
 
17145
fi
 
17146
done
 
17147
 
 
17148
 
16206
17149
 
16207
17150
ac_ext=cpp
16208
17151
ac_cpp='$CXXCPP $CPPFLAGS'
16212
17155
 
16213
17156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime_r" >&5
16214
17157
$as_echo_n "checking for gmtime_r... " >&6; }
16215
 
if test "${ac_cv_func_gmtime_r+set}" = set; then :
 
17158
if ${ac_cv_func_gmtime_r+:} false; then :
16216
17159
  $as_echo_n "(cached) " >&6
16217
17160
else
16218
17161
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248
17191
fi
16249
17192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r" >&5
16250
17193
$as_echo_n "checking for localtime_r... " >&6; }
16251
 
if test "${ac_cv_func_localtime_r+set}" = set; then :
 
17194
if ${ac_cv_func_localtime_r+:} false; then :
16252
17195
  $as_echo_n "(cached) " >&6
16253
17196
else
16254
17197
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290
17233
 
16291
17234
 
16292
17235
ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16293
 
if test "x$ac_cv_func_setlocale" = x""yes; then :
 
17236
if test "x$ac_cv_func_setlocale" = xyes; then :
16294
17237
 
16295
17238
fi
16296
17239
 
16360
17303
 
16361
17304
 
16362
17305
 
16363
 
# Check whether --with-with_hide_internal_symbols was given.
16364
 
if test "${with_with_hide_internal_symbols+set}" = set; then :
16365
 
  withval=$with_with_hide_internal_symbols;
 
17306
# Check whether --with-hide_internal_symbols was given.
 
17307
if test "${with_hide_internal_symbols+set}" = set; then :
 
17308
  withval=$with_hide_internal_symbols;
16366
17309
fi
16367
17310
 
16368
17311
 
16410
17353
 
16411
17354
 
16412
17355
 
 
17356
 
 
17357
# Check whether --with-rename_internal_libtiff_symbols was given.
 
17358
if test "${with_rename_internal_libtiff_symbols+set}" = set; then :
 
17359
  withval=$with_rename_internal_libtiff_symbols;
 
17360
fi
 
17361
 
 
17362
if test "$with_rename_internal_libtiff_symbols" = ""; then
 
17363
    with_rename_internal_libtiff_symbols=no
 
17364
fi
 
17365
RENAME_INTERNAL_LIBTIFF_SYMBOLS=$with_rename_internal_libtiff_symbols
 
17366
 
 
17367
 
 
17368
 
 
17369
 
 
17370
# Check whether --with-rename_internal_libgeotiff_symbols was given.
 
17371
if test "${with_rename_internal_libgeotiff_symbols+set}" = set; then :
 
17372
  withval=$with_rename_internal_libgeotiff_symbols;
 
17373
fi
 
17374
 
 
17375
if test "$with_rename_internal_libgeotiff_symbols" = ""; then
 
17376
    with_rename_internal_libgeotiff_symbols=no
 
17377
fi
 
17378
RENAME_INTERNAL_LIBGEOTIFF_SYMBOLS=$with_rename_internal_libgeotiff_symbols
 
17379
 
 
17380
 
 
17381
 
 
17382
 
16413
17383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local include/lib path" >&5
16414
17384
$as_echo_n "checking for local include/lib path... " >&6; }
16415
17385
 
16450
17420
fi
16451
17421
 
16452
17422
 
16453
 
if test "$with_threads" = "yes" ; then
 
17423
if test "$with_threads" = "yes" -o "$with_threads" = "" ; then
16454
17424
 
16455
17425
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16456
17426
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16457
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
 
17427
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16458
17428
  $as_echo_n "(cached) " >&6
16459
17429
else
16460
17430
  ac_check_lib_save_LIBS=$LIBS
16488
17458
fi
16489
17459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16490
17460
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16491
 
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
 
17461
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16492
17462
  THREAD_FLAG=CPL_MULTIPROC_PTHREAD
16493
17463
fi
16494
17464
 
16536
17506
 
16537
17507
  PTHREAD_ENABLED="yes"
16538
17508
 
16539
 
elif test -n "$with_threads" -a "$with_threads" != "no" ; then
 
17509
elif test "$with_threads" != "no" ; then
16540
17510
 
16541
17511
  THREAD_FLAG=CPL_MULTIPROC_PTHREAD
16542
17512
  THREAD_LIB="$with_threads"
16577
17547
 
16578
17548
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit_ in -lz" >&5
16579
17549
$as_echo_n "checking for deflateInit_ in -lz... " >&6; }
16580
 
if test "${ac_cv_lib_z_deflateInit_+set}" = set; then :
 
17550
if ${ac_cv_lib_z_deflateInit_+:} false; then :
16581
17551
  $as_echo_n "(cached) " >&6
16582
17552
else
16583
17553
  ac_check_lib_save_LIBS=$LIBS
16611
17581
fi
16612
17582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit_" >&5
16613
17583
$as_echo "$ac_cv_lib_z_deflateInit_" >&6; }
16614
 
if test "x$ac_cv_lib_z_deflateInit_" = x""yes; then :
 
17584
if test "x$ac_cv_lib_z_deflateInit_" = xyes; then :
16615
17585
  LIBZ_SETTING=external
16616
17586
else
16617
17587
  LIBZ_SETTING=internal
16621
17591
  if test "$LIBZ_SETTING" = "external" ; then
16622
17592
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
16623
17593
$as_echo_n "checking for inflateCopy in -lz... " >&6; }
16624
 
if test "${ac_cv_lib_z_inflateCopy+set}" = set; then :
 
17594
if ${ac_cv_lib_z_inflateCopy+:} false; then :
16625
17595
  $as_echo_n "(cached) " >&6
16626
17596
else
16627
17597
  ac_check_lib_save_LIBS=$LIBS
16655
17625
fi
16656
17626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
16657
17627
$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
16658
 
if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then :
 
17628
if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
16659
17629
  LIBZ_SETTING=external
16660
17630
else
16661
17631
  LIBZ_SETTING=internal
16679
17649
 
16680
17650
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit_ in -lz" >&5
16681
17651
$as_echo_n "checking for deflateInit_ in -lz... " >&6; }
16682
 
if test "${ac_cv_lib_z_deflateInit_+set}" = set; then :
 
17652
if ${ac_cv_lib_z_deflateInit_+:} false; then :
16683
17653
  $as_echo_n "(cached) " >&6
16684
17654
else
16685
17655
  ac_check_lib_save_LIBS=$LIBS
16713
17683
fi
16714
17684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit_" >&5
16715
17685
$as_echo "$ac_cv_lib_z_deflateInit_" >&6; }
16716
 
if test "x$ac_cv_lib_z_deflateInit_" = x""yes; then :
 
17686
if test "x$ac_cv_lib_z_deflateInit_" = xyes; then :
16717
17687
  LIBZ_SETTING=external
16718
17688
else
16719
17689
  LIBZ_SETTING=internal
16722
17692
  if test "$LIBZ_SETTING" = "external" ; then
16723
17693
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
16724
17694
$as_echo_n "checking for inflateCopy in -lz... " >&6; }
16725
 
if test "${ac_cv_lib_z_inflateCopy+set}" = set; then :
 
17695
if ${ac_cv_lib_z_inflateCopy+:} false; then :
16726
17696
  $as_echo_n "(cached) " >&6
16727
17697
else
16728
17698
  ac_check_lib_save_LIBS=$LIBS
16756
17726
fi
16757
17727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
16758
17728
$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
16759
 
if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then :
 
17729
if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
16760
17730
  LIBZ_SETTING=external
16761
17731
else
16762
17732
  LIBZ_SETTING=internal
16796
17766
 
16797
17767
 
16798
17768
 
 
17769
      if test "X$prefix" = "XNONE"; then
 
17770
    acl_final_prefix="$ac_default_prefix"
 
17771
  else
 
17772
    acl_final_prefix="$prefix"
 
17773
  fi
 
17774
  if test "X$exec_prefix" = "XNONE"; then
 
17775
    acl_final_exec_prefix='${prefix}'
 
17776
  else
 
17777
    acl_final_exec_prefix="$exec_prefix"
 
17778
  fi
 
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"
 
17783
 
 
17784
 
 
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
 
17788
else
 
17789
  with_gnu_ld=no
 
17790
fi
 
17791
 
 
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
 
17797
  chmod +x conf$$.sh
 
17798
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
17799
    PATH_SEPARATOR=';'
 
17800
  else
 
17801
    PATH_SEPARATOR=:
 
17802
  fi
 
17803
  rm -f conf$$.sh
 
17804
fi
 
17805
ac_prog=ld
 
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; }
 
17810
  case $host in
 
17811
  *-*-mingw*)
 
17812
    # gcc leaves a trailing carriage return which upsets mingw
 
17813
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
17814
  *)
 
17815
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
17816
  esac
 
17817
  case $ac_prog in
 
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%/%"`
 
17825
      done
 
17826
      test -z "$LD" && LD="$ac_prog"
 
17827
      ;;
 
17828
  "")
 
17829
    # If it fails, then pretend we aren't using GCC.
 
17830
    ac_prog=ld
 
17831
    ;;
 
17832
  *)
 
17833
    # If it is relative, then search for the first ld in PATH.
 
17834
    with_gnu_ld=unknown
 
17835
    ;;
 
17836
  esac
 
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; }
 
17840
else
 
17841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
17842
$as_echo_n "checking for non-GNU ld... " >&6; }
 
17843
fi
 
17844
if ${acl_cv_path_LD+:} false; then :
 
17845
  $as_echo_n "(cached) " >&6
 
17846
else
 
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 ;;
 
17859
      *)
 
17860
        test "$with_gnu_ld" != yes && break ;;
 
17861
      esac
 
17862
    fi
 
17863
  done
 
17864
  IFS="$ac_save_ifs"
 
17865
else
 
17866
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
17867
fi
 
17868
fi
 
17869
 
 
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; }
 
17874
else
 
17875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17876
$as_echo "no" >&6; }
 
17877
fi
 
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
 
17883
else
 
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 ;;
 
17888
*)
 
17889
  acl_cv_prog_gnu_ld=no ;;
 
17890
esac
 
17891
fi
 
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
 
17895
 
 
17896
 
 
17897
 
 
17898
 
 
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
 
17903
else
 
17904
 
 
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
 
17907
    . ./conftest.sh
 
17908
    rm -f ./conftest.sh
 
17909
    acl_cv_rpath=done
 
17910
 
 
17911
fi
 
17912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
17913
$as_echo "$acl_cv_rpath" >&6; }
 
17914
  wl="$acl_cv_wl"
 
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; :
 
17926
else
 
17927
  enable_rpath=yes
 
17928
fi
 
17929
 
 
17930
 
 
17931
 
 
17932
                  acl_libdirstem=lib
 
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 ;;
 
17943
             esac ;;
 
17944
        esac
 
17945
      fi
 
17946
    done
 
17947
    IFS="$acl_save_IFS"
 
17948
  fi
 
17949
 
 
17950
 
 
17951
 
 
17952
 
 
17953
 
 
17954
 
 
17955
 
 
17956
 
 
17957
 
 
17958
    use_additional=yes
 
17959
 
 
17960
  acl_save_prefix="$prefix"
 
17961
  prefix="$acl_final_prefix"
 
17962
  acl_save_exec_prefix="$exec_prefix"
 
17963
  exec_prefix="$acl_final_exec_prefix"
 
17964
 
 
17965
    eval additional_includedir=\"$includedir\"
 
17966
    eval additional_libdir=\"$libdir\"
 
17967
 
 
17968
  exec_prefix="$acl_save_exec_prefix"
 
17969
  prefix="$acl_save_prefix"
 
17970
 
 
17971
 
 
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
 
17976
      use_additional=no
 
17977
    else
 
17978
      if test "X$withval" = "X"; then
 
17979
 
 
17980
  acl_save_prefix="$prefix"
 
17981
  prefix="$acl_final_prefix"
 
17982
  acl_save_exec_prefix="$exec_prefix"
 
17983
  exec_prefix="$acl_final_exec_prefix"
 
17984
 
 
17985
          eval additional_includedir=\"$includedir\"
 
17986
          eval additional_libdir=\"$libdir\"
 
17987
 
 
17988
  exec_prefix="$acl_save_exec_prefix"
 
17989
  prefix="$acl_save_prefix"
 
17990
 
 
17991
      else
 
17992
        additional_includedir="$withval/include"
 
17993
        additional_libdir="$withval/$acl_libdirstem"
 
17994
      fi
 
17995
    fi
 
17996
 
 
17997
fi
 
17998
 
 
17999
      LIBICONV=
 
18000
  LTLIBICONV=
 
18001
  INCICONV=
 
18002
  LIBICONV_PREFIX=
 
18003
  rpathdirs=
 
18004
  ltrpathdirs=
 
18005
  names_already_handled=
 
18006
  names_next_round='iconv '
 
18007
  while test -n "$names_next_round"; do
 
18008
    names_this_round="$names_next_round"
 
18009
    names_next_round=
 
18010
    for name in $names_this_round; do
 
18011
      already_handled=
 
18012
      for n in $names_already_handled; do
 
18013
        if test "$n" = "$name"; then
 
18014
          already_handled=yes
 
18015
          break
 
18016
        fi
 
18017
      done
 
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"
 
18028
          else
 
18029
                                    :
 
18030
          fi
 
18031
        else
 
18032
                              found_dir=
 
18033
          found_la=
 
18034
          found_so=
 
18035
          found_a=
 
18036
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
18037
          if test -n "$acl_shlibext"; then
 
18038
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
18039
          else
 
18040
            shrext=
 
18041
          fi
 
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
 
18046
                found_dir="$dir"
 
18047
                found_so="$dir/$libname$shrext"
 
18048
              else
 
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
 
18056
                    found_dir="$dir"
 
18057
                    found_so="$dir/$libname$shrext.$ver"
 
18058
                  fi
 
18059
                else
 
18060
                  eval library_names=\"$acl_library_names_spec\"
 
18061
                  for f in $library_names; do
 
18062
                    if test -f "$dir/$f"; then
 
18063
                      found_dir="$dir"
 
18064
                      found_so="$dir/$f"
 
18065
                      break
 
18066
                    fi
 
18067
                  done
 
18068
                fi
 
18069
              fi
 
18070
            fi
 
18071
                        if test "X$found_dir" = "X"; then
 
18072
              if test -f "$dir/$libname.$acl_libext"; then
 
18073
                found_dir="$dir"
 
18074
                found_a="$dir/$libname.$acl_libext"
 
18075
              fi
 
18076
            fi
 
18077
            if test "X$found_dir" != "X"; then
 
18078
              if test -f "$dir/$libname.la"; then
 
18079
                found_la="$dir/$libname.la"
 
18080
              fi
 
18081
            fi
 
18082
          fi
 
18083
          if test "X$found_dir" = "X"; then
 
18084
            for x in $LDFLAGS $LTLIBICONV; do
 
18085
 
 
18086
  acl_save_prefix="$prefix"
 
18087
  prefix="$acl_final_prefix"
 
18088
  acl_save_exec_prefix="$exec_prefix"
 
18089
  exec_prefix="$acl_final_exec_prefix"
 
18090
  eval x=\"$x\"
 
18091
  exec_prefix="$acl_save_exec_prefix"
 
18092
  prefix="$acl_save_prefix"
 
18093
 
 
18094
              case "$x" in
 
18095
                -L*)
 
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
 
18099
                      found_dir="$dir"
 
18100
                      found_so="$dir/$libname$shrext"
 
18101
                    else
 
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
 
18109
                          found_dir="$dir"
 
18110
                          found_so="$dir/$libname$shrext.$ver"
 
18111
                        fi
 
18112
                      else
 
18113
                        eval library_names=\"$acl_library_names_spec\"
 
18114
                        for f in $library_names; do
 
18115
                          if test -f "$dir/$f"; then
 
18116
                            found_dir="$dir"
 
18117
                            found_so="$dir/$f"
 
18118
                            break
 
18119
                          fi
 
18120
                        done
 
18121
                      fi
 
18122
                    fi
 
18123
                  fi
 
18124
                                    if test "X$found_dir" = "X"; then
 
18125
                    if test -f "$dir/$libname.$acl_libext"; then
 
18126
                      found_dir="$dir"
 
18127
                      found_a="$dir/$libname.$acl_libext"
 
18128
                    fi
 
18129
                  fi
 
18130
                  if test "X$found_dir" != "X"; then
 
18131
                    if test -f "$dir/$libname.la"; then
 
18132
                      found_la="$dir/$libname.la"
 
18133
                    fi
 
18134
                  fi
 
18135
                  ;;
 
18136
              esac
 
18137
              if test "X$found_dir" != "X"; then
 
18138
                break
 
18139
              fi
 
18140
            done
 
18141
          fi
 
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"
 
18147
              else
 
18148
                                                                                haveit=
 
18149
                for x in $ltrpathdirs; do
 
18150
                  if test "X$x" = "X$found_dir"; then
 
18151
                    haveit=yes
 
18152
                    break
 
18153
                  fi
 
18154
                done
 
18155
                if test -z "$haveit"; then
 
18156
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
18157
                fi
 
18158
                                if test "$acl_hardcode_direct" = yes; then
 
18159
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
18160
                else
 
18161
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
18162
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
18163
                                                            haveit=
 
18164
                    for x in $rpathdirs; do
 
18165
                      if test "X$x" = "X$found_dir"; then
 
18166
                        haveit=yes
 
18167
                        break
 
18168
                      fi
 
18169
                    done
 
18170
                    if test -z "$haveit"; then
 
18171
                      rpathdirs="$rpathdirs $found_dir"
 
18172
                    fi
 
18173
                  else
 
18174
                                                                                haveit=
 
18175
                    for x in $LDFLAGS $LIBICONV; do
 
18176
 
 
18177
  acl_save_prefix="$prefix"
 
18178
  prefix="$acl_final_prefix"
 
18179
  acl_save_exec_prefix="$exec_prefix"
 
18180
  exec_prefix="$acl_final_exec_prefix"
 
18181
  eval x=\"$x\"
 
18182
  exec_prefix="$acl_save_exec_prefix"
 
18183
  prefix="$acl_save_prefix"
 
18184
 
 
18185
                      if test "X$x" = "X-L$found_dir"; then
 
18186
                        haveit=yes
 
18187
                        break
 
18188
                      fi
 
18189
                    done
 
18190
                    if test -z "$haveit"; then
 
18191
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
18192
                    fi
 
18193
                    if test "$acl_hardcode_minus_L" != no; then
 
18194
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
18195
                    else
 
18196
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
18197
                    fi
 
18198
                  fi
 
18199
                fi
 
18200
              fi
 
18201
            else
 
18202
              if test "X$found_a" != "X"; then
 
18203
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
18204
              else
 
18205
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
18206
              fi
 
18207
            fi
 
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"
 
18214
                ;;
 
18215
            esac
 
18216
            if test "X$additional_includedir" != "X"; then
 
18217
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
18218
                haveit=
 
18219
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
18220
                  if test -n "$GCC"; then
 
18221
                    case $host_os in
 
18222
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
18223
                    esac
 
18224
                  fi
 
18225
                fi
 
18226
                if test -z "$haveit"; then
 
18227
                  for x in $CPPFLAGS $INCICONV; do
 
18228
 
 
18229
  acl_save_prefix="$prefix"
 
18230
  prefix="$acl_final_prefix"
 
18231
  acl_save_exec_prefix="$exec_prefix"
 
18232
  exec_prefix="$acl_final_exec_prefix"
 
18233
  eval x=\"$x\"
 
18234
  exec_prefix="$acl_save_exec_prefix"
 
18235
  prefix="$acl_save_prefix"
 
18236
 
 
18237
                    if test "X$x" = "X-I$additional_includedir"; then
 
18238
                      haveit=yes
 
18239
                      break
 
18240
                    fi
 
18241
                  done
 
18242
                  if test -z "$haveit"; then
 
18243
                    if test -d "$additional_includedir"; then
 
18244
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
18245
                    fi
 
18246
                  fi
 
18247
                fi
 
18248
              fi
 
18249
            fi
 
18250
                        if test -n "$found_la"; then
 
18251
                                                        save_libdir="$libdir"
 
18252
              case "$found_la" in
 
18253
                */* | *\\*) . "$found_la" ;;
 
18254
                *) . "./$found_la" ;;
 
18255
              esac
 
18256
              libdir="$save_libdir"
 
18257
                            for dep in $dependency_libs; do
 
18258
                case "$dep" in
 
18259
                  -L*)
 
18260
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
18261
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
18262
                      haveit=
 
18263
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
18264
                        if test -n "$GCC"; then
 
18265
                          case $host_os in
 
18266
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
18267
                          esac
 
18268
                        fi
 
18269
                      fi
 
18270
                      if test -z "$haveit"; then
 
18271
                        haveit=
 
18272
                        for x in $LDFLAGS $LIBICONV; do
 
18273
 
 
18274
  acl_save_prefix="$prefix"
 
18275
  prefix="$acl_final_prefix"
 
18276
  acl_save_exec_prefix="$exec_prefix"
 
18277
  exec_prefix="$acl_final_exec_prefix"
 
18278
  eval x=\"$x\"
 
18279
  exec_prefix="$acl_save_exec_prefix"
 
18280
  prefix="$acl_save_prefix"
 
18281
 
 
18282
                          if test "X$x" = "X-L$additional_libdir"; then
 
18283
                            haveit=yes
 
18284
                            break
 
18285
                          fi
 
18286
                        done
 
18287
                        if test -z "$haveit"; then
 
18288
                          if test -d "$additional_libdir"; then
 
18289
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
18290
                          fi
 
18291
                        fi
 
18292
                        haveit=
 
18293
                        for x in $LDFLAGS $LTLIBICONV; do
 
18294
 
 
18295
  acl_save_prefix="$prefix"
 
18296
  prefix="$acl_final_prefix"
 
18297
  acl_save_exec_prefix="$exec_prefix"
 
18298
  exec_prefix="$acl_final_exec_prefix"
 
18299
  eval x=\"$x\"
 
18300
  exec_prefix="$acl_save_exec_prefix"
 
18301
  prefix="$acl_save_prefix"
 
18302
 
 
18303
                          if test "X$x" = "X-L$additional_libdir"; then
 
18304
                            haveit=yes
 
18305
                            break
 
18306
                          fi
 
18307
                        done
 
18308
                        if test -z "$haveit"; then
 
18309
                          if test -d "$additional_libdir"; then
 
18310
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
18311
                          fi
 
18312
                        fi
 
18313
                      fi
 
18314
                    fi
 
18315
                    ;;
 
18316
                  -R*)
 
18317
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
18318
                    if test "$enable_rpath" != no; then
 
18319
                                                                  haveit=
 
18320
                      for x in $rpathdirs; do
 
18321
                        if test "X$x" = "X$dir"; then
 
18322
                          haveit=yes
 
18323
                          break
 
18324
                        fi
 
18325
                      done
 
18326
                      if test -z "$haveit"; then
 
18327
                        rpathdirs="$rpathdirs $dir"
 
18328
                      fi
 
18329
                                                                  haveit=
 
18330
                      for x in $ltrpathdirs; do
 
18331
                        if test "X$x" = "X$dir"; then
 
18332
                          haveit=yes
 
18333
                          break
 
18334
                        fi
 
18335
                      done
 
18336
                      if test -z "$haveit"; then
 
18337
                        ltrpathdirs="$ltrpathdirs $dir"
 
18338
                      fi
 
18339
                    fi
 
18340
                    ;;
 
18341
                  -l*)
 
18342
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
18343
                    ;;
 
18344
                  *.la)
 
18345
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
18346
                    ;;
 
18347
                  *)
 
18348
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
18349
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
18350
                    ;;
 
18351
                esac
 
18352
              done
 
18353
            fi
 
18354
          else
 
18355
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
18356
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
18357
          fi
 
18358
        fi
 
18359
      fi
 
18360
    done
 
18361
  done
 
18362
  if test "X$rpathdirs" != "X"; then
 
18363
    if test -n "$acl_hardcode_libdir_separator"; then
 
18364
                        alldirs=
 
18365
      for found_dir in $rpathdirs; do
 
18366
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
18367
      done
 
18368
            acl_save_libdir="$libdir"
 
18369
      libdir="$alldirs"
 
18370
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
18371
      libdir="$acl_save_libdir"
 
18372
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
18373
    else
 
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"
 
18380
      done
 
18381
    fi
 
18382
  fi
 
18383
  if test "X$ltrpathdirs" != "X"; then
 
18384
            for found_dir in $ltrpathdirs; do
 
18385
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
18386
    done
 
18387
  fi
 
18388
 
 
18389
 
 
18390
 
 
18391
 
 
18392
 
 
18393
 
 
18394
 
 
18395
          am_save_CPPFLAGS="$CPPFLAGS"
 
18396
 
 
18397
  for element in $INCICONV; do
 
18398
    haveit=
 
18399
    for x in $CPPFLAGS; do
 
18400
 
 
18401
  acl_save_prefix="$prefix"
 
18402
  prefix="$acl_final_prefix"
 
18403
  acl_save_exec_prefix="$exec_prefix"
 
18404
  exec_prefix="$acl_final_exec_prefix"
 
18405
  eval x=\"$x\"
 
18406
  exec_prefix="$acl_save_exec_prefix"
 
18407
  prefix="$acl_save_prefix"
 
18408
 
 
18409
      if test "X$x" = "X$element"; then
 
18410
        haveit=yes
 
18411
        break
 
18412
      fi
 
18413
    done
 
18414
    if test -z "$haveit"; then
 
18415
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
18416
    fi
 
18417
  done
 
18418
 
 
18419
 
 
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
 
18424
else
 
18425
 
 
18426
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
18427
    am_cv_lib_iconv=no
 
18428
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18429
/* end confdefs.h.  */
 
18430
 
 
18431
#include <stdlib.h>
 
18432
#include <iconv.h>
 
18433
 
 
18434
int
 
18435
main ()
 
18436
{
 
18437
iconv_t cd = iconv_open("","");
 
18438
           iconv(cd,NULL,NULL,NULL,NULL);
 
18439
           iconv_close(cd);
 
18440
  ;
 
18441
  return 0;
 
18442
}
 
18443
_ACEOF
 
18444
if ac_fn_c_try_link "$LINENO"; then :
 
18445
  am_cv_func_iconv=yes
 
18446
fi
 
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.  */
 
18454
 
 
18455
#include <stdlib.h>
 
18456
#include <iconv.h>
 
18457
 
 
18458
int
 
18459
main ()
 
18460
{
 
18461
iconv_t cd = iconv_open("","");
 
18462
             iconv(cd,NULL,NULL,NULL,NULL);
 
18463
             iconv_close(cd);
 
18464
  ;
 
18465
  return 0;
 
18466
}
 
18467
_ACEOF
 
18468
if ac_fn_c_try_link "$LINENO"; then :
 
18469
  am_cv_lib_iconv=yes
 
18470
        am_cv_func_iconv=yes
 
18471
fi
 
18472
rm -f core conftest.err conftest.$ac_objext \
 
18473
    conftest$ac_exeext conftest.$ac_ext
 
18474
      LIBS="$am_save_LIBS"
 
18475
    fi
 
18476
 
 
18477
fi
 
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
 
18485
else
 
18486
 
 
18487
                  am_save_LIBS="$LIBS"
 
18488
      if test $am_cv_lib_iconv = yes; then
 
18489
        LIBS="$LIBS $LIBICONV"
 
18490
      fi
 
18491
      if test "$cross_compiling" = yes; then :
 
18492
 
 
18493
         case "$host_os" in
 
18494
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
18495
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
18496
         esac
 
18497
 
 
18498
else
 
18499
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18500
/* end confdefs.h.  */
 
18501
 
 
18502
#include <iconv.h>
 
18503
#include <string.h>
 
18504
int main ()
 
18505
{
 
18506
  int result = 0;
 
18507
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
18508
     returns.  */
 
18509
  {
 
18510
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
18511
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
18512
      {
 
18513
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
18514
        char buf[10];
 
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);
 
18522
        if (res == 0)
 
18523
          result |= 1;
 
18524
        iconv_close (cd_utf8_to_88591);
 
18525
      }
 
18526
  }
 
18527
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
18528
     successful returns.  */
 
18529
  {
 
18530
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
18531
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
18532
      {
 
18533
        static const char input[] = "\263";
 
18534
        char buf[10];
 
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);
 
18542
        if (res == 0)
 
18543
          result |= 2;
 
18544
        iconv_close (cd_ascii_to_88591);
 
18545
      }
 
18546
  }
 
18547
  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
 
18548
  {
 
18549
    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
 
18550
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
18551
      {
 
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)
 
18562
          result |= 4;
 
18563
        iconv_close (cd_88591_to_utf8);
 
18564
      }
 
18565
  }
 
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.  */
 
18568
  {
 
18569
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
18570
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
18571
      {
 
18572
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
18573
        char buf[50];
 
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);
 
18581
        if ((int)res > 0)
 
18582
          result |= 8;
 
18583
        iconv_close (cd_88591_to_utf8);
 
18584
      }
 
18585
  }
 
18586
#endif
 
18587
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
18588
     provided.  */
 
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))
 
18597
    result |= 16;
 
18598
  return result;
 
18599
}
 
18600
_ACEOF
 
18601
if ac_fn_c_try_run "$LINENO"; then :
 
18602
  am_cv_func_iconv_works=yes
 
18603
else
 
18604
  am_cv_func_iconv_works=no
 
18605
fi
 
18606
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18607
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18608
fi
 
18609
 
 
18610
      LIBS="$am_save_LIBS"
 
18611
 
 
18612
fi
 
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 ;;
 
18618
    esac
 
18619
  else
 
18620
    am_func_iconv=no am_cv_lib_iconv=no
 
18621
  fi
 
18622
  if test "$am_func_iconv" = yes; then
 
18623
 
 
18624
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
18625
 
 
18626
  fi
 
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; }
 
18632
  else
 
18633
            CPPFLAGS="$am_save_CPPFLAGS"
 
18634
    LIBICONV=
 
18635
    LTLIBICONV=
 
18636
  fi
 
18637
 
 
18638
 
 
18639
 
 
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
 
18645
else
 
18646
 
 
18647
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18648
/* end confdefs.h.  */
 
18649
 
 
18650
#include <stdlib.h>
 
18651
#include <iconv.h>
 
18652
extern
 
18653
#ifdef __cplusplus
 
18654
"C"
 
18655
#endif
 
18656
#if defined(__STDC__) || defined(__cplusplus)
 
18657
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
18658
#else
 
18659
size_t iconv();
 
18660
#endif
 
18661
 
 
18662
int
 
18663
main ()
 
18664
{
 
18665
 
 
18666
  ;
 
18667
  return 0;
 
18668
}
 
18669
_ACEOF
 
18670
if ac_fn_c_try_compile "$LINENO"; then :
 
18671
  am_cv_proto_iconv_arg1=""
 
18672
else
 
18673
  am_cv_proto_iconv_arg1="const"
 
18674
fi
 
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);"
 
18677
fi
 
18678
 
 
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
 
18682
$as_echo "
 
18683
         $am_cv_proto_iconv" >&6; }
 
18684
 
 
18685
cat >>confdefs.h <<_ACEOF
 
18686
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
18687
_ACEOF
 
18688
 
 
18689
 
 
18690
  fi
 
18691
 
 
18692
 
 
18693
if test "$am_func_iconv" = "yes"; then
 
18694
    rm -f testiconv.*
 
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"
 
18701
    else
 
18702
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ICONV_CPP_CONST=\"\"" >&5
 
18703
$as_echo "using ICONV_CPP_CONST=\"\"" >&6; }
 
18704
        ICONV_CPP_CONST=""
 
18705
    fi
 
18706
    rm -f testiconv.*
 
18707
 
 
18708
 
 
18709
cat >>confdefs.h <<_ACEOF
 
18710
#define ICONV_CPP_CONST $ICONV_CPP_CONST
 
18711
_ACEOF
 
18712
 
 
18713
fi
 
18714
 
 
18715
 
 
18716
 
 
18717
 
 
18718
# Check whether --with-liblzma was given.
 
18719
if test "${with_liblzma+set}" = set; then :
 
18720
  withval=$with_liblzma;
 
18721
fi
 
18722
 
 
18723
 
 
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
 
18729
else
 
18730
  ac_check_lib_save_LIBS=$LIBS
 
18731
LIBS="-llzma  $LIBS"
 
18732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18733
/* end confdefs.h.  */
 
18734
 
 
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.  */
 
18738
#ifdef __cplusplus
 
18739
extern "C"
 
18740
#endif
 
18741
char lzma_code ();
 
18742
int
 
18743
main ()
 
18744
{
 
18745
return lzma_code ();
 
18746
  ;
 
18747
  return 0;
 
18748
}
 
18749
_ACEOF
 
18750
if ac_fn_c_try_link "$LINENO"; then :
 
18751
  ac_cv_lib_lzma_lzma_code=yes
 
18752
else
 
18753
  ac_cv_lib_lzma_lzma_code=no
 
18754
fi
 
18755
rm -f core conftest.err conftest.$ac_objext \
 
18756
    conftest$ac_exeext conftest.$ac_ext
 
18757
LIBS=$ac_check_lib_save_LIBS
 
18758
fi
 
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
 
18763
else
 
18764
  LIBLZMA_SETTING=no
 
18765
fi
 
18766
 
 
18767
 
 
18768
  if test "$LIBLZMA_SETTING" = "yes" ; then
 
18769
    LIBS="-llzma $LIBS"
 
18770
  fi
 
18771
else
 
18772
    LIBLZMA_SETTING=no
 
18773
fi
 
18774
 
 
18775
LIBLZMA_SETTING=$LIBLZMA_SETTING
 
18776
 
 
18777
 
 
18778
 
16799
18779
PG_CONFIG=no
16800
18780
 
16801
18781
 
16810
18790
set dummy pg_config; ac_word=$2
16811
18791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812
18792
$as_echo_n "checking for $ac_word... " >&6; }
16813
 
if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
 
18793
if ${ac_cv_path_PG_CONFIG+:} false; then :
16814
18794
  $as_echo_n "(cached) " >&6
16815
18795
else
16816
18796
  case $PG_CONFIG in
16867
18847
  if test -d ${PG_CONFIG} ; then
16868
18848
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869
18849
$as_echo "no" >&6; }
16870
 
      as_fn_error "--with-pg argument is a directory.  It should be the path to the pg_config script, often somewhere like /usr/local/pgsql/bin/pg_config." "$LINENO" 5
 
18850
      as_fn_error $? "--with-pg argument is a directory.  It should be the path to the pg_config script, often somewhere like /usr/local/pgsql/bin/pg_config." "$LINENO" 5
16871
18851
  fi
16872
18852
 
16873
18853
  if test \! -x ${PG_CONFIG} ; then
16874
18854
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16875
18855
$as_echo "no" >&6; }
16876
 
      as_fn_error "--with-pg argument is a not an executable file.  It should be the path to the pg_config script, often somewhere like /usr/local/pgsql/bin/pg_config." "$LINENO" 5
 
18856
      as_fn_error $? "--with-pg argument is a not an executable file.  It should be the path to the pg_config script, often somewhere like /usr/local/pgsql/bin/pg_config." "$LINENO" 5
16877
18857
  fi
16878
18858
 
16879
18859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880
18860
$as_echo "yes" >&6; }
16881
18861
 
16882
 
  ax_save_LIBS="${LIBS}"
16883
 
  LIBS=-L`$PG_CONFIG --libdir`" -lpq"
16884
18862
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
16885
18863
$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
16886
 
if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then :
 
18864
if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
16887
18865
  $as_echo_n "(cached) " >&6
16888
18866
else
16889
18867
  ac_check_lib_save_LIBS=$LIBS
16890
 
LIBS="-lpq  $LIBS"
 
18868
LIBS="-lpq -L`$PG_CONFIG --libdir` $LIBS"
16891
18869
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892
18870
/* end confdefs.h.  */
16893
18871
 
16917
18895
fi
16918
18896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
16919
18897
$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
16920
 
if test "x$ac_cv_lib_pq_PQconnectdb" = x""yes; then :
 
18898
if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
16921
18899
  HAVE_PG=yes
16922
18900
else
16923
18901
  HAVE_PG=no
16924
18902
fi
16925
18903
 
16926
 
  LIBS="${ax_save_LIBS}"
16927
18904
 
16928
18905
  if test "${HAVE_PG}" = "yes" ; then
16929
18906
    LIBS=-L`$PG_CONFIG --libdir`" -lpq $LIBS"
16930
18907
    PG_INC=-I`$PG_CONFIG --includedir`" -I"`$PG_CONFIG --includedir-server`
16931
18908
 
16932
18909
    PG_EXTRA_DEC=""
 
18910
    saved_LIBS="$LIBS"
16933
18911
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
16934
18912
$as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
16935
 
if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
 
18913
if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
16936
18914
  $as_echo_n "(cached) " >&6
16937
18915
else
16938
18916
  ac_check_lib_save_LIBS=$LIBS
16966
18944
fi
16967
18945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
16968
18946
$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
16969
 
if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
 
18947
if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
16970
18948
  cat >>confdefs.h <<_ACEOF
16971
18949
#define HAVE_LIBPQ 1
16972
18950
_ACEOF
16977
18955
  DEFINE_PG_PRE74=-DPG_PRE74
16978
18956
fi
16979
18957
 
 
18958
    LIBS="$saved_LIBS"
16980
18959
    if test "$DEFINE_PG_PRE74" != "" ; then
16981
18960
      echo "The PostgreSQL client version is before 7.4. You will not be able to use binary cursors."
16982
18961
    fi
16983
18962
 
 
18963
    saved_LIBS="$LIBS"
16984
18964
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
16985
18965
$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
16986
 
if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then :
 
18966
if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
16987
18967
  $as_echo_n "(cached) " >&6
16988
18968
else
16989
18969
  ac_check_lib_save_LIBS=$LIBS
17017
18997
fi
17018
18998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
17019
18999
$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
17020
 
if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then :
 
19000
if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
17021
19001
  DEFINE_PG_HAS_PQESCAPESTRINGCONN=-DPG_HAS_PQESCAPESTRINGCONN
17022
19002
fi
17023
19003
 
 
19004
    LIBS="$saved_LIBS"
17024
19005
    if test "$DEFINE_PG_HAS_PQESCAPESTRINGCONN" = "" ; then
17025
19006
      echo "falling back to using PQescapeString. You should upgrade at least to security releases 8.1.4, 8.0.8, 7.4.13, 7.3.15."
17026
19007
    fi
17068
19049
 
17069
19050
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_asprintf in -lgrass_gis" >&5
17070
19051
$as_echo_n "checking for G_asprintf in -lgrass_gis... " >&6; }
17071
 
if test "${ac_cv_lib_grass_gis_G_asprintf+set}" = set; then :
 
19052
if ${ac_cv_lib_grass_gis_G_asprintf+:} false; then :
17072
19053
  $as_echo_n "(cached) " >&6
17073
19054
else
17074
19055
  ac_check_lib_save_LIBS=$LIBS
17102
19083
fi
17103
19084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass_gis_G_asprintf" >&5
17104
19085
$as_echo "$ac_cv_lib_grass_gis_G_asprintf" >&6; }
17105
 
if test "x$ac_cv_lib_grass_gis_G_asprintf" = x""yes; then :
 
19086
if test "x$ac_cv_lib_grass_gis_G_asprintf" = xyes; then :
17106
19087
  GRASS_SETTING=grass57+
17107
19088
else
17108
19089
  GRASS_SETTING=no
17117
19098
    GRASS_GISBASE="$with_grass"
17118
19099
    HAVE_GRASS=yes
17119
19100
  else
17120
 
    as_fn_error "--with-grass=$with_grass requested, but libraries not found!" "$LINENO" 5
 
19101
    as_fn_error $? "--with-grass=$with_grass requested, but libraries not found!" "$LINENO" 5
17121
19102
  fi
17122
19103
 
17123
19104
# Check if libgrass is disabled.
17129
19110
 
17130
19111
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_gisinit_2 in -lgrass5" >&5
17131
19112
$as_echo_n "checking for G_gisinit_2 in -lgrass5... " >&6; }
17132
 
if test "${ac_cv_lib_grass5_G_gisinit_2+set}" = set; then :
 
19113
if ${ac_cv_lib_grass5_G_gisinit_2+:} false; then :
17133
19114
  $as_echo_n "(cached) " >&6
17134
19115
else
17135
19116
  ac_check_lib_save_LIBS=$LIBS
17163
19144
fi
17164
19145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass5_G_gisinit_2" >&5
17165
19146
$as_echo "$ac_cv_lib_grass5_G_gisinit_2" >&6; }
17166
 
if test "x$ac_cv_lib_grass5_G_gisinit_2" = x""yes; then :
 
19147
if test "x$ac_cv_lib_grass5_G_gisinit_2" = xyes; then :
17167
19148
  GRASS_SETTING=libgrass
17168
19149
else
17169
19150
  GRASS_SETTING=no
17178
19159
 
17179
19160
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_gisinit_2 in -lgrass5" >&5
17180
19161
$as_echo_n "checking for G_gisinit_2 in -lgrass5... " >&6; }
17181
 
if test "${ac_cv_lib_grass5_G_gisinit_2+set}" = set; then :
 
19162
if ${ac_cv_lib_grass5_G_gisinit_2+:} false; then :
17182
19163
  $as_echo_n "(cached) " >&6
17183
19164
else
17184
19165
  ac_check_lib_save_LIBS=$LIBS
17212
19193
fi
17213
19194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass5_G_gisinit_2" >&5
17214
19195
$as_echo "$ac_cv_lib_grass5_G_gisinit_2" >&6; }
17215
 
if test "x$ac_cv_lib_grass5_G_gisinit_2" = x""yes; then :
 
19196
if test "x$ac_cv_lib_grass5_G_gisinit_2" = xyes; then :
17216
19197
  GRASS_SETTING=libgrass
17217
19198
else
17218
19199
  GRASS_SETTING=no
17223
19204
    LIBS="-L$with_libgrass -L$with_libgrass/lib -lgrass5 $LIBS"
17224
19205
    GRASS_INCLUDE="-I$with_libgrass -I$with_libgrass/include $EXTRA_INCLUDES"
17225
19206
  else
17226
 
    as_fn_error "--with-libgrass=$with_grass requested, but libgrass5 not found!" "$LINENO" 5
 
19207
    as_fn_error $? "--with-libgrass=$with_grass requested, but libgrass5 not found!" "$LINENO" 5
17227
19208
  fi
17228
19209
fi
17229
19210
 
17257
19238
 
17258
19239
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5
17259
19240
$as_echo_n "checking for ffopen in -lcfitsio... " >&6; }
17260
 
if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then :
 
19241
if ${ac_cv_lib_cfitsio_ffopen+:} false; then :
17261
19242
  $as_echo_n "(cached) " >&6
17262
19243
else
17263
19244
  ac_check_lib_save_LIBS=$LIBS
17291
19272
fi
17292
19273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5
17293
19274
$as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; }
17294
 
if test "x$ac_cv_lib_cfitsio_ffopen" = x""yes; then :
 
19275
if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then :
17295
19276
  FITS_SETTING=external
17296
19277
else
17297
19278
  FITS_SETTING=no
17343
19324
 
17344
19325
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mopen in -lcsf" >&5
17345
19326
$as_echo_n "checking for Mopen in -lcsf... " >&6; }
17346
 
if test "${ac_cv_lib_csf_Mopen+set}" = set; then :
 
19327
if ${ac_cv_lib_csf_Mopen+:} false; then :
17347
19328
  $as_echo_n "(cached) " >&6
17348
19329
else
17349
19330
  ac_check_lib_save_LIBS=$LIBS
17377
19358
fi
17378
19359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csf_Mopen" >&5
17379
19360
$as_echo "$ac_cv_lib_csf_Mopen" >&6; }
17380
 
if test "x$ac_cv_lib_csf_Mopen" = x""yes; then :
 
19361
if test "x$ac_cv_lib_csf_Mopen" = xyes; then :
17381
19362
  PCRASTER_SETTING=external
17382
19363
else
17383
19364
  PCRASTER_SETTING=internal
17386
19367
  for ac_header in csf.h
17387
19368
do :
17388
19369
  ac_fn_c_check_header_mongrel "$LINENO" "csf.h" "ac_cv_header_csf_h" "$ac_includes_default"
17389
 
if test "x$ac_cv_header_csf_h" = x""yes; then :
 
19370
if test "x$ac_cv_header_csf_h" = xyes; then :
17390
19371
  cat >>confdefs.h <<_ACEOF
17391
19372
#define HAVE_CSF_H 1
17392
19373
_ACEOF
17432
19413
 
17433
19414
 
17434
19415
 
17435
 
# Check whether --with-netcdf was given.
17436
 
if test "${with_netcdf+set}" = set; then :
17437
 
  withval=$with_netcdf;
17438
 
fi
17439
 
 
17440
 
 
17441
 
if test "$with_netcdf" = "no" ; then
17442
 
 
17443
 
  NETCDF_SETTING=no
17444
 
 
17445
 
  echo "netCDF support disabled."
17446
 
 
17447
 
elif test "$with_netcdf" = "yes" -o "$with_netcdf" = "" ; then
17448
 
 
17449
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
17450
 
$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
17451
 
if test "${ac_cv_lib_netcdf_nc_open+set}" = set; then :
17452
 
  $as_echo_n "(cached) " >&6
17453
 
else
17454
 
  ac_check_lib_save_LIBS=$LIBS
17455
 
LIBS="-lnetcdf  $LIBS"
17456
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457
 
/* end confdefs.h.  */
17458
 
 
17459
 
/* Override any GCC internal prototype to avoid an error.
17460
 
   Use char because int might match the return type of a GCC
17461
 
   builtin and then its argument prototype would still apply.  */
17462
 
#ifdef __cplusplus
17463
 
extern "C"
17464
 
#endif
17465
 
char nc_open ();
17466
 
int
17467
 
main ()
17468
 
{
17469
 
return nc_open ();
17470
 
  ;
17471
 
  return 0;
17472
 
}
17473
 
_ACEOF
17474
 
if ac_fn_c_try_link "$LINENO"; then :
17475
 
  ac_cv_lib_netcdf_nc_open=yes
17476
 
else
17477
 
  ac_cv_lib_netcdf_nc_open=no
17478
 
fi
17479
 
rm -f core conftest.err conftest.$ac_objext \
17480
 
    conftest$ac_exeext conftest.$ac_ext
17481
 
LIBS=$ac_check_lib_save_LIBS
17482
 
fi
17483
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
17484
 
$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
17485
 
if test "x$ac_cv_lib_netcdf_nc_open" = x""yes; then :
17486
 
  NETCDF_SETTING=yes
17487
 
else
17488
 
  NETCDF_SETTING=no
17489
 
fi
17490
 
 
17491
 
 
17492
 
  if test "$NETCDF_SETTING" = "yes" ; then
17493
 
    LIBS="-lnetcdf $LIBS"
17494
 
    echo "using pre-installed libnetcdf."
17495
 
  else
17496
 
    echo "libnetcdf not found - netCDF support disabled"
17497
 
  fi
17498
 
 
17499
 
  if test "$NETCDF_SETTING" = "yes" -a -d /usr/include/netcdf ; then
17500
 
    EXTRA_INCLUDES="-I/usr/include/netcdf $EXTRA_INCLUDES"
17501
 
  elif test "$NETCDF_SETTING" = "yes" -a -d /usr/include/netcdf-3 ; then
17502
 
    EXTRA_INCLUDES="-I/usr/include/netcdf-3 $EXTRA_INCLUDES"
17503
 
  fi
17504
 
else
17505
 
 
17506
 
  NETCDF_SETTING=yes
17507
 
  LIBS="-L$with_netcdf -L$with_netcdf/lib -lnetcdf $LIBS"
17508
 
  EXTRA_INCLUDES="-I$with_netcdf -I$with_netcdf/include $EXTRA_INCLUDES"
17509
 
 
17510
 
  echo "using libnetcdf from $with_netcdf."
17511
 
fi
17512
 
 
17513
 
NETCDF_SETTING=$NETCDF_SETTING
17514
 
 
17515
 
 
17516
 
if test "$NETCDF_SETTING" != "no" ; then
17517
 
  OPT_GDAL_FORMATS="netcdf $OPT_GDAL_FORMATS"
17518
 
fi
17519
 
 
17520
 
 
17521
 
 
17522
19416
# Check whether --with-png was given.
17523
19417
if test "${with_png+set}" = set; then :
17524
19418
  withval=$with_png;
17538
19432
 
17539
19433
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_IHDR in -lpng" >&5
17540
19434
$as_echo_n "checking for png_set_IHDR in -lpng... " >&6; }
17541
 
if test "${ac_cv_lib_png_png_set_IHDR+set}" = set; then :
 
19435
if ${ac_cv_lib_png_png_set_IHDR+:} false; then :
17542
19436
  $as_echo_n "(cached) " >&6
17543
19437
else
17544
19438
  ac_check_lib_save_LIBS=$LIBS
17572
19466
fi
17573
19467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_IHDR" >&5
17574
19468
$as_echo "$ac_cv_lib_png_png_set_IHDR" >&6; }
17575
 
if test "x$ac_cv_lib_png_png_set_IHDR" = x""yes; then :
 
19469
if test "x$ac_cv_lib_png_png_set_IHDR" = xyes; then :
17576
19470
  PNG_SETTING=external
17577
19471
else
17578
19472
  PNG_SETTING=internal
17581
19475
  for ac_header in png.h
17582
19476
do :
17583
19477
  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
17584
 
if test "x$ac_cv_header_png_h" = x""yes; then :
 
19478
if test "x$ac_cv_header_png_h" = xyes; then :
17585
19479
  cat >>confdefs.h <<_ACEOF
17586
19480
#define HAVE_PNG_H 1
17587
19481
_ACEOF
17626
19520
 
17627
19521
 
17628
19522
 
 
19523
# Check whether --with-gta was given.
 
19524
if test "${with_gta+set}" = set; then :
 
19525
  withval=$with_gta;
 
19526
fi
 
19527
 
 
19528
 
 
19529
if test "$with_gta" = "no" ; then
 
19530
 
 
19531
  GTA_SETTING=no
 
19532
 
 
19533
  echo "GTA support disabled."
 
19534
 
 
19535
elif test "$with_gta" = "yes" -o "$with_gta" = "" ; then
 
19536
 
 
19537
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gta_version in -lgta" >&5
 
19538
$as_echo_n "checking for gta_version in -lgta... " >&6; }
 
19539
if ${ac_cv_lib_gta_gta_version+:} false; then :
 
19540
  $as_echo_n "(cached) " >&6
 
19541
else
 
19542
  ac_check_lib_save_LIBS=$LIBS
 
19543
LIBS="-lgta  $LIBS"
 
19544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19545
/* end confdefs.h.  */
 
19546
 
 
19547
/* Override any GCC internal prototype to avoid an error.
 
19548
   Use char because int might match the return type of a GCC
 
19549
   builtin and then its argument prototype would still apply.  */
 
19550
#ifdef __cplusplus
 
19551
extern "C"
 
19552
#endif
 
19553
char gta_version ();
 
19554
int
 
19555
main ()
 
19556
{
 
19557
return gta_version ();
 
19558
  ;
 
19559
  return 0;
 
19560
}
 
19561
_ACEOF
 
19562
if ac_fn_c_try_link "$LINENO"; then :
 
19563
  ac_cv_lib_gta_gta_version=yes
 
19564
else
 
19565
  ac_cv_lib_gta_gta_version=no
 
19566
fi
 
19567
rm -f core conftest.err conftest.$ac_objext \
 
19568
    conftest$ac_exeext conftest.$ac_ext
 
19569
LIBS=$ac_check_lib_save_LIBS
 
19570
fi
 
19571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gta_gta_version" >&5
 
19572
$as_echo "$ac_cv_lib_gta_gta_version" >&6; }
 
19573
if test "x$ac_cv_lib_gta_gta_version" = xyes; then :
 
19574
  GTA_SETTING=yes
 
19575
else
 
19576
  GTA_SETTING=no
 
19577
fi
 
19578
 
 
19579
 
 
19580
  if test "$GTA_SETTING" = "yes" ; then
 
19581
    LIBS="-lgta $LIBS"
 
19582
    echo "using pre-installed libgta."
 
19583
  else
 
19584
    echo "libgta not found - GTA support disabled"
 
19585
  fi
 
19586
 
 
19587
else
 
19588
 
 
19589
  GTA_SETTING=yes
 
19590
  LIBS="-L$with_gta -L$with_gta/lib -lgta $LIBS"
 
19591
  EXTRA_INCLUDES="-I$with_gta -I$with_gta/include $EXTRA_INCLUDES"
 
19592
 
 
19593
  echo "using libgta from $with_gta."
 
19594
fi
 
19595
 
 
19596
GTA_SETTING=$GTA_SETTING
 
19597
 
 
19598
 
 
19599
if test "$GTA_SETTING" != "no" ; then
 
19600
  OPT_GDAL_FORMATS="gta $OPT_GDAL_FORMATS"
 
19601
fi
 
19602
 
 
19603
 
 
19604
 
17629
19605
# Check whether --with-pcidsk was given.
17630
19606
if test "${with_pcidsk+set}" = set; then :
17631
19607
  withval=$with_pcidsk;
17678
19654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtiff" >&5
17679
19655
$as_echo_n "checking for libtiff... " >&6; }
17680
19656
 
17681
 
if test "$with_libtiff" = "yes" -o "$with_libtiff" = "" ; then
 
19657
if test "x${with_libtiff}" = "xyes" -o "x${with_libtiff}" = "x" ; then
17682
19658
 
17683
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetTagListCount in -ltiff" >&5
17684
 
$as_echo_n "checking for TIFFGetTagListCount in -ltiff... " >&6; }
17685
 
if test "${ac_cv_lib_tiff_TIFFGetTagListCount+set}" = set; then :
 
19659
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFScanlineSize64 in -ltiff" >&5
 
19660
$as_echo_n "checking for TIFFScanlineSize64 in -ltiff... " >&6; }
 
19661
if ${ac_cv_lib_tiff_TIFFScanlineSize64+:} false; then :
17686
19662
  $as_echo_n "(cached) " >&6
17687
19663
else
17688
19664
  ac_check_lib_save_LIBS=$LIBS
17696
19672
#ifdef __cplusplus
17697
19673
extern "C"
17698
19674
#endif
17699
 
char TIFFGetTagListCount ();
 
19675
char TIFFScanlineSize64 ();
17700
19676
int
17701
19677
main ()
17702
19678
{
17703
 
return TIFFGetTagListCount ();
 
19679
return TIFFScanlineSize64 ();
17704
19680
  ;
17705
19681
  return 0;
17706
19682
}
17707
19683
_ACEOF
17708
19684
if ac_fn_c_try_link "$LINENO"; then :
17709
 
  ac_cv_lib_tiff_TIFFGetTagListCount=yes
 
19685
  ac_cv_lib_tiff_TIFFScanlineSize64=yes
17710
19686
else
17711
 
  ac_cv_lib_tiff_TIFFGetTagListCount=no
 
19687
  ac_cv_lib_tiff_TIFFScanlineSize64=no
17712
19688
fi
17713
19689
rm -f core conftest.err conftest.$ac_objext \
17714
19690
    conftest$ac_exeext conftest.$ac_ext
17715
19691
LIBS=$ac_check_lib_save_LIBS
17716
19692
fi
17717
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetTagListCount" >&5
17718
 
$as_echo "$ac_cv_lib_tiff_TIFFGetTagListCount" >&6; }
17719
 
if test "x$ac_cv_lib_tiff_TIFFGetTagListCount" = x""yes; then :
17720
 
  TIFF_SETTING=external
 
19693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFScanlineSize64" >&5
 
19694
$as_echo "$ac_cv_lib_tiff_TIFFScanlineSize64" >&6; }
 
19695
if test "x$ac_cv_lib_tiff_TIFFScanlineSize64" = xyes; then :
 
19696
  TIFF_SETTING=external HAVE_BIGTIFF=yes
17721
19697
else
17722
 
  TIFF_SETTING=internal
 
19698
  TIFF_SETTING=internal HAVE_BIGTIFF=yes
17723
19699
fi
17724
19700
 
17725
19701
 
17726
 
        if test "$TIFF_SETTING" = "external" ; then
17727
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _TIFFsetDoubleArray in -ltiff" >&5
 
19702
  if test "$TIFF_SETTING" = "external" ; then
 
19703
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _TIFFsetDoubleArray in -ltiff" >&5
17728
19704
$as_echo_n "checking for _TIFFsetDoubleArray in -ltiff... " >&6; }
17729
 
if test "${ac_cv_lib_tiff__TIFFsetDoubleArray+set}" = set; then :
 
19705
if ${ac_cv_lib_tiff__TIFFsetDoubleArray+:} false; then :
17730
19706
  $as_echo_n "(cached) " >&6
17731
19707
else
17732
19708
  ac_check_lib_save_LIBS=$LIBS
17760
19736
fi
17761
19737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff__TIFFsetDoubleArray" >&5
17762
19738
$as_echo "$ac_cv_lib_tiff__TIFFsetDoubleArray" >&6; }
17763
 
if test "x$ac_cv_lib_tiff__TIFFsetDoubleArray" = x""yes; then :
 
19739
if test "x$ac_cv_lib_tiff__TIFFsetDoubleArray" = xyes; then :
17764
19740
  TIFF_SETTING=external
17765
19741
else
17766
19742
  TIFF_SETTING=internal
17767
19743
fi
17768
19744
 
17769
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFScanlineSize64 in -ltiff" >&5
17770
 
$as_echo_n "checking for TIFFScanlineSize64 in -ltiff... " >&6; }
17771
 
if test "${ac_cv_lib_tiff_TIFFScanlineSize64+set}" = set; then :
17772
 
  $as_echo_n "(cached) " >&6
17773
 
else
17774
 
  ac_check_lib_save_LIBS=$LIBS
17775
 
LIBS="-ltiff  $LIBS"
17776
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777
 
/* end confdefs.h.  */
17778
 
 
17779
 
/* Override any GCC internal prototype to avoid an error.
17780
 
   Use char because int might match the return type of a GCC
17781
 
   builtin and then its argument prototype would still apply.  */
17782
 
#ifdef __cplusplus
17783
 
extern "C"
17784
 
#endif
17785
 
char TIFFScanlineSize64 ();
17786
 
int
17787
 
main ()
17788
 
{
17789
 
return TIFFScanlineSize64 ();
17790
 
  ;
17791
 
  return 0;
17792
 
}
17793
 
_ACEOF
17794
 
if ac_fn_c_try_link "$LINENO"; then :
17795
 
  ac_cv_lib_tiff_TIFFScanlineSize64=yes
17796
 
else
17797
 
  ac_cv_lib_tiff_TIFFScanlineSize64=no
17798
 
fi
17799
 
rm -f core conftest.err conftest.$ac_objext \
17800
 
    conftest$ac_exeext conftest.$ac_ext
17801
 
LIBS=$ac_check_lib_save_LIBS
17802
 
fi
17803
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFScanlineSize64" >&5
17804
 
$as_echo "$ac_cv_lib_tiff_TIFFScanlineSize64" >&6; }
17805
 
if test "x$ac_cv_lib_tiff_TIFFScanlineSize64" = x""yes; then :
17806
 
  HAVE_BIGTIFF=yes
17807
 
else
17808
 
  HAVE_BIGTIFF=no
17809
 
fi
17810
 
 
17811
 
  else
17812
 
    HAVE_BIGTIFF=yes
17813
19745
  fi
17814
19746
 
17815
19747
  if test "$TIFF_SETTING" = "external" ; then
17816
19748
    LIBS="-ltiff $LIBS"
17817
 
    echo "using pre-installed libtiff."
 
19749
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using pre-installed libtiff." >&5
 
19750
$as_echo "using pre-installed libtiff." >&6; }
17818
19751
  else
17819
 
    echo "using internal TIFF code."
 
19752
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using internal TIFF code." >&5
 
19753
$as_echo "using internal TIFF code." >&6; }
17820
19754
  fi
17821
19755
 
17822
 
elif test "$with_libtiff" = "internal" ; then
 
19756
elif test "x${with_libtiff}" = "xinternal" ; then
17823
19757
 
17824
19758
  TIFF_SETTING=internal
17825
19759
  HAVE_BIGTIFF=yes
17826
19760
 
17827
 
  echo "using internal TIFF code."
 
19761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using internal TIFF code." >&5
 
19762
$as_echo "using internal TIFF code." >&6; }
17828
19763
 
17829
19764
else
17830
19765
 
17831
19766
  TIFF_SETTING=external
17832
 
  if test -r $with_libtiff/tiff.h ; then
 
19767
  if test -r "$with_libtiff/tiff.h" ; then
17833
19768
    LIBS="-L$with_libtiff -ltiff $LIBS"
17834
19769
    EXTRA_INCLUDES="-I$with_libtiff $EXTRA_INCLUDES"
17835
19770
  else
17837
19772
    EXTRA_INCLUDES="-I$with_libtiff/include $EXTRA_INCLUDES"
17838
19773
  fi
17839
19774
 
17840
 
  echo "using libtiff from $with_libtiff."
 
19775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libtiff from ${with_libtiff}." >&5
 
19776
$as_echo "using libtiff from ${with_libtiff}." >&6; }
17841
19777
 
17842
19778
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFScanlineSize64 in -ltiff" >&5
17843
19779
$as_echo_n "checking for TIFFScanlineSize64 in -ltiff... " >&6; }
17844
 
if test "${ac_cv_lib_tiff_TIFFScanlineSize64+set}" = set; then :
 
19780
if ${ac_cv_lib_tiff_TIFFScanlineSize64+:} false; then :
17845
19781
  $as_echo_n "(cached) " >&6
17846
19782
else
17847
19783
  ac_check_lib_save_LIBS=$LIBS
17875
19811
fi
17876
19812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFScanlineSize64" >&5
17877
19813
$as_echo "$ac_cv_lib_tiff_TIFFScanlineSize64" >&6; }
17878
 
if test "x$ac_cv_lib_tiff_TIFFScanlineSize64" = x""yes; then :
 
19814
if test "x$ac_cv_lib_tiff_TIFFScanlineSize64" = xyes; then :
17879
19815
  HAVE_BIGTIFF=yes
17880
19816
else
17881
19817
  HAVE_BIGTIFF=no
17887
19823
if test "${HAVE_BIGTIFF}" = "yes" ; then
17888
19824
  TIFF_OPTS="-DBIGTIFF_SUPPORT"
17889
19825
 
17890
 
  echo "BigTIFF support enabled."
 
19826
 
 
19827
echo "BigTIFF support enabled."
 
19828
 
17891
19829
fi
17892
19830
 
17893
19831
TIFF_SETTING=${TIFF_SETTING}
17911
19849
  else
17912
19850
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTIFFClientOpen in -lgeotiff" >&5
17913
19851
$as_echo_n "checking for XTIFFClientOpen in -lgeotiff... " >&6; }
17914
 
if test "${ac_cv_lib_geotiff_XTIFFClientOpen+set}" = set; then :
 
19852
if ${ac_cv_lib_geotiff_XTIFFClientOpen+:} false; then :
17915
19853
  $as_echo_n "(cached) " >&6
17916
19854
else
17917
19855
  ac_check_lib_save_LIBS=$LIBS
17945
19883
fi
17946
19884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geotiff_XTIFFClientOpen" >&5
17947
19885
$as_echo "$ac_cv_lib_geotiff_XTIFFClientOpen" >&6; }
17948
 
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = x""yes; then :
 
19886
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = xyes; then :
17949
19887
  GEOTIFF_SETTING=external
17950
19888
else
17951
19889
  GEOTIFF_SETTING=internal
17983
19921
 
17984
19922
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTIFFClientOpen in -lgeotiff" >&5
17985
19923
$as_echo_n "checking for XTIFFClientOpen in -lgeotiff... " >&6; }
17986
 
if test "${ac_cv_lib_geotiff_XTIFFClientOpen+set}" = set; then :
 
19924
if ${ac_cv_lib_geotiff_XTIFFClientOpen+:} false; then :
17987
19925
  $as_echo_n "(cached) " >&6
17988
19926
else
17989
19927
  ac_check_lib_save_LIBS=$LIBS
18017
19955
fi
18018
19956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geotiff_XTIFFClientOpen" >&5
18019
19957
$as_echo "$ac_cv_lib_geotiff_XTIFFClientOpen" >&6; }
18020
 
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = x""yes; then :
 
19958
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = xyes; then :
18021
19959
  GEOTIFF_SETTING=external
18022
19960
else
18023
19961
  GEOTIFF_SETTING=not_found
18032
19970
  else
18033
19971
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTIFFClientOpen in -lgeotiff" >&5
18034
19972
$as_echo_n "checking for XTIFFClientOpen in -lgeotiff... " >&6; }
18035
 
if test "${ac_cv_lib_geotiff_XTIFFClientOpen+set}" = set; then :
 
19973
if ${ac_cv_lib_geotiff_XTIFFClientOpen+:} false; then :
18036
19974
  $as_echo_n "(cached) " >&6
18037
19975
else
18038
19976
  ac_check_lib_save_LIBS=$LIBS
18066
20004
fi
18067
20005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geotiff_XTIFFClientOpen" >&5
18068
20006
$as_echo "$ac_cv_lib_geotiff_XTIFFClientOpen" >&6; }
18069
 
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = x""yes; then :
 
20007
if test "x$ac_cv_lib_geotiff_XTIFFClientOpen" = xyes; then :
18070
20008
  GEOTIFF_SETTING=external
18071
20009
else
18072
 
  as_fn_error "We require at least GeoTIFF 1.2.1. Consider using the one supplied with GDAL" "$LINENO" 5
 
20010
  as_fn_error $? "We require at least GeoTIFF 1.2.1. Consider using the one supplied with GDAL" "$LINENO" 5
18073
20011
fi
18074
20012
 
18075
20013
    if test $GEOTIFF_SETTING = "external" ; then
18104
20042
 
18105
20043
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
18106
20044
$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
18107
 
if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then :
 
20045
if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
18108
20046
  $as_echo_n "(cached) " >&6
18109
20047
else
18110
20048
  ac_check_lib_save_LIBS=$LIBS
18138
20076
fi
18139
20077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
18140
20078
$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18141
 
if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = x""yes; then :
 
20079
if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18142
20080
  JPEG_SETTING=external
18143
20081
else
18144
20082
  JPEG_SETTING=internal
18147
20085
  for ac_header in jpeglib.h
18148
20086
do :
18149
20087
  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18150
 
if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
 
20088
if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18151
20089
  cat >>confdefs.h <<_ACEOF
18152
20090
#define HAVE_JPEGLIB_H 1
18153
20091
_ACEOF
18261
20199
 
18262
20200
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5
18263
20201
$as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; }
18264
 
if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then :
 
20202
if ${ac_cv_lib_gif_DGifOpenFileName+:} false; then :
18265
20203
  $as_echo_n "(cached) " >&6
18266
20204
else
18267
20205
  ac_check_lib_save_LIBS=$LIBS
18295
20233
fi
18296
20234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5
18297
20235
$as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; }
18298
 
if test "x$ac_cv_lib_gif_DGifOpenFileName" = x""yes; then :
 
20236
if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then :
18299
20237
  GIF_SETTING=external
18300
20238
else
18301
20239
  GIF_SETTING=internal
18302
20240
fi
18303
20241
 
 
20242
  for ac_header in gif_lib.h
 
20243
do :
 
20244
  ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
 
20245
if test "x$ac_cv_header_gif_lib_h" = xyes; then :
 
20246
  cat >>confdefs.h <<_ACEOF
 
20247
#define HAVE_GIF_LIB_H 1
 
20248
_ACEOF
 
20249
 
 
20250
fi
 
20251
 
 
20252
done
 
20253
 
18304
20254
 
18305
20255
  if test "$GIF_SETTING" = "external" ; then
18306
20256
    LIBS="-lgif $LIBS"
18354
20304
  for ac_header in ecs.h
18355
20305
do :
18356
20306
  ac_fn_c_check_header_mongrel "$LINENO" "ecs.h" "ac_cv_header_ecs_h" "$ac_includes_default"
18357
 
if test "x$ac_cv_header_ecs_h" = x""yes; then :
 
20307
if test "x$ac_cv_header_ecs_h" = xyes; then :
18358
20308
  cat >>confdefs.h <<_ACEOF
18359
20309
#define HAVE_ECS_H 1
18360
20310
_ACEOF
18379
20329
  if test "$OGDI_INCLUDE" != "" -o "$ac_cv_header_ecs_h" = "yes"; then
18380
20330
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cln_GetLayerCapabilities in -logdi" >&5
18381
20331
$as_echo_n "checking for cln_GetLayerCapabilities in -logdi... " >&6; }
18382
 
if test "${ac_cv_lib_ogdi_cln_GetLayerCapabilities+set}" = set; then :
 
20332
if ${ac_cv_lib_ogdi_cln_GetLayerCapabilities+:} false; then :
18383
20333
  $as_echo_n "(cached) " >&6
18384
20334
else
18385
20335
  ac_check_lib_save_LIBS=$LIBS
18413
20363
fi
18414
20364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogdi_cln_GetLayerCapabilities" >&5
18415
20365
$as_echo "$ac_cv_lib_ogdi_cln_GetLayerCapabilities" >&6; }
18416
 
if test "x$ac_cv_lib_ogdi_cln_GetLayerCapabilities" = x""yes; then :
 
20366
if test "x$ac_cv_lib_ogdi_cln_GetLayerCapabilities" = xyes; then :
18417
20367
  HAVE_OGDI=yes
18418
20368
else
18419
20369
  HAVE_OGDI=no
18424
20374
    else
18425
20375
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cln_GetLayerCapabilities in -logdi31" >&5
18426
20376
$as_echo_n "checking for cln_GetLayerCapabilities in -logdi31... " >&6; }
18427
 
if test "${ac_cv_lib_ogdi31_cln_GetLayerCapabilities+set}" = set; then :
 
20377
if ${ac_cv_lib_ogdi31_cln_GetLayerCapabilities+:} false; then :
18428
20378
  $as_echo_n "(cached) " >&6
18429
20379
else
18430
20380
  ac_check_lib_save_LIBS=$LIBS
18458
20408
fi
18459
20409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogdi31_cln_GetLayerCapabilities" >&5
18460
20410
$as_echo "$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" >&6; }
18461
 
if test "x$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" = x""yes; then :
 
20411
if test "x$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" = xyes; then :
18462
20412
  HAVE_OGDI=yes
18463
20413
else
18464
20414
  HAVE_OGDI=no
18476
20426
 
18477
20427
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cln_GetLayerCapabilities in -logdi" >&5
18478
20428
$as_echo_n "checking for cln_GetLayerCapabilities in -logdi... " >&6; }
18479
 
if test "${ac_cv_lib_ogdi_cln_GetLayerCapabilities+set}" = set; then :
 
20429
if ${ac_cv_lib_ogdi_cln_GetLayerCapabilities+:} false; then :
18480
20430
  $as_echo_n "(cached) " >&6
18481
20431
else
18482
20432
  ac_check_lib_save_LIBS=$LIBS
18510
20460
fi
18511
20461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogdi_cln_GetLayerCapabilities" >&5
18512
20462
$as_echo "$ac_cv_lib_ogdi_cln_GetLayerCapabilities" >&6; }
18513
 
if test "x$ac_cv_lib_ogdi_cln_GetLayerCapabilities" = x""yes; then :
 
20463
if test "x$ac_cv_lib_ogdi_cln_GetLayerCapabilities" = xyes; then :
18514
20464
  HAVE_OGDI=yes
18515
20465
else
18516
20466
  HAVE_OGDI=no
18524
20474
        echo "using libogdi from $with_ogdi."
18525
20475
     else
18526
20476
        HAVE_OGDI=no
18527
 
        as_fn_error "ecs.h not found." "$LINENO" 5
 
20477
        as_fn_error $? "ecs.h not found." "$LINENO" 5
18528
20478
     fi
18529
20479
  else
18530
20480
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cln_GetLayerCapabilities in -logdi31" >&5
18531
20481
$as_echo_n "checking for cln_GetLayerCapabilities in -logdi31... " >&6; }
18532
 
if test "${ac_cv_lib_ogdi31_cln_GetLayerCapabilities+set}" = set; then :
 
20482
if ${ac_cv_lib_ogdi31_cln_GetLayerCapabilities+:} false; then :
18533
20483
  $as_echo_n "(cached) " >&6
18534
20484
else
18535
20485
  ac_check_lib_save_LIBS=$LIBS
18563
20513
fi
18564
20514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogdi31_cln_GetLayerCapabilities" >&5
18565
20515
$as_echo "$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" >&6; }
18566
 
if test "x$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" = x""yes; then :
 
20516
if test "x$ac_cv_lib_ogdi31_cln_GetLayerCapabilities" = xyes; then :
18567
20517
  HAVE_OGDI=yes
18568
20518
else
18569
20519
  HAVE_OGDI=no
18577
20527
        echo "using libogdi31 from $with_ogdi."
18578
20528
      else
18579
20529
        HAVE_OGDI=no
18580
 
        as_fn_error "ecs.h not found." "$LINENO" 5
 
20530
        as_fn_error $? "ecs.h not found." "$LINENO" 5
18581
20531
      fi
18582
20532
    else
18583
 
      as_fn_error "libogdi not found." "$LINENO" 5
 
20533
      as_fn_error $? "libogdi not found." "$LINENO" 5
18584
20534
    fi
18585
20535
  fi
18586
20536
 
18617
20567
elif test "$with_fme" = "yes" ; then
18618
20568
 
18619
20569
  if test "$FME_HOME" = "" ; then
18620
 
    as_fn_error "no, FME_HOME not defined!" "$LINENO" 5
 
20570
    as_fn_error $? "no, FME_HOME not defined!" "$LINENO" 5
18621
20571
  elif test -f $FME_HOME/fmeobjects/cpp/isession.h ; then
18622
20572
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18623
20573
$as_echo "yes" >&6; }
18624
20574
    X_FME_HOME=$FME_HOME
18625
20575
  else
18626
 
    as_fn_error "FME_HOME defined, but $FME_HOME/fmeobjects/cpp/issesion.h not found." "$LINENO" 5
 
20576
    as_fn_error $? "FME_HOME defined, but $FME_HOME/fmeobjects/cpp/issesion.h not found." "$LINENO" 5
18627
20577
  fi
18628
20578
 
18629
20579
elif test "$with_fme" = "" ; then
18647
20597
$as_echo "yes" >&6; }
18648
20598
    X_FME_HOME=$with_fme
18649
20599
  else
18650
 
    as_fn_error "$with_fme/fmeobjects/cpp/issesion.h not found!" "$LINENO" 5
 
20600
    as_fn_error $? "$with_fme/fmeobjects/cpp/issesion.h not found!" "$LINENO" 5
18651
20601
  fi
18652
20602
 
18653
20603
fi
18674
20624
else
18675
20625
 
18676
20626
  if test x"$with_hdf4" = x"yes" -o x"$with_hdf4" = x"" ; then
18677
 
    if test -d /usr/lib/hdf; then
 
20627
    if test -d /usr/lib64/hdf; then
 
20628
      HDF_LIB_DIR="/usr/lib64/hdf"
 
20629
    elif test -d /usr/lib/hdf; then
18678
20630
      HDF_LIB_DIR="/usr/lib/hdf"
18679
20631
    else
18680
20632
      HDF_LIB_DIR=""
18694
20646
 
18695
20647
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDreaddata in -lmfhdfalt" >&5
18696
20648
$as_echo_n "checking for SDreaddata in -lmfhdfalt... " >&6; }
18697
 
if test "${ac_cv_lib_mfhdfalt_SDreaddata+set}" = set; then :
 
20649
if ${ac_cv_lib_mfhdfalt_SDreaddata+:} false; then :
18698
20650
  $as_echo_n "(cached) " >&6
18699
20651
else
18700
20652
  ac_check_lib_save_LIBS=$LIBS
18728
20680
fi
18729
20681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdfalt_SDreaddata" >&5
18730
20682
$as_echo "$ac_cv_lib_mfhdfalt_SDreaddata" >&6; }
18731
 
if test "x$ac_cv_lib_mfhdfalt_SDreaddata" = x""yes; then :
 
20683
if test "x$ac_cv_lib_mfhdfalt_SDreaddata" = xyes; then :
18732
20684
  HDF_LIB_NAME="-lmfhdfalt -ldfalt"
18733
20685
else
18734
20686
  HDF_LIB_NAME=missing
18739
20691
    unset ac_cv_lib_mfhdf_SDreaddata
18740
20692
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDreaddata in -lmfhdf" >&5
18741
20693
$as_echo_n "checking for SDreaddata in -lmfhdf... " >&6; }
18742
 
if test "${ac_cv_lib_mfhdf_SDreaddata+set}" = set; then :
 
20694
if ${ac_cv_lib_mfhdf_SDreaddata+:} false; then :
18743
20695
  $as_echo_n "(cached) " >&6
18744
20696
else
18745
20697
  ac_check_lib_save_LIBS=$LIBS
18773
20725
fi
18774
20726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
18775
20727
$as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
18776
 
if test "x$ac_cv_lib_mfhdf_SDreaddata" = x""yes; then :
 
20728
if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
18777
20729
  HDF_LIB_NAME="-lmfhdf -ldf"
18778
20730
else
18779
20731
  HDF_LIB_NAME=missing
18783
20735
      unset ac_cv_lib_mfhdf_SDreaddata
18784
20736
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDreaddata in -lhdf4" >&5
18785
20737
$as_echo_n "checking for SDreaddata in -lhdf4... " >&6; }
18786
 
if test "${ac_cv_lib_hdf4_SDreaddata+set}" = set; then :
 
20738
if ${ac_cv_lib_hdf4_SDreaddata+:} false; then :
18787
20739
  $as_echo_n "(cached) " >&6
18788
20740
else
18789
20741
  ac_check_lib_save_LIBS=$LIBS
18817
20769
fi
18818
20770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf4_SDreaddata" >&5
18819
20771
$as_echo "$ac_cv_lib_hdf4_SDreaddata" >&6; }
18820
 
if test "x$ac_cv_lib_hdf4_SDreaddata" = x""yes; then :
 
20772
if test "x$ac_cv_lib_hdf4_SDreaddata" = xyes; then :
18821
20773
  HDF_LIB_NAME=-lhdf4
18822
20774
else
18823
20775
  HDF_LIB_NAME=missing
18830
20782
    unset ac_cv_lib_mfhdf_SDreaddata
18831
20783
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDreaddata in -lmfhdf" >&5
18832
20784
$as_echo_n "checking for SDreaddata in -lmfhdf... " >&6; }
18833
 
if test "${ac_cv_lib_mfhdf_SDreaddata+set}" = set; then :
 
20785
if ${ac_cv_lib_mfhdf_SDreaddata+:} false; then :
18834
20786
  $as_echo_n "(cached) " >&6
18835
20787
else
18836
20788
  ac_check_lib_save_LIBS=$LIBS
18864
20816
fi
18865
20817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
18866
20818
$as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
18867
 
if test "x$ac_cv_lib_mfhdf_SDreaddata" = x""yes; then :
 
20819
if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
18868
20820
  HDF_LIB_NAME="-lmfhdf -ldf"
18869
20821
else
18870
20822
  HDF_LIB_NAME=missing
18876
20828
    unset ac_cv_lib_mfhdf_SDreaddata
18877
20829
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDreaddata in -lmfhdf" >&5
18878
20830
$as_echo_n "checking for SDreaddata in -lmfhdf... " >&6; }
18879
 
if test "${ac_cv_lib_mfhdf_SDreaddata+set}" = set; then :
 
20831
if ${ac_cv_lib_mfhdf_SDreaddata+:} false; then :
18880
20832
  $as_echo_n "(cached) " >&6
18881
20833
else
18882
20834
  ac_check_lib_save_LIBS=$LIBS
18910
20862
fi
18911
20863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
18912
20864
$as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
18913
 
if test "x$ac_cv_lib_mfhdf_SDreaddata" = x""yes; then :
 
20865
if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
18914
20866
  HDF_LIB_NAME="-lmfhdf -ldf -lsz"
18915
20867
else
18916
20868
  HDF_LIB_NAME=missing
18943
20895
  else
18944
20896
 
18945
20897
    if test x"$with_hdf4" != x"" ; then
18946
 
      as_fn_error "HDF4 support requested with arg \"$with_hdf4\", but neither hdf4 nor mfhdf lib found" "$LINENO" 5
 
20898
      as_fn_error $? "HDF4 support requested with arg \"$with_hdf4\", but neither hdf4 nor mfhdf lib found" "$LINENO" 5
18947
20899
    else
18948
20900
      LIBS="$ORIG_LIBS"
18949
20901
      HAVE_HDF4=no
18983
20935
 
18984
20936
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
18985
20937
$as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
18986
 
if test "${ac_cv_lib_hdf5_H5Fopen+set}" = set; then :
 
20938
if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
18987
20939
  $as_echo_n "(cached) " >&6
18988
20940
else
18989
20941
  ac_check_lib_save_LIBS=$LIBS
19017
20969
fi
19018
20970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
19019
20971
$as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
19020
 
if test "x$ac_cv_lib_hdf5_H5Fopen" = x""yes; then :
 
20972
if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
19021
20973
  HAVE_HDF5=yes
19022
20974
else
19023
20975
  HAVE_HDF5=no
19045
20997
 
19046
20998
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
19047
20999
$as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
19048
 
if test "${ac_cv_lib_hdf5_H5Fopen+set}" = set; then :
 
21000
if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
19049
21001
  $as_echo_n "(cached) " >&6
19050
21002
else
19051
21003
  ac_check_lib_save_LIBS=$LIBS
19079
21031
fi
19080
21032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
19081
21033
$as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
19082
 
if test "x$ac_cv_lib_hdf5_H5Fopen" = x""yes; then :
 
21034
if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
19083
21035
  HDF5_LIB_NAME="-lhdf5 "
19084
21036
else
19085
21037
  HDF5_LIB_NAME=missing
19087
21039
 
19088
21040
 
19089
21041
  if test "$HDF5_LIB_NAME" = "missing" ; then
19090
 
    as_fn_error "HDF5 support requested with arg $with_hdf5, but no hdf5 lib found" "$LINENO" 5
 
21042
    as_fn_error $? "HDF5 support requested with arg $with_hdf5, but no hdf5 lib found" "$LINENO" 5
19091
21043
  fi
19092
21044
 
19093
21045
  LIBS="-L$HDF5_LIB_DIR $HDF5_LIB_NAME $ORIG_LIBS"
19115
21067
fi
19116
21068
 
19117
21069
 
 
21070
NETCDF_SETTING=
 
21071
NETCDF_ROOT=
 
21072
NETCDF_HAS_NC4=
 
21073
NETCDF_HAS_HDF4=
 
21074
 
 
21075
 
 
21076
# Check whether --with-netcdf was given.
 
21077
if test "${with_netcdf+set}" = set; then :
 
21078
  withval=$with_netcdf;
 
21079
fi
 
21080
 
 
21081
 
 
21082
if test "$with_netcdf" = "no" ; then
 
21083
 
 
21084
  NETCDF_SETTING=no
 
21085
 
 
21086
  echo "netCDF support disabled."
 
21087
 
 
21088
elif test "$with_netcdf" = "yes" -o "$with_netcdf" = "" ; then
 
21089
 
 
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
 
21094
else
 
21095
  ac_check_lib_save_LIBS=$LIBS
 
21096
LIBS="-lnetcdf  $LIBS"
 
21097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21098
/* end confdefs.h.  */
 
21099
 
 
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.  */
 
21103
#ifdef __cplusplus
 
21104
extern "C"
 
21105
#endif
 
21106
char nc_open ();
 
21107
int
 
21108
main ()
 
21109
{
 
21110
return nc_open ();
 
21111
  ;
 
21112
  return 0;
 
21113
}
 
21114
_ACEOF
 
21115
if ac_fn_c_try_link "$LINENO"; then :
 
21116
  ac_cv_lib_netcdf_nc_open=yes
 
21117
else
 
21118
  ac_cv_lib_netcdf_nc_open=no
 
21119
fi
 
21120
rm -f core conftest.err conftest.$ac_objext \
 
21121
    conftest$ac_exeext conftest.$ac_ext
 
21122
LIBS=$ac_check_lib_save_LIBS
 
21123
fi
 
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 :
 
21127
  NETCDF_SETTING=yes
 
21128
else
 
21129
  NETCDF_SETTING=no
 
21130
fi
 
21131
 
 
21132
 
 
21133
  if test "$NETCDF_SETTING" = "yes" ; then
 
21134
 
 
21135
        if test -d /usr/include/netcdf ; then
 
21136
      EXTRA_INCLUDES="-I/usr/include/netcdf $EXTRA_INCLUDES"
 
21137
      NETCDF_ROOT="/usr"
 
21138
        elif test -d /usr/include/netcdf-3 ; then
 
21139
      EXTRA_INCLUDES="-I/usr/include/netcdf-3 $EXTRA_INCLUDES"
 
21140
      NETCDF_ROOT="/usr"
 
21141
        elif test -f /usr/include/netcdf.h ; then
 
21142
      NETCDF_ROOT="/usr"
 
21143
        elif test -f /usr/local/include/netcdf.h ; then
 
21144
      NETCDF_ROOT="/usr/local"
 
21145
        else
 
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"
 
21149
    fi
 
21150
 
 
21151
    LIBS="-lnetcdf $LIBS"
 
21152
    if test "$NETCDF_ROOT" != "" ; then
 
21153
      echo "using pre-installed libnetcdf from "$NETCDF_ROOT
 
21154
    fi
 
21155
 
 
21156
  else
 
21157
    echo "libnetcdf not found - netCDF support disabled"
 
21158
  fi
 
21159
 
 
21160
else
 
21161
 
 
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
 
21166
else
 
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.  */
 
21171
 
 
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.  */
 
21175
#ifdef __cplusplus
 
21176
extern "C"
 
21177
#endif
 
21178
char nc_open ();
 
21179
int
 
21180
main ()
 
21181
{
 
21182
return nc_open ();
 
21183
  ;
 
21184
  return 0;
 
21185
}
 
21186
_ACEOF
 
21187
if ac_fn_c_try_link "$LINENO"; then :
 
21188
  ac_cv_lib_netcdf_nc_open=yes
 
21189
else
 
21190
  ac_cv_lib_netcdf_nc_open=no
 
21191
fi
 
21192
rm -f core conftest.err conftest.$ac_objext \
 
21193
    conftest$ac_exeext conftest.$ac_ext
 
21194
LIBS=$ac_check_lib_save_LIBS
 
21195
fi
 
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 :
 
21199
  NETCDF_SETTING=yes
 
21200
else
 
21201
  NETCDF_SETTING=no
 
21202
fi
 
21203
 
 
21204
 
 
21205
  if test "$NETCDF_SETTING" = "yes" ; then
 
21206
 
 
21207
    NETCDF_SETTING=yes
 
21208
    NETCDF_ROOT="$with_netcdf"
 
21209
 
 
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"
 
21213
    else
 
21214
      LIBS="-L$with_netcdf -lnetcdf $LIBS"
 
21215
      EXTRA_INCLUDES="-I$with_netcdf $EXTRA_INCLUDES"
 
21216
    fi
 
21217
 
 
21218
    echo "using libnetcdf from $with_netcdf"
 
21219
 
 
21220
  else
 
21221
    echo "libnetcdf not found in "$with_netcdf" - netCDF support disabled"
 
21222
  fi
 
21223
 
 
21224
fi
 
21225
 
 
21226
 
 
21227
  if test "$NETCDF_SETTING" = "yes" ; then
 
21228
 
 
21229
    ncdump=$NETCDF_ROOT"/bin/ncdump"
 
21230
    nc_config=""
 
21231
 
 
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"
 
21240
      fi
 
21241
    fi
 
21242
 
 
21243
        if { test -x "$nc_config"; }; then
 
21244
      echo "checking libnetcdf config with $nc_config"
 
21245
 
 
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; }
 
21251
          NETCDF_HAS_NC4=yes
 
21252
        else
 
21253
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21254
$as_echo "no" >&6; }
 
21255
          NETCDF_HAS_NC4=no
 
21256
        fi
 
21257
 
 
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
 
21264
        else
 
21265
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21266
$as_echo "no" >&6; }
 
21267
          NETCDF_HAS_HDF4=no
 
21268
        fi
 
21269
 
 
21270
    else
 
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; }
 
21273
      NETCDF_HAS_NC4=no
 
21274
      NETCDF_HAS_HDF4=no
 
21275
    fi
 
21276
fi
 
21277
 
 
21278
 
 
21279
NETCDF_SETTING=$NETCDF_SETTING
 
21280
 
 
21281
NETCDF_ROOT=$NETCDF_ROOT
 
21282
 
 
21283
NETCDF_HAS_NC4=$NETCDF_HAS_NC4
 
21284
 
 
21285
NETCDF_HAS_HDF4=$NETCDF_HAS_HDF4
 
21286
 
 
21287
 
 
21288
if test "$NETCDF_SETTING" != "no" ; then
 
21289
  OPT_GDAL_FORMATS="netcdf $OPT_GDAL_FORMATS"
 
21290
fi
 
21291
 
 
21292
 
 
21293
 
19118
21294
 
19119
21295
# Check whether --with-jasper was given.
19120
21296
if test "${with_jasper+set}" = set; then :
19133
21309
 
19134
21310
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpc_decode in -ljasper" >&5
19135
21311
$as_echo_n "checking for jpc_decode in -ljasper... " >&6; }
19136
 
if test "${ac_cv_lib_jasper_jpc_decode+set}" = set; then :
 
21312
if ${ac_cv_lib_jasper_jpc_decode+:} false; then :
19137
21313
  $as_echo_n "(cached) " >&6
19138
21314
else
19139
21315
  ac_check_lib_save_LIBS=$LIBS
19167
21343
fi
19168
21344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jpc_decode" >&5
19169
21345
$as_echo "$ac_cv_lib_jasper_jpc_decode" >&6; }
19170
 
if test "x$ac_cv_lib_jasper_jpc_decode" = x""yes; then :
 
21346
if test "x$ac_cv_lib_jasper_jpc_decode" = xyes; then :
19171
21347
  HAVE_JASPER=yes
19172
21348
else
19173
21349
  HAVE_JASPER=no
19175
21351
 
19176
21352
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jp2_decode in -ljasper" >&5
19177
21353
$as_echo_n "checking for jp2_decode in -ljasper... " >&6; }
19178
 
if test "${ac_cv_lib_jasper_jp2_decode+set}" = set; then :
 
21354
if ${ac_cv_lib_jasper_jp2_decode+:} false; then :
19179
21355
  $as_echo_n "(cached) " >&6
19180
21356
else
19181
21357
  ac_check_lib_save_LIBS=$LIBS
19209
21385
fi
19210
21386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jp2_decode" >&5
19211
21387
$as_echo "$ac_cv_lib_jasper_jp2_decode" >&6; }
19212
 
if test "x$ac_cv_lib_jasper_jp2_decode" = x""yes; then :
 
21388
if test "x$ac_cv_lib_jasper_jp2_decode" = xyes; then :
19213
21389
  HAVE_JASPER=yes
19214
21390
else
19215
21391
  HAVE_JASPER=no
19217
21393
 
19218
21394
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgx_decode in -ljasper" >&5
19219
21395
$as_echo_n "checking for pgx_decode in -ljasper... " >&6; }
19220
 
if test "${ac_cv_lib_jasper_pgx_decode+set}" = set; then :
 
21396
if ${ac_cv_lib_jasper_pgx_decode+:} false; then :
19221
21397
  $as_echo_n "(cached) " >&6
19222
21398
else
19223
21399
  ac_check_lib_save_LIBS=$LIBS
19251
21427
fi
19252
21428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_pgx_decode" >&5
19253
21429
$as_echo "$ac_cv_lib_jasper_pgx_decode" >&6; }
19254
 
if test "x$ac_cv_lib_jasper_pgx_decode" = x""yes; then :
 
21430
if test "x$ac_cv_lib_jasper_pgx_decode" = xyes; then :
19255
21431
  HAVE_JASPER=yes
19256
21432
else
19257
21433
  HAVE_JASPER=no
19277
21453
 
19278
21454
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jp2_encode_uuid in -ljasper" >&5
19279
21455
$as_echo_n "checking for jp2_encode_uuid in -ljasper... " >&6; }
19280
 
if test "${ac_cv_lib_jasper_jp2_encode_uuid+set}" = set; then :
 
21456
if ${ac_cv_lib_jasper_jp2_encode_uuid+:} false; then :
19281
21457
  $as_echo_n "(cached) " >&6
19282
21458
else
19283
21459
  ac_check_lib_save_LIBS=$LIBS
19311
21487
fi
19312
21488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jp2_encode_uuid" >&5
19313
21489
$as_echo "$ac_cv_lib_jasper_jp2_encode_uuid" >&6; }
19314
 
if test "x$ac_cv_lib_jasper_jp2_encode_uuid" = x""yes; then :
 
21490
if test "x$ac_cv_lib_jasper_jp2_encode_uuid" = xyes; then :
19315
21491
  HAVE_JASPER_UUID=yes
19316
21492
else
19317
21493
  HAVE_JASPER_UUID=no
19335
21511
 
19336
21512
 
19337
21513
 
 
21514
 
 
21515
# Check whether --with-openjpeg was given.
 
21516
if test "${with_openjpeg+set}" = set; then :
 
21517
  withval=$with_openjpeg;
 
21518
fi
 
21519
 
 
21520
 
 
21521
if test "$with_openjpeg" = "no" ; then
 
21522
 
 
21523
  HAVE_OPENJPEG=no
 
21524
 
 
21525
  { $as_echo "$as_me:${as_lineno-$LINENO}: OpenJPEG (JPEG2000) support disabled." >&5
 
21526
$as_echo "$as_me: OpenJPEG (JPEG2000) support disabled." >&6;}
 
21527
 
 
21528
elif test "$with_openjpeg" = "yes" -o "$with_openjpeg" = "" ; then
 
21529
 
 
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
 
21534
else
 
21535
  ac_check_lib_save_LIBS=$LIBS
 
21536
LIBS="-lopenjpeg  $LIBS"
 
21537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21538
/* end confdefs.h.  */
 
21539
 
 
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.  */
 
21543
#ifdef __cplusplus
 
21544
extern "C"
 
21545
#endif
 
21546
char opj_decode_tile_data ();
 
21547
int
 
21548
main ()
 
21549
{
 
21550
return opj_decode_tile_data ();
 
21551
  ;
 
21552
  return 0;
 
21553
}
 
21554
_ACEOF
 
21555
if ac_fn_c_try_link "$LINENO"; then :
 
21556
  ac_cv_lib_openjpeg_opj_decode_tile_data=yes
 
21557
else
 
21558
  ac_cv_lib_openjpeg_opj_decode_tile_data=no
 
21559
fi
 
21560
rm -f core conftest.err conftest.$ac_objext \
 
21561
    conftest$ac_exeext conftest.$ac_ext
 
21562
LIBS=$ac_check_lib_save_LIBS
 
21563
fi
 
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 :
 
21567
  HAVE_OPENJPEG=yes
 
21568
else
 
21569
  HAVE_OPENJPEG=no
 
21570
fi
 
21571
 
 
21572
  for ac_header in openjpeg.h
 
21573
do :
 
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
 
21578
_ACEOF
 
21579
 
 
21580
fi
 
21581
 
 
21582
done
 
21583
 
 
21584
 
 
21585
  if test "$ac_cv_header_openjpeg_h" = "no"; then
 
21586
    HAVE_OPENJPEG=no
 
21587
  fi
 
21588
 
 
21589
  if test "$HAVE_OPENJPEG" = "yes" ; then
 
21590
    LIBS="-lopenjpeg $LIBS"
 
21591
  fi
 
21592
else
 
21593
 
 
21594
  HAVE_OPENJPEG=yes
 
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"
 
21602
  else
 
21603
    as_fn_error $? "openjpeg.h not found in $with_openjpeg/include or $with_openjpeg/include/openjpeg-2.0" "$LINENO" 5
 
21604
  fi
 
21605
 
 
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
 
21610
else
 
21611
  ac_check_lib_save_LIBS=$LIBS
 
21612
LIBS="-lopenjpeg  $LIBS"
 
21613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21614
/* end confdefs.h.  */
 
21615
 
 
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.  */
 
21619
#ifdef __cplusplus
 
21620
extern "C"
 
21621
#endif
 
21622
char opj_decode_tile_data ();
 
21623
int
 
21624
main ()
 
21625
{
 
21626
return opj_decode_tile_data ();
 
21627
  ;
 
21628
  return 0;
 
21629
}
 
21630
_ACEOF
 
21631
if ac_fn_c_try_link "$LINENO"; then :
 
21632
  ac_cv_lib_openjpeg_opj_decode_tile_data=yes
 
21633
else
 
21634
  ac_cv_lib_openjpeg_opj_decode_tile_data=no
 
21635
fi
 
21636
rm -f core conftest.err conftest.$ac_objext \
 
21637
    conftest$ac_exeext conftest.$ac_ext
 
21638
LIBS=$ac_check_lib_save_LIBS
 
21639
fi
 
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 :
 
21643
  HAVE_OPENJPEG=yes
 
21644
else
 
21645
  HAVE_OPENJPEG=no
 
21646
fi
 
21647
 
 
21648
 
 
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;}
 
21652
  fi
 
21653
fi
 
21654
 
 
21655
if test "$HAVE_OPENJPEG" != "no" ; then
 
21656
  OPT_GDAL_FORMATS="openjpeg $OPT_GDAL_FORMATS"
 
21657
fi
 
21658
 
 
21659
HAVE_OPENJPEG=$HAVE_OPENJPEG
 
21660
 
 
21661
 
 
21662
 
 
21663
 
 
21664
 
 
21665
 
 
21666
# Check whether --with-fgdb was given.
 
21667
if test "${with_fgdb+set}" = set; then :
 
21668
  withval=$with_fgdb;
 
21669
fi
 
21670
 
 
21671
 
 
21672
if test "$with_fgdb" = "no" ; then
 
21673
 
 
21674
  FGDB_ENABLED=no
 
21675
 
 
21676
  echo "FGDB support disabled."
 
21677
 
 
21678
elif test "$with_fgdb" = "yes" -o "$with_fgdb" = "" ; then
 
21679
 
 
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
 
21684
else
 
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.  */
 
21689
 
 
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.  */
 
21693
#ifdef __cplusplus
 
21694
extern "C"
 
21695
#endif
 
21696
char OpenGeodatabase ();
 
21697
int
 
21698
main ()
 
21699
{
 
21700
return OpenGeodatabase ();
 
21701
  ;
 
21702
  return 0;
 
21703
}
 
21704
_ACEOF
 
21705
if ac_fn_c_try_link "$LINENO"; then :
 
21706
  ac_cv_lib_FileGDBAPI_OpenGeodatabase=yes
 
21707
else
 
21708
  ac_cv_lib_FileGDBAPI_OpenGeodatabase=no
 
21709
fi
 
21710
rm -f core conftest.err conftest.$ac_objext \
 
21711
    conftest$ac_exeext conftest.$ac_ext
 
21712
LIBS=$ac_check_lib_save_LIBS
 
21713
fi
 
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 :
 
21717
  FGDB_ENABLED=yes
 
21718
else
 
21719
  FGDB_ENABLED=no
 
21720
fi
 
21721
 
 
21722
 
 
21723
  if test "$FGDB_ENABLED" = "yes" ; then
 
21724
    LIBS="-lFileGDBAPI -lfgdblinuxrtl"
 
21725
  fi
 
21726
 
 
21727
else
 
21728
 
 
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; }
 
21731
  FGDB_ENABLED=yes
 
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"
 
21736
  else
 
21737
    as_fn_error $? "not found." "$LINENO" 5
 
21738
  fi
 
21739
 
 
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"
 
21746
  else
 
21747
    as_fn_error $? "not found." "$LINENO" 5
 
21748
  fi
 
21749
 
 
21750
fi
 
21751
 
 
21752
FGDB_ENABLED=$FGDB_ENABLED
 
21753
 
 
21754
FGDB_LIB=$FGDB_LIB
 
21755
 
 
21756
FGDB_INC=$FGDB_INC
 
21757
 
 
21758
 
 
21759
 
 
21760
 
19338
21761
# Check whether --with-ecw was given.
19339
21762
if test "${with_ecw+set}" = set; then :
19340
21763
  withval=$with_ecw;
19357
21780
 
19358
21781
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCScbmOpenFileView in -lNCSEcw" >&5
19359
21782
$as_echo_n "checking for NCScbmOpenFileView in -lNCSEcw... " >&6; }
19360
 
if test "${ac_cv_lib_NCSEcw_NCScbmOpenFileView+set}" = set; then :
 
21783
if ${ac_cv_lib_NCSEcw_NCScbmOpenFileView+:} false; then :
19361
21784
  $as_echo_n "(cached) " >&6
19362
21785
else
19363
21786
  ac_check_lib_save_LIBS=$LIBS
19391
21814
fi
19392
21815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_NCSEcw_NCScbmOpenFileView" >&5
19393
21816
$as_echo "$ac_cv_lib_NCSEcw_NCScbmOpenFileView" >&6; }
19394
 
if test "x$ac_cv_lib_NCSEcw_NCScbmOpenFileView" = x""yes; then :
 
21817
if test "x$ac_cv_lib_NCSEcw_NCScbmOpenFileView" = xyes; then :
19395
21818
  ECW_SETTING=yes
19396
21819
else
19397
21820
  ECW_SETTING=no
19399
21822
 
19400
21823
 
19401
21824
  if test "$ECW_SETTING" = "yes" ; then
19402
 
    LIBS="-lNCSEcw -lNCSCnet -lNCSUtil $LIBS"
 
21825
    LIBS="-lNCSEcw -lNCSEcwC -lNCSCnet -lNCSUtil $LIBS"
19403
21826
  fi
19404
21827
 
19405
21828
  if test "$ECW_SETTING" = "no" ; then
19406
21829
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCScbmOpenFileView in -lecwj2" >&5
19407
21830
$as_echo_n "checking for NCScbmOpenFileView in -lecwj2... " >&6; }
19408
 
if test "${ac_cv_lib_ecwj2_NCScbmOpenFileView+set}" = set; then :
 
21831
if ${ac_cv_lib_ecwj2_NCScbmOpenFileView+:} false; then :
19409
21832
  $as_echo_n "(cached) " >&6
19410
21833
else
19411
21834
  ac_check_lib_save_LIBS=$LIBS
19439
21862
fi
19440
21863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ecwj2_NCScbmOpenFileView" >&5
19441
21864
$as_echo "$ac_cv_lib_ecwj2_NCScbmOpenFileView" >&6; }
19442
 
if test "x$ac_cv_lib_ecwj2_NCScbmOpenFileView" = x""yes; then :
 
21865
if test "x$ac_cv_lib_ecwj2_NCScbmOpenFileView" = xyes; then :
19443
21866
  ECW_SETTING=yes
19444
21867
else
19445
21868
  ECW_SETTING=no
19456
21879
$as_echo_n "checking for libNCSEcw.so or libecwj2... " >&6; }
19457
21880
  ECW_SETTING=yes
19458
21881
  if test -r $with_ecw/lib/libNCSCnet.so -o -r $with_ecw/lib/libNCSCnet.dylib ; then
19459
 
    LIBS="-L$with_ecw/lib -lNCSEcw -lNCSCnet -lNCSUtil $LIBS"
 
21882
    LIBS="-L$with_ecw/lib -lNCSEcw -lNCSEcwC -lNCSCnet -lNCSUtil $LIBS"
19460
21883
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $with_ecw/lib." >&5
19461
21884
$as_echo "found in $with_ecw/lib." >&6; }
19462
21885
  elif test -r $with_ecw/lib/libNCSCNet.so -o -r $with_ecw/lib/libNCSCNet.dylib ; then
19463
 
    LIBS="-L$with_ecw/lib -lNCSEcw -lNCSCNet -lNCSUtil $LIBS"
 
21886
    LIBS="-L$with_ecw/lib -lNCSEcw -lNCSEcwC -lNCSCNet -lNCSUtil $LIBS"
19464
21887
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $with_ecw/lib." >&5
19465
21888
$as_echo "found in $with_ecw/lib." >&6; }
19466
21889
  elif test -r $with_ecw/bin/libNCSEcw.so -o -r $with_ecw/bin/libNCSEcw.dylib ; then
19467
 
    LIBS="-L$with_ecw/bin -lNCSEcw -lNCSCnet -lNCSUtil $LIBS"
 
21890
    LIBS="-L$with_ecw/bin -lNCSEcw -lNCSEcwC -lNCSCnet -lNCSUtil $LIBS"
19468
21891
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $with_ecw/bin." >&5
19469
21892
$as_echo "found in $with_ecw/bin." >&6; }
19470
21893
  elif test -r $with_ecw/lib/libecwj2.dylib ; then
19472
21895
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found libecwj2 in $with_ecw/lib." >&5
19473
21896
$as_echo "found libecwj2 in $with_ecw/lib." >&6; }
19474
21897
  else
19475
 
    as_fn_error "not found in $with_ecw/lib or $with_ecw/bin." "$LINENO" 5
 
21898
    as_fn_error $? "not found in $with_ecw/lib or $with_ecw/bin." "$LINENO" 5
19476
21899
  fi
19477
21900
 
19478
21901
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCSECWClient.h in $with_ecw/include" >&5
19482
21905
$as_echo "found." >&6; }
19483
21906
    EXTRA_INCLUDES="-I$with_ecw/include $EXTRA_INCLUDES"
19484
21907
  else
19485
 
    as_fn_error "not found." "$LINENO" 5
 
21908
    as_fn_error $? "not found." "$LINENO" 5
19486
21909
  fi
19487
21910
fi
19488
21911
 
19510
21933
$as_echo "not requested." >&6; }
19511
21934
  HAVE_KAKADU=no
19512
21935
elif test "$with_kakadu" = "yes" ; then
19513
 
  as_fn_error "
 
21936
  as_fn_error $? "
19514
21937
For JPEG2000 support using Kakadu you need provide the path to the Kakadu
19515
21938
build directory.  Note that Kakadu is *not* free software." "$LINENO" 5
19516
21939
else
19517
21940
  KAKDIR=$with_kakadu
19518
 
  OPT_GDAL_FORMATS="jp2kak $OPT_GDAL_FORMATS"
 
21941
  OPT_GDAL_FORMATS="jp2kak jpipkak $OPT_GDAL_FORMATS"
19519
21942
  LIBS="$LIBS -L$with_kakadu/lib -lkdu"
19520
21943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: requested." >&5
19521
21944
$as_echo "requested." >&6; }
19582
22005
 
19583
22006
  if test $HAVE_MRSID = yes ; then
19584
22007
 
19585
 
    MRSID_LIBS="-lltidsdk -lpthread"
 
22008
    MRSID_LIBS="-lpthread"
 
22009
 
 
22010
    if test -r "$with_mrsid/lib/libltiesdk.a" ; then # v8+ esdk contains dsdk
 
22011
      _LIBPART=lib
 
22012
      MRSID_LIBS="-lltiesdk $MRSID_LIBS"
 
22013
    elif test -e "$with_mrsid/lib/libltidsdk.a" \
 
22014
           -o -e "$with_mrsid/lib/libltidsdk.so" \
 
22015
           -o -e "$with_mrsid/lib/libltidsdk.dylib" ; then
 
22016
      _LIBPART=lib
 
22017
      MRSID_LIBS="-lltidsdk $MRSID_LIBS"
 
22018
    else
 
22019
      _LIBPART=lib/Release
 
22020
      MRSID_LIBS="-lltidsdk $MRSID_LIBS"
 
22021
    fi
19586
22022
 
19587
22023
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MG3ImageWriter.h in $with_mrsid/include/mrsid_writers" >&5
19588
22024
$as_echo_n "checking for MG3ImageWriter.h in $with_mrsid/include/mrsid_writers... " >&6; }
19604
22040
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MrSID JPEG2000 support" >&5
19605
22041
$as_echo_n "checking for MrSID JPEG2000 support... " >&6; }
19606
22042
    if test "x$with_jp2mrsid" = "xyes" -a "$HAVE_KAKADU" = "yes" ; then
19607
 
      as_fn_error "MrSID JPEG2000 support requested, but this is incompatible with use of standalone Kakadu" "$LINENO" 5
 
22043
      as_fn_error $? "MrSID JPEG2000 support requested, but this is incompatible with use of standalone Kakadu" "$LINENO" 5
19608
22044
    fi
19609
22045
 
19610
 
    MRSID_KAKADU_LIB=no
 
22046
    MRSID_KAKADU_LIB=""
19611
22047
    if test "$HAVE_KAKADU" = "no" ; then
19612
22048
      if test x"$with_jp2mrsid" = x"" -o x"$with_jp2mrsid" = x"yes" ; then
19613
 
        if test -r $with_mrsid/3rd-party/lib/Release/libltikdu.a ; then
 
22049
        if test -r "$with_mrsid/3rd-party/$_LIBPART/libltikdu.a" ; then
19614
22050
          with_jp2mrsid=yes
19615
22051
          MRSID_KAKADU_LIB=-lltikdu
19616
 
        elif test -r $with_mrsid/3rd-party/lib/Release/liblt_kakadu.a ; then
 
22052
        elif test -r "$with_mrsid/3rd-party/$_LIBPART/liblt_kakadu.a" ; then
19617
22053
          with_jp2mrsid=yes
19618
22054
          MRSID_KAKADU_LIB=-llt_kakadu
 
22055
        elif test -e "$with_mrsid/lib/libltidsdk.so" \
 
22056
               -o -e "$with_mrsid/lib/libltidsdk.dylib"; then # v8+ .so has kdu
 
22057
          with_jp2mrsid=yes
 
22058
        elif test x"$with_jp2mrsid" = x"yes" ; then
 
22059
          as_fn_error $? "MrSID JPEG2000 support requested, but libltikdu.a not found." "$LINENO" 5
19619
22060
        else
19620
 
          as_fn_error "MrSID JPEG2000 support requested, but libltikdu.a not found." "$LINENO" 5
 
22061
          with_jp2mrsid=no
19621
22062
        fi
19622
22063
      fi
19623
22064
    fi
19632
22073
$as_echo "disabled" >&6; }
19633
22074
    fi
19634
22075
 
19635
 
    if test -r "$with_mrsid/lib/libltidsdk.a" ; then
19636
 
      MRSID_LIBS="-L$with_mrsid/lib -L$with_mrsid/3rd-party/lib $MRSID_LIBS"
19637
 
    else
19638
 
      MRSID_LIBS="-L$with_mrsid/lib/Release -L$with_mrsid/3rd-party/lib/Release $MRSID_LIBS"
19639
 
    fi
 
22076
    MRSID_LIBS="-L$with_mrsid/$_LIBPART $MRSID_LIBS"
 
22077
    MRSID_LIBS="-L$with_mrsid/3rd-party/$_LIBPART $MRSID_LIBS"
19640
22078
 
19641
22079
  else
19642
22080
    HAVE_MRSID=no
19643
22081
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
19644
22082
$as_echo "not found." >&6; }
19645
 
    as_fn_error "  MrSID requested, but components not found." "$LINENO" 5
 
22083
    as_fn_error $? "  MrSID requested, but components not found." "$LINENO" 5
19646
22084
  fi
19647
22085
fi
19648
22086
 
19659
22097
fi
19660
22098
 
19661
22099
 
 
22100
MRSID_LIDAR_FLAGS=
 
22101
HAVE_MRSID_LIDAR=no
 
22102
 
 
22103
 
 
22104
# Check whether --with-mrsid_lidar was given.
 
22105
if test "${with_mrsid_lidar+set}" = set; then :
 
22106
  withval=$with_mrsid_lidar;
 
22107
fi
 
22108
 
 
22109
 
 
22110
if test "x$with_mrsid_lidar" = "xno"  -o "x$with_mrsid_lidar" = "x" ; then
 
22111
  HAVE_MRSID_LIDAR=no
 
22112
  { $as_echo "$as_me:${as_lineno-$LINENO}: MrSID/MG4 Lidar support disabled." >&5
 
22113
$as_echo "$as_me: MrSID/MG4 Lidar support disabled." >&6;}
 
22114
else
 
22115
  MRSID_LIDAR_BASE="$with_mrsid_lidar"
 
22116
 
 
22117
  if test -r "$MRSID_LIDAR_BASE/include/lidar/Version.h" ; then
 
22118
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found LizardTech LiDAR SDK 1.1 or newer." >&5
 
22119
$as_echo "found LizardTech LiDAR SDK 1.1 or newer." >&6; }
 
22120
    HAVE_MRSID_LIDAR=yes
 
22121
  else
 
22122
    HAVE_MRSID_LIDAR=no
 
22123
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
 
22124
$as_echo "not found." >&6; }
 
22125
    as_fn_error $? "  MrSID/MG4 Lidar requested, but components not found." "$LINENO" 5
 
22126
  fi
 
22127
 
 
22128
  if test $HAVE_MRSID_LIDAR = yes ; then
 
22129
    if test -e "$MRSID_LIDAR_BASE/lib/liblti_lidar_dsdk.so" \
 
22130
         -o -e "$MRSID_LIDAR_BASE/lib/liblti_lidar_dsdk.dylib"; then
 
22131
      MRSID_LIDAR_LIBS="-L$MRSID_LIDAR_BASE/lib -llti_lidar_dsdk"
 
22132
      MRSID_LIDAR_INCLUDE="-I$MRSID_LIDAR_BASE/include"
 
22133
    else
 
22134
      MRSID_LIDAR_LIBS="-L$MRSID_LIDAR_BASE/lib/Release -llti_lidar_dsdk"
 
22135
      MRSID_LIDAR_INCLUDE="-I$MRSID_LIDAR_BASE/include"
 
22136
    fi
 
22137
  fi
 
22138
fi
 
22139
 
 
22140
MRSID_LIDAR_INCLUDE=$MRSID_LIDAR_INCLUDE
 
22141
 
 
22142
MRSID_LIDAR_LIBS=$MRSID_LIDAR_LIBS
 
22143
 
 
22144
 
 
22145
if test "$HAVE_MRSID_LIDAR" != "no" ; then
 
22146
  OPT_GDAL_FORMATS="mrsid_lidar $OPT_GDAL_FORMATS"
 
22147
fi
 
22148
 
19662
22149
 
19663
22150
 
19664
22151
# Check whether --with-msg was given.
19831
22318
        fi
19832
22319
 
19833
22320
                        saved_LDFLAGS="$LDFLAGS"
19834
 
        oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
 
22321
        if test -n "$oracle_include_dir" ; then
 
22322
          oci_ldflags="-L$oracle_lib_dir -lclntsh"
 
22323
        else
 
22324
          oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
 
22325
        fi
19835
22326
        LDFLAGS="$LDFLAGS $oci_ldflags"
19836
22327
 
19837
22328
                                if test -f "$oracle_include_dir/oci.h"; then
19979
22470
        if test -f "$oracle_include_dir3/oci.h"; then
19980
22471
            ACTIVE_INCLUDE_DIR="$oracle_include_dir3"
19981
22472
        fi
19982
 
        oracle_version_major=`cat $ACTIVE_INCLUDE_DIR/oci.h \
19983
 
                             | grep '#define.*OCI_MAJOR_VERSION.*' \
19984
 
                             | sed -e 's/#define OCI_MAJOR_VERSION  *//' \
19985
 
                             | sed -e 's/  *\/\*.*\*\///'`
19986
 
 
19987
 
        oracle_version_minor=`cat $ACTIVE_INCLUDE_DIR/oci.h \
19988
 
                             | grep '#define.*OCI_MINOR_VERSION.*' \
19989
 
                             | sed -e 's/#define OCI_MINOR_VERSION  *//' \
19990
 
                             | sed -e 's/  *\/\*.*\*\///'`
 
22473
        oracle_version_major=$(sed -n '/^#define OCI_MAJOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
22474
                $ACTIVE_INCLUDE_DIR/oci.h)
 
22475
        oracle_version_minor=$(sed -n '/^#define OCI_MINOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
22476
                $ACTIVE_INCLUDE_DIR/oci.h)
19991
22477
 
19992
22478
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Oracle OCI version is >= $oracle_version_req " >&5
19993
22479
$as_echo_n "checking if Oracle OCI version is >= $oracle_version_req ... " >&6; }
20027
22513
                oracle_version_checked="no"
20028
22514
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029
22515
$as_echo "no" >&6; }
20030
 
                as_fn_error "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5
 
22516
                as_fn_error $? "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5
20031
22517
            fi
20032
22518
        else
20033
22519
            ORACLE_OCI_VERSION="UNKNOWN"
20122
22608
set dummy mysql_config; ac_word=$2
20123
22609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20124
22610
$as_echo_n "checking for $ac_word... " >&6; }
20125
 
if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then :
 
22611
if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
20126
22612
  $as_echo_n "(cached) " >&6
20127
22613
else
20128
22614
  case $MYSQL_CONFIG in
20181
22667
  if test -d $MYSQL_CONFIG ; then
20182
22668
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20183
22669
$as_echo "no" >&6; }
20184
 
      as_fn_error "--with-mysql argument is a directory.  It should be the path to the mysql_config script, often somewhere like /usr/local/bin/mysql_config." "$LINENO" 5
 
22670
      as_fn_error $? "--with-mysql argument is a directory.  It should be the path to the mysql_config script, often somewhere like /usr/local/bin/mysql_config." "$LINENO" 5
20185
22671
  fi
20186
22672
 
20187
22673
  if test \! -x $MYSQL_CONFIG ; then
20188
22674
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20189
22675
$as_echo "no" >&6; }
20190
 
      as_fn_error "--with-mysql argument is a not an executable file.  It should be the path to the mysql_config script, often somewhere like /usr/local/bin/mysql_config." "$LINENO" 5
 
22676
      as_fn_error $? "--with-mysql argument is a not an executable file.  It should be the path to the mysql_config script, often somewhere like /usr/local/bin/mysql_config." "$LINENO" 5
20191
22677
  fi
20192
22678
 
20193
22679
  MYSQL_VERSION="`$MYSQL_CONFIG --version`"
20234
22720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235
22721
$as_echo "no" >&6; }
20236
22722
elif test "$with_ingres" = "yes" ; then
20237
 
  as_fn_error "--with-ingres requires a path argument ($II_SYSTEM)" "$LINENO" 5
 
22723
  as_fn_error $? "--with-ingres requires a path argument ($II_SYSTEM)" "$LINENO" 5
20238
22724
else
20239
22725
  HAVE_INGRES=yes
20240
22726
  II_SYSTEM=$with_ingres
20317
22803
 
20318
22804
                run_xerces_test="no"
20319
22805
 
20320
 
    if test -n "$xerces_prefix"; then
 
22806
    if test -n "$xerces_prefix" -a -z "$xerces_include_dir" -a -z "$xerces_lib_flags"; then
20321
22807
        xerces_include_dir="$xerces_prefix/include"
20322
22808
        xerces_include_dir2="$xerces_prefix/include/xercesc"
20323
 
        xerces_lib_flags="-L$xerces_prefix/lib -lxerces-c -lpthread"
 
22809
        if test "$xerces_prefix" = "/usr"; then
 
22810
            xerces_lib_flags="-lxerces-c -lpthread"
 
22811
        else
 
22812
            xerces_lib_flags="-L$xerces_prefix/lib -lxerces-c -lpthread"
 
22813
        fi
20324
22814
        run_xerces_test="yes"
20325
22815
    elif test "$xerces_requested" = "yes"; then
20326
22816
        if test -n "$xerces_include_dir" -a -n "$xerces_lib_flags"; then
20336
22826
        saved_CPPFLAGS="$CPPFLAGS"
20337
22827
        CPPFLAGS="$CPPFLAGS -I$xerces_include_dir -I$xerces_include_dir2"
20338
22828
 
20339
 
        saved_LDFLAGS="$LDFLAGS"
20340
 
        LDFLAGS="$LDFLAGS $xerces_lib_flags"
 
22829
        saved_LIBS="$LIBS"
 
22830
        LIBS="$LIBS $xerces_lib_flags"
20341
22831
 
20342
22832
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xerces C++ Parser headers in $xerces_include_dir and $xerces_include_dir2" >&5
20343
22833
$as_echo_n "checking for Xerces C++ Parser headers in $xerces_include_dir and $xerces_include_dir2... " >&6; }
20445
22935
        fi
20446
22936
 
20447
22937
        CPPFLAGS="$saved_CPPFLAGS"
20448
 
        LDFLAGS="$saved_LDFLAGS"
 
22938
        LIBS="$saved_LIBS"
20449
22939
    fi
20450
22940
 
20451
22941
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xerces C++ Parser" >&5
20459
22949
 
20460
22950
            HAVE_XERCES="yes"
20461
22951
        else
 
22952
            XERCES_CFLAGS=""
20462
22953
            HAVE_XERCES="no"
20463
22954
        fi
20464
22955
 
20476
22967
 
20477
22968
                if test -f "$xerces_include_dir2/util/XercesVersion.hpp"; then
20478
22969
 
20479
 
                    xerces_major=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
20480
 
                                    grep '^#define.*XERCES_VERSION_MAJOR.*[0-9]$' | \
20481
 
                                    sed -e 's/#define XERCES_VERSION_MAJOR.//'`
20482
 
 
20483
 
                    xerces_minor=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
20484
 
                                    grep '^#define.*XERCES_VERSION_MINOR.*[0-9]$' | \
20485
 
                                    sed -e 's/#define XERCES_VERSION_MINOR.//'`
20486
 
 
20487
 
                    xerces_revision=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
20488
 
                                    grep '^#define.*XERCES_VERSION_REVISION.*[0-9]$' | \
20489
 
                                    sed -e 's/#define XERCES_VERSION_REVISION.//'`
 
22970
                    xerces_major=$(sed -n '/^#define XERCES_VERSION_MAJOR.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
22971
                        $xerces_include_dir2/util/XercesVersion.hpp)
 
22972
                    xerces_minor=$(sed -n '/^#define XERCES_VERSION_MINOR.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
22973
                        $xerces_include_dir2/util/XercesVersion.hpp)
 
22974
                    xerces_revision=$(sed -n '/^#define XERCES_VERSION_REVISION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
22975
                        $xerces_include_dir2/util/XercesVersion.hpp)
20490
22976
 
20491
22977
                    XERCES_VERSION="$xerces_major.$xerces_minor.$xerces_revision"
20492
22978
 
20547
23033
 
20548
23034
 
20549
23035
 
20550
 
if test "$HAVE_XERCES" = "yes" -a -d ogr/ogrsf_frmts/nas ; then
 
23036
if test "$HAVE_XERCES" = "yes" ; then
20551
23037
  HAVE_NAS=yes
20552
23038
else
20553
23039
  HAVE_NAS=no
20590
23076
        fi
20591
23077
 
20592
23078
 
 
23079
 
20593
23080
fi
20594
23081
 
20595
23082
 
20620
23107
 
20621
23108
    if test -n "$expat_prefix"; then
20622
23109
        expat_include_dir="$expat_prefix/include"
20623
 
        expat_lib_flags="-L$expat_prefix/lib -lexpat"
20624
23110
        run_expat_test="yes"
20625
23111
    elif test "$expat_requested" = "yes"; then
20626
23112
        if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
20630
23116
        run_expat_test="no"
20631
23117
    fi
20632
23118
 
20633
 
                if test "$run_expat_test" = "yes"; then
 
23119
    if test "$run_expat_test" = "yes"; then
 
23120
        unset ac_cv_lib_expat_XML_ParserCreate
 
23121
        saved_LIBS="$LIBS"
 
23122
        LIBS=""
 
23123
        if test -n "$expat_lib_flags"; then
 
23124
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
 
23125
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
 
23126
if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
 
23127
  $as_echo_n "(cached) " >&6
 
23128
else
 
23129
  ac_check_lib_save_LIBS=$LIBS
 
23130
LIBS="-lexpat $expat_lib_flags $LIBS"
 
23131
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23132
/* end confdefs.h.  */
 
23133
 
 
23134
/* Override any GCC internal prototype to avoid an error.
 
23135
   Use char because int might match the return type of a GCC
 
23136
   builtin and then its argument prototype would still apply.  */
 
23137
#ifdef __cplusplus
 
23138
extern "C"
 
23139
#endif
 
23140
char XML_ParserCreate ();
 
23141
int
 
23142
main ()
 
23143
{
 
23144
return XML_ParserCreate ();
 
23145
  ;
 
23146
  return 0;
 
23147
}
 
23148
_ACEOF
 
23149
if ac_fn_c_try_link "$LINENO"; then :
 
23150
  ac_cv_lib_expat_XML_ParserCreate=yes
 
23151
else
 
23152
  ac_cv_lib_expat_XML_ParserCreate=no
 
23153
fi
 
23154
rm -f core conftest.err conftest.$ac_objext \
 
23155
    conftest$ac_exeext conftest.$ac_ext
 
23156
LIBS=$ac_check_lib_save_LIBS
 
23157
fi
 
23158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
 
23159
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
 
23160
if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
 
23161
  run_expat_test="yes"
 
23162
else
 
23163
  run_expat_test="no"
 
23164
fi
 
23165
 
 
23166
        else
 
23167
            if test "$expat_prefix" = "/usr"; then
 
23168
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
 
23169
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
 
23170
if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
 
23171
  $as_echo_n "(cached) " >&6
 
23172
else
 
23173
  ac_check_lib_save_LIBS=$LIBS
 
23174
LIBS="-lexpat  $LIBS"
 
23175
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23176
/* end confdefs.h.  */
 
23177
 
 
23178
/* Override any GCC internal prototype to avoid an error.
 
23179
   Use char because int might match the return type of a GCC
 
23180
   builtin and then its argument prototype would still apply.  */
 
23181
#ifdef __cplusplus
 
23182
extern "C"
 
23183
#endif
 
23184
char XML_ParserCreate ();
 
23185
int
 
23186
main ()
 
23187
{
 
23188
return XML_ParserCreate ();
 
23189
  ;
 
23190
  return 0;
 
23191
}
 
23192
_ACEOF
 
23193
if ac_fn_c_try_link "$LINENO"; then :
 
23194
  ac_cv_lib_expat_XML_ParserCreate=yes
 
23195
else
 
23196
  ac_cv_lib_expat_XML_ParserCreate=no
 
23197
fi
 
23198
rm -f core conftest.err conftest.$ac_objext \
 
23199
    conftest$ac_exeext conftest.$ac_ext
 
23200
LIBS=$ac_check_lib_save_LIBS
 
23201
fi
 
23202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
 
23203
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
 
23204
if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
 
23205
  run_expat_test="yes"
 
23206
else
 
23207
  run_expat_test="no"
 
23208
fi
 
23209
 
 
23210
                if test "$run_expat_test" = "yes"; then
 
23211
                    expat_lib_flags="-lexpat"
 
23212
                fi
 
23213
            else
 
23214
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
 
23215
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
 
23216
if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
 
23217
  $as_echo_n "(cached) " >&6
 
23218
else
 
23219
  ac_check_lib_save_LIBS=$LIBS
 
23220
LIBS="-lexpat -L$expat_prefix/lib $LIBS"
 
23221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23222
/* end confdefs.h.  */
 
23223
 
 
23224
/* Override any GCC internal prototype to avoid an error.
 
23225
   Use char because int might match the return type of a GCC
 
23226
   builtin and then its argument prototype would still apply.  */
 
23227
#ifdef __cplusplus
 
23228
extern "C"
 
23229
#endif
 
23230
char XML_ParserCreate ();
 
23231
int
 
23232
main ()
 
23233
{
 
23234
return XML_ParserCreate ();
 
23235
  ;
 
23236
  return 0;
 
23237
}
 
23238
_ACEOF
 
23239
if ac_fn_c_try_link "$LINENO"; then :
 
23240
  ac_cv_lib_expat_XML_ParserCreate=yes
 
23241
else
 
23242
  ac_cv_lib_expat_XML_ParserCreate=no
 
23243
fi
 
23244
rm -f core conftest.err conftest.$ac_objext \
 
23245
    conftest$ac_exeext conftest.$ac_ext
 
23246
LIBS=$ac_check_lib_save_LIBS
 
23247
fi
 
23248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
 
23249
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
 
23250
if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
 
23251
  run_expat_test="yes"
 
23252
else
 
23253
  run_expat_test="no"
 
23254
fi
 
23255
 
 
23256
                if test "$run_expat_test" = "yes"; then
 
23257
                    expat_lib_flags="-L$expat_prefix/lib -lexpat"
 
23258
                fi
 
23259
            fi
 
23260
        fi
 
23261
        LIBS="$saved_LIBS"
 
23262
    fi
 
23263
 
 
23264
                if test "$run_expat_test" = "yes"; then
 
23265
 
 
23266
        EXPAT_LDFLAGS="$expat_lib_flags"
20634
23267
 
20635
23268
        saved_CPPFLAGS="$CPPFLAGS"
20636
23269
        CPPFLAGS="$CPPFLAGS -I$expat_include_dir"
20637
23270
 
20638
 
        saved_LDFLAGS="$LDFLAGS"
20639
 
        LDFLAGS="$LDFLAGS $expat_lib_flags"
20640
 
 
20641
 
        saved_LIBS="$LIBS"
20642
 
        LIBS="$LIBS -lexpat"
20643
 
 
20644
23271
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser headers in $expat_include_dir" >&5
20645
23272
$as_echo_n "checking for Expat XML Parser headers in $expat_include_dir... " >&6; }
20646
23273
 
20688
23315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20689
23316
 
20690
23317
 
20691
 
                                if test "$expat_header_found" = "yes"; then
20692
 
 
20693
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser libraries" >&5
20694
 
$as_echo_n "checking for Expat XML Parser libraries... " >&6; }
20695
 
 
20696
 
            ac_ext=cpp
20697
 
ac_cpp='$CXXCPP $CPPFLAGS'
20698
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20701
 
 
20702
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703
 
/* end confdefs.h.  */
20704
 
 
20705
 
 
20706
 
#include <expat.h>
20707
 
 
20708
 
int
20709
 
main ()
20710
 
{
20711
 
 
20712
 
XML_Parser p = XML_ParserCreate(NULL);
20713
 
XML_ParserFree(p);
20714
 
p = NULL;
20715
 
 
20716
 
 
20717
 
  ;
20718
 
  return 0;
20719
 
}
20720
 
_ACEOF
20721
 
if ac_fn_cxx_try_link "$LINENO"; then :
20722
 
 
20723
 
                EXPAT_LDFLAGS="$expat_lib_flags"
20724
 
                expat_lib_found="yes"
20725
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20726
 
$as_echo "found" >&6; }
20727
 
 
20728
 
else
20729
 
 
20730
 
                expat_lib_found="no"
20731
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20732
 
$as_echo "not found" >&6; }
20733
 
 
20734
 
 
20735
 
fi
20736
 
rm -f core conftest.err conftest.$ac_objext \
20737
 
    conftest$ac_exeext conftest.$ac_ext
20738
 
            ac_ext=c
20739
 
ac_cpp='$CPP $CPPFLAGS'
20740
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
 
 
20744
 
        fi
20745
 
 
20746
23318
        CPPFLAGS="$saved_CPPFLAGS"
20747
 
        LDFLAGS="$saved_LDFLAGS"
20748
 
        LIBS="$saved_LIBS"
20749
23319
    fi
20750
23320
 
20751
23321
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser" >&5
20752
23322
$as_echo_n "checking for Expat XML Parser... " >&6; }
20753
23323
 
20754
23324
    if test "$run_expat_test" = "yes"; then
20755
 
        if test "$expat_header_found" = "yes" -a "$expat_lib_found" = "yes"; then
 
23325
        if test "$expat_header_found" = "yes"; then
20756
23326
 
20757
23327
 
20758
23328
 
20776
23346
 
20777
23347
                if test -f "$expat_include_dir/expat.h"; then
20778
23348
 
20779
 
                    expat_major=`cat $expat_include_dir/expat.h | \
20780
 
                                    grep '^#define.*XML_MAJOR_VERSION.*[0-9]$' | \
20781
 
                                    sed -e 's/#define XML_MAJOR_VERSION.//'`
20782
 
 
20783
 
                    expat_minor=`cat $expat_include_dir/expat.h | \
20784
 
                                    grep '^#define.*XML_MINOR_VERSION.*[0-9]$' | \
20785
 
                                    sed -e 's/#define XML_MINOR_VERSION.//'`
20786
 
 
20787
 
                    expat_revision=`cat $expat_include_dir/expat.h | \
20788
 
                                    grep '^#define.*XML_MICRO_VERSION.*[0-9]$' | \
20789
 
                                    sed -e 's/#define XML_MICRO_VERSION.//'`
 
23349
                    expat_major=$(sed -n '/^#define XML_MAJOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
23350
                        $expat_include_dir/expat.h)
 
23351
                    expat_minor=$(sed -n '/^#define XML_MINOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
23352
                        $expat_include_dir/expat.h)
 
23353
                    expat_revision=$(sed -n '/^#define XML_MICRO_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
23354
                        $expat_include_dir/expat.h)
20790
23355
 
20791
23356
                    EXPAT_VERSION="$expat_major.$expat_minor.$expat_revision"
20792
23357
 
20847
23412
 
20848
23413
 
20849
23414
 
 
23415
LIBKML_REQ_VERSION="1.3.0"
 
23416
 
 
23417
 
 
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
 
23425
                libkml_prefix=/usr
 
23426
            else
 
23427
                libkml_prefix=""
 
23428
            fi
 
23429
            libkml_requested="yes"
 
23430
        elif test -d "$withval"; then
 
23431
            libkml_prefix="$withval"
 
23432
            libkml_requested="yes"
 
23433
        else
 
23434
            libkml_prefix=""
 
23435
            libkml_requested="no"
 
23436
        fi
 
23437
 
 
23438
else
 
23439
 
 
23440
                if test -d /usr/local/include/kml ; then
 
23441
            libkml_prefix=/usr/local
 
23442
        elif test -d /usr/include/kml ; then
 
23443
            libkml_prefix=/usr
 
23444
        else
 
23445
            libkml_prefix=""
 
23446
        fi
 
23447
 
 
23448
 
 
23449
fi
 
23450
 
 
23451
 
 
23452
 
 
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"
 
23456
else
 
23457
  libkml_include_dir=""
 
23458
 
 
23459
fi
 
23460
 
 
23461
 
 
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"
 
23465
else
 
23466
  libkml_lib_flags=""
 
23467
 
 
23468
fi
 
23469
 
 
23470
 
 
23471
    LIBKML_CFLAGS=""
 
23472
    LIBKML_LDFLAGS=""
 
23473
    LIBKML_VERSION=""
 
23474
 
 
23475
                run_libkml_test="no"
 
23476
 
 
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"
 
23483
        else
 
23484
            libkml_lib_flags="-L$libkml_prefix/lib -lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser"
 
23485
        fi
 
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"
 
23492
        fi
 
23493
    else
 
23494
        run_libkml_test="no"
 
23495
    fi
 
23496
 
 
23497
                if test "$run_libkml_test" = "yes"; then
 
23498
 
 
23499
        saved_CPPFLAGS="$CPPFLAGS"
 
23500
        CPPFLAGS="$CPPFLAGS -I$libkml_include_dir -I$libkml_include_dir2 -I$libkml_include_dir3"
 
23501
 
 
23502
        saved_LIBS="$LIBS"
 
23503
        LIBS="$LIBS $libkml_lib_flags"
 
23504
 
 
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; }
 
23507
 
 
23508
        ac_ext=cpp
 
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
 
23513
 
 
23514
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23515
/* end confdefs.h.  */
 
23516
 
 
23517
 
 
23518
#include <kml/dom.h>
 
23519
 
 
23520
int
 
23521
main ()
 
23522
{
 
23523
 
 
23524
 
 
23525
  ;
 
23526
  return 0;
 
23527
}
 
23528
_ACEOF
 
23529
if ac_fn_cxx_try_compile "$LINENO"; then :
 
23530
 
 
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; }
 
23535
 
 
23536
else
 
23537
 
 
23538
            libkml_header_found="no"
 
23539
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
23540
$as_echo "not found" >&6; }
 
23541
 
 
23542
 
 
23543
fi
 
23544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23545
        ac_ext=c
 
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
 
23550
 
 
23551
 
 
23552
                                if test "$libkml_header_found" = "yes"; then
 
23553
 
 
23554
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google libkml libraries" >&5
 
23555
$as_echo_n "checking for Google libkml libraries... " >&6; }
 
23556
 
 
23557
            ac_ext=cpp
 
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
 
23562
 
 
23563
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23564
/* end confdefs.h.  */
 
23565
 
 
23566
 
 
23567
#include <kml/dom.h>
 
23568
 
 
23569
int
 
23570
main ()
 
23571
{
 
23572
 
 
23573
kmldom::KmlFactory* factory = kmldom::KmlFactory::GetFactory();
 
23574
 
 
23575
 
 
23576
  ;
 
23577
  return 0;
 
23578
}
 
23579
_ACEOF
 
23580
if ac_fn_cxx_try_link "$LINENO"; then :
 
23581
 
 
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; }
 
23586
 
 
23587
else
 
23588
 
 
23589
                libkml_lib_found="no"
 
23590
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
23591
$as_echo "not found" >&6; }
 
23592
 
 
23593
 
 
23594
fi
 
23595
rm -f core conftest.err conftest.$ac_objext \
 
23596
    conftest$ac_exeext conftest.$ac_ext
 
23597
            ac_ext=c
 
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
 
23602
 
 
23603
        fi
 
23604
 
 
23605
        CPPFLAGS="$saved_CPPFLAGS"
 
23606
        LIBS="$saved_LIBS"
 
23607
    fi
 
23608
 
 
23609
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google libkml" >&5
 
23610
$as_echo_n "checking for Google libkml... " >&6; }
 
23611
 
 
23612
    if test "$run_libkml_test" = "yes"; then
 
23613
        if test "$libkml_header_found" = "yes" -a "$libkml_lib_found" = "yes"; then
 
23614
 
 
23615
 
 
23616
 
 
23617
 
 
23618
            HAVE_LIBKML="yes"
 
23619
        else
 
23620
            HAVE_LIBKML="no"
 
23621
        fi
 
23622
 
 
23623
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBKML" >&5
 
23624
$as_echo "$HAVE_LIBKML" >&6; }
 
23625
 
 
23626
                                if test "$HAVE_LIBKML" = "yes"; then
 
23627
 
 
23628
            libkml_version_req=$LIBKML_REQ_VERSION
 
23629
 
 
23630
            if test  -n "$libkml_version_req"; then
 
23631
 
 
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; }
 
23634
 
 
23635
                if test -f "$libkml_include_dir2/base/version.h"; then
 
23636
 
 
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)
 
23643
 
 
23644
                    LIBKML_VERSION="$libkml_major.$libkml_minor.$libkml_revision"
 
23645
 
 
23646
 
 
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"
 
23652
                    fi
 
23653
 
 
23654
                    libkml_version_req_number=`expr $libkml_version_req_major \* 10000 \
 
23655
                                               \+ $libkml_version_req_minor \* 100 \
 
23656
                                               \+ $libkml_version_req_revision`
 
23657
 
 
23658
                                        libkml_version_number=`expr $libkml_major \* 10000 \
 
23659
                                          \+ $libkml_minor \* 100 \
 
23660
                                           \+ $libkml_revision`
 
23661
 
 
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; }
 
23666
                    else
 
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;}
 
23671
                        HAVE_LIBKML="no"
 
23672
                    fi
 
23673
                else
 
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;}
 
23678
                fi
 
23679
            fi
 
23680
        fi
 
23681
 
 
23682
    else
 
23683
        HAVE_LIBKML="no"
 
23684
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBKML" >&5
 
23685
$as_echo "$HAVE_LIBKML" >&6; }
 
23686
 
 
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;}
 
23690
        fi
 
23691
    fi
 
23692
 
 
23693
 
 
23694
if test "$HAVE_LIBKML" = "yes"; then
 
23695
    LIBS="$LIBKML_LDFLAGS $LIBS"
 
23696
fi
 
23697
 
 
23698
HAVE_LIBKML=$HAVE_LIBKML
 
23699
 
 
23700
LIBKML_INCLUDE=$LIBKML_CFLAGS
 
23701
 
 
23702
 
 
23703
 
20850
23704
 
20851
23705
# Check whether --with-odbc was given.
20852
23706
if test "${with_odbc+set}" = set; then :
20864
23718
 
20865
23719
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
20866
23720
$as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
20867
 
if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then :
 
23721
if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
20868
23722
  $as_echo_n "(cached) " >&6
20869
23723
else
20870
23724
  ac_check_lib_save_LIBS=$LIBS
20898
23752
fi
20899
23753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
20900
23754
$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
20901
 
if test "x$ac_cv_lib_odbc_SQLConnect" = x""yes; then :
 
23755
if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
20902
23756
  ODBC_SETTING=yes
20903
23757
else
20904
23758
  ODBC_SETTING=no
20906
23760
 
20907
23761
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLInstallDriverEx in -lodbcinst" >&5
20908
23762
$as_echo_n "checking for SQLInstallDriverEx in -lodbcinst... " >&6; }
20909
 
if test "${ac_cv_lib_odbcinst_SQLInstallDriverEx+set}" = set; then :
 
23763
if ${ac_cv_lib_odbcinst_SQLInstallDriverEx+:} false; then :
20910
23764
  $as_echo_n "(cached) " >&6
20911
23765
else
20912
23766
  ac_check_lib_save_LIBS=$LIBS
20940
23794
fi
20941
23795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbcinst_SQLInstallDriverEx" >&5
20942
23796
$as_echo "$ac_cv_lib_odbcinst_SQLInstallDriverEx" >&6; }
20943
 
if test "x$ac_cv_lib_odbcinst_SQLInstallDriverEx" = x""yes; then :
 
23797
if test "x$ac_cv_lib_odbcinst_SQLInstallDriverEx" = xyes; then :
20944
23798
  ODBC_SETTING=yes
20945
23799
else
20946
23800
  ODBC_SETTING=no
21084
23938
        fi
21085
23939
 
21086
23940
                        saved_LDFLAGS="$LDFLAGS"
21087
 
        oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
 
23941
        if test -n "$oracle_include_dir" ; then
 
23942
          oci_ldflags="-L$oracle_lib_dir -lclntsh"
 
23943
        else
 
23944
          oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
 
23945
        fi
21088
23946
        LDFLAGS="$LDFLAGS $oci_ldflags"
21089
23947
 
21090
23948
                                if test -f "$oracle_include_dir/oci.h"; then
21232
24090
        if test -f "$oracle_include_dir3/oci.h"; then
21233
24091
            ACTIVE_INCLUDE_DIR="$oracle_include_dir3"
21234
24092
        fi
21235
 
        oracle_version_major=`cat $ACTIVE_INCLUDE_DIR/oci.h \
21236
 
                             | grep '#define.*OCI_MAJOR_VERSION.*' \
21237
 
                             | sed -e 's/#define OCI_MAJOR_VERSION  *//' \
21238
 
                             | sed -e 's/  *\/\*.*\*\///'`
21239
 
 
21240
 
        oracle_version_minor=`cat $ACTIVE_INCLUDE_DIR/oci.h \
21241
 
                             | grep '#define.*OCI_MINOR_VERSION.*' \
21242
 
                             | sed -e 's/#define OCI_MINOR_VERSION  *//' \
21243
 
                             | sed -e 's/  *\/\*.*\*\///'`
 
24093
        oracle_version_major=$(sed -n '/^#define OCI_MAJOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
24094
                $ACTIVE_INCLUDE_DIR/oci.h)
 
24095
        oracle_version_minor=$(sed -n '/^#define OCI_MINOR_VERSION.*$/{s/\([^0-9]*\)\([0-9]*\).*/\2/;P;}' \
 
24096
                $ACTIVE_INCLUDE_DIR/oci.h)
21244
24097
 
21245
24098
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Oracle OCI version is >= $oracle_version_req " >&5
21246
24099
$as_echo_n "checking if Oracle OCI version is >= $oracle_version_req ... " >&6; }
21280
24133
                oracle_version_checked="no"
21281
24134
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282
24135
$as_echo "no" >&6; }
21283
 
                as_fn_error "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5
 
24136
                as_fn_error $? "Oracle $ORACLE_OCI_VERSION found, but required version is $oracle_version_req" "$LINENO" 5
21284
24137
            fi
21285
24138
        else
21286
24139
            ORACLE_OCI_VERSION="UNKNOWN"
21335
24188
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21336
24189
$as_echo "disabled" >&6; }
21337
24190
elif test "$with_dods_root" = "yes" ; then
21338
 
    as_fn_error "--with-dods-root requires path to dods root as argument" "$LINENO" 5
 
24191
    as_fn_error $? "--with-dods-root requires path to dods root as argument" "$LINENO" 5
21339
24192
else
21340
24193
    DODS_LIB=$with_dods_root/lib
21341
24194
    DODS_INC="-I$with_dods_root/include -I$with_dods_root/include/libdap -I$with_dods_root/include/dap"
21342
24195
    DODS_BIN=$with_dods_root/bin
21343
24196
 
21344
 
rm -f islibdappre39.*
21345
 
echo '#include "DAS.h"' > islibdappre39.cpp
21346
 
echo '#include "AttrTable.h"' >> islibdappre39.cpp
21347
 
echo 'using namespace libdap;' >> islibdappre39.cpp
21348
 
echo 'int main(int argc, char** argv) { DAS oDAS; AttrTable& oAttrTable = oDAS; } ' >> islibdappre39.cpp
21349
 
if test -z "`${CXX} islibdappre39.cpp -c ${DODS_INC} 2>&1`" ; then
21350
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap < 3.9" >&5
 
24197
rm -f islibdappost310.*
 
24198
echo '#include "Connect.h"' > islibdappost310.cpp
 
24199
echo 'int main(int argc, char** argv) { return 0; } ' >> islibdappost310.cpp
 
24200
if test -z "`${CXX} islibdappost310.cpp -c ${DODS_INC} 2>&1`" ; then
 
24201
    DODS_INC="$DODS_INC -DLIBDAP_310 -DLIBDAP_39"
 
24202
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap >= 3.10" >&5
 
24203
$as_echo "libdap >= 3.10" >&6; }
 
24204
else
 
24205
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap < 3.10" >&5
 
24206
$as_echo "libdap < 3.10" >&6; }
 
24207
 
 
24208
                rm -f islibdappre39.*
 
24209
    echo '#include "DAS.h"' > islibdappre39.cpp
 
24210
    echo '#include "AttrTable.h"' >> islibdappre39.cpp
 
24211
    echo 'using namespace libdap;' >> islibdappre39.cpp
 
24212
    echo 'int main(int argc, char** argv) { DAS oDAS; AttrTable& oAttrTable = oDAS; } ' >> islibdappre39.cpp
 
24213
    if test -z "`${CXX} islibdappre39.cpp -c ${DODS_INC} 2>&1`" ; then
 
24214
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap < 3.9" >&5
21351
24215
$as_echo "libdap < 3.9" >&6; }
21352
 
else
21353
 
    DODS_INC="$DODS_INC -DLIBDAP_39"
21354
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap >= 3.9" >&5
 
24216
    else
 
24217
        DODS_INC="$DODS_INC -DLIBDAP_39"
 
24218
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdap >= 3.9" >&5
21355
24219
$as_echo "libdap >= 3.9" >&6; }
 
24220
    fi
 
24221
    rm -f islibdappre39.*
 
24222
 
21356
24223
fi
21357
 
rm -f islibdappre39.*
 
24224
rm -f islibdappost310.*
21358
24225
 
21359
24226
 
21360
24227
        if test -x $DODS_BIN/opendap-config ; then
21369
24236
      elif which curl-config > /dev/null 2>&1; then
21370
24237
          LIBS="$LIBS  `curl-config --libs`"
21371
24238
      else
21372
 
          as_fn_error "You gave a dods root, but I can't find curl!" "$LINENO" 5
 
24239
          as_fn_error $? "You gave a dods root, but I can't find curl!" "$LINENO" 5
21373
24240
      fi
21374
24241
 
21375
24242
      if test -x $DODS_BIN/xml2-config; then
21377
24244
      elif which xml2-config > /dev/null 2>&1; then
21378
24245
          LIBS="$LIBS  `xml2-config --libs`"
21379
24246
      else
21380
 
          as_fn_error "You gave a dods root, but I can't find xml2!" "$LINENO" 5
 
24247
          as_fn_error $? "You gave a dods root, but I can't find xml2!" "$LINENO" 5
21381
24248
      fi
21382
24249
    fi
21383
24250
 
21390
24257
 
21391
24258
 
21392
24259
 
 
24260
CURL_SETTING=no
 
24261
CURL_INC=
 
24262
CURL_LIB=
 
24263
 
21393
24264
 
21394
24265
# Check whether --with-curl was given.
21395
24266
if test "${with_curl+set}" = set; then :
21408
24279
set dummy curl-config; ac_word=$2
21409
24280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21410
24281
$as_echo_n "checking for $ac_word... " >&6; }
21411
 
if test "${ac_cv_path_LIBCURL_CONFIG+set}" = set; then :
 
24282
if ${ac_cv_path_LIBCURL_CONFIG+:} false; then :
21412
24283
  $as_echo_n "(cached) " >&6
21413
24284
else
21414
24285
  case $LIBCURL_CONFIG in
21455
24326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result:         found libcurl version $CURL_VER" >&5
21456
24327
$as_echo "        found libcurl version $CURL_VER" >&6; }
21457
24328
 
 
24329
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
 
24330
$as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
 
24331
if ${ac_cv_lib_curl_curl_global_init+:} false; then :
 
24332
  $as_echo_n "(cached) " >&6
 
24333
else
 
24334
  ac_check_lib_save_LIBS=$LIBS
 
24335
LIBS="-lcurl `$LIBCURL_CONFIG --libs` $LIBS"
 
24336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24337
/* end confdefs.h.  */
 
24338
 
 
24339
/* Override any GCC internal prototype to avoid an error.
 
24340
   Use char because int might match the return type of a GCC
 
24341
   builtin and then its argument prototype would still apply.  */
 
24342
#ifdef __cplusplus
 
24343
extern "C"
 
24344
#endif
 
24345
char curl_global_init ();
 
24346
int
 
24347
main ()
 
24348
{
 
24349
return curl_global_init ();
 
24350
  ;
 
24351
  return 0;
 
24352
}
 
24353
_ACEOF
 
24354
if ac_fn_c_try_link "$LINENO"; then :
 
24355
  ac_cv_lib_curl_curl_global_init=yes
 
24356
else
 
24357
  ac_cv_lib_curl_curl_global_init=no
 
24358
fi
 
24359
rm -f core conftest.err conftest.$ac_objext \
 
24360
    conftest$ac_exeext conftest.$ac_ext
 
24361
LIBS=$ac_check_lib_save_LIBS
 
24362
fi
 
24363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
 
24364
$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
 
24365
if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
 
24366
  CURL_SETTING=yes
 
24367
else
 
24368
  CURL_SETTING=no
 
24369
fi
 
24370
 
 
24371
 
 
24372
fi
 
24373
 
 
24374
if test "$CURL_SETTING" = "yes" ; then
 
24375
 
21458
24376
  CURL_INC=`$LIBCURL_CONFIG --cflags`
21459
24377
  CURL_LIB=`$LIBCURL_CONFIG --libs`
21460
 
  CURL_SETTING=yes
21461
 
 
21462
24378
  OPT_GDAL_FORMATS="wcs wms $OPT_GDAL_FORMATS"
21463
 
else
21464
 
  CURL_SETTING=no
21465
 
  CURL_INC=
21466
 
  CURL_LIB=
 
24379
 
21467
24380
fi
21468
24381
 
21469
24382
CURL_SETTING=$CURL_SETTING
21481
24394
fi
21482
24395
 
21483
24396
 
 
24397
HAVE_SPATIALITE=no
 
24398
SPATIALITE_AMALGAMATION=no
 
24399
 
21484
24400
if test -z "$with_spatialite" -o "$with_spatialite" = "no"; then
21485
24401
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21486
24402
$as_echo "disabled" >&6; }
21487
 
    HAVE_SPATIALITE=no
21488
 
else
21489
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SpatiaLite" >&5
21490
 
$as_echo_n "checking for SpatiaLite... " >&6; }
 
24403
elif test "$with_spatialite" = "yes"; then
 
24404
    for ac_header in sqlite3.h
 
24405
do :
 
24406
  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
 
24407
if test "x$ac_cv_header_sqlite3_h" = xyes; then :
 
24408
  cat >>confdefs.h <<_ACEOF
 
24409
#define HAVE_SQLITE3_H 1
 
24410
_ACEOF
 
24411
 
 
24412
fi
 
24413
 
 
24414
done
 
24415
 
 
24416
    if test "$ac_cv_header_sqlite3_h" = "yes"; then
 
24417
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spatialite.h in /usr/include or /usr/local/include" >&5
 
24418
$as_echo_n "checking for spatialite.h in /usr/include or /usr/local/include... " >&6; }
 
24419
        if test -f "/usr/include/spatialite.h" -o -f "/usr/local/include/spatialite.h"; then
 
24420
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
24421
$as_echo "found" >&6; }
 
24422
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spatialite_init in -lspatialite" >&5
 
24423
$as_echo_n "checking for spatialite_init in -lspatialite... " >&6; }
 
24424
if ${ac_cv_lib_spatialite_spatialite_init+:} false; then :
 
24425
  $as_echo_n "(cached) " >&6
 
24426
else
 
24427
  ac_check_lib_save_LIBS=$LIBS
 
24428
LIBS="-lspatialite  $LIBS"
 
24429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24430
/* end confdefs.h.  */
 
24431
 
 
24432
/* Override any GCC internal prototype to avoid an error.
 
24433
   Use char because int might match the return type of a GCC
 
24434
   builtin and then its argument prototype would still apply.  */
 
24435
#ifdef __cplusplus
 
24436
extern "C"
 
24437
#endif
 
24438
char spatialite_init ();
 
24439
int
 
24440
main ()
 
24441
{
 
24442
return spatialite_init ();
 
24443
  ;
 
24444
  return 0;
 
24445
}
 
24446
_ACEOF
 
24447
if ac_fn_c_try_link "$LINENO"; then :
 
24448
  ac_cv_lib_spatialite_spatialite_init=yes
 
24449
else
 
24450
  ac_cv_lib_spatialite_spatialite_init=no
 
24451
fi
 
24452
rm -f core conftest.err conftest.$ac_objext \
 
24453
    conftest$ac_exeext conftest.$ac_ext
 
24454
LIBS=$ac_check_lib_save_LIBS
 
24455
fi
 
24456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spatialite_spatialite_init" >&5
 
24457
$as_echo "$ac_cv_lib_spatialite_spatialite_init" >&6; }
 
24458
if test "x$ac_cv_lib_spatialite_spatialite_init" = xyes; then :
 
24459
  SPATIALITE_INIT_FOUND=yes
 
24460
else
 
24461
  SPATIALITE_INIT_FOUND=no
 
24462
fi
 
24463
 
 
24464
            if test "$SPATIALITE_INIT_FOUND" = "yes"; then
 
24465
                HAVE_SPATIALITE=yes
 
24466
                LIBS="$LIBS -lspatialite"
 
24467
                HAVE_SQLITE3=yes
 
24468
            fi
 
24469
        else
 
24470
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found : spatialite support disabled" >&5
 
24471
$as_echo "not found : spatialite support disabled" >&6; }
 
24472
        fi
 
24473
    fi
 
24474
else
21491
24475
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spatialite_init in -lspatialite" >&5
21492
24476
$as_echo_n "checking for spatialite_init in -lspatialite... " >&6; }
21493
 
if test "${ac_cv_lib_spatialite_spatialite_init+set}" = set; then :
 
24477
if ${ac_cv_lib_spatialite_spatialite_init+:} false; then :
21494
24478
  $as_echo_n "(cached) " >&6
21495
24479
else
21496
24480
  ac_check_lib_save_LIBS=$LIBS
21524
24508
fi
21525
24509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spatialite_spatialite_init" >&5
21526
24510
$as_echo "$ac_cv_lib_spatialite_spatialite_init" >&6; }
21527
 
if test "x$ac_cv_lib_spatialite_spatialite_init" = x""yes; then :
 
24511
if test "x$ac_cv_lib_spatialite_spatialite_init" = xyes; then :
21528
24512
  SPATIALITE_INIT_FOUND=yes
21529
24513
else
21530
24514
  SPATIALITE_INIT_FOUND=no
21537
24521
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
21538
24522
$as_echo "enabled" >&6; }
21539
24523
        HAVE_SPATIALITE=yes
 
24524
        SPATIALITE_AMALGAMATION=yes
21540
24525
 
21541
 
        # SpatiaLite availability implies SQLite availability
 
24526
        # SpatiaLite amalgamation availability implies SQLite availability
21542
24527
        # Caution : don't include the include/spatialite subdir in the include dir
21543
24528
        # as there's a spatialite.h file in it, which we don't want to include.
21544
24529
        # We want to include include/spatialite.h instead !
21545
24530
        SQLITE3_CFLAGS="-I$with_spatialite/include"
21546
24531
        LIBS="$LIBS -L$with_spatialite/lib -lspatialite"
21547
24532
        HAVE_SQLITE3=yes
 
24533
 
 
24534
    elif test -f "$with_spatialite/include/spatialite.h" -a \
 
24535
        "$SPATIALITE_INIT_FOUND" = "yes"; then
 
24536
        for ac_header in sqlite3.h
 
24537
do :
 
24538
  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
 
24539
if test "x$ac_cv_header_sqlite3_h" = xyes; then :
 
24540
  cat >>confdefs.h <<_ACEOF
 
24541
#define HAVE_SQLITE3_H 1
 
24542
_ACEOF
 
24543
 
 
24544
fi
 
24545
 
 
24546
done
 
24547
 
 
24548
        if test "$ac_cv_header_sqlite3_h" = "yes"; then
 
24549
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
 
24550
$as_echo "enabled" >&6; }
 
24551
            SPATIALITE_INC="-I$with_spatialite/include"
 
24552
            HAVE_SPATIALITE=yes
 
24553
            LIBS="$LIBS -L$with_spatialite/lib -lspatialite"
 
24554
            HAVE_SQLITE3=yes
 
24555
        fi
21548
24556
    else
21549
24557
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21550
24558
$as_echo "disabled" >&6; }
21551
 
        HAVE_SPATIALITE=no
21552
24559
    fi
21553
24560
fi
21554
24561
 
21555
24562
HAVE_SPATIALITE=$HAVE_SPATIALITE
21556
24563
 
 
24564
SPATIALITE_INC=$SPATIALITE_INC
 
24565
 
 
24566
SPATIALITE_AMALGAMATION=$SPATIALITE_AMALGAMATION
 
24567
 
21557
24568
 
21558
24569
 
21559
24570
if test "${HAVE_SPATIALITE}" = "no" ; then
21597
24608
                               \+ $sqlite3_version_req_minor \* 1000 \
21598
24609
                               \+ $sqlite3_version_req_micro`
21599
24610
 
21600
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
21601
 
$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
21602
 
 
21603
24611
    if test "x$WANT_SQLITE3" = "xyes"; then
21604
24612
        ac_sqlite3_header="sqlite3.h"
 
24613
        LIB_SQLITE3_FOUND=no
21605
24614
 
21606
24615
        if test "$ac_sqlite3_path" != ""; then
21607
 
            ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
 
24616
 
 
24617
            unset ac_cv_lib_sqlite3_sqlite3_open
 
24618
            saved_LIBS="$LIBS"
 
24619
            LIBS=""
 
24620
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
 
24621
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
 
24622
if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
 
24623
  $as_echo_n "(cached) " >&6
 
24624
else
 
24625
  ac_check_lib_save_LIBS=$LIBS
 
24626
LIBS="-lsqlite3 -L$ac_sqlite3_path/lib $LIBS"
 
24627
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24628
/* end confdefs.h.  */
 
24629
 
 
24630
/* Override any GCC internal prototype to avoid an error.
 
24631
   Use char because int might match the return type of a GCC
 
24632
   builtin and then its argument prototype would still apply.  */
 
24633
#ifdef __cplusplus
 
24634
extern "C"
 
24635
#endif
 
24636
char sqlite3_open ();
 
24637
int
 
24638
main ()
 
24639
{
 
24640
return sqlite3_open ();
 
24641
  ;
 
24642
  return 0;
 
24643
}
 
24644
_ACEOF
 
24645
if ac_fn_c_try_link "$LINENO"; then :
 
24646
  ac_cv_lib_sqlite3_sqlite3_open=yes
 
24647
else
 
24648
  ac_cv_lib_sqlite3_sqlite3_open=no
 
24649
fi
 
24650
rm -f core conftest.err conftest.$ac_objext \
 
24651
    conftest$ac_exeext conftest.$ac_ext
 
24652
LIBS=$ac_check_lib_save_LIBS
 
24653
fi
 
24654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
 
24655
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
 
24656
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
 
24657
  LIB_SQLITE3_FOUND=yes
 
24658
else
 
24659
  LIB_SQLITE3_FOUND=no
 
24660
fi
 
24661
 
 
24662
            LIBS="$saved_LIBS"
 
24663
            if test "$LIB_SQLITE3_FOUND" = "yes"; then
 
24664
                ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
 
24665
            fi
 
24666
 
21608
24667
            ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
21609
24668
        else
21610
24669
            for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
21611
24670
                if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
21612
24671
                    && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
21613
24672
                    ac_sqlite3_path=$ac_sqlite3_path_tmp
21614
 
                    ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
 
24673
 
 
24674
                    unset ac_cv_lib_sqlite3_sqlite3_open
 
24675
                    saved_LIBS="$LIBS"
 
24676
                    LIBS=""
 
24677
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
 
24678
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
 
24679
if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
 
24680
  $as_echo_n "(cached) " >&6
 
24681
else
 
24682
  ac_check_lib_save_LIBS=$LIBS
 
24683
LIBS="-lsqlite3  $LIBS"
 
24684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24685
/* end confdefs.h.  */
 
24686
 
 
24687
/* Override any GCC internal prototype to avoid an error.
 
24688
   Use char because int might match the return type of a GCC
 
24689
   builtin and then its argument prototype would still apply.  */
 
24690
#ifdef __cplusplus
 
24691
extern "C"
 
24692
#endif
 
24693
char sqlite3_open ();
 
24694
int
 
24695
main ()
 
24696
{
 
24697
return sqlite3_open ();
 
24698
  ;
 
24699
  return 0;
 
24700
}
 
24701
_ACEOF
 
24702
if ac_fn_c_try_link "$LINENO"; then :
 
24703
  ac_cv_lib_sqlite3_sqlite3_open=yes
 
24704
else
 
24705
  ac_cv_lib_sqlite3_sqlite3_open=no
 
24706
fi
 
24707
rm -f core conftest.err conftest.$ac_objext \
 
24708
    conftest$ac_exeext conftest.$ac_ext
 
24709
LIBS=$ac_check_lib_save_LIBS
 
24710
fi
 
24711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
 
24712
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
 
24713
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
 
24714
  LIB_SQLITE3_FOUND=yes
 
24715
else
 
24716
  LIB_SQLITE3_FOUND=no
 
24717
fi
 
24718
 
 
24719
                    LIBS="$saved_LIBS"
 
24720
                    if test "$LIB_SQLITE3_FOUND" = "yes"; then
 
24721
                        ac_sqlite3_ldflags=""
 
24722
                    else
 
24723
                        unset ac_cv_lib_sqlite3_sqlite3_open
 
24724
                        saved_LIBS="$LIBS"
 
24725
                        LIBS=""
 
24726
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
 
24727
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
 
24728
if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
 
24729
  $as_echo_n "(cached) " >&6
 
24730
else
 
24731
  ac_check_lib_save_LIBS=$LIBS
 
24732
LIBS="-lsqlite3 -L$ac_sqlite3_path_tmp/lib $LIBS"
 
24733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24734
/* end confdefs.h.  */
 
24735
 
 
24736
/* Override any GCC internal prototype to avoid an error.
 
24737
   Use char because int might match the return type of a GCC
 
24738
   builtin and then its argument prototype would still apply.  */
 
24739
#ifdef __cplusplus
 
24740
extern "C"
 
24741
#endif
 
24742
char sqlite3_open ();
 
24743
int
 
24744
main ()
 
24745
{
 
24746
return sqlite3_open ();
 
24747
  ;
 
24748
  return 0;
 
24749
}
 
24750
_ACEOF
 
24751
if ac_fn_c_try_link "$LINENO"; then :
 
24752
  ac_cv_lib_sqlite3_sqlite3_open=yes
 
24753
else
 
24754
  ac_cv_lib_sqlite3_sqlite3_open=no
 
24755
fi
 
24756
rm -f core conftest.err conftest.$ac_objext \
 
24757
    conftest$ac_exeext conftest.$ac_ext
 
24758
LIBS=$ac_check_lib_save_LIBS
 
24759
fi
 
24760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
 
24761
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
 
24762
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
 
24763
  LIB_SQLITE3_FOUND=yes
 
24764
else
 
24765
  LIB_SQLITE3_FOUND=no
 
24766
fi
 
24767
 
 
24768
                        LIBS="$saved_LIBS"
 
24769
                        if test "$LIB_SQLITE3_FOUND" = "yes"; then
 
24770
                            ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
 
24771
                        fi
 
24772
                    fi
 
24773
 
21615
24774
                    ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
21616
24775
                    break;
21617
24776
                fi
21618
24777
            done
21619
24778
        fi
21620
24779
 
 
24780
        if test "$LIB_SQLITE3_FOUND" = "no"; then
 
24781
            WANT_SQLITE3="no"
 
24782
        fi
 
24783
    fi
 
24784
 
 
24785
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
 
24786
$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
 
24787
 
 
24788
    if test "x$WANT_SQLITE3" = "xyes"; then
 
24789
 
21621
24790
        ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
21622
24791
 
21623
24792
        saved_CPPFLAGS="$CPPFLAGS"
21789
24958
    LIBS="${IDB_LIB} -ldl -lcrypt"
21790
24959
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ifx_srvinfo in -lifsql" >&5
21791
24960
$as_echo_n "checking for ifx_srvinfo in -lifsql... " >&6; }
21792
 
if test "${ac_cv_lib_ifsql_ifx_srvinfo+set}" = set; then :
 
24961
if ${ac_cv_lib_ifsql_ifx_srvinfo+:} false; then :
21793
24962
  $as_echo_n "(cached) " >&6
21794
24963
else
21795
24964
  ac_check_lib_save_LIBS=$LIBS
21823
24992
fi
21824
24993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ifsql_ifx_srvinfo" >&5
21825
24994
$as_echo "$ac_cv_lib_ifsql_ifx_srvinfo" >&6; }
21826
 
if test "x$ac_cv_lib_ifsql_ifx_srvinfo" = x""yes; then :
 
24995
if test "x$ac_cv_lib_ifsql_ifx_srvinfo" = xyes; then :
21827
24996
  HAVE_IDB=yes
21828
24997
else
21829
24998
  HAVE_IDB=no
21879
25048
  as_ac_Lib=`$as_echo "ac_cv_lib_sde$SDE_VERSION''_SE_connection_create" | $as_tr_sh`
21880
25049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SE_connection_create in -lsde$SDE_VERSION" >&5
21881
25050
$as_echo_n "checking for SE_connection_create in -lsde$SDE_VERSION... " >&6; }
21882
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
 
25051
if eval \${$as_ac_Lib+:} false; then :
21883
25052
  $as_echo_n "(cached) " >&6
21884
25053
else
21885
25054
  ac_check_lib_save_LIBS=$LIBS
21914
25083
eval ac_res=\$$as_ac_Lib
21915
25084
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21916
25085
$as_echo "$ac_res" >&6; }
21917
 
eval as_val=\$$as_ac_Lib
21918
 
   if test "x$as_val" = x""yes; then :
 
25086
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21919
25087
  SDE_ENABLED=yes
21920
25088
fi
21921
25089
 
21924
25092
      SDE_LIB="-lsde$SDE_VERSION -lpe$SDE_VERSION -lsg$SDE_VERSION"
21925
25093
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
21926
25094
$as_echo_n "checking for main in -lpthread... " >&6; }
21927
 
if test "${ac_cv_lib_pthread_main+set}" = set; then :
 
25095
if ${ac_cv_lib_pthread_main+:} false; then :
21928
25096
  $as_echo_n "(cached) " >&6
21929
25097
else
21930
25098
  ac_check_lib_save_LIBS=$LIBS
21952
25120
fi
21953
25121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
21954
25122
$as_echo "$ac_cv_lib_pthread_main" >&6; }
21955
 
if test "x$ac_cv_lib_pthread_main" = x""yes; then :
 
25123
if test "x$ac_cv_lib_pthread_main" = xyes; then :
21956
25124
  SDE_LIB="$SDE_LIB -lpthread"
21957
25125
fi
21958
25126
 
21959
25127
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
21960
25128
$as_echo_n "checking for main in -lsocket... " >&6; }
21961
 
if test "${ac_cv_lib_socket_main+set}" = set; then :
 
25129
if ${ac_cv_lib_socket_main+:} false; then :
21962
25130
  $as_echo_n "(cached) " >&6
21963
25131
else
21964
25132
  ac_check_lib_save_LIBS=$LIBS
21986
25154
fi
21987
25155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
21988
25156
$as_echo "$ac_cv_lib_socket_main" >&6; }
21989
 
if test "x$ac_cv_lib_socket_main" = x""yes; then :
 
25157
if test "x$ac_cv_lib_socket_main" = xyes; then :
21990
25158
  SDE_LIB="$SDE_LIB -lsocket"
21991
25159
fi
21992
25160
 
21993
25161
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
21994
25162
$as_echo_n "checking for main in -ldl... " >&6; }
21995
 
if test "${ac_cv_lib_dl_main+set}" = set; then :
 
25163
if ${ac_cv_lib_dl_main+:} false; then :
21996
25164
  $as_echo_n "(cached) " >&6
21997
25165
else
21998
25166
  ac_check_lib_save_LIBS=$LIBS
22020
25188
fi
22021
25189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22022
25190
$as_echo "$ac_cv_lib_dl_main" >&6; }
22023
 
if test "x$ac_cv_lib_dl_main" = x""yes; then :
 
25191
if test "x$ac_cv_lib_dl_main" = xyes; then :
22024
25192
  SDE_LIB="$SDE_LIB -ldl"
22025
25193
fi
22026
25194
 
22052
25220
      SDE_LIB="-L$SDE_LIBDIR -lsde$SDE_VERSION -lpe$SDE_VERSION -lsg$SDE_VERSION"
22053
25221
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
22054
25222
$as_echo_n "checking for main in -lpthread... " >&6; }
22055
 
if test "${ac_cv_lib_pthread_main+set}" = set; then :
 
25223
if ${ac_cv_lib_pthread_main+:} false; then :
22056
25224
  $as_echo_n "(cached) " >&6
22057
25225
else
22058
25226
  ac_check_lib_save_LIBS=$LIBS
22080
25248
fi
22081
25249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
22082
25250
$as_echo "$ac_cv_lib_pthread_main" >&6; }
22083
 
if test "x$ac_cv_lib_pthread_main" = x""yes; then :
 
25251
if test "x$ac_cv_lib_pthread_main" = xyes; then :
22084
25252
  SDE_LIB="$SDE_LIB -lpthread"
22085
25253
fi
22086
25254
 
22087
25255
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22088
25256
$as_echo_n "checking for main in -lsocket... " >&6; }
22089
 
if test "${ac_cv_lib_socket_main+set}" = set; then :
 
25257
if ${ac_cv_lib_socket_main+:} false; then :
22090
25258
  $as_echo_n "(cached) " >&6
22091
25259
else
22092
25260
  ac_check_lib_save_LIBS=$LIBS
22114
25282
fi
22115
25283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22116
25284
$as_echo "$ac_cv_lib_socket_main" >&6; }
22117
 
if test "x$ac_cv_lib_socket_main" = x""yes; then :
 
25285
if test "x$ac_cv_lib_socket_main" = xyes; then :
22118
25286
  SDE_LIB="$SDE_LIB -lsocket"
22119
25287
fi
22120
25288
 
22121
25289
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22122
25290
$as_echo_n "checking for main in -ldl... " >&6; }
22123
 
if test "${ac_cv_lib_dl_main+set}" = set; then :
 
25291
if ${ac_cv_lib_dl_main+:} false; then :
22124
25292
  $as_echo_n "(cached) " >&6
22125
25293
else
22126
25294
  ac_check_lib_save_LIBS=$LIBS
22148
25316
fi
22149
25317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22150
25318
$as_echo "$ac_cv_lib_dl_main" >&6; }
22151
 
if test "x$ac_cv_lib_dl_main" = x""yes; then :
 
25319
if test "x$ac_cv_lib_dl_main" = xyes; then :
22152
25320
  SDE_LIB="$SDE_LIB -ldl"
22153
25321
fi
22154
25322
 
22155
25323
  else
22156
 
      as_fn_error "\"Could not find sdetype.h or libsde$SDE_VERSION.a/libsde$SDE_VERSION.so in $SDE_DIR.\"" "$LINENO" 5
 
25324
      as_fn_error $? "\"Could not find sdetype.h or libsde$SDE_VERSION.a/libsde$SDE_VERSION.so in $SDE_DIR.\"" "$LINENO" 5
 
25325
  fi
 
25326
 
 
25327
  if test "`arch`" = "x86_64" ; then
 
25328
    { $as_echo "$as_me:${as_lineno-$LINENO}: result:         Adding -DSDE64 for 64bit platform." >&5
 
25329
$as_echo "        Adding -DSDE64 for 64bit platform." >&6; }
 
25330
    SDE_INC="$SDE_INC -DSDE64"
22157
25331
  fi
22158
25332
 
22159
25333
  SDE_ENABLED=yes
22185
25359
fi
22186
25360
 
22187
25361
 
 
25362
HAVE_VFK=no
 
25363
 
22188
25364
if test "$with_vfk" = "no"; then
22189
25365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22190
25366
$as_echo "no" >&6; }
22191
 
  HAVE_VFK=no
22192
25367
else
22193
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
25368
 
 
25369
    # Check that C++ compiler isn't too broken
 
25370
    rm -f testrlist.*
 
25371
    echo '#include <vector>' > testrlist.cpp
 
25372
    echo 'int main(int argc, char** argv) { std::vector<int> a, b; a.insert(a.begin(), b.rbegin(), b.rend()); return 0; } ' >> testrlist.cpp
 
25373
    if test -z "`${CXX} testrlist.cpp -c 2>&1`" ; then
 
25374
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22194
25375
$as_echo "yes" >&6; }
22195
 
  HAVE_VFK=yes
 
25376
        HAVE_VFK=yes
 
25377
    else
 
25378
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled, broken C++ compiler" >&5
 
25379
$as_echo "disabled, broken C++ compiler" >&6; }
 
25380
    fi
 
25381
    rm -f testrlist.*
22196
25382
fi
22197
25383
 
22198
25384
 
22211
25397
 
22212
25398
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eps_read_block_header in -lepsilon" >&5
22213
25399
$as_echo_n "checking for eps_read_block_header in -lepsilon... " >&6; }
22214
 
if test "${ac_cv_lib_epsilon_eps_read_block_header+set}" = set; then :
 
25400
if ${ac_cv_lib_epsilon_eps_read_block_header+:} false; then :
22215
25401
  $as_echo_n "(cached) " >&6
22216
25402
else
22217
25403
  ac_check_lib_save_LIBS=$LIBS
22245
25431
fi
22246
25432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_epsilon_eps_read_block_header" >&5
22247
25433
$as_echo "$ac_cv_lib_epsilon_eps_read_block_header" >&6; }
22248
 
if test "x$ac_cv_lib_epsilon_eps_read_block_header" = x""yes; then :
 
25434
if test "x$ac_cv_lib_epsilon_eps_read_block_header" = xyes; then :
22249
25435
  EPSILON_SETTING=yes
22250
25436
else
22251
25437
  EPSILON_SETTING=no
22262
25448
 
22263
25449
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eps_read_block_header in -lepsilon" >&5
22264
25450
$as_echo_n "checking for eps_read_block_header in -lepsilon... " >&6; }
22265
 
if test "${ac_cv_lib_epsilon_eps_read_block_header+set}" = set; then :
 
25451
if ${ac_cv_lib_epsilon_eps_read_block_header+:} false; then :
22266
25452
  $as_echo_n "(cached) " >&6
22267
25453
else
22268
25454
  ac_check_lib_save_LIBS=$LIBS
22296
25482
fi
22297
25483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_epsilon_eps_read_block_header" >&5
22298
25484
$as_echo "$ac_cv_lib_epsilon_eps_read_block_header" >&6; }
22299
 
if test "x$ac_cv_lib_epsilon_eps_read_block_header" = x""yes; then :
 
25485
if test "x$ac_cv_lib_epsilon_eps_read_block_header" = xyes; then :
22300
25486
  EPSILON_SETTING=yes
22301
25487
else
22302
25488
  EPSILON_SETTING=no
22318
25504
 
22319
25505
 
22320
25506
 
 
25507
# Check whether --with-webp was given.
 
25508
if test "${with_webp+set}" = set; then :
 
25509
  withval=$with_webp;
 
25510
fi
 
25511
 
 
25512
 
 
25513
WEBP_SETTING=no
 
25514
 
 
25515
if test "$with_webp" = "yes" ; then
 
25516
 
 
25517
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
 
25518
$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
 
25519
if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
 
25520
  $as_echo_n "(cached) " >&6
 
25521
else
 
25522
  ac_check_lib_save_LIBS=$LIBS
 
25523
LIBS="-lwebp  $LIBS"
 
25524
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25525
/* end confdefs.h.  */
 
25526
 
 
25527
/* Override any GCC internal prototype to avoid an error.
 
25528
   Use char because int might match the return type of a GCC
 
25529
   builtin and then its argument prototype would still apply.  */
 
25530
#ifdef __cplusplus
 
25531
extern "C"
 
25532
#endif
 
25533
char WebPDecodeRGB ();
 
25534
int
 
25535
main ()
 
25536
{
 
25537
return WebPDecodeRGB ();
 
25538
  ;
 
25539
  return 0;
 
25540
}
 
25541
_ACEOF
 
25542
if ac_fn_c_try_link "$LINENO"; then :
 
25543
  ac_cv_lib_webp_WebPDecodeRGB=yes
 
25544
else
 
25545
  ac_cv_lib_webp_WebPDecodeRGB=no
 
25546
fi
 
25547
rm -f core conftest.err conftest.$ac_objext \
 
25548
    conftest$ac_exeext conftest.$ac_ext
 
25549
LIBS=$ac_check_lib_save_LIBS
 
25550
fi
 
25551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
 
25552
$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
 
25553
if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
 
25554
  WEBP_SETTING=yes
 
25555
else
 
25556
  WEBP_SETTING=no
 
25557
fi
 
25558
 
 
25559
 
 
25560
  if test "$WEBP_SETTING" = "yes" ; then
 
25561
    LIBS="-lwebp $LIBS"
 
25562
  else
 
25563
    echo "libwebp not found - WEBP support disabled"
 
25564
  fi
 
25565
 
 
25566
elif test "$with_webp" != "no" -a "$with_webp" != ""; then
 
25567
 
 
25568
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
 
25569
$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
 
25570
if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
 
25571
  $as_echo_n "(cached) " >&6
 
25572
else
 
25573
  ac_check_lib_save_LIBS=$LIBS
 
25574
LIBS="-lwebp -L$with_webp/lib -lwebp $LIBS"
 
25575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25576
/* end confdefs.h.  */
 
25577
 
 
25578
/* Override any GCC internal prototype to avoid an error.
 
25579
   Use char because int might match the return type of a GCC
 
25580
   builtin and then its argument prototype would still apply.  */
 
25581
#ifdef __cplusplus
 
25582
extern "C"
 
25583
#endif
 
25584
char WebPDecodeRGB ();
 
25585
int
 
25586
main ()
 
25587
{
 
25588
return WebPDecodeRGB ();
 
25589
  ;
 
25590
  return 0;
 
25591
}
 
25592
_ACEOF
 
25593
if ac_fn_c_try_link "$LINENO"; then :
 
25594
  ac_cv_lib_webp_WebPDecodeRGB=yes
 
25595
else
 
25596
  ac_cv_lib_webp_WebPDecodeRGB=no
 
25597
fi
 
25598
rm -f core conftest.err conftest.$ac_objext \
 
25599
    conftest$ac_exeext conftest.$ac_ext
 
25600
LIBS=$ac_check_lib_save_LIBS
 
25601
fi
 
25602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
 
25603
$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
 
25604
if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
 
25605
  WEBP_SETTING=yes
 
25606
else
 
25607
  WEBP_SETTING=no
 
25608
fi
 
25609
 
 
25610
 
 
25611
  if test "$WEBP_SETTING" = "yes" ; then
 
25612
    LIBS="-L$with_webp/lib -lwebp $LIBS"
 
25613
    EXTRA_INCLUDES="-I$with_webp/include $EXTRA_INCLUDES"
 
25614
  else
 
25615
    echo "libwebp not found - WEBP support disabled"
 
25616
  fi
 
25617
 
 
25618
fi
 
25619
 
 
25620
if test "$WEBP_SETTING" != "no" ; then
 
25621
  OPT_GDAL_FORMATS="webp $OPT_GDAL_FORMATS"
 
25622
fi
 
25623
 
 
25624
 
 
25625
 
22321
25626
 
22322
25627
 
22323
25628
 
22344
25649
set dummy geos-config; ac_word=$2
22345
25650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22346
25651
$as_echo_n "checking for $ac_word... " >&6; }
22347
 
if test "${ac_cv_path_GEOS_CONFIG+set}" = set; then :
 
25652
if ${ac_cv_path_GEOS_CONFIG+:} false; then :
22348
25653
  $as_echo_n "(cached) " >&6
22349
25654
else
22350
25655
  case $GEOS_CONFIG in
22414
25719
set dummy "$ac_geos_config"; ac_word=$2
22415
25720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416
25721
$as_echo_n "checking for $ac_word... " >&6; }
22417
 
if test "${ac_cv_prog_GEOS_CONFIG+set}" = set; then :
 
25722
if ${ac_cv_prog_GEOS_CONFIG+:} false; then :
22418
25723
  $as_echo_n "(cached) " >&6
22419
25724
else
22420
25725
  if test -n "$GEOS_CONFIG"; then
22510
25815
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GEOS was found on your system, but geos-config reports version ${geos_major_version}.${geos_minor_version}.${geos_micro_version}, need at least $min_geos_version. GEOS support disabled." >&5
22511
25816
$as_echo "$as_me: WARNING: GEOS was found on your system, but geos-config reports version ${geos_major_version}.${geos_minor_version}.${geos_micro_version}, need at least $min_geos_version. GEOS support disabled." >&2;}
22512
25817
      else
22513
 
        as_fn_error "geos-config reports version ${geos_major_version}.${geos_minor_version}.${geos_micro_version}, need at least $min_geos_version or configure --without-geos" "$LINENO" 5
 
25818
        as_fn_error $? "geos-config reports version ${geos_major_version}.${geos_minor_version}.${geos_micro_version}, need at least $min_geos_version or configure --without-geos" "$LINENO" 5
22514
25819
      fi
22515
25820
 
22516
25821
    else
22528
25833
 
22529
25834
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOSversion in -lgeos_c" >&5
22530
25835
$as_echo_n "checking for GEOSversion in -lgeos_c... " >&6; }
22531
 
if test "${ac_cv_lib_geos_c_GEOSversion+set}" = set; then :
 
25836
if ${ac_cv_lib_geos_c_GEOSversion+:} false; then :
22532
25837
  $as_echo_n "(cached) " >&6
22533
25838
else
22534
25839
  ac_check_lib_save_LIBS=$LIBS
22563
25868
fi
22564
25869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geos_c_GEOSversion" >&5
22565
25870
$as_echo "$ac_cv_lib_geos_c_GEOSversion" >&6; }
22566
 
if test "x$ac_cv_lib_geos_c_GEOSversion" = x""yes; then :
 
25871
if test "x$ac_cv_lib_geos_c_GEOSversion" = xyes; then :
22567
25872
  HAVE_GEOS="yes"
22568
25873
else
22569
25874
  HAVE_GEOS="no"
22570
25875
fi
22571
25876
 
22572
25877
 
 
25878
      if test x"$HAVE_GEOS" = "xno"; then
 
25879
          GEOS_CFLAGS=""
 
25880
      fi
 
25881
 
22573
25882
      CFLAGS="${ax_save_CFLAGS}"
22574
25883
      LIBS="${ax_save_LIBS}"
22575
25884
 
22587
25896
fi
22588
25897
 
22589
25898
 
 
25899
OPENCL_SETTING=no
 
25900
OPENCL_FLAGS=
 
25901
OPENCL_LIB=
 
25902
 
 
25903
 
 
25904
# Check whether --with-opencl was given.
 
25905
if test "${with_opencl+set}" = set; then :
 
25906
  withval=$with_opencl;
 
25907
fi
 
25908
 
 
25909
 
 
25910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL support" >&5
 
25911
$as_echo_n "checking for OpenCL support... " >&6; }
 
25912
 
 
25913
if test "$with_opencl" = "yes" ; then
 
25914
 
 
25915
 
 
25916
# Check whether --with-opencl-include was given.
 
25917
if test "${with_opencl_include+set}" = set; then :
 
25918
  withval=$with_opencl_include;
 
25919
fi
 
25920
 
 
25921
 
 
25922
  OPENCL_SETTING=yes
 
25923
 
 
25924
  if test "x$with_opencl_include" = "x" ; then
 
25925
    OPENCL_FLAGS=-DHAVE_OPENCL
 
25926
  else
 
25927
    OPENCL_FLAGS="-I$with_opencl_include -DHAVE_OPENCL"
 
25928
  fi
 
25929
 
 
25930
 
 
25931
# Check whether --with-opencl-lib was given.
 
25932
if test "${with_opencl_lib+set}" = set; then :
 
25933
  withval=$with_opencl_lib;
 
25934
fi
 
25935
 
 
25936
 
 
25937
  if test "x$with_opencl_lib" = "x" ; then
 
25938
    if test ! -z "`uname | grep Darwin`" ; then
 
25939
      OPENCL_LIB="-framework OpenCL"
 
25940
    else
 
25941
      OPENCL_LIB=-lOpenCL
 
25942
    fi
 
25943
  else
 
25944
    OPENCL_LIB="$with_opencl_lib"
 
25945
  fi
 
25946
 
 
25947
fi
 
25948
 
 
25949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCL_SETTING" >&5
 
25950
$as_echo "$OPENCL_SETTING" >&6; }
 
25951
 
 
25952
OPENCL_FLAGS=$OPENCL_FLAGS
 
25953
 
 
25954
OPENCL_LIB=$OPENCL_LIB
 
25955
 
 
25956
 
 
25957
 
 
25958
 
 
25959
 
 
25960
# Check whether --with-freexl was given.
 
25961
if test "${with_freexl+set}" = set; then :
 
25962
  withval=$with_freexl;
 
25963
fi
 
25964
 
 
25965
 
 
25966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeXL support" >&5
 
25967
$as_echo_n "checking for FreeXL support... " >&6; }
 
25968
 
 
25969
HAVE_FREEXL=no
 
25970
FREEXL_INCLUDE=
 
25971
 
 
25972
if test "$with_freexl" = "" -o "$with_freexl" = "yes" ; then
 
25973
  for ac_header in freexl.h
 
25974
do :
 
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
 
25979
_ACEOF
 
25980
 
 
25981
fi
 
25982
 
 
25983
done
 
25984
 
 
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
 
25989
else
 
25990
  ac_check_lib_save_LIBS=$LIBS
 
25991
LIBS="-lfreexl  $LIBS"
 
25992
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25993
/* end confdefs.h.  */
 
25994
 
 
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.  */
 
25998
#ifdef __cplusplus
 
25999
extern "C"
 
26000
#endif
 
26001
char freexl_open ();
 
26002
int
 
26003
main ()
 
26004
{
 
26005
return freexl_open ();
 
26006
  ;
 
26007
  return 0;
 
26008
}
 
26009
_ACEOF
 
26010
if ac_fn_c_try_link "$LINENO"; then :
 
26011
  ac_cv_lib_freexl_freexl_open=yes
 
26012
else
 
26013
  ac_cv_lib_freexl_freexl_open=no
 
26014
fi
 
26015
rm -f core conftest.err conftest.$ac_objext \
 
26016
    conftest$ac_exeext conftest.$ac_ext
 
26017
LIBS=$ac_check_lib_save_LIBS
 
26018
fi
 
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"
 
26023
else
 
26024
  FREEXL_LIBS=missing
 
26025
fi
 
26026
 
 
26027
 
 
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
 
26034
else
 
26035
  ac_check_lib_save_LIBS=$LIBS
 
26036
LIBS="-lfreexl -liconv $LIBS"
 
26037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26038
/* end confdefs.h.  */
 
26039
 
 
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.  */
 
26043
#ifdef __cplusplus
 
26044
extern "C"
 
26045
#endif
 
26046
char freexl_open ();
 
26047
int
 
26048
main ()
 
26049
{
 
26050
return freexl_open ();
 
26051
  ;
 
26052
  return 0;
 
26053
}
 
26054
_ACEOF
 
26055
if ac_fn_c_try_link "$LINENO"; then :
 
26056
  ac_cv_lib_freexl_freexl_open=yes
 
26057
else
 
26058
  ac_cv_lib_freexl_freexl_open=no
 
26059
fi
 
26060
rm -f core conftest.err conftest.$ac_objext \
 
26061
    conftest$ac_exeext conftest.$ac_ext
 
26062
LIBS=$ac_check_lib_save_LIBS
 
26063
fi
 
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"
 
26068
else
 
26069
  FREEXL_LIBS=missing
 
26070
fi
 
26071
 
 
26072
  fi
 
26073
 
 
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
 
26080
else
 
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.  */
 
26085
 
 
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.  */
 
26089
#ifdef __cplusplus
 
26090
extern "C"
 
26091
#endif
 
26092
char freexl_open ();
 
26093
int
 
26094
main ()
 
26095
{
 
26096
return freexl_open ();
 
26097
  ;
 
26098
  return 0;
 
26099
}
 
26100
_ACEOF
 
26101
if ac_fn_c_try_link "$LINENO"; then :
 
26102
  ac_cv_lib_freexl_freexl_open=yes
 
26103
else
 
26104
  ac_cv_lib_freexl_freexl_open=no
 
26105
fi
 
26106
rm -f core conftest.err conftest.$ac_objext \
 
26107
    conftest$ac_exeext conftest.$ac_ext
 
26108
LIBS=$ac_check_lib_save_LIBS
 
26109
fi
 
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"
 
26114
else
 
26115
  FREEXL_LIBS=missing
 
26116
fi
 
26117
 
 
26118
  fi
 
26119
 
 
26120
  if test "$FREEXL_LIBS" != "missing" -a "$ac_cv_header_freexl_h" = "yes" ; then
 
26121
 
 
26122
    # Check that freexl is recent enough
 
26123
    rm -f testrlist.*
 
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
 
26127
        HAVE_FREEXL=yes
 
26128
        LIBS="$FREEXL_LIBS $LIBS"
 
26129
    else
 
26130
        HAVE_FREEXL=no
 
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; }
 
26133
    fi
 
26134
    rm -f testfreexl.*
 
26135
 
 
26136
  else
 
26137
    HAVE_FREEXL=no
 
26138
    echo "libfreexl not found - FreeXL support disabled"
 
26139
  fi
 
26140
 
 
26141
elif test "$with_freexl" != "no"; then
 
26142
 
 
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
 
26147
else
 
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.  */
 
26152
 
 
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.  */
 
26156
#ifdef __cplusplus
 
26157
extern "C"
 
26158
#endif
 
26159
char freexl_open ();
 
26160
int
 
26161
main ()
 
26162
{
 
26163
return freexl_open ();
 
26164
  ;
 
26165
  return 0;
 
26166
}
 
26167
_ACEOF
 
26168
if ac_fn_c_try_link "$LINENO"; then :
 
26169
  ac_cv_lib_freexl_freexl_open=yes
 
26170
else
 
26171
  ac_cv_lib_freexl_freexl_open=no
 
26172
fi
 
26173
rm -f core conftest.err conftest.$ac_objext \
 
26174
    conftest$ac_exeext conftest.$ac_ext
 
26175
LIBS=$ac_check_lib_save_LIBS
 
26176
fi
 
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"
 
26181
else
 
26182
  FREEXL_LIBS=missing
 
26183
fi
 
26184
 
 
26185
 
 
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
 
26192
else
 
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.  */
 
26197
 
 
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.  */
 
26201
#ifdef __cplusplus
 
26202
extern "C"
 
26203
#endif
 
26204
char freexl_open ();
 
26205
int
 
26206
main ()
 
26207
{
 
26208
return freexl_open ();
 
26209
  ;
 
26210
  return 0;
 
26211
}
 
26212
_ACEOF
 
26213
if ac_fn_c_try_link "$LINENO"; then :
 
26214
  ac_cv_lib_freexl_freexl_open=yes
 
26215
else
 
26216
  ac_cv_lib_freexl_freexl_open=no
 
26217
fi
 
26218
rm -f core conftest.err conftest.$ac_objext \
 
26219
    conftest$ac_exeext conftest.$ac_ext
 
26220
LIBS=$ac_check_lib_save_LIBS
 
26221
fi
 
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"
 
26226
else
 
26227
  FREEXL_LIBS=missing
 
26228
fi
 
26229
 
 
26230
  fi
 
26231
 
 
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
 
26238
else
 
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.  */
 
26243
 
 
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.  */
 
26247
#ifdef __cplusplus
 
26248
extern "C"
 
26249
#endif
 
26250
char freexl_open ();
 
26251
int
 
26252
main ()
 
26253
{
 
26254
return freexl_open ();
 
26255
  ;
 
26256
  return 0;
 
26257
}
 
26258
_ACEOF
 
26259
if ac_fn_c_try_link "$LINENO"; then :
 
26260
  ac_cv_lib_freexl_freexl_open=yes
 
26261
else
 
26262
  ac_cv_lib_freexl_freexl_open=no
 
26263
fi
 
26264
rm -f core conftest.err conftest.$ac_objext \
 
26265
    conftest$ac_exeext conftest.$ac_ext
 
26266
LIBS=$ac_check_lib_save_LIBS
 
26267
fi
 
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"
 
26272
else
 
26273
  FREEXL_LIBS=missing
 
26274
fi
 
26275
 
 
26276
  fi
 
26277
 
 
26278
  if test "FREEXL_LIBS" != "missing" -a -f "$with_freexl/include/freexl.h" ; then
 
26279
 
 
26280
    # Check that freexl is recent enough
 
26281
    rm -f testrlist.*
 
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
 
26285
        HAVE_FREEXL=yes
 
26286
        LIBS="$FREEXL_LIBS $LIBS"
 
26287
        FREEXL_INCLUDE="-I$with_freexl/include"
 
26288
    else
 
26289
        HAVE_FREEXL=no
 
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; }
 
26292
    fi
 
26293
    rm -f testfreexl.*
 
26294
 
 
26295
  else
 
26296
    HAVE_FREEXL=no
 
26297
    echo "libfreexl not found - FreeXL support disabled"
 
26298
  fi
 
26299
 
 
26300
fi
 
26301
 
 
26302
HAVE_FREEXL=$HAVE_FREEXL
 
26303
 
 
26304
FREEXL_INCLUDE=$FREEXL_INCLUDE
 
26305
 
 
26306
 
 
26307
 
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; }
22592
26310
 
22612
26330
 
22613
26331
 
22614
26332
 
 
26333
 
 
26334
# Check whether --with-poppler was given.
 
26335
if test "${with_poppler+set}" = set; then :
 
26336
  withval=$with_poppler;
 
26337
fi
 
26338
 
 
26339
 
 
26340
HAVE_POPPLER=no
 
26341
POPPLER_HAS_OPTCONTENT=no
 
26342
POPPLER_BASE_STREAM_HAS_TWO_ARGS=no
 
26343
 
 
26344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poppler" >&5
 
26345
$as_echo_n "checking for poppler... " >&6; }
 
26346
 
 
26347
if test "$with_poppler" != "no" -a "$with_poppler" != ""; then
 
26348
 
 
26349
    if test "$with_poppler" = "yes" ; then
 
26350
        TEST_POPPLER_INC="-I/usr/include -I/usr/include/poppler"
 
26351
        TEST_POPPLER_LIB="-lpoppler"
 
26352
    else
 
26353
        TEST_POPPLER_INC="-I$with_poppler/include -I$with_poppler/include/poppler"
 
26354
        TEST_POPPLER_LIB="-L$with_poppler/lib -lpoppler"
 
26355
    fi
 
26356
 
 
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
 
26364
        HAVE_POPPLER=yes
 
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
 
26370
 
 
26371
        # And now try another dirty thing, but this one is
 
26372
        # optional.
 
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; }
 
26384
        else
 
26385
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26386
$as_echo "no" >&6; }
 
26387
        fi
 
26388
 
 
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; }
 
26409
        else
 
26410
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26411
$as_echo "no" >&6; }
 
26412
        fi
 
26413
    else
 
26414
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26415
$as_echo "no" >&6; }
 
26416
    fi
 
26417
    rm -f testpoppler.*
 
26418
    rm -f testpoppler
 
26419
else
 
26420
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
26421
$as_echo "disabled" >&6; }
 
26422
fi
 
26423
 
 
26424
HAVE_POPPLER=$HAVE_POPPLER
 
26425
 
 
26426
POPPLER_HAS_OPTCONTENT=$POPPLER_HAS_OPTCONTENT
 
26427
 
 
26428
POPPLER_BASE_STREAM_HAS_TWO_ARGS=$POPPLER_BASE_STREAM_HAS_TWO_ARGS
 
26429
 
 
26430
POPPLER_INC=$POPPLER_INC
 
26431
 
 
26432
 
 
26433
 
 
26434
 
 
26435
# Check whether --with-podofo was given.
 
26436
if test "${with_podofo+set}" = set; then :
 
26437
  withval=$with_podofo;
 
26438
fi
 
26439
 
 
26440
 
 
26441
HAVE_PODOFO=no
 
26442
 
 
26443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for podofo" >&5
 
26444
$as_echo_n "checking for podofo... " >&6; }
 
26445
 
 
26446
if test "$with_podofo" != "no" -a "$with_podofo" != ""; then
 
26447
 
 
26448
 
 
26449
# Check whether --with-podofo-lib was given.
 
26450
if test "${with_podofo_lib+set}" = set; then :
 
26451
  withval=$with_podofo_lib;
 
26452
fi
 
26453
 
 
26454
 
 
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
 
26457
    fi
 
26458
 
 
26459
    if test "$with_podofo" = "yes" ; then
 
26460
        TEST_PODOFO_INC="-I/usr/include -I/usr/include/podofo"
 
26461
        PODOFO_LIB="-lpodofo"
 
26462
    else
 
26463
        TEST_PODOFO_INC="-I$with_podofo/include -I$with_podofo/include/podofo"
 
26464
        PODOFO_LIB="-L$with_podofo/lib -lpodofo"
 
26465
    fi
 
26466
 
 
26467
    if test "x$with_podofo_lib" = "x" ; then
 
26468
        rm -f testpodofo.*
 
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
 
26472
            HAVE_PODOFO=yes
 
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; }
 
26478
        fi
 
26479
        rm -f testpodofo.*
 
26480
        rm -f testpodofo
 
26481
    fi
 
26482
 
 
26483
    if test "$HAVE_PODOFO" = "no"; then
 
26484
        if test "x$with_podofo_lib" != "x" ; then
 
26485
            PODOFO_LIB="$with_podofo_lib"
 
26486
        else
 
26487
            # This may be a static libpodofo.a, so add dependant libraries
 
26488
            PODOFO_LIB="$PODOFO_LIB -lfreetype -lfontconfig -lpthread"
 
26489
        fi
 
26490
 
 
26491
 
 
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;
 
26495
fi
 
26496
 
 
26497
 
 
26498
        if test "x$with_podofo_extra_lib_for_test" = "x" ; then
 
26499
            TEST_PODOFO_LIB="$PODOFO_LIB"
 
26500
        else
 
26501
            TEST_PODOFO_LIB="$PODOFO_LIB $with_podofo_extra_lib_for_test"
 
26502
        fi
 
26503
 
 
26504
        rm -f testpodofo.*
 
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
 
26508
            HAVE_PODOFO=yes
 
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; }
 
26514
        else
 
26515
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
26516
$as_echo "no" >&6; }
 
26517
        fi
 
26518
        rm -f testpodofo.*
 
26519
        rm -f testpodofo
 
26520
    fi
 
26521
else
 
26522
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
26523
$as_echo "disabled" >&6; }
 
26524
fi
 
26525
 
 
26526
HAVE_PODOFO=$HAVE_PODOFO
 
26527
 
 
26528
PODOFO_INC=$PODOFO_INC
 
26529
 
 
26530
 
 
26531
 
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; }
22617
26534
 
22641
26558
    LIBS="$PROJ_LIB $ORIG_LIBS"
22642
26559
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22643
26560
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22644
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26561
if ${ac_cv_lib_proj_pj_init+:} false; then :
22645
26562
  $as_echo_n "(cached) " >&6
22646
26563
else
22647
26564
  ac_check_lib_save_LIBS=$LIBS
22675
26592
fi
22676
26593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22677
26594
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22678
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26595
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22679
26596
  PROJ_STATIC=yes
22680
26597
else
22681
26598
  PROJ_STATIC=no
22686
26603
    LIBS="-L$with_static_proj4/lib $PROJ_LIB $ORIG_LIBS"
22687
26604
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22688
26605
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22689
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26606
if ${ac_cv_lib_proj_pj_init+:} false; then :
22690
26607
  $as_echo_n "(cached) " >&6
22691
26608
else
22692
26609
  ac_check_lib_save_LIBS=$LIBS
22720
26637
fi
22721
26638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22722
26639
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22723
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26640
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22724
26641
  PROJ_STATIC=yes
22725
26642
else
22726
26643
  PROJ_STATIC=no
22734
26651
      LIBS="-L$with_static_proj4/src $PROJ_LIB $ORIG_LIBS"
22735
26652
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22736
26653
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22737
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26654
if ${ac_cv_lib_proj_pj_init+:} false; then :
22738
26655
  $as_echo_n "(cached) " >&6
22739
26656
else
22740
26657
  ac_check_lib_save_LIBS=$LIBS
22768
26685
fi
22769
26686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22770
26687
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22771
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26688
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22772
26689
  PROJ_STATIC=yes
22773
26690
else
22774
26691
  PROJ_STATIC=no
22781
26698
      LIBS="-L$with_static_proj4/src/.libs $PROJ_LIB $ORIG_LIBS"
22782
26699
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22783
26700
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22784
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26701
if ${ac_cv_lib_proj_pj_init+:} false; then :
22785
26702
  $as_echo_n "(cached) " >&6
22786
26703
else
22787
26704
  ac_check_lib_save_LIBS=$LIBS
22815
26732
fi
22816
26733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22817
26734
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22818
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26735
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22819
26736
  PROJ_STATIC=yes
22820
26737
else
22821
26738
  PROJ_STATIC=no
22828
26745
      LIBS="-L$with_static_proj4 $PROJ_LIB $ORIG_LIBS"
22829
26746
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22830
26747
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22831
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26748
if ${ac_cv_lib_proj_pj_init+:} false; then :
22832
26749
  $as_echo_n "(cached) " >&6
22833
26750
else
22834
26751
  ac_check_lib_save_LIBS=$LIBS
22862
26779
fi
22863
26780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22864
26781
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22865
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26782
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22866
26783
  PROJ_STATIC=yes
22867
26784
else
22868
26785
  PROJ_STATIC=no
22875
26792
      LIBS="$PROJ_LIB $ORIG_LIBS"
22876
26793
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in -lproj" >&5
22877
26794
$as_echo_n "checking for pj_init in -lproj... " >&6; }
22878
 
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
 
26795
if ${ac_cv_lib_proj_pj_init+:} false; then :
22879
26796
  $as_echo_n "(cached) " >&6
22880
26797
else
22881
26798
  ac_check_lib_save_LIBS=$LIBS
22909
26826
fi
22910
26827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_init" >&5
22911
26828
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
22912
 
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
 
26829
if test "x$ac_cv_lib_proj_pj_init" = xyes; then :
22913
26830
  PROJ_STATIC=yes
22914
26831
else
22915
26832
  PROJ_STATIC=no
23145
27062
set dummy $ac_prog; ac_word=$2
23146
27063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23147
27064
$as_echo_n "checking for $ac_word... " >&6; }
23148
 
if test "${ac_cv_prog_PYTHON+set}" = set; then :
 
27065
if ${ac_cv_prog_PYTHON+:} false; then :
23149
27066
  $as_echo_n "(cached) " >&6
23150
27067
else
23151
27068
  if test -n "$PYTHON"; then
23274
27191
 
23275
27192
 
23276
27193
 
 
27194
# Check whether --with-java was given.
 
27195
if test "${with_java+set}" = set; then :
 
27196
  withval=$with_java;
 
27197
fi
 
27198
 
 
27199
 
 
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; }
 
27202
 
 
27203
JAVA_HOME=""
 
27204
JAVA_INC=""
 
27205
 
 
27206
if test "x$with_java" = "xyes"; then
 
27207
 
 
27208
    if test -d /usr/lib/jvm/java-6-openjdk; then
 
27209
        with_java="/usr/lib/jvm/java-6-openjdk"
 
27210
 
 
27211
    elif test -d /usr/lib/jvm/java-openjdk; then
 
27212
        with_java="/usr/lib/jvm/java-openjdk"
 
27213
 
 
27214
 
 
27215
    elif test -d /usr/java; then
 
27216
        with_java="/usr/java"
 
27217
    else
 
27218
        as_fn_error $? "\"cannot find JDK root directory.\"" "$LINENO" 5
 
27219
    fi
 
27220
 
 
27221
    if test \! -d "$with_java/include" ; then
 
27222
        as_fn_error $? "\"$with_java is not a valid JDK.\"" "$LINENO" 5
 
27223
    fi
 
27224
fi
 
27225
 
 
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
 
27230
 
 
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; }
 
27247
        else
 
27248
            as_fn_error $? "\"Cannot find $with_java/include/linux or solaris or freebsd directory.\"" "$LINENO" 5
 
27249
        fi
 
27250
    else
 
27251
        as_fn_error $? "\"Cannot find $with_java/include directory.\"" "$LINENO" 5
 
27252
    fi
 
27253
 
 
27254
else
 
27255
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27256
$as_echo "no" >&6; }
 
27257
fi
 
27258
 
 
27259
JAVA_HOME=$JAVA_HOME
 
27260
 
 
27261
JAVA_INC=$JAVA_INC
 
27262
 
 
27263
 
 
27264
 
 
27265
 
 
27266
# Check whether --with-mdb was given.
 
27267
if test "${with_mdb+set}" = set; then :
 
27268
  withval=$with_mdb;
 
27269
fi
 
27270
 
 
27271
 
 
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; }
 
27274
 
 
27275
MDB_ENABLED=no
 
27276
JVM_LIB=""
 
27277
 
 
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
 
27281
    fi
 
27282
 
 
27283
 
 
27284
# Check whether --with-jvm-lib was given.
 
27285
if test "${with_jvm_lib+set}" = set; then :
 
27286
  withval=$with_jvm_lib;
 
27287
fi
 
27288
 
 
27289
 
 
27290
 
 
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;
 
27294
fi
 
27295
 
 
27296
 
 
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
 
27305
else
 
27306
  ac_check_lib_save_LIBS=$LIBS
 
27307
LIBS="-ljvm  $LIBS"
 
27308
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27309
/* end confdefs.h.  */
 
27310
 
 
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.  */
 
27314
#ifdef __cplusplus
 
27315
extern "C"
 
27316
#endif
 
27317
char JNI_CreateJavaVM ();
 
27318
int
 
27319
main ()
 
27320
{
 
27321
return JNI_CreateJavaVM ();
 
27322
  ;
 
27323
  return 0;
 
27324
}
 
27325
_ACEOF
 
27326
if ac_fn_c_try_link "$LINENO"; then :
 
27327
  ac_cv_lib_jvm_JNI_CreateJavaVM=yes
 
27328
else
 
27329
  ac_cv_lib_jvm_JNI_CreateJavaVM=no
 
27330
fi
 
27331
rm -f core conftest.err conftest.$ac_objext \
 
27332
    conftest$ac_exeext conftest.$ac_ext
 
27333
LIBS=$ac_check_lib_save_LIBS
 
27334
fi
 
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 :
 
27338
  HAS_LIB_JVM=yes
 
27339
else
 
27340
  HAS_LIB_JVM=no
 
27341
fi
 
27342
 
 
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"
 
27348
                fi
 
27349
            else
 
27350
                as_fn_error $? "\"--with-jvm-lib must point to a directory with a libjvm.\"" "$LINENO" 5
 
27351
            fi
 
27352
        else
 
27353
            as_fn_error $? "\"--with-jvm-lib must point to a directory.\"" "$LINENO" 5
 
27354
        fi
 
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
 
27365
else
 
27366
  ac_check_lib_save_LIBS=$LIBS
 
27367
LIBS="-ljvm  $LIBS"
 
27368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27369
/* end confdefs.h.  */
 
27370
 
 
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.  */
 
27374
#ifdef __cplusplus
 
27375
extern "C"
 
27376
#endif
 
27377
char JNI_CreateJavaVM ();
 
27378
int
 
27379
main ()
 
27380
{
 
27381
return JNI_CreateJavaVM ();
 
27382
  ;
 
27383
  return 0;
 
27384
}
 
27385
_ACEOF
 
27386
if ac_fn_c_try_link "$LINENO"; then :
 
27387
  ac_cv_lib_jvm_JNI_CreateJavaVM=yes
 
27388
else
 
27389
  ac_cv_lib_jvm_JNI_CreateJavaVM=no
 
27390
fi
 
27391
rm -f core conftest.err conftest.$ac_objext \
 
27392
    conftest$ac_exeext conftest.$ac_ext
 
27393
LIBS=$ac_check_lib_save_LIBS
 
27394
fi
 
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 :
 
27398
  HAS_LIB_JVM=yes
 
27399
else
 
27400
  HAS_LIB_JVM=no
 
27401
fi
 
27402
 
 
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"
 
27408
                fi
 
27409
            fi
 
27410
        fi
 
27411
 
 
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
 
27421
else
 
27422
  ac_check_lib_save_LIBS=$LIBS
 
27423
LIBS="-ljvm  $LIBS"
 
27424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27425
/* end confdefs.h.  */
 
27426
 
 
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.  */
 
27430
#ifdef __cplusplus
 
27431
extern "C"
 
27432
#endif
 
27433
char JNI_CreateJavaVM ();
 
27434
int
 
27435
main ()
 
27436
{
 
27437
return JNI_CreateJavaVM ();
 
27438
  ;
 
27439
  return 0;
 
27440
}
 
27441
_ACEOF
 
27442
if ac_fn_c_try_link "$LINENO"; then :
 
27443
  ac_cv_lib_jvm_JNI_CreateJavaVM=yes
 
27444
else
 
27445
  ac_cv_lib_jvm_JNI_CreateJavaVM=no
 
27446
fi
 
27447
rm -f core conftest.err conftest.$ac_objext \
 
27448
    conftest$ac_exeext conftest.$ac_ext
 
27449
LIBS=$ac_check_lib_save_LIBS
 
27450
fi
 
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 :
 
27454
  HAS_LIB_JVM=yes
 
27455
else
 
27456
  HAS_LIB_JVM=no
 
27457
fi
 
27458
 
 
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"
 
27464
                fi
 
27465
            fi
 
27466
        fi
 
27467
 
 
27468
        if test "x$JVM_LIB" = "x"; then
 
27469
            as_fn_error $? "\"--with-jvm-lib must be specified.\"" "$LINENO" 5
 
27470
        fi
 
27471
    else
 
27472
        as_fn_error $? "\"--with-jvm-lib must be specified.\"" "$LINENO" 5
 
27473
    fi
 
27474
 
 
27475
    MDB_ENABLED=yes
 
27476
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
27477
$as_echo "yes" >&6; }
 
27478
 
 
27479
else
 
27480
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27481
$as_echo "no" >&6; }
 
27482
fi
 
27483
 
 
27484
MDB_ENABLED=$MDB_ENABLED
 
27485
 
 
27486
JVM_LIB=$JVM_LIB
 
27487
 
 
27488
 
 
27489
 
 
27490
 
 
27491
RASDAMAN_ENABLED=no
 
27492
 
 
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;}
 
27495
 
 
27496
# Check whether --with-rasdaman was given.
 
27497
if test "${with_rasdaman+set}" = set; then :
 
27498
  withval=$with_rasdaman;
 
27499
fi
 
27500
 
 
27501
 
 
27502
if test "$with_rasdaman" = "yes" ; then
 
27503
 
 
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
 
27508
else
 
27509
  ac_check_lib_save_LIBS=$LIBS
 
27510
LIBS="-lraslib  $LIBS"
 
27511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27512
/* end confdefs.h.  */
 
27513
 
 
27514
 
 
27515
int
 
27516
main ()
 
27517
{
 
27518
return main ();
 
27519
  ;
 
27520
  return 0;
 
27521
}
 
27522
_ACEOF
 
27523
if ac_fn_c_try_link "$LINENO"; then :
 
27524
  ac_cv_lib_raslib_main=yes
 
27525
else
 
27526
  ac_cv_lib_raslib_main=no
 
27527
fi
 
27528
rm -f core conftest.err conftest.$ac_objext \
 
27529
    conftest$ac_exeext conftest.$ac_ext
 
27530
LIBS=$ac_check_lib_save_LIBS
 
27531
fi
 
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
 
27536
fi
 
27537
 
 
27538
 
 
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; }
 
27544
  else
 
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;}
 
27547
  fi
 
27548
 
 
27549
elif test -n "$with_rasdaman" -a "$with_rasdaman" != "no" ; then
 
27550
 
 
27551
  RASDAMAN_DIR=$with_rasdaman
 
27552
 
 
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"
 
27556
  else
 
27557
      as_fn_error $? "\"Could not find rasdaman.hh or libraslib.a in $RASDAMAN_DIR.\"" "$LINENO" 5
 
27558
  fi
 
27559
 
 
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; }
 
27564
 
 
27565
else
 
27566
 
 
27567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result:         rasdaman support not requested." >&5
 
27568
$as_echo "        rasdaman support not requested." >&6; }
 
27569
fi
 
27570
 
 
27571
RASDAMAN_ENABLED=$RASDAMAN_ENABLED
 
27572
 
 
27573
RASDAMAN_INC=$RASDAMAN_INC
 
27574
 
 
27575
RASDAMAN_LIB=$RASDAMAN_LIB
 
27576
 
 
27577
 
 
27578
 
 
27579
 
 
27580
# Check whether --with-armadillo was given.
 
27581
if test "${with_armadillo+set}" = set; then :
 
27582
  withval=$with_armadillo;
 
27583
fi
 
27584
 
 
27585
 
 
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; }
 
27588
 
 
27589
HAVE_ARMADILLO=no
 
27590
 
 
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
 
27597
        HAVE_ARMADILLO=yes
 
27598
        LIBS="-larmadillo ${LIBS}"
 
27599
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
27600
$as_echo "yes" >&6; }
 
27601
    else
 
27602
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27603
$as_echo "no" >&6; }
 
27604
    fi
 
27605
    rm -f testarmadillo.*
 
27606
    rm -f testarmadillo
 
27607
else
 
27608
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27609
$as_echo "no" >&6; }
 
27610
fi
 
27611
 
 
27612
HAVE_ARMADILLO=$HAVE_ARMADILLO
 
27613
 
 
27614
 
23277
27615
 
23278
27616
ac_config_files="$ac_config_files GDALmake.opt"
23279
27617
 
23287
27625
 
23288
27626
ac_libobjs=
23289
27627
ac_ltlibobjs=
 
27628
U=
23290
27629
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23291
27630
  # 1. Remove the extension, and $U if already installed.
23292
27631
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23303
27642
 
23304
27643
 
23305
27644
 
23306
 
: ${CONFIG_STATUS=./config.status}
 
27645
: "${CONFIG_STATUS=./config.status}"
23307
27646
ac_write_fail=0
23308
27647
ac_clean_files_save=$ac_clean_files
23309
27648
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23404
27743
IFS=" ""        $as_nl"
23405
27744
 
23406
27745
# Find who we are.  Look in the path if we contain no directory separator.
 
27746
as_myself=
23407
27747
case $0 in #((
23408
27748
  *[\\/]* ) as_myself=$0 ;;
23409
27749
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23449
27789
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23450
27790
 
23451
27791
 
23452
 
# as_fn_error ERROR [LINENO LOG_FD]
23453
 
# ---------------------------------
 
27792
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
27793
# ----------------------------------------
23454
27794
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23455
27795
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23456
 
# script with status $?, using 1 if that was 0.
 
27796
# script with STATUS, using 1 if that was 0.
23457
27797
as_fn_error ()
23458
27798
{
23459
 
  as_status=$?; test $as_status -eq 0 && as_status=1
23460
 
  if test "$3"; then
23461
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23462
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
27799
  as_status=$1; test $as_status -eq 0 && as_status=1
 
27800
  if test "$4"; then
 
27801
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
27802
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23463
27803
  fi
23464
 
  $as_echo "$as_me: error: $1" >&2
 
27804
  $as_echo "$as_me: error: $2" >&2
23465
27805
  as_fn_exit $as_status
23466
27806
} # as_fn_error
23467
27807
 
23657
27997
      test -d "$as_dir" && break
23658
27998
    done
23659
27999
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23660
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
28000
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23661
28001
 
23662
28002
 
23663
28003
} # as_fn_mkdir_p
23711
28051
# values after options handling.
23712
28052
ac_log="
23713
28053
This file was extended by $as_me, which was
23714
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
28054
generated by GNU Autoconf 2.68.  Invocation command line was
23715
28055
 
23716
28056
  CONFIG_FILES    = $CONFIG_FILES
23717
28057
  CONFIG_HEADERS  = $CONFIG_HEADERS
23751
28091
 
23752
28092
  -h, --help       print this help, then exit
23753
28093
  -V, --version    print version number and configuration settings, then exit
 
28094
      --config     print configuration, then exit
23754
28095
  -q, --quiet, --silent
23755
28096
                   do not print progress messages
23756
28097
  -d, --debug      don't remove temporary files
23773
28114
 
23774
28115
_ACEOF
23775
28116
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28117
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23776
28118
ac_cs_version="\\
23777
28119
config.status
23778
 
configured by $0, generated by GNU Autoconf 2.64,
23779
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
28120
configured by $0, generated by GNU Autoconf 2.68,
 
28121
  with options \\"\$ac_cs_config\\"
23780
28122
 
23781
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
28123
Copyright (C) 2010 Free Software Foundation, Inc.
23782
28124
This config.status script is free software; the Free Software Foundation
23783
28125
gives unlimited permission to copy, distribute and modify it."
23784
28126
 
23785
28127
ac_pwd='$ac_pwd'
23786
28128
srcdir='$srcdir'
 
28129
AWK='$AWK'
23787
28130
test -n "\$AWK" || AWK=awk
23788
28131
_ACEOF
23789
28132
 
23793
28136
while test $# != 0
23794
28137
do
23795
28138
  case $1 in
23796
 
  --*=*)
 
28139
  --*=?*)
23797
28140
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23798
28141
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23799
28142
    ac_shift=:
23800
28143
    ;;
 
28144
  --*=)
 
28145
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
28146
    ac_optarg=
 
28147
    ac_shift=:
 
28148
    ;;
23801
28149
  *)
23802
28150
    ac_option=$1
23803
28151
    ac_optarg=$2
23811
28159
    ac_cs_recheck=: ;;
23812
28160
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23813
28161
    $as_echo "$ac_cs_version"; exit ;;
 
28162
  --config | --confi | --conf | --con | --co | --c )
 
28163
    $as_echo "$ac_cs_config"; exit ;;
23814
28164
  --debug | --debu | --deb | --de | --d | -d )
23815
28165
    debug=: ;;
23816
28166
  --file | --fil | --fi | --f )
23817
28167
    $ac_shift
23818
28168
    case $ac_optarg in
23819
28169
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
28170
    '') as_fn_error $? "missing file argument" ;;
23820
28171
    esac
23821
28172
    as_fn_append CONFIG_FILES " '$ac_optarg'"
23822
28173
    ac_need_defaults=false;;
23829
28180
    ac_need_defaults=false;;
23830
28181
  --he | --h)
23831
28182
    # Conflict between --help and --header
23832
 
    as_fn_error "ambiguous option: \`$1'
 
28183
    as_fn_error $? "ambiguous option: \`$1'
23833
28184
Try \`$0 --help' for more information.";;
23834
28185
  --help | --hel | -h )
23835
28186
    $as_echo "$ac_cs_usage"; exit ;;
23838
28189
    ac_cs_silent=: ;;
23839
28190
 
23840
28191
  # This is an error.
23841
 
  -*) as_fn_error "unrecognized option: \`$1'
 
28192
  -*) as_fn_error $? "unrecognized option: \`$1'
23842
28193
Try \`$0 --help' for more information." ;;
23843
28194
 
23844
28195
  *) as_fn_append ac_config_targets " $1"
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"`'
24067
28431
 
24068
28432
LTCC='$LTCC'
24069
28433
LTCFLAGS='$LTCFLAGS'
24070
28434
compiler='$compiler_DEFAULT'
24071
28435
 
 
28436
# A function that is used when there is no print builtin or printf.
 
28437
func_fallback_echo ()
 
28438
{
 
28439
  eval 'cat <<_LTECHO_EOF
 
28440
\$1
 
28441
_LTECHO_EOF'
 
28442
}
 
28443
 
24072
28444
# Quote evaled strings.
24073
 
for var in SED \
 
28445
for var in AS \
 
28446
DLLTOOL \
 
28447
OBJDUMP \
 
28448
SHELL \
 
28449
ECHO \
 
28450
SED \
24074
28451
GREP \
24075
28452
EGREP \
24076
28453
FGREP \
24082
28459
reload_flag \
24083
28460
deplibs_check_method \
24084
28461
file_magic_cmd \
 
28462
file_magic_glob \
 
28463
want_nocaseglob \
 
28464
sharedlib_from_linklib_cmd \
24085
28465
AR \
24086
28466
AR_FLAGS \
 
28467
archiver_list_spec \
24087
28468
STRIP \
24088
28469
RANLIB \
24089
28470
CC \
24093
28474
lt_cv_sys_global_symbol_to_cdecl \
24094
28475
lt_cv_sys_global_symbol_to_c_name_address \
24095
28476
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24096
 
SHELL \
24097
 
ECHO \
 
28477
nm_file_list_spec \
24098
28478
lt_prog_compiler_no_builtin_flag \
 
28479
lt_prog_compiler_pic \
24099
28480
lt_prog_compiler_wl \
24100
 
lt_prog_compiler_pic \
24101
28481
lt_prog_compiler_static \
24102
28482
lt_cv_prog_compiler_c_o \
24103
28483
need_locks \
 
28484
MANIFEST_TOOL \
24104
28485
DSYMUTIL \
24105
28486
NMEDIT \
24106
28487
LIPO \
24116
28497
hardcode_libdir_flag_spec \
24117
28498
hardcode_libdir_flag_spec_ld \
24118
28499
hardcode_libdir_separator \
24119
 
fix_srcfile_path \
24120
28500
exclude_expsyms \
24121
28501
include_expsyms \
24122
28502
file_list_spec \
24124
28504
libname_spec \
24125
28505
library_names_spec \
24126
28506
soname_spec \
 
28507
install_override_mode \
24127
28508
finish_eval \
24128
28509
old_striplib \
24129
28510
striplib \
24134
28515
postdeps \
24135
28516
compiler_lib_search_path \
24136
28517
LD_CXX \
 
28518
reload_flag_CXX \
24137
28519
compiler_CXX \
24138
28520
lt_prog_compiler_no_builtin_flag_CXX \
 
28521
lt_prog_compiler_pic_CXX \
24139
28522
lt_prog_compiler_wl_CXX \
24140
 
lt_prog_compiler_pic_CXX \
24141
28523
lt_prog_compiler_static_CXX \
24142
28524
lt_cv_prog_compiler_c_o_CXX \
24143
28525
export_dynamic_flag_spec_CXX \
24149
28531
hardcode_libdir_flag_spec_CXX \
24150
28532
hardcode_libdir_flag_spec_ld_CXX \
24151
28533
hardcode_libdir_separator_CXX \
24152
 
fix_srcfile_path_CXX \
24153
28534
exclude_expsyms_CXX \
24154
28535
include_expsyms_CXX \
24155
28536
file_list_spec_CXX \
24159
28540
predeps_CXX \
24160
28541
postdeps_CXX \
24161
28542
compiler_lib_search_path_CXX; do
24162
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
28543
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24163
28544
    *[\\\\\\\`\\"\\\$]*)
24164
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
28545
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24165
28546
      ;;
24166
28547
    *)
24167
28548
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24183
28564
module_expsym_cmds \
24184
28565
export_symbols_cmds \
24185
28566
prelink_cmds \
 
28567
postlink_cmds \
24186
28568
postinstall_cmds \
24187
28569
postuninstall_cmds \
24188
28570
finish_cmds \
24189
28571
sys_lib_search_path_spec \
24190
28572
sys_lib_dlsearch_path_spec \
 
28573
reload_cmds_CXX \
24191
28574
old_archive_cmds_CXX \
24192
28575
old_archive_from_new_cmds_CXX \
24193
28576
old_archive_from_expsyms_cmds_CXX \
24196
28579
module_cmds_CXX \
24197
28580
module_expsym_cmds_CXX \
24198
28581
export_symbols_cmds_CXX \
24199
 
prelink_cmds_CXX; do
24200
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
28582
prelink_cmds_CXX \
 
28583
postlink_cmds_CXX; do
 
28584
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24201
28585
    *[\\\\\\\`\\"\\\$]*)
24202
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
28586
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24203
28587
      ;;
24204
28588
    *)
24205
28589
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24207
28591
    esac
24208
28592
done
24209
28593
 
24210
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
24211
 
case \$lt_ECHO in
24212
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24213
 
  ;;
24214
 
esac
24215
 
 
24216
28594
ac_aux_dir='$ac_aux_dir'
24217
28595
xsi_shell='$xsi_shell'
24218
28596
lt_shell_append='$lt_shell_append'
24243
28621
for ac_config_target in $ac_config_targets
24244
28622
do
24245
28623
  case $ac_config_target in
24246
 
    "port/cpl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS port/cpl_config.h:port/cpl_config.h.in:port/cpl_config_extras.h" ;;
 
28624
    "port/cpl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS port/cpl_config.h:port/cpl_config.h.in" ;;
24247
28625
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24248
28626
    "GDALmake.opt") CONFIG_FILES="$CONFIG_FILES GDALmake.opt" ;;
24249
28627
 
24250
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
28628
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24251
28629
  esac
24252
28630
done
24253
28631
 
24270
28648
# after its creation but before its name has been assigned to `$tmp'.
24271
28649
$debug ||
24272
28650
{
24273
 
  tmp=
 
28651
  tmp= ac_tmp=
24274
28652
  trap 'exit_status=$?
24275
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
28653
  : "${ac_tmp:=$tmp}"
 
28654
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24276
28655
' 0
24277
28656
  trap 'as_fn_exit 1' 1 2 13 15
24278
28657
}
24280
28659
 
24281
28660
{
24282
28661
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24283
 
  test -n "$tmp" && test -d "$tmp"
 
28662
  test -d "$tmp"
24284
28663
}  ||
24285
28664
{
24286
28665
  tmp=./conf$$-$RANDOM
24287
28666
  (umask 077 && mkdir "$tmp")
24288
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
28667
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
28668
ac_tmp=$tmp
24289
28669
 
24290
28670
# Set up the scripts for CONFIG_FILES section.
24291
28671
# No need to generate them if there are no CONFIG_FILES.
24302
28682
fi
24303
28683
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24304
28684
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24305
 
  ac_cs_awk_cr='\r'
 
28685
  ac_cs_awk_cr='\\r'
24306
28686
else
24307
28687
  ac_cs_awk_cr=$ac_cr
24308
28688
fi
24309
28689
 
24310
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
28690
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24311
28691
_ACEOF
24312
28692
 
24313
28693
 
24316
28696
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24317
28697
  echo "_ACEOF"
24318
28698
} >conf$$subs.sh ||
24319
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24320
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
28699
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
28700
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24321
28701
ac_delim='%!_!# '
24322
28702
for ac_last_try in false false false false false :; do
24323
28703
  . ./conf$$subs.sh ||
24324
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
28704
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24325
28705
 
24326
28706
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24327
28707
  if test $ac_delim_n = $ac_delim_num; then
24328
28708
    break
24329
28709
  elif $ac_last_try; then
24330
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
28710
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24331
28711
  else
24332
28712
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24333
28713
  fi
24335
28715
rm -f conf$$subs.sh
24336
28716
 
24337
28717
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24338
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
28718
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24339
28719
_ACEOF
24340
28720
sed -n '
24341
28721
h
24349
28729
t delim
24350
28730
:nl
24351
28731
h
24352
 
s/\(.\{148\}\).*/\1/
 
28732
s/\(.\{148\}\)..*/\1/
24353
28733
t more1
24354
28734
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24355
28735
p
24363
28743
t nl
24364
28744
:delim
24365
28745
h
24366
 
s/\(.\{148\}\).*/\1/
 
28746
s/\(.\{148\}\)..*/\1/
24367
28747
t more2
24368
28748
s/["\\]/\\&/g; s/^/"/; s/$/"/
24369
28749
p
24383
28763
rm -f conf$$subs.awk
24384
28764
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24385
28765
_ACAWK
24386
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
28766
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24387
28767
  for (key in S) S_is_set[key] = 1
24388
28768
  FS = ""
24389
28769
 
24415
28795
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24416
28796
else
24417
28797
  cat
24418
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24419
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
28798
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
28799
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24420
28800
_ACEOF
24421
28801
 
24422
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24423
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
28802
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
28803
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24424
28804
# trailing colons and then remove the whole line if VPATH becomes empty
24425
28805
# (actually we leave an empty line to preserve line numbers).
24426
28806
if test "x$srcdir" = x.; then
24427
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
24428
 
s/:*\$(srcdir):*/:/
24429
 
s/:*\${srcdir}:*/:/
24430
 
s/:*@srcdir@:*/:/
24431
 
s/^\([^=]*=[     ]*\):*/\1/
 
28807
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
28808
h
 
28809
s///
 
28810
s/^/:/
 
28811
s/[      ]*$/:/
 
28812
s/:\$(srcdir):/:/g
 
28813
s/:\${srcdir}:/:/g
 
28814
s/:@srcdir@:/:/g
 
28815
s/^:*//
24432
28816
s/:*$//
 
28817
x
 
28818
s/\(=[   ]*\).*/\1/
 
28819
G
 
28820
s/\n//
24433
28821
s/^[^=]*=[       ]*$//
24434
28822
}'
24435
28823
fi
24441
28829
# No need to generate them if there are no CONFIG_HEADERS.
24442
28830
# This happens for instance with `./config.status Makefile'.
24443
28831
if test -n "$CONFIG_HEADERS"; then
24444
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
28832
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24445
28833
BEGIN {
24446
28834
_ACEOF
24447
28835
 
24453
28841
# handling of long lines.
24454
28842
ac_delim='%!_!# '
24455
28843
for ac_last_try in false false :; do
24456
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24457
 
  if test -z "$ac_t"; then
 
28844
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
28845
  if test -z "$ac_tt"; then
24458
28846
    break
24459
28847
  elif $ac_last_try; then
24460
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
28848
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24461
28849
  else
24462
28850
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24463
28851
  fi
24542
28930
_ACAWK
24543
28931
_ACEOF
24544
28932
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24545
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
28933
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24546
28934
fi # test -n "$CONFIG_HEADERS"
24547
28935
 
24548
28936
 
24555
28943
  esac
24556
28944
  case $ac_mode$ac_tag in
24557
28945
  :[FHL]*:*);;
24558
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
28946
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24559
28947
  :[FH]-) ac_tag=-:-;;
24560
28948
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24561
28949
  esac
24574
28962
    for ac_f
24575
28963
    do
24576
28964
      case $ac_f in
24577
 
      -) ac_f="$tmp/stdin";;
 
28965
      -) ac_f="$ac_tmp/stdin";;
24578
28966
      *) # Look for the file first in the build tree, then in the source tree
24579
28967
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
24580
28968
         # because $ac_f cannot contain `:'.
24583
28971
           [\\/$]*) false;;
24584
28972
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24585
28973
           esac ||
24586
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
28974
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24587
28975
      esac
24588
28976
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24589
28977
      as_fn_append ac_file_inputs " '$ac_f'"
24609
28997
    esac
24610
28998
 
24611
28999
    case $ac_tag in
24612
 
    *:-:* | *:-) cat >"$tmp/stdin" \
24613
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
29000
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
29001
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24614
29002
    esac
24615
29003
    ;;
24616
29004
  esac
24735
29123
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24736
29124
$ac_datarootdir_hack
24737
29125
"
24738
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24739
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
29126
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
29127
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24740
29128
 
24741
29129
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24742
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24743
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
29130
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
29131
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
29132
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24744
29133
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24745
 
which seems to be undefined.  Please make sure it is defined." >&5
 
29134
which seems to be undefined.  Please make sure it is defined" >&5
24746
29135
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24747
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
29136
which seems to be undefined.  Please make sure it is defined" >&2;}
24748
29137
 
24749
 
  rm -f "$tmp/stdin"
 
29138
  rm -f "$ac_tmp/stdin"
24750
29139
  case $ac_file in
24751
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
24752
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
29140
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
29141
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24753
29142
  esac \
24754
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
29143
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24755
29144
 ;;
24756
29145
  :H)
24757
29146
  #
24760
29149
  if test x"$ac_file" != x-; then
24761
29150
    {
24762
29151
      $as_echo "/* $configure_input  */" \
24763
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24764
 
    } >"$tmp/config.h" \
24765
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
24766
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
29152
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
29153
    } >"$ac_tmp/config.h" \
 
29154
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
29155
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24767
29156
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24768
29157
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24769
29158
    else
24770
29159
      rm -f "$ac_file"
24771
 
      mv "$tmp/config.h" "$ac_file" \
24772
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
29160
      mv "$ac_tmp/config.h" "$ac_file" \
 
29161
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24773
29162
    fi
24774
29163
  else
24775
29164
    $as_echo "/* $configure_input  */" \
24776
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24777
 
      || as_fn_error "could not create -" "$LINENO" 5
 
29165
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
29166
      || as_fn_error $? "could not create -" "$LINENO" 5
24778
29167
  fi
24779
29168
 ;;
24780
29169
 
24806
29195
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24807
29196
#
24808
29197
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24809
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
29198
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
29199
#                 Inc.
24810
29200
#   Written by Gordon Matzigkeit, 1996
24811
29201
#
24812
29202
#   This file is part of GNU Libtool.
24839
29229
# ### BEGIN LIBTOOL CONFIG
24840
29230
 
24841
29231
# Assembler program.
24842
 
AS=$AS
 
29232
AS=$lt_AS
24843
29233
 
24844
29234
# DLL creation program.
24845
 
DLLTOOL=$DLLTOOL
 
29235
DLLTOOL=$lt_DLLTOOL
24846
29236
 
24847
29237
# Object dumper program.
24848
 
OBJDUMP=$OBJDUMP
 
29238
OBJDUMP=$lt_OBJDUMP
24849
29239
 
24850
29240
# Which release of libtool.m4 was used?
24851
29241
macro_version=$macro_version
24863
29253
# Whether or not to optimize for fast installation.
24864
29254
fast_install=$enable_fast_install
24865
29255
 
 
29256
# Shell to use when invoking shell scripts.
 
29257
SHELL=$lt_SHELL
 
29258
 
 
29259
# An echo program that protects backslashes.
 
29260
ECHO=$lt_ECHO
 
29261
 
24866
29262
# The host system.
24867
29263
host_alias=$host_alias
24868
29264
host=$host
24912
29308
# turn newlines into spaces.
24913
29309
NL2SP=$lt_lt_NL2SP
24914
29310
 
24915
 
# How to create reloadable object files.
24916
 
reload_flag=$lt_reload_flag
24917
 
reload_cmds=$lt_reload_cmds
 
29311
# convert \$build file names to \$host format.
 
29312
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
29313
 
 
29314
# convert \$build files to toolchain format.
 
29315
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24918
29316
 
24919
29317
# Method to check whether dependent libraries are shared objects.
24920
29318
deplibs_check_method=$lt_deplibs_check_method
24921
29319
 
24922
 
# Command to use when deplibs_check_method == "file_magic".
 
29320
# Command to use when deplibs_check_method = "file_magic".
24923
29321
file_magic_cmd=$lt_file_magic_cmd
24924
29322
 
 
29323
# How to find potential files when deplibs_check_method = "file_magic".
 
29324
file_magic_glob=$lt_file_magic_glob
 
29325
 
 
29326
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
29327
want_nocaseglob=$lt_want_nocaseglob
 
29328
 
 
29329
# Command to associate shared and link libraries.
 
29330
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
29331
 
24925
29332
# The archiver.
24926
29333
AR=$lt_AR
 
29334
 
 
29335
# Flags to create an archive.
24927
29336
AR_FLAGS=$lt_AR_FLAGS
24928
29337
 
 
29338
# How to feed a file listing to the archiver.
 
29339
archiver_list_spec=$lt_archiver_list_spec
 
29340
 
24929
29341
# A symbol stripping program.
24930
29342
STRIP=$lt_STRIP
24931
29343
 
24934
29346
old_postinstall_cmds=$lt_old_postinstall_cmds
24935
29347
old_postuninstall_cmds=$lt_old_postuninstall_cmds
24936
29348
 
 
29349
# Whether to use a lock for old archive extraction.
 
29350
lock_old_archive_extraction=$lock_old_archive_extraction
 
29351
 
24937
29352
# A C compiler.
24938
29353
LTCC=$lt_CC
24939
29354
 
24952
29367
# Transform the output of nm in a C name address pair when lib prefix is needed.
24953
29368
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24954
29369
 
 
29370
# Specify filename containing input files for \$NM.
 
29371
nm_file_list_spec=$lt_nm_file_list_spec
 
29372
 
 
29373
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
29374
lt_sysroot=$lt_sysroot
 
29375
 
24955
29376
# The name of the directory that contains temporary libtool files.
24956
29377
objdir=$objdir
24957
29378
 
24958
 
# Shell to use when invoking shell scripts.
24959
 
SHELL=$lt_SHELL
24960
 
 
24961
 
# An echo program that does not interpret backslashes.
24962
 
ECHO=$lt_ECHO
24963
 
 
24964
29379
# Used to examine libraries when file_magic_cmd begins with "file".
24965
29380
MAGIC_CMD=$MAGIC_CMD
24966
29381
 
24967
29382
# Must we lock files when doing compilation?
24968
29383
need_locks=$lt_need_locks
24969
29384
 
 
29385
# Manifest tool.
 
29386
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
29387
 
24970
29388
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24971
29389
DSYMUTIL=$lt_DSYMUTIL
24972
29390
 
25023
29441
# The coded name of the library, if different from the real name.
25024
29442
soname_spec=$lt_soname_spec
25025
29443
 
 
29444
# Permission mode override for installation of shared libraries.
 
29445
install_override_mode=$lt_install_override_mode
 
29446
 
25026
29447
# Command to use after installation of a shared archive.
25027
29448
postinstall_cmds=$lt_postinstall_cmds
25028
29449
 
25062
29483
# The linker used to build libraries.
25063
29484
LD=$lt_LD
25064
29485
 
 
29486
# How to create reloadable object files.
 
29487
reload_flag=$lt_reload_flag
 
29488
reload_cmds=$lt_reload_cmds
 
29489
 
25065
29490
# Commands used to build an old-style archive.
25066
29491
old_archive_cmds=$lt_old_archive_cmds
25067
29492
 
25074
29499
# Compiler flag to turn off builtin functions.
25075
29500
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25076
29501
 
 
29502
# Additional compiler flags for building library objects.
 
29503
pic_flag=$lt_lt_prog_compiler_pic
 
29504
 
25077
29505
# How to pass a linker flag through the compiler.
25078
29506
wl=$lt_lt_prog_compiler_wl
25079
29507
 
25080
 
# Additional compiler flags for building library objects.
25081
 
pic_flag=$lt_lt_prog_compiler_pic
25082
 
 
25083
29508
# Compiler flag to prevent dynamic linking.
25084
29509
link_static_flag=$lt_lt_prog_compiler_static
25085
29510
 
25166
29591
# Whether libtool must link a program against all its dependency libraries.
25167
29592
link_all_deplibs=$link_all_deplibs
25168
29593
 
25169
 
# Fix the shell variable \$srcfile for the compiler.
25170
 
fix_srcfile_path=$lt_fix_srcfile_path
25171
 
 
25172
29594
# Set to "yes" if exported symbols are required.
25173
29595
always_export_symbols=$always_export_symbols
25174
29596
 
25184
29606
# Commands necessary for linking programs (against libraries) with templates.
25185
29607
prelink_cmds=$lt_prelink_cmds
25186
29608
 
 
29609
# Commands necessary for finishing linking programs.
 
29610
postlink_cmds=$lt_postlink_cmds
 
29611
 
25187
29612
# Specify filename containing input files.
25188
29613
file_list_spec=$lt_file_list_spec
25189
29614
 
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)
25235
 
 
25236
 
  case $xsi_shell in
25237
 
  yes)
25238
 
    cat << \_LT_EOF >> "$cfgfile"
25239
 
 
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.
25243
 
func_dirname ()
25244
 
{
25245
 
  case ${1} in
25246
 
    */*) func_dirname_result="${1%/*}${2}" ;;
25247
 
    *  ) func_dirname_result="${3}" ;;
25248
 
  esac
25249
 
}
25250
 
 
25251
 
# func_basename file
25252
 
func_basename ()
25253
 
{
25254
 
  func_basename_result="${1##*/}"
25255
 
}
25256
 
 
25257
 
# func_dirname_and_basename file append nondir_replacement
25258
 
# perform func_basename and func_dirname in a single function
25259
 
# call:
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 ()
25270
 
{
25271
 
  case ${1} in
25272
 
    */*) func_dirname_result="${1%/*}${2}" ;;
25273
 
    *  ) func_dirname_result="${3}" ;;
25274
 
  esac
25275
 
  func_basename_result="${1##*/}"
25276
 
}
25277
 
 
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).
25283
 
func_stripname ()
25284
 
{
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}"}
25290
 
}
25291
 
 
25292
 
# func_opt_split
25293
 
func_opt_split ()
25294
 
{
25295
 
  func_opt_split_opt=${1%%=*}
25296
 
  func_opt_split_arg=${1#*=}
25297
 
}
25298
 
 
25299
 
# func_lo2o object
25300
 
func_lo2o ()
25301
 
{
25302
 
  case ${1} in
25303
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25304
 
    *)    func_lo2o_result=${1} ;;
25305
 
  esac
25306
 
}
25307
 
 
25308
 
# func_xform libobj-or-source
25309
 
func_xform ()
25310
 
{
25311
 
  func_xform_result=${1%.*}.lo
25312
 
}
25313
 
 
25314
 
# func_arith arithmetic-term...
25315
 
func_arith ()
25316
 
{
25317
 
  func_arith_result=$(( $* ))
25318
 
}
25319
 
 
25320
 
# func_len string
25321
 
# STRING may not start with a hyphen.
25322
 
func_len ()
25323
 
{
25324
 
  func_len_result=${#1}
25325
 
}
25326
 
 
25327
 
_LT_EOF
25328
 
    ;;
25329
 
  *) # Bourne compatible functions.
25330
 
    cat << \_LT_EOF >> "$cfgfile"
25331
 
 
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.
25335
 
func_dirname ()
25336
 
{
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}"
25341
 
  else
25342
 
    func_dirname_result="$func_dirname_result${2}"
25343
 
  fi
25344
 
}
25345
 
 
25346
 
# func_basename file
25347
 
func_basename ()
25348
 
{
25349
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25350
 
}
25351
 
 
25352
 
 
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
25359
 
func_stripname ()
25360
 
{
25361
 
  case ${2} in
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}\$%%"`;;
25366
 
  esac
25367
 
}
25368
 
 
25369
 
# sed scripts:
25370
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25371
 
my_sed_long_arg='1s/^-[^=]*=//'
25372
 
 
25373
 
# func_opt_split
25374
 
func_opt_split ()
25375
 
{
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"`
25378
 
}
25379
 
 
25380
 
# func_lo2o object
25381
 
func_lo2o ()
25382
 
{
25383
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25384
 
}
25385
 
 
25386
 
# func_xform libobj-or-source
25387
 
func_xform ()
25388
 
{
25389
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25390
 
}
25391
 
 
25392
 
# func_arith arithmetic-term...
25393
 
func_arith ()
25394
 
{
25395
 
  func_arith_result=`expr "$@"`
25396
 
}
25397
 
 
25398
 
# func_len string
25399
 
# STRING may not start with a hyphen.
25400
 
func_len ()
25401
 
{
25402
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25403
 
}
25404
 
 
25405
 
_LT_EOF
25406
 
esac
25407
 
 
25408
 
case $lt_shell_append in
25409
 
  yes)
25410
 
    cat << \_LT_EOF >> "$cfgfile"
25411
 
 
25412
 
# func_append var value
25413
 
# Append VALUE to the end of shell variable VAR.
25414
 
func_append ()
25415
 
{
25416
 
  eval "$1+=\$2"
25417
 
}
25418
 
_LT_EOF
25419
 
    ;;
25420
 
  *)
25421
 
    cat << \_LT_EOF >> "$cfgfile"
25422
 
 
25423
 
# func_append var value
25424
 
# Append VALUE to the end of shell variable VAR.
25425
 
func_append ()
25426
 
{
25427
 
  eval "$1=\$$1\$2"
25428
 
}
25429
 
 
25430
 
_LT_EOF
25431
 
    ;;
25432
 
  esac
25433
 
 
25434
 
 
25435
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25436
 
    || (rm -f "$cfgfile"; exit 1)
25437
 
 
25438
 
  mv -f "$cfgfile" "$ofile" ||
 
29658
  sed '$q' "$ltmain" >> "$cfgfile" \
 
29659
     || (rm -f "$cfgfile"; exit 1)
 
29660
 
 
29661
  if test x"$xsi_shell" = xyes; then
 
29662
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
29663
func_dirname ()\
 
29664
{\
 
29665
\    case ${1} in\
 
29666
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
29667
\      *  ) func_dirname_result="${3}" ;;\
 
29668
\    esac\
 
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=:
 
29673
 
 
29674
 
 
29675
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
29676
func_basename ()\
 
29677
{\
 
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=:
 
29683
 
 
29684
 
 
29685
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
29686
func_dirname_and_basename ()\
 
29687
{\
 
29688
\    case ${1} in\
 
29689
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
29690
\      *  ) func_dirname_result="${3}" ;;\
 
29691
\    esac\
 
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=:
 
29697
 
 
29698
 
 
29699
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
29700
func_stripname ()\
 
29701
{\
 
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=:
 
29711
 
 
29712
 
 
29713
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
29714
func_split_long_opt ()\
 
29715
{\
 
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=:
 
29722
 
 
29723
 
 
29724
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
29725
func_split_short_opt ()\
 
29726
{\
 
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=:
 
29733
 
 
29734
 
 
29735
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
29736
func_lo2o ()\
 
29737
{\
 
29738
\    case ${1} in\
 
29739
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
29740
\      *)    func_lo2o_result=${1} ;;\
 
29741
\    esac\
 
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=:
 
29746
 
 
29747
 
 
29748
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
29749
func_xform ()\
 
29750
{\
 
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=:
 
29756
 
 
29757
 
 
29758
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
29759
func_arith ()\
 
29760
{\
 
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=:
 
29766
 
 
29767
 
 
29768
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
29769
func_len ()\
 
29770
{\
 
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=:
 
29776
 
 
29777
fi
 
29778
 
 
29779
if test x"$lt_shell_append" = xyes; then
 
29780
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
29781
func_append ()\
 
29782
{\
 
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=:
 
29788
 
 
29789
 
 
29790
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
29791
func_append_quoted ()\
 
29792
{\
 
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=:
 
29799
 
 
29800
 
 
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=:
 
29806
else
 
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=:
 
29812
fi
 
29813
 
 
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;}
 
29817
fi
 
29818
 
 
29819
 
 
29820
   mv -f "$cfgfile" "$ofile" ||
25439
29821
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25440
29822
  chmod +x "$ofile"
25441
29823
 
25447
29829
# The linker used to build libraries.
25448
29830
LD=$lt_LD_CXX
25449
29831
 
 
29832
# How to create reloadable object files.
 
29833
reload_flag=$lt_reload_flag_CXX
 
29834
reload_cmds=$lt_reload_cmds_CXX
 
29835
 
25450
29836
# Commands used to build an old-style archive.
25451
29837
old_archive_cmds=$lt_old_archive_cmds_CXX
25452
29838
 
25459
29845
# Compiler flag to turn off builtin functions.
25460
29846
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25461
29847
 
 
29848
# Additional compiler flags for building library objects.
 
29849
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
29850
 
25462
29851
# How to pass a linker flag through the compiler.
25463
29852
wl=$lt_lt_prog_compiler_wl_CXX
25464
29853
 
25465
 
# Additional compiler flags for building library objects.
25466
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
25467
 
 
25468
29854
# Compiler flag to prevent dynamic linking.
25469
29855
link_static_flag=$lt_lt_prog_compiler_static_CXX
25470
29856
 
25551
29937
# Whether libtool must link a program against all its dependency libraries.
25552
29938
link_all_deplibs=$link_all_deplibs_CXX
25553
29939
 
25554
 
# Fix the shell variable \$srcfile for the compiler.
25555
 
fix_srcfile_path=$lt_fix_srcfile_path_CXX
25556
 
 
25557
29940
# Set to "yes" if exported symbols are required.
25558
29941
always_export_symbols=$always_export_symbols_CXX
25559
29942
 
25569
29952
# Commands necessary for linking programs (against libraries) with templates.
25570
29953
prelink_cmds=$lt_prelink_cmds_CXX
25571
29954
 
 
29955
# Commands necessary for finishing linking programs.
 
29956
postlink_cmds=$lt_postlink_cmds_CXX
 
29957
 
25572
29958
# Specify filename containing input files.
25573
29959
file_list_spec=$lt_file_list_spec_CXX
25574
29960
 
25603
29989
ac_clean_files=$ac_clean_files_save
25604
29990
 
25605
29991
test $ac_write_fail = 0 ||
25606
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
29992
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25607
29993
 
25608
29994
 
25609
29995
# configure is writing to config.log, and then calls config.status.
25624
30010
  exec 5>>config.log
25625
30011
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25626
30012
  # would make configure fail if this is the last instruction.
25627
 
  $ac_cs_success || as_fn_exit $?
 
30013
  $ac_cs_success || as_fn_exit 1
25628
30014
fi
25629
30015
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25630
30016
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25664
30050
echo "  LIBZ support:              ${LIBZ_SETTING}"
25665
30051
 
25666
30052
 
 
30053
echo "  LIBLZMA support:           ${LIBLZMA_SETTING}"
 
30054
 
 
30055
 
25667
30056
echo "  GRASS support:             ${GRASS_SETTING}"
25668
30057
 
25669
30058
 
25673
30062
echo "  PCRaster support:          ${PCRASTER_SETTING}"
25674
30063
 
25675
30064
 
25676
 
echo "  NetCDF support:            ${NETCDF_SETTING}"
25677
 
 
25678
 
 
25679
30065
echo "  LIBPNG support:            ${PNG_SETTING}"
25680
30066
 
25681
30067
 
 
30068
echo "  GTA support:               ${GTA_SETTING}"
 
30069
 
 
30070
 
25682
30071
echo "  LIBTIFF support:           ${TIFF_SETTING} (BigTIFF=${HAVE_BIGTIFF})"
25683
30072
 
25684
30073
 
25703
30092
echo "  HDF5 support:              ${HAVE_HDF5}"
25704
30093
 
25705
30094
 
 
30095
echo "  NetCDF support:            ${NETCDF_SETTING}"
 
30096
 
 
30097
 
25706
30098
echo "  Kakadu support:            ${HAVE_KAKADU}"
25707
30099
 
25708
30100
if test "x$HAVE_JASPER_UUID" != "x" ; then
25715
30107
 
25716
30108
fi
25717
30109
 
 
30110
echo "  OpenJPEG support:          ${HAVE_OPENJPEG}"
 
30111
 
 
30112
 
25718
30113
echo "  ECW support:               ${ECW_SETTING}"
25719
30114
 
25720
30115
 
25721
30116
echo "  MrSID support:             ${HAVE_MRSID}"
25722
30117
 
25723
30118
 
 
30119
echo "  MrSID/MG4 Lidar support:   ${HAVE_MRSID_LIDAR}"
 
30120
 
 
30121
 
25724
30122
echo "  MSG support:               ${HAVE_MSG}"
25725
30123
 
25726
30124
 
25730
30128
echo "  EPSILON support:           ${EPSILON_SETTING}"
25731
30129
 
25732
30130
 
 
30131
echo "  WebP support:              ${WEBP_SETTING}"
 
30132
 
 
30133
 
25733
30134
echo "  cURL support (wms/wcs/...):${CURL_SETTING}"
25734
30135
 
25735
30136
 
25751
30152
echo "  Expat support:             ${HAVE_EXPAT}"
25752
30153
 
25753
30154
 
 
30155
echo "  Google libkml support:     ${HAVE_LIBKML}"
 
30156
 
 
30157
 
25754
30158
echo "  ODBC support:              ${ODBC_SETTING}"
25755
30159
 
25756
30160
 
25757
30161
echo "  PGeo support:              ${ODBC_SETTING}"
25758
30162
 
25759
30163
 
 
30164
echo "  FGDB support:              ${FGDB_ENABLED}"
 
30165
 
 
30166
 
 
30167
echo "  MDB support:               ${MDB_ENABLED}"
 
30168
 
 
30169
 
25760
30170
echo "  PCIDSK support:            ${PCIDSK_SETTING}"
25761
30171
 
25762
30172
 
25769
30179
echo "  SDE support:               ${SDE_ENABLED}"
25770
30180
 
25771
30181
 
 
30182
echo "  Rasdaman support:          ${RASDAMAN_ENABLED}"
 
30183
 
 
30184
 
25772
30185
echo "  DODS support:              ${HAVE_DODS}"
25773
30186
 
25774
30187
 
25790
30203
echo "  VFK support:               ${HAVE_VFK}"
25791
30204
 
25792
30205
 
 
30206
echo "  Poppler support:           ${HAVE_POPPLER}"
 
30207
 
 
30208
 
 
30209
echo "  Podofo support:            ${HAVE_PODOFO}"
 
30210
 
 
30211
 
 
30212
echo "  OpenCL support:            ${OPENCL_SETTING}"
 
30213
 
 
30214
 
 
30215
echo "  Armadillo support:         ${HAVE_ARMADILLO}"
 
30216
 
 
30217
 
 
30218
echo "  FreeXL support:            ${HAVE_FREEXL}"
 
30219
 
 
30220
 
25793
30221
echo ""
25794
30222
 
25795
30223
if test ! -z "`uname | grep Darwin`" ; then
25821
30249
echo "  enable pthread support:    ${PTHREAD_ENABLED}"
25822
30250
 
25823
30251
 
 
30252
echo "  enable POSIX iconv support:${am_cv_func_iconv}"
 
30253
 
 
30254
 
25824
30255
echo "  hide internal symbols:     ${HAVE_HIDE_INTERNAL_SYMBOLS}"
25825
30256
 
25826
30257