~ubuntu-branches/ubuntu/breezy/evolution-data-server/breezy

« back to all changes in this revision

Viewing changes to calendar/libical/configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-10 11:30:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051010113056-rb4vj4kbs8yxft85
Tags: 1.4.1-0ubuntu3
* debian/patches/camel-imap-store.c.patch:
  - Ubuntu 17465: apply patch from
  http://bugzilla.gnome.org/attachment.cgi?id=53234&action=view
  (additional NULL pointer check)

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
# include <unistd.h>
464
464
#endif"
465
465
 
466
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot privlibdir privincludedir privdatadir MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT YACC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BDB_DIR BDB_DIR_INCLUDE BDB_DIR_LIB BDB_LIB BDB_VERSION WITH_BDB4_TRUE WITH_BDB4_FALSE DEV_TRUE DEV_FALSE PERL PKG_CONFIG RRCAP_CFLAGS RRCAP_LIBS WITH_CAP_TRUE WITH_CAP_FALSE HAVE_PTHREAD_TRUE HAVE_PTHREAD_FALSE PTHREAD_LIBS WITH_CXX_BINDINGS_TRUE WITH_CXX_BINDINGS_FALSE JAR JAVA JAVAC JAVAH JAVA_PLATFORM WITH_JAVA_TRUE WITH_JAVA_FALSE python_val PY_LIBS PY_LIB_LOC PY_CFLAGS PY_EXTRA_LIBS WITH_PYTHON_TRUE WITH_PYTHON_FALSE LIBOBJS LTLIBOBJS'
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot privlibdir privincludedir privdatadir MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT YACC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL OS_WIN32_TRUE OS_WIN32_FALSE BDB_DIR BDB_DIR_INCLUDE BDB_DIR_LIB BDB_LIB BDB_VERSION WITH_BDB4_TRUE WITH_BDB4_FALSE DEV_TRUE DEV_FALSE PERL PKG_CONFIG ac_pt_PKG_CONFIG RRCAP_CFLAGS RRCAP_LIBS WITH_CAP_TRUE WITH_CAP_FALSE HAVE_PTHREAD_TRUE HAVE_PTHREAD_FALSE PTHREAD_LIBS WITH_CXX_BINDINGS_TRUE WITH_CXX_BINDINGS_FALSE JAR JAVA JAVAC JAVAH JAVA_PLATFORM WITH_JAVA_TRUE WITH_JAVA_FALSE python_val PY_LIBS PY_LIB_LOC PY_CFLAGS PY_EXTRA_LIBS WITH_PYTHON_TRUE WITH_PYTHON_FALSE LIBOBJS LTLIBOBJS'
467
467
ac_subst_files=''
468
468
 
469
469
# Initialize some variables set by options.
944
944
ac_env_FFLAGS_value=$FFLAGS
945
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
948
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
949
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
950
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
951
ac_env_RRCAP_CFLAGS_set=${RRCAP_CFLAGS+set}
 
952
ac_env_RRCAP_CFLAGS_value=$RRCAP_CFLAGS
 
953
ac_cv_env_RRCAP_CFLAGS_set=${RRCAP_CFLAGS+set}
 
954
ac_cv_env_RRCAP_CFLAGS_value=$RRCAP_CFLAGS
 
955
ac_env_RRCAP_LIBS_set=${RRCAP_LIBS+set}
 
956
ac_env_RRCAP_LIBS_value=$RRCAP_LIBS
 
957
ac_cv_env_RRCAP_LIBS_set=${RRCAP_LIBS+set}
 
958
ac_cv_env_RRCAP_LIBS_value=$RRCAP_LIBS
947
959
 
948
960
#
949
961
# Report the --help message.
1065
1077
  CXXCPP      C++ preprocessor
1066
1078
  F77         Fortran 77 compiler command
1067
1079
  FFLAGS      Fortran 77 compiler flags
 
1080
  PKG_CONFIG  path to pkg-config utility
 
1081
  RRCAP_CFLAGS
 
1082
              C compiler flags for RRCAP, overriding pkg-config
 
1083
  RRCAP_LIBS  linker flags for RRCAP, overriding pkg-config
1068
1084
 
1069
1085
Use these variables to override the choices made by `configure' or to help
1070
1086
it to find libraries and programs with nonstandard names/locations.
4108
4124
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4109
4125
# along with /bin/sed that truncates output.
4110
4126
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4111
 
  test ! -f $lt_ac_sed && break
 
4127
  test ! -f $lt_ac_sed && continue
4112
4128
  cat /dev/null > conftest.in
4113
4129
  lt_ac_count=0
4114
4130
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4384
4400
  lt_cv_deplibs_check_method=pass_all
4385
4401
  ;;
4386
4402
 
4387
 
freebsd* | kfreebsd*-gnu)
 
4403
freebsd* | kfreebsd*-gnu | dragonfly*)
4388
4404
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4389
4405
    case $host_cpu in
4390
4406
    i*86 )
4391
4407
      # Not sure whether the presence of OpenBSD here was a mistake.
4392
4408
      # Let's accept both of them until this is cleared up.
4393
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4409
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4394
4410
      lt_cv_file_magic_cmd=/usr/bin/file
4395
4411
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4396
4412
      ;;
4551
4567
  ;;
4552
4568
*-*-irix6*)
4553
4569
  # Find out which ABI we are using.
4554
 
  echo '#line 4554 "configure"' > conftest.$ac_ext
 
4570
  echo '#line 4570 "configure"' > conftest.$ac_ext
4555
4571
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556
4572
  (eval $ac_compile) 2>&5
4557
4573
  ac_status=$?
5666
5682
 
5667
5683
 
5668
5684
# Provide some information about the compiler.
5669
 
echo "$as_me:5669:" \
 
5685
echo "$as_me:5685:" \
5670
5686
     "checking for Fortran 77 compiler version" >&5
5671
5687
ac_compiler=`set X $ac_compile; echo $2`
5672
5688
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5856
5872
    lt_cv_sys_max_cmd_len=8192;
5857
5873
    ;;
5858
5874
 
5859
 
  netbsd* | freebsd* | openbsd* | darwin* )
 
5875
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5860
5876
    # This has been around since 386BSD, at least.  Likely further.
5861
5877
    if test -x /sbin/sysctl; then
5862
5878
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5867
5883
    fi
5868
5884
    # And add a safety zone
5869
5885
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5870
 
    ;;
5871
 
 
5872
 
 *)
 
5886
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5887
    ;;
 
5888
  osf*)
 
5889
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5890
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5891
    # nice to cause kernel panics so lets avoid the loop below.
 
5892
    # First set a reasonable default.
 
5893
    lt_cv_sys_max_cmd_len=16384
 
5894
    #
 
5895
    if test -x /sbin/sysconfig; then
 
5896
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5897
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5898
      esac
 
5899
    fi
 
5900
    ;;
 
5901
  *)
5873
5902
    # If test is not a shell built-in, we'll probably end up computing a
5874
5903
    # maximum length that is only half of the actual maximum length, but
5875
5904
    # we can't tell.
5920
5949
# Regexp to match symbols that can be accessed directly from C.
5921
5950
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5922
5951
 
5923
 
# Transform the above into a raw symbol and a C symbol.
5924
 
symxfrm='\1 \2\3 \3'
5925
 
 
5926
5952
# Transform an extracted symbol line into a proper C declaration
5927
5953
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5928
5954
 
5982
6008
# Try without a prefix undercore, then with it.
5983
6009
for ac_symprfx in "" "_"; do
5984
6010
 
 
6011
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6012
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6013
 
5985
6014
  # Write the raw and C identifiers.
5986
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6015
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5987
6016
 
5988
6017
  # Check to see that the pipe works correctly.
5989
6018
  pipe_works=no
6145
6174
 
6146
6175
# Sed substitution that helps us do robust quoting.  It backslashifies
6147
6176
# metacharacters that are still active within double-quoted strings.
6148
 
Xsed='sed -e s/^X//'
 
6177
Xsed='sed -e 1s/^X//'
6149
6178
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6150
6179
 
6151
6180
# Same as above, but do not quote variable references.
6450
6479
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6451
6480
fi
6452
6481
 
6453
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
6482
for cc_temp in $compiler""; do
 
6483
  case $cc_temp in
 
6484
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6485
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6486
    \-*) ;;
 
6487
    *) break;;
 
6488
  esac
 
6489
done
 
6490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6491
 
6454
6492
 
6455
6493
# Only perform the check for file, if the check method requires it
6456
6494
case $deplibs_check_method in
6638
6676
compiler=$CC
6639
6677
 
6640
6678
 
 
6679
# save warnings/boilerplate of simple test code
 
6680
ac_outfile=conftest.$ac_objext
 
6681
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6682
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6683
_lt_compiler_boilerplate=`cat conftest.err`
 
6684
$rm conftest*
 
6685
 
 
6686
ac_outfile=conftest.$ac_objext
 
6687
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6688
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6689
_lt_linker_boilerplate=`cat conftest.err`
 
6690
$rm conftest*
 
6691
 
 
6692
 
6641
6693
#
6642
6694
# Check for any special shared library compilation flags.
6643
6695
#
6679
6731
     if test -s conftest.err; then
6680
6732
       # Append any errors to the config.log.
6681
6733
       cat conftest.err 1>&5
 
6734
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
6735
       $SED '/^$/d' conftest.err >conftest.er2
 
6736
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6737
         lt_prog_compiler_static_works=yes
 
6738
       fi
6682
6739
     else
6683
6740
       lt_prog_compiler_static_works=yes
6684
6741
     fi
6723
6780
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6724
6781
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6725
6782
   -e 's:$: $lt_compiler_flag:'`
6726
 
   (eval echo "\"\$as_me:6726: $lt_compile\"" >&5)
 
6783
   (eval echo "\"\$as_me:6783: $lt_compile\"" >&5)
6727
6784
   (eval "$lt_compile" 2>conftest.err)
6728
6785
   ac_status=$?
6729
6786
   cat conftest.err >&5
6730
 
   echo "$as_me:6730: \$? = $ac_status" >&5
 
6787
   echo "$as_me:6787: \$? = $ac_status" >&5
6731
6788
   if (exit $ac_status) && test -s "$ac_outfile"; then
6732
6789
     # The compiler can only warn and ignore the option if not recognized
6733
 
     # So say no if there are warnings
6734
 
     if test ! -s conftest.err; then
 
6790
     # So say no if there are warnings other than the usual output.
 
6791
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6792
     $SED '/^$/d' conftest.err >conftest.er2
 
6793
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6735
6794
       lt_cv_prog_compiler_rtti_exceptions=yes
6736
6795
     fi
6737
6796
   fi
6837
6896
      darwin*)
6838
6897
        # PIC is the default on this platform
6839
6898
        # Common symbols not allowed in MH_DYLIB files
6840
 
       case "$cc_basename" in
 
6899
       case $cc_basename in
6841
6900
         xlc*)
6842
6901
         lt_prog_compiler_pic='-qnocommon'
6843
6902
         lt_prog_compiler_wl='-Wl,'
6879
6938
      ;;
6880
6939
 
6881
6940
    linux*)
6882
 
      case $CC in
 
6941
      case $cc_basename in
6883
6942
      icc* | ecc*)
6884
6943
        lt_prog_compiler_wl='-Wl,'
6885
6944
        lt_prog_compiler_pic='-KPIC'
6886
6945
        lt_prog_compiler_static='-static'
6887
6946
        ;;
 
6947
      pgcc* | pgf77* | pgf90*)
 
6948
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6949
        # which looks to be a dead project)
 
6950
        lt_prog_compiler_wl='-Wl,'
 
6951
        lt_prog_compiler_pic='-fpic'
 
6952
        lt_prog_compiler_static='-static'
 
6953
        ;;
6888
6954
      ccc*)
6889
6955
        lt_prog_compiler_wl='-Wl,'
6890
6956
        # All Alpha code is PIC.
6905
6971
      ;;
6906
6972
 
6907
6973
    solaris*)
6908
 
      lt_prog_compiler_wl='-Wl,'
6909
6974
      lt_prog_compiler_pic='-KPIC'
6910
6975
      lt_prog_compiler_static='-Bstatic'
 
6976
      case $cc_basename in
 
6977
      f77* | f90* | f95*)
 
6978
        lt_prog_compiler_wl='-Qoption ld ';;
 
6979
      *)
 
6980
        lt_prog_compiler_wl='-Wl,';;
 
6981
      esac
6911
6982
      ;;
6912
6983
 
6913
6984
    sunos4*)
6929
7000
      fi
6930
7001
      ;;
6931
7002
 
 
7003
    unicos*)
 
7004
      lt_prog_compiler_wl='-Wl,'
 
7005
      lt_prog_compiler_can_build_shared=no
 
7006
      ;;
 
7007
 
6932
7008
    uts4*)
6933
7009
      lt_prog_compiler_pic='-pic'
6934
7010
      lt_prog_compiler_static='-Bstatic'
6966
7042
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6967
7043
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6968
7044
   -e 's:$: $lt_compiler_flag:'`
6969
 
   (eval echo "\"\$as_me:6969: $lt_compile\"" >&5)
 
7045
   (eval echo "\"\$as_me:7045: $lt_compile\"" >&5)
6970
7046
   (eval "$lt_compile" 2>conftest.err)
6971
7047
   ac_status=$?
6972
7048
   cat conftest.err >&5
6973
 
   echo "$as_me:6973: \$? = $ac_status" >&5
 
7049
   echo "$as_me:7049: \$? = $ac_status" >&5
6974
7050
   if (exit $ac_status) && test -s "$ac_outfile"; then
6975
7051
     # The compiler can only warn and ignore the option if not recognized
6976
 
     # So say no if there are warnings
6977
 
     if test ! -s conftest.err; then
 
7052
     # So say no if there are warnings other than the usual output.
 
7053
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
7054
     $SED '/^$/d' conftest.err >conftest.er2
 
7055
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6978
7056
       lt_prog_compiler_pic_works=yes
6979
7057
     fi
6980
7058
   fi
7026
7104
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7027
7105
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7028
7106
   -e 's:$: $lt_compiler_flag:'`
7029
 
   (eval echo "\"\$as_me:7029: $lt_compile\"" >&5)
 
7107
   (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
7030
7108
   (eval "$lt_compile" 2>out/conftest.err)
7031
7109
   ac_status=$?
7032
7110
   cat out/conftest.err >&5
7033
 
   echo "$as_me:7033: \$? = $ac_status" >&5
 
7111
   echo "$as_me:7111: \$? = $ac_status" >&5
7034
7112
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7035
7113
   then
7036
7114
     # The compiler can only warn and ignore the option if not recognized
7037
7115
     # So say no if there are warnings
7038
 
     if test ! -s out/conftest.err; then
 
7116
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
7117
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
7118
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7039
7119
       lt_cv_prog_compiler_c_o=yes
7040
7120
     fi
7041
7121
   fi
7115
7195
  # rely on this symbol name, it's probably fine to never include it in
7116
7196
  # preloaded symbol tables.
7117
7197
  extract_expsyms_cmds=
 
7198
  # Just being paranoid about ensuring that cc_basename is set.
 
7199
  for cc_temp in $compiler""; do
 
7200
  case $cc_temp in
 
7201
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7202
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7203
    \-*) ;;
 
7204
    *) break;;
 
7205
  esac
 
7206
done
 
7207
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7118
7208
 
7119
7209
  case $host_os in
7120
7210
  cygwin* | mingw* | pw32*)
7135
7225
    # If archive_cmds runs LD, not CC, wlarc should be empty
7136
7226
    wlarc='${wl}'
7137
7227
 
 
7228
    # Set some defaults for GNU ld with shared library support. These
 
7229
    # are reset later if shared libraries are not supported. Putting them
 
7230
    # here allows them to be overridden if necessary.
 
7231
    runpath_var=LD_RUN_PATH
 
7232
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7233
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7234
    # ancient GNU ld didn't support --whole-archive et. al.
 
7235
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7236
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7237
      else
 
7238
        whole_archive_flag_spec=
 
7239
    fi
 
7240
    supports_anon_versioning=no
 
7241
    case `$LD -v 2>/dev/null` in
 
7242
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7243
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7244
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7245
      *\ 2.11.*) ;; # other 2.11 versions
 
7246
      *) supports_anon_versioning=yes ;;
 
7247
    esac
 
7248
 
7138
7249
    # See if GNU ld supports shared libraries.
7139
7250
    case $host_os in
7140
7251
    aix3* | aix4* | aix5*)
7185
7296
      allow_undefined_flag=unsupported
7186
7297
      always_export_symbols=no
7187
7298
      enable_shared_with_static_runtimes=yes
7188
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7299
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7189
7300
 
7190
7301
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7191
7302
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7203
7314
      fi
7204
7315
      ;;
7205
7316
 
 
7317
    linux*)
 
7318
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7319
        tmp_addflag=
 
7320
        case $cc_basename,$host_cpu in
 
7321
        pgcc*)                          # Portland Group C compiler
 
7322
          whole_archive_flag_spec=
 
7323
          ;;
 
7324
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
7325
          whole_archive_flag_spec=
 
7326
          tmp_addflag=' -fpic -Mnomain' ;;
 
7327
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7328
          tmp_addflag=' -i_dynamic' ;;
 
7329
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7330
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7331
        ifc* | ifort*)                  # Intel Fortran compiler
 
7332
          tmp_addflag=' -nofor_main' ;;
 
7333
        esac
 
7334
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7335
 
 
7336
        if test $supports_anon_versioning = yes; then
 
7337
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7338
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7339
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7340
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7341
        fi
 
7342
      else
 
7343
        ld_shlibs=no
 
7344
      fi
 
7345
      ;;
 
7346
 
7206
7347
    netbsd*)
7207
7348
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7208
7349
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7241
7382
      hardcode_shlibpath_var=no
7242
7383
      ;;
7243
7384
 
7244
 
  linux*)
7245
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7247
 
        archive_cmds="$tmp_archive_cmds"
7248
 
      supports_anon_versioning=no
7249
 
      case `$LD -v 2>/dev/null` in
7250
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7251
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7252
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7253
 
        *\ 2.11.*) ;; # other 2.11 versions
7254
 
        *) supports_anon_versioning=yes ;;
7255
 
      esac
7256
 
      if test $supports_anon_versioning = yes; then
7257
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7258
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7259
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
7260
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7261
 
      else
7262
 
        archive_expsym_cmds="$tmp_archive_cmds"
7263
 
      fi
7264
 
    else
7265
 
      ld_shlibs=no
7266
 
    fi
7267
 
    ;;
7268
 
 
7269
7385
    *)
7270
7386
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7271
7387
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7276
7392
      ;;
7277
7393
    esac
7278
7394
 
7279
 
    if test "$ld_shlibs" = yes; then
7280
 
      runpath_var=LD_RUN_PATH
7281
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7282
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
7283
 
      # ancient GNU ld didn't support --whole-archive et. al.
7284
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7285
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7286
 
      else
7287
 
        whole_archive_flag_spec=
7288
 
      fi
 
7395
    if test "$ld_shlibs" = no; then
 
7396
      runpath_var=
 
7397
      hardcode_libdir_flag_spec=
 
7398
      export_dynamic_flag_spec=
 
7399
      whole_archive_flag_spec=
7289
7400
    fi
7290
7401
  else
7291
7402
    # PORTME fill in a description of your system's linker (not GNU ld)
7349
7460
      link_all_deplibs=yes
7350
7461
 
7351
7462
      if test "$GCC" = yes; then
7352
 
        case $host_os in aix4.012|aix4.012.*)
 
7463
        case $host_os in aix4.[012]|aix4.[012].*)
7353
7464
        # We only want to do this on AIX 4.2 and lower, the check
7354
7465
        # below for broken collect2 doesn't work under 4.3+
7355
7466
          collect2name=`${CC} -print-prog-name=collect2`
7370
7481
          fi
7371
7482
        esac
7372
7483
        shared_flag='-shared'
 
7484
        if test "$aix_use_runtimelinking" = yes; then
 
7485
          shared_flag="$shared_flag "'${wl}-G'
 
7486
        fi
7373
7487
      else
7374
7488
        # not using gcc
7375
7489
        if test "$host_cpu" = ia64; then
7589
7703
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7590
7704
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7591
7705
    else
7592
 
      case "$cc_basename" in
 
7706
      case $cc_basename in
7593
7707
        xlc*)
7594
7708
         output_verbose_link_cmd='echo'
7595
7709
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7635
7749
      ;;
7636
7750
 
7637
7751
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7638
 
    freebsd* | kfreebsd*-gnu)
 
7752
    freebsd* | kfreebsd*-gnu | dragonfly*)
7639
7753
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7640
7754
      hardcode_libdir_flag_spec='-R$libdir'
7641
7755
      hardcode_direct=yes
7792
7906
        allow_undefined_flag=' -expect_unresolved \*'
7793
7907
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7794
7908
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7795
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7909
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7796
7910
 
7797
7911
        # Both c and cxx compiler support -rpath directly
7798
7912
        hardcode_libdir_flag_spec='-rpath $libdir'
7811
7925
    solaris*)
7812
7926
      no_undefined_flag=' -z text'
7813
7927
      if test "$GCC" = yes; then
 
7928
        wlarc='${wl}'
7814
7929
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815
7930
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7816
7931
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7817
7932
      else
 
7933
        wlarc=''
7818
7934
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7819
7935
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7820
7936
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7823
7939
      hardcode_shlibpath_var=no
7824
7940
      case $host_os in
7825
7941
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7826
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7827
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7942
      *)
 
7943
        # The compiler driver will combine linker options so we
 
7944
        # cannot just pass the convience library names through
 
7945
        # without $wl, iff we do not link with $LD.
 
7946
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7947
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7948
        case $wlarc in
 
7949
        '')
 
7950
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7951
        *)
 
7952
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7953
        esac ;;
7828
7954
      esac
7829
7955
      link_all_deplibs=yes
7830
7956
      ;;
8156
8282
      ;;
8157
8283
    pw32*)
8158
8284
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8159
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8285
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8160
8286
      ;;
8161
8287
    esac
8162
8288
    ;;
8214
8340
  dynamic_linker='GNU ld.so'
8215
8341
  ;;
8216
8342
 
8217
 
freebsd*)
 
8343
freebsd* | dragonfly*)
 
8344
  # DragonFly does not have aout.  When/if they implement a new
 
8345
  # versioning mechanism, adjust this.
8218
8346
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8219
8347
  version_type=freebsd-$objformat
8220
8348
  case $version_type in
8233
8361
  freebsd2*)
8234
8362
    shlibpath_overrides_runpath=yes
8235
8363
    ;;
8236
 
  freebsd3.01* | freebsdelf3.01*)
 
8364
  freebsd3.[01]* | freebsdelf3.[01]*)
8237
8365
    shlibpath_overrides_runpath=yes
8238
8366
    hardcode_into_libs=yes
8239
8367
    ;;
8361
8489
  libsuff=
8362
8490
  case "$host_cpu" in
8363
8491
  x86_64*|s390x*|powerpc64*)
8364
 
    echo '#line 8364 "configure"' > conftest.$ac_ext
 
8492
    echo '#line 8492 "configure"' > conftest.$ac_ext
8365
8493
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366
8494
  (eval $ac_compile) 2>&5
8367
8495
  ac_status=$?
8380
8508
 
8381
8509
  # Append ld.so.conf contents to the search path
8382
8510
  if test -f /etc/ld.so.conf; then
8383
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8511
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8384
8512
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8385
8513
  fi
8386
8514
 
9232
9360
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9233
9361
  lt_status=$lt_dlunknown
9234
9362
  cat > conftest.$ac_ext <<EOF
9235
 
#line 9235 "configure"
 
9363
#line 9363 "configure"
9236
9364
#include "confdefs.h"
9237
9365
 
9238
9366
#if HAVE_DLFCN_H
9330
9458
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9331
9459
  lt_status=$lt_dlunknown
9332
9460
  cat > conftest.$ac_ext <<EOF
9333
 
#line 9333 "configure"
 
9461
#line 9461 "configure"
9334
9462
#include "confdefs.h"
9335
9463
 
9336
9464
#if HAVE_DLFCN_H
9588
9716
#
9589
9717
# You should have received a copy of the GNU General Public License
9590
9718
# along with this program; if not, write to the Free Software
9591
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9719
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9592
9720
#
9593
9721
# As a special exception to the GNU General Public License, if you
9594
9722
# distribute this file as part of a program that contains a
9599
9727
SED=$lt_SED
9600
9728
 
9601
9729
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9602
 
Xsed="$SED -e s/^X//"
 
9730
Xsed="$SED -e 1s/^X//"
9603
9731
 
9604
9732
# The HP-UX ksh and POSIX shell print the target directory to stdout
9605
9733
# if CDPATH is set.
9633
9761
# The host system.
9634
9762
host_alias=$host_alias
9635
9763
host=$host
 
9764
host_os=$host_os
 
9765
 
 
9766
# The build system.
 
9767
build_alias=$build_alias
 
9768
build=$build
 
9769
build_os=$build_os
9636
9770
 
9637
9771
# An echo program that does not interpret backslashes.
9638
9772
echo=$lt_echo
9709
9843
# Does compiler simultaneously support -c and -o options?
9710
9844
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9711
9845
 
9712
 
# Must we lock files when doing compilation ?
 
9846
# Must we lock files when doing compilation?
9713
9847
need_locks=$lt_need_locks
9714
9848
 
9715
9849
# Do we need the lib prefix for modules?
10064
10198
compiler=$CC
10065
10199
 
10066
10200
 
 
10201
# save warnings/boilerplate of simple test code
 
10202
ac_outfile=conftest.$ac_objext
 
10203
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10204
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10205
_lt_compiler_boilerplate=`cat conftest.err`
 
10206
$rm conftest*
 
10207
 
 
10208
ac_outfile=conftest.$ac_objext
 
10209
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10210
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10211
_lt_linker_boilerplate=`cat conftest.err`
 
10212
$rm conftest*
 
10213
 
 
10214
 
10067
10215
# Allow CC to be a program name with arguments.
10068
10216
lt_save_CC=$CC
10069
10217
lt_save_LD=$LD
10085
10233
CC=${CXX-"c++"}
10086
10234
compiler=$CC
10087
10235
compiler_CXX=$CC
10088
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10236
for cc_temp in $compiler""; do
 
10237
  case $cc_temp in
 
10238
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10239
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10240
    \-*) ;;
 
10241
    *) break;;
 
10242
  esac
 
10243
done
 
10244
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10245
 
10089
10246
 
10090
10247
# We don't want -fno-exception wen compiling C++ code, so set the
10091
10248
# no_builtin_flag separately
10299
10456
    link_all_deplibs_CXX=yes
10300
10457
 
10301
10458
    if test "$GXX" = yes; then
10302
 
      case $host_os in aix4.012|aix4.012.*)
 
10459
      case $host_os in aix4.[012]|aix4.[012].*)
10303
10460
      # We only want to do this on AIX 4.2 and lower, the check
10304
10461
      # below for broken collect2 doesn't work under 4.3+
10305
10462
        collect2name=`${CC} -print-prog-name=collect2`
10320
10477
        fi
10321
10478
      esac
10322
10479
      shared_flag='-shared'
 
10480
      if test "$aix_use_runtimelinking" = yes; then
 
10481
        shared_flag="$shared_flag "'${wl}-G'
 
10482
      fi
10323
10483
    else
10324
10484
      # not using gcc
10325
10485
      if test "$host_cpu" = ia64; then
10552
10712
          fi
10553
10713
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10554
10714
      else
10555
 
      case "$cc_basename" in
 
10715
      case $cc_basename in
10556
10716
        xlc*)
10557
10717
         output_verbose_link_cmd='echo'
10558
10718
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10570
10730
 
10571
10731
  dgux*)
10572
10732
    case $cc_basename in
10573
 
      ec++)
 
10733
      ec++*)
10574
10734
        # FIXME: insert proper C++ library support
10575
10735
        ld_shlibs_CXX=no
10576
10736
        ;;
10577
 
      ghcx)
 
10737
      ghcx*)
10578
10738
        # Green Hills C++ Compiler
10579
10739
        # FIXME: insert proper C++ library support
10580
10740
        ld_shlibs_CXX=no
10585
10745
        ;;
10586
10746
    esac
10587
10747
    ;;
10588
 
  freebsd12*)
 
10748
  freebsd[12]*)
10589
10749
    # C++ shared libraries reported to be fairly broken before switch to ELF
10590
10750
    ld_shlibs_CXX=no
10591
10751
    ;;
10592
10752
  freebsd-elf*)
10593
10753
    archive_cmds_need_lc_CXX=no
10594
10754
    ;;
10595
 
  freebsd* | kfreebsd*-gnu)
 
10755
  freebsd* | kfreebsd*-gnu | dragonfly*)
10596
10756
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10597
10757
    # conventions
10598
10758
    ld_shlibs_CXX=yes
10609
10769
                                # location of the library.
10610
10770
 
10611
10771
    case $cc_basename in
10612
 
    CC)
 
10772
    CC*)
10613
10773
      # FIXME: insert proper C++ library support
10614
10774
      ld_shlibs_CXX=no
10615
10775
      ;;
10616
 
    aCC)
 
10776
    aCC*)
10617
10777
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10618
10778
      # Commands to make compiler produce verbose output that lists
10619
10779
      # what "hidden" libraries, object files and flags are used when
10623
10783
      # explicitly linking system object files so we need to strip them
10624
10784
      # from the output so that they don't get included in the library
10625
10785
      # dependencies.
10626
 
      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 $list'
 
10786
      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 $list'
10627
10787
      ;;
10628
10788
    *)
10629
10789
      if test "$GXX" = yes; then
10674
10834
    esac
10675
10835
 
10676
10836
    case $cc_basename in
10677
 
      CC)
 
10837
      CC*)
10678
10838
        # FIXME: insert proper C++ library support
10679
10839
        ld_shlibs_CXX=no
10680
10840
        ;;
10681
 
      aCC)
 
10841
      aCC*)
10682
10842
        case "$host_cpu" in
10683
10843
        hppa*64*|ia64*)
10684
10844
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10718
10878
    ;;
10719
10879
  irix5* | irix6*)
10720
10880
    case $cc_basename in
10721
 
      CC)
 
10881
      CC*)
10722
10882
        # SGI C++
10723
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10883
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10724
10884
 
10725
10885
        # Archives containing C++ object files must be created using
10726
10886
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10731
10891
      *)
10732
10892
        if test "$GXX" = yes; then
10733
10893
          if test "$with_gnu_ld" = no; then
10734
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10894
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10735
10895
          else
10736
10896
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10737
10897
          fi
10744
10904
    ;;
10745
10905
  linux*)
10746
10906
    case $cc_basename in
10747
 
      KCC)
 
10907
      KCC*)
10748
10908
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10749
10909
 
10750
10910
        # KCC will only create a shared library if the output file
10769
10929
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10770
10930
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10771
10931
        ;;
10772
 
      icpc)
 
10932
      icpc*)
10773
10933
        # Intel C++
10774
10934
        with_gnu_ld=yes
10775
10935
        # version 8.0 and above of icpc choke on multiply defined symbols
10781
10941
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10782
10942
          ;;
10783
10943
        *)  # Version 8.0 or newer
10784
 
          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10785
 
        archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10944
          tmp_idyn=
 
10945
          case $host_cpu in
 
10946
            ia64*) tmp_idyn=' -i_dynamic';;
 
10947
          esac
 
10948
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10949
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10786
10950
          ;;
10787
10951
        esac
10788
10952
        archive_cmds_need_lc_CXX=no
10790
10954
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10791
10955
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10792
10956
        ;;
10793
 
      cxx)
 
10957
      pgCC*)
 
10958
        # Portland Group C++ compiler
 
10959
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10960
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10961
 
 
10962
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10963
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10964
        whole_archive_flag_spec_CXX=''
 
10965
        ;;
 
10966
      cxx*)
10794
10967
        # Compaq C++
10795
10968
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10796
10969
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10821
10994
    ;;
10822
10995
  mvs*)
10823
10996
    case $cc_basename in
10824
 
      cxx)
 
10997
      cxx*)
10825
10998
        # FIXME: insert proper C++ library support
10826
10999
        ld_shlibs_CXX=no
10827
11000
        ;;
10860
11033
    ;;
10861
11034
  osf3*)
10862
11035
    case $cc_basename in
10863
 
      KCC)
 
11036
      KCC*)
10864
11037
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10865
11038
 
10866
11039
        # KCC will only create a shared library if the output file
10876
11049
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10877
11050
 
10878
11051
        ;;
10879
 
      RCC)
 
11052
      RCC*)
10880
11053
        # Rational C++ 2.4.1
10881
11054
        # FIXME: insert proper C++ library support
10882
11055
        ld_shlibs_CXX=no
10883
11056
        ;;
10884
 
      cxx)
 
11057
      cxx*)
10885
11058
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10886
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11059
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10887
11060
 
10888
11061
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10889
11062
        hardcode_libdir_separator_CXX=:
10901
11074
      *)
10902
11075
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10903
11076
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10904
 
          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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11077
          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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10905
11078
 
10906
11079
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10907
11080
          hardcode_libdir_separator_CXX=:
10920
11093
    ;;
10921
11094
  osf4* | osf5*)
10922
11095
    case $cc_basename in
10923
 
      KCC)
 
11096
      KCC*)
10924
11097
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10925
11098
 
10926
11099
        # KCC will only create a shared library if the output file
10935
11108
        # the KAI C++ compiler.
10936
11109
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10937
11110
        ;;
10938
 
      RCC)
 
11111
      RCC*)
10939
11112
        # Rational C++ 2.4.1
10940
11113
        # FIXME: insert proper C++ library support
10941
11114
        ld_shlibs_CXX=no
10942
11115
        ;;
10943
 
      cxx)
 
11116
      cxx*)
10944
11117
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10945
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11118
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10946
11119
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10947
11120
          echo "-hidden">> $lib.exp~
10948
 
          $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 $objdir/so_locations -o $lib~
 
11121
          $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~
10949
11122
          $rm $lib.exp'
10950
11123
 
10951
11124
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10964
11137
      *)
10965
11138
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10966
11139
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10967
 
         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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11140
         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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10968
11141
 
10969
11142
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10970
11143
          hardcode_libdir_separator_CXX=:
10988
11161
  sco*)
10989
11162
    archive_cmds_need_lc_CXX=no
10990
11163
    case $cc_basename in
10991
 
      CC)
 
11164
      CC*)
10992
11165
        # FIXME: insert proper C++ library support
10993
11166
        ld_shlibs_CXX=no
10994
11167
        ;;
11000
11173
    ;;
11001
11174
  sunos4*)
11002
11175
    case $cc_basename in
11003
 
      CC)
 
11176
      CC*)
11004
11177
        # Sun C++ 4.x
11005
11178
        # FIXME: insert proper C++ library support
11006
11179
        ld_shlibs_CXX=no
11007
11180
        ;;
11008
 
      lcc)
 
11181
      lcc*)
11009
11182
        # Lucid
11010
11183
        # FIXME: insert proper C++ library support
11011
11184
        ld_shlibs_CXX=no
11018
11191
    ;;
11019
11192
  solaris*)
11020
11193
    case $cc_basename in
11021
 
      CC)
 
11194
      CC*)
11022
11195
        # Sun C++ 4.2, 5.x and Centerline C++
11023
11196
        no_undefined_flag_CXX=' -zdefs'
11024
11197
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11028
11201
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11029
11202
        hardcode_shlibpath_var_CXX=no
11030
11203
        case $host_os in
11031
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11204
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11032
11205
          *)
11033
11206
            # The C++ compiler is used as linker so we must use $wl
11034
11207
            # flag to pass the commands to the underlying system
11035
 
            # linker.
 
11208
            # linker. We must also pass each convience library through
 
11209
            # to the system linker between allextract/defaultextract.
 
11210
            # The C++ compiler will combine linker options so we
 
11211
            # cannot just pass the convience library names through
 
11212
            # without $wl.
11036
11213
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11037
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11214
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11038
11215
            ;;
11039
11216
        esac
11040
11217
        link_all_deplibs_CXX=yes
11055
11232
        # in the archive.
11056
11233
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11057
11234
        ;;
11058
 
      gcx)
 
11235
      gcx*)
11059
11236
        # Green Hills C++ Compiler
11060
11237
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11061
11238
 
11098
11275
    ;;
11099
11276
  tandem*)
11100
11277
    case $cc_basename in
11101
 
      NCC)
 
11278
      NCC*)
11102
11279
        # NonStop-UX NCC 3.20
11103
11280
        # FIXME: insert proper C++ library support
11104
11281
        ld_shlibs_CXX=no
11307
11484
        ;;
11308
11485
      chorus*)
11309
11486
        case $cc_basename in
11310
 
        cxch68)
 
11487
        cxch68*)
11311
11488
          # Green Hills C++ Compiler
11312
11489
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11313
11490
          ;;
11316
11493
       darwin*)
11317
11494
         # PIC is the default on this platform
11318
11495
         # Common symbols not allowed in MH_DYLIB files
11319
 
         case "$cc_basename" in
 
11496
         case $cc_basename in
11320
11497
           xlc*)
11321
11498
           lt_prog_compiler_pic_CXX='-qnocommon'
11322
11499
           lt_prog_compiler_wl_CXX='-Wl,'
11325
11502
       ;;
11326
11503
      dgux*)
11327
11504
        case $cc_basename in
11328
 
          ec++)
 
11505
          ec++*)
11329
11506
            lt_prog_compiler_pic_CXX='-KPIC'
11330
11507
            ;;
11331
 
          ghcx)
 
11508
          ghcx*)
11332
11509
            # Green Hills C++ Compiler
11333
11510
            lt_prog_compiler_pic_CXX='-pic'
11334
11511
            ;;
11336
11513
            ;;
11337
11514
        esac
11338
11515
        ;;
11339
 
      freebsd* | kfreebsd*-gnu)
 
11516
      freebsd* | kfreebsd*-gnu | dragonfly*)
11340
11517
        # FreeBSD uses GNU C++
11341
11518
        ;;
11342
11519
      hpux9* | hpux10* | hpux11*)
11343
11520
        case $cc_basename in
11344
 
          CC)
 
11521
          CC*)
11345
11522
            lt_prog_compiler_wl_CXX='-Wl,'
11346
11523
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11347
11524
            if test "$host_cpu" != ia64; then
11348
11525
              lt_prog_compiler_pic_CXX='+Z'
11349
11526
            fi
11350
11527
            ;;
11351
 
          aCC)
 
11528
          aCC*)
11352
11529
            lt_prog_compiler_wl_CXX='-Wl,'
11353
11530
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11354
11531
            case "$host_cpu" in
11366
11543
        ;;
11367
11544
      irix5* | irix6* | nonstopux*)
11368
11545
        case $cc_basename in
11369
 
          CC)
 
11546
          CC*)
11370
11547
            lt_prog_compiler_wl_CXX='-Wl,'
11371
11548
            lt_prog_compiler_static_CXX='-non_shared'
11372
11549
            # CC pic flag -KPIC is the default.
11377
11554
        ;;
11378
11555
      linux*)
11379
11556
        case $cc_basename in
11380
 
          KCC)
 
11557
          KCC*)
11381
11558
            # KAI C++ Compiler
11382
11559
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11383
11560
            lt_prog_compiler_pic_CXX='-fPIC'
11384
11561
            ;;
11385
 
          icpc)
 
11562
          icpc* | ecpc*)
11386
11563
            # Intel C++
11387
11564
            lt_prog_compiler_wl_CXX='-Wl,'
11388
11565
            lt_prog_compiler_pic_CXX='-KPIC'
11389
11566
            lt_prog_compiler_static_CXX='-static'
11390
11567
            ;;
11391
 
          cxx)
 
11568
          pgCC*)
 
11569
            # Portland Group C++ compiler.
 
11570
            lt_prog_compiler_wl_CXX='-Wl,'
 
11571
            lt_prog_compiler_pic_CXX='-fpic'
 
11572
            lt_prog_compiler_static_CXX='-static'
 
11573
            ;;
 
11574
          cxx*)
11392
11575
            # Compaq C++
11393
11576
            # Make sure the PIC flag is empty.  It appears that all Alpha
11394
11577
            # Linux and Compaq Tru64 Unix objects are PIC.
11405
11588
        ;;
11406
11589
      mvs*)
11407
11590
        case $cc_basename in
11408
 
          cxx)
 
11591
          cxx*)
11409
11592
            lt_prog_compiler_pic_CXX='-W c,exportall'
11410
11593
            ;;
11411
11594
          *)
11416
11599
        ;;
11417
11600
      osf3* | osf4* | osf5*)
11418
11601
        case $cc_basename in
11419
 
          KCC)
 
11602
          KCC*)
11420
11603
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11421
11604
            ;;
11422
 
          RCC)
 
11605
          RCC*)
11423
11606
            # Rational C++ 2.4.1
11424
11607
            lt_prog_compiler_pic_CXX='-pic'
11425
11608
            ;;
11426
 
          cxx)
 
11609
          cxx*)
11427
11610
            # Digital/Compaq C++
11428
11611
            lt_prog_compiler_wl_CXX='-Wl,'
11429
11612
            # Make sure the PIC flag is empty.  It appears that all Alpha
11439
11622
        ;;
11440
11623
      sco*)
11441
11624
        case $cc_basename in
11442
 
          CC)
 
11625
          CC*)
11443
11626
            lt_prog_compiler_pic_CXX='-fPIC'
11444
11627
            ;;
11445
11628
          *)
11448
11631
        ;;
11449
11632
      solaris*)
11450
11633
        case $cc_basename in
11451
 
          CC)
 
11634
          CC*)
11452
11635
            # Sun C++ 4.2, 5.x and Centerline C++
11453
11636
            lt_prog_compiler_pic_CXX='-KPIC'
11454
11637
            lt_prog_compiler_static_CXX='-Bstatic'
11455
11638
            lt_prog_compiler_wl_CXX='-Qoption ld '
11456
11639
            ;;
11457
 
          gcx)
 
11640
          gcx*)
11458
11641
            # Green Hills C++ Compiler
11459
11642
            lt_prog_compiler_pic_CXX='-PIC'
11460
11643
            ;;
11464
11647
        ;;
11465
11648
      sunos4*)
11466
11649
        case $cc_basename in
11467
 
          CC)
 
11650
          CC*)
11468
11651
            # Sun C++ 4.x
11469
11652
            lt_prog_compiler_pic_CXX='-pic'
11470
11653
            lt_prog_compiler_static_CXX='-Bstatic'
11471
11654
            ;;
11472
 
          lcc)
 
11655
          lcc*)
11473
11656
            # Lucid
11474
11657
            lt_prog_compiler_pic_CXX='-pic'
11475
11658
            ;;
11479
11662
        ;;
11480
11663
      tandem*)
11481
11664
        case $cc_basename in
11482
 
          NCC)
 
11665
          NCC*)
11483
11666
            # NonStop-UX NCC 3.20
11484
11667
            lt_prog_compiler_pic_CXX='-KPIC'
11485
11668
            ;;
11523
11706
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11524
11707
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11525
11708
   -e 's:$: $lt_compiler_flag:'`
11526
 
   (eval echo "\"\$as_me:11526: $lt_compile\"" >&5)
 
11709
   (eval echo "\"\$as_me:11709: $lt_compile\"" >&5)
11527
11710
   (eval "$lt_compile" 2>conftest.err)
11528
11711
   ac_status=$?
11529
11712
   cat conftest.err >&5
11530
 
   echo "$as_me:11530: \$? = $ac_status" >&5
 
11713
   echo "$as_me:11713: \$? = $ac_status" >&5
11531
11714
   if (exit $ac_status) && test -s "$ac_outfile"; then
11532
11715
     # The compiler can only warn and ignore the option if not recognized
11533
 
     # So say no if there are warnings
11534
 
     if test ! -s conftest.err; then
 
11716
     # So say no if there are warnings other than the usual output.
 
11717
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
11718
     $SED '/^$/d' conftest.err >conftest.er2
 
11719
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11535
11720
       lt_prog_compiler_pic_works_CXX=yes
11536
11721
     fi
11537
11722
   fi
11583
11768
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11584
11769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11585
11770
   -e 's:$: $lt_compiler_flag:'`
11586
 
   (eval echo "\"\$as_me:11586: $lt_compile\"" >&5)
 
11771
   (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
11587
11772
   (eval "$lt_compile" 2>out/conftest.err)
11588
11773
   ac_status=$?
11589
11774
   cat out/conftest.err >&5
11590
 
   echo "$as_me:11590: \$? = $ac_status" >&5
 
11775
   echo "$as_me:11775: \$? = $ac_status" >&5
11591
11776
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11592
11777
   then
11593
11778
     # The compiler can only warn and ignore the option if not recognized
11594
11779
     # So say no if there are warnings
11595
 
     if test ! -s out/conftest.err; then
 
11780
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11781
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11782
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11596
11783
       lt_cv_prog_compiler_c_o_CXX=yes
11597
11784
     fi
11598
11785
   fi
11651
11838
    export_symbols_cmds_CXX="$ltdll_cmds"
11652
11839
  ;;
11653
11840
  cygwin* | mingw*)
11654
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11841
    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'
11655
11842
  ;;
11656
11843
  *)
11657
11844
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11889
12076
      ;;
11890
12077
    pw32*)
11891
12078
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11892
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12079
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893
12080
      ;;
11894
12081
    esac
11895
12082
    ;;
11947
12134
  dynamic_linker='GNU ld.so'
11948
12135
  ;;
11949
12136
 
11950
 
freebsd*)
 
12137
freebsd* | dragonfly*)
 
12138
  # DragonFly does not have aout.  When/if they implement a new
 
12139
  # versioning mechanism, adjust this.
11951
12140
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11952
12141
  version_type=freebsd-$objformat
11953
12142
  case $version_type in
11966
12155
  freebsd2*)
11967
12156
    shlibpath_overrides_runpath=yes
11968
12157
    ;;
11969
 
  freebsd3.01* | freebsdelf3.01*)
 
12158
  freebsd3.[01]* | freebsdelf3.[01]*)
11970
12159
    shlibpath_overrides_runpath=yes
11971
12160
    hardcode_into_libs=yes
11972
12161
    ;;
12094
12283
  libsuff=
12095
12284
  case "$host_cpu" in
12096
12285
  x86_64*|s390x*|powerpc64*)
12097
 
    echo '#line 12097 "configure"' > conftest.$ac_ext
 
12286
    echo '#line 12286 "configure"' > conftest.$ac_ext
12098
12287
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12099
12288
  (eval $ac_compile) 2>&5
12100
12289
  ac_status=$?
12113
12302
 
12114
12303
  # Append ld.so.conf contents to the search path
12115
12304
  if test -f /etc/ld.so.conf; then
12116
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12305
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12117
12306
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12118
12307
  fi
12119
12308
 
12965
13154
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12966
13155
  lt_status=$lt_dlunknown
12967
13156
  cat > conftest.$ac_ext <<EOF
12968
 
#line 12968 "configure"
 
13157
#line 13157 "configure"
12969
13158
#include "confdefs.h"
12970
13159
 
12971
13160
#if HAVE_DLFCN_H
13063
13252
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13064
13253
  lt_status=$lt_dlunknown
13065
13254
  cat > conftest.$ac_ext <<EOF
13066
 
#line 13066 "configure"
 
13255
#line 13255 "configure"
13067
13256
#include "confdefs.h"
13068
13257
 
13069
13258
#if HAVE_DLFCN_H
13281
13470
# The host system.
13282
13471
host_alias=$host_alias
13283
13472
host=$host
 
13473
host_os=$host_os
 
13474
 
 
13475
# The build system.
 
13476
build_alias=$build_alias
 
13477
build=$build
 
13478
build_os=$build_os
13284
13479
 
13285
13480
# An echo program that does not interpret backslashes.
13286
13481
echo=$lt_echo
13357
13552
# Does compiler simultaneously support -c and -o options?
13358
13553
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13359
13554
 
13360
 
# Must we lock files when doing compilation ?
 
13555
# Must we lock files when doing compilation?
13361
13556
need_locks=$lt_need_locks
13362
13557
 
13363
13558
# Do we need the lib prefix for modules?
13638
13833
compiler=$CC
13639
13834
 
13640
13835
 
 
13836
# save warnings/boilerplate of simple test code
 
13837
ac_outfile=conftest.$ac_objext
 
13838
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13839
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13840
_lt_compiler_boilerplate=`cat conftest.err`
 
13841
$rm conftest*
 
13842
 
 
13843
ac_outfile=conftest.$ac_objext
 
13844
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13845
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13846
_lt_linker_boilerplate=`cat conftest.err`
 
13847
$rm conftest*
 
13848
 
 
13849
 
13641
13850
# Allow CC to be a program name with arguments.
13642
13851
lt_save_CC="$CC"
13643
13852
CC=${F77-"f77"}
13644
13853
compiler=$CC
13645
13854
compiler_F77=$CC
13646
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13855
for cc_temp in $compiler""; do
 
13856
  case $cc_temp in
 
13857
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13858
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13859
    \-*) ;;
 
13860
    *) break;;
 
13861
  esac
 
13862
done
 
13863
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13864
 
13647
13865
 
13648
13866
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13649
13867
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13665
13883
  fi
13666
13884
  ;;
13667
13885
aix4* | aix5*)
13668
 
  test "$enable_shared" = yes && enable_static=no
 
13886
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13887
    test "$enable_shared" = yes && enable_static=no
 
13888
  fi
13669
13889
  ;;
13670
13890
esac
13671
13891
echo "$as_me:$LINENO: result: $enable_shared" >&5
13771
13991
      darwin*)
13772
13992
        # PIC is the default on this platform
13773
13993
        # Common symbols not allowed in MH_DYLIB files
13774
 
       case "$cc_basename" in
 
13994
       case $cc_basename in
13775
13995
         xlc*)
13776
13996
         lt_prog_compiler_pic_F77='-qnocommon'
13777
13997
         lt_prog_compiler_wl_F77='-Wl,'
13813
14033
      ;;
13814
14034
 
13815
14035
    linux*)
13816
 
      case $CC in
 
14036
      case $cc_basename in
13817
14037
      icc* | ecc*)
13818
14038
        lt_prog_compiler_wl_F77='-Wl,'
13819
14039
        lt_prog_compiler_pic_F77='-KPIC'
13820
14040
        lt_prog_compiler_static_F77='-static'
13821
14041
        ;;
 
14042
      pgcc* | pgf77* | pgf90*)
 
14043
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14044
        # which looks to be a dead project)
 
14045
        lt_prog_compiler_wl_F77='-Wl,'
 
14046
        lt_prog_compiler_pic_F77='-fpic'
 
14047
        lt_prog_compiler_static_F77='-static'
 
14048
        ;;
13822
14049
      ccc*)
13823
14050
        lt_prog_compiler_wl_F77='-Wl,'
13824
14051
        # All Alpha code is PIC.
13839
14066
      ;;
13840
14067
 
13841
14068
    solaris*)
13842
 
      lt_prog_compiler_wl_F77='-Wl,'
13843
14069
      lt_prog_compiler_pic_F77='-KPIC'
13844
14070
      lt_prog_compiler_static_F77='-Bstatic'
 
14071
      case $cc_basename in
 
14072
      f77* | f90* | f95*)
 
14073
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14074
      *)
 
14075
        lt_prog_compiler_wl_F77='-Wl,';;
 
14076
      esac
13845
14077
      ;;
13846
14078
 
13847
14079
    sunos4*)
13863
14095
      fi
13864
14096
      ;;
13865
14097
 
 
14098
    unicos*)
 
14099
      lt_prog_compiler_wl_F77='-Wl,'
 
14100
      lt_prog_compiler_can_build_shared_F77=no
 
14101
      ;;
 
14102
 
13866
14103
    uts4*)
13867
14104
      lt_prog_compiler_pic_F77='-pic'
13868
14105
      lt_prog_compiler_static_F77='-Bstatic'
13900
14137
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13901
14138
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13902
14139
   -e 's:$: $lt_compiler_flag:'`
13903
 
   (eval echo "\"\$as_me:13903: $lt_compile\"" >&5)
 
14140
   (eval echo "\"\$as_me:14140: $lt_compile\"" >&5)
13904
14141
   (eval "$lt_compile" 2>conftest.err)
13905
14142
   ac_status=$?
13906
14143
   cat conftest.err >&5
13907
 
   echo "$as_me:13907: \$? = $ac_status" >&5
 
14144
   echo "$as_me:14144: \$? = $ac_status" >&5
13908
14145
   if (exit $ac_status) && test -s "$ac_outfile"; then
13909
14146
     # The compiler can only warn and ignore the option if not recognized
13910
 
     # So say no if there are warnings
13911
 
     if test ! -s conftest.err; then
 
14147
     # So say no if there are warnings other than the usual output.
 
14148
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
14149
     $SED '/^$/d' conftest.err >conftest.er2
 
14150
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13912
14151
       lt_prog_compiler_pic_works_F77=yes
13913
14152
     fi
13914
14153
   fi
13960
14199
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13961
14200
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962
14201
   -e 's:$: $lt_compiler_flag:'`
13963
 
   (eval echo "\"\$as_me:13963: $lt_compile\"" >&5)
 
14202
   (eval echo "\"\$as_me:14202: $lt_compile\"" >&5)
13964
14203
   (eval "$lt_compile" 2>out/conftest.err)
13965
14204
   ac_status=$?
13966
14205
   cat out/conftest.err >&5
13967
 
   echo "$as_me:13967: \$? = $ac_status" >&5
 
14206
   echo "$as_me:14206: \$? = $ac_status" >&5
13968
14207
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13969
14208
   then
13970
14209
     # The compiler can only warn and ignore the option if not recognized
13971
14210
     # So say no if there are warnings
13972
 
     if test ! -s out/conftest.err; then
 
14211
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
14212
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
14213
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13973
14214
       lt_cv_prog_compiler_c_o_F77=yes
13974
14215
     fi
13975
14216
   fi
14049
14290
  # rely on this symbol name, it's probably fine to never include it in
14050
14291
  # preloaded symbol tables.
14051
14292
  extract_expsyms_cmds=
 
14293
  # Just being paranoid about ensuring that cc_basename is set.
 
14294
  for cc_temp in $compiler""; do
 
14295
  case $cc_temp in
 
14296
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14297
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14298
    \-*) ;;
 
14299
    *) break;;
 
14300
  esac
 
14301
done
 
14302
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14052
14303
 
14053
14304
  case $host_os in
14054
14305
  cygwin* | mingw* | pw32*)
14069
14320
    # If archive_cmds runs LD, not CC, wlarc should be empty
14070
14321
    wlarc='${wl}'
14071
14322
 
 
14323
    # Set some defaults for GNU ld with shared library support. These
 
14324
    # are reset later if shared libraries are not supported. Putting them
 
14325
    # here allows them to be overridden if necessary.
 
14326
    runpath_var=LD_RUN_PATH
 
14327
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14328
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14329
    # ancient GNU ld didn't support --whole-archive et. al.
 
14330
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14331
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14332
      else
 
14333
        whole_archive_flag_spec_F77=
 
14334
    fi
 
14335
    supports_anon_versioning=no
 
14336
    case `$LD -v 2>/dev/null` in
 
14337
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14338
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14339
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14340
      *\ 2.11.*) ;; # other 2.11 versions
 
14341
      *) supports_anon_versioning=yes ;;
 
14342
    esac
 
14343
 
14072
14344
    # See if GNU ld supports shared libraries.
14073
14345
    case $host_os in
14074
14346
    aix3* | aix4* | aix5*)
14119
14391
      allow_undefined_flag_F77=unsupported
14120
14392
      always_export_symbols_F77=no
14121
14393
      enable_shared_with_static_runtimes_F77=yes
14122
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14394
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14123
14395
 
14124
14396
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14125
14397
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14133
14405
        fi~
14134
14406
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14135
14407
      else
14136
 
        ld_shlibs=no
 
14408
        ld_shlibs_F77=no
 
14409
      fi
 
14410
      ;;
 
14411
 
 
14412
    linux*)
 
14413
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14414
        tmp_addflag=
 
14415
        case $cc_basename,$host_cpu in
 
14416
        pgcc*)                          # Portland Group C compiler
 
14417
          whole_archive_flag_spec_F77=
 
14418
          ;;
 
14419
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
14420
          whole_archive_flag_spec_F77=
 
14421
          tmp_addflag=' -fpic -Mnomain' ;;
 
14422
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14423
          tmp_addflag=' -i_dynamic' ;;
 
14424
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14425
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14426
        ifc* | ifort*)                  # Intel Fortran compiler
 
14427
          tmp_addflag=' -nofor_main' ;;
 
14428
        esac
 
14429
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14430
 
 
14431
        if test $supports_anon_versioning = yes; then
 
14432
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14433
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14434
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14435
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14436
        fi
 
14437
      else
 
14438
        ld_shlibs_F77=no
14137
14439
      fi
14138
14440
      ;;
14139
14441
 
14175
14477
      hardcode_shlibpath_var_F77=no
14176
14478
      ;;
14177
14479
 
14178
 
  linux*)
14179
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14180
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181
 
        archive_cmds_F77="$tmp_archive_cmds"
14182
 
      supports_anon_versioning=no
14183
 
      case `$LD -v 2>/dev/null` in
14184
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14185
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14186
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14187
 
        *\ 2.11.*) ;; # other 2.11 versions
14188
 
        *) supports_anon_versioning=yes ;;
14189
 
      esac
14190
 
      if test $supports_anon_versioning = yes; then
14191
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14192
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14193
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
14194
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14195
 
      else
14196
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
14197
 
      fi
14198
 
    else
14199
 
      ld_shlibs_F77=no
14200
 
    fi
14201
 
    ;;
14202
 
 
14203
14480
    *)
14204
14481
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14205
14482
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210
14487
      ;;
14211
14488
    esac
14212
14489
 
14213
 
    if test "$ld_shlibs_F77" = yes; then
14214
 
      runpath_var=LD_RUN_PATH
14215
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14216
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14217
 
      # ancient GNU ld didn't support --whole-archive et. al.
14218
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14219
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14220
 
      else
14221
 
        whole_archive_flag_spec_F77=
14222
 
      fi
 
14490
    if test "$ld_shlibs_F77" = no; then
 
14491
      runpath_var=
 
14492
      hardcode_libdir_flag_spec_F77=
 
14493
      export_dynamic_flag_spec_F77=
 
14494
      whole_archive_flag_spec_F77=
14223
14495
    fi
14224
14496
  else
14225
14497
    # PORTME fill in a description of your system's linker (not GNU ld)
14283
14555
      link_all_deplibs_F77=yes
14284
14556
 
14285
14557
      if test "$GCC" = yes; then
14286
 
        case $host_os in aix4.012|aix4.012.*)
 
14558
        case $host_os in aix4.[012]|aix4.[012].*)
14287
14559
        # We only want to do this on AIX 4.2 and lower, the check
14288
14560
        # below for broken collect2 doesn't work under 4.3+
14289
14561
          collect2name=`${CC} -print-prog-name=collect2`
14304
14576
          fi
14305
14577
        esac
14306
14578
        shared_flag='-shared'
 
14579
        if test "$aix_use_runtimelinking" = yes; then
 
14580
          shared_flag="$shared_flag "'${wl}-G'
 
14581
        fi
14307
14582
      else
14308
14583
        # not using gcc
14309
14584
        if test "$host_cpu" = ia64; then
14465
14740
      old_archive_From_new_cmds_F77='true'
14466
14741
      # FIXME: Should let the user specify the lib program.
14467
14742
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14468
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14743
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14469
14744
      enable_shared_with_static_runtimes_F77=yes
14470
14745
      ;;
14471
14746
 
14503
14778
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14504
14779
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14505
14780
    else
14506
 
      case "$cc_basename" in
 
14781
      case $cc_basename in
14507
14782
        xlc*)
14508
14783
         output_verbose_link_cmd='echo'
14509
14784
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14549
14824
      ;;
14550
14825
 
14551
14826
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14552
 
    freebsd* | kfreebsd*-gnu)
 
14827
    freebsd* | kfreebsd*-gnu | dragonfly*)
14553
14828
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14554
14829
      hardcode_libdir_flag_spec_F77='-R$libdir'
14555
14830
      hardcode_direct_F77=yes
14706
14981
        allow_undefined_flag_F77=' -expect_unresolved \*'
14707
14982
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14708
14983
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14709
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14984
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14710
14985
 
14711
14986
        # Both c and cxx compiler support -rpath directly
14712
14987
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14725
15000
    solaris*)
14726
15001
      no_undefined_flag_F77=' -z text'
14727
15002
      if test "$GCC" = yes; then
 
15003
        wlarc='${wl}'
14728
15004
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14729
15005
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14730
15006
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14731
15007
      else
 
15008
        wlarc=''
14732
15009
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14733
15010
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14734
15011
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14737
15014
      hardcode_shlibpath_var_F77=no
14738
15015
      case $host_os in
14739
15016
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14740
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14741
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15017
      *)
 
15018
        # The compiler driver will combine linker options so we
 
15019
        # cannot just pass the convience library names through
 
15020
        # without $wl, iff we do not link with $LD.
 
15021
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15022
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15023
        case $wlarc in
 
15024
        '')
 
15025
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15026
        *)
 
15027
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15028
        esac ;;
14742
15029
      esac
14743
15030
      link_all_deplibs_F77=yes
14744
15031
      ;;
15070
15357
      ;;
15071
15358
    pw32*)
15072
15359
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15073
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15360
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15074
15361
      ;;
15075
15362
    esac
15076
15363
    ;;
15128
15415
  dynamic_linker='GNU ld.so'
15129
15416
  ;;
15130
15417
 
15131
 
freebsd*)
 
15418
freebsd* | dragonfly*)
 
15419
  # DragonFly does not have aout.  When/if they implement a new
 
15420
  # versioning mechanism, adjust this.
15132
15421
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15133
15422
  version_type=freebsd-$objformat
15134
15423
  case $version_type in
15147
15436
  freebsd2*)
15148
15437
    shlibpath_overrides_runpath=yes
15149
15438
    ;;
15150
 
  freebsd3.01* | freebsdelf3.01*)
 
15439
  freebsd3.[01]* | freebsdelf3.[01]*)
15151
15440
    shlibpath_overrides_runpath=yes
15152
15441
    hardcode_into_libs=yes
15153
15442
    ;;
15275
15564
  libsuff=
15276
15565
  case "$host_cpu" in
15277
15566
  x86_64*|s390x*|powerpc64*)
15278
 
    echo '#line 15278 "configure"' > conftest.$ac_ext
 
15567
    echo '#line 15567 "configure"' > conftest.$ac_ext
15279
15568
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280
15569
  (eval $ac_compile) 2>&5
15281
15570
  ac_status=$?
15294
15583
 
15295
15584
  # Append ld.so.conf contents to the search path
15296
15585
  if test -f /etc/ld.so.conf; then
15297
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15586
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15298
15587
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15299
15588
  fi
15300
15589
 
15657
15946
# The host system.
15658
15947
host_alias=$host_alias
15659
15948
host=$host
 
15949
host_os=$host_os
 
15950
 
 
15951
# The build system.
 
15952
build_alias=$build_alias
 
15953
build=$build
 
15954
build_os=$build_os
15660
15955
 
15661
15956
# An echo program that does not interpret backslashes.
15662
15957
echo=$lt_echo
15733
16028
# Does compiler simultaneously support -c and -o options?
15734
16029
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15735
16030
 
15736
 
# Must we lock files when doing compilation ?
 
16031
# Must we lock files when doing compilation?
15737
16032
need_locks=$lt_need_locks
15738
16033
 
15739
16034
# Do we need the lib prefix for modules?
15971
16266
lt_simple_compile_test_code="class foo {}\n"
15972
16267
 
15973
16268
# Code to be used in simple link tests
15974
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16269
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15975
16270
 
15976
16271
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15977
16272
 
15982
16277
compiler=$CC
15983
16278
 
15984
16279
 
 
16280
# save warnings/boilerplate of simple test code
 
16281
ac_outfile=conftest.$ac_objext
 
16282
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16283
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
16284
_lt_compiler_boilerplate=`cat conftest.err`
 
16285
$rm conftest*
 
16286
 
 
16287
ac_outfile=conftest.$ac_objext
 
16288
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16289
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
16290
_lt_linker_boilerplate=`cat conftest.err`
 
16291
$rm conftest*
 
16292
 
 
16293
 
15985
16294
# Allow CC to be a program name with arguments.
15986
16295
lt_save_CC="$CC"
15987
16296
CC=${GCJ-"gcj"}
15988
16297
compiler=$CC
15989
16298
compiler_GCJ=$CC
 
16299
for cc_temp in $compiler""; do
 
16300
  case $cc_temp in
 
16301
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16302
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16303
    \-*) ;;
 
16304
    *) break;;
 
16305
  esac
 
16306
done
 
16307
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16308
 
15990
16309
 
15991
16310
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15992
16311
archive_cmds_need_lc_GCJ=no
15993
16312
 
 
16313
old_archive_cmds_GCJ=$old_archive_cmds
 
16314
 
15994
16315
 
15995
16316
lt_prog_compiler_no_builtin_flag_GCJ=
15996
16317
 
16016
16337
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16017
16338
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018
16339
   -e 's:$: $lt_compiler_flag:'`
16019
 
   (eval echo "\"\$as_me:16019: $lt_compile\"" >&5)
 
16340
   (eval echo "\"\$as_me:16340: $lt_compile\"" >&5)
16020
16341
   (eval "$lt_compile" 2>conftest.err)
16021
16342
   ac_status=$?
16022
16343
   cat conftest.err >&5
16023
 
   echo "$as_me:16023: \$? = $ac_status" >&5
 
16344
   echo "$as_me:16344: \$? = $ac_status" >&5
16024
16345
   if (exit $ac_status) && test -s "$ac_outfile"; then
16025
16346
     # The compiler can only warn and ignore the option if not recognized
16026
 
     # So say no if there are warnings
16027
 
     if test ! -s conftest.err; then
 
16347
     # So say no if there are warnings other than the usual output.
 
16348
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16349
     $SED '/^$/d' conftest.err >conftest.er2
 
16350
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16028
16351
       lt_cv_prog_compiler_rtti_exceptions=yes
16029
16352
     fi
16030
16353
   fi
16130
16453
      darwin*)
16131
16454
        # PIC is the default on this platform
16132
16455
        # Common symbols not allowed in MH_DYLIB files
16133
 
       case "$cc_basename" in
 
16456
       case $cc_basename in
16134
16457
         xlc*)
16135
16458
         lt_prog_compiler_pic_GCJ='-qnocommon'
16136
16459
         lt_prog_compiler_wl_GCJ='-Wl,'
16172
16495
      ;;
16173
16496
 
16174
16497
    linux*)
16175
 
      case $CC in
 
16498
      case $cc_basename in
16176
16499
      icc* | ecc*)
16177
16500
        lt_prog_compiler_wl_GCJ='-Wl,'
16178
16501
        lt_prog_compiler_pic_GCJ='-KPIC'
16179
16502
        lt_prog_compiler_static_GCJ='-static'
16180
16503
        ;;
 
16504
      pgcc* | pgf77* | pgf90*)
 
16505
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16506
        # which looks to be a dead project)
 
16507
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16508
        lt_prog_compiler_pic_GCJ='-fpic'
 
16509
        lt_prog_compiler_static_GCJ='-static'
 
16510
        ;;
16181
16511
      ccc*)
16182
16512
        lt_prog_compiler_wl_GCJ='-Wl,'
16183
16513
        # All Alpha code is PIC.
16198
16528
      ;;
16199
16529
 
16200
16530
    solaris*)
16201
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16202
16531
      lt_prog_compiler_pic_GCJ='-KPIC'
16203
16532
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16533
      case $cc_basename in
 
16534
      f77* | f90* | f95*)
 
16535
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16536
      *)
 
16537
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16538
      esac
16204
16539
      ;;
16205
16540
 
16206
16541
    sunos4*)
16222
16557
      fi
16223
16558
      ;;
16224
16559
 
 
16560
    unicos*)
 
16561
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16562
      lt_prog_compiler_can_build_shared_GCJ=no
 
16563
      ;;
 
16564
 
16225
16565
    uts4*)
16226
16566
      lt_prog_compiler_pic_GCJ='-pic'
16227
16567
      lt_prog_compiler_static_GCJ='-Bstatic'
16259
16599
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16260
16600
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16261
16601
   -e 's:$: $lt_compiler_flag:'`
16262
 
   (eval echo "\"\$as_me:16262: $lt_compile\"" >&5)
 
16602
   (eval echo "\"\$as_me:16602: $lt_compile\"" >&5)
16263
16603
   (eval "$lt_compile" 2>conftest.err)
16264
16604
   ac_status=$?
16265
16605
   cat conftest.err >&5
16266
 
   echo "$as_me:16266: \$? = $ac_status" >&5
 
16606
   echo "$as_me:16606: \$? = $ac_status" >&5
16267
16607
   if (exit $ac_status) && test -s "$ac_outfile"; then
16268
16608
     # The compiler can only warn and ignore the option if not recognized
16269
 
     # So say no if there are warnings
16270
 
     if test ! -s conftest.err; then
 
16609
     # So say no if there are warnings other than the usual output.
 
16610
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16611
     $SED '/^$/d' conftest.err >conftest.er2
 
16612
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16271
16613
       lt_prog_compiler_pic_works_GCJ=yes
16272
16614
     fi
16273
16615
   fi
16319
16661
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16320
16662
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321
16663
   -e 's:$: $lt_compiler_flag:'`
16322
 
   (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
 
16664
   (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16323
16665
   (eval "$lt_compile" 2>out/conftest.err)
16324
16666
   ac_status=$?
16325
16667
   cat out/conftest.err >&5
16326
 
   echo "$as_me:16326: \$? = $ac_status" >&5
 
16668
   echo "$as_me:16668: \$? = $ac_status" >&5
16327
16669
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16328
16670
   then
16329
16671
     # The compiler can only warn and ignore the option if not recognized
16330
16672
     # So say no if there are warnings
16331
 
     if test ! -s out/conftest.err; then
 
16673
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
16674
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
16675
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16332
16676
       lt_cv_prog_compiler_c_o_GCJ=yes
16333
16677
     fi
16334
16678
   fi
16408
16752
  # rely on this symbol name, it's probably fine to never include it in
16409
16753
  # preloaded symbol tables.
16410
16754
  extract_expsyms_cmds=
 
16755
  # Just being paranoid about ensuring that cc_basename is set.
 
16756
  for cc_temp in $compiler""; do
 
16757
  case $cc_temp in
 
16758
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16759
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16760
    \-*) ;;
 
16761
    *) break;;
 
16762
  esac
 
16763
done
 
16764
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16411
16765
 
16412
16766
  case $host_os in
16413
16767
  cygwin* | mingw* | pw32*)
16428
16782
    # If archive_cmds runs LD, not CC, wlarc should be empty
16429
16783
    wlarc='${wl}'
16430
16784
 
 
16785
    # Set some defaults for GNU ld with shared library support. These
 
16786
    # are reset later if shared libraries are not supported. Putting them
 
16787
    # here allows them to be overridden if necessary.
 
16788
    runpath_var=LD_RUN_PATH
 
16789
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16790
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16791
    # ancient GNU ld didn't support --whole-archive et. al.
 
16792
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16793
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16794
      else
 
16795
        whole_archive_flag_spec_GCJ=
 
16796
    fi
 
16797
    supports_anon_versioning=no
 
16798
    case `$LD -v 2>/dev/null` in
 
16799
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16800
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16801
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16802
      *\ 2.11.*) ;; # other 2.11 versions
 
16803
      *) supports_anon_versioning=yes ;;
 
16804
    esac
 
16805
 
16431
16806
    # See if GNU ld supports shared libraries.
16432
16807
    case $host_os in
16433
16808
    aix3* | aix4* | aix5*)
16478
16853
      allow_undefined_flag_GCJ=unsupported
16479
16854
      always_export_symbols_GCJ=no
16480
16855
      enable_shared_with_static_runtimes_GCJ=yes
16481
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16856
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16482
16857
 
16483
16858
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16484
16859
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16492
16867
        fi~
16493
16868
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16494
16869
      else
16495
 
        ld_shlibs=no
 
16870
        ld_shlibs_GCJ=no
 
16871
      fi
 
16872
      ;;
 
16873
 
 
16874
    linux*)
 
16875
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16876
        tmp_addflag=
 
16877
        case $cc_basename,$host_cpu in
 
16878
        pgcc*)                          # Portland Group C compiler
 
16879
          whole_archive_flag_spec_GCJ=
 
16880
          ;;
 
16881
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
16882
          whole_archive_flag_spec_GCJ=
 
16883
          tmp_addflag=' -fpic -Mnomain' ;;
 
16884
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16885
          tmp_addflag=' -i_dynamic' ;;
 
16886
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16887
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16888
        ifc* | ifort*)                  # Intel Fortran compiler
 
16889
          tmp_addflag=' -nofor_main' ;;
 
16890
        esac
 
16891
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16892
 
 
16893
        if test $supports_anon_versioning = yes; then
 
16894
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16895
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16896
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16897
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16898
        fi
 
16899
      else
 
16900
        ld_shlibs_GCJ=no
16496
16901
      fi
16497
16902
      ;;
16498
16903
 
16534
16939
      hardcode_shlibpath_var_GCJ=no
16535
16940
      ;;
16536
16941
 
16537
 
  linux*)
16538
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16539
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16540
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16541
 
      supports_anon_versioning=no
16542
 
      case `$LD -v 2>/dev/null` in
16543
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16544
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16545
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16546
 
        *\ 2.11.*) ;; # other 2.11 versions
16547
 
        *) supports_anon_versioning=yes ;;
16548
 
      esac
16549
 
      if test $supports_anon_versioning = yes; then
16550
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16551
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16552
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16553
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16554
 
      else
16555
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16556
 
      fi
16557
 
    else
16558
 
      ld_shlibs_GCJ=no
16559
 
    fi
16560
 
    ;;
16561
 
 
16562
16942
    *)
16563
16943
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16564
16944
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16569
16949
      ;;
16570
16950
    esac
16571
16951
 
16572
 
    if test "$ld_shlibs_GCJ" = yes; then
16573
 
      runpath_var=LD_RUN_PATH
16574
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16575
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16576
 
      # ancient GNU ld didn't support --whole-archive et. al.
16577
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16578
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16579
 
      else
16580
 
        whole_archive_flag_spec_GCJ=
16581
 
      fi
 
16952
    if test "$ld_shlibs_GCJ" = no; then
 
16953
      runpath_var=
 
16954
      hardcode_libdir_flag_spec_GCJ=
 
16955
      export_dynamic_flag_spec_GCJ=
 
16956
      whole_archive_flag_spec_GCJ=
16582
16957
    fi
16583
16958
  else
16584
16959
    # PORTME fill in a description of your system's linker (not GNU ld)
16642
17017
      link_all_deplibs_GCJ=yes
16643
17018
 
16644
17019
      if test "$GCC" = yes; then
16645
 
        case $host_os in aix4.012|aix4.012.*)
 
17020
        case $host_os in aix4.[012]|aix4.[012].*)
16646
17021
        # We only want to do this on AIX 4.2 and lower, the check
16647
17022
        # below for broken collect2 doesn't work under 4.3+
16648
17023
          collect2name=`${CC} -print-prog-name=collect2`
16663
17038
          fi
16664
17039
        esac
16665
17040
        shared_flag='-shared'
 
17041
        if test "$aix_use_runtimelinking" = yes; then
 
17042
          shared_flag="$shared_flag "'${wl}-G'
 
17043
        fi
16666
17044
      else
16667
17045
        # not using gcc
16668
17046
        if test "$host_cpu" = ia64; then
16844
17222
      old_archive_From_new_cmds_GCJ='true'
16845
17223
      # FIXME: Should let the user specify the lib program.
16846
17224
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16847
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17225
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16848
17226
      enable_shared_with_static_runtimes_GCJ=yes
16849
17227
      ;;
16850
17228
 
16882
17260
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16883
17261
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16884
17262
    else
16885
 
      case "$cc_basename" in
 
17263
      case $cc_basename in
16886
17264
        xlc*)
16887
17265
         output_verbose_link_cmd='echo'
16888
17266
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16928
17306
      ;;
16929
17307
 
16930
17308
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16931
 
    freebsd* | kfreebsd*-gnu)
 
17309
    freebsd* | kfreebsd*-gnu | dragonfly*)
16932
17310
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16933
17311
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16934
17312
      hardcode_direct_GCJ=yes
17085
17463
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17086
17464
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17087
17465
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17088
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17466
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17089
17467
 
17090
17468
        # Both c and cxx compiler support -rpath directly
17091
17469
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17104
17482
    solaris*)
17105
17483
      no_undefined_flag_GCJ=' -z text'
17106
17484
      if test "$GCC" = yes; then
 
17485
        wlarc='${wl}'
17107
17486
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17108
17487
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17109
17488
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17110
17489
      else
 
17490
        wlarc=''
17111
17491
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17112
17492
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113
17493
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17116
17496
      hardcode_shlibpath_var_GCJ=no
17117
17497
      case $host_os in
17118
17498
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17119
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17120
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17499
      *)
 
17500
        # The compiler driver will combine linker options so we
 
17501
        # cannot just pass the convience library names through
 
17502
        # without $wl, iff we do not link with $LD.
 
17503
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17504
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17505
        case $wlarc in
 
17506
        '')
 
17507
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17508
        *)
 
17509
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17510
        esac ;;
17121
17511
      esac
17122
17512
      link_all_deplibs_GCJ=yes
17123
17513
      ;;
17449
17839
      ;;
17450
17840
    pw32*)
17451
17841
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17452
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17842
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453
17843
      ;;
17454
17844
    esac
17455
17845
    ;;
17507
17897
  dynamic_linker='GNU ld.so'
17508
17898
  ;;
17509
17899
 
17510
 
freebsd*)
 
17900
freebsd* | dragonfly*)
 
17901
  # DragonFly does not have aout.  When/if they implement a new
 
17902
  # versioning mechanism, adjust this.
17511
17903
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17512
17904
  version_type=freebsd-$objformat
17513
17905
  case $version_type in
17526
17918
  freebsd2*)
17527
17919
    shlibpath_overrides_runpath=yes
17528
17920
    ;;
17529
 
  freebsd3.01* | freebsdelf3.01*)
 
17921
  freebsd3.[01]* | freebsdelf3.[01]*)
17530
17922
    shlibpath_overrides_runpath=yes
17531
17923
    hardcode_into_libs=yes
17532
17924
    ;;
17654
18046
  libsuff=
17655
18047
  case "$host_cpu" in
17656
18048
  x86_64*|s390x*|powerpc64*)
17657
 
    echo '#line 17657 "configure"' > conftest.$ac_ext
 
18049
    echo '#line 18049 "configure"' > conftest.$ac_ext
17658
18050
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659
18051
  (eval $ac_compile) 2>&5
17660
18052
  ac_status=$?
17673
18065
 
17674
18066
  # Append ld.so.conf contents to the search path
17675
18067
  if test -f /etc/ld.so.conf; then
17676
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18068
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17677
18069
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17678
18070
  fi
17679
18071
 
18525
18917
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18526
18918
  lt_status=$lt_dlunknown
18527
18919
  cat > conftest.$ac_ext <<EOF
18528
 
#line 18528 "configure"
 
18920
#line 18920 "configure"
18529
18921
#include "confdefs.h"
18530
18922
 
18531
18923
#if HAVE_DLFCN_H
18623
19015
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18624
19016
  lt_status=$lt_dlunknown
18625
19017
  cat > conftest.$ac_ext <<EOF
18626
 
#line 18626 "configure"
 
19018
#line 19018 "configure"
18627
19019
#include "confdefs.h"
18628
19020
 
18629
19021
#if HAVE_DLFCN_H
18841
19233
# The host system.
18842
19234
host_alias=$host_alias
18843
19235
host=$host
 
19236
host_os=$host_os
 
19237
 
 
19238
# The build system.
 
19239
build_alias=$build_alias
 
19240
build=$build
 
19241
build_os=$build_os
18844
19242
 
18845
19243
# An echo program that does not interpret backslashes.
18846
19244
echo=$lt_echo
18917
19315
# Does compiler simultaneously support -c and -o options?
18918
19316
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18919
19317
 
18920
 
# Must we lock files when doing compilation ?
 
19318
# Must we lock files when doing compilation?
18921
19319
need_locks=$lt_need_locks
18922
19320
 
18923
19321
# Do we need the lib prefix for modules?
19165
19563
compiler=$CC
19166
19564
 
19167
19565
 
 
19566
# save warnings/boilerplate of simple test code
 
19567
ac_outfile=conftest.$ac_objext
 
19568
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19569
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19570
_lt_compiler_boilerplate=`cat conftest.err`
 
19571
$rm conftest*
 
19572
 
 
19573
ac_outfile=conftest.$ac_objext
 
19574
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19575
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19576
_lt_linker_boilerplate=`cat conftest.err`
 
19577
$rm conftest*
 
19578
 
 
19579
 
19168
19580
# Allow CC to be a program name with arguments.
19169
19581
lt_save_CC="$CC"
19170
19582
CC=${RC-"windres"}
19171
19583
compiler=$CC
19172
19584
compiler_RC=$CC
 
19585
for cc_temp in $compiler""; do
 
19586
  case $cc_temp in
 
19587
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19588
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19589
    \-*) ;;
 
19590
    *) break;;
 
19591
  esac
 
19592
done
 
19593
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19594
 
19173
19595
lt_cv_prog_compiler_c_o_RC=yes
19174
19596
 
19175
19597
# The else clause should only fire when bootstrapping the
19286
19708
# The host system.
19287
19709
host_alias=$host_alias
19288
19710
host=$host
 
19711
host_os=$host_os
 
19712
 
 
19713
# The build system.
 
19714
build_alias=$build_alias
 
19715
build=$build
 
19716
build_os=$build_os
19289
19717
 
19290
19718
# An echo program that does not interpret backslashes.
19291
19719
echo=$lt_echo
19362
19790
# Does compiler simultaneously support -c and -o options?
19363
19791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19364
19792
 
19365
 
# Must we lock files when doing compilation ?
 
19793
# Must we lock files when doing compilation?
19366
19794
need_locks=$lt_need_locks
19367
19795
 
19368
19796
# Do we need the lib prefix for modules?
19641
20069
 
19642
20070
 
19643
20071
 
 
20072
echo "$as_me:$LINENO: checking for Win32" >&5
 
20073
echo $ECHO_N "checking for Win32... $ECHO_C" >&6
 
20074
case "$host" in
 
20075
*-mingw*)
 
20076
    os_win32=yes
 
20077
    ;;
 
20078
*)  os_win32=no
 
20079
    ;;
 
20080
esac
 
20081
echo "$as_me:$LINENO: result: $os_win32" >&5
 
20082
echo "${ECHO_T}$os_win32" >&6
 
20083
 
 
20084
 
 
20085
if test $os_win32 = yes; then
 
20086
  OS_WIN32_TRUE=
 
20087
  OS_WIN32_FALSE='#'
 
20088
else
 
20089
  OS_WIN32_TRUE='#'
 
20090
  OS_WIN32_FALSE=
 
20091
fi
 
20092
 
 
20093
 
 
20094
 
19644
20095
echo "$as_me:$LINENO: checking for Berkeley DB4 support" >&5
19645
20096
echo $ECHO_N "checking for Berkeley DB4 support... $ECHO_C" >&6
19646
20097
 
19895
20346
  echo "$as_me:$LINENO: checking for CAP/BEEP files" >&5
19896
20347
echo $ECHO_N "checking for CAP/BEEP files... $ECHO_C" >&6
19897
20348
 
19898
 
  succeeded=no
19899
20349
 
19900
 
  if test -z "$PKG_CONFIG"; then
19901
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
19902
 
set dummy pkg-config; ac_word=$2
 
20350
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20351
        if test -n "$ac_tool_prefix"; then
 
20352
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20353
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19903
20354
echo "$as_me:$LINENO: checking for $ac_word" >&5
19904
20355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19905
20356
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19924
20375
done
19925
20376
done
19926
20377
 
19927
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19928
20378
  ;;
19929
20379
esac
19930
20380
fi
19938
20388
echo "${ECHO_T}no" >&6
19939
20389
fi
19940
20390
 
 
20391
fi
 
20392
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
20393
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
20394
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
20395
set dummy pkg-config; ac_word=$2
 
20396
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20397
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20398
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
20399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20400
else
 
20401
  case $ac_pt_PKG_CONFIG in
 
20402
  [\\/]* | ?:[\\/]*)
 
20403
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
20404
  ;;
 
20405
  *)
 
20406
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20407
for as_dir in $PATH
 
20408
do
 
20409
  IFS=$as_save_IFS
 
20410
  test -z "$as_dir" && as_dir=.
 
20411
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20412
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20413
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20414
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20415
    break 2
19941
20416
  fi
19942
 
 
19943
 
  if test "$PKG_CONFIG" = "no" ; then
19944
 
     echo "*** The pkg-config script could not be found. Make sure it is"
19945
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
19946
 
     echo "*** to the full path to pkg-config."
19947
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19948
 
  else
19949
 
     PKG_CONFIG_MIN_VERSION=0.9.0
19950
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19951
 
        echo "$as_me:$LINENO: checking for roadrunner   >= 0.9 \
19952
 
                         rrtls          >= 0.9 \
19953
 
                         rrsasl         >= 0.9 \
19954
 
                         rrcap          >= 0.9" >&5
19955
 
echo $ECHO_N "checking for roadrunner   >= 0.9 \
19956
 
                         rrtls          >= 0.9 \
19957
 
                         rrsasl         >= 0.9 \
19958
 
                         rrcap          >= 0.9... $ECHO_C" >&6
19959
 
 
19960
 
        if $PKG_CONFIG --exists "roadrunner     >= 0.9 \
19961
 
                         rrtls          >= 0.9 \
19962
 
                         rrsasl         >= 0.9 \
19963
 
                         rrcap          >= 0.9" ; then
19964
 
            echo "$as_me:$LINENO: result: yes" >&5
 
20417
done
 
20418
done
 
20419
 
 
20420
  ;;
 
20421
esac
 
20422
fi
 
20423
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20424
 
 
20425
if test -n "$ac_pt_PKG_CONFIG"; then
 
20426
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20427
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
20428
else
 
20429
  echo "$as_me:$LINENO: result: no" >&5
 
20430
echo "${ECHO_T}no" >&6
 
20431
fi
 
20432
 
 
20433
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20434
else
 
20435
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20436
fi
 
20437
 
 
20438
fi
 
20439
if test -n "$PKG_CONFIG"; then
 
20440
        _pkg_min_version=0.9.0
 
20441
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20442
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
20443
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20444
                echo "$as_me:$LINENO: result: yes" >&5
19965
20445
echo "${ECHO_T}yes" >&6
19966
 
            succeeded=yes
19967
 
 
19968
 
            echo "$as_me:$LINENO: checking RRCAP_CFLAGS" >&5
19969
 
echo $ECHO_N "checking RRCAP_CFLAGS... $ECHO_C" >&6
19970
 
            RRCAP_CFLAGS=`$PKG_CONFIG --cflags "roadrunner      >= 0.9 \
19971
 
                         rrtls          >= 0.9 \
19972
 
                         rrsasl         >= 0.9 \
19973
 
                         rrcap          >= 0.9"`
19974
 
            echo "$as_me:$LINENO: result: $RRCAP_CFLAGS" >&5
19975
 
echo "${ECHO_T}$RRCAP_CFLAGS" >&6
19976
 
 
19977
 
            echo "$as_me:$LINENO: checking RRCAP_LIBS" >&5
19978
 
echo $ECHO_N "checking RRCAP_LIBS... $ECHO_C" >&6
19979
 
            RRCAP_LIBS=`$PKG_CONFIG --libs "roadrunner  >= 0.9 \
19980
 
                         rrtls          >= 0.9 \
19981
 
                         rrsasl         >= 0.9 \
19982
 
                         rrcap          >= 0.9"`
19983
 
            echo "$as_me:$LINENO: result: $RRCAP_LIBS" >&5
19984
 
echo "${ECHO_T}$RRCAP_LIBS" >&6
19985
 
        else
19986
 
            RRCAP_CFLAGS=""
19987
 
            RRCAP_LIBS=""
19988
 
            ## If we have a custom action on failure, don't print errors, but
19989
 
            ## do set a variable so people can do so.
19990
 
            RRCAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "roadrunner >= 0.9 \
19991
 
                         rrtls          >= 0.9 \
19992
 
                         rrsasl         >= 0.9 \
19993
 
                         rrcap          >= 0.9"`
19994
 
            echo $RRCAP_PKG_ERRORS
19995
 
        fi
19996
 
 
19997
 
 
19998
 
 
19999
 
     else
20000
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20001
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
20002
 
     fi
20003
 
  fi
20004
 
 
20005
 
  if test $succeeded = yes; then
20006
 
     :
20007
 
  else
20008
 
     { { echo "$as_me:$LINENO: error: Library requirements (roadrunner  >= 0.9 \
20009
 
                         rrtls          >= 0.9 \
20010
 
                         rrsasl         >= 0.9 \
20011
 
                         rrcap          >= 0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20012
 
echo "$as_me: error: Library requirements (roadrunner   >= 0.9 \
20013
 
                         rrtls          >= 0.9 \
20014
 
                         rrsasl         >= 0.9 \
20015
 
                         rrcap          >= 0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20016
 
   { (exit 1); exit 1; }; }
20017
 
  fi
20018
 
 
 
20446
        else
 
20447
                echo "$as_me:$LINENO: result: no" >&5
 
20448
echo "${ECHO_T}no" >&6
 
20449
                PKG_CONFIG=""
 
20450
        fi
 
20451
 
 
20452
fi
 
20453
 
 
20454
pkg_failed=no
 
20455
echo "$as_me:$LINENO: checking for RRCAP_CFLAGS" >&5
 
20456
echo $ECHO_N "checking for RRCAP_CFLAGS... $ECHO_C" >&6
 
20457
if test "${pkg_cv_RRCAP_CFLAGS+set}" = set; then
 
20458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20459
else
 
20460
  if test "x$ac_cv_env_RRCAP_CFLAGS_set" = "xset"; then
 
20461
        pkg_cv_RRCAP_CFLAGS=$ac_cv_env_RRCAP_CFLAGS_value
 
20462
elif test -n "$PKG_CONFIG"; then
 
20463
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"roadrunner  >= 0.9 \\
 
20464
                         rrtls          >= 0.9 \\
 
20465
                         rrsasl         >= 0.9 \\
 
20466
                         rrcap          >= 0.9\" >/dev/null 2>&1") >&5
 
20467
  ($PKG_CONFIG --exists "roadrunner     >= 0.9 \
 
20468
                         rrtls          >= 0.9 \
 
20469
                         rrsasl         >= 0.9 \
 
20470
                         rrcap          >= 0.9" >/dev/null 2>&1) 2>&5
 
20471
  ac_status=$?
 
20472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20473
  (exit $ac_status); }; then
 
20474
                pkg_cv_RRCAP_CFLAGS=`$PKG_CONFIG --cflags "roadrunner   >= 0.9 \
 
20475
                         rrtls          >= 0.9 \
 
20476
                         rrsasl         >= 0.9 \
 
20477
                         rrcap          >= 0.9" 2>/dev/null`
 
20478
        else
 
20479
                pkg_failed=yes
 
20480
        fi
 
20481
else
 
20482
        pkg_failed=untried
 
20483
fi
 
20484
fi
 
20485
echo "$as_me:$LINENO: result: $pkg_cv_RRCAP_CFLAGS" >&5
 
20486
echo "${ECHO_T}$pkg_cv_RRCAP_CFLAGS" >&6
 
20487
echo "$as_me:$LINENO: checking for RRCAP_LIBS" >&5
 
20488
echo $ECHO_N "checking for RRCAP_LIBS... $ECHO_C" >&6
 
20489
if test "${pkg_cv_RRCAP_LIBS+set}" = set; then
 
20490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20491
else
 
20492
  if test "x$ac_cv_env_RRCAP_LIBS_set" = "xset"; then
 
20493
        pkg_cv_RRCAP_LIBS=$ac_cv_env_RRCAP_LIBS_value
 
20494
elif test -n "$PKG_CONFIG"; then
 
20495
        if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"roadrunner  >= 0.9 \\
 
20496
                         rrtls          >= 0.9 \\
 
20497
                         rrsasl         >= 0.9 \\
 
20498
                         rrcap          >= 0.9\" >/dev/null 2>&1") >&5
 
20499
  ($PKG_CONFIG --exists "roadrunner     >= 0.9 \
 
20500
                         rrtls          >= 0.9 \
 
20501
                         rrsasl         >= 0.9 \
 
20502
                         rrcap          >= 0.9" >/dev/null 2>&1) 2>&5
 
20503
  ac_status=$?
 
20504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20505
  (exit $ac_status); }; then
 
20506
                pkg_cv_RRCAP_LIBS=`$PKG_CONFIG --libs "roadrunner       >= 0.9 \
 
20507
                         rrtls          >= 0.9 \
 
20508
                         rrsasl         >= 0.9 \
 
20509
                         rrcap          >= 0.9" 2>/dev/null`
 
20510
        else
 
20511
                pkg_failed=yes
 
20512
        fi
 
20513
else
 
20514
        pkg_failed=untried
 
20515
fi
 
20516
fi
 
20517
echo "$as_me:$LINENO: result: $pkg_cv_RRCAP_LIBS" >&5
 
20518
echo "${ECHO_T}$pkg_cv_RRCAP_LIBS" >&6
 
20519
 
 
20520
if test $pkg_failed = yes; then
 
20521
        RRCAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "roadrunner     >= 0.9 \
 
20522
                         rrtls          >= 0.9 \
 
20523
                         rrsasl         >= 0.9 \
 
20524
                         rrcap          >= 0.9"`
 
20525
        # Put the nasty error message in config.log where it belongs
 
20526
        echo "$RRCAP_PKG_ERRORS" 1>&5
 
20527
 
 
20528
        { { echo "$as_me:$LINENO: error: Package requirements (roadrunner       >= 0.9 \
 
20529
                         rrtls          >= 0.9 \
 
20530
                         rrsasl         >= 0.9 \
 
20531
                         rrcap          >= 0.9) were not met.
 
20532
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20533
installed software in a non-standard prefix.
 
20534
 
 
20535
Alternatively you may set the RRCAP_CFLAGS and RRCAP_LIBS environment variables
 
20536
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20537
more details." >&5
 
20538
echo "$as_me: error: Package requirements (roadrunner   >= 0.9 \
 
20539
                         rrtls          >= 0.9 \
 
20540
                         rrsasl         >= 0.9 \
 
20541
                         rrcap          >= 0.9) were not met.
 
20542
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20543
installed software in a non-standard prefix.
 
20544
 
 
20545
Alternatively you may set the RRCAP_CFLAGS and RRCAP_LIBS environment variables
 
20546
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20547
more details." >&2;}
 
20548
   { (exit 1); exit 1; }; }
 
20549
elif test $pkg_failed = untried; then
 
20550
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
20551
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20552
path to pkg-config.
 
20553
 
 
20554
Alternatively you may set the RRCAP_CFLAGS and RRCAP_LIBS environment variables
 
20555
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20556
more details.
 
20557
 
 
20558
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20559
See \`config.log' for more details." >&5
 
20560
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
20561
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20562
path to pkg-config.
 
20563
 
 
20564
Alternatively you may set the RRCAP_CFLAGS and RRCAP_LIBS environment variables
 
20565
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20566
more details.
 
20567
 
 
20568
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20569
See \`config.log' for more details." >&2;}
 
20570
   { (exit 1); exit 1; }; }
 
20571
else
 
20572
        RRCAP_CFLAGS=$pkg_cv_RRCAP_CFLAGS
 
20573
        RRCAP_LIBS=$pkg_cv_RRCAP_LIBS
 
20574
        :
 
20575
fi
20019
20576
 
20020
20577
 
20021
20578
 
21417
21974
Usually this means the macro was only invoked conditionally." >&2;}
21418
21975
   { (exit 1); exit 1; }; }
21419
21976
fi
 
21977
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
 
21978
  { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
 
21979
Usually this means the macro was only invoked conditionally." >&5
 
21980
echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
 
21981
Usually this means the macro was only invoked conditionally." >&2;}
 
21982
   { (exit 1); exit 1; }; }
 
21983
fi
21420
21984
if test -z "${WITH_BDB4_TRUE}" && test -z "${WITH_BDB4_FALSE}"; then
21421
21985
  { { echo "$as_me:$LINENO: error: conditional \"WITH_BDB4\" was never defined.
21422
21986
Usually this means the macro was only invoked conditionally." >&5
22087
22651
s,@FFLAGS@,$FFLAGS,;t t
22088
22652
s,@ac_ct_F77@,$ac_ct_F77,;t t
22089
22653
s,@LIBTOOL@,$LIBTOOL,;t t
 
22654
s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
 
22655
s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
22090
22656
s,@BDB_DIR@,$BDB_DIR,;t t
22091
22657
s,@BDB_DIR_INCLUDE@,$BDB_DIR_INCLUDE,;t t
22092
22658
s,@BDB_DIR_LIB@,$BDB_DIR_LIB,;t t
22098
22664
s,@DEV_FALSE@,$DEV_FALSE,;t t
22099
22665
s,@PERL@,$PERL,;t t
22100
22666
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
22667
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22101
22668
s,@RRCAP_CFLAGS@,$RRCAP_CFLAGS,;t t
22102
22669
s,@RRCAP_LIBS@,$RRCAP_LIBS,;t t
22103
22670
s,@WITH_CAP_TRUE@,$WITH_CAP_TRUE,;t t